@ckeditor/ckeditor5-revision-history 45.2.1-alpha.4 → 45.2.1-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +11 -11
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionhistoryutils.js +1 -1
  159. package/src/revisionsrepository.js +1 -1
  160. package/src/revisiontracker.js +1 -1
  161. package/src/revisionviewer.js +1 -1
  162. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  163. package/src/ui/revision/revisionauthorview.js +1 -1
  164. package/src/ui/revision/revisionnameview.js +1 -1
  165. package/src/ui/revision/revisionview.js +2 -2
  166. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  167. package/src/ui/revision/subrevisionview.js +1 -1
  168. package/src/ui/revision/utils.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  170. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  174. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  175. package/src/ui/revisionssidebar/utils.js +1 -1
  176. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  177. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  179. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  180. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x37c90e,uid as _0x45e777,Collection as _0x37ef36,logWarning as _0x4e50a8,FocusTracker as _0x317a16,KeystrokeHandler as _0x16c5c2,scrollViewportToShowTarget as _0x108aeb,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0xc05e2d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x215734,set as _0xf66ff0,unset as _0x56c42e,isEqual as _0x50dd39}from'es-toolkit/compat';import{Plugin as _0x5bec45,PendingActions as _0x2d198c,Command as _0x373f44,ElementApiMixin as _0x5d5f4c,Editor as _0x559888}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x59fd86,getMarkerDomElement as _0x171cd7,ConfirmMixin as _0x1131e4,sanitizeEditorConfig as _0x47ec66}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x497425,ViewAttributeElement as _0x1acec9,ViewEmptyElement as _0x44b481,ViewRawElement as _0x3c18a9,ViewUIElement as _0x4262c1,ViewDocumentFragment as _0x3e2742,ViewText as _0x27ef86,ViewElement as _0x99a3aa,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x43dc91,IconChevronUp as _0x50abb7,IconChevronDown as _0x4a8fc5,IconUndo as _0x45e376,IconUser as _0x1dd5b4,IconThreeVerticalDots as _0x2cd303}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x401579,injectCssTransitionDisabler as ts,submitHandler as _0x284889,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x4f91a6,ListView as _0x2ab1ed,ListItemView as te,ButtonView as _0x1eeecd,MenuBarMenuView as _0x404584,MenuBarMenuListView as _0x4132b3,MenuBarMenuListItemView as _0x264bbf,MenuBarMenuListItemButtonView as _0x54e0fe,ContextualBalloon as _0x24d2b0,ToolbarSeparatorView as _0xcc77c9,IconView as _0x5b6993,addListToDropdown as _0x367911,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1fec93}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x37c90e(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2fcbc7){super(),this['id']=_0x2fcbc7['id']||_0x45e777(),this['creator']=_0x2fcbc7['creator']||null,this['authors']=_0x2fcbc7['authors']||[],this['diffData']=_0x2fcbc7['diffData']||null,this['toVersion']=_0x2fcbc7['toVersion']||0x0,this['fromVersion']=_0x2fcbc7['fromVersion']||0x0,this['set']('name',_0x2fcbc7['name']||''),this['set']('createdAt',_0x2fcbc7['createdAt']||new Date()),this['set']('attributes',_0x2fcbc7['attributes']||{});}['setName'](_0x59bc93){this['_update']({'name':_0x59bc93});}['setAttribute'](_0xda8408,_0x3910e6){const _0x528ef5=_0x215734(this['attributes']);_0xf66ff0(_0x528ef5,_0xda8408,_0x3910e6),this['_update']({'attributes':_0x528ef5});}['removeAttribute'](_0x224edc){const _0x2f3900=_0x215734(this['attributes']);_0x56c42e(_0x2f3900,_0x224edc),this['_update']({'attributes':_0x2f3900});}['_update'](_0x3be8c2,_0x59321f=!0x1){let _0x55f283=!0x1;const _0x22fd10={'id':this['id']},_0x76bc1c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x3ed9e4 of _0x76bc1c){const _0x53d491=_0x3be8c2[_0x3ed9e4];void 0x0!==_0x53d491&&_0x53d491!==this[_0x3ed9e4]&&(this[_0x3ed9e4]=_0x53d491,_0x22fd10[_0x3ed9e4]=_0x53d491,_0x55f283=!0x0);}_0x55f283&&(_0x22fd10['authors']&&(_0x22fd10['authorsIds']=_0x22fd10['authors']['map'](_0x5d70b8=>_0x5d70b8['id']),delete _0x22fd10['authors']),this['fire']('_update',_0x22fd10,_0x59321f));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xc49bb6=>_0xc49bb6['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5bec45{['_revisions'];static get['requires'](){return[_0x59fd86];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4bdc1b){super(_0x4bdc1b),this['_revisions']=new _0x37ef36();}['afterInit'](){!async function(_0x44ef4b){const _0x438667=_0x2ef2ba([0x51,0x6b,0x44,0x78,0x79,0x72,0x6a,0x76,0x6d,0x64,0x4c,0x4f,0x36,0x35,0x69,0x50,0x5a,0x53,0x56,0x34,0x43,0x7a,0x6e,0x31,0x55,0x71,0x41,0x49,0x73,0x4d,0x59,0x47,0x77,0x4b,0x65,0x70,0x6f,0x30,0x39,0x68,0x63,0x57,0x61,0x4a,0x58,0x38,0x66,0x62,0x48,0x33,0x6c,0x54,0x32,0x52,0x67,0x46,0x74,0x75,0x42,0x37,0x45,0x4e]),_0x24e9ef=0xeb829,_0x1ebcf1=0x2ad72a0,_0x823a3b=0x2aa19a0^_0x1ebcf1,_0x2fa598=window[_0x2ef2ba([0x44,0x61,0x74,0x65])][_0x2ef2ba([0x6e,0x6f,0x77])](),_0x3b70fd=_0x44ef4b[_0x2ef2ba([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x21e7c4=new window[(_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1f0378=>{_0x3b70fd[_0x2ef2ba([0x6f,0x6e,0x63,0x65])](_0x2ef2ba([0x72,0x65,0x61,0x64,0x79]),_0x1f0378);}),_0x5fbe33={[_0x2ef2ba([0x6b,0x74,0x79])]:_0x2ef2ba([0x45,0x43]),[_0x2ef2ba([0x75,0x73,0x65])]:_0x2ef2ba([0x73,0x69,0x67]),[_0x2ef2ba([0x63,0x72,0x76])]:_0x2ef2ba([0x50,0x2d,0x32,0x35,0x36]),[_0x2ef2ba([0x78])]:_0x2ef2ba([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]),[_0x2ef2ba([0x79])]:_0x2ef2ba([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]),[_0x2ef2ba([0x61,0x6c,0x67])]:_0x2ef2ba([0x45,0x53,0x32,0x35,0x36])},_0x4b9718=_0x3b70fd[_0x2ef2ba([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2ef2ba([0x67,0x65,0x74])](_0x2ef2ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x52c344(){let _0x2d59f1,_0x365c21=null,_0x1ecab9=null;try{if(_0x4b9718==_0x2ef2ba([0x47,0x50,0x4c]))return _0x2ef2ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2d59f1=_0x1c11c0(),!_0x2d59f1)return _0x2ef2ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2d59f1[_0x2ef2ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1ecab9=_0x38b657(_0x2d59f1[_0x2ef2ba([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2d59f1[_0x2ef2ba([0x6a,0x74,0x69])])),await _0x365e7b()?_0x5be6a2()?_0x521ac6()?_0x2ef2ba([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x228467()?(_0x2d59f1[_0x2ef2ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ef2ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x365c21=_0x57cef5(_0x2ef2ba([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2d59f1[_0x2ef2ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2ef2ba([0x74,0x72,0x69,0x61,0x6c])&&(_0x365c21=_0x57cef5(_0x2ef2ba([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2142f7()):_0x2ef2ba([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2ef2ba([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2ef2ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2ef2ba([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x521ac6(){const _0x30477b=[_0x2ef2ba([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2ef2ba([0x74,0x72,0x69,0x61,0x6c])][_0x2ef2ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d59f1[_0x2ef2ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fa598/0x3e8:0xe10*_0x823a3b;return _0x2d59f1[_0x2ef2ba([0x65,0x78,0x70])]<_0x30477b;}function _0x5be6a2(){const _0x224568=_0x2d59f1[_0x2ef2ba([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x224568)return!0x1;if(_0x224568[_0x2ef2ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ef2ba([0x2a])))return!0x0;if(_0x224568[_0x2ef2ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ef2ba([0x52,0x48])))return!0x0;if(_0x224568[_0x2ef2ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ef2ba([0x52,0x52,0x48]))){if(_0x13832b())return!0x0;if(_0x47cf1e()||_0x1856ae())return!0x0;}return!0x1;}function _0x228467(){const _0x341bb4=_0x2d59f1[_0x2ef2ba([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x341bb4||0x0==_0x341bb4[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20bc71}=new URL(window[_0x2ef2ba([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x341bb4[_0x2ef2ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20bc71))return!0x0;const _0xe75c9a=_0x20bc71[_0x2ef2ba([0x73,0x70,0x6c,0x69,0x74])](_0x2ef2ba([0x2e]));return _0x341bb4[_0x2ef2ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x42efb9=>_0x42efb9[_0x2ef2ba([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2ef2ba([0x2a])))[_0x2ef2ba([0x6d,0x61,0x70])](_0x5afd1f=>_0x5afd1f[_0x2ef2ba([0x73,0x70,0x6c,0x69,0x74])](_0x2ef2ba([0x2e])))[_0x2ef2ba([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aacda=>_0x4aacda[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe75c9a[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ef2ba([0x6d,0x61,0x70])](_0x80b3d2=>Array(_0xe75c9a[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x80b3d2[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2ef2ba([0x66,0x69,0x6c,0x6c])](_0x80b3d2[0x0]===_0x2ef2ba([0x2a])?_0x2ef2ba([0x2a]):'')[_0x2ef2ba([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x80b3d2))[_0x2ef2ba([0x73,0x6f,0x6d,0x65])](_0x1a8dba=>_0xe75c9a[_0x2ef2ba([0x65,0x76,0x65,0x72,0x79])]((_0x2f03c9,_0x53f66e)=>_0x1a8dba[_0x53f66e]===_0x2f03c9||_0x1a8dba[_0x53f66e]===_0x2ef2ba([0x2a])));}function _0x2142f7(){return _0x365c21&&_0x1ecab9?new window[(_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x412d54,_0xc3c499)=>{_0x365c21[_0x2ef2ba([0x74,0x68,0x65,0x6e])](_0x412d54,_0xc3c499),_0x1ecab9[_0x2ef2ba([0x74,0x68,0x65,0x6e])](_0xa39e3e=>{_0xa39e3e!=_0x2ef2ba([0x56,0x61,0x6c,0x69,0x64])&&_0x412d54(_0xa39e3e);},_0xc3c499);}):_0x365c21||_0x1ecab9||_0x2ef2ba([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38b657(_0x1c46c0,_0x522d38){return new window[(_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xefbfec=>{if(_0x50305e())return _0xefbfec(_0x2ef2ba([0x56,0x61,0x6c,0x69,0x64]));_0xb10f7d(),_0x3b70fd[_0x2ef2ba([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2ef2ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x11b16b=!0x1;const _0x5652bf=_0x45e777();function _0x3e55e4(_0x1919ab){return!!_0x1919ab&&(typeof _0x1919ab===_0x2ef2ba([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1919ab===_0x2ef2ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1919ab[_0x2ef2ba([0x74,0x68,0x65,0x6e])]===_0x2ef2ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1919ab[_0x2ef2ba([0x63,0x61,0x74,0x63,0x68])]===_0x2ef2ba([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2ea336(_0x44efea){_0x5d1264(_0x44efea)[_0x2ef2ba([0x74,0x68,0x65,0x6e])](_0x175ae3=>{if(!_0x175ae3||_0x175ae3[_0x2ef2ba([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2ef2ba([0x6f,0x6b]))return _0x2ef2ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x16c62f(_0x1ad11c(_0x5652bf+_0x522d38))!=_0x175ae3[_0x2ef2ba([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2ef2ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2ef2ba([0x56,0x61,0x6c,0x69,0x64]);})[_0x2ef2ba([0x74,0x68,0x65,0x6e])](_0x381909=>(_0x462e4a(),_0x381909),()=>{const _0x3e0166=_0xf8d34a();return null==_0x3e0166?(_0x462e4a(),_0x2ef2ba([0x56,0x61,0x6c,0x69,0x64])):_0x2ef2ba(_0x2fa598-_0x3e0166>(0x26a1f6a0^_0x1ebcf1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2ef2ba([0x74,0x68,0x65,0x6e])](_0xefbfec)[_0x2ef2ba([0x63,0x61,0x74,0x63,0x68])](()=>{_0xefbfec(_0x2ef2ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5ac4bc=0x29b9c20^_0x1ebcf1;function _0x462e4a(){const _0x86f08c=_0x2ef2ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x16c62f(_0x1ad11c(_0x1c46c0)),_0x5bf703=_0x4f6e7f(_0x16c62f(window[_0x2ef2ba([0x4d,0x61,0x74,0x68])][_0x2ef2ba([0x63,0x65,0x69,0x6c])](_0x2fa598/_0x5ac4bc)));window[_0x2ef2ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ef2ba([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x86f08c,_0x5bf703);}function _0xf8d34a(){const _0x5aece9=_0x2ef2ba([0x6c,0x6c,0x63,0x74,0x2d])+_0x16c62f(_0x1ad11c(_0x1c46c0)),_0x43407a=window[_0x2ef2ba([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2ef2ba([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5aece9);return _0x43407a?window[_0x2ef2ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f6e7f(_0x43407a),0x10)*_0x5ac4bc:null;}function _0x5d1264(_0x5d2e26){return new window[(_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30de3a,_0x9214d0)=>{_0x5d2e26[_0x2ef2ba([0x74,0x68,0x65,0x6e])](_0x30de3a,_0x9214d0),window[_0x2ef2ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9214d0,0x2aca660^_0x1ebcf1);});}}_0x3b70fd[_0x2ef2ba([0x6f,0x6e])](_0x2ef2ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x49a621,_0x39c1a3)=>{if(_0x39c1a3[0x0]!=_0x1c46c0)return _0xefbfec(_0x2ef2ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39c1a3[0x1]={..._0x39c1a3[0x1],[_0x2ef2ba([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5652bf};},{[_0x2ef2ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ef2ba([0x68,0x69,0x67,0x68])}),_0x3b70fd[_0x2ef2ba([0x6f,0x6e])](_0x2ef2ba([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x284ded=>{_0x3e55e4(_0x284ded[_0x2ef2ba([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x11b16b=!0x0,_0x2ea336(_0x284ded[_0x2ef2ba([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2ef2ba([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2ef2ba([0x6c,0x6f,0x77])}),_0x21e7c4[_0x2ef2ba([0x74,0x68,0x65,0x6e])](()=>{_0x11b16b||_0xefbfec(_0x2ef2ba([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50305e(){return _0x3b70fd[_0x2ef2ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ef2ba([0x76,0x69,0x65,0x77])][_0x2ef2ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2ef2ba([0x61,0x75,0x74,0x6f]);}function _0xb10f7d(){_0x3b70fd[_0x2ef2ba([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2ef2ba([0x76,0x69,0x65,0x77])][_0x2ef2ba([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2ef2ba([0x61,0x75,0x74,0x6f]);}}function _0x57cef5(_0x1c5858){const _0x50c5ed=[new window[(_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58b1bd=>setTimeout(_0x58b1bd,0x2a44c6c^_0x1ebcf1)),_0x21e7c4[_0x2ef2ba([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b14ae=>{const _0x486c04=0x2ad72a7^_0x1ebcf1,_0x41e14d=_0x44ef4b[_0x2ef2ba([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x312023(){_0x41e14d[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x486c04&&_0x4b14ae();}_0x312023(),_0x41e14d[_0x2ef2ba([0x6f,0x6e])](_0x2ef2ba([0x61,0x64,0x64]),_0x312023);})),new window[(_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f77f8=>{function _0x50fc49(){for(const _0x41cebe in window)if(window[_0x2ef2ba([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2ef2ba([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x41cebe))&&window[_0x41cebe]==_0x24e9ef)return _0x2f77f8();_0x3b70fd[_0x2ef2ba([0x73,0x74,0x61,0x74,0x65])]!=_0x2ef2ba([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2ef2ba([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50fc49,0x2ad6128^_0x1ebcf1);}_0x495ca7(_0x2ef2ba([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x50fc49();})];return window[_0x2ef2ba([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2ef2ba([0x72,0x61,0x63,0x65])](_0x50c5ed)[_0x2ef2ba([0x74,0x68,0x65,0x6e])](()=>_0x1c5858);}async function _0x4ec768(){if(await _0x21e7c4,_0x495ca7(_0x2ef2ba([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xedf3ef=_0x44ef4b[_0x2ef2ba([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x22869f=_0x44ef4b[_0x2ef2ba([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])](_0xedf3ef[_0x2ef2ba([0x69,0x64])]),_0x56ea63=_0x4eb00a(_0x2ef2ba([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x56ea63[_0x2ef2ba([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xedf3ef['id'],_0x22869f?_0x22869f['id']:null,!0x0),_0x56ea63[_0x2ef2ba([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2ef2ba([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x56ea63[_0x2ef2ba([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x56ea63[_0x2ef2ba([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1be5f9,void(_0x56ea63[_0x2ef2ba([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1be5f9);}if(_0x495ca7(_0x2ef2ba([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x13d42b=_0x4eb00a(_0x2ef2ba([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x13d42b[_0x2ef2ba([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2ef2ba([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x13d42b[_0x2ef2ba([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x13d42b[_0x2ef2ba([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1be5f9,_0x13d42b[_0x2ef2ba([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1be5f9;}_0x3b70fd[_0x2ef2ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ef2ba([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1be5f9,_0x3b70fd[_0x2ef2ba([0x6d,0x6f,0x64,0x65,0x6c])][_0x2ef2ba([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1be5f9,_0x3b70fd[_0x2ef2ba([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2ef2ba([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x13832b(){return _0x495ca7(_0x2ef2ba([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4eb00a(_0x2ef2ba([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2ef2ba([0x73,0x74,0x61,0x74,0x65])]==_0x2ef2ba([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x47cf1e(){return _0x495ca7(_0x2ef2ba([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 _0x1856ae(){return _0x495ca7(_0x2ef2ba([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x34fc77(_0x38613b){const _0x181682=_0x1bf43a();_0x3b70fd[_0x181682]=_0x2ef2ba([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])+_0x38613b,_0x38613b[_0x2ef2ba([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2ef2ba([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1bf43a()]=_0x24e9ef),_0x38613b!=_0x2ef2ba([0x56,0x61,0x6c,0x69,0x64])&&_0x4ec768();}function _0x1bf43a(){const _0x11f043=window[_0x2ef2ba([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2ef2ba([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2ef2ba([0x6e,0x6f,0x77])]())[_0x2ef2ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2ef2ba([0x2e]),'');let _0x2a831a=_0x2ef2ba([0x51]);for(let _0x176efa=0x0;_0x176efa<_0x11f043[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x176efa+=0x2){let _0x4420f4=window[_0x2ef2ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x11f043[_0x2ef2ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x176efa,_0x176efa+0x2));_0x4420f4>=_0x438667[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4420f4-=_0x438667[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2a831a+=_0x438667[_0x4420f4];}return _0x2a831a;}function _0x1c11c0(){const _0x51f00c=_0x4b9718[_0x2ef2ba([0x73,0x70,0x6c,0x69,0x74])](_0x2ef2ba([0x2e]));if(0x3!=_0x51f00c[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2634b9(_0x51f00c[0x1]);function _0x2634b9(_0x34814a){const _0x13c737=_0x2773bd(_0x34814a);return _0x13c737&&_0x1af58b()?_0x13c737:null;function _0x1af58b(){const _0x514748=_0x13c737[_0x2ef2ba([0x6a,0x74,0x69])],_0x4f1540=window[_0x2ef2ba([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x514748[_0x2ef2ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x514748[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33c729={..._0x13c737,[_0x2ef2ba([0x6a,0x74,0x69])]:_0x514748[_0x2ef2ba([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x514748[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33c729[_0x2ef2ba([0x76,0x63])],_0x1ad11c(_0x33c729)==_0x4f1540;}}}async function _0x365e7b(){let _0x5d4bff=!0x0;try{const _0x39ed27=_0x4b9718[_0x2ef2ba([0x73,0x70,0x6c,0x69,0x74])](_0x2ef2ba([0x2e])),[_0x3f6b98,_0x14ca24,_0x503054]=_0x39ed27;return _0x4a05be(_0x3f6b98),await _0x3347f8(_0x3f6b98,_0x14ca24,_0x503054),_0x5d4bff;}catch{return!0x1;}function _0x4a05be(_0x1ed7c0){const _0x5dca68=_0x2773bd(_0x1ed7c0);_0x5dca68&&_0x5dca68[_0x2ef2ba([0x61,0x6c,0x67])]==_0x2ef2ba([0x45,0x53,0x32,0x35,0x36])||(_0x5d4bff=!0x1);}async function _0x3347f8(_0x1a3458,_0x4ac784,_0xd8901){const _0x4c14fb=window[_0x2ef2ba([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2ef2ba([0x66,0x72,0x6f,0x6d])](_0x2fd5b7(_0xd8901),_0x342742=>_0x342742[_0x2ef2ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1f8aed=new window[(_0x2ef2ba([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2ef2ba([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1a3458+_0x2ef2ba([0x2e])+_0x4ac784),_0x5a6d78=window[_0x2ef2ba([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2ef2ba([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5a6d78)return;const _0x34a5ed=await _0x5a6d78[_0x2ef2ba([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2ef2ba([0x6a,0x77,0x6b]),_0x5fbe33,{[_0x2ef2ba([0x6e,0x61,0x6d,0x65])]:_0x2ef2ba([0x45,0x43,0x44,0x53,0x41]),[_0x2ef2ba([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2ef2ba([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2ef2ba([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5a6d78[_0x2ef2ba([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2ef2ba([0x6e,0x61,0x6d,0x65])]:_0x2ef2ba([0x45,0x43,0x44,0x53,0x41]),[_0x2ef2ba([0x68,0x61,0x73,0x68])]:{[_0x2ef2ba([0x6e,0x61,0x6d,0x65])]:_0x2ef2ba([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x34a5ed,_0x4c14fb,_0x1f8aed)||(_0x5d4bff=!0x1);}}function _0x2773bd(_0x299ae5){return _0x299ae5[_0x2ef2ba([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2ef2ba([0x65,0x79]))?JSON[_0x2ef2ba([0x70,0x61,0x72,0x73,0x65])](_0x2fd5b7(_0x299ae5)):null;}function _0x2fd5b7(_0x184c23){return window[_0x2ef2ba([0x61,0x74,0x6f,0x62])](_0x184c23[_0x2ef2ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2ef2ba([0x2b]))[_0x2ef2ba([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2ef2ba([0x2f])));}function _0x1ad11c(_0x117c6e){let _0x5a3acc=0x1505;function _0x4c62da(_0x4adacc){for(let _0x69ba1f=0x0;_0x69ba1f<_0x4adacc[_0x2ef2ba([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x69ba1f++){const _0x1e68b1=_0x4adacc[_0x2ef2ba([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x69ba1f);_0x5a3acc=(_0x5a3acc<<0x5)+_0x5a3acc+_0x1e68b1,_0x5a3acc&=_0x5a3acc;}}function _0x5d5595(_0x18f826){Array[_0x2ef2ba([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x18f826)?_0x18f826[_0x2ef2ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5d5595):_0x18f826&&typeof _0x18f826==_0x2ef2ba([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2ef2ba([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x18f826)[_0x2ef2ba([0x73,0x6f,0x72,0x74])]()[_0x2ef2ba([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33ba7d,_0x362e20])=>{_0x4c62da(_0x33ba7d),_0x5d5595(_0x362e20);}):_0x4c62da(window[_0x2ef2ba([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x18f826));}return _0x5d5595(_0x117c6e),_0x5a3acc>>>0x0;}function _0x16c62f(_0x34a3c3){return _0x34a3c3[_0x2ef2ba([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2ef2ba([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2ef2ba([0x30]));}function _0x4f6e7f(_0x1426c5){return _0x1426c5[_0x2ef2ba([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2ef2ba([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2ef2ba([0x6a,0x6f,0x69,0x6e])]('');}function _0x495ca7(_0x3dc006){return _0x3b70fd[_0x2ef2ba([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ef2ba([0x68,0x61,0x73])](_0x3dc006);}function _0x4eb00a(_0x96b048){return _0x3b70fd[_0x2ef2ba([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2ef2ba([0x67,0x65,0x74])](_0x96b048);}function _0x1be5f9(){}function _0x2ef2ba(_0x1fd86c){return _0x1fd86c['map'](_0x31f406=>String['fromCharCode'](_0x31f406))['join']('');}_0x34fc77(await _0x52c344());}(this);}['createRevision'](_0x5d8280){const _0x174b1e=this['editor']['plugins']['get']('Users');return new h({'id':_0x5d8280['id'],'name':_0x5d8280['name'],'creator':_0x5d8280['creatorId']?_0x174b1e['getUser'](_0x5d8280['creatorId']):null,'diffData':_0x5d8280['diffData']||_0x5d8280['data'],'authors':_0x5d8280['authorsIds']['map'](_0x2a5f79=>_0x174b1e['getUser'](_0x2a5f79)),'createdAt':new Date(_0x5d8280['createdAt']),'attributes':_0x5d8280['attributes'],'fromVersion':_0x5d8280['fromVersion'],'toVersion':_0x5d8280['toVersion']});}['addRevision'](_0xa22bb9,_0x4ef98a=0x0){this['_revisions']['add'](_0xa22bb9,_0x4ef98a);}['getRevision'](_0x504234){return this['_revisions']['get'](_0x504234);}['getRevisions'](_0xf07963={'toJSON':!0x1}){const _0x1fb5a0=Array['from'](this['_revisions']);return _0x1fb5a0['reverse'](),_0xf07963['toJSON']?_0x1fb5a0['map'](_0x428c41=>_0x428c41['toJSON']()):_0x1fb5a0;}['getIndex'](_0x140c23){return this['_revisions']['getIndex'](_0x140c23);}['getEarlierVisibleRevision'](_0x56de54){const [,_0x4e5fc1]=this['getRevisionsIterator'](_0x56de54,{'direction':'earlier'});return _0x4e5fc1;}['getLaterVisibleRevision'](_0x5aa009){const [,_0xf01d23]=this['getRevisionsIterator'](_0x5aa009,{'direction':'later'});return _0xf01d23;}['getRevisionsInDiff'](_0x160f4e){const _0x2162f4=[];for(const _0x46d388 of this['getRevisionsIterator'](_0x160f4e['newRevisionId']))if(_0x2162f4['push'](_0x46d388),_0x46d388['id']===_0x160f4e['oldRevisionId'])break;return _0x2162f4;}*['getRevisionsIterator'](_0xc88edf,{direction:_0x57a037='earlier',filter:_0x1930a4=()=>!0x0}={}){const _0x4c157f='earlier'===_0x57a037?0x1:-0x1;let _0x43f907=this['_revisions']['get'](_0xc88edf),_0x40dbe0=this['getIndex'](_0x43f907);for(yield _0x43f907;_0x43f907;){if(_0x40dbe0+=_0x4c157f,_0x43f907=this['getRevision'](_0x40dbe0),!_0x43f907)return;_0x1930a4(_0x43f907)&&(yield _0x43f907);}}}class V extends _0x5bec45{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x497425,'c'],[_0x1acec9,'a'],[_0x44b481,'e'],[_0x3c18a9,'r'],[_0x4262c1,'u']]);['_typeCharToViewClass']=new Map([['c',_0x497425],['a',_0x1acec9],['e',_0x44b481],['r',_0x3c18a9],['u',_0x4262c1]]);async['loadRevisionData'](_0x52c561,_0x382cd8){if(_0x52c561['diffData']||!_0x382cd8)return;const _0x369016=this['editor']['config']['get']('collaboration.channelId'),_0x563bcd=await _0x382cd8['getRevision']({'channelId':_0x369016,'revisionId':_0x52c561['id']});_0x52c561['diffData']=_0x563bcd['diffData'];}['getRevisionDocumentData'](_0x37b779){const _0x38424f={};for(const _0x52be0f in _0x37b779['diffData']){if(_0x37b779['diffData'][_0x52be0f]['attachChange']&&!_0x37b779['diffData'][_0x52be0f]['attachChange']['isAttached'])continue;const _0xdb19f7=this['_removeRevisionMarkers'](JSON['parse'](_0x37b779['diffData'][_0x52be0f]['insertions'])),_0x4f2eb2=this['editor']['editing']['view']['document'],_0x5714a4=new _0x3e2742(_0x4f2eb2,_0xdb19f7['map'](_0x2a1621=>this['_getViewFromDiffObj'](_0x2a1621,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x38424f[_0x52be0f]=this['editor']['data']['processor']['toData'](_0x5714a4),this['editor']['data']['processor']['useFillerType']('default');}return _0x38424f;}['getRevisionRootsAttributes'](_0xe1a2e2){const _0x3bddba={};for(const _0x7643fb in _0xe1a2e2['diffData'])_0xe1a2e2['diffData'][_0x7643fb]['attachChange']&&!_0xe1a2e2['diffData'][_0x7643fb]['attachChange']['isAttached']||(_0x3bddba[_0x7643fb]=_0xe1a2e2['diffData'][_0x7643fb]['attributesAfter']||{});return _0x3bddba;}['_getTypeCharForViewElement'](_0xb7bffb){return this['_viewClassToTypeChar']['get'](_0xb7bffb['constructor']);}['_getViewFromDiffObj'](_0x472d10,_0x3d8b24){const _0x225ec5=this['editor']['editing']['view']['document'];if('string'==typeof _0x472d10)return new _0x27ef86(_0x225ec5,_0x472d10);{let _0x5722de,_0x4356a4;_0x4356a4='u'==_0x472d10['type']||'r'==_0x472d10['type']?[]:_0x472d10['children']['map'](_0x5a9b73=>this['_getViewFromDiffObj'](_0x5a9b73,_0x3d8b24));const _0x4fc88b=this['_typeCharToViewClass']['get'](_0x472d10['type'])||_0x99a3aa,_0x215617=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5722de=new _0x4fc88b(_0x225ec5,_0x472d10['name'],_0x472d10['attributes'],_0x4356a4),'u'==_0x472d10['type']&&_0x472d10['children'][0x0]){const _0x39a6ce=_0x472d10['children'][0x0];if(_0x5722de['render']=function(_0x37133e){const _0x4b8d7b=_0x37133e['createElement']('div');return _0x4b8d7b['innerHTML']=_0x39a6ce,_0x4b8d7b['childNodes'][0x0];},_0x3d8b24){const _0x139eb4=new _0x3e2742(_0x225ec5);_0x139eb4['_appendChild'](_0x5722de);const _0x203cf2=Array['from'](_0x215617['viewChildrenToDom'](_0x139eb4,{'bind':!0x1})),_0x459893=_0x215617['domDocument']['createElement']('div');_0x459893['append'](..._0x203cf2),_0x5722de=Array['from'](_0x215617['domChildrenToView'](_0x459893))[0x0];}}else{if('r'==_0x472d10['type']&&_0x472d10['children'][0x0]){const _0x481964=_0x472d10['children'][0x0];if(_0x5722de['render']=function(_0x1d2894){_0x1d2894['innerHTML']=_0x481964;},_0x3d8b24){const _0x12c5b2=new _0x3e2742(_0x225ec5);_0x12c5b2['_appendChild'](_0x5722de);const _0x464430=Array['from'](_0x215617['viewChildrenToDom'](_0x12c5b2,{'bind':!0x1})),_0x4fd85f=_0x215617['domDocument']['createElement']('div');_0x4fd85f['append'](..._0x464430);const _0xaba539=Array['from'](_0x215617['domChildrenToView'](_0x4fd85f));_0xaba539['length']>0x1?_0x5722de['_appendChild'](_0xaba539):_0x5722de=_0xaba539[0x0];}}}if(_0x472d10['customProperties']){for(const [_0x26a1ba,_0x11378f]of _0x472d10['customProperties'])_0x5722de['_setCustomProperty'](_0x26a1ba,_0x11378f);}const _0x1d9f13=void 0x0===_0x472d10['fillerOffset']?null:_0x472d10['fillerOffset'];return null!==_0x1d9f13&&(_0x5722de['getFillerOffset']=()=>_0x1d9f13),_0x5722de;}}['_makeModelFromViewString'](_0x35a9a0){const _0x32749b=JSON['parse'](_0x35a9a0),_0x44cbd6=this['editor']['editing']['view']['document'],_0xbb4434=new _0x3e2742(_0x44cbd6,_0x32749b['map'](_0x319fe7=>this['_getViewFromDiffObj'](_0x319fe7,!0x0)));return this['editor']['data']['toModel'](_0xbb4434);}['_removeRevisionMarkers'](_0x24d888){return(_0x24d888=_0x24d888['filter'](_0x10e593=>!_0x10e593['name']||'revision-start'!==_0x10e593['name']&&'revision-end'!==_0x10e593['name']))['forEach'](_0x4b712f=>{'string'!=typeof _0x4b712f&&(_0x4b712f['children']=this['_removeRevisionMarkers'](_0x4b712f['children']),_0x4b712f['attributes']=_0x4b712f['attributes']['filter'](_0x3e69f7=>!_0x3e69f7[0x0]['startsWith']('data-revision-')));}),_0x24d888;}}function g(_0x2b0fe0,_0x1c6f41,_0x4a30eb){const t=_0x2b0fe0['t'];switch(_0x1c6f41){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'},_0x4a30eb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4a30eb);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x5bec45{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x59fd86,I,V,_0x2d198c];}constructor(_0x473e05){super(_0x473e05),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3dcf89=_0x45e777();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3dcf89},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x51c808=this['repository']['getRevision'](0x0),_0x4fe745=_0x51c808&&null===_0x51c808['creator']?_0x51c808:null;if(this['_continueCurrentRevision']=!!_0x4fe745&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x30c311=this['_source']['getCurrentRevisionId'](),_0x541171=this['repository']['getRevision'](_0x30c311);if(_0x541171)this['_startingVersion']=_0x541171['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3934dd=this['_source']['history']['_operations']['find'](_0x29f9c6=>!_0x29f9c6['_isInit']),_0x28c891=_0x3934dd?_0x3934dd['baseVersion']:this['_source']['history']['version'];_0x51c808?(_0x51c808['toVersion']<_0x28c891&&_0x51c808['_update']({'toVersion':_0x28c891}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4fe745['id'],this['_startingVersion']=_0x4fe745['fromVersion']):(this['_startingVersion']=_0x51c808['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x28c891,this['_continueCurrentRevision']=!0x1);}}else _0x4fe745&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4fe745['toVersion'],this['editor']['model']['document']['history']['version']),_0x4fe745['fromVersion']===_0x4fe745['toVersion']?(0x0!==_0x4fe745['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fe745['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4fe745['id'],this['_startingVersion']=_0x4fe745['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',_0x1fdad1=>!_0x1fdad1),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1cb55b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5700a6;for(const _0x31e880 in _0x1cb55b){const _0x1710b7=_0x31e880,_0x4099c1=_0x1cb55b[_0x1710b7];if('revisionHistoryLicenseKeyValid'==_0x4099c1||'revisionHistoryLicenseKeyInvalid'==_0x4099c1||'revisionHistoryLicenseKeyExpired'==_0x4099c1||'revisionHistoryLicenseKeyDomainLimit'==_0x4099c1||'revisionHistoryLicenseKeyNotAllowed'==_0x4099c1||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4099c1||'revisionHistoryLicenseKeyTrialLimit'==_0x4099c1||'revisionHistoryLicenseKeyUsageLimit'==_0x4099c1){delete _0x1cb55b[_0x1710b7],_0x5700a6=_0x4099c1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5700a6&&_0x1cb55b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5700a6&&_0x1cb55b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5700a6&&_0x1cb55b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5700a6&&_0x1cb55b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5700a6&&_0x1cb55b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5700a6&&_0x1cb55b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5700a6&&_0x1cb55b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1a9e4a=this['repository']['getRevision'](0x0),_0x32b886=await this['getRevisionDocumentData'](_0x1a9e4a),_0x469f8b=await this['getRevisionRootsAttributes'](_0x1a9e4a);this['_replaceEditorDataWithRevisionData'](_0x32b886,_0x469f8b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2baca2){this['_source']=_0x2baca2;}async['update'](){const _0x42a663=await this['_source']['getLatestVersion']();if(_0x42a663>this['currentRevision']['toVersion']){await this['_loadState']();const _0x246f8c=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x42a663});_0x246f8c['authors']=_0x246f8c['authorsIds']['map'](_0x388906=>this['editor']['plugins']['get']('Users')['getUser'](_0x388906)),this['currentRevision']['_update'](_0x246f8c);}}async['saveRevision'](_0xa68346={},_0x5caf27=null){const _0x295819=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5caf27>this['currentRevision']['toVersion']&&(_0x5caf27=null),null===_0x5caf27&&(_0x5caf27=await this['_source']['getLatestVersion']());const _0x50bbb2=this['_getFromVersion'](_0x5caf27),_0x28ee88=this['buildRevisionData']({'from':_0x50bbb2,'to':_0x5caf27});if(this['currentRevision']['toVersion']<_0x5caf27){const _0x8b909d=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5caf27,'to':_0x5caf27});_0x8b909d['authors']=[],_0x8b909d['authorsIds']=[],_0x8b909d['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x8b909d,!0x0),delete _0x8b909d['authors'],_0x295819['push'](_0x8b909d);}_0xa68346['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xa68346['name']=_0xa68346['name']||null,_0xa68346['id']=_0xa68346['id']||_0x45e777(),_0xa68346={..._0xa68346,..._0x28ee88};const _0x423768=this['addRevisionData'](_0xa68346);_0x295819['push'](_0xa68346);const _0x5909d0=this['repository']['getIndex'](_0x423768);if(0x0!==_0x5909d0){const _0x42b6f9=this['repository']['getRevision'](_0x5909d0-0x1);if(_0x42b6f9['fromVersion']!==_0x5caf27){const _0x1b1257=this['_revisionDataBuilder']['getData'](_0x5caf27,_0x42b6f9['toVersion']),_0xd4d630={'id':_0x42b6f9['id'],'diffData':_0x1b1257['diffData'],'authorsIds':_0x1b1257['authorsIds'],'authors':_0x1b1257['authorsIds']['map'](_0xbaf908=>this['editor']['plugins']['get']('Users')['getUser'](_0xbaf908)),'fromVersion':_0x5caf27};_0x42b6f9===this['currentRevision']&&(_0xd4d630['createdAt']=new Date(_0xa68346['createdAt']['getTime']()+0xa)),_0x42b6f9['_update'](_0xd4d630,!0x0),delete _0xd4d630['authors'],_0x295819['push'](_0xd4d630);}}if(this['adapter']){for(const _0x3be656 of _0x295819)this['_bufferUpdate'](_0x3be656['id'],_0x3be656,!0x0);this['sendBufferedUpdates']();}return _0x423768;}['addRevisionData'](_0x4ee02f){const _0x336eb9=this['repository']['createRevision'](_0x4ee02f);return this['adapter']&&_0x336eb9['on']('_update',(_0x1e6308,_0x4e0290,_0x364ff2)=>{_0x364ff2||(this['_bufferUpdate'](_0x4e0290['id'],_0x4e0290,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x336eb9,this['_findInsertionIndex'](_0x336eb9)),_0x336eb9;}async['getRevisionDocumentData'](_0x533feb){return await this['_utils']['loadRevisionData'](_0x533feb,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x533feb);}async['getRevisionRootsAttributes'](_0x512c13){return await this['_utils']['loadRevisionData'](_0x512c13,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x512c13);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x507afc=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x31787e=0x0;_0x31787e<_0x507afc['length'];_0x31787e++){const _0x22b117=_0x507afc[_0x31787e];let _0x4e5791=!0x1;for(const _0xbd73ed of Object['keys'](_0x22b117))void 0x0===_0x22b117[_0xbd73ed]?delete _0x22b117[_0xbd73ed]:'id'!==_0xbd73ed&&(_0x4e5791=!0x0);_0x4e5791||(_0x507afc[_0x31787e]=null);}if(_0x507afc=_0x507afc['filter'](_0x1265cc=>null!==_0x1265cc),!_0x507afc['length'])return;for(let _0x4dae62=0x0;_0x4dae62<_0x507afc['length'];_0x4dae62++){const _0x51f44b=_0x507afc[_0x4dae62];void 0x0!==_0x51f44b['fromVersion']&&void 0x0===_0x51f44b['toVersion']&&(_0x51f44b['toVersion']=this['repository']['getRevision'](_0x51f44b['id'])['toVersion']),void 0x0!==_0x51f44b['toVersion']&&void 0x0===_0x51f44b['fromVersion']&&(_0x51f44b['fromVersion']=this['repository']['getRevision'](_0x51f44b['id'])['fromVersion']);}const _0x13fe06=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x507afc,_0x13fe06)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x234fe9=>{if(_0x234fe9){for(const _0x30b843 of _0x234fe9)this['setRevisionData']({'id':_0x30b843['id'],'createdAt':_0x30b843['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2323c3=null,from:_0x5dffeb=null,to:_0x1b253a=null}){_0x5dffeb=null!==_0x5dffeb?_0x5dffeb:_0x2323c3['fromVersion'],_0x1b253a=null!==_0x1b253a?_0x1b253a:_0x2323c3['toVersion'];const _0x19df53=this['_revisionDataBuilder']['getData'](_0x5dffeb,_0x1b253a),_0x8a4f0e={'diffData':_0x19df53['diffData'],'authorsIds':_0x19df53['authorsIds'],'fromVersion':_0x5dffeb,'toVersion':_0x1b253a};if(!_0x2323c3||_0x1b253a!==_0x2323c3['toVersion']){const _0x327c0e=_0x1b253a-0x1,_0x844ae7=this['_source']['history']['getOperation'](_0x327c0e);_0x8a4f0e['createdAt']=_0x844ae7&&_0x844ae7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5dffeb===this['_loadedStateData']['fromVersion']){for(const _0x1a3f16 of this['_loadedStateData']['authors'])_0x8a4f0e['authorsIds']['includes'](_0x1a3f16['id'])||_0x8a4f0e['authorsIds']['push'](_0x1a3f16['id']);}return _0x8a4f0e;}['_bufferUpdate'](_0x38f55d,_0x4f15d3,_0x4fdf84){if(this['_bufferedUpdates']['has'](_0x38f55d)){const _0x2ffb4e=this['_bufferedUpdates']['get'](_0x38f55d);_0x4f15d3=_0x4fdf84?{..._0x2ffb4e,..._0x4f15d3}:{..._0x4f15d3,..._0x2ffb4e};}this['_bufferedUpdates']['set'](_0x38f55d,_0x4f15d3);}['setRevisionData'](_0x1dd706){const _0x4f0742=this['repository']['getRevision'](_0x1dd706['id']);if(_0x1dd706['createdAt']&&(_0x1dd706['createdAt']=new Date(_0x1dd706['createdAt'])),_0x1dd706['authorsIds']){const _0x252c7d=this['editor']['plugins']['get']('Users');_0x1dd706['authors']=_0x1dd706['authorsIds']['map'](_0x547fe6=>_0x252c7d['getUser'](_0x547fe6));}_0x4f0742['_update'](_0x1dd706,!0x0);}['_createInitialRevision'](_0x17fba5){const _0x25b3eb=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x25b3eb)this['_initialRevisionId']=_0x25b3eb['id'];else{const _0x3eb10c=!this['editor']['model']['document']['roots']['find'](_0xff47e0=>this['editor']['model']['hasContent'](_0xff47e0)),_0x594b20=this['editor']['plugins']['get']('Users')['me']['id'],_0x43e36b=g(this['editor']['locale'],_0x3eb10c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x17fba5,'to':_0x17fba5,'id':this['_initialRevisionId'],'name':_0x43e36b,'creatorId':_0x594b20});}}['_createCurrentRevision'](_0x45686e){const _0x215f28=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x215f28),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x45686e,'to':_0x45686e,'id':_0x215f28,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x2a0902,_0x19d8fd){let _0x259adc=this['editor']['config']['get']('initialData'),_0x2dbaaf=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x259adc){_0x259adc={};for(const _0x3aa4c3 of this['editor']['model']['document']['getRootNames']())_0x259adc[_0x3aa4c3]='';}if('string'==typeof _0x259adc&&(_0x259adc={'main':_0x259adc}),void 0x0===_0x2dbaaf){_0x2dbaaf={};for(const _0x30236e of this['editor']['model']['document']['getRootNames']())_0x2dbaaf[_0x30236e]={};}let _0x4f705a=!0x1;const _0x460af4=Object['keys'](_0x259adc),_0x4181a5=Object['keys'](_0x2a0902);for(const _0x5cb642 of _0x460af4){if(_0x259adc[_0x5cb642]!==_0x2a0902[_0x5cb642]&&''!==_0x259adc[_0x5cb642]['trim']()){_0x4f705a=!0x0;break;}if(!_0x50dd39(_0x2dbaaf[_0x5cb642],_0x19d8fd[_0x5cb642])&&Object['keys'](_0x2dbaaf[_0x5cb642])['length']>0x0){_0x4f705a=!0x0;break;}}_0x4f705a||(_0x4f705a=_0x4181a5['some'](_0x44129c=>!this['editor']['model']['document']['getRoot'](_0x44129c))),_0x4f705a&&_0x4e50a8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x259adc,'editorRootsAttributes':_0x2dbaaf,'revisionData':_0x2a0902,'revisionRootsAttributes':_0x19d8fd}),this['editor']['config']['set']('initialData',_0x2a0902),this['editor']['config']['set']('rootsAttributes',_0x19d8fd);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1912ca=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1912ca['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x48f99a){const _0x19166c=this['repository']['getRevisions']();_0x19166c['reverse']();let _0x4b6e06=0x0;for(;_0x4b6e06<_0x19166c['length'];){const _0x197528=_0x19166c[_0x4b6e06];if(_0x197528===this['currentRevision']){_0x4b6e06++;continue;}if(_0x197528['id']===this['_initialRevisionId'])break;const _0x3c6be1=_0x48f99a['toVersion']-_0x197528['toVersion']||_0x48f99a['fromVersion']-_0x197528['fromVersion'];if(_0x3c6be1>0x0)break;if(_0x3c6be1<0x0)_0x4b6e06++;else{if(!_0x48f99a['creator']&&_0x197528['creator'])break;if(_0x197528['creator']||!_0x48f99a['creator']){if(_0x48f99a['createdAt']>_0x197528['createdAt'])break;_0x4b6e06++;}else _0x4b6e06++;}}return _0x4b6e06;}['_getFromVersion'](_0x2c365e){const _0xef6ec5=this['repository']['getRevisions']();_0xef6ec5['reverse'](),_0xef6ec5['shift']();const _0x23008a=_0xef6ec5['find'](_0x394dea=>_0x394dea['toVersion']<=_0x2c365e)['toVersion'];return _0x23008a<this['_startingVersion']?this['_startingVersion']:_0x23008a;}['_makeRevision']({name:_0x164df7,from:_0x2606ce,to:_0x44ee28,creatorId:_0x14bd2c,id:_0x215c58}){const _0x130ea8=this['buildRevisionData']({'from':_0x2606ce,'to':_0x44ee28});_0x130ea8['name']=_0x164df7,_0x130ea8['creatorId']=_0x14bd2c,_0x130ea8['id']=_0x215c58;const _0x26397a=this['addRevisionData'](_0x130ea8);return this['adapter']&&this['_bufferUpdate'](_0x130ea8['id'],_0x130ea8,!0x0),_0x26397a;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4d07e6){this['editor']=_0x4d07e6,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'](_0x221f10){this['source']=_0x221f10;const _0x398277=new Map(),_0x4d8c5b=new Map(),_0x39263c=this['editor']['model']['document']['roots']['map'](_0x43a642=>_0x43a642['rootName']);for(const _0x1c13ee of _0x39263c){const _0x40171e=this['editor']['model']['document']['getRoot'](_0x1c13ee),_0x4a2b15=N(_0x40171e);_0x398277['set'](_0x1c13ee,_0x4a2b15),_0x4d8c5b['set'](_0x1c13ee,Object['fromEntries'](_0x40171e['getAttributes']()));}const _0xef6012=Array['from'](this['editor']['model']['markers'])['map'](_0x335530=>[_0x335530['name'],_0x335530['getRange']()]),_0x31137c=this['source']['version'];this['_saveMetaData'](_0x31137c,_0x398277,_0xef6012,_0x4d8c5b),this['_startingRevisionId']=this['_revisionId'];const _0x26ea65=new Map(),_0x42098c=new Map();for(const _0x5c4b52 of _0x39263c){const _0x1a1ac7=P(_0x5c4b52);_0x26ea65['set'](_0x5c4b52,_0x1a1ac7),_0x42098c['set'](_0x5c4b52,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x26ea65,[],_0x42098c);}['getData'](_0xfb93ef,_0x439892){if(this['_lastFrom']===_0xfb93ef&&this['_lastTo']<=_0x439892)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x439892,!0x0);else{if(!this['_savedMetaData']['has'](_0xfb93ef)){const _0x30fdab=this['_getPreviousFrom'](_0xfb93ef);this['_calculateMetaData'](_0x30fdab,_0xfb93ef,!0x1);}this['_calculateMetaData'](_0xfb93ef,_0x439892,!0x0);}return this['_lastFrom']=_0xfb93ef,this['_lastTo']=_0x439892,this['_getState']();}['loadState'](_0xacaa0d){const _0x1b37db=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xacaa0d['fromVersion'],this['_lastTo']=_0xacaa0d['toVersion'];for(const _0xceb9fd in _0xacaa0d['diffData']){const _0x1b5b2c=_0xacaa0d['diffData'][_0xceb9fd]['attachChange'],_0x45ce16=_0x215734(_0xacaa0d['diffData'][_0xceb9fd]['attributesBefore'])||{},_0x519ec8=_0x1b37db['_makeModelFromViewString'](_0xacaa0d['diffData'][_0xceb9fd]['deletions']);_0x519ec8['rootName']=_0xceb9fd,_0x519ec8['_isAttached']=!_0x1b5b2c||!_0x1b5b2c['isAttached'],_0x519ec8['isAttached']=()=>_0x519ec8['_isAttached'],this['_baseRoots']['set'](_0xceb9fd,_0x519ec8),this['_baseRootsAttributes']['set'](_0xceb9fd,_0x45ce16),_0x1b5b2c&&this['_touchedRoots']['set'](_0xceb9fd,_0x1b5b2c);const _0x495db2=this['_makeIdsRoot'](_0x519ec8);this['_baseIdsRoots']['set'](_0xceb9fd,_0x495db2);for(const [_0x491df2,_0x246111]of _0x519ec8['markers']){if(!_0x491df2['startsWith']('revision:'))continue;const _0x3749e4=_0x491df2['split'](':')[0x2];for(const _0x4b18fd of _0x246111['getWalker']({'singleCharacters':!0x0})){const _0x4b6860=this['_getVidAttributeName'](_0x4b18fd),_0x2fa3df='elementEnd'==_0x4b18fd['type']?_0x4b18fd['previousPosition']['path']['slice'](0x0,-0x1):_0x4b18fd['previousPosition']['path'],_0x5e9c3e=_0x495db2['getNodeByPath'](_0x2fa3df)['getAttribute'](_0x4b6860);this['_touched']['set'](_0x5e9c3e,{'userId':_0x3749e4});}}}this['_startingRevisionId']=this['_revisionId'];const _0x310d86=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x10c508=>!this['_touched']['has'](_0x10c508));let _0x442a54=0x0;const _0x4ed603=new Map();for(const _0x236c26 in _0xacaa0d['diffData']){const _0x1bca3c=_0xacaa0d['diffData'][_0x236c26]['attachChange'],_0x2d2100=_0x215734(_0xacaa0d['diffData'][_0x236c26]['attributesAfter'])||{},_0x324ae6=_0x1b37db['_makeModelFromViewString'](_0xacaa0d['diffData'][_0x236c26]['insertions']);_0x324ae6['rootName']=_0x236c26,_0x324ae6['_isAttached']=!_0x1bca3c||_0x1bca3c['isAttached'],_0x324ae6['isAttached']=()=>_0x324ae6['_isAttached'],this['_diffRoots']['set'](_0x236c26,_0x324ae6),this['_diffRootsAttributes']['set'](_0x236c26,_0x2d2100);const _0x117283=this['_makeIdsRoot'](_0x324ae6,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x236c26,_0x117283),_0x4ed603['set'](_0x236c26,_0x324ae6['isAttached']()?_0x2d2100:{});for(const [_0x1ec031,_0x3a31b6]of _0x324ae6['markers']){if(!_0x1ec031['startsWith']('revision:'))continue;const _0x19d329=_0x1ec031['split'](':')[0x2];for(const _0x280869 of _0x3a31b6['getWalker']({'singleCharacters':!0x0})){const _0x462b20=this['_getVidAttributeName'](_0x280869),_0xf01c75=this['_revisionId']++,_0x5a405c='elementEnd'==_0x280869['type']?_0x280869['previousPosition']['path']['slice'](0x0,-0x1):_0x280869['previousPosition']['path'];_0x117283['getNodeByPath'](_0x5a405c)['_setAttribute'](_0x462b20,_0xf01c75),this['_touched']['set'](_0xf01c75,{'userId':_0x19d329});}}for(const _0x137930 of this['editor']['model']['createRangeIn'](_0x324ae6)['getWalker']({'singleCharacters':!0x0})){const _0x108d0f=this['_getVidAttributeName'](_0x137930),_0x4c62fc='elementEnd'==_0x137930['type']?_0x137930['previousPosition']['path']['slice'](0x0,-0x1):_0x137930['previousPosition']['path'],_0xce1aaa=_0x117283['getNodeByPath'](_0x4c62fc);_0xce1aaa['getAttribute'](_0x108d0f)>0x0||_0xce1aaa['_setAttribute'](_0x108d0f,_0x310d86[_0x442a54++]);}for(const [_0x300732,_0x25377d]of _0x324ae6['markers'])_0x300732['startsWith']('revision:')||this['_markers']['set'](_0x300732,_0x25377d);}const _0xa0fcc1=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xa0fcc1),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xa0fcc1,0x1));const _0x45c2de=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x45c2de),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x45c2de,0x1));const _0x2a6724=Array['from'](this['_diffRoots'])['map'](([_0x50cec6,_0x2383cb])=>[_0x50cec6,N(_0x2383cb)]);this['_saveMetaData'](this['_lastTo'],_0x2a6724,this['_markers'],_0x4ed603);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x4f7b26,_0x203e93,_0x3b8fa6,_0x31b8e6){const _0x5c0c5c=new Map(_0x203e93),_0x487b44=new Map(_0x215734(_0x31b8e6)),_0x84f522=new Map();for(const [_0x58a643,_0x10f59a]of _0x3b8fa6)_0x84f522['set'](_0x58a643,{'start':_0x10f59a['start']['clone'](),'end':_0x10f59a['end']['clone'](),'rootName':_0x10f59a['root']['rootName']});this['_savedMetaData']['set'](_0x4f7b26,{'roots':_0x5c0c5c,'markers':_0x84f522,'rootsAttributes':_0x487b44});}['_removeMetaData'](_0x1d9323){this['_savedMetaData']['delete'](_0x1d9323);}['_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'](_0xae8594,_0x54b9ff=null){let _0xf42621=null;_0xae8594['is']('documentFragment')||(_0xf42621=new ut(_0xae8594['name'],{'vid_start':null===_0x54b9ff?this['_revisionId']++:_0x54b9ff++}));const _0xe0e6e9=[];for(const _0x4a9f91 of _0xae8594['getChildren']())if(_0x4a9f91['is']('element')){_0xe0e6e9['push'](this['_makeIdsRoot'](_0x4a9f91,_0x54b9ff));const _0x2687c7=_0xe0e6e9[_0xe0e6e9['length']-0x1];null!==_0x54b9ff&&(_0x54b9ff=_0x2687c7['is']('element','$text')?_0x2687c7['getAttribute']('vid')+0x1:_0x2687c7['getAttribute']('vid_end')+0x1);}else{for(let _0x79a1c7=0x0;_0x79a1c7<_0x4a9f91['offsetSize'];_0x79a1c7++)_0xe0e6e9['push'](new ut('$text',{'vid':null===_0x54b9ff?this['_revisionId']++:_0x54b9ff++}));}if(_0xae8594['is']('documentFragment')){const _0x3b03e2=P(_0xae8594['rootName']);return _0x3b03e2['_insertChild'](0x0,_0xe0e6e9),_0x3b03e2;}return _0xf42621['_setAttribute']('vid_end',null===_0x54b9ff?this['_revisionId']++:_0x54b9ff++),_0xf42621['_insertChild'](0x0,_0xe0e6e9),_0xf42621;}['_calculateMetaData'](_0x2aad00,_0x39bbac,_0x414478){this['_reset']();const {roots:_0x5edd5f,markers:_0x59b5f7,rootsAttributes:_0x13ecbc}=this['_savedMetaData']['get'](_0x2aad00);this['_baseRoots']=new Map(_0x5edd5f),this['_baseRootsAttributes']=new Map(_0x215734(_0x13ecbc));for(const [_0xc20574,_0x427c7b]of this['_baseRoots'])if('$graveyard'!==_0xc20574&&(this['_diffRoots']['set'](_0xc20574,N(_0x427c7b)),this['_diffRootsAttributes']=new Map(_0x215734(_0x13ecbc)),_0x414478)){const _0x897bc9=this['_revisionId'];this['_idsRoots']['set'](_0xc20574,this['_makeIdsRoot'](_0x427c7b)),this['_baseIdsRoots']['set'](_0xc20574,this['_makeIdsRoot'](_0x427c7b,_0x897bc9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x414478&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1c9941,_0x2c505d]of _0x59b5f7){const _0x168a67=this['_baseRoots']['get'](_0x2c505d['rootName']),_0x51c096=this['_diffRoots']['get'](_0x2c505d['rootName']),_0x1507da=new ft(this['_fixPosition'](_0x2c505d['start'],_0x168a67),this['_fixPosition'](_0x2c505d['end'],_0x168a67)),_0x50cc46=this['_fixRange'](_0x1507da,_0x51c096);_0x168a67['markers']['set'](_0x1c9941,_0x1507da),this['_markers']['set'](_0x1c9941,_0x50cc46);}this['_applyOperations'](_0x2aad00,_0x39bbac,_0x414478);}['_applyOperations'](_0x5e7dd5,_0x5558a0,_0x4db34f){for(const _0x46130e of this['source']['getOperations'](_0x5e7dd5,_0x5558a0))this['_handleOperation'](_0x46130e,_0x4db34f);for(const _0x50de95 of this['_diffRoots']['values']())_0x50de95['markers']['clear']();for(const [_0x3b492b,_0x1de592]of this['_markers']){this['_diffRoots']['get'](_0x1de592['root']['rootName'])['markers']['set'](_0x3b492b,_0x1de592['clone']());}const _0x3a3f5e=new Map(),_0x27047c=new Map();for(const [_0x5361d3,_0x18b542]of this['_diffRoots'])_0x3a3f5e['set'](_0x5361d3,N(_0x18b542)),_0x27047c['set'](_0x5361d3,this['_diffRootsAttributes']['get'](_0x5361d3));this['_saveMetaData'](_0x5558a0,_0x3a3f5e,this['_markers'],_0x27047c);}['_getPreviousFrom'](_0x50630c){const _0x1ad95b=Array['from'](this['_savedMetaData']['keys']());_0x1ad95b['sort']((_0x227a96,_0x4fe8e8)=>_0x227a96-_0x4fe8e8),_0x1ad95b['reverse']();for(const _0x3b7fd5 of _0x1ad95b)if(_0x3b7fd5<_0x50630c)return _0x3b7fd5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x20d5ef,_0x248b5f){const _0x3f2dcf=Array['from'](_0x248b5f['markers'])['map'](([_0x2a731f,_0x206a18])=>[_0x2a731f,this['_fixRange'](_0x206a18,_0x20d5ef)]);_0x20d5ef['markers']=new Map(_0x3f2dcf);}['_transformMarkers'](_0x3cde1d){for(const _0x11d368 of this['_markers']['values']()){const _0x3887c0=_0x11d368['getTransformedByOperation'](_0x3cde1d),_0x9779c7=ft['_createFromRanges'](_0x3887c0);_0x11d368['start']=_0x9779c7['start'],_0x11d368['end']=_0x9779c7['end'];}}['_handleOperation'](_0x3ba398,_0x19db0b){if('addRoot'!=_0x3ba398['type']&&'detachRoot'!=_0x3ba398['type']){if('insert'==_0x3ba398['type']){const _0x208432=_0x3ba398['position']['root']['rootName'];this['_diffRoots']['has'](_0x208432)||(this['_diffRoots']['set'](_0x208432,P(_0x208432,!0x0)),this['_diffRootsAttributes']['set'](_0x208432,{}),_0x19db0b&&this['_idsRoots']['set'](_0x208432,P(_0x208432,!0x0)));}else{if('addRootAttribute'==_0x3ba398['type']||'removeRootAttribute'==_0x3ba398['type']||'changeRootAttribute'==_0x3ba398['type'])return void this['_handleRootAttributeOperation'](_0x3ba398);'marker'==_0x3ba398['type']&&this['_handleMarkerOperation'](_0x3ba398);}if('marker'!==_0x3ba398['type']){const _0x3636cb=this['_cloneOperation'](_0x3ba398,this['_diffRoots']);_0x3636cb['_execute'](),this['_transformMarkers'](_0x3636cb);}if(_0x19db0b)switch(_0x3ba398['type']){case'insert':this['_handleInsertOperation'](_0x3ba398);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3ba398);break;case'merge':this['_handleMergeOperation'](_0x3ba398);break;case'split':this['_handleSplitOperation'](_0x3ba398);}}else this['_handleRootOperation'](_0x3ba398,_0x19db0b);}['_cloneOperation'](_0x39525b,_0x224ff4){const _0x1f5498=_0x39525b['clone']();return _0x1f5498['_authorId']=_0x39525b['_authorId'],this['_fixOperation'](_0x1f5498,_0x224ff4),_0x1f5498;}['_getBaseVids'](_0x2046b9){return _0x2046b9['map'](_0x160706=>{const _0x172ca5=this['_getVidAttributeName'](_0x160706);return Number(_0x160706['item']['getAttribute'](_0x172ca5));});}['_generateTape'](_0x3dbba8,_0x5d9595){if(_0x3dbba8['is']('element','$text'))_0x5d9595['push']({'item':_0x3dbba8,'type':'text'});else{_0x3dbba8['is']('element')&&_0x5d9595['push']({'item':_0x3dbba8,'type':'elementStart'});for(const _0xe5cadf of _0x3dbba8['getChildren']())this['_generateTape'](_0xe5cadf,_0x5d9595);_0x3dbba8['is']('element')&&_0x5d9595['push']({'item':_0x3dbba8,'type':'elementEnd'});}return _0x5d9595;}['_getState'](){const _0x55d9c3=new Map(this['_touched']),_0x3ee3bd=new Map(_0x55d9c3),_0x447a0f=new Map(),_0x168677={'insertions':{},'deletions':{}},_0x1d44d3={'insertions':{},'deletions':{}},_0x5ee367=new Map(),_0x130e49=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x130e49['delete']('$graveyard');for(const _0x5d2f0e of _0x130e49){const _0x5d3580=this['_diffRoots']['get'](_0x5d2f0e)||P(_0x5d2f0e,!0x1),_0x2add45=this['_baseRoots']['get'](_0x5d2f0e)||P(_0x5d2f0e,!0x1);_0x5d3580['isAttached']()||_0x2add45['isAttached']()?(_0x168677['insertions'][_0x5d2f0e]=N(_0x5d3580),_0x168677['deletions'][_0x5d2f0e]=N(_0x2add45),this['_copyMarkers'](_0x168677['deletions'][_0x5d2f0e],_0x2add45),this['_copyMarkers'](_0x168677['insertions'][_0x5d2f0e],_0x5d3580),_0x1d44d3['insertions'][_0x5d2f0e]=this['_generateTape'](this['_idsRoots']['get'](_0x5d2f0e),[]),_0x1d44d3['deletions'][_0x5d2f0e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x5d2f0e)||P(_0x5d2f0e,!0x1),[])):_0x130e49['delete'](_0x5d2f0e);}for(const _0x3cab6b of _0x130e49){const _0x537d3a=_0x1d44d3['insertions'][_0x3cab6b];for(const _0x2cb5ad of _0x537d3a){const _0x40734e=this['_getVidAttributeName'](_0x2cb5ad),_0x46effb=_0x2cb5ad['item']['getAttribute'](_0x40734e);_0x3ee3bd['delete'](_0x46effb),_0x46effb>=this['_startingRevisionId']&&_0x447a0f['set'](_0x46effb,_0x55d9c3['get'](_0x46effb));}}for(const _0x50eb03 of _0x130e49){const _0x1785b2=_0x1d44d3['insertions'][_0x50eb03],_0x618d73=this['_getBaseVids'](_0x1d44d3['deletions'][_0x50eb03]);let _0x118299=0x0;for(const _0x469398 of _0x1785b2){const _0x5a502b=this['_getVidAttributeName'](_0x469398),_0x4269e3=_0x469398['item']['getAttribute'](_0x5a502b);if(!_0x447a0f['has'](_0x4269e3)&&!_0x5ee367['has'](_0x4269e3)){if(_0x3ee3bd['has'](_0x4269e3))_0x118299++;else{if(_0x4269e3!=_0x618d73[_0x118299]){const _0x373531=_0x55d9c3['get'](_0x4269e3)||_0x55d9c3['get'](_0x618d73[_0x118299]);for(;_0x4269e3!=_0x618d73[_0x118299];)_0x3ee3bd['has'](_0x618d73[_0x118299])||(_0x5ee367['set'](_0x618d73[_0x118299],_0x373531),_0x55d9c3['set'](_0x618d73[_0x118299],_0x373531)),_0x118299++;}_0x118299++;}}}}for(const _0x52e4b2 of _0x130e49){const _0x294c11=_0x1d44d3['insertions'][_0x52e4b2];for(const _0x49cea0 of _0x294c11){const _0x4182f4=this['_getVidAttributeName'](_0x49cea0),_0x104a02=_0x49cea0['item']['getAttribute'](_0x4182f4);if(_0x5ee367['has'](_0x104a02)){const _0x30a609=_0x5ee367['get'](_0x104a02);_0x3ee3bd['has'](_0x104a02)||_0x3ee3bd['set'](_0x104a02,{..._0x30a609}),_0x447a0f['set'](_0x104a02,{..._0x30a609});}}}for(const _0x373cc7 of _0x3ee3bd['keys']())_0x373cc7>=this['_startingRevisionId']&&_0x3ee3bd['delete'](_0x373cc7);const _0x1d8315=new Map();for(const _0x3c1b33 of _0x130e49){let _0x27deef=_0x1d44d3['insertions'][_0x3c1b33];for(const _0x49d41a of _0x27deef)if(_0x49d41a['item']['is']('element','tableCell')){const _0x3ca1d0=this['_getVidAttributeName'](_0x49d41a),_0x19eb99=_0x49d41a['item']['getAttribute'](_0x3ca1d0);if(_0x447a0f['has'](_0x19eb99)){const _0x2fa54a=_0x49d41a['item']['parent']['parent']['getAttribute']('vid_start'),_0x4d55e6=_0x1d8315['get'](_0x2fa54a)||new Set();_0x4d55e6['add'](_0x447a0f['get'](_0x19eb99)['userId']),_0x1d8315['set'](_0x2fa54a,_0x4d55e6);}}_0x27deef=_0x1d44d3['deletions'][_0x3c1b33];for(const _0x2e2e66 of _0x27deef)if(_0x2e2e66['item']['is']('element','tableCell')){const _0x27267b=this['_getVidAttributeName'](_0x2e2e66),_0x39d51c=_0x2e2e66['item']['getAttribute'](_0x27267b);if(_0x3ee3bd['has'](_0x39d51c)){const _0x393796=_0x2e2e66['item']['parent']['parent']['getAttribute']('vid_start'),_0x34d100=_0x1d8315['get'](_0x393796)||new Set();_0x34d100['add'](_0x3ee3bd['get'](_0x39d51c)['userId']),_0x1d8315['set'](_0x393796,_0x34d100);}}for(const _0x30d774 of _0x1d8315['keys']())(_0x447a0f['has'](_0x30d774)||_0x3ee3bd['has'](_0x30d774))&&_0x1d8315['delete'](_0x30d774);}for(const _0x3c5f7d of _0x130e49){const _0x118eb5=_0x1d44d3['insertions'][_0x3c5f7d];let _0xdba901=null,_0x3105d7=null;for(const _0x18428c of _0x118eb5){const _0x5cf634=this['_getVidAttributeName'](_0x18428c),_0x1d918d=_0x18428c['item']['getAttribute'](_0x5cf634),_0x3f3d12=_0x1d8315['get'](_0x1d918d);_0x3f3d12&&'elementStart'==_0x18428c['type']&&(_0xdba901=Array['from'](_0x3f3d12)[0x0],_0x3105d7=_0x18428c['item']['getAttribute']('vid_end')),_0xdba901&&(_0x3ee3bd['set'](_0x1d918d,{'userId':_0xdba901}),_0x447a0f['set'](_0x1d918d,{'userId':_0xdba901})),_0x1d918d==_0x3105d7&&(_0xdba901=null,_0x3105d7=null);}}const _0x52bb49={},_0xb17b4d=new Set();for(const _0x4b91c7 of _0x130e49){const _0x21028a=_0x168677['deletions'][_0x4b91c7],_0x18a7ec=_0x168677['insertions'][_0x4b91c7];for(const {userId:_0x34ac14}of this['_touchedMarkers']['values']())null!==_0x34ac14&&_0xb17b4d['add'](_0x34ac14);for(const {userId:_0x3f1c2d}of this['_touchedRoots']['values']())null!==_0x3f1c2d&&_0xb17b4d['add'](_0x3f1c2d);this['_markChanges'](_0x18a7ec,_0x1d44d3['insertions'][_0x4b91c7],_0x447a0f,'insertion',_0xb17b4d),this['_markChanges'](_0x21028a,_0x1d44d3['deletions'][_0x4b91c7],_0x3ee3bd,'deletion',_0xb17b4d),_0x52bb49[_0x4b91c7]={'insertions':this['_prepareViewToSave'](_0x18a7ec),'deletions':this['_prepareViewToSave'](_0x21028a),'attachChange':this['_touchedRoots']['get'](_0x4b91c7)||null,'attributesBefore':_0x215734(this['_baseRootsAttributes']['get'](_0x4b91c7))||{},'attributesAfter':_0x215734(this['_diffRootsAttributes']['get'](_0x4b91c7))};}return{'diffData':_0x52bb49,'authorsIds':Array['from'](_0xb17b4d)};}['_processRootBeforeSave'](_0x3acf03){for(const [,_0x3d9c97]of _0x3acf03['markers']){const _0x51ddee=_0x3d9c97['start']['getAncestors']()['filter'](_0x37df39=>'tableCell'==_0x37df39['name']);for(const _0x324e04 of _0x51ddee)0x1==_0x324e04['childCount']&&_0x324e04['getChild'](0x0)['is']('element','paragraph')&&_0x324e04['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x36da9f){this['_processRootBeforeSave'](_0x36da9f);const _0x2ce0d1=this['editor']['data']['toView'](_0x36da9f,{}),_0x6e2148=Array['from'](_0x2ce0d1['getChildren']())['map'](_0x46e036=>this['_getViewJson'](_0x46e036));return JSON['stringify'](_0x6e2148);}['_getViewJson'](_0x4c95b9){if(_0x4c95b9['is']('$text'))return _0x4c95b9['data'];{const _0x33d1cc=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2ceac4=_0x4c95b9,_0x2faea3=this['editor']['data']['htmlProcessor']['domConverter'],_0x10203e={'type':_0x33d1cc['_getTypeCharForViewElement'](_0x2ceac4),'name':_0x2ceac4['name'],'attributes':Array['from'](_0x2ceac4['getAttributes']()),'children':Array['from'](_0x2ceac4['getChildren']())['map'](_0x24c689=>this['_getViewJson'](_0x24c689))};if(_0x4c95b9['is']('uiElement')&&'$comment'!=_0x4c95b9['name']){const _0xcd7898=_0x4c95b9['render'](_0x2faea3['domDocument'],_0x2faea3);_0x10203e['children']['push'](_0xcd7898['outerHTML']);}else{if(_0x4c95b9['is']('rawElement')){const _0x26b0af=_0x2faea3['domDocument']['createElement'](_0x2ceac4['name']);_0x4c95b9['render'](_0x26b0af,_0x2faea3),_0x10203e['children']['push'](_0x26b0af['innerHTML']);}}const _0x2263ac=Array['from'](_0x2ceac4['getCustomProperties']());_0x2263ac['length']>0x0&&(_0x10203e['customProperties']=_0x2263ac);const _0x2a3d87=_0x2ceac4['getFillerOffset']();return null!==_0x2a3d87&&(_0x10203e['fillerOffset']=_0x2a3d87),_0x10203e;}}['_markChanges'](_0x11013b,_0x90ff9d,_0x11f138,_0x4ecd75,_0x55f03f){let _0x207772=null,_0xf4f151=null,_0x39adb2=0x0;const _0x1b0a2b=this['editor']['model'];for(let _0x483ce6=0x0;_0x483ce6<_0x90ff9d['length'];_0x483ce6++){const _0x2d86c5=this['_getVidAttributeName'](_0x90ff9d[_0x483ce6]),_0x3f1baf=_0x90ff9d[_0x483ce6]['item']['getAttribute'](_0x2d86c5),_0x1e9c70=_0x11f138['get'](_0x3f1baf),_0x39dbac=_0x483ce6==_0x90ff9d['length']-0x1;(!_0x207772&&_0x1e9c70&&(_0x207772=_0x1e9c70,_0xf4f151=_0x90ff9d[_0x483ce6]),_0x207772&&(!_0x1e9c70||_0x1e9c70['userId']!=_0x207772['userId']))&&(_0x37e615(_0x1e9c70,F(_0xf4f151,_0x11013b,_0x1b0a2b),F(_0x90ff9d[_0x483ce6],_0x11013b,_0x1b0a2b)),_0x207772=_0x1e9c70||null,_0xf4f151=_0x1e9c70?_0x90ff9d[_0x483ce6]:null),_0x207772&&_0x39dbac&&_0x37e615(_0x1e9c70,F(_0xf4f151,_0x11013b,_0x1b0a2b),B(_0x90ff9d[_0x483ce6],_0x11013b,_0x1b0a2b));}function _0x37e615(_0x1abd63,_0xd9f3ba,_0x3b53d6){const _0x454d9f=_0x207772['userId'],_0x591c2c='revision:'+_0x4ecd75+':'+_0x454d9f+':'+_0x39adb2++,_0x293951=_0x1b0a2b['createRange'](_0xd9f3ba,_0x3b53d6);_0x11013b['markers']['set'](_0x591c2c,_0x293951),null!==_0x454d9f&&_0x55f03f['add'](_0x454d9f);}}['_getVidAttributeName'](_0x5a6d9c){switch(_0x5a6d9c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x97709c,_0x404287){_0x97709c['baseVersion']=null;for(const _0x401c26 in _0x97709c){const _0x406432=_0x97709c[_0x401c26];if(_0x406432 instanceof vt){const _0x5a80ea=_0x404287['get'](_0x406432['root']['rootName']);_0x97709c[_0x401c26]=this['_fixPosition'](_0x406432,_0x5a80ea);}if(_0x406432 instanceof ft){const _0x12cfec=_0x404287['get'](_0x406432['root']['rootName']);_0x97709c[_0x401c26]=this['_fixRange'](_0x406432,_0x12cfec);}'root'===_0x401c26&&(_0x97709c['root']=_0x404287['get'](_0x97709c['root']['rootName']));}}['_fixRange'](_0x4efc50,_0x254f61){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4efc50['start'],_0x254f61),this['_fixPosition'](_0x4efc50['end'],_0x254f61));}['_fixPosition'](_0x1b9024,_0x8bb13c){return this['editor']['model']['createPositionFromPath'](_0x8bb13c,_0x1b9024['path'],_0x1b9024['stickiness']);}['_handleInsertOperation'](_0x53292b){const _0x1898e5=this['_idsRoots']['get'](_0x53292b['position']['root']['rootName']),_0x5637f1=this['_fixPosition'](_0x53292b['position'],_0x1898e5),_0x41ceb2=null===_0x53292b['_authorId']?null:_0x53292b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3f3a02=_0x5637f1['parent'],_0x75d5bf=this['_revisionId'],_0x4f2f95=[];for(const _0x453373 of _0x53292b['nodes'])if(_0x453373['is']('element'))_0x4f2f95['push'](this['_makeIdsRoot'](_0x453373));else{for(let _0x3720ab=0x0;_0x3720ab<_0x453373['offsetSize'];_0x3720ab++)_0x4f2f95['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3e740b=this['_revisionId'];for(let _0x18ee5e=_0x75d5bf;_0x18ee5e<_0x3e740b;_0x18ee5e++)this['_touched']['set'](_0x18ee5e,{'userId':_0x41ceb2});_0x3f3a02['_insertChild'](_0x5637f1['offset'],_0x4f2f95);}['_handleMoveOperation'](_0x4010a3){(_0x4010a3=this['_cloneOperation'](_0x4010a3,this['_idsRoots']))['_execute']();const _0x4c2be5=null===_0x4010a3['_authorId']?null:_0x4010a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c76e3=_0x4010a3['getMovedRangeStart'](),_0x1cfc0a=_0x3c76e3['parent'],_0x3d1c35=_0x3c76e3['offset'];!function _0x5b85c9(_0x56114a,_0x555616,_0x33f8b9,_0x48990a){for(let _0x38b229=_0x33f8b9;_0x38b229<_0x48990a;_0x38b229++){const _0x386db3=_0x555616['getChild'](_0x38b229);_0x386db3['is']('element','$text')?_0x56114a['set'](_0x386db3['getAttribute']('vid'),{'userId':_0x4c2be5}):(_0x56114a['set'](_0x386db3['getAttribute']('vid_start'),{'userId':_0x4c2be5}),_0x5b85c9(_0x56114a,_0x386db3,0x0,_0x386db3['childCount']),_0x56114a['set'](_0x386db3['getAttribute']('vid_end'),{'userId':_0x4c2be5}));}}(this['_touched'],_0x1cfc0a,_0x3d1c35,_0x3d1c35+_0x4010a3['howMany']);}['_handleMergeOperation'](_0x29be07){const _0x458ea0=null===(_0x29be07=this['_cloneOperation'](_0x29be07,this['_idsRoots']))['_authorId']?null:_0x29be07['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x429900=_0x29be07['targetPosition']['parent'],_0x4e846d=_0x29be07['sourcePosition']['parent'],_0x2f4bed=_0x429900['getAttribute']('vid_end'),_0x471c5e=_0x4e846d['getAttribute']('vid_start');_0x429900['_setAttribute']('vid_end',_0x4e846d['getAttribute']('vid_end')),_0x4e846d['_setAttribute']('vid_end',_0x2f4bed),this['_touched']['set'](_0x471c5e,{'userId':_0x458ea0}),this['_touched']['set'](_0x2f4bed,{'userId':_0x458ea0}),_0x29be07['_execute']();}['_handleSplitOperation'](_0x5045fa){const _0x21b5b0=null===(_0x5045fa=this['_cloneOperation'](_0x5045fa,this['_idsRoots']))['_authorId']?null:_0x5045fa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27f7db=_0x5045fa['graveyardPosition'],_0x5a84c3=_0x5045fa['splitPosition']['parent'];_0x5045fa['_execute']();const _0x52c8c5=_0x5a84c3['getAttribute']('vid_end'),_0x117e08=_0x5045fa['insertionPosition']['nodeAfter'];if(_0x27f7db){const _0x2f61f7=_0x117e08['getAttribute']('vid_end'),_0x7d3162=_0x5a84c3['getAttribute']('vid_end');_0x5a84c3['_setAttribute']('vid_end',_0x2f61f7),_0x117e08['_setAttribute']('vid_end',_0x7d3162),this['_touched']['set'](_0x5a84c3['getAttribute']('vid_end'),{'userId':_0x21b5b0}),this['_touched']['set'](_0x117e08['getAttribute']('vid_start'),{'userId':_0x21b5b0});}else{const _0x515d64=this['_revisionId']++,_0x4b1bed=this['_revisionId']++;_0x5a84c3['_setAttribute']('vid_end',_0x515d64),_0x117e08['_setAttribute']('vid_start',_0x4b1bed),_0x117e08['_setAttribute']('vid_end',_0x52c8c5),this['_touched']['set'](_0x515d64,{'userId':_0x21b5b0}),this['_touched']['set'](_0x4b1bed,{'userId':_0x21b5b0});}}['_handleMarkerOperation'](_0x54cff0){if(!_0x54cff0['affectsData'])return;const _0x1d6f8b=(_0x54cff0=this['_cloneOperation'](_0x54cff0,this['_diffRoots']))['oldRange']?_0x54cff0['oldRange']['root']:null,_0x47d61f=_0x54cff0['newRange']?_0x54cff0['newRange']['root']:null;_0x1d6f8b&&this['_markers']['delete'](_0x54cff0['name']),_0x47d61f&&this['_markers']['set'](_0x54cff0['name'],_0x54cff0['newRange']['clone']());const _0x226ff6=null===_0x54cff0['_authorId']?null:_0x54cff0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d4e76=_0x54cff0['name'];if(!this['_touchedMarkers']['has'](_0x1d4e76))return void this['_touchedMarkers']['set'](_0x1d4e76,{'range':_0x54cff0['oldRange'],'userId':_0x226ff6});const _0x466ac4=this['_touchedMarkers']['get'](_0x1d4e76),_0x19d45d=_0x466ac4['range'],_0x4c4267=_0x54cff0['newRange'];null==_0x19d45d&&null==_0x4c4267||_0x19d45d&&_0x4c4267&&_0x19d45d['isEqual'](_0x4c4267)?this['_touchedMarkers']['delete'](_0x54cff0['name']):_0x466ac4['userId']=_0x226ff6;}['_handleRootOperation'](_0x21f3ed,_0x2f5717){this['_diffRoots']['has'](_0x21f3ed['rootName'])?this['_diffRoots']['get'](_0x21f3ed['rootName'])['_isAttached']=_0x21f3ed['isAdd']:(this['_diffRoots']['set'](_0x21f3ed['rootName'],P(_0x21f3ed['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x21f3ed['rootName'],{}),_0x2f5717&&this['_idsRoots']['set'](_0x21f3ed['rootName'],P(_0x21f3ed['rootName'],!0x0)));const _0x2191c7=null===_0x21f3ed['_authorId']?null:_0x21f3ed['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x388546=this['_touchedRoots']['get'](_0x21f3ed['rootName']);_0x388546&&_0x388546['userId']===_0x2191c7?this['_touchedRoots']['delete'](_0x21f3ed['rootName']):this['_touchedRoots']['set'](_0x21f3ed['rootName'],{'userId':_0x2191c7,'isAttached':_0x21f3ed['isAdd']});}['_handleRootAttributeOperation'](_0x2ed317){const _0x453d8c=this['_diffRootsAttributes']['get'](_0x2ed317['root']['rootName']);null===_0x2ed317['newValue']?delete _0x453d8c[_0x2ed317['key']]:_0x453d8c[_0x2ed317['key']]=_0x2ed317['newValue'];}}function N(_0x1417fc){const _0x212f1f=P(_0x1417fc['rootName'],_0x1417fc['isAttached']());for(const _0x58eb05 of _0x1417fc['getChildren']()){const _0x34a6c5=_0x58eb05['_clone'](!0x0);_0x212f1f['_appendChild'](_0x34a6c5);}return _0x212f1f;}function P(_0x5e693e,_0x4c9600=!0x0){const _0x1e2c2f=new gt();return _0x1e2c2f['rootName']=_0x5e693e,_0x1e2c2f['_isAttached']=_0x4c9600,_0x1e2c2f['isAttached']=()=>_0x1e2c2f['_isAttached'],_0x1e2c2f;}function F(_0x222b6d,_0x4b24f3,_0x1d359b){const _0x5e73c9='elementEnd'==_0x222b6d['type']?_0x1d359b['createPositionAt'](_0x222b6d['item'],'end'):_0x1d359b['createPositionBefore'](_0x222b6d['item']);return _0x1d359b['createPositionFromPath'](_0x4b24f3,_0x5e73c9['path'],_0x5e73c9['stickiness']);}function B(_0x1c17f1,_0x2dcfa8,_0x448640){const _0x3fff71='elementStart'==_0x1c17f1['type']?_0x448640['createPositionAt'](_0x1c17f1['item'],0x0):_0x448640['createPositionAfter'](_0x1c17f1['item']);return _0x448640['createPositionFromPath'](_0x2dcfa8,_0x3fff71['path'],_0x3fff71['stickiness']);}class os extends _0x401579{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5a60ac,_0x1e4f54){super(_0x5a60ac),this['focusTracker']=new _0x317a16(),this['keystrokes']=new _0x16c5c2(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1e4f54),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x284889({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5aac0d=_0x47975f=>_0x47975f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5aac0d),this['keystrokes']['set']('arrowleft',_0x5aac0d),this['keystrokes']['set']('arrowup',_0x5aac0d),this['keystrokes']['set']('arrowdown',_0x5aac0d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x46bcca){this['revisionNameInputView']['fieldView']['element']['value']=_0x46bcca['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x18b946){const _0x45824b=new nt(this['locale'],ti),_0x1e0440=_0x45824b['fieldView'];_0x1e0440['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x174f58=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x18b946&&(_0x174f58+='\x20('+g(this['locale'],'optional')+')'),(_0x45824b['label']=_0x174f58,_0x1e0440['on']('input',()=>{this['revisionNameInputValue']=_0x1e0440['element']['value']['trim']();}),_0x45824b);}}class f extends _0x5bec45{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x97f763=this['editor'],_0x74c125=_0x97f763['plugins']['get']('RevisionTracker');_0x97f763['ui']['componentFactory']['add']('revisionHistory',_0x5f076d=>{const _0x777e26=_0x4f91a6(_0x5f076d),_0xe0fca1=_0x777e26['panelView']['children'],_0x253c73=new _0x2ab1ed(_0x5f076d),_0x33a05=new te(_0x5f076d),_0x3e2dc2=new _0x1eeecd(_0x5f076d),_0x156960=new te(_0x5f076d),_0x199edf=new _0x1eeecd(_0x5f076d);return _0x777e26['bind']('isEnabled')['to'](_0x74c125,'isReady',_0x74c125,'isEnabled',_0x97f763,'isReadOnly',(_0x2d4b21,_0x159cc8,_0x597e70)=>_0x2d4b21&&_0x159cc8&&!_0x597e70),_0x777e26['buttonView']['set']({'icon':_0x43dc91,'label':g(_0x5f076d,'Revision\x20history'),'tooltip':!0x0}),_0x3e2dc2['set']({'label':g(_0x5f076d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3e2dc2['bind']('isEnabled')['to'](_0x74c125,'isReady',_0x74c125,'isEnabled',_0x97f763,'isReadOnly',(_0x4b3c43,_0x112491,_0x2c4024)=>_0x4b3c43&&_0x112491&&!_0x2c4024),_0x3e2dc2['on']('execute',()=>this['_showDialog']()),_0x199edf['set']({'label':g(_0x5f076d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x199edf['bind']('isEnabled')['to'](_0x74c125,'isReady',_0x97f763,'isReadOnly',(_0x37f463,_0x44d9ef)=>_0x37f463&&!_0x44d9ef),_0x199edf['on']('execute',()=>{_0x97f763['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x777e26['isOpen']=!0x1,_0x97f763['editing']['view']['focus']();}),_0x33a05['children']['add'](_0x3e2dc2),_0x156960['children']['add'](_0x199edf),_0x253c73['role']='menu',_0x253c73['items']['addMany']([_0x33a05,_0x156960]),_0xe0fca1['add'](_0x253c73),_0x777e26;}),_0x97f763['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5650f7=this['editor'],_0x947835=_0x5650f7['locale'],_0xc067ac=new _0x404584(_0x947835),_0x255c6b=new _0x4132b3(_0x947835);_0xc067ac['buttonView']['set']({'icon':_0x43dc91,'label':g(_0x947835,'Revision\x20history')});const _0x3a172f=new _0x264bbf(_0x947835,_0xc067ac),_0x371caa=new _0x54e0fe(_0x947835);_0x371caa['set']({'label':g(_0x947835,'Save\x20current\x20revision')}),_0x371caa['delegate']('execute')['to'](_0xc067ac),_0x371caa['on']('execute',()=>{this['_showDialog']();}),_0x3a172f['children']['add'](_0x371caa),_0x255c6b['items']['add'](_0x3a172f);const _0xe606a2=new _0x264bbf(_0x947835,_0xc067ac),_0x15300b=new _0x54e0fe(_0x947835);return _0x15300b['set']({'label':g(_0x947835,'Open\x20revision\x20history')}),_0x15300b['delegate']('execute')['to'](_0xc067ac),_0x15300b['on']('execute',()=>{_0x5650f7['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0xe606a2['children']['add'](_0x15300b),_0x255c6b['items']['add'](_0xe606a2),_0xc067ac['panelView']['children']['add'](_0x255c6b),_0xc067ac;}['_showDialog'](){const _0x3b7cc9=this['editor'],_0x32c8b4=_0x3b7cc9['locale'],_0x9e5f73=_0x3b7cc9['plugins']['get']('Dialog'),_0x4745f8=_0x3b7cc9['plugins']['get']('RevisionTracker');function _0x529019(_0x10fe7a){_0x3b7cc9['config']['get']('revisionHistory.requireRevisionName')&&''===_0x10fe7a['revisionName']?_0x10fe7a['revisionNameInputView']['errorText']=g(_0x32c8b4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3b7cc9['plugins']['get'](u)['saveRevision']({'name':_0x10fe7a['revisionName']}),_0x9e5f73['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x529019(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x9e5f73['show']({'id':'revisionSave','title':g(_0x32c8b4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x3b7cc9['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x9e5f73['hide']()},{'label':g(_0x3b7cc9['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1226ff){_0x1226ff['bind']('isEnabled')['to'](_0x4745f8,'isReady',_0x4745f8,'isEnabled',_0x3b7cc9,'isReadOnly',(_0x5a3e15,_0x6bb8db,_0x140416)=>_0x5a3e15&&_0x6bb8db&&!_0x140416);},'onExecute':()=>_0x529019(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x273b72=this['editor'],_0x3cd6ec=_0x273b72['locale'];this['_saveRevisionFormView']=new os(_0x3cd6ec,_0x273b72['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x401579{['changeId'];['_model'];constructor(_0x315d5d,_0x37839c){super(_0x315d5d),this['_model']=_0x37839c,this['changeId']=_0x37839c['id'];const _0x5b7127=this['bindTemplate'],_0x54fcea=g(_0x315d5d,_0x37839c['data']['isSuggestion']?'Suggested\x20by':'add'==_0x37839c['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x37839c['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5b7127['to']('type',_0x456d4c=>'ck-revision-change__'+_0x456d4c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x54fcea}]},{'text':'\x20'+_0x37839c['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x37c90e(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x40538a){super(),this['id']=_0x40538a['id']||_0x45e777(),this['author']=_0x40538a['author'],this['type']=_0x40538a['type'],this['data']=_0x40538a['data']||{},this['rootName']=_0x40538a['rootName'],this['set']('createdAt',_0x40538a['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x50ecda,_0x3b448c){this['newRevisionId']=_0x50ecda,this['oldRevisionId']=_0x3b448c,this['changes']=new _0x37ef36();}['_setChanges'](_0xfd8213){for(const _0x180146 of _0xfd8213)this['changes']['add'](_0x180146);}}class m extends _0x5bec45{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x59fd86,_0x24d2b0,I,V];}constructor(_0x7ba0d9){super(_0x7ba0d9),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x4d5315,_0x2e4ef1,_0x5161e9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x14be76=>{for(const _0x19b51e of this['editor']['editing']['view']['document']['roots'])_0x5161e9?_0x14be76['removeClass']('ck-editor__editable__overlay',_0x19b51e):_0x14be76['addClass']('ck-editor__editable__overlay',_0x19b51e);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x236485=>null!==_0x236485),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x59c38e,_0x374e70,_0x11be65)=>_0x59c38e&&_0x11be65?_0x374e70['changes']['getIndex'](_0x11be65):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2b3dfe,_0x36ae6c)=>_0x2b3dfe?_0x36ae6c['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x24d2b0);}['init'](){const _0x1b2753=this['editor'],_0x482c80=new pt(_0x1b2753,{'direction':'backward'}),_0x8d376f=new pt(_0x1b2753,{'direction':'forward'});(_0x1b2753['commands']['add']('showPreviousChange',_0x482c80),_0x1b2753['commands']['add']('showNextChange',_0x8d376f),_0x1b2753['commands']['add']('restoreRevision',new wt(_0x1b2753)),this['on']('change:numberOfChanges',()=>{_0x482c80['refresh'](),_0x8d376f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1b2753['enableReadOnlyMode']('revision-viewer'),_0x1b2753['plugins']['has']('WidgetToolbarRepository'))&&_0x1b2753['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x327094){return await this['_utils']['loadRevisionData'](_0x327094,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x327094);}async['getRevisionRootsAttributes'](_0x12211e){return await this['_utils']['loadRevisionData'](_0x12211e,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x12211e);}async['compare'](_0x26c0e5,_0x995a98,_0x41ae1a=!0x1){if(!this['isEnabled'])return;const _0x56d25b=this['diff'],_0x335d86=this['repository'],_0x218b5b='string'==typeof _0x26c0e5?_0x335d86['getRevision'](_0x26c0e5):_0x26c0e5,_0x4fb571='string'==typeof _0x995a98?_0x335d86['getRevision'](_0x995a98):_0x995a98,_0x5e82d3=_0x218b5b['id'],_0x5348df=_0x4fb571?_0x4fb571['id']:null;if(!_0x41ae1a&&this['diff']&&this['diff']['newRevisionId']===_0x5e82d3&&this['diff']['oldRevisionId']===_0x5348df)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5e82d3,_0x5348df);const _0x261e62=this['_getRevisionsRange'](_0x218b5b,_0x4fb571,!0x0)['map'](_0x557fee=>this['_utils']['loadRevisionData'](_0x557fee,this['adapter']));return _0x261e62['push'](new Promise(_0x354418=>{setTimeout(_0x354418,0x14);})),Promise['all'](_0x261e62)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x468b84=this['_getDiff'](_0x5e82d3,_0x5348df);for(const _0x113bed of _0x468b84['changes'])this['_changeIdToChange']['set'](_0x113bed['id'],_0x113bed);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x55810a=>{for(const _0x2291c1 of this['editor']['model']['document']['getRootNames']())_0x55810a['detachRoot'](_0x2291c1);for(const _0x1a1332 of Object['keys'](_0x468b84['model'])){const _0x5bc501=_0x55810a['addRoot'](_0x1a1332);for(const _0x3a095f of Object['keys'](_0x468b84['attributes'][_0x1a1332]))_0x55810a['setAttribute'](_0x3a095f,_0x468b84['attributes'][_0x1a1332][_0x3a095f],_0x5bc501);_0x55810a['insert'](_0x468b84['model'][_0x1a1332],_0x5bc501,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x468b84['changes'])),this['isReady']=!0x0;})['catch'](_0xb8e43d=>{console['error'](_0xb8e43d),this['_cleanUp'](),_0x56d25b&&(this['diff']=_0x56d25b),this['isReady']=!0x0;});}['addRevisionData'](_0x14ec26,_0x5297e3){const _0x4b9f45=this['repository']['createRevision'](_0x14ec26);return _0x4b9f45['on']('_update',(_0x2bbd49,_0x2a39fc,_0x319fab)=>_0x5297e3(_0x2a39fc,_0x319fab,_0x4b9f45)),this['repository']['addRevision'](_0x4b9f45),_0x4b9f45;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x229a80=>{for(const _0x286e52 of this['editor']['model']['document']['getRootNames']())_0x229a80['detachRoot'](_0x286e52);});}['_sortAndFilterDiffChanges'](_0x579083){const _0x580db9=[],_0x573e50=new Map();for(const _0x5540f3 of this['editor']['model']['document']['getRootNames']()){const _0x473e42=this['editor']['editing']['view']['getDomRoot'](_0x5540f3);if(!_0x473e42)continue;const _0x21a50c=_0x473e42['getClientRects']()['item'](0x0);_0x21a50c&&(_0x580db9['push'](_0x5540f3),_0x573e50['set'](_0x5540f3,_0x21a50c));}return _0x580db9['sort']((_0x391654,_0x5d9753)=>{const _0x31bf07=_0x573e50['get'](_0x391654),_0x4a9100=_0x573e50['get'](_0x5d9753);return _0x31bf07['y']-_0x4a9100['y']||_0x31bf07['x']-_0x4a9100['x'];}),(_0x579083=_0x579083['filter'](_0x30f61f=>_0x580db9['includes'](_0x30f61f['rootName'])))['sort']((_0x5825b6,_0x5db51d)=>_0x580db9['indexOf'](_0x5825b6['rootName'])-_0x580db9['indexOf'](_0x5db51d['rootName'])),_0x579083;}['_makeTape'](_0x3d4e5e){const _0x4d613a=Array['from'](_0x3d4e5e['markers'])['filter'](([_0x5a30a1,_0x4b8a76])=>_0x5a30a1['startsWith']('revision:')&&!_0x4b8a76['isCollapsed']),_0x3be563=Array['from'](this['editor']['model']['createRangeIn'](_0x3d4e5e)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4d613a['length'])for(const _0x6979b6 of _0x3be563){const [_0x541a56,_0x2342ef]=_0x4d613a[0x0],[,_0x30893f,_0x14af97]=_0x541a56['split'](':');if(_0x2342ef['end']['isEqual'](_0x6979b6['nextPosition'])&&_0x4d613a['shift'](),(_0x6979b6['previousPosition']['isEqual'](_0x2342ef['start'])||_0x6979b6['previousPosition']['isAfter'](_0x2342ef['start']))&&('insertion'==_0x30893f?_0x6979b6['isAdded']={'userId':_0x14af97}:'deletion'==_0x30893f&&(_0x6979b6['isRemoved']={'userId':_0x14af97})),0x0==_0x4d613a['length'])break;}return _0x3be563;}['_refreshStartEndIndex'](_0x1525ff){const _0x36e649=new Map();for(let _0x481572=0x0;_0x481572<_0x1525ff['length'];_0x481572++)'text'===_0x1525ff[_0x481572]['type']?(_0x1525ff[_0x481572]['item']['startIndex']=_0x481572,_0x1525ff[_0x481572]['item']['endIndex']=_0x481572):('elementStart'===_0x1525ff[_0x481572]['type']?_0x1525ff[_0x481572]['item']['startIndex']=_0x481572:'elementEnd'===_0x1525ff[_0x481572]['type']&&(_0x1525ff[_0x481572]['item']['endIndex']=_0x481572),_0x36e649['set'](_0x1525ff[_0x481572]['id'],_0x481572));for(const _0x3bff5b of _0x36e649['values']())'elementStart'===_0x1525ff[_0x3bff5b]['type']?_0x1525ff[_0x3bff5b]['item']['endIndex']=_0x36e649['get'](_0x1525ff[_0x3bff5b]['pairId']):'elementEnd'===_0x1525ff[_0x3bff5b]['type']&&(_0x1525ff[_0x3bff5b]['item']['startIndex']=_0x36e649['get'](_0x1525ff[_0x3bff5b]['pairId']));}['_processTape'](_0x53cb5b){for(let _0x37975a=0x0;_0x37975a<_0x53cb5b['length'];_0x37975a++){if('elementStart'===_0x53cb5b[_0x37975a]['type'])_0x53cb5b[_0x37975a]['item']['startIndex']=_0x37975a;else{if('elementEnd'===_0x53cb5b[_0x37975a]['type']){_0x53cb5b[_0x37975a]['item']['endIndex']=_0x37975a;const _0xafc72f=_0x53cb5b[_0x37975a]['item']['startIndex'];_0x53cb5b[_0xafc72f]['pairId']=_0x53cb5b[_0x37975a]['id'],_0x53cb5b[_0x37975a]['pairId']=_0x53cb5b[_0xafc72f]['id'];}else _0x53cb5b[_0x37975a]['item']['startIndex']=_0x37975a,_0x53cb5b[_0x37975a]['item']['endIndex']=_0x37975a,_0x53cb5b[_0x37975a]['pairId']=null;}_0x53cb5b[_0x37975a]['markersStart']||(_0x53cb5b[_0x37975a]['markersStart']=[],_0x53cb5b[_0x37975a]['markersEnd']=[]);}}['_markInsertions'](_0x35f943,_0x290209){const _0x14078f=_0x35f943['filter'](_0x1d0f8f=>!_0x1d0f8f['isAdded']);for(let _0x53a1ff=0x0;_0x53a1ff<_0x290209['length'];_0x53a1ff++)_0x290209[_0x53a1ff]['isAdded']&&(_0x14078f[_0x53a1ff]['isAdded']=_0x290209[_0x53a1ff]['isAdded']);}['_getDiff'](_0x45106a,_0x1cbe82=null){const _0x5d5394=this['repository']['getRevision'](_0x45106a),_0x57024f=_0x1cbe82?this['repository']['getRevision'](_0x1cbe82):null,_0x4746eb=this['_getRevisionsRange'](_0x5d5394,_0x57024f),_0x4123f1=_0x4746eb[_0x4746eb['length']-0x1],_0x5de3cc=new Map(),_0x3dbea1={'model':{},'attributes':{},'changes':[]},_0x3b40c3=new Set(),_0x24353a=new Map();for(let _0x5e691a=_0x4746eb['length']-0x1;_0x5e691a>=0x0;_0x5e691a--){const _0x9b0880=_0x4746eb[_0x5e691a];for(const _0x1904ec of Object['keys'](_0x9b0880['diffData']))if(_0x9b0880['diffData'][_0x1904ec]['attachChange']){const _0x26e8ef=_0x9b0880['diffData'][_0x1904ec]['attachChange'];_0x26e8ef['isAttached']?(_0x3b40c3['add'](_0x1904ec),_0x24353a['has'](_0x1904ec)&&_0x24353a['get'](_0x1904ec)['userId']==_0x26e8ef['userId']?_0x24353a['delete'](_0x1904ec):_0x24353a['set'](_0x1904ec,_0x26e8ef)):_0x24353a['has'](_0x1904ec)?(_0x3b40c3['delete'](_0x1904ec),_0x24353a['delete'](_0x1904ec)):(_0x3b40c3['add'](_0x1904ec),_0x24353a['set'](_0x1904ec,_0x26e8ef));}else _0x3b40c3['add'](_0x1904ec);}for(const _0x4698bf of _0x3b40c3){const _0x47ce41=_0x24353a['has'](_0x4698bf)&&!_0x24353a['get'](_0x4698bf)['isAttached'];let _0x402b21=_0x47ce41?_0x4746eb['length']-0x1:0x0;const _0x3a3262=_0x47ce41?-0x1:0x1;for(;_0x4746eb[_0x402b21];){const _0x4d6f71=_0x4746eb[_0x402b21];if(_0x4d6f71['diffData'][_0x4698bf]){const _0x47395d=_0x47ce41?_0x4d6f71['diffData'][_0x4698bf]['attributesBefore']:_0x4d6f71['diffData'][_0x4698bf]['attributesAfter'];_0x3dbea1['attributes'][_0x4698bf]=_0x47395d?_0x215734(_0x47395d):{};break;}_0x402b21+=_0x3a3262;}}for(const _0x98436f of _0x4746eb){_0x98436f['model']={};for(const _0x4171e6 of _0x98436f['authors'])_0x5de3cc['set'](_0x4171e6['id'],_0x4171e6);for(const _0x10f4a4 of _0x3b40c3){const _0x1cbe92=_0x98436f['diffData'][_0x10f4a4]?_0x98436f['diffData'][_0x10f4a4]['insertions']:'[]',_0x5009cd=_0x98436f['diffData'][_0x10f4a4]?_0x98436f['diffData'][_0x10f4a4]['deletions']:'[]';_0x98436f['model'][_0x10f4a4]={'insertions':this['_utils']['_makeModelFromViewString'](_0x1cbe92),'deletions':this['_utils']['_makeModelFromViewString'](_0x5009cd)};}}for(const _0x377f20 of _0x3b40c3){let _0x1a5c1c=null,_0x76e74f=0x0;const _0x535d85=new Map(Array['from'](_0x5d5394['model'][_0x377f20]['insertions']['markers'])['filter'](([_0x1b1a20])=>!_0x1b1a20['startsWith']('revision:')));let _0x4be521=0x0;for(const _0x36ada8 of _0x4746eb){const _0x432fa4=this['_makeTape'](_0x36ada8['model'][_0x377f20]['insertions']);_0x36ada8==_0x5d5394?(_0x1a5c1c=_0x432fa4,_0x76e74f=_0x1a5c1c['length'],_0x1a5c1c['forEach'](_0x374183=>{_0x374183['id']=_0x4be521++;}),this['_processTape'](_0x1a5c1c)):this['_markInsertions'](_0x1a5c1c,_0x432fa4);const _0x319cb0=_0x1a5c1c['filter'](_0x14a346=>!_0x14a346['isAdded'])['map'](_0x8e4eb9=>_0x8e4eb9['id']);let _0x5e7f8d=0x0;const _0xc1728c=this['_makeTape'](_0x36ada8['model'][_0x377f20]['deletions']);_0xc1728c['forEach'](_0xa3f721=>{_0xa3f721['isRemoved']?_0xa3f721['id']=_0x76e74f++:_0xa3f721['id']=_0x319cb0[_0x5e7f8d++];}),this['_processTape'](_0xc1728c),this['_setDistance'](_0x1a5c1c,'isAdded'),this['_setDistance'](_0xc1728c,'isRemoved'),_0x36ada8==_0x5d5394&&this['_markMarkers'](_0x1a5c1c,_0x535d85),_0x1a5c1c=this['_joinTapes'](_0x1a5c1c,_0xc1728c),this['_refreshStartEndIndex'](_0x1a5c1c),this['_setDistance'](_0x1a5c1c,'isRemoved');}_0x1a5c1c=_0x1a5c1c['filter'](_0x189da1=>!(_0x189da1['isAdded']&&_0x189da1['isRemoved']));const _0x529a86=new Map(_0x4123f1['model'][_0x377f20]['deletions']['markers']),_0x29dbfc=new Set(_0x535d85['keys']());for(const _0x2deb5c of _0x529a86['keys']())_0x29dbfc['delete'](_0x2deb5c);this['_markSuggestions'](_0x1a5c1c,_0x29dbfc),this['_fixObsoleteTags'](_0x1a5c1c),_0x1a5c1c=this['_removeMissingPairs'](_0x1a5c1c),_0x1a5c1c=this['_markMismatchedRemovedTags'](_0x1a5c1c),_0x1a5c1c=this['_removeUnsupportedChanges'](_0x1a5c1c);const {root:_0x1ae76b,changes:_0x5f1fa3}=this['_makeModelFromTape'](_0x1a5c1c,_0x5de3cc,_0x377f20);_0x3dbea1['model'][_0x377f20]=_0x1ae76b;const _0x5ee3b9=_0x24353a['get'](_0x377f20);if(_0x5ee3b9){const _0x5f49b7=_0x5de3cc['get'](_0x5ee3b9['userId']),_0x327522=new r({'author':_0x5f49b7,'type':_0x5ee3b9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x377f20});_0x5f1fa3['unshift'](_0x327522),_0x3dbea1['attributes'][_0x377f20]['revisionHistoryAttachChange']=_0x327522['id'];}_0x3dbea1['changes']=_0x3dbea1['changes']['concat'](_0x5f1fa3);}return _0x3dbea1;}['_markMarkers'](_0x2fe897,_0x4078a5){for(let _0x1341f3=0x0;_0x1341f3<_0x2fe897['length'];_0x1341f3++)for(const [_0x12dd0f,_0x3f5596]of _0x4078a5)!_0x3f5596['isCollapsed']&&_0x3f5596['start']['isEqual'](_0x2fe897[_0x1341f3]['previousPosition'])&&_0x2fe897[_0x1341f3]['markersStart']['push'](_0x12dd0f),_0x3f5596['end']['isEqual'](_0x2fe897[_0x1341f3]['nextPosition'])&&_0x2fe897[_0x1341f3]['markersEnd']['push'](_0x12dd0f);}['_joinTapes'](_0x4e433d,_0x1d4be7){let _0x58c865=[],_0x407a3c=0x0,_0x52d678=0x0;for(;_0x407a3c<_0x4e433d['length']||_0x52d678<_0x1d4be7['length'];){const _0x7229a5=_0x4e433d[_0x407a3c]||{},_0x306011=_0x1d4be7[_0x52d678]||{};if(_0x7229a5['id']==_0x306011['id'])_0x407a3c++,_0x52d678++,_0x58c865['push'](_0x7229a5);else{if(_0x306011['isRemoved']&&_0x7229a5['isAdded']){const {commonTape:_0x54d63c,iEnd:_0x4b52ee,jEnd:_0x4b3117}=this['_threeWayMerge'](_0x4e433d,_0x407a3c,_0x1d4be7,_0x52d678);_0x58c865=_0x58c865['concat'](_0x54d63c),_0x407a3c=_0x4b52ee,_0x52d678=_0x4b3117;}else _0x306011['isRemoved']?(_0x52d678++,_0x58c865['push'](_0x306011)):(_0x407a3c++,_0x58c865['push'](_0x7229a5));}}return _0x58c865;}['_markSuggestions'](_0xe1a887,_0x2c91d4){const _0x43c702=[];for(let _0x324b97=0x0;_0x324b97<_0xe1a887['length'];_0x324b97++){for(let _0x44a317=0x0;_0x44a317<_0xe1a887[_0x324b97]['markersStart']['length'];_0x44a317++){const _0x4db78b=_0xe1a887[_0x324b97]['markersStart'][_0x44a317];if(!_0x2c91d4['has'](_0x4db78b))continue;const {group:_0x5135bc,type:_0x4de8e9,authorId:_0x577c5e}=_0x50753d(_0x4db78b);'revision-suggestion'!=_0x5135bc||'insertion'!=_0x4de8e9&&'deletion'!=_0x4de8e9||(_0x43c702['unshift']({'type':_0x4de8e9,'name':_0x4db78b,'userId':_0x577c5e}),_0xe1a887[_0x324b97]['markersStart']['splice'](_0x44a317,0x1),_0x44a317--);}_0x1f6add(_0xe1a887[_0x324b97]);for(let _0x174681=0x0;_0x174681<_0xe1a887[_0x324b97]['markersEnd']['length'];_0x174681++){const _0x5a2bc5=_0xe1a887[_0x324b97]['markersEnd'][_0x174681];if(!_0x2c91d4['has'](_0x5a2bc5))continue;const {group:_0xf66331,type:_0x38d7fe}=_0x50753d(_0x5a2bc5);if('revision-suggestion'!=_0xf66331||'insertion'!=_0x38d7fe&&'deletion'!=_0x38d7fe)continue;_0xe1a887[_0x324b97]['markersEnd']['splice'](_0x174681,0x1),_0x174681--;const _0x572668=_0x43c702['findIndex'](_0x3f23a1=>_0x3f23a1['name']==_0x5a2bc5);_0x572668>-0x1&&_0x43c702['splice'](_0x572668,0x1);}}function _0x50753d(_0x1fe4f3){const _0x2a94ec=_0x1fe4f3['split'](':');return{'group':_0x2a94ec[0x0],'type':_0x2a94ec[0x1],'subType':_0x2a94ec['length']>=0x5?_0x2a94ec[0x2]:null,'id':_0x2a94ec['length']<0x5?_0x2a94ec[0x2]:_0x2a94ec[0x3],'authorId':_0x2a94ec['length']<0x5?_0x2a94ec[0x3]:_0x2a94ec[0x4],'markerCount':0x6==_0x2a94ec['length']?_0x2a94ec[0x5]:null};}function _0x1f6add(_0x31ba81){for(let _0x349b08=0x0;_0x349b08<_0x43c702['length'];_0x349b08++){if(_0x31ba81['isAdded']&&'insertion'==_0x43c702[_0x349b08]['type']&&_0x31ba81['isAdded']['userId']==_0x43c702[_0x349b08]['userId'])return _0x31ba81['isAddSuggestion']=_0x43c702[_0x349b08],void delete _0x31ba81['isAdded'];if(!_0x31ba81['isAdded']&&!_0x31ba81['isRemoved']&&'deletion'==_0x43c702[_0x349b08]['type'])return void(_0x31ba81['isRemoveSuggestion']=_0x43c702[_0x349b08]);}}}['_setDistance'](_0x7b33b7,_0x4302b3){let _0x13d2ad=0x0,_0x49d95c=!0x1;const _0xdd12b7=new Map();for(const _0x219a32 of _0x7b33b7)_0x219a32[_0x4302b3]?_0x49d95c&&(_0x13d2ad++,_0x49d95c=!0x1):(_0x13d2ad++,_0x49d95c=!0x0),_0xdd12b7['set'](_0x219a32['id'],_0x13d2ad);for(let _0x147b16=0x0;_0x147b16<_0x7b33b7['length'];_0x147b16++){if('isRemoved'==_0x4302b3&&_0x7b33b7[_0x147b16]['isAdded']||'isAdded'==_0x4302b3&&_0x7b33b7[_0x147b16]['isRemoved'])continue;if('text'==_0x7b33b7[_0x147b16]['type']){_0x7b33b7[_0x147b16]['distance']=0x0;continue;}const _0x13976c=_0xdd12b7['get'](_0x7b33b7[_0x147b16]['pairId']),_0xf8abbe=_0xdd12b7['get'](_0x7b33b7[_0x147b16]['id']);_0x7b33b7[_0x147b16]['distance']=_0x13976c-_0xf8abbe;}}['_getRevisionsRange'](_0x4b3c1b,_0x42c2a4,_0x36c94f=!0x1){const _0x6ce8d4=[];let _0x2a6ddb=this['repository']['getIndex'](_0x4b3c1b),_0x16c263=this['repository']['getIndex'](_0x42c2a4);for(-0x1==_0x16c263&&(_0x16c263=this['repository']['_revisions']['length'],_0x36c94f=!0x1);_0x2a6ddb<_0x16c263;)_0x6ce8d4['push'](this['repository']['getRevision'](_0x2a6ddb)),_0x2a6ddb++;return _0x36c94f&&_0x6ce8d4['push'](this['repository']['getRevision'](_0x2a6ddb)),_0x6ce8d4;}['_threeWayMerge'](_0x40ea38,_0x355a3d,_0x486a9c,_0x1fa13e){const _0x564ff2=this['editor']['model']['schema'];let _0xea42d=_0x355a3d;for(;_0x40ea38[_0xea42d]&&_0x40ea38[_0xea42d]['isAdded'];)_0xea42d++;let _0x2e088b=_0x1fa13e;for(;_0x486a9c[_0x2e088b]&&_0x486a9c[_0x2e088b]['isRemoved'];)_0x2e088b++;_0x20adbb(_0x40ea38,_0x355a3d,_0xea42d),_0x20adbb(_0x486a9c,_0x1fa13e,_0x2e088b);const _0x136e76=_0x486a9c['slice'](_0x1fa13e,_0x2e088b)['concat'](_0x40ea38['slice'](_0x355a3d,_0xea42d));return _0x136e76['sort']((_0x50f705,_0x4f5bfe)=>_0x50f705['side']!=_0x4f5bfe['side']?_0x50f705['side']-_0x4f5bfe['side']:_0x50f705['level']!=_0x4f5bfe['level']?_0x50f705['level']-_0x4f5bfe['level']:_0x50f705['distance']!=_0x4f5bfe['distance']?_0x4f5bfe['distance']-_0x50f705['distance']:!!_0x50f705['isAdded']!=!!_0x4f5bfe['isAdded']?-0x1==_0x50f705['side']||0x0==_0x50f705['side']?_0x50f705['isAdded']?-0x1:0x1:_0x50f705['isAdded']?0x1:-0x1:_0x50f705['index']-_0x4f5bfe['index']),{'commonTape':_0x136e76,'iEnd':_0xea42d,'jEnd':_0x2e088b};function _0x20adbb(_0x6e8167,_0x29f100,_0x2d5113){let _0x2a71d7=-0x1,_0x52bb62=Number['POSITIVE_INFINITY'],_0x16cab6=!0x0;for(let _0x5c3e4f=_0x29f100;_0x5c3e4f<_0x2d5113;_0x5c3e4f++)if(_0x564ff2['isInline'](_0x6e8167[_0x5c3e4f]['item'])||(_0x16cab6=!0x1),_0x6e8167[_0x5c3e4f]['item']['startIndex']<_0x29f100&&(_0x2a71d7=_0x5c3e4f),_0x6e8167[_0x5c3e4f]['item']['endIndex']>=_0x2d5113){_0x52bb62=_0x5c3e4f;break;}_0x16cab6&&(_0x2a71d7=_0x2d5113-0x1);for(let _0x5e2e92=_0x29f100;_0x5e2e92<_0x2d5113;_0x5e2e92++)_0x6e8167[_0x5e2e92]['side']=_0x5e2e92<=_0x2a71d7?-0x1:_0x5e2e92<_0x52bb62?0x0:0x1,_0x6e8167[_0x5e2e92]['index']=_0x5e2e92;let _0x295baa=0x0;for(let _0x31c177=_0x29f100;_0x31c177<=_0x2a71d7;_0x31c177++)0x0==_0x6e8167[_0x31c177]['distance']?_0x6e8167[_0x31c177]['level']=_0x295baa:(_0x295baa++,_0x6e8167[_0x31c177]['level']=_0x295baa,_0x295baa++);for(let _0x1be360=_0x29f100;_0x1be360<_0x2d5113;_0x1be360++)0x0==_0x6e8167[_0x1be360]['side']&&(_0x6e8167[_0x1be360]['level']=_0x295baa);_0x295baa=0x0;for(let _0x43e960=_0x2d5113-0x1;_0x43e960>=_0x52bb62;_0x43e960--)0x0==_0x6e8167[_0x43e960]['distance']?_0x6e8167[_0x43e960]['level']=_0x295baa:(_0x295baa--,_0x6e8167[_0x43e960]['level']=_0x295baa,_0x295baa--);}}['_fixObsoleteTags'](_0x489ccb){const _0x47f0c0=new Map(),_0x263497=this['editor']['model']['schema'];for(let _0x2f355f=0x1;_0x2f355f<_0x489ccb['length'];_0x2f355f++){let _0x426f29,_0x5abf91,_0x2e983a;const _0x5cbb58=_0x489ccb[_0x2f355f],_0x37f48b=_0x489ccb[_0x2f355f-0x1];if('text'==_0x5cbb58['type'])continue;if(_0x5cbb58['type']!=_0x37f48b['type'])continue;if(!_0x263497['isBlock'](_0x37f48b['item'])||_0x263497['isLimit'](_0x37f48b['item']))continue;if(!_0x263497['isBlock'](_0x5cbb58['item'])||_0x263497['isLimit'](_0x5cbb58['item']))continue;if((_0x489ccb[_0x2f355f]['isAdded']||_0x489ccb[_0x2f355f]['isAddSuggestion'])&&_0x489ccb[_0x2f355f-0x1]['isRemoved'])_0x426f29=_0x489ccb[_0x2f355f],_0x5abf91=_0x489ccb[_0x2f355f-0x1],_0x2e983a=_0x2f355f-0x1;else{if(!_0x489ccb[_0x2f355f]['isRemoved']||!_0x489ccb[_0x2f355f-0x1]['isAdded']&&!_0x489ccb[_0x2f355f-0x1]['isAddSuggestion'])continue;_0x426f29=_0x489ccb[_0x2f355f-0x1],_0x5abf91=_0x489ccb[_0x2f355f],_0x2e983a=_0x2f355f;}const _0x4d1fff=_0x426f29['level']==_0x5abf91['level'],_0x12d4e3=Math['abs'](_0x426f29['level'])<Math['abs'](_0x5abf91['level'])&&0x0==_0x5abf91['distance'];(_0x4d1fff||_0x12d4e3)&&(_0x47f0c0['set'](_0x5abf91['id'],_0x426f29['id']),_0x489ccb['splice'](_0x2e983a,0x1),_0x2f355f--,_0x426f29['isAdded']=!0x1);}for(let _0x514e97=0x0;_0x514e97<_0x489ccb['length'];_0x514e97++)_0x47f0c0['has'](_0x489ccb[_0x514e97]['pairId'])&&(_0x489ccb[_0x514e97]['pairId']=_0x47f0c0['get'](_0x489ccb[_0x514e97]['pairId']));}['_removeMissingPairs'](_0x352a47){const _0x5ec236=new Set(_0x352a47['map'](_0x54e7ab=>_0x54e7ab['id']));for(let _0xe08903=0x0;_0xe08903<_0x352a47['length'];_0xe08903++)_0x5ec236['has'](_0x352a47[_0xe08903]['pairId'])||0x0==_0x352a47[_0xe08903]['distance']||(_0x352a47[_0xe08903]['isIncorrect']=!0x0);return _0x352a47['filter'](_0x3682fa=>!_0x3682fa['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3f6847){const _0x18691e=new Set();for(let _0x5547e4=0x0;_0x5547e4<_0x3f6847['length'];_0x5547e4++){if(_0x18691e['has'](_0x3f6847[_0x5547e4]['id'])&&_0x3f6847[_0x5547e4]['isRemoved']&&(_0x3f6847[_0x5547e4]['isIncorrect']=!0x0),_0x3f6847[_0x5547e4]['isIncorrect'])continue;if(0x0==_0x3f6847[_0x5547e4]['distance'])continue;if('elementStart'!=_0x3f6847[_0x5547e4]['type'])continue;if(null==_0x3f6847[_0x5547e4]['pairId'])continue;let _0x3d23f0=_0x5547e4+0x1,_0xba1973=0x0;for(;_0x3f6847[_0x3d23f0]['id']!=_0x3f6847[_0x5547e4]['pairId'];)'elementStart'==_0x3f6847[_0x3d23f0]['type']?_0xba1973++:'elementEnd'==_0x3f6847[_0x3d23f0]['type']&&_0xba1973--,_0x3d23f0++;if(0x0!=_0xba1973){if(_0x3f6847[_0x5547e4]['isRemoved'])_0x3f6847[_0x5547e4]['isIncorrect']=!0x0;else{for(;_0x3d23f0!=_0x5547e4;)_0x3f6847[_0x3d23f0]['isRemoved']&&0x0!=_0x3f6847[_0x3d23f0]['distance']&&(_0x3f6847[_0x3d23f0]['isIncorrect']=!0x0,_0x18691e['add'](_0x3f6847[_0x3d23f0]['pairId'])),_0x3d23f0--;}}}return _0x3f6847['filter'](_0x1b286c=>!_0x1b286c['isIncorrect']);}['_removeUnsupportedChanges'](_0x273301){const _0x11ee5d=this['editor']['model']['schema'];for(let _0x5b9f46=0x0;_0x5b9f46<_0x273301['length'];_0x5b9f46++){if(!(_0x273301[_0x5b9f46]['isAdded']||_0x273301[_0x5b9f46]['isAddSuggestion']||_0x273301[_0x5b9f46]['isRemoved']||_0x273301[_0x5b9f46]['isRemoveSuggestion']))continue;if(0x0==_0x273301[_0x5b9f46]['distance'])continue;const _0x59ee12=_0x273301[_0x5b9f46]['item'];_0x11ee5d['isBlock'](_0x59ee12)||_0x11ee5d['isLimit'](_0x59ee12)||(_0x273301[_0x5b9f46]['isAdded']&&delete _0x273301[_0x5b9f46]['isAdded'],_0x273301[_0x5b9f46]['isAddSuggestion']&&delete _0x273301[_0x5b9f46]['isAddSuggestion'],_0x273301[_0x5b9f46]['isRemoveSuggestion']&&delete _0x273301[_0x5b9f46]['isRemoveSuggestion'],_0x273301[_0x5b9f46]['isRemoved']&&(_0x273301[_0x5b9f46]['isIncorrect']=!0x0));}return _0x273301['filter'](_0x382a66=>!_0x382a66['isIncorrect']);}['_makeModelFromTape'](_0x3d725a,_0x1e5b2a,_0x2bf394){const _0x54d1d8=new gt(),_0x39c9b7=[],_0x35f27a=new Map(),_0x16e0ee=this['editor']['model'],_0x5bed89=_0x16e0ee['schema'],_0x313f48=[_0x54d1d8],_0x161e9b={},_0x2a3dda={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x345e0e=null;const _0x14c749=[0x0];for(let _0x322c5f=0x0;_0x322c5f<_0x3d725a['length'];_0x322c5f++)if('elementStart'===_0x3d725a[_0x322c5f]['type']){_0x3d725a[_0x322c5f]['previousPosition']=_0x16e0ee['createPositionFromPath'](_0x54d1d8,_0x14c749);const _0x2a89fe=new ut(_0x3d725a[_0x322c5f]['item']['name'],_0x3d725a[_0x322c5f]['item']['getAttributes']());_0x313f48[0x0]['_appendChild'](_0x2a89fe),_0x14c749['push'](0x0),_0x313f48['unshift'](_0x2a89fe),_0x3d725a[_0x322c5f]['nextPosition']=_0x16e0ee['createPositionFromPath'](_0x54d1d8,_0x14c749);}else'elementEnd'===_0x3d725a[_0x322c5f]['type']?(_0x313f48['shift'](),_0x3d725a[_0x322c5f]['previousPosition']=_0x16e0ee['createPositionFromPath'](_0x54d1d8,_0x14c749),_0x14c749['pop'](),_0x14c749[_0x14c749['length']-0x1]++,_0x3d725a[_0x322c5f]['nextPosition']=_0x16e0ee['createPositionFromPath'](_0x54d1d8,_0x14c749)):(_0x3d725a[_0x322c5f]['previousPosition']=_0x16e0ee['createPositionFromPath'](_0x54d1d8,_0x14c749),_0x345e0e?_0x345e0e['_data']+=_0x3d725a[_0x322c5f]['item']['data']:_0x345e0e=new mt(_0x3d725a[_0x322c5f]['item']['data'],_0x3d725a[_0x322c5f]['item']['getAttributes']()),_0x3d725a[_0x322c5f+0x1]&&'text'===_0x3d725a[_0x322c5f+0x1]['type']&&_0x12d1a6(_0x345e0e,_0x3d725a[_0x322c5f+0x1]['item'])||(_0x313f48[0x0]['_appendChild'](_0x345e0e),_0x345e0e=null),_0x14c749[_0x14c749['length']-0x1]+=_0x3d725a[_0x322c5f]['item']['offsetSize'],_0x3d725a[_0x322c5f]['nextPosition']=_0x16e0ee['createPositionFromPath'](_0x54d1d8,_0x14c749));for(let _0x47230e=0x0;_0x47230e<_0x3d725a['length'];_0x47230e++){const _0x96bf78=_0x3d725a[_0x47230e]['previousPosition'],_0x23913b=_0x3d725a[_0x47230e]['nextPosition'];for(const _0x36d530 of _0x3d725a[_0x47230e]['markersStart'])_0x35f27a['set'](_0x36d530,{'start':_0x96bf78,'end':null});_0xaa201('isRemoveSuggestion',_0x47230e,_0x96bf78,_0x23913b),_0xaa201('isAddSuggestion',_0x47230e,_0x96bf78,_0x23913b),_0xaa201('isRemoved',_0x47230e,_0x96bf78,_0x23913b),_0xaa201('isAdded',_0x47230e,_0x96bf78,_0x23913b);for(const _0x1162ac of _0x3d725a[_0x47230e]['markersEnd']){const _0x2aef8b=_0x35f27a['get'](_0x1162ac);_0x2aef8b?_0x2aef8b['end']=_0x23913b:_0x35f27a['set'](_0x1162ac,{'start':_0x23913b,'end':_0x23913b});}}for(const [_0x452eb3,_0x2b3f32]of _0x35f27a){const _0x5b9f2e=this['editor']['model']['createRange'](_0x2b3f32['start'],_0x2b3f32['end']);_0x54d1d8['markers']['set'](_0x452eb3,_0x5b9f2e);}return _0x39c9b7['sort']((_0x1d807b,_0x1f0f07)=>{const _0x32fe49=_0x54d1d8['markers']['get']('revision:'+_0x1d807b['id']),_0x3f7bc9=_0x54d1d8['markers']['get']('revision:'+_0x1f0f07['id']);return _0x32fe49['start']['isBefore'](_0x3f7bc9['start'])?-0x1:_0x32fe49['start']['isAfter'](_0x3f7bc9['start'])?0x1:_0x32fe49['end']['isBefore'](_0x3f7bc9['end'])?-0x1:_0x32fe49['end']['isAfter'](_0x3f7bc9['end'])?0x1:'add'===_0x1d807b['type']?-0x1:0x1;}),{'root':_0x54d1d8,'changes':_0x39c9b7};function _0xaa201(_0x190662,_0x43912c,_0x464771,_0x2b1a6e){const _0x439d3a=!!_0x3d725a[_0x43912c][_0x190662],_0x1c27af=_0x439d3a?_0x3d725a[_0x43912c][_0x190662]['userId']:null,_0x11e641=_0x43912c===_0x3d725a['length']-0x1,_0x13e7fd=_0x2a3dda[_0x190662][0x0],_0x54d15b=_0x5bed89['isObject'](_0x3d725a[_0x43912c]['item']);!_0x161e9b[_0x190662]&&_0x439d3a?_0x161e9b[_0x190662]={'start':_0x464771,'tapeItem':_0x3d725a[_0x43912c],'userId':_0x1c27af,'type':_0x190662}:_0x161e9b[_0x190662]&&!_0x439d3a?(_0x161e9b[_0x190662]['end']=_0x464771,_0x36ac4d(_0x161e9b[_0x190662]),_0x161e9b[_0x190662]=null):_0x161e9b[_0x190662]&&_0x439d3a&&_0x161e9b[_0x190662]['userId']!==_0x1c27af&&(_0x161e9b[_0x190662]['end']=_0x464771,_0x13e7fd&&_0x13e7fd['userId']===_0x161e9b[_0x190662]['userId']||_0x36ac4d(_0x161e9b[_0x190662]),_0x161e9b[_0x190662]={'start':_0x464771,'tapeItem':_0x3d725a[_0x43912c],'userId':_0x1c27af,'type':_0x190662}),_0x161e9b[_0x190662]&&_0x54d15b&&('elementStart'!==_0x3d725a[_0x43912c]['type']||_0x13e7fd&&_0x13e7fd['userId']===_0x1c27af||_0x2a3dda[_0x190662]['unshift']({'userId':_0x1c27af,'object':_0x3d725a[_0x43912c]['item'],'change':_0x161e9b[_0x190662]}),'elementEnd'===_0x3d725a[_0x43912c]['type']&&_0x13e7fd&&_0x13e7fd['object']===_0x3d725a[_0x43912c]['item']&&(_0x2a3dda[_0x190662]['shift'](),_0x161e9b[_0x190662]=_0x13e7fd['change'])),_0x161e9b[_0x190662]&&_0x11e641&&(_0x161e9b[_0x190662]['end']=_0x2b1a6e,_0x36ac4d(_0x161e9b[_0x190662]),_0x161e9b[_0x190662]=null);}function _0x36ac4d({start:_0x27e657,end:_0xff4a44,tapeItem:_0x13a461,userId:_0x43a22c,type:_0x2adcc8}){const _0x12e3aa=_0x13a461['item'],_0x32a003=_0x16e0ee['schema']['isBlock'](_0x12e3aa)&&!_0x16e0ee['schema']['isLimit'](_0x12e3aa),_0x2a988a=_0x27e657['nodeAfter']==_0xff4a44['parent']&&_0xff4a44['isAtStart'];if(_0x32a003&&_0x2a988a)return;const _0x1244ac=_0x16e0ee['createRange'](_0x27e657,_0xff4a44),_0x3de29b=_0x1e5b2a['get'](_0x43a22c),_0x353c18=new r({'author':_0x3de29b,'type':'isAdded'==_0x2adcc8||'isAddSuggestion'==_0x2adcc8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2adcc8||'isRemoveSuggestion'==_0x2adcc8},'createdAt':new Date(),'rootName':_0x2bf394});_0x39c9b7['push'](_0x353c18),_0x54d1d8['markers']['set']('revision:'+_0x353c18['id'],_0x1244ac);}function _0x12d1a6(_0x1df0da,_0x3225de){const _0x473241=_0x1df0da['getAttributes'](),_0x1004d1=_0x3225de['getAttributes']();for(const _0x5b5f7d of _0x473241){if(_0x5b5f7d[0x1]!==_0x3225de['getAttribute'](_0x5b5f7d[0x0]))return!0x1;_0x1004d1['next']();}return _0x1004d1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x44de41=>{const _0x44189c=_0x44de41['markerName']['split'](':')[0x1],_0x577e0b=this['_getChangeFromId'](_0x44189c);if(!_0x577e0b)return null;const _0x270b9f='add'==_0x577e0b['type']?'insertion':'deletion',_0x26aea7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x270b9f];return _0x577e0b['data']['isSuggestion']&&_0x26aea7['push']('ck-suggestion-marker-'+_0x270b9f+'-new'),this['activeChange']==_0x577e0b&&_0x26aea7['push']('ck-suggestion-marker--active'),{'classes':_0x26aea7,'attributes':{'data-change-id':_0x44189c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x103b81=>{_0x103b81['on']('element:pre',(_0x56123f,_0x1b866b,_0x950eb5)=>{const _0x44d548=_0x1b866b['viewItem']['getChild'](0x0);if(!_0x44d548||!_0x44d548['is']('element','code'))return;if(!_0x950eb5['consumable']['consume'](_0x44d548,{'attributes':['vid_start','vid_end']}))return;const _0x41019c=_0x1b866b['modelRange']['start']['nodeAfter'];_0x950eb5['writer']['setAttribute']('vid_start',_0x44d548['getAttribute']('vid_start'),_0x41019c),_0x950eb5['writer']['setAttribute']('vid_end',_0x44d548['getAttribute']('vid_end'),_0x41019c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x403ab1=>{_0x403ab1['on']('element',(_0x33cf2f,_0x34b1e2,_0x258851)=>{if(!_0x258851['consumable']['consume'](_0x34b1e2['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x34b1e2['modelRange']['isCollapsed'])return;const _0x17f5c6=_0x34b1e2['modelRange']['start']['nodeAfter'];_0x17f5c6['hasAttribute']('vid_start')||_0x17f5c6['hasAttribute']('vid')||(_0x258851['writer']['setAttribute']('vid_start',_0x34b1e2['viewItem']['getAttribute']('vid_start'),_0x17f5c6),_0x258851['writer']['setAttribute']('vid_end',_0x34b1e2['viewItem']['getAttribute']('vid_end'),_0x17f5c6));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb6a33b=>_0xb6a33b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2d2621,[,_0x237600])=>{['vid_start','vid_end','vid']['includes'](_0x237600)&&(_0x2d2621['return']=!0x0,_0x2d2621['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x2f9116=>{_0x2f9116['on']('attribute:vid',(_0x49cb7e,_0x3520fd,_0x3afac5)=>{if('\x20'!=_0x3520fd['item']['data']||_0x3520fd['item']['parent']['maxOffset']>0x1)return;if(!_0x3afac5['consumable']['consume'](_0x3520fd['item'],_0x49cb7e['name']))return;const _0x3c3502=_0x3afac5['writer'],_0x5941f2=_0x3afac5['mapper']['toViewRange'](_0x3520fd['range']);_0x3c3502['wrap'](_0x5941f2,_0x3c3502['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1b79e4){const _0x122d41=_0x1b79e4['plugins']['get']('RevisionViewer');return(_0xa197ba,_0x3d57f0,_0x4b4a1d)=>{const _0x37c78a=_0x3d57f0['markerName']['split'](':')[0x1],_0x1c291d=_0x122d41['_getChangeFromId'](_0x37c78a);if(!_0x1c291d)return null;const _0x2f7599='add'==_0x1c291d['type']?'split':'merge';if(!_0x4b4a1d['consumable']['test'](_0x3d57f0['markerRange'],_0xa197ba['name']))return;const _0x487163=_0x3d57f0['markerRange']['getWalker'](),_0x1887ba=_0x3d57f0['markerRange']['start'],_0x138bad=_0x1b79e4['model']['schema'];let _0x2e202f=null,_0xfb4bd6=null,_0x53f742=!0x1,_0x20f201=!0x1;for(const _0x3572d8 of _0x487163){const _0x284fcf=_0x3572d8['item'];_0x53f742=_0x53f742||_0x138bad['isContent'](_0x284fcf);const _0x138134=_0x4b4a1d['mapper']['toViewElement'](_0x284fcf);if(_0x138134&&_0x138134['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3572d8['type']&&(_0x138bad['isBlock'](_0x284fcf)&&!_0x138bad['isLimit'](_0x284fcf)&&(_0x284fcf['nextSibling']||_0x1887ba['isAtEnd']?_0x2e202f&&_0x2e202f['parent']==_0x284fcf||(_0x2e202f=_0x284fcf,_0x36e477(_0x3572d8['previousPosition']),_0x20f201=!0x0):_0xfb4bd6=_0xfb4bd6||_0x3572d8['previousPosition']));}function _0x36e477(_0x2c6a50){const _0x47b8b3=_0x4b4a1d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2f7599}),_0xc3c9de=_0x4b4a1d['mapper']['toViewPosition'](_0x2c6a50);_0x1c291d['data']['isSuggestion']&&_0x4b4a1d['writer']['addClass']('ck-suggestion-marker-'+_0x2f7599+'-new',_0x47b8b3),_0x122d41['activeChange']==_0x1c291d&&_0x4b4a1d['writer']['addClass']('ck-suggestion-marker--active',_0x47b8b3),_0x4b4a1d['writer']['insert'](_0xc3c9de,_0x47b8b3),_0x4b4a1d['mapper']['bindElementToMarker'](_0x47b8b3,_0x3d57f0['markerName']);}_0x53f742||_0x20f201||!_0xfb4bd6||_0x36e477(_0xfb4bd6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1f2267,_0x503435,_0x1144c9)=>{const _0x20577a=_0x1144c9['mapper']['markerNameToElements'](_0x503435['markerName']);if(_0x20577a){for(const _0x4117ea of _0x20577a)(_0x4117ea['hasClass']('ck-suggestion-marker-split')||_0x4117ea['hasClass']('ck-suggestion-marker-merge'))&&(_0x1144c9['mapper']['unbindElementFromMarkerName'](_0x4117ea,_0x503435['markerName']),_0x1144c9['writer']['remove'](_0x4117ea));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x59cf0c,_0x3b0e59,_0x550e80)=>{const _0x9d96a=_0x3b0e59['markerName']['split'](':')[0x1],_0x21f63e=this['_getChangeFromId'](_0x9d96a);if(!_0x21f63e)return null;const _0x13b2eb='add'==_0x21f63e['type']?'split':'merge';if(_0x550e80['consumable']['test'](_0x3b0e59['markerRange'],_0x59cf0c['name']))for(const _0x13208a of _0x3b0e59['markerRange']['getItems']()){if(!_0x13208a['is']('element','softBreak'))continue;const _0x1ea3d4=_0x550e80['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x13b2eb}),_0x4ad757=_0x550e80['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x13208a));_0x21f63e['data']['isSuggestion']&&_0x550e80['writer']['addClass']('ck-suggestion-marker-'+_0x13b2eb+'-new',_0x1ea3d4),this['activeChange']==_0x21f63e&&_0x550e80['writer']['addClass']('ck-suggestion-marker--active',_0x1ea3d4),_0x550e80['writer']['insert'](_0x4ad757,_0x1ea3d4),_0x550e80['mapper']['bindElementToMarker'](_0x1ea3d4,_0x3b0e59['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x270e46=>{for(const _0x35341b of this['editor']['model']['document']['getRootNames']()){const _0x5be8ae=this['editor']['model']['document']['getRoot'](_0x35341b),_0x132d7f=this['editor']['editing']['view']['document']['getRoot'](_0x35341b);if(_0x132d7f){const _0x31bae3=_0x5be8ae['getAttribute']('revisionHistoryAttachChange');if(_0x270e46['removeAttribute']('data-change-id',_0x132d7f),_0x270e46['removeClass']('ck-revision-history-root-add',_0x132d7f),_0x270e46['removeClass']('ck-revision-history-root-remove',_0x132d7f),_0x270e46['removeClass']('ck-revision-history-root--active',_0x132d7f),_0x31bae3){const _0x2df57b=this['_getChangeFromId'](_0x31bae3);if(!_0x2df57b)return null;_0x270e46['setAttribute']('data-change-id',_0x31bae3,_0x132d7f),_0x270e46['addClass']('ck-revision-history-root-'+_0x2df57b['type'],_0x132d7f),this['activeChange']==_0x2df57b&&_0x270e46['addClass']('ck-revision-history-root--active',_0x132d7f);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3f4928=>'revision-comment:'+_0x3f4928,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3c58c2=>'revision-suggestion:'+_0x3c58c2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x19780c=>({'name':'suggestion:'+_0x19780c,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x21ce4b=>{const _0x4b5d81=_0x21ce4b['markerName']['split'](':')[0x1];return'insertion'!=_0x4b5d81&&'deletion'!=_0x4b5d81?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4b5d81]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x437b1e,_0x41dd3f,_0x14e597)=>{const _0x2bb1f8=_0x14e597['mapper']['markerNameToElements'](_0x41dd3f['markerName']);if(_0x2bb1f8){for(const _0x1e1130 of _0x2bb1f8)_0x1e1130['is']('uiElement')&&(_0x14e597['mapper']['unbindElementFromMarkerName'](_0x1e1130,_0x41dd3f['markerName']),_0x14e597['writer']['remove'](_0x1e1130));}},{'priority':'high'});}['_getChangeFromId'](_0x14fb53){return this['_changeIdToChange']['get'](_0x14fb53);}['_getViewForChange'](_0x445fff){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x445fff),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1ec651,_0x7671e2,_0x4f79d3,_0xaec4c9)=>{_0xaec4c9&&this['_balloon']['remove'](_0xaec4c9),_0x4f79d3&&(this['_balloon']['add']({'view':_0x4f79d3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x198cec=this['editor']['editing'],_0x3c7990=this['_getChangeFromId'](_0x4f79d3['changeId']);let _0x347d94;if(_0x3c7990['data']['isOnRoot']){const _0x577c86=_0x198cec['view']['getDomRoot'](_0x3c7990['rootName']);_0x347d94=Array['from'](_0x577c86['getClientRects']());}else{const _0x1dd994=this['editor']['model']['markers']['get']('revision:'+_0x4f79d3['changeId']);_0x347d94=Array['from'](_0x198cec['mapper']['markerNameToElements'](_0x1dd994['name']))['map'](_0x42e1c8=>_0x198cec['view']['domConverter']['mapViewToDom'](_0x42e1c8))['map'](_0x1836f5=>Array['from'](_0x1836f5['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x347d94[0x0];return _0x347d94['find'](_0x657454=>_0x657454['top']-0x3<=this['_activeViewTarget']['y']&&_0x657454['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x657454['left']-0x3<=this['_activeViewTarget']['x']&&_0x657454['right']+0x3>=this['_activeViewTarget']['x'])||_0x347d94[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x12a250,_0x493d8a,_0x1aa0ab,_0x166b59)=>{this['activeView']=_0x1aa0ab?this['_getViewForChange'](_0x1aa0ab):null,this['editor']['model']['change'](()=>{const _0x36159b=this['editor']['editing'];_0x166b59&&(_0x166b59['data']['isOnRoot']?_0x36159b['view']['change'](_0x4d97d1=>{_0x4d97d1['removeClass']('ck-revision-history-root--active',_0x36159b['view']['document']['getRoot'](_0x166b59['rootName']));}):_0x36159b['reconvertMarker']('revision:'+_0x166b59['id'])),_0x1aa0ab&&(_0x1aa0ab['data']['isOnRoot']?_0x36159b['view']['change'](_0x348f93=>{_0x348f93['addClass']('ck-revision-history-root--active',_0x36159b['view']['document']['getRoot'](_0x1aa0ab['rootName']));}):_0x36159b['reconvertMarker']('revision:'+_0x1aa0ab['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x389cee,_0x52e1f6)=>{if(this['activeChange'])return;const _0x281733=this['_findChangeIdFromDomTarget'](_0x52e1f6['target']),_0x5c826d=this['_changeIdToChange']['get'](_0x281733);_0x5c826d?(this['_activeViewTarget']={'x':_0x52e1f6['domEvent']['x'],'y':_0x52e1f6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5c826d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1c9fb9,_0x5e4e1e)=>{const _0x49ef2d=this['_findChangeIdFromDomTarget'](_0x5e4e1e['target']),_0x184727=this['_changeIdToChange']['get'](_0x49ef2d);_0x184727?(this['_activeViewTarget']={'x':_0x5e4e1e['domEvent']['x'],'y':_0x5e4e1e['domEvent']['y']},_0x184727===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x184727):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x3a280a){do{const _0x1a6e6b=_0x3a280a['getAttribute']('data-change-id');if(_0x1a6e6b)return _0x1a6e6b;_0x3a280a=_0x3a280a['parent'];}while(_0x3a280a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3b3ff9=>{for(const _0x3b46d7 of this['editor']['model']['markers'])_0x3b3ff9['removeMarker'](_0x3b46d7);});}}function X(_0x23254c,_0x23c9af){return(_0x48408b,_0x357d65,_0x4c3d00)=>{if(!_0x4c3d00['consumable']['test'](_0x357d65['markerRange'],_0x48408b['name']))return;const _0x223432=_0x357d65['markerRange']['getWalker'](),_0x52c151=_0x357d65['markerRange']['start'],_0x32c75d=_0x23254c['model']['schema'];let _0x21f043=null,_0x5542a4=null,_0x583bd9=!0x1,_0x2d7924=!0x1;for(const _0xa24067 of _0x223432){const _0x402aa4=_0xa24067['item'];_0x583bd9=_0x583bd9||_0x32c75d['isContent'](_0x402aa4);const _0x4f83b5=_0x4c3d00['mapper']['toViewElement'](_0x402aa4);if(_0x4f83b5&&_0x4f83b5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xa24067['type']&&(_0x32c75d['isBlock'](_0x402aa4)&&!_0x32c75d['isLimit'](_0x402aa4)&&(_0x402aa4['nextSibling']||_0x52c151['isAtEnd']?_0x21f043&&_0x21f043['parent']==_0x402aa4||(_0x21f043=_0x402aa4,_0x7024e3(_0xa24067['previousPosition']),_0x2d7924=!0x0):_0x5542a4=_0x5542a4||_0xa24067['previousPosition']));}function _0x7024e3(_0x3192ac){const _0x23a4e9=_0x4c3d00['mapper']['toViewPosition'](_0x3192ac),_0x5db537=_0x4c3d00['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x23c9af});_0x4c3d00['writer']['insert'](_0x23a4e9,_0x5db537),_0x4c3d00['mapper']['bindElementToMarker'](_0x5db537,_0x357d65['markerName']);}_0x583bd9||_0x2d7924||!_0x5542a4||_0x7024e3(_0x5542a4);};}class wt extends _0x373f44{constructor(_0x3836ff){super(_0x3836ff);const _0x3f8605=_0x3836ff['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x3f8605,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3f8605,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x54c3ae=this['editor'],_0x2e8966=_0x54c3ae['plugins']['get'](m),_0x185d3d=_0x2e8966['isReady']?_0x2e8966['diff']['newRevisionId']:null;_0x54c3ae['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x185d3d);}['refresh'](){const {isReady:_0x2c3d17,isEnabled:_0x5668b2,repository:_0x402df7,diff:_0x269861}=this['editor']['plugins']['get'](m),_0x15e11f=_0x269861&&_0x402df7['getLaterVisibleRevision'](_0x269861['newRevisionId']);this['isEnabled']=_0x2c3d17&&_0x5668b2&&Boolean(_0x15e11f);}}class pt extends _0x373f44{['_step'];constructor(_0x58e0a7,{direction:_0x97cc7c}){super(_0x58e0a7);const _0x505590=_0x58e0a7['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x97cc7c?0x1:-0x1,this['listenTo'](_0x505590,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x505590,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x505590,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x502bbc=this['editor'],_0x40c41d=_0x502bbc['plugins']['get'](m),{isNavigationMode:_0x28987e,currentChangeNumber:_0x3f90f1}=_0x40c41d;let _0x8fa43;if(_0x40c41d['activeChange']=_0x28987e?_0x40c41d['diff']['changes']['get'](_0x3f90f1+this['_step']):_0x40c41d['diff']['changes']['first'],_0x40c41d['activeChange']['data']['isOnRoot'])_0x8fa43=_0x502bbc['editing']['view']['getDomRoot'](_0x40c41d['activeChange']['rootName']);else{const _0xa6e5dd=_0x502bbc['model']['markers']['get']('revision:'+_0x40c41d['activeChange']['id']);_0x8fa43=_0x171cd7(_0x502bbc['editing'],_0xa6e5dd);}_0x108aeb({'target':_0x8fa43,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4f6cc2,currentChangeNumber:_0x4b56ca,numberOfChanges:_0x29f29d,isReady:_0x57a2cf,isEnabled:_0x387607}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x387607&&_0x57a2cf&&_0x29f29d)&&(!_0x4f6cc2||(0x1===this['_step']?_0x4b56ca<_0x29f29d-0x1:_0x4b56ca>0x0));}}class _i extends _0x401579{constructor(_0x529d1d){super(_0x529d1d);const _0x42d4cd=this['bindTemplate'],_0x13c3fc=new _0x1eeecd(_0x529d1d),_0x4570db=new _0x1eeecd(_0x529d1d);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',(_0x363dc2,_0x333487)=>_0x363dc2&&_0x333487>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x18cbb2,_0x12edd5,_0x2e8eec,_0x3e2e43)=>{if(!_0x18cbb2)return g(_0x529d1d,'Loading...');if(!_0x2e8eec)return g(_0x529d1d,'No\x20changes');const _0x85631f=g(_0x529d1d,'NUMBER_OF_CHANGES',_0x2e8eec);return _0x3e2e43?g(_0x529d1d,'X_OF_Y_CHANGES',[_0x12edd5+0x1,_0x2e8eec]):_0x85631f;}),_0x13c3fc['set']({'label':g(_0x529d1d,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x50abb7}),_0x4570db['set']({'label':g(_0x529d1d,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4a8fc5}),_0x13c3fc['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4570db['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x13c3fc['on']('execute',()=>this['fire']('execute','backward')),_0x4570db['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',_0x42d4cd['if']('_isStatusLabelVisible','ck-hidden',_0x3efdd9=>!_0x3efdd9)]},'children':[{'text':_0x42d4cd['to']('isNavigationMode',_0x407966=>_0x407966?g(_0x529d1d,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x529d1d,'Total')+':\x20')}]},{'text':_0x42d4cd['to']('_statusText')}]},new _0xcc77c9(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x13c3fc,_0x4570db]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x5bec45{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1421e8=this['editor']['editing']['view'];_0x1421e8['change'](_0x12b29a=>{for(const _0x3497c2 of _0x1421e8['document']['roots'])_0x12b29a['addClass'](ce,_0x3497c2);});}['hide'](){const _0x4103a9=this['editor']['editing']['view'];_0x4103a9['change'](_0x4e175b=>{for(const _0x2dd195 of _0x4103a9['document']['roots'])_0x4e175b['removeClass'](ce,_0x2dd195);});}}class R extends _0x5bec45{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x12f529=this['editor'],_0x13c512=_0x12f529['plugins']['get'](m),_0x3ecec5=_0x12f529['plugins']['get'](le);_0x12f529['ui']['componentFactory']['add']('exitToEditing',_0x4b929e=>{const _0xdcf5d4=new _0x1eeecd(_0x4b929e);return _0xdcf5d4['set']({'label':g(_0x4b929e,'Back\x20to\x20editing'),'icon':_0x45e376,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xdcf5d4,'execute',()=>{_0x12f529['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xdcf5d4;}),_0x12f529['ui']['componentFactory']['add']('restoreRevision',_0x3fa8f2=>{const _0x3844fa=new _0x1eeecd(_0x3fa8f2);return _0x3844fa['set']({'label':g(_0x3fa8f2,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3844fa['bind']('isEnabled')['to'](_0x12f529['commands']['get']('restoreRevision')),this['listenTo'](_0x3844fa,'execute',()=>_0x12f529['execute']('restoreRevision')),_0x3844fa;}),_0x12f529['ui']['componentFactory']['add']('changesNavigation',_0x29354d=>{const _0x1b0a5d=new _i(_0x29354d),_0x20daf4=_0x12f529['commands']['get']('showPreviousChange'),_0x4bb8e2=_0x12f529['commands']['get']('showNextChange');return _0x1b0a5d['bind']('isBackwardNavigationEnabled')['to'](_0x20daf4,'isEnabled'),_0x1b0a5d['bind']('isForwardNavigationEnabled')['to'](_0x4bb8e2,'isEnabled'),_0x1b0a5d['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x13c512),this['listenTo'](_0x1b0a5d,'execute',(_0x4fb05c,_0x39d09e)=>{_0x12f529['execute']('forward'===_0x39d09e?'showNextChange':'showPreviousChange');}),_0x1b0a5d;}),_0x3ecec5['show'](),_0x13c512['on']('change:isReady',(_0x37a1e0,_0x4eb4b5,_0x1f5b17)=>{_0x1f5b17?_0x3ecec5['hide']():_0x3ecec5['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x367b2c,_0x5b6663){super(_0x367b2c,_0x5b6663);const _0x4b6cd7=this['bindTemplate'];this['set']({'label':g(_0x367b2c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x367b2c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4b6cd7['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 _0x2f45d3=this['fieldView']['element'];this['_tooltipString']=_0x2f45d3['scrollWidth']>_0x2f45d3['clientWidth']&&_0x2f45d3['value']||'';}}class oi extends _0x401579{constructor(_0x2da400,_0xbaea2a,_0x1d4afd){super(_0x2da400);const _0x20f15c=new _0x5b6993();_0x20f15c['set']({'content':_0x1dd5b4,'viewBox':'0\x200\x2011\x2010'});const _0x2b436b=['ck','ck-revision-history-sidebar__revision-author'];_0x1d4afd&&_0x2b436b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x321391=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x2da400,_0x1d4afd?'Revision\x20creator':'Revision\x20author')},'children':[_0x20f15c,_0xbaea2a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b436b},'children':_0x321391});}}function ni(_0x5ef7c5,_0x5b2030){const _0x4a384e=_0x5ef7c5['bindTemplate'],_0x5785f0=_0x5ef7c5['locale'],_0x53b4c6=_0x4f91a6(_0x5785f0);_0x53b4c6['panelPosition']='sw';const _0x3b6b03=function(_0x1b971e,_0x2f870a){const _0x3e6e5c=function(_0x8fef93,_0xf27263){const _0x1497d8=_0x8fef93['locale'],_0x1386b1={'Compare\x20against\x20selected':g(_0x1497d8,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x1497d8,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x1497d8,'Restore\x20this\x20revision')};return _0xf27263['map'](_0x38da66=>{const _0x2ac1f9=_0x1386b1[_0x38da66['name']];return _0x2ac1f9&&_0x2ac1f9!==_0x38da66['name']&&(_0x38da66['name']=_0x2ac1f9),_0x38da66;});}(_0x1b971e,_0x2f870a),_0x301417=new _0x37ef36();for(const _0x416f4a of _0x3e6e5c){const _0x4a63b3={'type':'button','model':new to({'label':_0x416f4a['name'],'class':_0x416f4a['class'],'withText':!0x0,'role':'menuitem','_action':_0x416f4a['action']})};_0x4a63b3['model']['bind']('isEnabled')['to'](_0x1b971e,'isActionsDropdownOpen',_0x294b99=>'function'!=typeof _0x416f4a['isEnabled']||(!_0x294b99||_0x416f4a['isEnabled'](_0x1b971e))),_0x301417['add'](_0x4a63b3);}return _0x301417;}(_0x5ef7c5,_0x5b2030);return _0x5ef7c5['bind']('isActionsDropdownOpen')['to'](_0x53b4c6,'isOpen'),_0x53b4c6['buttonView']['set']({'label':g(_0x5785f0,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2cd303}),_0x53b4c6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4a384e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4a384e['to'](_0x1f64a6=>_0x1f64a6['stopPropagation']())}}),_0x53b4c6['on']('execute',_0x295028=>{_0x5ef7c5['isReady']&&'function'==typeof _0x295028['source']['_action']&&_0x295028['source']['_action'](_0x5ef7c5);}),_0x367911(_0x53b4c6,_0x3b6b03,{'role':'menu'}),_0x53b4c6['listenTo'](_0x5ef7c5,'change:isActionsDropdownOpen',(_0x2fad41,_0x1396f3,_0x31ccfb)=>{if(_0x31ccfb)for(const _0x347ce7 of _0x53b4c6['listView']['items']){const _0x2c6185=_0x347ce7['children']['first'],_0x161e89=_0x5b2030['find'](_0x3b76ac=>_0x3b76ac['action']===_0x2c6185['_action'])['isVisible'];_0x347ce7['isVisible']=void 0x0===_0x161e89||_0x161e89(_0x5ef7c5);}}),_0x53b4c6;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1131e4(_0x401579){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x373225,_0x41af0d,_0x167c1d,_0x1ca071){super(_0x373225);const _0x3e1ba8=this['bindTemplate'],_0x2916fc=function(_0x5ac9f9,_0xe9a4be){const _0x5824bc=Array['from'](_0xe9a4be['authors'])['filter'](_0x44f272=>_0x44f272!=_0xe9a4be['creator']);return _0xe9a4be['creator']&&_0x5824bc['unshift'](_0xe9a4be['creator']),_0x5824bc['map'](_0x5d62f1=>new oi(_0x5ac9f9,_0x5d62f1,_0x5d62f1==_0xe9a4be['creator']));}(_0x373225,_0x41af0d);this['id']=_0x41af0d['id'],this['_revision']=_0x41af0d,this['_requireRevisionName']=_0x1ca071,this['bind']('name','createdAt')['to'](_0x41af0d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x55d69a=>{return _0x322c5e=_0x373225['uiLanguage'],(_0x275e75=_0x55d69a)['toLocaleDateString'](_0x322c5e,{'month':'long','day':'numeric'})+',\x20'+_0x275e75['toLocaleTimeString'](_0x322c5e,{'hour':'numeric','minute':'numeric'});var _0x322c5e,_0x275e75;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x373225,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1a8cfa=>_0x1a8cfa||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x11a6ca,_0x400034)=>_0x11a6ca&&_0x400034),this['revisionActionsView']=_0x167c1d&&_0x167c1d['length']?ni(this,_0x167c1d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3e1ba8['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3e1ba8['if']('isEnabled','ck-disabled',_0x114dc0=>!_0x114dc0),_0x3e1ba8['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3e1ba8['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3e1ba8['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':_0x3e1ba8['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':_0x2916fc}]},this['revisionActionsView']],'on':{'click':_0x3e1ba8['to'](_0x3e9864=>{_0x3e9864['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x51970e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x51970e,'change',()=>{this['_requireRevisionName']&&!_0x51970e['value']||this['fire']('setName',{'id':this['id'],'name':_0x51970e['value']}),_0x51970e['value']||(_0x51970e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x410ab8,_0x281953){const _0x211d5f=_0x1fec93['fromJSDate'](_0x410ab8)['setLocale'](_0x281953),_0x4515bc=_0x1fec93['local'](),_0x4d94d5=_0x4515bc['minus']({'days':0x1})['startOf']('day');let _0x46699a,_0x5a038f;return _0x211d5f['hasSame'](_0x4515bc,'day')?(_0x46699a=_0x211d5f['startOf']('day')['toJSDate'](),_0x5a038f=_0x211d5f['toRelativeCalendar']()):_0x211d5f['hasSame'](_0x4d94d5,'day')?(_0x46699a=_0x4d94d5['toJSDate'](),_0x5a038f=_0x211d5f['toRelativeCalendar']()):_0x211d5f['hasSame'](_0x4515bc,'week')?(_0x46699a=_0x211d5f['startOf']('week')['toJSDate'](),_0x5a038f=_0x211d5f['weekdayLong']||''):_0x211d5f['hasSame'](_0x4515bc,'year')?(_0x46699a=_0x211d5f['startOf']('month')['toJSDate'](),_0x5a038f=_0x211d5f['monthLong']||''):(_0x46699a=_0x211d5f['startOf']('year')['toJSDate'](),_0x5a038f=String(_0x211d5f['year'])),{'startDate':_0x46699a,'localizedPeriodName':_0x5a038f};}class mi extends _0x401579{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x358764,_0x430e2d,_0x5d7da5,_0x4d8ef5){super(_0x358764);const _0x1f9146=vi(_0x430e2d,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x430e2d,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5d7da5,this['_requireRevisionName']=_0x4d8ef5,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':_0x1f9146}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2910c7){const _0x4e244b=new ai(this['locale'],_0x2910c7,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4e244b);}['removeRevision'](_0x5791b8){const _0x5d2f87=this['revisionViews']['find'](_0x12b090=>_0x12b090['id']===_0x5791b8['id']);this['revisionViews']['remove'](_0x5d2f87);}}class as extends _0x401579{constructor(_0x29803d){super(_0x29803d);const _0x28db7=new _0x5b6993();_0x28db7['content']=_0x43dc91,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x28db7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x29803d,'Revision\x20history')]}]});}}class di extends _0x401579{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x37f395,_0x4469c8,_0x4eda97,_0x476270){super(_0x37f395);const _0x134a02=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4469c8,this['_revisionActions']=_0x4eda97,this['_requireRevisionName']=_0x476270,this['on']('select',(_0x3b3251,_0x22fcd8)=>{this['fire']('revisionSelected',_0x22fcd8);}),this['on']('setName',(_0x2f3091,_0x4182e9)=>{this['fire']('revisionSetName',_0x4182e9);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x37f395),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x134a02['if']('isEnabled','ck-disabled',_0x1f88e5=>!_0x1f88e5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2b2856 of this['_revisions'])this['_addRevision'](_0x2b2856);this['_revisions']['on']('add',(_0xb84d13,_0x23f4dd)=>{this['_addRevision'](_0x23f4dd);}),this['_revisions']['on']('remove',(_0x3cb684,_0x37b79a)=>{this['_removeRevision'](_0x37b79a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1a1845=>_0x1a1845['revisionViews']['map'](_0x4e35b1=>_0x4e35b1))['flat']();}['selectRevision'](_0x3bdaff){for(const _0x33790b of this['revisionViews'])_0x3bdaff&&_0x3bdaff['id']===_0x33790b['id']?_0x33790b['select']():_0x33790b['deselect']();}['highlightRevisions'](_0x261fc1){for(const _0x54daf5 of this['revisionViews'])_0x261fc1['some'](({id:_0x45ea9c})=>_0x45ea9c===_0x54daf5['id'])?_0x54daf5['highlight']():_0x54daf5['unhighlight']();}['_addRevision'](_0x57cd60){const _0x3e928e=vi(_0x57cd60['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x20a6c4=this['timePeriodViews']['get'](0x0);_0x20a6c4&&_0x20a6c4['startDate']['getTime']()===_0x3e928e['getTime']()||(_0x20a6c4=new mi(this['locale'],_0x3e928e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x20a6c4)),_0x20a6c4['addRevision'](_0x57cd60);}['_removeRevision'](_0x477d72){const _0x45b0be=vi(_0x477d72['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x45b0be)['removeRevision'](_0x477d72);}['_getTimePeriodViewByStartDate'](_0x18722a){return this['timePeriodViews']['find'](_0x4d7657=>_0x4d7657['startDate']['getTime']()===_0x18722a['getTime']());}}class d extends _0x5bec45{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x4838eb,uid as _0x459828,Collection as _0x1cbddd,logWarning as _0x2538c5,FocusTracker as _0x24cb14,KeystrokeHandler as _0xdf61f0,scrollViewportToShowTarget as _0x4109b3,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x31e96e}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2ab88e,set as _0x50bd4d,unset as _0x257088,isEqual as _0xd46a7}from'es-toolkit/compat';import{Plugin as _0x321c34,PendingActions as _0x2defe9,Command as _0x1a0f7e,ElementApiMixin as _0x5b0258,Editor as _0x163f2d}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x9371e6,getMarkerDomElement as _0x29a042,ConfirmMixin as _0x4e42ac,sanitizeEditorConfig as _0x2f5895}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0xd6894f,ViewAttributeElement as _0x2142f9,ViewEmptyElement as _0x2e98d1,ViewRawElement as _0x2a2ef1,ViewUIElement as _0x3dfdae,ViewDocumentFragment as _0x11ca29,ViewText as _0x4c308a,ViewElement as _0x383d35,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x33de5c,IconChevronUp as _0x3aef2f,IconChevronDown as _0x955541,IconUndo as _0x336b9c,IconUser as _0x1dd3fe,IconThreeVerticalDots as _0x4d60eb}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x5d268e,injectCssTransitionDisabler as ts,submitHandler as _0x26aba0,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x50d88b,ListView as _0x556aee,ListItemView as te,ButtonView as _0x6881f6,MenuBarMenuView as _0x587932,MenuBarMenuListView as _0x173035,MenuBarMenuListItemView as _0x388760,MenuBarMenuListItemButtonView as _0x2fff03,ContextualBalloon as _0x1f65f4,ToolbarSeparatorView as _0x1d487d,IconView as _0x33e49c,addListToDropdown as _0x296332,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xf3fd7d}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x4838eb(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x367a82){super(),this['id']=_0x367a82['id']||_0x459828(),this['creator']=_0x367a82['creator']||null,this['authors']=_0x367a82['authors']||[],this['diffData']=_0x367a82['diffData']||null,this['toVersion']=_0x367a82['toVersion']||0x0,this['fromVersion']=_0x367a82['fromVersion']||0x0,this['set']('name',_0x367a82['name']||''),this['set']('createdAt',_0x367a82['createdAt']||new Date()),this['set']('attributes',_0x367a82['attributes']||{});}['setName'](_0x15a3ea){this['_update']({'name':_0x15a3ea});}['setAttribute'](_0x36a4a9,_0x26a2aa){const _0x1d5fac=_0x2ab88e(this['attributes']);_0x50bd4d(_0x1d5fac,_0x36a4a9,_0x26a2aa),this['_update']({'attributes':_0x1d5fac});}['removeAttribute'](_0x3a07ef){const _0x3d6f0d=_0x2ab88e(this['attributes']);_0x257088(_0x3d6f0d,_0x3a07ef),this['_update']({'attributes':_0x3d6f0d});}['_update'](_0x33bdf2,_0x227b68=!0x1){let _0x425f42=!0x1;const _0x3b7044={'id':this['id']},_0x39813c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xf24dde of _0x39813c){const _0x4decd4=_0x33bdf2[_0xf24dde];void 0x0!==_0x4decd4&&_0x4decd4!==this[_0xf24dde]&&(this[_0xf24dde]=_0x4decd4,_0x3b7044[_0xf24dde]=_0x4decd4,_0x425f42=!0x0);}_0x425f42&&(_0x3b7044['authors']&&(_0x3b7044['authorsIds']=_0x3b7044['authors']['map'](_0x2989f8=>_0x2989f8['id']),delete _0x3b7044['authors']),this['fire']('_update',_0x3b7044,_0x227b68));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x44a9e7=>_0x44a9e7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x321c34{['_revisions'];static get['requires'](){return[_0x9371e6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x28ea90){super(_0x28ea90),this['_revisions']=new _0x1cbddd();}['afterInit'](){!async function(_0x464b14){const _0x369bc9=_0x1cb279([0x6a,0x62,0x4f,0x42,0x55,0x61,0x70,0x65,0x4a,0x49,0x51,0x4c,0x63,0x57,0x74,0x48,0x39,0x6d,0x68,0x44,0x72,0x71,0x6e,0x67,0x4b,0x31,0x46,0x41,0x4d,0x52,0x43,0x34,0x75,0x30,0x64,0x58,0x6f,0x6c,0x79,0x77,0x37,0x69,0x76,0x32,0x73,0x54,0x5a,0x56,0x66,0x35,0x6b,0x47,0x53,0x78,0x33,0x4e,0x7a,0x38,0x36,0x50,0x45,0x59]),_0x2a3d44=0xeb829,_0xa8e74e=0x59974962,_0x54b35b=0x5990222a^_0xa8e74e,_0x4261c0=window[_0x1cb279([0x44,0x61,0x74,0x65])][_0x1cb279([0x6e,0x6f,0x77])](),_0x176390=_0x464b14[_0x1cb279([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3af948=new window[(_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x539ed3=>{_0x176390[_0x1cb279([0x6f,0x6e,0x63,0x65])](_0x1cb279([0x72,0x65,0x61,0x64,0x79]),_0x539ed3);}),_0x2ea21={[_0x1cb279([0x6b,0x74,0x79])]:_0x1cb279([0x45,0x43]),[_0x1cb279([0x75,0x73,0x65])]:_0x1cb279([0x73,0x69,0x67]),[_0x1cb279([0x63,0x72,0x76])]:_0x1cb279([0x50,0x2d,0x32,0x35,0x36]),[_0x1cb279([0x78])]:_0x1cb279([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]),[_0x1cb279([0x79])]:_0x1cb279([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]),[_0x1cb279([0x61,0x6c,0x67])]:_0x1cb279([0x45,0x53,0x32,0x35,0x36])},_0x87625=_0x176390[_0x1cb279([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1cb279([0x67,0x65,0x74])](_0x1cb279([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b8ad3(){let _0x12c14f,_0x1f53f5=null,_0x338aa4=null;try{if(_0x87625==_0x1cb279([0x47,0x50,0x4c]))return _0x1cb279([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x12c14f=_0x2a1eb3(),!_0x12c14f)return _0x1cb279([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x12c14f[_0x1cb279([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x338aa4=_0x4e5c1c(_0x12c14f[_0x1cb279([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x12c14f[_0x1cb279([0x6a,0x74,0x69])])),await _0x107726()?_0x56082f()?_0x22cec8()?_0x1cb279([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4f3456()?(_0x12c14f[_0x1cb279([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb279([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f53f5=_0x391fae(_0x1cb279([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x12c14f[_0x1cb279([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1cb279([0x74,0x72,0x69,0x61,0x6c])&&(_0x1f53f5=_0x391fae(_0x1cb279([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x30a3de()):_0x1cb279([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb279([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1cb279([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1cb279([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22cec8(){const _0x554a9b=[_0x1cb279([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1cb279([0x74,0x72,0x69,0x61,0x6c])][_0x1cb279([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12c14f[_0x1cb279([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4261c0/0x3e8:0xe10*_0x54b35b;return _0x12c14f[_0x1cb279([0x65,0x78,0x70])]<_0x554a9b;}function _0x56082f(){const _0x55dcfb=_0x12c14f[_0x1cb279([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x55dcfb)return!0x1;if(_0x55dcfb[_0x1cb279([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb279([0x2a])))return!0x0;if(_0x55dcfb[_0x1cb279([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb279([0x52,0x48])))return!0x0;if(_0x55dcfb[_0x1cb279([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb279([0x52,0x52,0x48]))){if(_0x596f60())return!0x0;if(_0x77bfa8()||_0x1536d1())return!0x0;}return!0x1;}function _0x4f3456(){const _0x2ab776=_0x12c14f[_0x1cb279([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ab776||0x0==_0x2ab776[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14caa2}=new URL(window[_0x1cb279([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ab776[_0x1cb279([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14caa2))return!0x0;const _0x49f93d=_0x14caa2[_0x1cb279([0x73,0x70,0x6c,0x69,0x74])](_0x1cb279([0x2e]));return _0x2ab776[_0x1cb279([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e8d3c=>_0x1e8d3c[_0x1cb279([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1cb279([0x2a])))[_0x1cb279([0x6d,0x61,0x70])](_0x2b91fe=>_0x2b91fe[_0x1cb279([0x73,0x70,0x6c,0x69,0x74])](_0x1cb279([0x2e])))[_0x1cb279([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1bb581=>_0x1bb581[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x49f93d[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb279([0x6d,0x61,0x70])](_0x5bc530=>Array(_0x49f93d[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bc530[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1cb279([0x66,0x69,0x6c,0x6c])](_0x5bc530[0x0]===_0x1cb279([0x2a])?_0x1cb279([0x2a]):'')[_0x1cb279([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bc530))[_0x1cb279([0x73,0x6f,0x6d,0x65])](_0x38d70f=>_0x49f93d[_0x1cb279([0x65,0x76,0x65,0x72,0x79])]((_0x17987c,_0x421930)=>_0x38d70f[_0x421930]===_0x17987c||_0x38d70f[_0x421930]===_0x1cb279([0x2a])));}function _0x30a3de(){return _0x1f53f5&&_0x338aa4?new window[(_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x13789b,_0x219c56)=>{_0x1f53f5[_0x1cb279([0x74,0x68,0x65,0x6e])](_0x13789b,_0x219c56),_0x338aa4[_0x1cb279([0x74,0x68,0x65,0x6e])](_0x546b67=>{_0x546b67!=_0x1cb279([0x56,0x61,0x6c,0x69,0x64])&&_0x13789b(_0x546b67);},_0x219c56);}):_0x1f53f5||_0x338aa4||_0x1cb279([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4e5c1c(_0x179d47,_0x59229f){return new window[(_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59b890=>{if(_0x24cd45())return _0x59b890(_0x1cb279([0x56,0x61,0x6c,0x69,0x64]));_0x2c5c43(),_0x176390[_0x1cb279([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1cb279([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1095bf=!0x1;const _0x498238=_0x459828();function _0x21e73c(_0x130223){return!!_0x130223&&(typeof _0x130223===_0x1cb279([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x130223===_0x1cb279([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x130223[_0x1cb279([0x74,0x68,0x65,0x6e])]===_0x1cb279([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x130223[_0x1cb279([0x63,0x61,0x74,0x63,0x68])]===_0x1cb279([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4dd48a(_0x2829df){_0x1fd6f5(_0x2829df)[_0x1cb279([0x74,0x68,0x65,0x6e])](_0x32fda4=>{if(!_0x32fda4||_0x32fda4[_0x1cb279([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1cb279([0x6f,0x6b]))return _0x1cb279([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4dae85(_0x40af38(_0x498238+_0x59229f))!=_0x32fda4[_0x1cb279([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1cb279([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1cb279([0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb279([0x74,0x68,0x65,0x6e])](_0xe0398b=>(_0x84907b(),_0xe0398b),()=>{const _0x104db4=_0x322805();return null==_0x104db4?(_0x84907b(),_0x1cb279([0x56,0x61,0x6c,0x69,0x64])):_0x1cb279(_0x4261c0-_0x104db4>(0x7d9bcd62^_0xa8e74e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1cb279([0x74,0x68,0x65,0x6e])](_0x59b890)[_0x1cb279([0x63,0x61,0x74,0x63,0x68])](()=>{_0x59b890(_0x1cb279([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x266361=0x59a1a7e2^_0xa8e74e;function _0x84907b(){const _0x29e221=_0x1cb279([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dae85(_0x40af38(_0x179d47)),_0x424719=_0x5c9031(_0x4dae85(window[_0x1cb279([0x4d,0x61,0x74,0x68])][_0x1cb279([0x63,0x65,0x69,0x6c])](_0x4261c0/_0x266361)));window[_0x1cb279([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb279([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29e221,_0x424719);}function _0x322805(){const _0x37e91f=_0x1cb279([0x6c,0x6c,0x63,0x74,0x2d])+_0x4dae85(_0x40af38(_0x179d47)),_0x4e0cec=window[_0x1cb279([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1cb279([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37e91f);return _0x4e0cec?window[_0x1cb279([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c9031(_0x4e0cec),0x10)*_0x266361:null;}function _0x1fd6f5(_0x1c2622){return new window[(_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28e100,_0x59e0d9)=>{_0x1c2622[_0x1cb279([0x74,0x68,0x65,0x6e])](_0x28e100,_0x59e0d9),window[_0x1cb279([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59e0d9,0x59969da2^_0xa8e74e);});}}_0x176390[_0x1cb279([0x6f,0x6e])](_0x1cb279([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2a9533,_0x36ee8e)=>{if(_0x36ee8e[0x0]!=_0x179d47)return _0x59b890(_0x1cb279([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x36ee8e[0x1]={..._0x36ee8e[0x1],[_0x1cb279([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x498238};},{[_0x1cb279([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb279([0x68,0x69,0x67,0x68])}),_0x176390[_0x1cb279([0x6f,0x6e])](_0x1cb279([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58f892=>{_0x21e73c(_0x58f892[_0x1cb279([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1095bf=!0x0,_0x4dd48a(_0x58f892[_0x1cb279([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1cb279([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1cb279([0x6c,0x6f,0x77])}),_0x3af948[_0x1cb279([0x74,0x68,0x65,0x6e])](()=>{_0x1095bf||_0x59b890(_0x1cb279([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x24cd45(){return _0x176390[_0x1cb279([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb279([0x76,0x69,0x65,0x77])][_0x1cb279([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1cb279([0x61,0x75,0x74,0x6f]);}function _0x2c5c43(){_0x176390[_0x1cb279([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1cb279([0x76,0x69,0x65,0x77])][_0x1cb279([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1cb279([0x61,0x75,0x74,0x6f]);}}function _0x391fae(_0x44b7cd){const _0x4d5d5d=[new window[(_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x436314=>setTimeout(_0x436314,0x599e77ae^_0xa8e74e)),_0x3af948[_0x1cb279([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x93754a=>{const _0x103b1e=0x59974965^_0xa8e74e,_0x62db2f=_0x464b14[_0x1cb279([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x367d7f(){_0x62db2f[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x103b1e&&_0x93754a();}_0x367d7f(),_0x62db2f[_0x1cb279([0x6f,0x6e])](_0x1cb279([0x61,0x64,0x64]),_0x367d7f);})),new window[(_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x392211=>{function _0x444a70(){for(const _0x3e84c3 in window)if(window[_0x1cb279([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1cb279([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3e84c3))&&window[_0x3e84c3]==_0x2a3d44)return _0x392211();_0x176390[_0x1cb279([0x73,0x74,0x61,0x74,0x65])]!=_0x1cb279([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1cb279([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x444a70,0x59975aea^_0xa8e74e);}_0x55df58(_0x1cb279([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x444a70();})];return window[_0x1cb279([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1cb279([0x72,0x61,0x63,0x65])](_0x4d5d5d)[_0x1cb279([0x74,0x68,0x65,0x6e])](()=>_0x44b7cd);}async function _0x5aa69e(){if(await _0x3af948,_0x55df58(_0x1cb279([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x34337d=_0x464b14[_0x1cb279([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x33bf7b=_0x464b14[_0x1cb279([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])](_0x34337d[_0x1cb279([0x69,0x64])]),_0x3ddee4=_0xfe2be9(_0x1cb279([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3ddee4[_0x1cb279([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x34337d['id'],_0x33bf7b?_0x33bf7b['id']:null,!0x0),_0x3ddee4[_0x1cb279([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1cb279([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3ddee4[_0x1cb279([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3ddee4[_0x1cb279([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x35ef71,void(_0x3ddee4[_0x1cb279([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x35ef71);}if(_0x55df58(_0x1cb279([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x3280ec=_0xfe2be9(_0x1cb279([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x3280ec[_0x1cb279([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1cb279([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3280ec[_0x1cb279([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3280ec[_0x1cb279([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x35ef71,_0x3280ec[_0x1cb279([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x35ef71;}_0x176390[_0x1cb279([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb279([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x35ef71,_0x176390[_0x1cb279([0x6d,0x6f,0x64,0x65,0x6c])][_0x1cb279([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x35ef71,_0x176390[_0x1cb279([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1cb279([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x596f60(){return _0x55df58(_0x1cb279([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0xfe2be9(_0x1cb279([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1cb279([0x73,0x74,0x61,0x74,0x65])]==_0x1cb279([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x77bfa8(){return _0x55df58(_0x1cb279([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 _0x1536d1(){return _0x55df58(_0x1cb279([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5ebdd8(_0x2c202f){const _0x2e0240=_0x2e8a63();_0x176390[_0x2e0240]=_0x1cb279([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])+_0x2c202f,_0x2c202f[_0x1cb279([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1cb279([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2e8a63()]=_0x2a3d44),_0x2c202f!=_0x1cb279([0x56,0x61,0x6c,0x69,0x64])&&_0x5aa69e();}function _0x2e8a63(){const _0x3334bc=window[_0x1cb279([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1cb279([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1cb279([0x6e,0x6f,0x77])]())[_0x1cb279([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1cb279([0x2e]),'');let _0x495fa0=_0x1cb279([0x6a]);for(let _0x57d3db=0x0;_0x57d3db<_0x3334bc[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57d3db+=0x2){let _0x56fc27=window[_0x1cb279([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3334bc[_0x1cb279([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57d3db,_0x57d3db+0x2));_0x56fc27>=_0x369bc9[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x56fc27-=_0x369bc9[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x495fa0+=_0x369bc9[_0x56fc27];}return _0x495fa0;}function _0x2a1eb3(){const _0x29982e=_0x87625[_0x1cb279([0x73,0x70,0x6c,0x69,0x74])](_0x1cb279([0x2e]));if(0x3!=_0x29982e[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2ecff5(_0x29982e[0x1]);function _0x2ecff5(_0x41d4a5){const _0x562f9e=_0x1f73d1(_0x41d4a5);return _0x562f9e&&_0x210bd0()?_0x562f9e:null;function _0x210bd0(){const _0x58a3a8=_0x562f9e[_0x1cb279([0x6a,0x74,0x69])],_0x26e3df=window[_0x1cb279([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x58a3a8[_0x1cb279([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x58a3a8[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4fccaf={..._0x562f9e,[_0x1cb279([0x6a,0x74,0x69])]:_0x58a3a8[_0x1cb279([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x58a3a8[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4fccaf[_0x1cb279([0x76,0x63])],_0x40af38(_0x4fccaf)==_0x26e3df;}}}async function _0x107726(){let _0x4f4033=!0x0;try{const _0xd62290=_0x87625[_0x1cb279([0x73,0x70,0x6c,0x69,0x74])](_0x1cb279([0x2e])),[_0x45649c,_0x2675ed,_0x534d30]=_0xd62290;return _0x401e5b(_0x45649c),await _0x26b2c7(_0x45649c,_0x2675ed,_0x534d30),_0x4f4033;}catch{return!0x1;}function _0x401e5b(_0xf3474b){const _0x1a074f=_0x1f73d1(_0xf3474b);_0x1a074f&&_0x1a074f[_0x1cb279([0x61,0x6c,0x67])]==_0x1cb279([0x45,0x53,0x32,0x35,0x36])||(_0x4f4033=!0x1);}async function _0x26b2c7(_0x48fd2c,_0x4364d7,_0x1a6b59){const _0x3ca769=window[_0x1cb279([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1cb279([0x66,0x72,0x6f,0x6d])](_0x3454a1(_0x1a6b59),_0x6bc405=>_0x6bc405[_0x1cb279([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38585a=new window[(_0x1cb279([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1cb279([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48fd2c+_0x1cb279([0x2e])+_0x4364d7),_0x1551f9=window[_0x1cb279([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1cb279([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1551f9)return;const _0x51f18f=await _0x1551f9[_0x1cb279([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1cb279([0x6a,0x77,0x6b]),_0x2ea21,{[_0x1cb279([0x6e,0x61,0x6d,0x65])]:_0x1cb279([0x45,0x43,0x44,0x53,0x41]),[_0x1cb279([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1cb279([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1cb279([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1551f9[_0x1cb279([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1cb279([0x6e,0x61,0x6d,0x65])]:_0x1cb279([0x45,0x43,0x44,0x53,0x41]),[_0x1cb279([0x68,0x61,0x73,0x68])]:{[_0x1cb279([0x6e,0x61,0x6d,0x65])]:_0x1cb279([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x51f18f,_0x3ca769,_0x38585a)||(_0x4f4033=!0x1);}}function _0x1f73d1(_0x2e4530){return _0x2e4530[_0x1cb279([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1cb279([0x65,0x79]))?JSON[_0x1cb279([0x70,0x61,0x72,0x73,0x65])](_0x3454a1(_0x2e4530)):null;}function _0x3454a1(_0x29e4bf){return window[_0x1cb279([0x61,0x74,0x6f,0x62])](_0x29e4bf[_0x1cb279([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1cb279([0x2b]))[_0x1cb279([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1cb279([0x2f])));}function _0x40af38(_0x5f5da1){let _0x49f898=0x1505;function _0x2b72cf(_0x348f13){for(let _0xb863f5=0x0;_0xb863f5<_0x348f13[_0x1cb279([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xb863f5++){const _0x4e12fc=_0x348f13[_0x1cb279([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xb863f5);_0x49f898=(_0x49f898<<0x5)+_0x49f898+_0x4e12fc,_0x49f898&=_0x49f898;}}function _0x1e34a5(_0x968546){Array[_0x1cb279([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x968546)?_0x968546[_0x1cb279([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e34a5):_0x968546&&typeof _0x968546==_0x1cb279([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1cb279([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x968546)[_0x1cb279([0x73,0x6f,0x72,0x74])]()[_0x1cb279([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x41575f,_0x3c5cda])=>{_0x2b72cf(_0x41575f),_0x1e34a5(_0x3c5cda);}):_0x2b72cf(window[_0x1cb279([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x968546));}return _0x1e34a5(_0x5f5da1),_0x49f898>>>0x0;}function _0x4dae85(_0x2ad520){return _0x2ad520[_0x1cb279([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1cb279([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1cb279([0x30]));}function _0x5c9031(_0x208398){return _0x208398[_0x1cb279([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1cb279([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1cb279([0x6a,0x6f,0x69,0x6e])]('');}function _0x55df58(_0xfec21a){return _0x176390[_0x1cb279([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1cb279([0x68,0x61,0x73])](_0xfec21a);}function _0xfe2be9(_0xbaf6df){return _0x176390[_0x1cb279([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1cb279([0x67,0x65,0x74])](_0xbaf6df);}function _0x35ef71(){}function _0x1cb279(_0x42fac4){return _0x42fac4['map'](_0x1333c7=>String['fromCharCode'](_0x1333c7))['join']('');}_0x5ebdd8(await _0x3b8ad3());}(this);}['createRevision'](_0x3e2295){const _0x24ce5a=this['editor']['plugins']['get']('Users');return new h({'id':_0x3e2295['id'],'name':_0x3e2295['name'],'creator':_0x3e2295['creatorId']?_0x24ce5a['getUser'](_0x3e2295['creatorId']):null,'diffData':_0x3e2295['diffData']||_0x3e2295['data'],'authors':_0x3e2295['authorsIds']['map'](_0x5a7632=>_0x24ce5a['getUser'](_0x5a7632)),'createdAt':new Date(_0x3e2295['createdAt']),'attributes':_0x3e2295['attributes'],'fromVersion':_0x3e2295['fromVersion'],'toVersion':_0x3e2295['toVersion']});}['addRevision'](_0x4f7094,_0x53caf4=0x0){this['_revisions']['add'](_0x4f7094,_0x53caf4);}['getRevision'](_0x18a92b){return this['_revisions']['get'](_0x18a92b);}['getRevisions'](_0x365233={'toJSON':!0x1}){const _0x3294dd=Array['from'](this['_revisions']);return _0x3294dd['reverse'](),_0x365233['toJSON']?_0x3294dd['map'](_0x3e96b9=>_0x3e96b9['toJSON']()):_0x3294dd;}['getIndex'](_0x5697fb){return this['_revisions']['getIndex'](_0x5697fb);}['getEarlierVisibleRevision'](_0x409365){const [,_0x31fc96]=this['getRevisionsIterator'](_0x409365,{'direction':'earlier'});return _0x31fc96;}['getLaterVisibleRevision'](_0x4d0e48){const [,_0x347783]=this['getRevisionsIterator'](_0x4d0e48,{'direction':'later'});return _0x347783;}['getRevisionsInDiff'](_0x579c2a){const _0x9680e9=[];for(const _0x19dc44 of this['getRevisionsIterator'](_0x579c2a['newRevisionId']))if(_0x9680e9['push'](_0x19dc44),_0x19dc44['id']===_0x579c2a['oldRevisionId'])break;return _0x9680e9;}*['getRevisionsIterator'](_0x2deabe,{direction:_0x1edcd1='earlier',filter:_0x5cdc0f=()=>!0x0}={}){const _0x12c656='earlier'===_0x1edcd1?0x1:-0x1;let _0x3960f1=this['_revisions']['get'](_0x2deabe),_0x4da9c2=this['getIndex'](_0x3960f1);for(yield _0x3960f1;_0x3960f1;){if(_0x4da9c2+=_0x12c656,_0x3960f1=this['getRevision'](_0x4da9c2),!_0x3960f1)return;_0x5cdc0f(_0x3960f1)&&(yield _0x3960f1);}}}class V extends _0x321c34{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0xd6894f,'c'],[_0x2142f9,'a'],[_0x2e98d1,'e'],[_0x2a2ef1,'r'],[_0x3dfdae,'u']]);['_typeCharToViewClass']=new Map([['c',_0xd6894f],['a',_0x2142f9],['e',_0x2e98d1],['r',_0x2a2ef1],['u',_0x3dfdae]]);async['loadRevisionData'](_0x52da3c,_0x3159b7){if(_0x52da3c['diffData']||!_0x3159b7)return;const _0x50c1ef=this['editor']['config']['get']('collaboration.channelId'),_0x1776f5=await _0x3159b7['getRevision']({'channelId':_0x50c1ef,'revisionId':_0x52da3c['id']});_0x52da3c['diffData']=_0x1776f5['diffData'];}['getRevisionDocumentData'](_0x5eba2){const _0x1cf54f={};for(const _0x32321b in _0x5eba2['diffData']){if(_0x5eba2['diffData'][_0x32321b]['attachChange']&&!_0x5eba2['diffData'][_0x32321b]['attachChange']['isAttached'])continue;const _0x41d4bf=this['_removeRevisionMarkers'](JSON['parse'](_0x5eba2['diffData'][_0x32321b]['insertions'])),_0x17e055=this['editor']['editing']['view']['document'],_0x5ccd60=new _0x11ca29(_0x17e055,_0x41d4bf['map'](_0x1c45ee=>this['_getViewFromDiffObj'](_0x1c45ee,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1cf54f[_0x32321b]=this['editor']['data']['processor']['toData'](_0x5ccd60),this['editor']['data']['processor']['useFillerType']('default');}return _0x1cf54f;}['getRevisionRootsAttributes'](_0x5722fe){const _0x2e5eb8={};for(const _0x1c9740 in _0x5722fe['diffData'])_0x5722fe['diffData'][_0x1c9740]['attachChange']&&!_0x5722fe['diffData'][_0x1c9740]['attachChange']['isAttached']||(_0x2e5eb8[_0x1c9740]=_0x5722fe['diffData'][_0x1c9740]['attributesAfter']||{});return _0x2e5eb8;}['_getTypeCharForViewElement'](_0x16027d){return this['_viewClassToTypeChar']['get'](_0x16027d['constructor']);}['_getViewFromDiffObj'](_0x42c423,_0x4e006b){const _0x43bab8=this['editor']['editing']['view']['document'];if('string'==typeof _0x42c423)return new _0x4c308a(_0x43bab8,_0x42c423);{let _0x2e9a1b,_0x2d15cd;_0x2d15cd='u'==_0x42c423['type']||'r'==_0x42c423['type']?[]:_0x42c423['children']['map'](_0x57f4e9=>this['_getViewFromDiffObj'](_0x57f4e9,_0x4e006b));const _0x2c517e=this['_typeCharToViewClass']['get'](_0x42c423['type'])||_0x383d35,_0x34c96b=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x2e9a1b=new _0x2c517e(_0x43bab8,_0x42c423['name'],_0x42c423['attributes'],_0x2d15cd),'u'==_0x42c423['type']&&_0x42c423['children'][0x0]){const _0x386263=_0x42c423['children'][0x0];if(_0x2e9a1b['render']=function(_0x3466ac){const _0x29592e=_0x3466ac['createElement']('div');return _0x29592e['innerHTML']=_0x386263,_0x29592e['childNodes'][0x0];},_0x4e006b){const _0x3e306c=new _0x11ca29(_0x43bab8);_0x3e306c['_appendChild'](_0x2e9a1b);const _0x20daeb=Array['from'](_0x34c96b['viewChildrenToDom'](_0x3e306c,{'bind':!0x1})),_0x1b3b47=_0x34c96b['domDocument']['createElement']('div');_0x1b3b47['append'](..._0x20daeb),_0x2e9a1b=Array['from'](_0x34c96b['domChildrenToView'](_0x1b3b47))[0x0];}}else{if('r'==_0x42c423['type']&&_0x42c423['children'][0x0]){const _0x4b7598=_0x42c423['children'][0x0];if(_0x2e9a1b['render']=function(_0x156aeb){_0x156aeb['innerHTML']=_0x4b7598;},_0x4e006b){const _0x10422f=new _0x11ca29(_0x43bab8);_0x10422f['_appendChild'](_0x2e9a1b);const _0x1f8171=Array['from'](_0x34c96b['viewChildrenToDom'](_0x10422f,{'bind':!0x1})),_0xc6cae0=_0x34c96b['domDocument']['createElement']('div');_0xc6cae0['append'](..._0x1f8171);const _0x1bec7a=Array['from'](_0x34c96b['domChildrenToView'](_0xc6cae0));_0x1bec7a['length']>0x1?_0x2e9a1b['_appendChild'](_0x1bec7a):_0x2e9a1b=_0x1bec7a[0x0];}}}if(_0x42c423['customProperties']){for(const [_0x3aa0b9,_0x4545b0]of _0x42c423['customProperties'])_0x2e9a1b['_setCustomProperty'](_0x3aa0b9,_0x4545b0);}const _0x1238f7=void 0x0===_0x42c423['fillerOffset']?null:_0x42c423['fillerOffset'];return null!==_0x1238f7&&(_0x2e9a1b['getFillerOffset']=()=>_0x1238f7),_0x2e9a1b;}}['_makeModelFromViewString'](_0x938642){const _0x28658e=JSON['parse'](_0x938642),_0x2744c9=this['editor']['editing']['view']['document'],_0x15c229=new _0x11ca29(_0x2744c9,_0x28658e['map'](_0x3dd633=>this['_getViewFromDiffObj'](_0x3dd633,!0x0)));return this['editor']['data']['toModel'](_0x15c229);}['_removeRevisionMarkers'](_0xd7efff){return(_0xd7efff=_0xd7efff['filter'](_0x4ee700=>!_0x4ee700['name']||'revision-start'!==_0x4ee700['name']&&'revision-end'!==_0x4ee700['name']))['forEach'](_0x59b834=>{'string'!=typeof _0x59b834&&(_0x59b834['children']=this['_removeRevisionMarkers'](_0x59b834['children']),_0x59b834['attributes']=_0x59b834['attributes']['filter'](_0x239359=>!_0x239359[0x0]['startsWith']('data-revision-')));}),_0xd7efff;}}function g(_0x531eda,_0x16c94a,_0x297538){const t=_0x531eda['t'];switch(_0x16c94a){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'},_0x297538);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x297538);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x321c34{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x9371e6,I,V,_0x2defe9];}constructor(_0x288546){super(_0x288546),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2c4ff1=_0x459828();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2c4ff1},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x593a4f=this['repository']['getRevision'](0x0),_0x24a617=_0x593a4f&&null===_0x593a4f['creator']?_0x593a4f:null;if(this['_continueCurrentRevision']=!!_0x24a617&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x56d3a1=this['_source']['getCurrentRevisionId'](),_0x59cc73=this['repository']['getRevision'](_0x56d3a1);if(_0x59cc73)this['_startingVersion']=_0x59cc73['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3f8700=this['_source']['history']['_operations']['find'](_0x412369=>!_0x412369['_isInit']),_0x298141=_0x3f8700?_0x3f8700['baseVersion']:this['_source']['history']['version'];_0x593a4f?(_0x593a4f['toVersion']<_0x298141&&_0x593a4f['_update']({'toVersion':_0x298141}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x24a617['id'],this['_startingVersion']=_0x24a617['fromVersion']):(this['_startingVersion']=_0x593a4f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x298141,this['_continueCurrentRevision']=!0x1);}}else _0x24a617&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x24a617['toVersion'],this['editor']['model']['document']['history']['version']),_0x24a617['fromVersion']===_0x24a617['toVersion']?(0x0!==_0x24a617['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x24a617['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x24a617['id'],this['_startingVersion']=_0x24a617['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',_0x4f438c=>!_0x4f438c),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x189bb1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x234fc0;for(const _0x4aefc2 in _0x189bb1){const _0x2369ec=_0x4aefc2,_0x2f712d=_0x189bb1[_0x2369ec];if('revisionHistoryLicenseKeyValid'==_0x2f712d||'revisionHistoryLicenseKeyInvalid'==_0x2f712d||'revisionHistoryLicenseKeyExpired'==_0x2f712d||'revisionHistoryLicenseKeyDomainLimit'==_0x2f712d||'revisionHistoryLicenseKeyNotAllowed'==_0x2f712d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2f712d||'revisionHistoryLicenseKeyTrialLimit'==_0x2f712d||'revisionHistoryLicenseKeyUsageLimit'==_0x2f712d){delete _0x189bb1[_0x2369ec],_0x234fc0=_0x2f712d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x234fc0&&_0x189bb1['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x234fc0&&_0x189bb1['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x234fc0&&_0x189bb1['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x234fc0&&_0x189bb1['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x234fc0&&_0x189bb1['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x234fc0&&_0x189bb1['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x234fc0&&_0x189bb1['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x5efaa6=this['repository']['getRevision'](0x0),_0x3fa494=await this['getRevisionDocumentData'](_0x5efaa6),_0x598a69=await this['getRevisionRootsAttributes'](_0x5efaa6);this['_replaceEditorDataWithRevisionData'](_0x3fa494,_0x598a69);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2f5914){this['_source']=_0x2f5914;}async['update'](){const _0x98e2d9=await this['_source']['getLatestVersion']();if(_0x98e2d9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x503297=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x98e2d9});_0x503297['authors']=_0x503297['authorsIds']['map'](_0x53f394=>this['editor']['plugins']['get']('Users')['getUser'](_0x53f394)),this['currentRevision']['_update'](_0x503297);}}async['saveRevision'](_0x1db84f={},_0x1151c4=null){const _0xc799a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1151c4>this['currentRevision']['toVersion']&&(_0x1151c4=null),null===_0x1151c4&&(_0x1151c4=await this['_source']['getLatestVersion']());const _0x36a629=this['_getFromVersion'](_0x1151c4),_0x3233e6=this['buildRevisionData']({'from':_0x36a629,'to':_0x1151c4});if(this['currentRevision']['toVersion']<_0x1151c4){const _0x1ea627=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1151c4,'to':_0x1151c4});_0x1ea627['authors']=[],_0x1ea627['authorsIds']=[],_0x1ea627['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1ea627,!0x0),delete _0x1ea627['authors'],_0xc799a['push'](_0x1ea627);}_0x1db84f['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1db84f['name']=_0x1db84f['name']||null,_0x1db84f['id']=_0x1db84f['id']||_0x459828(),_0x1db84f={..._0x1db84f,..._0x3233e6};const _0x1e6e52=this['addRevisionData'](_0x1db84f);_0xc799a['push'](_0x1db84f);const _0x341f25=this['repository']['getIndex'](_0x1e6e52);if(0x0!==_0x341f25){const _0x197167=this['repository']['getRevision'](_0x341f25-0x1);if(_0x197167['fromVersion']!==_0x1151c4){const _0x14f18b=this['_revisionDataBuilder']['getData'](_0x1151c4,_0x197167['toVersion']),_0x215fe4={'id':_0x197167['id'],'diffData':_0x14f18b['diffData'],'authorsIds':_0x14f18b['authorsIds'],'authors':_0x14f18b['authorsIds']['map'](_0x46c23c=>this['editor']['plugins']['get']('Users')['getUser'](_0x46c23c)),'fromVersion':_0x1151c4};_0x197167===this['currentRevision']&&(_0x215fe4['createdAt']=new Date(_0x1db84f['createdAt']['getTime']()+0xa)),_0x197167['_update'](_0x215fe4,!0x0),delete _0x215fe4['authors'],_0xc799a['push'](_0x215fe4);}}if(this['adapter']){for(const _0x5784d8 of _0xc799a)this['_bufferUpdate'](_0x5784d8['id'],_0x5784d8,!0x0);this['sendBufferedUpdates']();}return _0x1e6e52;}['addRevisionData'](_0x278d87){const _0x2c0687=this['repository']['createRevision'](_0x278d87);return this['adapter']&&_0x2c0687['on']('_update',(_0x9de14a,_0x4a5083,_0x3b5208)=>{_0x3b5208||(this['_bufferUpdate'](_0x4a5083['id'],_0x4a5083,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2c0687,this['_findInsertionIndex'](_0x2c0687)),_0x2c0687;}async['getRevisionDocumentData'](_0x138d1f){return await this['_utils']['loadRevisionData'](_0x138d1f,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x138d1f);}async['getRevisionRootsAttributes'](_0x5e76e7){return await this['_utils']['loadRevisionData'](_0x5e76e7,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5e76e7);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5d2142=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x135466=0x0;_0x135466<_0x5d2142['length'];_0x135466++){const _0xee33a5=_0x5d2142[_0x135466];let _0x2c9479=!0x1;for(const _0x4a32c2 of Object['keys'](_0xee33a5))void 0x0===_0xee33a5[_0x4a32c2]?delete _0xee33a5[_0x4a32c2]:'id'!==_0x4a32c2&&(_0x2c9479=!0x0);_0x2c9479||(_0x5d2142[_0x135466]=null);}if(_0x5d2142=_0x5d2142['filter'](_0x27d3c7=>null!==_0x27d3c7),!_0x5d2142['length'])return;for(let _0x54d609=0x0;_0x54d609<_0x5d2142['length'];_0x54d609++){const _0x30c952=_0x5d2142[_0x54d609];void 0x0!==_0x30c952['fromVersion']&&void 0x0===_0x30c952['toVersion']&&(_0x30c952['toVersion']=this['repository']['getRevision'](_0x30c952['id'])['toVersion']),void 0x0!==_0x30c952['toVersion']&&void 0x0===_0x30c952['fromVersion']&&(_0x30c952['fromVersion']=this['repository']['getRevision'](_0x30c952['id'])['fromVersion']);}const _0x4b73e1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5d2142,_0x4b73e1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x404578=>{if(_0x404578){for(const _0x3a14a3 of _0x404578)this['setRevisionData']({'id':_0x3a14a3['id'],'createdAt':_0x3a14a3['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x1150e7=null,from:_0x227f32=null,to:_0x41f544=null}){_0x227f32=null!==_0x227f32?_0x227f32:_0x1150e7['fromVersion'],_0x41f544=null!==_0x41f544?_0x41f544:_0x1150e7['toVersion'];const _0x342587=this['_revisionDataBuilder']['getData'](_0x227f32,_0x41f544),_0x1aa214={'diffData':_0x342587['diffData'],'authorsIds':_0x342587['authorsIds'],'fromVersion':_0x227f32,'toVersion':_0x41f544};if(!_0x1150e7||_0x41f544!==_0x1150e7['toVersion']){const _0x33ff0d=_0x41f544-0x1,_0x44455f=this['_source']['history']['getOperation'](_0x33ff0d);_0x1aa214['createdAt']=_0x44455f&&_0x44455f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x227f32===this['_loadedStateData']['fromVersion']){for(const _0xc62e4 of this['_loadedStateData']['authors'])_0x1aa214['authorsIds']['includes'](_0xc62e4['id'])||_0x1aa214['authorsIds']['push'](_0xc62e4['id']);}return _0x1aa214;}['_bufferUpdate'](_0x377ef1,_0x2af8f3,_0x5de0ce){if(this['_bufferedUpdates']['has'](_0x377ef1)){const _0x1d3928=this['_bufferedUpdates']['get'](_0x377ef1);_0x2af8f3=_0x5de0ce?{..._0x1d3928,..._0x2af8f3}:{..._0x2af8f3,..._0x1d3928};}this['_bufferedUpdates']['set'](_0x377ef1,_0x2af8f3);}['setRevisionData'](_0x45f4d4){const _0x9b993d=this['repository']['getRevision'](_0x45f4d4['id']);if(_0x45f4d4['createdAt']&&(_0x45f4d4['createdAt']=new Date(_0x45f4d4['createdAt'])),_0x45f4d4['authorsIds']){const _0x14681f=this['editor']['plugins']['get']('Users');_0x45f4d4['authors']=_0x45f4d4['authorsIds']['map'](_0x2b7543=>_0x14681f['getUser'](_0x2b7543));}_0x9b993d['_update'](_0x45f4d4,!0x0);}['_createInitialRevision'](_0x451c93){const _0x35a82e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x35a82e)this['_initialRevisionId']=_0x35a82e['id'];else{const _0x4efc3a=!this['editor']['model']['document']['roots']['find'](_0x5b6956=>this['editor']['model']['hasContent'](_0x5b6956)),_0x30781c=this['editor']['plugins']['get']('Users')['me']['id'],_0x35c60c=g(this['editor']['locale'],_0x4efc3a?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x451c93,'to':_0x451c93,'id':this['_initialRevisionId'],'name':_0x35c60c,'creatorId':_0x30781c});}}['_createCurrentRevision'](_0x5b52c1){const _0x3480cc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x3480cc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x5b52c1,'to':_0x5b52c1,'id':_0x3480cc,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x50e690,_0x2da909){let _0x5975dd=this['editor']['config']['get']('initialData'),_0x55b501=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x5975dd){_0x5975dd={};for(const _0x211d47 of this['editor']['model']['document']['getRootNames']())_0x5975dd[_0x211d47]='';}if('string'==typeof _0x5975dd&&(_0x5975dd={'main':_0x5975dd}),void 0x0===_0x55b501){_0x55b501={};for(const _0x212198 of this['editor']['model']['document']['getRootNames']())_0x55b501[_0x212198]={};}let _0x3fb00d=!0x1;const _0x393ea7=Object['keys'](_0x5975dd),_0x5973a1=Object['keys'](_0x50e690);for(const _0x33437a of _0x393ea7){if(_0x5975dd[_0x33437a]!==_0x50e690[_0x33437a]&&''!==_0x5975dd[_0x33437a]['trim']()){_0x3fb00d=!0x0;break;}if(!_0xd46a7(_0x55b501[_0x33437a],_0x2da909[_0x33437a])&&Object['keys'](_0x55b501[_0x33437a])['length']>0x0){_0x3fb00d=!0x0;break;}}_0x3fb00d||(_0x3fb00d=_0x5973a1['some'](_0x3c46fa=>!this['editor']['model']['document']['getRoot'](_0x3c46fa))),_0x3fb00d&&_0x2538c5('editor-initial-data-replaced-with-revision-data',{'editorData':_0x5975dd,'editorRootsAttributes':_0x55b501,'revisionData':_0x50e690,'revisionRootsAttributes':_0x2da909}),this['editor']['config']['set']('initialData',_0x50e690),this['editor']['config']['set']('rootsAttributes',_0x2da909);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4bdddc=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4bdddc['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0xc5bb09){const _0x21de50=this['repository']['getRevisions']();_0x21de50['reverse']();let _0x24f8f2=0x0;for(;_0x24f8f2<_0x21de50['length'];){const _0x47161c=_0x21de50[_0x24f8f2];if(_0x47161c===this['currentRevision']){_0x24f8f2++;continue;}if(_0x47161c['id']===this['_initialRevisionId'])break;const _0x5b9e94=_0xc5bb09['toVersion']-_0x47161c['toVersion']||_0xc5bb09['fromVersion']-_0x47161c['fromVersion'];if(_0x5b9e94>0x0)break;if(_0x5b9e94<0x0)_0x24f8f2++;else{if(!_0xc5bb09['creator']&&_0x47161c['creator'])break;if(_0x47161c['creator']||!_0xc5bb09['creator']){if(_0xc5bb09['createdAt']>_0x47161c['createdAt'])break;_0x24f8f2++;}else _0x24f8f2++;}}return _0x24f8f2;}['_getFromVersion'](_0x57fd7e){const _0x3eb0dd=this['repository']['getRevisions']();_0x3eb0dd['reverse'](),_0x3eb0dd['shift']();const _0x123beb=_0x3eb0dd['find'](_0x55e900=>_0x55e900['toVersion']<=_0x57fd7e)['toVersion'];return _0x123beb<this['_startingVersion']?this['_startingVersion']:_0x123beb;}['_makeRevision']({name:_0x5cf0fc,from:_0x301a5b,to:_0x278188,creatorId:_0x441234,id:_0x18248b}){const _0x58d29c=this['buildRevisionData']({'from':_0x301a5b,'to':_0x278188});_0x58d29c['name']=_0x5cf0fc,_0x58d29c['creatorId']=_0x441234,_0x58d29c['id']=_0x18248b;const _0x2bfdd2=this['addRevisionData'](_0x58d29c);return this['adapter']&&this['_bufferUpdate'](_0x58d29c['id'],_0x58d29c,!0x0),_0x2bfdd2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1650f1){this['editor']=_0x1650f1,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'](_0x23bd0e){this['source']=_0x23bd0e;const _0x56282f=new Map(),_0x3f466d=new Map(),_0xa96958=this['editor']['model']['document']['roots']['map'](_0x3c4aae=>_0x3c4aae['rootName']);for(const _0x4fc251 of _0xa96958){const _0x5dff67=this['editor']['model']['document']['getRoot'](_0x4fc251),_0x4f023e=N(_0x5dff67);_0x56282f['set'](_0x4fc251,_0x4f023e),_0x3f466d['set'](_0x4fc251,Object['fromEntries'](_0x5dff67['getAttributes']()));}const _0x39a2bb=Array['from'](this['editor']['model']['markers'])['map'](_0x57ff80=>[_0x57ff80['name'],_0x57ff80['getRange']()]),_0x2da82a=this['source']['version'];this['_saveMetaData'](_0x2da82a,_0x56282f,_0x39a2bb,_0x3f466d),this['_startingRevisionId']=this['_revisionId'];const _0x63aca3=new Map(),_0x8ac089=new Map();for(const _0x153649 of _0xa96958){const _0x385d7f=P(_0x153649);_0x63aca3['set'](_0x153649,_0x385d7f),_0x8ac089['set'](_0x153649,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x63aca3,[],_0x8ac089);}['getData'](_0x2c2675,_0x3ae91d){if(this['_lastFrom']===_0x2c2675&&this['_lastTo']<=_0x3ae91d)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3ae91d,!0x0);else{if(!this['_savedMetaData']['has'](_0x2c2675)){const _0x5905aa=this['_getPreviousFrom'](_0x2c2675);this['_calculateMetaData'](_0x5905aa,_0x2c2675,!0x1);}this['_calculateMetaData'](_0x2c2675,_0x3ae91d,!0x0);}return this['_lastFrom']=_0x2c2675,this['_lastTo']=_0x3ae91d,this['_getState']();}['loadState'](_0x429a7d){const _0x272554=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x429a7d['fromVersion'],this['_lastTo']=_0x429a7d['toVersion'];for(const _0x39a180 in _0x429a7d['diffData']){const _0x1e6466=_0x429a7d['diffData'][_0x39a180]['attachChange'],_0x4f6c76=_0x2ab88e(_0x429a7d['diffData'][_0x39a180]['attributesBefore'])||{},_0x5b72ca=_0x272554['_makeModelFromViewString'](_0x429a7d['diffData'][_0x39a180]['deletions']);_0x5b72ca['rootName']=_0x39a180,_0x5b72ca['_isAttached']=!_0x1e6466||!_0x1e6466['isAttached'],_0x5b72ca['isAttached']=()=>_0x5b72ca['_isAttached'],this['_baseRoots']['set'](_0x39a180,_0x5b72ca),this['_baseRootsAttributes']['set'](_0x39a180,_0x4f6c76),_0x1e6466&&this['_touchedRoots']['set'](_0x39a180,_0x1e6466);const _0x200967=this['_makeIdsRoot'](_0x5b72ca);this['_baseIdsRoots']['set'](_0x39a180,_0x200967);for(const [_0x4398a4,_0x3ab97f]of _0x5b72ca['markers']){if(!_0x4398a4['startsWith']('revision:'))continue;const _0x54839f=_0x4398a4['split'](':')[0x2];for(const _0x4ce57b of _0x3ab97f['getWalker']({'singleCharacters':!0x0})){const _0x58599a=this['_getVidAttributeName'](_0x4ce57b),_0x3c423e='elementEnd'==_0x4ce57b['type']?_0x4ce57b['previousPosition']['path']['slice'](0x0,-0x1):_0x4ce57b['previousPosition']['path'],_0x1d8050=_0x200967['getNodeByPath'](_0x3c423e)['getAttribute'](_0x58599a);this['_touched']['set'](_0x1d8050,{'userId':_0x54839f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x141c7f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x12114c=>!this['_touched']['has'](_0x12114c));let _0x484d12=0x0;const _0x27bf6c=new Map();for(const _0x4205b6 in _0x429a7d['diffData']){const _0x37e580=_0x429a7d['diffData'][_0x4205b6]['attachChange'],_0x1ef531=_0x2ab88e(_0x429a7d['diffData'][_0x4205b6]['attributesAfter'])||{},_0x40f484=_0x272554['_makeModelFromViewString'](_0x429a7d['diffData'][_0x4205b6]['insertions']);_0x40f484['rootName']=_0x4205b6,_0x40f484['_isAttached']=!_0x37e580||_0x37e580['isAttached'],_0x40f484['isAttached']=()=>_0x40f484['_isAttached'],this['_diffRoots']['set'](_0x4205b6,_0x40f484),this['_diffRootsAttributes']['set'](_0x4205b6,_0x1ef531);const _0x3c07c2=this['_makeIdsRoot'](_0x40f484,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4205b6,_0x3c07c2),_0x27bf6c['set'](_0x4205b6,_0x40f484['isAttached']()?_0x1ef531:{});for(const [_0x183ba6,_0x17a510]of _0x40f484['markers']){if(!_0x183ba6['startsWith']('revision:'))continue;const _0x457513=_0x183ba6['split'](':')[0x2];for(const _0x2f3ba3 of _0x17a510['getWalker']({'singleCharacters':!0x0})){const _0x158430=this['_getVidAttributeName'](_0x2f3ba3),_0x57eaf5=this['_revisionId']++,_0xe85416='elementEnd'==_0x2f3ba3['type']?_0x2f3ba3['previousPosition']['path']['slice'](0x0,-0x1):_0x2f3ba3['previousPosition']['path'];_0x3c07c2['getNodeByPath'](_0xe85416)['_setAttribute'](_0x158430,_0x57eaf5),this['_touched']['set'](_0x57eaf5,{'userId':_0x457513});}}for(const _0x48cf81 of this['editor']['model']['createRangeIn'](_0x40f484)['getWalker']({'singleCharacters':!0x0})){const _0x29d7b3=this['_getVidAttributeName'](_0x48cf81),_0x6712c8='elementEnd'==_0x48cf81['type']?_0x48cf81['previousPosition']['path']['slice'](0x0,-0x1):_0x48cf81['previousPosition']['path'],_0x13a5f3=_0x3c07c2['getNodeByPath'](_0x6712c8);_0x13a5f3['getAttribute'](_0x29d7b3)>0x0||_0x13a5f3['_setAttribute'](_0x29d7b3,_0x141c7f[_0x484d12++]);}for(const [_0x54ad6d,_0x3593f7]of _0x40f484['markers'])_0x54ad6d['startsWith']('revision:')||this['_markers']['set'](_0x54ad6d,_0x3593f7);}const _0x137fd7=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x137fd7),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x137fd7,0x1));const _0x364fed=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x364fed),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x364fed,0x1));const _0x4f0a26=Array['from'](this['_diffRoots'])['map'](([_0x56cd67,_0x12d878])=>[_0x56cd67,N(_0x12d878)]);this['_saveMetaData'](this['_lastTo'],_0x4f0a26,this['_markers'],_0x27bf6c);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x102b2a,_0x7646ca,_0x3e90e2,_0x5ca02a){const _0x5abd5a=new Map(_0x7646ca),_0x153b26=new Map(_0x2ab88e(_0x5ca02a)),_0x1a28d8=new Map();for(const [_0x15fd06,_0x5a18c8]of _0x3e90e2)_0x1a28d8['set'](_0x15fd06,{'start':_0x5a18c8['start']['clone'](),'end':_0x5a18c8['end']['clone'](),'rootName':_0x5a18c8['root']['rootName']});this['_savedMetaData']['set'](_0x102b2a,{'roots':_0x5abd5a,'markers':_0x1a28d8,'rootsAttributes':_0x153b26});}['_removeMetaData'](_0xd6800c){this['_savedMetaData']['delete'](_0xd6800c);}['_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'](_0x1a3b92,_0x128857=null){let _0xcb811f=null;_0x1a3b92['is']('documentFragment')||(_0xcb811f=new ut(_0x1a3b92['name'],{'vid_start':null===_0x128857?this['_revisionId']++:_0x128857++}));const _0xabce89=[];for(const _0x40bb37 of _0x1a3b92['getChildren']())if(_0x40bb37['is']('element')){_0xabce89['push'](this['_makeIdsRoot'](_0x40bb37,_0x128857));const _0x1c9225=_0xabce89[_0xabce89['length']-0x1];null!==_0x128857&&(_0x128857=_0x1c9225['is']('element','$text')?_0x1c9225['getAttribute']('vid')+0x1:_0x1c9225['getAttribute']('vid_end')+0x1);}else{for(let _0x2de646=0x0;_0x2de646<_0x40bb37['offsetSize'];_0x2de646++)_0xabce89['push'](new ut('$text',{'vid':null===_0x128857?this['_revisionId']++:_0x128857++}));}if(_0x1a3b92['is']('documentFragment')){const _0x2934bf=P(_0x1a3b92['rootName']);return _0x2934bf['_insertChild'](0x0,_0xabce89),_0x2934bf;}return _0xcb811f['_setAttribute']('vid_end',null===_0x128857?this['_revisionId']++:_0x128857++),_0xcb811f['_insertChild'](0x0,_0xabce89),_0xcb811f;}['_calculateMetaData'](_0x45cfdd,_0x43851d,_0x205c8e){this['_reset']();const {roots:_0x114434,markers:_0x49a620,rootsAttributes:_0x14e227}=this['_savedMetaData']['get'](_0x45cfdd);this['_baseRoots']=new Map(_0x114434),this['_baseRootsAttributes']=new Map(_0x2ab88e(_0x14e227));for(const [_0x12c750,_0x5f2b37]of this['_baseRoots'])if('$graveyard'!==_0x12c750&&(this['_diffRoots']['set'](_0x12c750,N(_0x5f2b37)),this['_diffRootsAttributes']=new Map(_0x2ab88e(_0x14e227)),_0x205c8e)){const _0x1fc4e9=this['_revisionId'];this['_idsRoots']['set'](_0x12c750,this['_makeIdsRoot'](_0x5f2b37)),this['_baseIdsRoots']['set'](_0x12c750,this['_makeIdsRoot'](_0x5f2b37,_0x1fc4e9));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x205c8e&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x115277,_0x529cd7]of _0x49a620){const _0x296f61=this['_baseRoots']['get'](_0x529cd7['rootName']),_0x11155f=this['_diffRoots']['get'](_0x529cd7['rootName']),_0xe8070e=new ft(this['_fixPosition'](_0x529cd7['start'],_0x296f61),this['_fixPosition'](_0x529cd7['end'],_0x296f61)),_0x1c3053=this['_fixRange'](_0xe8070e,_0x11155f);_0x296f61['markers']['set'](_0x115277,_0xe8070e),this['_markers']['set'](_0x115277,_0x1c3053);}this['_applyOperations'](_0x45cfdd,_0x43851d,_0x205c8e);}['_applyOperations'](_0x10b71d,_0x51ed32,_0x4c6104){for(const _0xe9451c of this['source']['getOperations'](_0x10b71d,_0x51ed32))this['_handleOperation'](_0xe9451c,_0x4c6104);for(const _0xbca318 of this['_diffRoots']['values']())_0xbca318['markers']['clear']();for(const [_0x9ddfb5,_0xfe8f72]of this['_markers']){this['_diffRoots']['get'](_0xfe8f72['root']['rootName'])['markers']['set'](_0x9ddfb5,_0xfe8f72['clone']());}const _0x370736=new Map(),_0x576680=new Map();for(const [_0x1a7cf8,_0x543da6]of this['_diffRoots'])_0x370736['set'](_0x1a7cf8,N(_0x543da6)),_0x576680['set'](_0x1a7cf8,this['_diffRootsAttributes']['get'](_0x1a7cf8));this['_saveMetaData'](_0x51ed32,_0x370736,this['_markers'],_0x576680);}['_getPreviousFrom'](_0xdd39b2){const _0x879373=Array['from'](this['_savedMetaData']['keys']());_0x879373['sort']((_0x34d226,_0x3dbca7)=>_0x34d226-_0x3dbca7),_0x879373['reverse']();for(const _0x429b5c of _0x879373)if(_0x429b5c<_0xdd39b2)return _0x429b5c;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4ceb48,_0x300624){const _0x243634=Array['from'](_0x300624['markers'])['map'](([_0x5d0304,_0x16dcda])=>[_0x5d0304,this['_fixRange'](_0x16dcda,_0x4ceb48)]);_0x4ceb48['markers']=new Map(_0x243634);}['_transformMarkers'](_0x2ebaea){for(const _0x56b05c of this['_markers']['values']()){const _0x468ff2=_0x56b05c['getTransformedByOperation'](_0x2ebaea),_0x3e3a06=ft['_createFromRanges'](_0x468ff2);_0x56b05c['start']=_0x3e3a06['start'],_0x56b05c['end']=_0x3e3a06['end'];}}['_handleOperation'](_0x375396,_0x411c5a){if('addRoot'!=_0x375396['type']&&'detachRoot'!=_0x375396['type']){if('insert'==_0x375396['type']){const _0x4ef87e=_0x375396['position']['root']['rootName'];this['_diffRoots']['has'](_0x4ef87e)||(this['_diffRoots']['set'](_0x4ef87e,P(_0x4ef87e,!0x0)),this['_diffRootsAttributes']['set'](_0x4ef87e,{}),_0x411c5a&&this['_idsRoots']['set'](_0x4ef87e,P(_0x4ef87e,!0x0)));}else{if('addRootAttribute'==_0x375396['type']||'removeRootAttribute'==_0x375396['type']||'changeRootAttribute'==_0x375396['type'])return void this['_handleRootAttributeOperation'](_0x375396);'marker'==_0x375396['type']&&this['_handleMarkerOperation'](_0x375396);}if('marker'!==_0x375396['type']){const _0x5d2431=this['_cloneOperation'](_0x375396,this['_diffRoots']);_0x5d2431['_execute'](),this['_transformMarkers'](_0x5d2431);}if(_0x411c5a)switch(_0x375396['type']){case'insert':this['_handleInsertOperation'](_0x375396);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x375396);break;case'merge':this['_handleMergeOperation'](_0x375396);break;case'split':this['_handleSplitOperation'](_0x375396);}}else this['_handleRootOperation'](_0x375396,_0x411c5a);}['_cloneOperation'](_0x599987,_0x5055ec){const _0x46e8a9=_0x599987['clone']();return _0x46e8a9['_authorId']=_0x599987['_authorId'],this['_fixOperation'](_0x46e8a9,_0x5055ec),_0x46e8a9;}['_getBaseVids'](_0x586bc1){return _0x586bc1['map'](_0x90cffe=>{const _0x262759=this['_getVidAttributeName'](_0x90cffe);return Number(_0x90cffe['item']['getAttribute'](_0x262759));});}['_generateTape'](_0x1a540c,_0x1d829d){if(_0x1a540c['is']('element','$text'))_0x1d829d['push']({'item':_0x1a540c,'type':'text'});else{_0x1a540c['is']('element')&&_0x1d829d['push']({'item':_0x1a540c,'type':'elementStart'});for(const _0x298591 of _0x1a540c['getChildren']())this['_generateTape'](_0x298591,_0x1d829d);_0x1a540c['is']('element')&&_0x1d829d['push']({'item':_0x1a540c,'type':'elementEnd'});}return _0x1d829d;}['_getState'](){const _0x4ca44f=new Map(this['_touched']),_0x2511ad=new Map(_0x4ca44f),_0xb9011f=new Map(),_0x40caf9={'insertions':{},'deletions':{}},_0x480d1c={'insertions':{},'deletions':{}},_0x30b822=new Map(),_0x567ce0=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x567ce0['delete']('$graveyard');for(const _0x22b4ec of _0x567ce0){const _0x1bed24=this['_diffRoots']['get'](_0x22b4ec)||P(_0x22b4ec,!0x1),_0x2145b9=this['_baseRoots']['get'](_0x22b4ec)||P(_0x22b4ec,!0x1);_0x1bed24['isAttached']()||_0x2145b9['isAttached']()?(_0x40caf9['insertions'][_0x22b4ec]=N(_0x1bed24),_0x40caf9['deletions'][_0x22b4ec]=N(_0x2145b9),this['_copyMarkers'](_0x40caf9['deletions'][_0x22b4ec],_0x2145b9),this['_copyMarkers'](_0x40caf9['insertions'][_0x22b4ec],_0x1bed24),_0x480d1c['insertions'][_0x22b4ec]=this['_generateTape'](this['_idsRoots']['get'](_0x22b4ec),[]),_0x480d1c['deletions'][_0x22b4ec]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x22b4ec)||P(_0x22b4ec,!0x1),[])):_0x567ce0['delete'](_0x22b4ec);}for(const _0x206d8c of _0x567ce0){const _0x4fa2bd=_0x480d1c['insertions'][_0x206d8c];for(const _0x435009 of _0x4fa2bd){const _0x2462f6=this['_getVidAttributeName'](_0x435009),_0x5ac6b7=_0x435009['item']['getAttribute'](_0x2462f6);_0x2511ad['delete'](_0x5ac6b7),_0x5ac6b7>=this['_startingRevisionId']&&_0xb9011f['set'](_0x5ac6b7,_0x4ca44f['get'](_0x5ac6b7));}}for(const _0x17a6aa of _0x567ce0){const _0x27be4a=_0x480d1c['insertions'][_0x17a6aa],_0x5e7648=this['_getBaseVids'](_0x480d1c['deletions'][_0x17a6aa]);let _0x50016f=0x0;for(const _0xeaa986 of _0x27be4a){const _0x3d93dc=this['_getVidAttributeName'](_0xeaa986),_0x2ffc73=_0xeaa986['item']['getAttribute'](_0x3d93dc);if(!_0xb9011f['has'](_0x2ffc73)&&!_0x30b822['has'](_0x2ffc73)){if(_0x2511ad['has'](_0x2ffc73))_0x50016f++;else{if(_0x2ffc73!=_0x5e7648[_0x50016f]){const _0x45e8e7=_0x4ca44f['get'](_0x2ffc73)||_0x4ca44f['get'](_0x5e7648[_0x50016f]);for(;_0x2ffc73!=_0x5e7648[_0x50016f];)_0x2511ad['has'](_0x5e7648[_0x50016f])||(_0x30b822['set'](_0x5e7648[_0x50016f],_0x45e8e7),_0x4ca44f['set'](_0x5e7648[_0x50016f],_0x45e8e7)),_0x50016f++;}_0x50016f++;}}}}for(const _0x47a41c of _0x567ce0){const _0x589eb7=_0x480d1c['insertions'][_0x47a41c];for(const _0xdbce0a of _0x589eb7){const _0x486d92=this['_getVidAttributeName'](_0xdbce0a),_0x3ed3b3=_0xdbce0a['item']['getAttribute'](_0x486d92);if(_0x30b822['has'](_0x3ed3b3)){const _0x426046=_0x30b822['get'](_0x3ed3b3);_0x2511ad['has'](_0x3ed3b3)||_0x2511ad['set'](_0x3ed3b3,{..._0x426046}),_0xb9011f['set'](_0x3ed3b3,{..._0x426046});}}}for(const _0x3923d7 of _0x2511ad['keys']())_0x3923d7>=this['_startingRevisionId']&&_0x2511ad['delete'](_0x3923d7);const _0x42c5eb=new Map();for(const _0x4f0c22 of _0x567ce0){let _0x14c847=_0x480d1c['insertions'][_0x4f0c22];for(const _0x443f3c of _0x14c847)if(_0x443f3c['item']['is']('element','tableCell')){const _0x16cffe=this['_getVidAttributeName'](_0x443f3c),_0x3bf05d=_0x443f3c['item']['getAttribute'](_0x16cffe);if(_0xb9011f['has'](_0x3bf05d)){const _0x5bb600=_0x443f3c['item']['parent']['parent']['getAttribute']('vid_start'),_0x3d8431=_0x42c5eb['get'](_0x5bb600)||new Set();_0x3d8431['add'](_0xb9011f['get'](_0x3bf05d)['userId']),_0x42c5eb['set'](_0x5bb600,_0x3d8431);}}_0x14c847=_0x480d1c['deletions'][_0x4f0c22];for(const _0x22cbb5 of _0x14c847)if(_0x22cbb5['item']['is']('element','tableCell')){const _0x477520=this['_getVidAttributeName'](_0x22cbb5),_0x4c734d=_0x22cbb5['item']['getAttribute'](_0x477520);if(_0x2511ad['has'](_0x4c734d)){const _0x3cba9e=_0x22cbb5['item']['parent']['parent']['getAttribute']('vid_start'),_0x325a19=_0x42c5eb['get'](_0x3cba9e)||new Set();_0x325a19['add'](_0x2511ad['get'](_0x4c734d)['userId']),_0x42c5eb['set'](_0x3cba9e,_0x325a19);}}for(const _0x28257f of _0x42c5eb['keys']())(_0xb9011f['has'](_0x28257f)||_0x2511ad['has'](_0x28257f))&&_0x42c5eb['delete'](_0x28257f);}for(const _0xc1e1a7 of _0x567ce0){const _0x5343dc=_0x480d1c['insertions'][_0xc1e1a7];let _0x38afbf=null,_0x1a0981=null;for(const _0x3a23e3 of _0x5343dc){const _0x19ef0c=this['_getVidAttributeName'](_0x3a23e3),_0xe705da=_0x3a23e3['item']['getAttribute'](_0x19ef0c),_0x48525a=_0x42c5eb['get'](_0xe705da);_0x48525a&&'elementStart'==_0x3a23e3['type']&&(_0x38afbf=Array['from'](_0x48525a)[0x0],_0x1a0981=_0x3a23e3['item']['getAttribute']('vid_end')),_0x38afbf&&(_0x2511ad['set'](_0xe705da,{'userId':_0x38afbf}),_0xb9011f['set'](_0xe705da,{'userId':_0x38afbf})),_0xe705da==_0x1a0981&&(_0x38afbf=null,_0x1a0981=null);}}const _0x47a49c={},_0xdd0dd=new Set();for(const _0x1ef08c of _0x567ce0){const _0x3b8425=_0x40caf9['deletions'][_0x1ef08c],_0x2c8c00=_0x40caf9['insertions'][_0x1ef08c];for(const {userId:_0xb15fc6}of this['_touchedMarkers']['values']())null!==_0xb15fc6&&_0xdd0dd['add'](_0xb15fc6);for(const {userId:_0x125363}of this['_touchedRoots']['values']())null!==_0x125363&&_0xdd0dd['add'](_0x125363);this['_markChanges'](_0x2c8c00,_0x480d1c['insertions'][_0x1ef08c],_0xb9011f,'insertion',_0xdd0dd),this['_markChanges'](_0x3b8425,_0x480d1c['deletions'][_0x1ef08c],_0x2511ad,'deletion',_0xdd0dd),_0x47a49c[_0x1ef08c]={'insertions':this['_prepareViewToSave'](_0x2c8c00),'deletions':this['_prepareViewToSave'](_0x3b8425),'attachChange':this['_touchedRoots']['get'](_0x1ef08c)||null,'attributesBefore':_0x2ab88e(this['_baseRootsAttributes']['get'](_0x1ef08c))||{},'attributesAfter':_0x2ab88e(this['_diffRootsAttributes']['get'](_0x1ef08c))};}return{'diffData':_0x47a49c,'authorsIds':Array['from'](_0xdd0dd)};}['_processRootBeforeSave'](_0x238726){for(const [,_0x593f1e]of _0x238726['markers']){const _0x886d8b=_0x593f1e['start']['getAncestors']()['filter'](_0x40ca4b=>'tableCell'==_0x40ca4b['name']);for(const _0x285306 of _0x886d8b)0x1==_0x285306['childCount']&&_0x285306['getChild'](0x0)['is']('element','paragraph')&&_0x285306['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4c14ef){this['_processRootBeforeSave'](_0x4c14ef);const _0x890faf=this['editor']['data']['toView'](_0x4c14ef,{}),_0x418637=Array['from'](_0x890faf['getChildren']())['map'](_0x55eef4=>this['_getViewJson'](_0x55eef4));return JSON['stringify'](_0x418637);}['_getViewJson'](_0x4d55c1){if(_0x4d55c1['is']('$text'))return _0x4d55c1['data'];{const _0x4ef523=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x5c55db=_0x4d55c1,_0x29832a=this['editor']['data']['htmlProcessor']['domConverter'],_0xd4929d={'type':_0x4ef523['_getTypeCharForViewElement'](_0x5c55db),'name':_0x5c55db['name'],'attributes':Array['from'](_0x5c55db['getAttributes']()),'children':Array['from'](_0x5c55db['getChildren']())['map'](_0x123567=>this['_getViewJson'](_0x123567))};if(_0x4d55c1['is']('uiElement')&&'$comment'!=_0x4d55c1['name']){const _0xb7b210=_0x4d55c1['render'](_0x29832a['domDocument'],_0x29832a);_0xd4929d['children']['push'](_0xb7b210['outerHTML']);}else{if(_0x4d55c1['is']('rawElement')){const _0x3b7c39=_0x29832a['domDocument']['createElement'](_0x5c55db['name']);_0x4d55c1['render'](_0x3b7c39,_0x29832a),_0xd4929d['children']['push'](_0x3b7c39['innerHTML']);}}const _0x54197b=Array['from'](_0x5c55db['getCustomProperties']());_0x54197b['length']>0x0&&(_0xd4929d['customProperties']=_0x54197b);const _0x59d8bf=_0x5c55db['getFillerOffset']();return null!==_0x59d8bf&&(_0xd4929d['fillerOffset']=_0x59d8bf),_0xd4929d;}}['_markChanges'](_0x3fc1c2,_0x2870a0,_0xdb13a3,_0x41dc4e,_0x47a31e){let _0x5cb7fa=null,_0x19fbb5=null,_0x463708=0x0;const _0x24317f=this['editor']['model'];for(let _0x2e26b5=0x0;_0x2e26b5<_0x2870a0['length'];_0x2e26b5++){const _0x16e824=this['_getVidAttributeName'](_0x2870a0[_0x2e26b5]),_0x18e0a0=_0x2870a0[_0x2e26b5]['item']['getAttribute'](_0x16e824),_0x20d7e9=_0xdb13a3['get'](_0x18e0a0),_0xacb453=_0x2e26b5==_0x2870a0['length']-0x1;(!_0x5cb7fa&&_0x20d7e9&&(_0x5cb7fa=_0x20d7e9,_0x19fbb5=_0x2870a0[_0x2e26b5]),_0x5cb7fa&&(!_0x20d7e9||_0x20d7e9['userId']!=_0x5cb7fa['userId']))&&(_0x3277d6(_0x20d7e9,F(_0x19fbb5,_0x3fc1c2,_0x24317f),F(_0x2870a0[_0x2e26b5],_0x3fc1c2,_0x24317f)),_0x5cb7fa=_0x20d7e9||null,_0x19fbb5=_0x20d7e9?_0x2870a0[_0x2e26b5]:null),_0x5cb7fa&&_0xacb453&&_0x3277d6(_0x20d7e9,F(_0x19fbb5,_0x3fc1c2,_0x24317f),B(_0x2870a0[_0x2e26b5],_0x3fc1c2,_0x24317f));}function _0x3277d6(_0x4a3290,_0x13fe02,_0x59d8e7){const _0x445a54=_0x5cb7fa['userId'],_0x39fa45='revision:'+_0x41dc4e+':'+_0x445a54+':'+_0x463708++,_0x244e1b=_0x24317f['createRange'](_0x13fe02,_0x59d8e7);_0x3fc1c2['markers']['set'](_0x39fa45,_0x244e1b),null!==_0x445a54&&_0x47a31e['add'](_0x445a54);}}['_getVidAttributeName'](_0x2fa6d2){switch(_0x2fa6d2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x308884,_0xe37279){_0x308884['baseVersion']=null;for(const _0x3282f5 in _0x308884){const _0xba3778=_0x308884[_0x3282f5];if(_0xba3778 instanceof vt){const _0x396f47=_0xe37279['get'](_0xba3778['root']['rootName']);_0x308884[_0x3282f5]=this['_fixPosition'](_0xba3778,_0x396f47);}if(_0xba3778 instanceof ft){const _0x405bcf=_0xe37279['get'](_0xba3778['root']['rootName']);_0x308884[_0x3282f5]=this['_fixRange'](_0xba3778,_0x405bcf);}'root'===_0x3282f5&&(_0x308884['root']=_0xe37279['get'](_0x308884['root']['rootName']));}}['_fixRange'](_0x3c4ed6,_0x1d3be0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3c4ed6['start'],_0x1d3be0),this['_fixPosition'](_0x3c4ed6['end'],_0x1d3be0));}['_fixPosition'](_0x11a138,_0x18c70d){return this['editor']['model']['createPositionFromPath'](_0x18c70d,_0x11a138['path'],_0x11a138['stickiness']);}['_handleInsertOperation'](_0x248922){const _0x58e13c=this['_idsRoots']['get'](_0x248922['position']['root']['rootName']),_0x5ada8b=this['_fixPosition'](_0x248922['position'],_0x58e13c),_0x105cd3=null===_0x248922['_authorId']?null:_0x248922['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4afd36=_0x5ada8b['parent'],_0x368f2e=this['_revisionId'],_0x55226d=[];for(const _0x3bf16d of _0x248922['nodes'])if(_0x3bf16d['is']('element'))_0x55226d['push'](this['_makeIdsRoot'](_0x3bf16d));else{for(let _0x46f5f7=0x0;_0x46f5f7<_0x3bf16d['offsetSize'];_0x46f5f7++)_0x55226d['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3fd767=this['_revisionId'];for(let _0x4323b5=_0x368f2e;_0x4323b5<_0x3fd767;_0x4323b5++)this['_touched']['set'](_0x4323b5,{'userId':_0x105cd3});_0x4afd36['_insertChild'](_0x5ada8b['offset'],_0x55226d);}['_handleMoveOperation'](_0x17750b){(_0x17750b=this['_cloneOperation'](_0x17750b,this['_idsRoots']))['_execute']();const _0x8f6bb7=null===_0x17750b['_authorId']?null:_0x17750b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4f6dd4=_0x17750b['getMovedRangeStart'](),_0x411f79=_0x4f6dd4['parent'],_0x38f5a7=_0x4f6dd4['offset'];!function _0x4b2f8c(_0x200786,_0x5b016e,_0x41f57f,_0x3fede2){for(let _0x37cb6b=_0x41f57f;_0x37cb6b<_0x3fede2;_0x37cb6b++){const _0x22b84f=_0x5b016e['getChild'](_0x37cb6b);_0x22b84f['is']('element','$text')?_0x200786['set'](_0x22b84f['getAttribute']('vid'),{'userId':_0x8f6bb7}):(_0x200786['set'](_0x22b84f['getAttribute']('vid_start'),{'userId':_0x8f6bb7}),_0x4b2f8c(_0x200786,_0x22b84f,0x0,_0x22b84f['childCount']),_0x200786['set'](_0x22b84f['getAttribute']('vid_end'),{'userId':_0x8f6bb7}));}}(this['_touched'],_0x411f79,_0x38f5a7,_0x38f5a7+_0x17750b['howMany']);}['_handleMergeOperation'](_0x43d94a){const _0x1f57fb=null===(_0x43d94a=this['_cloneOperation'](_0x43d94a,this['_idsRoots']))['_authorId']?null:_0x43d94a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3935a9=_0x43d94a['targetPosition']['parent'],_0x400b68=_0x43d94a['sourcePosition']['parent'],_0x4a347e=_0x3935a9['getAttribute']('vid_end'),_0x3f31e5=_0x400b68['getAttribute']('vid_start');_0x3935a9['_setAttribute']('vid_end',_0x400b68['getAttribute']('vid_end')),_0x400b68['_setAttribute']('vid_end',_0x4a347e),this['_touched']['set'](_0x3f31e5,{'userId':_0x1f57fb}),this['_touched']['set'](_0x4a347e,{'userId':_0x1f57fb}),_0x43d94a['_execute']();}['_handleSplitOperation'](_0x6d5a1f){const _0x2389a8=null===(_0x6d5a1f=this['_cloneOperation'](_0x6d5a1f,this['_idsRoots']))['_authorId']?null:_0x6d5a1f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x50492a=_0x6d5a1f['graveyardPosition'],_0x40f3d3=_0x6d5a1f['splitPosition']['parent'];_0x6d5a1f['_execute']();const _0x2d6de1=_0x40f3d3['getAttribute']('vid_end'),_0x3972f6=_0x6d5a1f['insertionPosition']['nodeAfter'];if(_0x50492a){const _0x47912d=_0x3972f6['getAttribute']('vid_end'),_0x3768b9=_0x40f3d3['getAttribute']('vid_end');_0x40f3d3['_setAttribute']('vid_end',_0x47912d),_0x3972f6['_setAttribute']('vid_end',_0x3768b9),this['_touched']['set'](_0x40f3d3['getAttribute']('vid_end'),{'userId':_0x2389a8}),this['_touched']['set'](_0x3972f6['getAttribute']('vid_start'),{'userId':_0x2389a8});}else{const _0x60b971=this['_revisionId']++,_0x12d8b6=this['_revisionId']++;_0x40f3d3['_setAttribute']('vid_end',_0x60b971),_0x3972f6['_setAttribute']('vid_start',_0x12d8b6),_0x3972f6['_setAttribute']('vid_end',_0x2d6de1),this['_touched']['set'](_0x60b971,{'userId':_0x2389a8}),this['_touched']['set'](_0x12d8b6,{'userId':_0x2389a8});}}['_handleMarkerOperation'](_0x11f60f){if(!_0x11f60f['affectsData'])return;const _0x15f2fb=(_0x11f60f=this['_cloneOperation'](_0x11f60f,this['_diffRoots']))['oldRange']?_0x11f60f['oldRange']['root']:null,_0x5047b7=_0x11f60f['newRange']?_0x11f60f['newRange']['root']:null;_0x15f2fb&&this['_markers']['delete'](_0x11f60f['name']),_0x5047b7&&this['_markers']['set'](_0x11f60f['name'],_0x11f60f['newRange']['clone']());const _0x69ce3f=null===_0x11f60f['_authorId']?null:_0x11f60f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x184d22=_0x11f60f['name'];if(!this['_touchedMarkers']['has'](_0x184d22))return void this['_touchedMarkers']['set'](_0x184d22,{'range':_0x11f60f['oldRange'],'userId':_0x69ce3f});const _0x27d50e=this['_touchedMarkers']['get'](_0x184d22),_0x561509=_0x27d50e['range'],_0x555f23=_0x11f60f['newRange'];null==_0x561509&&null==_0x555f23||_0x561509&&_0x555f23&&_0x561509['isEqual'](_0x555f23)?this['_touchedMarkers']['delete'](_0x11f60f['name']):_0x27d50e['userId']=_0x69ce3f;}['_handleRootOperation'](_0x5c120a,_0x1ed0a2){this['_diffRoots']['has'](_0x5c120a['rootName'])?this['_diffRoots']['get'](_0x5c120a['rootName'])['_isAttached']=_0x5c120a['isAdd']:(this['_diffRoots']['set'](_0x5c120a['rootName'],P(_0x5c120a['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5c120a['rootName'],{}),_0x1ed0a2&&this['_idsRoots']['set'](_0x5c120a['rootName'],P(_0x5c120a['rootName'],!0x0)));const _0x31f4d6=null===_0x5c120a['_authorId']?null:_0x5c120a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1ec19f=this['_touchedRoots']['get'](_0x5c120a['rootName']);_0x1ec19f&&_0x1ec19f['userId']===_0x31f4d6?this['_touchedRoots']['delete'](_0x5c120a['rootName']):this['_touchedRoots']['set'](_0x5c120a['rootName'],{'userId':_0x31f4d6,'isAttached':_0x5c120a['isAdd']});}['_handleRootAttributeOperation'](_0x16d830){const _0x5aa609=this['_diffRootsAttributes']['get'](_0x16d830['root']['rootName']);null===_0x16d830['newValue']?delete _0x5aa609[_0x16d830['key']]:_0x5aa609[_0x16d830['key']]=_0x16d830['newValue'];}}function N(_0xdf911){const _0x5ab980=P(_0xdf911['rootName'],_0xdf911['isAttached']());for(const _0x174758 of _0xdf911['getChildren']()){const _0x417d7a=_0x174758['_clone'](!0x0);_0x5ab980['_appendChild'](_0x417d7a);}return _0x5ab980;}function P(_0x469120,_0x936170=!0x0){const _0x4c242a=new gt();return _0x4c242a['rootName']=_0x469120,_0x4c242a['_isAttached']=_0x936170,_0x4c242a['isAttached']=()=>_0x4c242a['_isAttached'],_0x4c242a;}function F(_0x51e916,_0x2e9183,_0x366b65){const _0xf3c77f='elementEnd'==_0x51e916['type']?_0x366b65['createPositionAt'](_0x51e916['item'],'end'):_0x366b65['createPositionBefore'](_0x51e916['item']);return _0x366b65['createPositionFromPath'](_0x2e9183,_0xf3c77f['path'],_0xf3c77f['stickiness']);}function B(_0x5147ce,_0x252c32,_0x18cbf3){const _0x5566a1='elementStart'==_0x5147ce['type']?_0x18cbf3['createPositionAt'](_0x5147ce['item'],0x0):_0x18cbf3['createPositionAfter'](_0x5147ce['item']);return _0x18cbf3['createPositionFromPath'](_0x252c32,_0x5566a1['path'],_0x5566a1['stickiness']);}class os extends _0x5d268e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x34249b,_0x1f170b){super(_0x34249b),this['focusTracker']=new _0x24cb14(),this['keystrokes']=new _0xdf61f0(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1f170b),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x26aba0({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5f3d20=_0x24d977=>_0x24d977['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5f3d20),this['keystrokes']['set']('arrowleft',_0x5f3d20),this['keystrokes']['set']('arrowup',_0x5f3d20),this['keystrokes']['set']('arrowdown',_0x5f3d20);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2854d6){this['revisionNameInputView']['fieldView']['element']['value']=_0x2854d6['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x36b416){const _0x1e774b=new nt(this['locale'],ti),_0x5bff7c=_0x1e774b['fieldView'];_0x5bff7c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3a4692=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x36b416&&(_0x3a4692+='\x20('+g(this['locale'],'optional')+')'),(_0x1e774b['label']=_0x3a4692,_0x5bff7c['on']('input',()=>{this['revisionNameInputValue']=_0x5bff7c['element']['value']['trim']();}),_0x1e774b);}}class f extends _0x321c34{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x1af3ac=this['editor'],_0x15b099=_0x1af3ac['plugins']['get']('RevisionTracker');_0x1af3ac['ui']['componentFactory']['add']('revisionHistory',_0x309d99=>{const _0x1012fd=_0x50d88b(_0x309d99),_0x2fadeb=_0x1012fd['panelView']['children'],_0x2c5de4=new _0x556aee(_0x309d99),_0x55deaf=new te(_0x309d99),_0x5d018e=new _0x6881f6(_0x309d99),_0x1398b2=new te(_0x309d99),_0x3945a0=new _0x6881f6(_0x309d99);return _0x1012fd['bind']('isEnabled')['to'](_0x15b099,'isReady',_0x15b099,'isEnabled',_0x1af3ac,'isReadOnly',(_0x4d1d93,_0x154fbf,_0x461173)=>_0x4d1d93&&_0x154fbf&&!_0x461173),_0x1012fd['buttonView']['set']({'icon':_0x33de5c,'label':g(_0x309d99,'Revision\x20history'),'tooltip':!0x0}),_0x5d018e['set']({'label':g(_0x309d99,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5d018e['bind']('isEnabled')['to'](_0x15b099,'isReady',_0x15b099,'isEnabled',_0x1af3ac,'isReadOnly',(_0x2a586c,_0x3dc7b3,_0x5ef5e1)=>_0x2a586c&&_0x3dc7b3&&!_0x5ef5e1),_0x5d018e['on']('execute',()=>this['_showDialog']()),_0x3945a0['set']({'label':g(_0x309d99,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3945a0['bind']('isEnabled')['to'](_0x15b099,'isReady',_0x1af3ac,'isReadOnly',(_0x55a55d,_0x3343e5)=>_0x55a55d&&!_0x3343e5),_0x3945a0['on']('execute',()=>{_0x1af3ac['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1012fd['isOpen']=!0x1,_0x1af3ac['editing']['view']['focus']();}),_0x55deaf['children']['add'](_0x5d018e),_0x1398b2['children']['add'](_0x3945a0),_0x2c5de4['role']='menu',_0x2c5de4['items']['addMany']([_0x55deaf,_0x1398b2]),_0x2fadeb['add'](_0x2c5de4),_0x1012fd;}),_0x1af3ac['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x199722=this['editor'],_0x1a6812=_0x199722['locale'],_0x1ec43e=new _0x587932(_0x1a6812),_0x36c182=new _0x173035(_0x1a6812);_0x1ec43e['buttonView']['set']({'icon':_0x33de5c,'label':g(_0x1a6812,'Revision\x20history')});const _0x299712=new _0x388760(_0x1a6812,_0x1ec43e),_0x4d7c7b=new _0x2fff03(_0x1a6812);_0x4d7c7b['set']({'label':g(_0x1a6812,'Save\x20current\x20revision')}),_0x4d7c7b['delegate']('execute')['to'](_0x1ec43e),_0x4d7c7b['on']('execute',()=>{this['_showDialog']();}),_0x299712['children']['add'](_0x4d7c7b),_0x36c182['items']['add'](_0x299712);const _0x48ad80=new _0x388760(_0x1a6812,_0x1ec43e),_0x4b810a=new _0x2fff03(_0x1a6812);return _0x4b810a['set']({'label':g(_0x1a6812,'Open\x20revision\x20history')}),_0x4b810a['delegate']('execute')['to'](_0x1ec43e),_0x4b810a['on']('execute',()=>{_0x199722['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x48ad80['children']['add'](_0x4b810a),_0x36c182['items']['add'](_0x48ad80),_0x1ec43e['panelView']['children']['add'](_0x36c182),_0x1ec43e;}['_showDialog'](){const _0x33393e=this['editor'],_0xc93e12=_0x33393e['locale'],_0x124310=_0x33393e['plugins']['get']('Dialog'),_0x35b0a0=_0x33393e['plugins']['get']('RevisionTracker');function _0x195381(_0x120ab7){_0x33393e['config']['get']('revisionHistory.requireRevisionName')&&''===_0x120ab7['revisionName']?_0x120ab7['revisionNameInputView']['errorText']=g(_0xc93e12,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x33393e['plugins']['get'](u)['saveRevision']({'name':_0x120ab7['revisionName']}),_0x124310['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x195381(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x124310['show']({'id':'revisionSave','title':g(_0xc93e12,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x33393e['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x124310['hide']()},{'label':g(_0x33393e['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x15122f){_0x15122f['bind']('isEnabled')['to'](_0x35b0a0,'isReady',_0x35b0a0,'isEnabled',_0x33393e,'isReadOnly',(_0x1d7cd3,_0x2b8060,_0x4930c3)=>_0x1d7cd3&&_0x2b8060&&!_0x4930c3);},'onExecute':()=>_0x195381(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x48ba76=this['editor'],_0x154a05=_0x48ba76['locale'];this['_saveRevisionFormView']=new os(_0x154a05,_0x48ba76['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x5d268e{['changeId'];['_model'];constructor(_0x308282,_0xcceaa2){super(_0x308282),this['_model']=_0xcceaa2,this['changeId']=_0xcceaa2['id'];const _0x5e5bfe=this['bindTemplate'],_0x36fae4=g(_0x308282,_0xcceaa2['data']['isSuggestion']?'Suggested\x20by':'add'==_0xcceaa2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xcceaa2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5e5bfe['to']('type',_0x2e4ed1=>'ck-revision-change__'+_0x2e4ed1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x36fae4}]},{'text':'\x20'+_0xcceaa2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4838eb(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x18920f){super(),this['id']=_0x18920f['id']||_0x459828(),this['author']=_0x18920f['author'],this['type']=_0x18920f['type'],this['data']=_0x18920f['data']||{},this['rootName']=_0x18920f['rootName'],this['set']('createdAt',_0x18920f['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1e4f7d,_0x519e56){this['newRevisionId']=_0x1e4f7d,this['oldRevisionId']=_0x519e56,this['changes']=new _0x1cbddd();}['_setChanges'](_0x845b06){for(const _0x481549 of _0x845b06)this['changes']['add'](_0x481549);}}class m extends _0x321c34{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x9371e6,_0x1f65f4,I,V];}constructor(_0x4f68ad){super(_0x4f68ad),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x244654,_0x3af8c3,_0x5be6fe)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x192216=>{for(const _0x33f3f5 of this['editor']['editing']['view']['document']['roots'])_0x5be6fe?_0x192216['removeClass']('ck-editor__editable__overlay',_0x33f3f5):_0x192216['addClass']('ck-editor__editable__overlay',_0x33f3f5);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x36a517=>null!==_0x36a517),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x165a15,_0x5896c2,_0x3b6fbc)=>_0x165a15&&_0x3b6fbc?_0x5896c2['changes']['getIndex'](_0x3b6fbc):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x10e8a4,_0x39cce8)=>_0x10e8a4?_0x39cce8['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1f65f4);}['init'](){const _0x89f9=this['editor'],_0x22f3e2=new pt(_0x89f9,{'direction':'backward'}),_0xb17b4e=new pt(_0x89f9,{'direction':'forward'});(_0x89f9['commands']['add']('showPreviousChange',_0x22f3e2),_0x89f9['commands']['add']('showNextChange',_0xb17b4e),_0x89f9['commands']['add']('restoreRevision',new wt(_0x89f9)),this['on']('change:numberOfChanges',()=>{_0x22f3e2['refresh'](),_0xb17b4e['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x89f9['enableReadOnlyMode']('revision-viewer'),_0x89f9['plugins']['has']('WidgetToolbarRepository'))&&_0x89f9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x40932c){return await this['_utils']['loadRevisionData'](_0x40932c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x40932c);}async['getRevisionRootsAttributes'](_0x1dfdc2){return await this['_utils']['loadRevisionData'](_0x1dfdc2,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1dfdc2);}async['compare'](_0x3bfb57,_0x4b83ab,_0x59fa61=!0x1){if(!this['isEnabled'])return;const _0x531fcc=this['diff'],_0x5de61e=this['repository'],_0x110b28='string'==typeof _0x3bfb57?_0x5de61e['getRevision'](_0x3bfb57):_0x3bfb57,_0x1de584='string'==typeof _0x4b83ab?_0x5de61e['getRevision'](_0x4b83ab):_0x4b83ab,_0x3ef1c6=_0x110b28['id'],_0x35875f=_0x1de584?_0x1de584['id']:null;if(!_0x59fa61&&this['diff']&&this['diff']['newRevisionId']===_0x3ef1c6&&this['diff']['oldRevisionId']===_0x35875f)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x3ef1c6,_0x35875f);const _0xf74fe4=this['_getRevisionsRange'](_0x110b28,_0x1de584,!0x0)['map'](_0x521f76=>this['_utils']['loadRevisionData'](_0x521f76,this['adapter']));return _0xf74fe4['push'](new Promise(_0x48081a=>{setTimeout(_0x48081a,0x14);})),Promise['all'](_0xf74fe4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x28ae90=this['_getDiff'](_0x3ef1c6,_0x35875f);for(const _0x359400 of _0x28ae90['changes'])this['_changeIdToChange']['set'](_0x359400['id'],_0x359400);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x466066=>{for(const _0x121eae of this['editor']['model']['document']['getRootNames']())_0x466066['detachRoot'](_0x121eae);for(const _0x21aa8e of Object['keys'](_0x28ae90['model'])){const _0x2600cc=_0x466066['addRoot'](_0x21aa8e);for(const _0x82ca35 of Object['keys'](_0x28ae90['attributes'][_0x21aa8e]))_0x466066['setAttribute'](_0x82ca35,_0x28ae90['attributes'][_0x21aa8e][_0x82ca35],_0x2600cc);_0x466066['insert'](_0x28ae90['model'][_0x21aa8e],_0x2600cc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x28ae90['changes'])),this['isReady']=!0x0;})['catch'](_0x40d4c6=>{console['error'](_0x40d4c6),this['_cleanUp'](),_0x531fcc&&(this['diff']=_0x531fcc),this['isReady']=!0x0;});}['addRevisionData'](_0xe99164,_0x12ca26){const _0x48aed3=this['repository']['createRevision'](_0xe99164);return _0x48aed3['on']('_update',(_0x1a96d4,_0x57d3c0,_0x43be00)=>_0x12ca26(_0x57d3c0,_0x43be00,_0x48aed3)),this['repository']['addRevision'](_0x48aed3),_0x48aed3;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3ec359=>{for(const _0x1bfd8a of this['editor']['model']['document']['getRootNames']())_0x3ec359['detachRoot'](_0x1bfd8a);});}['_sortAndFilterDiffChanges'](_0x5eec99){const _0x2f184d=[],_0x14f03c=new Map();for(const _0x8a19b3 of this['editor']['model']['document']['getRootNames']()){const _0x29e0e2=this['editor']['editing']['view']['getDomRoot'](_0x8a19b3);if(!_0x29e0e2)continue;const _0x95358=_0x29e0e2['getClientRects']()['item'](0x0);_0x95358&&(_0x2f184d['push'](_0x8a19b3),_0x14f03c['set'](_0x8a19b3,_0x95358));}return _0x2f184d['sort']((_0x5c58a1,_0x4a8306)=>{const _0x430a7c=_0x14f03c['get'](_0x5c58a1),_0x2d3bed=_0x14f03c['get'](_0x4a8306);return _0x430a7c['y']-_0x2d3bed['y']||_0x430a7c['x']-_0x2d3bed['x'];}),(_0x5eec99=_0x5eec99['filter'](_0x41d05a=>_0x2f184d['includes'](_0x41d05a['rootName'])))['sort']((_0x5452ce,_0x4f1d71)=>_0x2f184d['indexOf'](_0x5452ce['rootName'])-_0x2f184d['indexOf'](_0x4f1d71['rootName'])),_0x5eec99;}['_makeTape'](_0x3c2840){const _0x3ca501=Array['from'](_0x3c2840['markers'])['filter'](([_0x542369,_0x1dae80])=>_0x542369['startsWith']('revision:')&&!_0x1dae80['isCollapsed']),_0x4f5850=Array['from'](this['editor']['model']['createRangeIn'](_0x3c2840)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3ca501['length'])for(const _0x92e746 of _0x4f5850){const [_0x35e329,_0x3c24c2]=_0x3ca501[0x0],[,_0x104ded,_0x31d9e0]=_0x35e329['split'](':');if(_0x3c24c2['end']['isEqual'](_0x92e746['nextPosition'])&&_0x3ca501['shift'](),(_0x92e746['previousPosition']['isEqual'](_0x3c24c2['start'])||_0x92e746['previousPosition']['isAfter'](_0x3c24c2['start']))&&('insertion'==_0x104ded?_0x92e746['isAdded']={'userId':_0x31d9e0}:'deletion'==_0x104ded&&(_0x92e746['isRemoved']={'userId':_0x31d9e0})),0x0==_0x3ca501['length'])break;}return _0x4f5850;}['_refreshStartEndIndex'](_0x5c2797){const _0x477fc6=new Map();for(let _0xcdc979=0x0;_0xcdc979<_0x5c2797['length'];_0xcdc979++)'text'===_0x5c2797[_0xcdc979]['type']?(_0x5c2797[_0xcdc979]['item']['startIndex']=_0xcdc979,_0x5c2797[_0xcdc979]['item']['endIndex']=_0xcdc979):('elementStart'===_0x5c2797[_0xcdc979]['type']?_0x5c2797[_0xcdc979]['item']['startIndex']=_0xcdc979:'elementEnd'===_0x5c2797[_0xcdc979]['type']&&(_0x5c2797[_0xcdc979]['item']['endIndex']=_0xcdc979),_0x477fc6['set'](_0x5c2797[_0xcdc979]['id'],_0xcdc979));for(const _0x2b1adf of _0x477fc6['values']())'elementStart'===_0x5c2797[_0x2b1adf]['type']?_0x5c2797[_0x2b1adf]['item']['endIndex']=_0x477fc6['get'](_0x5c2797[_0x2b1adf]['pairId']):'elementEnd'===_0x5c2797[_0x2b1adf]['type']&&(_0x5c2797[_0x2b1adf]['item']['startIndex']=_0x477fc6['get'](_0x5c2797[_0x2b1adf]['pairId']));}['_processTape'](_0x53ba44){for(let _0x360642=0x0;_0x360642<_0x53ba44['length'];_0x360642++){if('elementStart'===_0x53ba44[_0x360642]['type'])_0x53ba44[_0x360642]['item']['startIndex']=_0x360642;else{if('elementEnd'===_0x53ba44[_0x360642]['type']){_0x53ba44[_0x360642]['item']['endIndex']=_0x360642;const _0x1274f0=_0x53ba44[_0x360642]['item']['startIndex'];_0x53ba44[_0x1274f0]['pairId']=_0x53ba44[_0x360642]['id'],_0x53ba44[_0x360642]['pairId']=_0x53ba44[_0x1274f0]['id'];}else _0x53ba44[_0x360642]['item']['startIndex']=_0x360642,_0x53ba44[_0x360642]['item']['endIndex']=_0x360642,_0x53ba44[_0x360642]['pairId']=null;}_0x53ba44[_0x360642]['markersStart']||(_0x53ba44[_0x360642]['markersStart']=[],_0x53ba44[_0x360642]['markersEnd']=[]);}}['_markInsertions'](_0xc9cda0,_0x24e385){const _0x535438=_0xc9cda0['filter'](_0x563fc0=>!_0x563fc0['isAdded']);for(let _0x230118=0x0;_0x230118<_0x24e385['length'];_0x230118++)_0x24e385[_0x230118]['isAdded']&&(_0x535438[_0x230118]['isAdded']=_0x24e385[_0x230118]['isAdded']);}['_getDiff'](_0xd38f96,_0x3ef50f=null){const _0x20658f=this['repository']['getRevision'](_0xd38f96),_0x1d1d89=_0x3ef50f?this['repository']['getRevision'](_0x3ef50f):null,_0x1c19c0=this['_getRevisionsRange'](_0x20658f,_0x1d1d89),_0x2941f5=_0x1c19c0[_0x1c19c0['length']-0x1],_0x26c7cd=new Map(),_0x217be8={'model':{},'attributes':{},'changes':[]},_0x46de10=new Set(),_0x18d315=new Map();for(let _0x2ad5b5=_0x1c19c0['length']-0x1;_0x2ad5b5>=0x0;_0x2ad5b5--){const _0x142d0d=_0x1c19c0[_0x2ad5b5];for(const _0x4c29de of Object['keys'](_0x142d0d['diffData']))if(_0x142d0d['diffData'][_0x4c29de]['attachChange']){const _0x2d8751=_0x142d0d['diffData'][_0x4c29de]['attachChange'];_0x2d8751['isAttached']?(_0x46de10['add'](_0x4c29de),_0x18d315['has'](_0x4c29de)&&_0x18d315['get'](_0x4c29de)['userId']==_0x2d8751['userId']?_0x18d315['delete'](_0x4c29de):_0x18d315['set'](_0x4c29de,_0x2d8751)):_0x18d315['has'](_0x4c29de)?(_0x46de10['delete'](_0x4c29de),_0x18d315['delete'](_0x4c29de)):(_0x46de10['add'](_0x4c29de),_0x18d315['set'](_0x4c29de,_0x2d8751));}else _0x46de10['add'](_0x4c29de);}for(const _0x32a38d of _0x46de10){const _0x3e6462=_0x18d315['has'](_0x32a38d)&&!_0x18d315['get'](_0x32a38d)['isAttached'];let _0x4eac1b=_0x3e6462?_0x1c19c0['length']-0x1:0x0;const _0x2a96b6=_0x3e6462?-0x1:0x1;for(;_0x1c19c0[_0x4eac1b];){const _0x5f5a41=_0x1c19c0[_0x4eac1b];if(_0x5f5a41['diffData'][_0x32a38d]){const _0x5b98b2=_0x3e6462?_0x5f5a41['diffData'][_0x32a38d]['attributesBefore']:_0x5f5a41['diffData'][_0x32a38d]['attributesAfter'];_0x217be8['attributes'][_0x32a38d]=_0x5b98b2?_0x2ab88e(_0x5b98b2):{};break;}_0x4eac1b+=_0x2a96b6;}}for(const _0x435f23 of _0x1c19c0){_0x435f23['model']={};for(const _0x55c389 of _0x435f23['authors'])_0x26c7cd['set'](_0x55c389['id'],_0x55c389);for(const _0x2cf647 of _0x46de10){const _0x489033=_0x435f23['diffData'][_0x2cf647]?_0x435f23['diffData'][_0x2cf647]['insertions']:'[]',_0x328cef=_0x435f23['diffData'][_0x2cf647]?_0x435f23['diffData'][_0x2cf647]['deletions']:'[]';_0x435f23['model'][_0x2cf647]={'insertions':this['_utils']['_makeModelFromViewString'](_0x489033),'deletions':this['_utils']['_makeModelFromViewString'](_0x328cef)};}}for(const _0x5e6cc3 of _0x46de10){let _0x5386ee=null,_0x52d26d=0x0;const _0x2d4ddb=new Map(Array['from'](_0x20658f['model'][_0x5e6cc3]['insertions']['markers'])['filter'](([_0x2190ba])=>!_0x2190ba['startsWith']('revision:')));let _0x15c699=0x0;for(const _0x35f88e of _0x1c19c0){const _0x160842=this['_makeTape'](_0x35f88e['model'][_0x5e6cc3]['insertions']);_0x35f88e==_0x20658f?(_0x5386ee=_0x160842,_0x52d26d=_0x5386ee['length'],_0x5386ee['forEach'](_0x455c64=>{_0x455c64['id']=_0x15c699++;}),this['_processTape'](_0x5386ee)):this['_markInsertions'](_0x5386ee,_0x160842);const _0x8642ed=_0x5386ee['filter'](_0x9a1228=>!_0x9a1228['isAdded'])['map'](_0x36f8e6=>_0x36f8e6['id']);let _0x5ee70a=0x0;const _0x49cbff=this['_makeTape'](_0x35f88e['model'][_0x5e6cc3]['deletions']);_0x49cbff['forEach'](_0x36f8e1=>{_0x36f8e1['isRemoved']?_0x36f8e1['id']=_0x52d26d++:_0x36f8e1['id']=_0x8642ed[_0x5ee70a++];}),this['_processTape'](_0x49cbff),this['_setDistance'](_0x5386ee,'isAdded'),this['_setDistance'](_0x49cbff,'isRemoved'),_0x35f88e==_0x20658f&&this['_markMarkers'](_0x5386ee,_0x2d4ddb),_0x5386ee=this['_joinTapes'](_0x5386ee,_0x49cbff),this['_refreshStartEndIndex'](_0x5386ee),this['_setDistance'](_0x5386ee,'isRemoved');}_0x5386ee=_0x5386ee['filter'](_0x501b9d=>!(_0x501b9d['isAdded']&&_0x501b9d['isRemoved']));const _0x4a97ba=new Map(_0x2941f5['model'][_0x5e6cc3]['deletions']['markers']),_0x242b01=new Set(_0x2d4ddb['keys']());for(const _0x14262b of _0x4a97ba['keys']())_0x242b01['delete'](_0x14262b);this['_markSuggestions'](_0x5386ee,_0x242b01),this['_fixObsoleteTags'](_0x5386ee),_0x5386ee=this['_removeMissingPairs'](_0x5386ee),_0x5386ee=this['_markMismatchedRemovedTags'](_0x5386ee),_0x5386ee=this['_removeUnsupportedChanges'](_0x5386ee);const {root:_0x412b57,changes:_0x47abf0}=this['_makeModelFromTape'](_0x5386ee,_0x26c7cd,_0x5e6cc3);_0x217be8['model'][_0x5e6cc3]=_0x412b57;const _0x164f1a=_0x18d315['get'](_0x5e6cc3);if(_0x164f1a){const _0x236dfd=_0x26c7cd['get'](_0x164f1a['userId']),_0x1cd502=new r({'author':_0x236dfd,'type':_0x164f1a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5e6cc3});_0x47abf0['unshift'](_0x1cd502),_0x217be8['attributes'][_0x5e6cc3]['revisionHistoryAttachChange']=_0x1cd502['id'];}_0x217be8['changes']=_0x217be8['changes']['concat'](_0x47abf0);}return _0x217be8;}['_markMarkers'](_0x4b9b22,_0x857372){for(let _0x5b4284=0x0;_0x5b4284<_0x4b9b22['length'];_0x5b4284++)for(const [_0x37f97a,_0x50a61a]of _0x857372)!_0x50a61a['isCollapsed']&&_0x50a61a['start']['isEqual'](_0x4b9b22[_0x5b4284]['previousPosition'])&&_0x4b9b22[_0x5b4284]['markersStart']['push'](_0x37f97a),_0x50a61a['end']['isEqual'](_0x4b9b22[_0x5b4284]['nextPosition'])&&_0x4b9b22[_0x5b4284]['markersEnd']['push'](_0x37f97a);}['_joinTapes'](_0x29528a,_0x1d7874){let _0x7df933=[],_0x971ed4=0x0,_0x50d2bb=0x0;for(;_0x971ed4<_0x29528a['length']||_0x50d2bb<_0x1d7874['length'];){const _0x598395=_0x29528a[_0x971ed4]||{},_0x29811f=_0x1d7874[_0x50d2bb]||{};if(_0x598395['id']==_0x29811f['id'])_0x971ed4++,_0x50d2bb++,_0x7df933['push'](_0x598395);else{if(_0x29811f['isRemoved']&&_0x598395['isAdded']){const {commonTape:_0x4c191f,iEnd:_0x3f4de1,jEnd:_0x176aa8}=this['_threeWayMerge'](_0x29528a,_0x971ed4,_0x1d7874,_0x50d2bb);_0x7df933=_0x7df933['concat'](_0x4c191f),_0x971ed4=_0x3f4de1,_0x50d2bb=_0x176aa8;}else _0x29811f['isRemoved']?(_0x50d2bb++,_0x7df933['push'](_0x29811f)):(_0x971ed4++,_0x7df933['push'](_0x598395));}}return _0x7df933;}['_markSuggestions'](_0x1fde13,_0x1baeae){const _0x2fea5f=[];for(let _0x576c0f=0x0;_0x576c0f<_0x1fde13['length'];_0x576c0f++){for(let _0x5c9c51=0x0;_0x5c9c51<_0x1fde13[_0x576c0f]['markersStart']['length'];_0x5c9c51++){const _0x8436bb=_0x1fde13[_0x576c0f]['markersStart'][_0x5c9c51];if(!_0x1baeae['has'](_0x8436bb))continue;const {group:_0x30fef7,type:_0x42a0ff,authorId:_0x3e3b12}=_0x5588ae(_0x8436bb);'revision-suggestion'!=_0x30fef7||'insertion'!=_0x42a0ff&&'deletion'!=_0x42a0ff||(_0x2fea5f['unshift']({'type':_0x42a0ff,'name':_0x8436bb,'userId':_0x3e3b12}),_0x1fde13[_0x576c0f]['markersStart']['splice'](_0x5c9c51,0x1),_0x5c9c51--);}_0x3744d9(_0x1fde13[_0x576c0f]);for(let _0x54bd18=0x0;_0x54bd18<_0x1fde13[_0x576c0f]['markersEnd']['length'];_0x54bd18++){const _0x293361=_0x1fde13[_0x576c0f]['markersEnd'][_0x54bd18];if(!_0x1baeae['has'](_0x293361))continue;const {group:_0x4b2389,type:_0x3d4924}=_0x5588ae(_0x293361);if('revision-suggestion'!=_0x4b2389||'insertion'!=_0x3d4924&&'deletion'!=_0x3d4924)continue;_0x1fde13[_0x576c0f]['markersEnd']['splice'](_0x54bd18,0x1),_0x54bd18--;const _0x12b61c=_0x2fea5f['findIndex'](_0x28c783=>_0x28c783['name']==_0x293361);_0x12b61c>-0x1&&_0x2fea5f['splice'](_0x12b61c,0x1);}}function _0x5588ae(_0x555e87){const _0x32d95d=_0x555e87['split'](':');return{'group':_0x32d95d[0x0],'type':_0x32d95d[0x1],'subType':_0x32d95d['length']>=0x5?_0x32d95d[0x2]:null,'id':_0x32d95d['length']<0x5?_0x32d95d[0x2]:_0x32d95d[0x3],'authorId':_0x32d95d['length']<0x5?_0x32d95d[0x3]:_0x32d95d[0x4],'markerCount':0x6==_0x32d95d['length']?_0x32d95d[0x5]:null};}function _0x3744d9(_0x5a25ca){for(let _0x1add82=0x0;_0x1add82<_0x2fea5f['length'];_0x1add82++){if(_0x5a25ca['isAdded']&&'insertion'==_0x2fea5f[_0x1add82]['type']&&_0x5a25ca['isAdded']['userId']==_0x2fea5f[_0x1add82]['userId'])return _0x5a25ca['isAddSuggestion']=_0x2fea5f[_0x1add82],void delete _0x5a25ca['isAdded'];if(!_0x5a25ca['isAdded']&&!_0x5a25ca['isRemoved']&&'deletion'==_0x2fea5f[_0x1add82]['type'])return void(_0x5a25ca['isRemoveSuggestion']=_0x2fea5f[_0x1add82]);}}}['_setDistance'](_0x22c934,_0x52c604){let _0x299c6d=0x0,_0x4adc8f=!0x1;const _0x3b7303=new Map();for(const _0x4b4521 of _0x22c934)_0x4b4521[_0x52c604]?_0x4adc8f&&(_0x299c6d++,_0x4adc8f=!0x1):(_0x299c6d++,_0x4adc8f=!0x0),_0x3b7303['set'](_0x4b4521['id'],_0x299c6d);for(let _0x13ac19=0x0;_0x13ac19<_0x22c934['length'];_0x13ac19++){if('isRemoved'==_0x52c604&&_0x22c934[_0x13ac19]['isAdded']||'isAdded'==_0x52c604&&_0x22c934[_0x13ac19]['isRemoved'])continue;if('text'==_0x22c934[_0x13ac19]['type']){_0x22c934[_0x13ac19]['distance']=0x0;continue;}const _0x5ed96a=_0x3b7303['get'](_0x22c934[_0x13ac19]['pairId']),_0x281e00=_0x3b7303['get'](_0x22c934[_0x13ac19]['id']);_0x22c934[_0x13ac19]['distance']=_0x5ed96a-_0x281e00;}}['_getRevisionsRange'](_0xec38df,_0xef3e14,_0x573aa2=!0x1){const _0x23da19=[];let _0x268713=this['repository']['getIndex'](_0xec38df),_0x4c43a4=this['repository']['getIndex'](_0xef3e14);for(-0x1==_0x4c43a4&&(_0x4c43a4=this['repository']['_revisions']['length'],_0x573aa2=!0x1);_0x268713<_0x4c43a4;)_0x23da19['push'](this['repository']['getRevision'](_0x268713)),_0x268713++;return _0x573aa2&&_0x23da19['push'](this['repository']['getRevision'](_0x268713)),_0x23da19;}['_threeWayMerge'](_0x4a4c80,_0x3ed298,_0x3b5f90,_0x3856f2){const _0x176918=this['editor']['model']['schema'];let _0x733f36=_0x3ed298;for(;_0x4a4c80[_0x733f36]&&_0x4a4c80[_0x733f36]['isAdded'];)_0x733f36++;let _0x40fc9d=_0x3856f2;for(;_0x3b5f90[_0x40fc9d]&&_0x3b5f90[_0x40fc9d]['isRemoved'];)_0x40fc9d++;_0x426608(_0x4a4c80,_0x3ed298,_0x733f36),_0x426608(_0x3b5f90,_0x3856f2,_0x40fc9d);const _0x8412dc=_0x3b5f90['slice'](_0x3856f2,_0x40fc9d)['concat'](_0x4a4c80['slice'](_0x3ed298,_0x733f36));return _0x8412dc['sort']((_0x955631,_0x495b0a)=>_0x955631['side']!=_0x495b0a['side']?_0x955631['side']-_0x495b0a['side']:_0x955631['level']!=_0x495b0a['level']?_0x955631['level']-_0x495b0a['level']:_0x955631['distance']!=_0x495b0a['distance']?_0x495b0a['distance']-_0x955631['distance']:!!_0x955631['isAdded']!=!!_0x495b0a['isAdded']?-0x1==_0x955631['side']||0x0==_0x955631['side']?_0x955631['isAdded']?-0x1:0x1:_0x955631['isAdded']?0x1:-0x1:_0x955631['index']-_0x495b0a['index']),{'commonTape':_0x8412dc,'iEnd':_0x733f36,'jEnd':_0x40fc9d};function _0x426608(_0xea123c,_0x4ae734,_0x1abcca){let _0x643e2a=-0x1,_0x2d1a90=Number['POSITIVE_INFINITY'],_0x1cb6ca=!0x0;for(let _0xef3bd=_0x4ae734;_0xef3bd<_0x1abcca;_0xef3bd++)if(_0x176918['isInline'](_0xea123c[_0xef3bd]['item'])||(_0x1cb6ca=!0x1),_0xea123c[_0xef3bd]['item']['startIndex']<_0x4ae734&&(_0x643e2a=_0xef3bd),_0xea123c[_0xef3bd]['item']['endIndex']>=_0x1abcca){_0x2d1a90=_0xef3bd;break;}_0x1cb6ca&&(_0x643e2a=_0x1abcca-0x1);for(let _0x12d47f=_0x4ae734;_0x12d47f<_0x1abcca;_0x12d47f++)_0xea123c[_0x12d47f]['side']=_0x12d47f<=_0x643e2a?-0x1:_0x12d47f<_0x2d1a90?0x0:0x1,_0xea123c[_0x12d47f]['index']=_0x12d47f;let _0x42a2b1=0x0;for(let _0x1fef48=_0x4ae734;_0x1fef48<=_0x643e2a;_0x1fef48++)0x0==_0xea123c[_0x1fef48]['distance']?_0xea123c[_0x1fef48]['level']=_0x42a2b1:(_0x42a2b1++,_0xea123c[_0x1fef48]['level']=_0x42a2b1,_0x42a2b1++);for(let _0x2dd55d=_0x4ae734;_0x2dd55d<_0x1abcca;_0x2dd55d++)0x0==_0xea123c[_0x2dd55d]['side']&&(_0xea123c[_0x2dd55d]['level']=_0x42a2b1);_0x42a2b1=0x0;for(let _0x5bcd4c=_0x1abcca-0x1;_0x5bcd4c>=_0x2d1a90;_0x5bcd4c--)0x0==_0xea123c[_0x5bcd4c]['distance']?_0xea123c[_0x5bcd4c]['level']=_0x42a2b1:(_0x42a2b1--,_0xea123c[_0x5bcd4c]['level']=_0x42a2b1,_0x42a2b1--);}}['_fixObsoleteTags'](_0x2e32df){const _0x140ae4=new Map(),_0x230a33=this['editor']['model']['schema'];for(let _0x4f3be2=0x1;_0x4f3be2<_0x2e32df['length'];_0x4f3be2++){let _0x2a5e75,_0x2b2c9b,_0x51c937;const _0x303cc4=_0x2e32df[_0x4f3be2],_0x18c432=_0x2e32df[_0x4f3be2-0x1];if('text'==_0x303cc4['type'])continue;if(_0x303cc4['type']!=_0x18c432['type'])continue;if(!_0x230a33['isBlock'](_0x18c432['item'])||_0x230a33['isLimit'](_0x18c432['item']))continue;if(!_0x230a33['isBlock'](_0x303cc4['item'])||_0x230a33['isLimit'](_0x303cc4['item']))continue;if((_0x2e32df[_0x4f3be2]['isAdded']||_0x2e32df[_0x4f3be2]['isAddSuggestion'])&&_0x2e32df[_0x4f3be2-0x1]['isRemoved'])_0x2a5e75=_0x2e32df[_0x4f3be2],_0x2b2c9b=_0x2e32df[_0x4f3be2-0x1],_0x51c937=_0x4f3be2-0x1;else{if(!_0x2e32df[_0x4f3be2]['isRemoved']||!_0x2e32df[_0x4f3be2-0x1]['isAdded']&&!_0x2e32df[_0x4f3be2-0x1]['isAddSuggestion'])continue;_0x2a5e75=_0x2e32df[_0x4f3be2-0x1],_0x2b2c9b=_0x2e32df[_0x4f3be2],_0x51c937=_0x4f3be2;}const _0x5b2007=_0x2a5e75['level']==_0x2b2c9b['level'],_0x41b127=Math['abs'](_0x2a5e75['level'])<Math['abs'](_0x2b2c9b['level'])&&0x0==_0x2b2c9b['distance'];(_0x5b2007||_0x41b127)&&(_0x140ae4['set'](_0x2b2c9b['id'],_0x2a5e75['id']),_0x2e32df['splice'](_0x51c937,0x1),_0x4f3be2--,_0x2a5e75['isAdded']=!0x1);}for(let _0x54b33d=0x0;_0x54b33d<_0x2e32df['length'];_0x54b33d++)_0x140ae4['has'](_0x2e32df[_0x54b33d]['pairId'])&&(_0x2e32df[_0x54b33d]['pairId']=_0x140ae4['get'](_0x2e32df[_0x54b33d]['pairId']));}['_removeMissingPairs'](_0x272fca){const _0x4d30fe=new Set(_0x272fca['map'](_0x3068b2=>_0x3068b2['id']));for(let _0x1e6f04=0x0;_0x1e6f04<_0x272fca['length'];_0x1e6f04++)_0x4d30fe['has'](_0x272fca[_0x1e6f04]['pairId'])||0x0==_0x272fca[_0x1e6f04]['distance']||(_0x272fca[_0x1e6f04]['isIncorrect']=!0x0);return _0x272fca['filter'](_0x1a445a=>!_0x1a445a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3e3279){const _0x412766=new Set();for(let _0x3a6189=0x0;_0x3a6189<_0x3e3279['length'];_0x3a6189++){if(_0x412766['has'](_0x3e3279[_0x3a6189]['id'])&&_0x3e3279[_0x3a6189]['isRemoved']&&(_0x3e3279[_0x3a6189]['isIncorrect']=!0x0),_0x3e3279[_0x3a6189]['isIncorrect'])continue;if(0x0==_0x3e3279[_0x3a6189]['distance'])continue;if('elementStart'!=_0x3e3279[_0x3a6189]['type'])continue;if(null==_0x3e3279[_0x3a6189]['pairId'])continue;let _0x387370=_0x3a6189+0x1,_0x39fb76=0x0;for(;_0x3e3279[_0x387370]['id']!=_0x3e3279[_0x3a6189]['pairId'];)'elementStart'==_0x3e3279[_0x387370]['type']?_0x39fb76++:'elementEnd'==_0x3e3279[_0x387370]['type']&&_0x39fb76--,_0x387370++;if(0x0!=_0x39fb76){if(_0x3e3279[_0x3a6189]['isRemoved'])_0x3e3279[_0x3a6189]['isIncorrect']=!0x0;else{for(;_0x387370!=_0x3a6189;)_0x3e3279[_0x387370]['isRemoved']&&0x0!=_0x3e3279[_0x387370]['distance']&&(_0x3e3279[_0x387370]['isIncorrect']=!0x0,_0x412766['add'](_0x3e3279[_0x387370]['pairId'])),_0x387370--;}}}return _0x3e3279['filter'](_0x2889e8=>!_0x2889e8['isIncorrect']);}['_removeUnsupportedChanges'](_0x4c28b4){const _0x15edd5=this['editor']['model']['schema'];for(let _0x11ecde=0x0;_0x11ecde<_0x4c28b4['length'];_0x11ecde++){if(!(_0x4c28b4[_0x11ecde]['isAdded']||_0x4c28b4[_0x11ecde]['isAddSuggestion']||_0x4c28b4[_0x11ecde]['isRemoved']||_0x4c28b4[_0x11ecde]['isRemoveSuggestion']))continue;if(0x0==_0x4c28b4[_0x11ecde]['distance'])continue;const _0x4a5920=_0x4c28b4[_0x11ecde]['item'];_0x15edd5['isBlock'](_0x4a5920)||_0x15edd5['isLimit'](_0x4a5920)||(_0x4c28b4[_0x11ecde]['isAdded']&&delete _0x4c28b4[_0x11ecde]['isAdded'],_0x4c28b4[_0x11ecde]['isAddSuggestion']&&delete _0x4c28b4[_0x11ecde]['isAddSuggestion'],_0x4c28b4[_0x11ecde]['isRemoveSuggestion']&&delete _0x4c28b4[_0x11ecde]['isRemoveSuggestion'],_0x4c28b4[_0x11ecde]['isRemoved']&&(_0x4c28b4[_0x11ecde]['isIncorrect']=!0x0));}return _0x4c28b4['filter'](_0x2c35b4=>!_0x2c35b4['isIncorrect']);}['_makeModelFromTape'](_0x61893,_0x48bd1c,_0x51cccd){const _0x142f1a=new gt(),_0x241ab9=[],_0x4d724b=new Map(),_0x341c51=this['editor']['model'],_0x1c7bde=_0x341c51['schema'],_0x14d376=[_0x142f1a],_0x48f34c={},_0x118f0d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e0757=null;const _0x156f90=[0x0];for(let _0xf0407c=0x0;_0xf0407c<_0x61893['length'];_0xf0407c++)if('elementStart'===_0x61893[_0xf0407c]['type']){_0x61893[_0xf0407c]['previousPosition']=_0x341c51['createPositionFromPath'](_0x142f1a,_0x156f90);const _0x261e10=new ut(_0x61893[_0xf0407c]['item']['name'],_0x61893[_0xf0407c]['item']['getAttributes']());_0x14d376[0x0]['_appendChild'](_0x261e10),_0x156f90['push'](0x0),_0x14d376['unshift'](_0x261e10),_0x61893[_0xf0407c]['nextPosition']=_0x341c51['createPositionFromPath'](_0x142f1a,_0x156f90);}else'elementEnd'===_0x61893[_0xf0407c]['type']?(_0x14d376['shift'](),_0x61893[_0xf0407c]['previousPosition']=_0x341c51['createPositionFromPath'](_0x142f1a,_0x156f90),_0x156f90['pop'](),_0x156f90[_0x156f90['length']-0x1]++,_0x61893[_0xf0407c]['nextPosition']=_0x341c51['createPositionFromPath'](_0x142f1a,_0x156f90)):(_0x61893[_0xf0407c]['previousPosition']=_0x341c51['createPositionFromPath'](_0x142f1a,_0x156f90),_0x5e0757?_0x5e0757['_data']+=_0x61893[_0xf0407c]['item']['data']:_0x5e0757=new mt(_0x61893[_0xf0407c]['item']['data'],_0x61893[_0xf0407c]['item']['getAttributes']()),_0x61893[_0xf0407c+0x1]&&'text'===_0x61893[_0xf0407c+0x1]['type']&&_0x43b119(_0x5e0757,_0x61893[_0xf0407c+0x1]['item'])||(_0x14d376[0x0]['_appendChild'](_0x5e0757),_0x5e0757=null),_0x156f90[_0x156f90['length']-0x1]+=_0x61893[_0xf0407c]['item']['offsetSize'],_0x61893[_0xf0407c]['nextPosition']=_0x341c51['createPositionFromPath'](_0x142f1a,_0x156f90));for(let _0x571647=0x0;_0x571647<_0x61893['length'];_0x571647++){const _0x530fb0=_0x61893[_0x571647]['previousPosition'],_0x54b3d4=_0x61893[_0x571647]['nextPosition'];for(const _0x11028d of _0x61893[_0x571647]['markersStart'])_0x4d724b['set'](_0x11028d,{'start':_0x530fb0,'end':null});_0xa96084('isRemoveSuggestion',_0x571647,_0x530fb0,_0x54b3d4),_0xa96084('isAddSuggestion',_0x571647,_0x530fb0,_0x54b3d4),_0xa96084('isRemoved',_0x571647,_0x530fb0,_0x54b3d4),_0xa96084('isAdded',_0x571647,_0x530fb0,_0x54b3d4);for(const _0x1bf7e1 of _0x61893[_0x571647]['markersEnd']){const _0x1e7f69=_0x4d724b['get'](_0x1bf7e1);_0x1e7f69?_0x1e7f69['end']=_0x54b3d4:_0x4d724b['set'](_0x1bf7e1,{'start':_0x54b3d4,'end':_0x54b3d4});}}for(const [_0x72e59b,_0x20619b]of _0x4d724b){const _0x3de91a=this['editor']['model']['createRange'](_0x20619b['start'],_0x20619b['end']);_0x142f1a['markers']['set'](_0x72e59b,_0x3de91a);}return _0x241ab9['sort']((_0x3d1f88,_0xad00b1)=>{const _0x45141f=_0x142f1a['markers']['get']('revision:'+_0x3d1f88['id']),_0x5b900f=_0x142f1a['markers']['get']('revision:'+_0xad00b1['id']);return _0x45141f['start']['isBefore'](_0x5b900f['start'])?-0x1:_0x45141f['start']['isAfter'](_0x5b900f['start'])?0x1:_0x45141f['end']['isBefore'](_0x5b900f['end'])?-0x1:_0x45141f['end']['isAfter'](_0x5b900f['end'])?0x1:'add'===_0x3d1f88['type']?-0x1:0x1;}),{'root':_0x142f1a,'changes':_0x241ab9};function _0xa96084(_0x208ea7,_0xd8c146,_0x33e8ac,_0x54f5eb){const _0x47a557=!!_0x61893[_0xd8c146][_0x208ea7],_0x4fe4df=_0x47a557?_0x61893[_0xd8c146][_0x208ea7]['userId']:null,_0x19a6b2=_0xd8c146===_0x61893['length']-0x1,_0x34c460=_0x118f0d[_0x208ea7][0x0],_0x129b24=_0x1c7bde['isObject'](_0x61893[_0xd8c146]['item']);!_0x48f34c[_0x208ea7]&&_0x47a557?_0x48f34c[_0x208ea7]={'start':_0x33e8ac,'tapeItem':_0x61893[_0xd8c146],'userId':_0x4fe4df,'type':_0x208ea7}:_0x48f34c[_0x208ea7]&&!_0x47a557?(_0x48f34c[_0x208ea7]['end']=_0x33e8ac,_0x20ca9b(_0x48f34c[_0x208ea7]),_0x48f34c[_0x208ea7]=null):_0x48f34c[_0x208ea7]&&_0x47a557&&_0x48f34c[_0x208ea7]['userId']!==_0x4fe4df&&(_0x48f34c[_0x208ea7]['end']=_0x33e8ac,_0x34c460&&_0x34c460['userId']===_0x48f34c[_0x208ea7]['userId']||_0x20ca9b(_0x48f34c[_0x208ea7]),_0x48f34c[_0x208ea7]={'start':_0x33e8ac,'tapeItem':_0x61893[_0xd8c146],'userId':_0x4fe4df,'type':_0x208ea7}),_0x48f34c[_0x208ea7]&&_0x129b24&&('elementStart'!==_0x61893[_0xd8c146]['type']||_0x34c460&&_0x34c460['userId']===_0x4fe4df||_0x118f0d[_0x208ea7]['unshift']({'userId':_0x4fe4df,'object':_0x61893[_0xd8c146]['item'],'change':_0x48f34c[_0x208ea7]}),'elementEnd'===_0x61893[_0xd8c146]['type']&&_0x34c460&&_0x34c460['object']===_0x61893[_0xd8c146]['item']&&(_0x118f0d[_0x208ea7]['shift'](),_0x48f34c[_0x208ea7]=_0x34c460['change'])),_0x48f34c[_0x208ea7]&&_0x19a6b2&&(_0x48f34c[_0x208ea7]['end']=_0x54f5eb,_0x20ca9b(_0x48f34c[_0x208ea7]),_0x48f34c[_0x208ea7]=null);}function _0x20ca9b({start:_0x1ec646,end:_0x59940b,tapeItem:_0x4928fc,userId:_0x48a722,type:_0x33d86c}){const _0x5d3d41=_0x4928fc['item'],_0x57e079=_0x341c51['schema']['isBlock'](_0x5d3d41)&&!_0x341c51['schema']['isLimit'](_0x5d3d41),_0x227f6b=_0x1ec646['nodeAfter']==_0x59940b['parent']&&_0x59940b['isAtStart'];if(_0x57e079&&_0x227f6b)return;const _0x5a5015=_0x341c51['createRange'](_0x1ec646,_0x59940b),_0x5a83f6=_0x48bd1c['get'](_0x48a722),_0x5dcd64=new r({'author':_0x5a83f6,'type':'isAdded'==_0x33d86c||'isAddSuggestion'==_0x33d86c?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33d86c||'isRemoveSuggestion'==_0x33d86c},'createdAt':new Date(),'rootName':_0x51cccd});_0x241ab9['push'](_0x5dcd64),_0x142f1a['markers']['set']('revision:'+_0x5dcd64['id'],_0x5a5015);}function _0x43b119(_0x5d494a,_0x20d08d){const _0x279751=_0x5d494a['getAttributes'](),_0x3a47e5=_0x20d08d['getAttributes']();for(const _0x1793e1 of _0x279751){if(_0x1793e1[0x1]!==_0x20d08d['getAttribute'](_0x1793e1[0x0]))return!0x1;_0x3a47e5['next']();}return _0x3a47e5['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x53c450=>{const _0x598fd4=_0x53c450['markerName']['split'](':')[0x1],_0x391441=this['_getChangeFromId'](_0x598fd4);if(!_0x391441)return null;const _0x5d714e='add'==_0x391441['type']?'insertion':'deletion',_0x261f3a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5d714e];return _0x391441['data']['isSuggestion']&&_0x261f3a['push']('ck-suggestion-marker-'+_0x5d714e+'-new'),this['activeChange']==_0x391441&&_0x261f3a['push']('ck-suggestion-marker--active'),{'classes':_0x261f3a,'attributes':{'data-change-id':_0x598fd4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4afa20=>{_0x4afa20['on']('element:pre',(_0x3e9545,_0x29bec9,_0x1d8e47)=>{const _0x2349ef=_0x29bec9['viewItem']['getChild'](0x0);if(!_0x2349ef||!_0x2349ef['is']('element','code'))return;if(!_0x1d8e47['consumable']['consume'](_0x2349ef,{'attributes':['vid_start','vid_end']}))return;const _0x53c4ae=_0x29bec9['modelRange']['start']['nodeAfter'];_0x1d8e47['writer']['setAttribute']('vid_start',_0x2349ef['getAttribute']('vid_start'),_0x53c4ae),_0x1d8e47['writer']['setAttribute']('vid_end',_0x2349ef['getAttribute']('vid_end'),_0x53c4ae);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x291bb9=>{_0x291bb9['on']('element',(_0x1435fc,_0x5e8018,_0x1f084e)=>{if(!_0x1f084e['consumable']['consume'](_0x5e8018['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5e8018['modelRange']['isCollapsed'])return;const _0x4ab4d7=_0x5e8018['modelRange']['start']['nodeAfter'];_0x4ab4d7['hasAttribute']('vid_start')||_0x4ab4d7['hasAttribute']('vid')||(_0x1f084e['writer']['setAttribute']('vid_start',_0x5e8018['viewItem']['getAttribute']('vid_start'),_0x4ab4d7),_0x1f084e['writer']['setAttribute']('vid_end',_0x5e8018['viewItem']['getAttribute']('vid_end'),_0x4ab4d7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x203828=>_0x203828['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2af635,[,_0x1c07d9])=>{['vid_start','vid_end','vid']['includes'](_0x1c07d9)&&(_0x2af635['return']=!0x0,_0x2af635['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3267a1=>{_0x3267a1['on']('attribute:vid',(_0x231d22,_0x378db1,_0x313501)=>{if('\x20'!=_0x378db1['item']['data']||_0x378db1['item']['parent']['maxOffset']>0x1)return;if(!_0x313501['consumable']['consume'](_0x378db1['item'],_0x231d22['name']))return;const _0x5047bc=_0x313501['writer'],_0x5ec11b=_0x313501['mapper']['toViewRange'](_0x378db1['range']);_0x5047bc['wrap'](_0x5ec11b,_0x5047bc['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4e119a){const _0x19c2a8=_0x4e119a['plugins']['get']('RevisionViewer');return(_0x4fc0a2,_0x54c8e5,_0x19bee9)=>{const _0x592018=_0x54c8e5['markerName']['split'](':')[0x1],_0x191a7c=_0x19c2a8['_getChangeFromId'](_0x592018);if(!_0x191a7c)return null;const _0x192859='add'==_0x191a7c['type']?'split':'merge';if(!_0x19bee9['consumable']['test'](_0x54c8e5['markerRange'],_0x4fc0a2['name']))return;const _0x5d7a8e=_0x54c8e5['markerRange']['getWalker'](),_0x347234=_0x54c8e5['markerRange']['start'],_0x22fcfe=_0x4e119a['model']['schema'];let _0x4d3939=null,_0x46969f=null,_0x522132=!0x1,_0x28c4a3=!0x1;for(const _0xe39db8 of _0x5d7a8e){const _0x3c300d=_0xe39db8['item'];_0x522132=_0x522132||_0x22fcfe['isContent'](_0x3c300d);const _0x3ddd6e=_0x19bee9['mapper']['toViewElement'](_0x3c300d);if(_0x3ddd6e&&_0x3ddd6e['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xe39db8['type']&&(_0x22fcfe['isBlock'](_0x3c300d)&&!_0x22fcfe['isLimit'](_0x3c300d)&&(_0x3c300d['nextSibling']||_0x347234['isAtEnd']?_0x4d3939&&_0x4d3939['parent']==_0x3c300d||(_0x4d3939=_0x3c300d,_0x507b43(_0xe39db8['previousPosition']),_0x28c4a3=!0x0):_0x46969f=_0x46969f||_0xe39db8['previousPosition']));}function _0x507b43(_0x6e2b9c){const _0x4eba9d=_0x19bee9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x192859}),_0x45baf2=_0x19bee9['mapper']['toViewPosition'](_0x6e2b9c);_0x191a7c['data']['isSuggestion']&&_0x19bee9['writer']['addClass']('ck-suggestion-marker-'+_0x192859+'-new',_0x4eba9d),_0x19c2a8['activeChange']==_0x191a7c&&_0x19bee9['writer']['addClass']('ck-suggestion-marker--active',_0x4eba9d),_0x19bee9['writer']['insert'](_0x45baf2,_0x4eba9d),_0x19bee9['mapper']['bindElementToMarker'](_0x4eba9d,_0x54c8e5['markerName']);}_0x522132||_0x28c4a3||!_0x46969f||_0x507b43(_0x46969f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2e796d,_0x34c018,_0x5450f7)=>{const _0x4a3020=_0x5450f7['mapper']['markerNameToElements'](_0x34c018['markerName']);if(_0x4a3020){for(const _0x3e9ac4 of _0x4a3020)(_0x3e9ac4['hasClass']('ck-suggestion-marker-split')||_0x3e9ac4['hasClass']('ck-suggestion-marker-merge'))&&(_0x5450f7['mapper']['unbindElementFromMarkerName'](_0x3e9ac4,_0x34c018['markerName']),_0x5450f7['writer']['remove'](_0x3e9ac4));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x5c54ec,_0x58242c,_0x4c1117)=>{const _0xc084b=_0x58242c['markerName']['split'](':')[0x1],_0x3e79a4=this['_getChangeFromId'](_0xc084b);if(!_0x3e79a4)return null;const _0x47fed2='add'==_0x3e79a4['type']?'split':'merge';if(_0x4c1117['consumable']['test'](_0x58242c['markerRange'],_0x5c54ec['name']))for(const _0x17cbf2 of _0x58242c['markerRange']['getItems']()){if(!_0x17cbf2['is']('element','softBreak'))continue;const _0x2a5c74=_0x4c1117['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x47fed2}),_0x14b430=_0x4c1117['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x17cbf2));_0x3e79a4['data']['isSuggestion']&&_0x4c1117['writer']['addClass']('ck-suggestion-marker-'+_0x47fed2+'-new',_0x2a5c74),this['activeChange']==_0x3e79a4&&_0x4c1117['writer']['addClass']('ck-suggestion-marker--active',_0x2a5c74),_0x4c1117['writer']['insert'](_0x14b430,_0x2a5c74),_0x4c1117['mapper']['bindElementToMarker'](_0x2a5c74,_0x58242c['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x16b3e0=>{for(const _0x42a03b of this['editor']['model']['document']['getRootNames']()){const _0x399592=this['editor']['model']['document']['getRoot'](_0x42a03b),_0x27a371=this['editor']['editing']['view']['document']['getRoot'](_0x42a03b);if(_0x27a371){const _0x4f98bf=_0x399592['getAttribute']('revisionHistoryAttachChange');if(_0x16b3e0['removeAttribute']('data-change-id',_0x27a371),_0x16b3e0['removeClass']('ck-revision-history-root-add',_0x27a371),_0x16b3e0['removeClass']('ck-revision-history-root-remove',_0x27a371),_0x16b3e0['removeClass']('ck-revision-history-root--active',_0x27a371),_0x4f98bf){const _0x3895b2=this['_getChangeFromId'](_0x4f98bf);if(!_0x3895b2)return null;_0x16b3e0['setAttribute']('data-change-id',_0x4f98bf,_0x27a371),_0x16b3e0['addClass']('ck-revision-history-root-'+_0x3895b2['type'],_0x27a371),this['activeChange']==_0x3895b2&&_0x16b3e0['addClass']('ck-revision-history-root--active',_0x27a371);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x61ebe0=>'revision-comment:'+_0x61ebe0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5d4303=>'revision-suggestion:'+_0x5d4303,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1f58ec=>({'name':'suggestion:'+_0x1f58ec,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x420d85=>{const _0xc77b2e=_0x420d85['markerName']['split'](':')[0x1];return'insertion'!=_0xc77b2e&&'deletion'!=_0xc77b2e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xc77b2e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x54dfcc,_0x5c04cb,_0x419ef3)=>{const _0x2e2441=_0x419ef3['mapper']['markerNameToElements'](_0x5c04cb['markerName']);if(_0x2e2441){for(const _0x407d46 of _0x2e2441)_0x407d46['is']('uiElement')&&(_0x419ef3['mapper']['unbindElementFromMarkerName'](_0x407d46,_0x5c04cb['markerName']),_0x419ef3['writer']['remove'](_0x407d46));}},{'priority':'high'});}['_getChangeFromId'](_0x2da5db){return this['_changeIdToChange']['get'](_0x2da5db);}['_getViewForChange'](_0x370902){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x370902),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x17b809,_0x4bf00c,_0x418b96,_0x525d26)=>{_0x525d26&&this['_balloon']['remove'](_0x525d26),_0x418b96&&(this['_balloon']['add']({'view':_0x418b96,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2cf986=this['editor']['editing'],_0x1c187a=this['_getChangeFromId'](_0x418b96['changeId']);let _0xb22627;if(_0x1c187a['data']['isOnRoot']){const _0x3824ed=_0x2cf986['view']['getDomRoot'](_0x1c187a['rootName']);_0xb22627=Array['from'](_0x3824ed['getClientRects']());}else{const _0x22f442=this['editor']['model']['markers']['get']('revision:'+_0x418b96['changeId']);_0xb22627=Array['from'](_0x2cf986['mapper']['markerNameToElements'](_0x22f442['name']))['map'](_0x5327e8=>_0x2cf986['view']['domConverter']['mapViewToDom'](_0x5327e8))['map'](_0x308a51=>Array['from'](_0x308a51['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xb22627[0x0];return _0xb22627['find'](_0x259b73=>_0x259b73['top']-0x3<=this['_activeViewTarget']['y']&&_0x259b73['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x259b73['left']-0x3<=this['_activeViewTarget']['x']&&_0x259b73['right']+0x3>=this['_activeViewTarget']['x'])||_0xb22627[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x26e07d,_0x498d7f,_0x16b3fe,_0x55a13c)=>{this['activeView']=_0x16b3fe?this['_getViewForChange'](_0x16b3fe):null,this['editor']['model']['change'](()=>{const _0x11864a=this['editor']['editing'];_0x55a13c&&(_0x55a13c['data']['isOnRoot']?_0x11864a['view']['change'](_0x4a099d=>{_0x4a099d['removeClass']('ck-revision-history-root--active',_0x11864a['view']['document']['getRoot'](_0x55a13c['rootName']));}):_0x11864a['reconvertMarker']('revision:'+_0x55a13c['id'])),_0x16b3fe&&(_0x16b3fe['data']['isOnRoot']?_0x11864a['view']['change'](_0x5b4730=>{_0x5b4730['addClass']('ck-revision-history-root--active',_0x11864a['view']['document']['getRoot'](_0x16b3fe['rootName']));}):_0x11864a['reconvertMarker']('revision:'+_0x16b3fe['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x387a4d,_0x470e7a)=>{if(this['activeChange'])return;const _0x98be43=this['_findChangeIdFromDomTarget'](_0x470e7a['target']),_0xdbad7=this['_changeIdToChange']['get'](_0x98be43);_0xdbad7?(this['_activeViewTarget']={'x':_0x470e7a['domEvent']['x'],'y':_0x470e7a['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xdbad7)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5b3ec7,_0x1cd787)=>{const _0x4618c4=this['_findChangeIdFromDomTarget'](_0x1cd787['target']),_0x258afe=this['_changeIdToChange']['get'](_0x4618c4);_0x258afe?(this['_activeViewTarget']={'x':_0x1cd787['domEvent']['x'],'y':_0x1cd787['domEvent']['y']},_0x258afe===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x258afe):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2ddd5d){do{const _0x34a440=_0x2ddd5d['getAttribute']('data-change-id');if(_0x34a440)return _0x34a440;_0x2ddd5d=_0x2ddd5d['parent'];}while(_0x2ddd5d);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3c21f7=>{for(const _0x323838 of this['editor']['model']['markers'])_0x3c21f7['removeMarker'](_0x323838);});}}function X(_0x285ac6,_0xb165a6){return(_0x37ceca,_0x32d911,_0x1ca269)=>{if(!_0x1ca269['consumable']['test'](_0x32d911['markerRange'],_0x37ceca['name']))return;const _0x1dd87c=_0x32d911['markerRange']['getWalker'](),_0x3ebc36=_0x32d911['markerRange']['start'],_0x51a7b0=_0x285ac6['model']['schema'];let _0x6d6501=null,_0x1999c5=null,_0x1ed8d8=!0x1,_0x45a6dd=!0x1;for(const _0x57a00f of _0x1dd87c){const _0x3313a1=_0x57a00f['item'];_0x1ed8d8=_0x1ed8d8||_0x51a7b0['isContent'](_0x3313a1);const _0x63f89=_0x1ca269['mapper']['toViewElement'](_0x3313a1);if(_0x63f89&&_0x63f89['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x57a00f['type']&&(_0x51a7b0['isBlock'](_0x3313a1)&&!_0x51a7b0['isLimit'](_0x3313a1)&&(_0x3313a1['nextSibling']||_0x3ebc36['isAtEnd']?_0x6d6501&&_0x6d6501['parent']==_0x3313a1||(_0x6d6501=_0x3313a1,_0x196cec(_0x57a00f['previousPosition']),_0x45a6dd=!0x0):_0x1999c5=_0x1999c5||_0x57a00f['previousPosition']));}function _0x196cec(_0x3afa7e){const _0x373942=_0x1ca269['mapper']['toViewPosition'](_0x3afa7e),_0x6aff15=_0x1ca269['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xb165a6});_0x1ca269['writer']['insert'](_0x373942,_0x6aff15),_0x1ca269['mapper']['bindElementToMarker'](_0x6aff15,_0x32d911['markerName']);}_0x1ed8d8||_0x45a6dd||!_0x1999c5||_0x196cec(_0x1999c5);};}class wt extends _0x1a0f7e{constructor(_0x295d25){super(_0x295d25);const _0x9be026=_0x295d25['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x9be026,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x9be026,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5dfa54=this['editor'],_0xffd0a5=_0x5dfa54['plugins']['get'](m),_0x18ca75=_0xffd0a5['isReady']?_0xffd0a5['diff']['newRevisionId']:null;_0x5dfa54['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x18ca75);}['refresh'](){const {isReady:_0x133b4c,isEnabled:_0x17daab,repository:_0xe3b3,diff:_0x59ddb2}=this['editor']['plugins']['get'](m),_0x3fd761=_0x59ddb2&&_0xe3b3['getLaterVisibleRevision'](_0x59ddb2['newRevisionId']);this['isEnabled']=_0x133b4c&&_0x17daab&&Boolean(_0x3fd761);}}class pt extends _0x1a0f7e{['_step'];constructor(_0x2961a3,{direction:_0x590d60}){super(_0x2961a3);const _0x332972=_0x2961a3['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x590d60?0x1:-0x1,this['listenTo'](_0x332972,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x332972,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x332972,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x499e24=this['editor'],_0x390d4a=_0x499e24['plugins']['get'](m),{isNavigationMode:_0x484d65,currentChangeNumber:_0x51d2e1}=_0x390d4a;let _0x200f72;if(_0x390d4a['activeChange']=_0x484d65?_0x390d4a['diff']['changes']['get'](_0x51d2e1+this['_step']):_0x390d4a['diff']['changes']['first'],_0x390d4a['activeChange']['data']['isOnRoot'])_0x200f72=_0x499e24['editing']['view']['getDomRoot'](_0x390d4a['activeChange']['rootName']);else{const _0x17ac38=_0x499e24['model']['markers']['get']('revision:'+_0x390d4a['activeChange']['id']);_0x200f72=_0x29a042(_0x499e24['editing'],_0x17ac38);}_0x4109b3({'target':_0x200f72,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d471e,currentChangeNumber:_0x32a4e7,numberOfChanges:_0x19c1ca,isReady:_0x190774,isEnabled:_0x20bd1e}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x20bd1e&&_0x190774&&_0x19c1ca)&&(!_0x2d471e||(0x1===this['_step']?_0x32a4e7<_0x19c1ca-0x1:_0x32a4e7>0x0));}}class _i extends _0x5d268e{constructor(_0x45274f){super(_0x45274f);const _0x4a62f7=this['bindTemplate'],_0x29f0ae=new _0x6881f6(_0x45274f),_0x295fc3=new _0x6881f6(_0x45274f);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',(_0x2f2608,_0x503353)=>_0x2f2608&&_0x503353>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x2bec9e,_0x3e1b71,_0xb11a99,_0x5a9c8d)=>{if(!_0x2bec9e)return g(_0x45274f,'Loading...');if(!_0xb11a99)return g(_0x45274f,'No\x20changes');const _0x1a80ed=g(_0x45274f,'NUMBER_OF_CHANGES',_0xb11a99);return _0x5a9c8d?g(_0x45274f,'X_OF_Y_CHANGES',[_0x3e1b71+0x1,_0xb11a99]):_0x1a80ed;}),_0x29f0ae['set']({'label':g(_0x45274f,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x3aef2f}),_0x295fc3['set']({'label':g(_0x45274f,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x955541}),_0x29f0ae['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x295fc3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x29f0ae['on']('execute',()=>this['fire']('execute','backward')),_0x295fc3['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',_0x4a62f7['if']('_isStatusLabelVisible','ck-hidden',_0x4b206a=>!_0x4b206a)]},'children':[{'text':_0x4a62f7['to']('isNavigationMode',_0x2dd33d=>_0x2dd33d?g(_0x45274f,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x45274f,'Total')+':\x20')}]},{'text':_0x4a62f7['to']('_statusText')}]},new _0x1d487d(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x29f0ae,_0x295fc3]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x321c34{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3038c9=this['editor']['editing']['view'];_0x3038c9['change'](_0x40eeea=>{for(const _0x198675 of _0x3038c9['document']['roots'])_0x40eeea['addClass'](ce,_0x198675);});}['hide'](){const _0x3212b6=this['editor']['editing']['view'];_0x3212b6['change'](_0x46c322=>{for(const _0x21c008 of _0x3212b6['document']['roots'])_0x46c322['removeClass'](ce,_0x21c008);});}}class R extends _0x321c34{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x717f7b=this['editor'],_0x525b75=_0x717f7b['plugins']['get'](m),_0xc4ae6b=_0x717f7b['plugins']['get'](le);_0x717f7b['ui']['componentFactory']['add']('exitToEditing',_0x194529=>{const _0x4ac97c=new _0x6881f6(_0x194529);return _0x4ac97c['set']({'label':g(_0x194529,'Back\x20to\x20editing'),'icon':_0x336b9c,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4ac97c,'execute',()=>{_0x717f7b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4ac97c;}),_0x717f7b['ui']['componentFactory']['add']('restoreRevision',_0x198e26=>{const _0x1c70ec=new _0x6881f6(_0x198e26);return _0x1c70ec['set']({'label':g(_0x198e26,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1c70ec['bind']('isEnabled')['to'](_0x717f7b['commands']['get']('restoreRevision')),this['listenTo'](_0x1c70ec,'execute',()=>_0x717f7b['execute']('restoreRevision')),_0x1c70ec;}),_0x717f7b['ui']['componentFactory']['add']('changesNavigation',_0x3dd277=>{const _0x25a4a7=new _i(_0x3dd277),_0x5334ce=_0x717f7b['commands']['get']('showPreviousChange'),_0x16dac9=_0x717f7b['commands']['get']('showNextChange');return _0x25a4a7['bind']('isBackwardNavigationEnabled')['to'](_0x5334ce,'isEnabled'),_0x25a4a7['bind']('isForwardNavigationEnabled')['to'](_0x16dac9,'isEnabled'),_0x25a4a7['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x525b75),this['listenTo'](_0x25a4a7,'execute',(_0x1cc19b,_0x283549)=>{_0x717f7b['execute']('forward'===_0x283549?'showNextChange':'showPreviousChange');}),_0x25a4a7;}),_0xc4ae6b['show'](),_0x525b75['on']('change:isReady',(_0x26533d,_0x19a3d3,_0x332033)=>{_0x332033?_0xc4ae6b['hide']():_0xc4ae6b['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x174219,_0x3874e2){super(_0x174219,_0x3874e2);const _0x33834b=this['bindTemplate'];this['set']({'label':g(_0x174219,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x174219,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x33834b['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 _0x1b431a=this['fieldView']['element'];this['_tooltipString']=_0x1b431a['scrollWidth']>_0x1b431a['clientWidth']&&_0x1b431a['value']||'';}}class oi extends _0x5d268e{constructor(_0x246e21,_0x1d3ad5,_0x1dba93){super(_0x246e21);const _0x16a61e=new _0x33e49c();_0x16a61e['set']({'content':_0x1dd3fe,'viewBox':'0\x200\x2011\x2010'});const _0x1fb720=['ck','ck-revision-history-sidebar__revision-author'];_0x1dba93&&_0x1fb720['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3e747b=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x246e21,_0x1dba93?'Revision\x20creator':'Revision\x20author')},'children':[_0x16a61e,_0x1d3ad5['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1fb720},'children':_0x3e747b});}}function ni(_0x28ebd7,_0x35591e){const _0x2e9b1a=_0x28ebd7['bindTemplate'],_0x51a32b=_0x28ebd7['locale'],_0x19c597=_0x50d88b(_0x51a32b);_0x19c597['panelPosition']='sw';const _0x18db11=function(_0x2d37ea,_0x36decf){const _0x327add=function(_0x3feb73,_0x477f48){const _0x571992=_0x3feb73['locale'],_0x1757a4={'Compare\x20against\x20selected':g(_0x571992,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x571992,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x571992,'Restore\x20this\x20revision')};return _0x477f48['map'](_0x387161=>{const _0x186dd9=_0x1757a4[_0x387161['name']];return _0x186dd9&&_0x186dd9!==_0x387161['name']&&(_0x387161['name']=_0x186dd9),_0x387161;});}(_0x2d37ea,_0x36decf),_0x2a8935=new _0x1cbddd();for(const _0xfd09c7 of _0x327add){const _0x1efbcf={'type':'button','model':new to({'label':_0xfd09c7['name'],'class':_0xfd09c7['class'],'withText':!0x0,'role':'menuitem','_action':_0xfd09c7['action']})};_0x1efbcf['model']['bind']('isEnabled')['to'](_0x2d37ea,'isActionsDropdownOpen',_0x1a0eb8=>'function'!=typeof _0xfd09c7['isEnabled']||(!_0x1a0eb8||_0xfd09c7['isEnabled'](_0x2d37ea))),_0x2a8935['add'](_0x1efbcf);}return _0x2a8935;}(_0x28ebd7,_0x35591e);return _0x28ebd7['bind']('isActionsDropdownOpen')['to'](_0x19c597,'isOpen'),_0x19c597['buttonView']['set']({'label':g(_0x51a32b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4d60eb}),_0x19c597['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2e9b1a['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2e9b1a['to'](_0x136a2e=>_0x136a2e['stopPropagation']())}}),_0x19c597['on']('execute',_0x407779=>{_0x28ebd7['isReady']&&'function'==typeof _0x407779['source']['_action']&&_0x407779['source']['_action'](_0x28ebd7);}),_0x296332(_0x19c597,_0x18db11,{'role':'menu'}),_0x19c597['listenTo'](_0x28ebd7,'change:isActionsDropdownOpen',(_0x1edb14,_0x1dea33,_0x37600d)=>{if(_0x37600d)for(const _0x4111f9 of _0x19c597['listView']['items']){const _0x364818=_0x4111f9['children']['first'],_0x42015d=_0x35591e['find'](_0x272fee=>_0x272fee['action']===_0x364818['_action'])['isVisible'];_0x4111f9['isVisible']=void 0x0===_0x42015d||_0x42015d(_0x28ebd7);}}),_0x19c597;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x4e42ac(_0x5d268e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x43fa8b,_0x5da306,_0x9bd8d1,_0xb3470b){super(_0x43fa8b);const _0x2d6478=this['bindTemplate'],_0x50c895=function(_0x594b67,_0x2932c9){const _0x49e26c=Array['from'](_0x2932c9['authors'])['filter'](_0x42af2b=>_0x42af2b!=_0x2932c9['creator']);return _0x2932c9['creator']&&_0x49e26c['unshift'](_0x2932c9['creator']),_0x49e26c['map'](_0x56a884=>new oi(_0x594b67,_0x56a884,_0x56a884==_0x2932c9['creator']));}(_0x43fa8b,_0x5da306);this['id']=_0x5da306['id'],this['_revision']=_0x5da306,this['_requireRevisionName']=_0xb3470b,this['bind']('name','createdAt')['to'](_0x5da306),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3b7ca3=>{return _0x292ac9=_0x43fa8b['uiLanguage'],(_0x409193=_0x3b7ca3)['toLocaleDateString'](_0x292ac9,{'month':'long','day':'numeric'})+',\x20'+_0x409193['toLocaleTimeString'](_0x292ac9,{'hour':'numeric','minute':'numeric'});var _0x292ac9,_0x409193;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x43fa8b,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3cfb7c=>_0x3cfb7c||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3741ec,_0x42065b)=>_0x3741ec&&_0x42065b),this['revisionActionsView']=_0x9bd8d1&&_0x9bd8d1['length']?ni(this,_0x9bd8d1):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2d6478['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2d6478['if']('isEnabled','ck-disabled',_0x3b1181=>!_0x3b1181),_0x2d6478['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2d6478['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2d6478['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':_0x2d6478['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':_0x50c895}]},this['revisionActionsView']],'on':{'click':_0x2d6478['to'](_0x440449=>{_0x440449['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x15c63e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x15c63e,'change',()=>{this['_requireRevisionName']&&!_0x15c63e['value']||this['fire']('setName',{'id':this['id'],'name':_0x15c63e['value']}),_0x15c63e['value']||(_0x15c63e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x48202f,_0x41a96c){const _0x220d76=_0xf3fd7d['fromJSDate'](_0x48202f)['setLocale'](_0x41a96c),_0x500a94=_0xf3fd7d['local'](),_0x57fb46=_0x500a94['minus']({'days':0x1})['startOf']('day');let _0x115961,_0xd0b45a;return _0x220d76['hasSame'](_0x500a94,'day')?(_0x115961=_0x220d76['startOf']('day')['toJSDate'](),_0xd0b45a=_0x220d76['toRelativeCalendar']()):_0x220d76['hasSame'](_0x57fb46,'day')?(_0x115961=_0x57fb46['toJSDate'](),_0xd0b45a=_0x220d76['toRelativeCalendar']()):_0x220d76['hasSame'](_0x500a94,'week')?(_0x115961=_0x220d76['startOf']('week')['toJSDate'](),_0xd0b45a=_0x220d76['weekdayLong']||''):_0x220d76['hasSame'](_0x500a94,'year')?(_0x115961=_0x220d76['startOf']('month')['toJSDate'](),_0xd0b45a=_0x220d76['monthLong']||''):(_0x115961=_0x220d76['startOf']('year')['toJSDate'](),_0xd0b45a=String(_0x220d76['year'])),{'startDate':_0x115961,'localizedPeriodName':_0xd0b45a};}class mi extends _0x5d268e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x58e318,_0x21df6d,_0x5e15bd,_0x4e857a){super(_0x58e318);const _0x5e4de7=vi(_0x21df6d,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x21df6d,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5e15bd,this['_requireRevisionName']=_0x4e857a,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':_0x5e4de7}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x5d4e9d){const _0x55db34=new ai(this['locale'],_0x5d4e9d,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x55db34);}['removeRevision'](_0x4aa28a){const _0x168487=this['revisionViews']['find'](_0x559d6f=>_0x559d6f['id']===_0x4aa28a['id']);this['revisionViews']['remove'](_0x168487);}}class as extends _0x5d268e{constructor(_0xfbede8){super(_0xfbede8);const _0x1bedc5=new _0x33e49c();_0x1bedc5['content']=_0x33de5c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1bedc5,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0xfbede8,'Revision\x20history')]}]});}}class di extends _0x5d268e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d2c42,_0x56b04c,_0x1cdc9c,_0x1d84a4){super(_0x3d2c42);const _0x2a167a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x56b04c,this['_revisionActions']=_0x1cdc9c,this['_requireRevisionName']=_0x1d84a4,this['on']('select',(_0x2cce74,_0x504861)=>{this['fire']('revisionSelected',_0x504861);}),this['on']('setName',(_0x59209e,_0x43b69b)=>{this['fire']('revisionSetName',_0x43b69b);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x3d2c42),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x2a167a['if']('isEnabled','ck-disabled',_0xf10cda=>!_0xf10cda)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1784b1 of this['_revisions'])this['_addRevision'](_0x1784b1);this['_revisions']['on']('add',(_0x4a08c3,_0x157b22)=>{this['_addRevision'](_0x157b22);}),this['_revisions']['on']('remove',(_0x45d197,_0x3507e4)=>{this['_removeRevision'](_0x3507e4);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xb11efb=>_0xb11efb['revisionViews']['map'](_0xcc9ef2=>_0xcc9ef2))['flat']();}['selectRevision'](_0x5352ac){for(const _0x5c87d0 of this['revisionViews'])_0x5352ac&&_0x5352ac['id']===_0x5c87d0['id']?_0x5c87d0['select']():_0x5c87d0['deselect']();}['highlightRevisions'](_0x350c16){for(const _0x3f4ebe of this['revisionViews'])_0x350c16['some'](({id:_0x1798f8})=>_0x1798f8===_0x3f4ebe['id'])?_0x3f4ebe['highlight']():_0x3f4ebe['unhighlight']();}['_addRevision'](_0x49189e){const _0x4f3694=vi(_0x49189e['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x3a0c56=this['timePeriodViews']['get'](0x0);_0x3a0c56&&_0x3a0c56['startDate']['getTime']()===_0x4f3694['getTime']()||(_0x3a0c56=new mi(this['locale'],_0x4f3694,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x3a0c56)),_0x3a0c56['addRevision'](_0x49189e);}['_removeRevision'](_0x19cd55){const _0xe3b259=vi(_0x19cd55['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xe3b259)['removeRevision'](_0x19cd55);}['_getTimePeriodViewByStartDate'](_0x41573d){return this['timePeriodViews']['find'](_0x498850=>_0x498850['startDate']['getTime']()===_0x41573d['getTime']());}}class d extends _0x321c34{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x50d922){super(_0x50d922),this['_revisionViewer']=_0x50d922['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5891ed=this['_revisionsRepository']['_revisions'],_0x1d4594=this['_createRevisionActions'](),_0x83a24=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x5891ed,_0x1d4594,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',(_0x1034bb,_0x5f55ac)=>{_0x5f55ac['revisionViews']['on']('add',(_0x109484,_0x55863b)=>{_0x55863b['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)),_0x83a24['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x10df4d=this['_revisionsRepository']['getRevision'](0x0);if(_0x10df4d){const _0x53cbf8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x10df4d['id']);this['_revisionViewer']['compare'](_0x10df4d,_0x53cbf8);}}['_handleRevisionSelected'](_0x5adb78,_0x151546){const _0x29e783=this['_revisionsRepository']['getRevision'](_0x151546['id']),_0x1308d2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x29e783['id']);this['_revisionViewer']['compare'](_0x29e783,_0x1308d2);}['_handleRevisionSetName'](_0x323e74,_0x32ed1e){this['_revisionsRepository']['getRevision'](_0x32ed1e['id'])['setName'](_0x32ed1e['name']);}['_handleDiffChange'](_0x407de4,_0x5a54fb,_0x22529e){const _0x2d8f47=this['_revisionsRepository']['getRevisionsInDiff'](_0x22529e);_0x2d8f47['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2d8f47),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2d8f47[0x0]));}['_createRevisionActions'](){const _0x6a28f9=this['editor'],_0x33a34e=d['availableRevisionActions'],_0x36fcd9=_0x6a28f9['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x36fcd9['length'])return _0x36fcd9['map'](_0x583d84=>{const _0x585736='string'==typeof _0x583d84?Object['assign']({},_0x33a34e[_0x583d84]):_0x583d84;return _0x585736['action']=_0x585736['action']['bind'](this,_0x6a28f9),_0x585736['isVisible']&&(_0x585736['isVisible']=_0x585736['isVisible']['bind'](this,_0x6a28f9)),_0x585736;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xeb42f2},_0x49a256)=>{const _0xc7bc66=_0xeb42f2['get'](m),_0x3166da=_0xc7bc66['repository'];let _0x269dae=_0xc7bc66['diff']['newRevisionId'],_0x3f5bfd=_0x49a256['id'];_0x3166da['getIndex'](_0x269dae)>_0x3166da['getIndex'](_0x3f5bfd)&&([_0x269dae,_0x3f5bfd]=[_0x3f5bfd,_0x269dae]),_0xc7bc66['compare'](_0x269dae,_0x3f5bfd);},'isVisible':({plugins:_0x1df494},_0x58f01f)=>{const _0x18edcb=_0x1df494['get'](m);return!(_0x18edcb['repository']['getRevisionsInDiff'](_0x18edcb['diff'])['length']>0x2)&&!_0x58f01f['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5b0dd9,{id:_0x532c81})=>{_0x5b0dd9['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x532c81);},'isVisible':({plugins:_0x39c4fd},_0x2aa678)=>!!_0x39c4fd['get'](m)['repository']['getLaterVisibleRevision'](_0x2aa678['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1c45bb},{id:_0x73590a,revisionNameView:_0x45672c})=>{const _0x197426=_0x1c45bb['get'](m),_0x528e2e=_0x197426['repository']['getEarlierVisibleRevision'](_0x73590a);_0x197426['compare'](_0x73590a,_0x528e2e),_0x45672c['focus'](),_0x45672c['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x568086,_0x2bb232){super(_0x568086),this['_view']=_0x2bb232,this['_toolbarConfig']=et(_0x568086['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x8f95f8){const _0x384e04=this['editor'],_0x2b9725=this['view'],_0x43906c=_0x384e04['editing']['view'],_0x57f6fe=_0x2b9725['editable'],_0xfa0e07=_0x43906c['document']['getRoot']();_0x57f6fe['name']=_0xfa0e07['rootName'],_0x2b9725['render']();const _0x592fff=_0x57f6fe['element'];this['setEditableElement'](_0x57f6fe['name'],_0x592fff),_0x2b9725['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x43906c['attachDomRoot'](_0x592fff),this['_elementReplacer']['replace'](_0x8f95f8,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1c69a3=this['view'],_0x444727=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x444727['detachDomRoot'](_0x1c69a3['editable']['name']),_0x1c69a3['destroy']();}['_initToolbar'](){const _0x5d35fb=this['view'];_0x5d35fb['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5d35fb['stickyPanel']['limiterElement']=_0x5d35fb['element'],_0x5d35fb['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1ef998})=>_0x1ef998),_0x5d35fb['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5d35fb['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4a85b6,_0x461287,_0x32753c={}){super(_0x4a85b6),this['stickyPanel']=new ht(_0x4a85b6),this['toolbar']=new dt(_0x4a85b6,{'shouldGroupWhenFull':_0x32753c['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x4a85b6,_0x461287);}['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
- _0x5d5f4c(_0x559888){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2b3fd3,_0x1af921){super(_0x1af921),this['sourceElement']=_0x2b3fd3,this['model']['document']['createRoot']();const _0x460c2c=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x460c2c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xea49fb,_0x3f1ddd){const _0x57a12a=new this(_0xea49fb,_0x3f1ddd);return await _0x57a12a['initPlugins'](),await _0x57a12a['ui']['init'](_0xea49fb),await _0x57a12a['data']['init'](_0x57a12a['config']['get']('initialData')||''),_0x57a12a['fire']('ready'),_0x57a12a;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x5bec45{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x9f014){function _0x58db3c(_0x3fc51c){return _0x3fc51c['map'](_0x2cd9e3=>String['fromCharCode'](_0x2cd9e3))['join']('');}super(_0x9f014),this['result']='end',_0x9f014[_0x58db3c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x58db3c([0x76,0x69,0x65,0x77])][_0x58db3c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x58db3c([0x61,0x75,0x74,0x6f]),_0x9f014[_0x58db3c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x58db3c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x58db3c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x58db3c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x58db3c([0x6f,0x6b])});}}class k extends _0x5bec45{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0xdc7132){if(super(_0xdc7132),!this['editor']['config']['get']('revisionHistory'))throw new _0xc05e2d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x1418b9=>this['_showRevisionViewer']({..._0x1418b9,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x203cf7=>this['_closeRevisionViewer'](_0x203cf7)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x338a7a=>this['_restoreRevision'](_0x338a7a)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x5356c0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x5356c0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3c94b4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3c94b4);}['getRevision'](_0x5dd87d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5dd87d);}['getRevisions'](_0x138e8b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x138e8b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3f13c0=this['editor'],_0x233eda=_0x47ec66(_0x3f13c0,p),_0x69ae07=_0x3f13c0['plugins']['get']('RevisionTracker'),_0x248b65=_0x3f13c0['plugins']['get']('Users')['users'];return _0x233eda['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x233eda['lazyRoots'],(_0x233eda['plugins']['push'](yt,m,R,class extends _0x5bec45{static get['requires'](){return[m,'Users'];}['init'](){const _0x5770e2=this['editor']['plugins']['get']('Users');for(const _0x2eaebb of _0x248b65)_0x2eaebb['isAnonymous']||_0x5770e2['getUser'](_0x2eaebb['id'])||_0x5770e2['addUser'](_0x2eaebb);const _0x53a481=_0x69ae07['repository']['getRevisions']();let _0x21ed41=null;const _0x2d7852=this['editor']['plugins']['get']('RevisionViewer');_0x2d7852['adapter']=_0x69ae07['adapter'],_0x2d7852['bind']('isEnabled')['to'](_0x69ae07),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3f13c0,'isReadOnly',_0x16bdfd=>!_0x16bdfd);for(const _0x5f18df of _0x53a481){const _0x503402=null===_0x5f18df['creator'];if(_0x503402&&_0x5f18df['toVersion']===_0x5f18df['fromVersion'])continue;const _0x2e5d2a=_0x5f18df['toJSON']();_0x2d7852['addRevisionData'](_0x2e5d2a,(_0x2b7a2d,_0x3c60d0,_0x53165d)=>{if(_0x503402){if(_0x21ed41)_0x21ed41['_update'](_0x2b7a2d,_0x3c60d0);else{if(!_0x3c60d0){const _0x33991d=_0x53165d['toJSON']();_0x33991d['id']=_0x45e777(),_0x69ae07['saveRevision'](_0x33991d,_0x53165d['toVersion'])['then'](_0x5b7c71=>{_0x21ed41=_0x5b7c71;});}}}else _0x5f18df['_update'](_0x2b7a2d,_0x3c60d0);});}}},d),_0x233eda);}['_enhanceShowRevisionViewerCallback'](){const _0x7a5811=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x587e96=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4102db=this['editor']['plugins']['get']('Autosave');await _0x4102db['save']();}else await _0x587e96['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x8dc840=this['editor']['plugins']['get']('Dialog');_0x8dc840['isOpen']&&_0x8dc840['hide']();}const _0x16d2be=this['_getRevisionViewerEditorConfig']();return _0x7a5811(_0x16d2be)['then'](_0xabe86b=>{return(this['_viewerEditor']=_0xabe86b,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0xabe86b);})['catch'](_0x3a52dd=>(console['error'](_0x3a52dd),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x161431=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x161431(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x2d4619=this['editor']['plugins']['get']('Annotations');_0x2d4619['refreshVisibility'](),_0x2d4619['refreshPositioning']();}})));}['_showRevisionViewer'](_0xcb8e30){const _0x107dd4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2b8dcc=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x30588a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x30588a,_0xcb8e30)['then'](_0x51423c=>(_0x2b8dcc['style']['display']='block',_0x107dd4['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x51423c));}['_closeRevisionViewer'](_0x304025){const _0x92354f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x92354f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x304025['destroy']();}async['_restoreRevision'](_0x4cd5dc){const _0x56d854=this['editor'],_0x18492f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x83895e=_0x56d854['plugins']['get']('RevisionTracker'),_0x33b6c3=_0x56d854['plugins']['get']('RevisionHistoryUtils'),_0x4f2922=_0x18492f['repository']['getRevision'](_0x4cd5dc);let _0x4f84d1,_0x2a73c6,_0x3c17ab;try{await _0x33b6c3['loadRevisionData'](_0x4f2922,this['adapter']),_0x4f84d1=_0x33b6c3['getRevisionDocumentData'](_0x4f2922),_0x2a73c6=_0x33b6c3['getRevisionRootsAttributes'](_0x4f2922);}catch(_0x2399db){return void console['error'](_0x2399db);}_0x56d854['model']['change'](_0x3cab89=>{for(const _0x4149e5 of Array['from'](_0x56d854['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3cab89['removeMarker'](_0x4149e5);}),_0x18492f['isReady']=!0x1,_0x56d854['model']['enqueueChange'](_0x47bc63=>{_0x47bc63['setSelection'](null),_0x47bc63['removeSelectionAttribute'](_0x56d854['model']['document']['selection']['getAttributeKeys']());const _0x46f7fe=Object['keys'](_0x4f84d1);for(const _0x345241 of _0x56d854['model']['document']['roots'])'$graveyard'!=_0x345241['rootName']&&_0x345241['isAttached']()&&!_0x46f7fe['includes'](_0x345241['rootName'])&&_0x47bc63['detachRoot'](_0x345241);for(const _0x2d1cfe of _0x46f7fe){let _0x413c59=_0x56d854['model']['document']['getRoot'](_0x2d1cfe);_0x413c59&&_0x413c59['isAttached']()||(_0x413c59=_0x47bc63['addRoot'](_0x2d1cfe));const _0x56c78d=_0x2a73c6[_0x2d1cfe],_0x54645d=Object['keys'](_0x56c78d),_0x2e8d7b=_0x4f84d1[_0x2d1cfe];for(const _0x39355f of _0x413c59['getAttributeKeys']())_0x54645d['includes'](_0x39355f)||_0x47bc63['removeAttribute'](_0x39355f,_0x413c59);for(const _0x462349 of _0x54645d)_0x47bc63['setAttribute'](_0x462349,_0x2a73c6[_0x2d1cfe][_0x462349],_0x413c59);_0x47bc63['remove'](_0x47bc63['createRangeIn'](_0x413c59)),_0x47bc63['insert'](_0x56d854['data']['parse'](_0x2e8d7b,_0x413c59),_0x413c59,0x0);}});const _0x70fc2c=g(_0x56d854['locale'],'Restored');if(_0x4f2922['name'])_0x3c17ab=-0x1==_0x4f2922['name']['indexOf'](_0x70fc2c)?_0x70fc2c+':\x20'+_0x4f2922['name']:_0x4f2922['name'];else _0x3c17ab=_0x70fc2c+':\x20'+(_0x4f2922['createdAt']['toLocaleDateString'](_0x56d854['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4f2922['createdAt']['toLocaleTimeString'](_0x56d854['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x83895e['saveRevision']({'name':_0x3c17ab}),_0x18492f['isReady']=!0x0,_0x56d854['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x2f3c1c){super(_0x2f3c1c),this['_revisionViewer']=_0x2f3c1c['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x55c2a0=this['_revisionsRepository']['_revisions'],_0x1a79c6=this['_createRevisionActions'](),_0x37579b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x55c2a0,_0x1a79c6,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',(_0x31e059,_0x40ffa0)=>{_0x40ffa0['revisionViews']['on']('add',(_0xfc7f3a,_0x1c8178)=>{_0x1c8178['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)),_0x37579b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2a69cc=this['_revisionsRepository']['getRevision'](0x0);if(_0x2a69cc){const _0x488fba=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2a69cc['id']);this['_revisionViewer']['compare'](_0x2a69cc,_0x488fba);}}['_handleRevisionSelected'](_0x467620,_0x53a924){const _0xe93a62=this['_revisionsRepository']['getRevision'](_0x53a924['id']),_0x3d9a4a=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xe93a62['id']);this['_revisionViewer']['compare'](_0xe93a62,_0x3d9a4a);}['_handleRevisionSetName'](_0x73b84b,_0x580fc3){this['_revisionsRepository']['getRevision'](_0x580fc3['id'])['setName'](_0x580fc3['name']);}['_handleDiffChange'](_0x311ccb,_0x3d056a,_0x573a24){const _0x735c30=this['_revisionsRepository']['getRevisionsInDiff'](_0x573a24);_0x735c30['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x735c30),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x735c30[0x0]));}['_createRevisionActions'](){const _0x3178b3=this['editor'],_0x49e16c=d['availableRevisionActions'],_0x90d1ed=_0x3178b3['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x90d1ed['length'])return _0x90d1ed['map'](_0x5bef15=>{const _0x20e332='string'==typeof _0x5bef15?Object['assign']({},_0x49e16c[_0x5bef15]):_0x5bef15;return _0x20e332['action']=_0x20e332['action']['bind'](this,_0x3178b3),_0x20e332['isVisible']&&(_0x20e332['isVisible']=_0x20e332['isVisible']['bind'](this,_0x3178b3)),_0x20e332;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xf140a9},_0x30027a)=>{const _0x80c8ae=_0xf140a9['get'](m),_0x11dd0c=_0x80c8ae['repository'];let _0x405ff4=_0x80c8ae['diff']['newRevisionId'],_0x36ad30=_0x30027a['id'];_0x11dd0c['getIndex'](_0x405ff4)>_0x11dd0c['getIndex'](_0x36ad30)&&([_0x405ff4,_0x36ad30]=[_0x36ad30,_0x405ff4]),_0x80c8ae['compare'](_0x405ff4,_0x36ad30);},'isVisible':({plugins:_0x39d26d},_0x3c6395)=>{const _0x454080=_0x39d26d['get'](m);return!(_0x454080['repository']['getRevisionsInDiff'](_0x454080['diff'])['length']>0x2)&&!_0x3c6395['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x31e72f,{id:_0x3891f2})=>{_0x31e72f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3891f2);},'isVisible':({plugins:_0x57671e},_0x37c047)=>!!_0x57671e['get'](m)['repository']['getLaterVisibleRevision'](_0x37c047['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5836af},{id:_0x23ecd3,revisionNameView:_0x398656})=>{const _0x54b574=_0x5836af['get'](m),_0x438f4b=_0x54b574['repository']['getEarlierVisibleRevision'](_0x23ecd3);_0x54b574['compare'](_0x23ecd3,_0x438f4b),_0x398656['focus'](),_0x398656['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2cedf1,_0x48e535){super(_0x2cedf1),this['_view']=_0x48e535,this['_toolbarConfig']=et(_0x2cedf1['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x412406){const _0x755614=this['editor'],_0x190956=this['view'],_0x13cec0=_0x755614['editing']['view'],_0x44fab9=_0x190956['editable'],_0xf37856=_0x13cec0['document']['getRoot']();_0x44fab9['name']=_0xf37856['rootName'],_0x190956['render']();const _0x747c0f=_0x44fab9['element'];this['setEditableElement'](_0x44fab9['name'],_0x747c0f),_0x190956['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x13cec0['attachDomRoot'](_0x747c0f),this['_elementReplacer']['replace'](_0x412406,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x58b3cf=this['view'],_0x2cbd8b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2cbd8b['detachDomRoot'](_0x58b3cf['editable']['name']),_0x58b3cf['destroy']();}['_initToolbar'](){const _0x5cc51d=this['view'];_0x5cc51d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5cc51d['stickyPanel']['limiterElement']=_0x5cc51d['element'],_0x5cc51d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5b4fc1})=>_0x5b4fc1),_0x5cc51d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5cc51d['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x375164,_0x472d06,_0xa98ac={}){super(_0x375164),this['stickyPanel']=new ht(_0x375164),this['toolbar']=new dt(_0x375164,{'shouldGroupWhenFull':_0xa98ac['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x375164,_0x472d06);}['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
+ _0x5b0258(_0x163f2d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x487e00,_0x1811af){super(_0x1811af),this['sourceElement']=_0x487e00,this['model']['document']['createRoot']();const _0x3d4c37=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x3d4c37);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4951be,_0x3766e8){const _0x1786ee=new this(_0x4951be,_0x3766e8);return await _0x1786ee['initPlugins'](),await _0x1786ee['ui']['init'](_0x4951be),await _0x1786ee['data']['init'](_0x1786ee['config']['get']('initialData')||''),_0x1786ee['fire']('ready'),_0x1786ee;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x321c34{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x311e3e){function _0x299983(_0x470777){return _0x470777['map'](_0x4c6ff5=>String['fromCharCode'](_0x4c6ff5))['join']('');}super(_0x311e3e),this['result']='end',_0x311e3e[_0x299983([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x299983([0x76,0x69,0x65,0x77])][_0x299983([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x299983([0x61,0x75,0x74,0x6f]),_0x311e3e[_0x299983([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x299983([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x299983([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x299983([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x299983([0x6f,0x6b])});}}class k extends _0x321c34{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x56b32e){if(super(_0x56b32e),!this['editor']['config']['get']('revisionHistory'))throw new _0x31e96e('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x46e06b=>this['_showRevisionViewer']({..._0x46e06b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x261311=>this['_closeRevisionViewer'](_0x261311)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2f07cc=>this['_restoreRevision'](_0x2f07cc)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x51faee){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x51faee;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x258b22){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x258b22);}['getRevision'](_0x22a698){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x22a698);}['getRevisions'](_0x43685b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x43685b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3b76f6=this['editor'],_0x5df5de=_0x2f5895(_0x3b76f6,p),_0xb92d54=_0x3b76f6['plugins']['get']('RevisionTracker'),_0x3c25a3=_0x3b76f6['plugins']['get']('Users')['users'];return _0x5df5de['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5df5de['lazyRoots'],(_0x5df5de['plugins']['push'](yt,m,R,class extends _0x321c34{static get['requires'](){return[m,'Users'];}['init'](){const _0x8bb327=this['editor']['plugins']['get']('Users');for(const _0x38ea8b of _0x3c25a3)_0x38ea8b['isAnonymous']||_0x8bb327['getUser'](_0x38ea8b['id'])||_0x8bb327['addUser'](_0x38ea8b);const _0x3636b0=_0xb92d54['repository']['getRevisions']();let _0x2a7e2a=null;const _0x5cab14=this['editor']['plugins']['get']('RevisionViewer');_0x5cab14['adapter']=_0xb92d54['adapter'],_0x5cab14['bind']('isEnabled')['to'](_0xb92d54),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3b76f6,'isReadOnly',_0x38f3fc=>!_0x38f3fc);for(const _0xbd5a23 of _0x3636b0){const _0x52b54d=null===_0xbd5a23['creator'];if(_0x52b54d&&_0xbd5a23['toVersion']===_0xbd5a23['fromVersion'])continue;const _0x15cfd9=_0xbd5a23['toJSON']();_0x5cab14['addRevisionData'](_0x15cfd9,(_0x1c1179,_0x51fa1d,_0x5d8bb5)=>{if(_0x52b54d){if(_0x2a7e2a)_0x2a7e2a['_update'](_0x1c1179,_0x51fa1d);else{if(!_0x51fa1d){const _0x4bd48d=_0x5d8bb5['toJSON']();_0x4bd48d['id']=_0x459828(),_0xb92d54['saveRevision'](_0x4bd48d,_0x5d8bb5['toVersion'])['then'](_0x5aa9a6=>{_0x2a7e2a=_0x5aa9a6;});}}}else _0xbd5a23['_update'](_0x1c1179,_0x51fa1d);});}}},d),_0x5df5de);}['_enhanceShowRevisionViewerCallback'](){const _0x325243=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1a6cec=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5d02d8=this['editor']['plugins']['get']('Autosave');await _0x5d02d8['save']();}else await _0x1a6cec['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x116760=this['editor']['plugins']['get']('Dialog');_0x116760['isOpen']&&_0x116760['hide']();}const _0x30d014=this['_getRevisionViewerEditorConfig']();return _0x325243(_0x30d014)['then'](_0x154946=>{return(this['_viewerEditor']=_0x154946,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x154946);})['catch'](_0x361141=>(console['error'](_0x361141),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x870c8c=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x870c8c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x481e07=this['editor']['plugins']['get']('Annotations');_0x481e07['refreshVisibility'](),_0x481e07['refreshPositioning']();}})));}['_showRevisionViewer'](_0xf4ede4){const _0x134cbc=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2aee95=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33443c=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x33443c,_0xf4ede4)['then'](_0x57869c=>(_0x2aee95['style']['display']='block',_0x134cbc['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x57869c));}['_closeRevisionViewer'](_0x9fd76f){const _0x35cb15=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x35cb15['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x9fd76f['destroy']();}async['_restoreRevision'](_0x34b52f){const _0x300c94=this['editor'],_0x43a1f8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4a806c=_0x300c94['plugins']['get']('RevisionTracker'),_0x48651e=_0x300c94['plugins']['get']('RevisionHistoryUtils'),_0x130ea1=_0x43a1f8['repository']['getRevision'](_0x34b52f);let _0x3af76d,_0x34aa,_0x1dec02;try{await _0x48651e['loadRevisionData'](_0x130ea1,this['adapter']),_0x3af76d=_0x48651e['getRevisionDocumentData'](_0x130ea1),_0x34aa=_0x48651e['getRevisionRootsAttributes'](_0x130ea1);}catch(_0x233847){return void console['error'](_0x233847);}_0x300c94['model']['change'](_0x5434a4=>{for(const _0x248779 of Array['from'](_0x300c94['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5434a4['removeMarker'](_0x248779);}),_0x43a1f8['isReady']=!0x1,_0x300c94['model']['enqueueChange'](_0x53fb84=>{_0x53fb84['setSelection'](null),_0x53fb84['removeSelectionAttribute'](_0x300c94['model']['document']['selection']['getAttributeKeys']());const _0xc34286=Object['keys'](_0x3af76d);for(const _0x3b56f7 of _0x300c94['model']['document']['roots'])'$graveyard'!=_0x3b56f7['rootName']&&_0x3b56f7['isAttached']()&&!_0xc34286['includes'](_0x3b56f7['rootName'])&&_0x53fb84['detachRoot'](_0x3b56f7);for(const _0x23e2d9 of _0xc34286){let _0x43b32a=_0x300c94['model']['document']['getRoot'](_0x23e2d9);_0x43b32a&&_0x43b32a['isAttached']()||(_0x43b32a=_0x53fb84['addRoot'](_0x23e2d9));const _0x1d42bb=_0x34aa[_0x23e2d9],_0x2a2e0d=Object['keys'](_0x1d42bb),_0x3172ab=_0x3af76d[_0x23e2d9];for(const _0x1d11df of _0x43b32a['getAttributeKeys']())_0x2a2e0d['includes'](_0x1d11df)||_0x53fb84['removeAttribute'](_0x1d11df,_0x43b32a);for(const _0x14c4c7 of _0x2a2e0d)_0x53fb84['setAttribute'](_0x14c4c7,_0x34aa[_0x23e2d9][_0x14c4c7],_0x43b32a);_0x53fb84['remove'](_0x53fb84['createRangeIn'](_0x43b32a)),_0x53fb84['insert'](_0x300c94['data']['parse'](_0x3172ab,_0x43b32a),_0x43b32a,0x0);}});const _0x3d0e3b=g(_0x300c94['locale'],'Restored');if(_0x130ea1['name'])_0x1dec02=-0x1==_0x130ea1['name']['indexOf'](_0x3d0e3b)?_0x3d0e3b+':\x20'+_0x130ea1['name']:_0x130ea1['name'];else _0x1dec02=_0x3d0e3b+':\x20'+(_0x130ea1['createdAt']['toLocaleDateString'](_0x300c94['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x130ea1['createdAt']['toLocaleTimeString'](_0x300c94['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4a806c['saveRevision']({'name':_0x1dec02}),_0x43a1f8['isReady']=!0x0,_0x300c94['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};