@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250206.0 → 0.0.0-nightly-20250207.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +10 -10
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x5d07e0,uid as _0x2bee71,Collection as _0x4bd15c,logWarning as _0x4df235,FocusTracker as _0x553d6d,KeystrokeHandler as _0x1cff90,scrollViewportToShowTarget as _0x7e407f,ResizeObserver as nt,ElementReplacer as ht,CKEditorError as _0x53925d}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4fe291,set as _0x2dfbd4,unset as _0x2cd7eb,isEqual as _0xeea941}from'lodash-es';import{Plugin as _0x5a9002,PendingActions as _0x4fa6e0,icons as _0x123892,Command as _0x5883d5,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3a86de,getMarkerDomElement as _0x26fb60,ConfirmMixin as ti,sanitizeEditorConfig as _0x488052}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x23929d,Element as ft,Range as vt,ViewUIElement as _0x40ec03,ViewRawElement as _0xe7678,ViewEmptyElement as _0x347cea,ViewAttributeElement as _0x5e1a11,ViewContainerElement as _0x15aabb,Position as gt,ViewText as _0x1f9b61,ViewElement as _0x55295d,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x2c8ba4,submitHandler as _0x59a652,LabeledFieldView as _0x3d4f9b,createLabeledInputText as _0x55a6a1,createDropdown as _0x1ffd4b,ListView as _0x12e40f,ListItemView as _0x9a60cf,ButtonView as te,MenuBarMenuView as _0x415c08,MenuBarMenuListView as _0x1e6d87,MenuBarMenuListItemView as _0x33539e,MenuBarMenuListItemButtonView as _0x37d286,ContextualBalloon as _0x4fee7b,ToolbarSeparatorView as _0x1baa83,IconView as _0x1ba9cd,addListToDropdown as to,ViewModel as _0x45a407,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4c2825}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x5d07e0(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4d1f82){super(),this['id']=_0x4d1f82['id']||_0x2bee71(),this['creator']=_0x4d1f82['creator']||null,this['authors']=_0x4d1f82['authors']||[],this['diffData']=_0x4d1f82['diffData']||null,this['toVersion']=_0x4d1f82['toVersion']||0x0,this['fromVersion']=_0x4d1f82['fromVersion']||0x0,this['set']('name',_0x4d1f82['name']||''),this['set']('createdAt',_0x4d1f82['createdAt']||new Date()),this['set']('attributes',_0x4d1f82['attributes']||{});}['setName'](_0xcb9869){this['_update']({'name':_0xcb9869});}['setAttribute'](_0x50c825,_0x40440d){const _0x52df60=_0x4fe291(this['attributes']);_0x2dfbd4(_0x52df60,_0x50c825,_0x40440d),this['_update']({'attributes':_0x52df60});}['removeAttribute'](_0x31742d){const _0x14f0eb=_0x4fe291(this['attributes']);_0x2cd7eb(_0x14f0eb,_0x31742d),this['_update']({'attributes':_0x14f0eb});}['_update'](_0x1bb41f,_0x47f8f1=!0x1){let _0x259018=!0x1;const _0x4c87dc={'id':this['id']},_0x3dcbab=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x181ff3 of _0x3dcbab){const _0xc44ee=_0x1bb41f[_0x181ff3];void 0x0!==_0xc44ee&&_0xc44ee!==this[_0x181ff3]&&(this[_0x181ff3]=_0xc44ee,_0x4c87dc[_0x181ff3]=_0xc44ee,_0x259018=!0x0);}_0x259018&&(_0x4c87dc['authors']&&(_0x4c87dc['authorsIds']=_0x4c87dc['authors']['map'](_0x96e652=>_0x96e652['id']),delete _0x4c87dc['authors']),this['fire']('_update',_0x4c87dc,_0x47f8f1));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5137dc=>_0x5137dc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x5a9002{['_revisions'];static get['requires'](){return[_0x3a86de];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x17c2a1){super(_0x17c2a1),this['_revisions']=new _0x4bd15c();}['afterInit'](){!async function(_0x296c3b){const _0x3ddc36=_0x54b665([0x63,0x6e,0x76,0x5a,0x72,0x45,0x7a,0x4a,0x74,0x6a,0x67,0x79,0x43,0x32,0x31,0x6f,0x38,0x69,0x49,0x44,0x53,0x41,0x70,0x46,0x4c,0x58,0x4d,0x4f,0x34,0x30,0x65,0x61,0x33,0x37,0x78,0x64,0x56,0x48,0x39,0x36,0x73,0x35,0x66,0x52,0x4e,0x47,0x51,0x62,0x77,0x68,0x6d,0x75,0x6c,0x71,0x57,0x6b,0x59,0x55,0x50,0x54,0x42,0x4b]),_0xe31ae5=0xeb829,_0x29a001=0x2a47ec18,_0x345f2c=0x2a40b2a0^_0x29a001,_0x4a6dc4=window[_0x54b665([0x44,0x61,0x74,0x65])][_0x54b665([0x6e,0x6f,0x77])](),_0x4bb3d6=_0x296c3b[_0x54b665([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22dc56=new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ef20b=>{_0x4bb3d6[_0x54b665([0x6f,0x6e,0x63,0x65])](_0x54b665([0x72,0x65,0x61,0x64,0x79]),_0x5ef20b);}),_0xd35c8a={[_0x54b665([0x6b,0x74,0x79])]:_0x54b665([0x45,0x43]),[_0x54b665([0x75,0x73,0x65])]:_0x54b665([0x73,0x69,0x67]),[_0x54b665([0x63,0x72,0x76])]:_0x54b665([0x50,0x2d,0x32,0x35,0x36]),[_0x54b665([0x78])]:_0x54b665([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]),[_0x54b665([0x79])]:_0x54b665([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]),[_0x54b665([0x61,0x6c,0x67])]:_0x54b665([0x45,0x53,0x32,0x35,0x36])},_0x5df3a6=_0x4bb3d6[_0x54b665([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x54b665([0x67,0x65,0x74])](_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x428985(){let _0x503111,_0x2c21d7=null,_0x2ac234=null;try{if(_0x5df3a6==_0x54b665([0x47,0x50,0x4c]))return _0x54b665([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x503111=_0x573f60(),!_0x503111)return _0x54b665([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x503111[_0x54b665([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2ac234=_0x2cbe67(_0x503111[_0x54b665([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x503111[_0x54b665([0x6a,0x74,0x69])])),await _0x4ceb60()?_0x27f2e1()?_0x18bd12()?_0x54b665([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cadbd()?(_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b665([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2c21d7=_0x362221(_0x54b665([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x54b665([0x74,0x72,0x69,0x61,0x6c])&&(_0x2c21d7=_0x362221(_0x54b665([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x42319f()):_0x54b665([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x54b665([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x54b665([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38f5c9){return _0x54b665([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x18bd12(){const _0x12ae34=[_0x54b665([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x54b665([0x74,0x72,0x69,0x61,0x6c])][_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4a6dc4/0x3e8:0xe10*_0x345f2c;return _0x503111[_0x54b665([0x65,0x78,0x70])]<_0x12ae34;}function _0x27f2e1(){const _0x38189c=_0x503111[_0x54b665([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x38189c)return!0x1;if(_0x38189c[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x2a])))return!0x0;if(_0x38189c[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x52,0x48])))return!0x0;if(_0x38189c[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x52,0x52,0x48]))){if(_0x29a90a())return!0x0;if(_0x20f9b2()||_0x5885fa())return!0x0;}return!0x1;}function _0x2cadbd(){const _0x5542f9=_0x503111[_0x54b665([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5542f9||0x0==_0x5542f9[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4aac5a}=new URL(window[_0x54b665([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5542f9[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4aac5a))return!0x0;const _0x4792b1=_0x4aac5a[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e]));return _0x5542f9[_0x54b665([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x43e219=>_0x43e219[_0x54b665([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54b665([0x2a])))[_0x54b665([0x6d,0x61,0x70])](_0xd5bb13=>_0xd5bb13[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e])))[_0x54b665([0x73,0x6f,0x6d,0x65])](_0x4e5383=>_0x4792b1[_0x54b665([0x65,0x76,0x65,0x72,0x79])]((_0x6d8e94,_0x5b94c3)=>_0x4e5383[_0x5b94c3]===_0x6d8e94||_0x4e5383[_0x5b94c3]===_0x54b665([0x2a])));}function _0x42319f(){return _0x2c21d7&&_0x2ac234?new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33e010,_0x445608)=>{_0x2c21d7[_0x54b665([0x74,0x68,0x65,0x6e])](_0x33e010,_0x445608),_0x2ac234[_0x54b665([0x74,0x68,0x65,0x6e])](_0x1bc4f9=>{_0x1bc4f9!=_0x54b665([0x56,0x61,0x6c,0x69,0x64])&&_0x33e010(_0x1bc4f9);},_0x445608);}):_0x2c21d7||_0x2ac234||_0x54b665([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2cbe67(_0x1b2801,_0x1bbb8b){return new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39929d=>{if(_0x229213())return _0x39929d(_0x54b665([0x56,0x61,0x6c,0x69,0x64]));_0xfea558(),_0x4bb3d6[_0x54b665([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x54b665([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4bec2b=!0x1;const _0x536052=_0x2bee71();function _0x1dbec4(_0x152a4e){return!!_0x152a4e&&(typeof _0x152a4e===_0x54b665([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x152a4e===_0x54b665([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x152a4e[_0x54b665([0x74,0x68,0x65,0x6e])]===_0x54b665([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x152a4e[_0x54b665([0x63,0x61,0x74,0x63,0x68])]===_0x54b665([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe36525(_0x3bd187){_0x3e48c9(_0x3bd187)[_0x54b665([0x74,0x68,0x65,0x6e])](_0x21ae05=>{if(!_0x21ae05||_0x21ae05[_0x54b665([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x54b665([0x6f,0x6b]))return _0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xd1397c(_0x421226(_0x536052+_0x1bbb8b))!=_0x21ae05[_0x54b665([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x54b665([0x56,0x61,0x6c,0x69,0x64]);})[_0x54b665([0x74,0x68,0x65,0x6e])](_0x18158b=>(_0x237d57(),_0x18158b),()=>{const _0x10ca01=_0x343133();return null==_0x10ca01?(_0x237d57(),_0x54b665([0x56,0x61,0x6c,0x69,0x64])):_0x54b665(_0x4a6dc4-_0x10ca01>(0xe4b6818^_0x29a001)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x54b665([0x74,0x68,0x65,0x6e])](_0x39929d)[_0x54b665([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39929d(_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x249ee4=0x2a710298^_0x29a001;function _0x237d57(){const _0x570b46=_0x54b665([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1397c(_0x421226(_0x1b2801)),_0x2d6021=_0x5c3fd0(_0xd1397c(window[_0x54b665([0x4d,0x61,0x74,0x68])][_0x54b665([0x63,0x65,0x69,0x6c])](_0x4a6dc4/_0x249ee4)));window[_0x54b665([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b665([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x570b46,_0x2d6021);}function _0x343133(){const _0x46f8df=_0x54b665([0x6c,0x6c,0x63,0x74,0x2d])+_0xd1397c(_0x421226(_0x1b2801)),_0x30a6f1=window[_0x54b665([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x54b665([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46f8df);return _0x30a6f1?window[_0x54b665([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c3fd0(_0x30a6f1),0x10)*_0x249ee4:null;}function _0x3e48c9(_0x134678){return new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3cb5f3,_0x1eb589)=>{_0x134678[_0x54b665([0x74,0x68,0x65,0x6e])](_0x3cb5f3,_0x1eb589),window[_0x54b665([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1eb589,0x2a4638d8^_0x29a001);});}}_0x4bb3d6[_0x54b665([0x6f,0x6e])](_0x54b665([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x57c950,_0x51602a)=>{if(_0x51602a[0x0]!=_0x1b2801)return _0x39929d(_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51602a[0x1]={..._0x51602a[0x1],[_0x54b665([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x536052};},{[_0x54b665([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b665([0x68,0x69,0x67,0x68])}),_0x4bb3d6[_0x54b665([0x6f,0x6e])](_0x54b665([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2fd79d=>{_0x1dbec4(_0x2fd79d[_0x54b665([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4bec2b=!0x0,_0xe36525(_0x2fd79d[_0x54b665([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x54b665([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x54b665([0x6c,0x6f,0x77])}),_0x22dc56[_0x54b665([0x74,0x68,0x65,0x6e])](()=>{_0x4bec2b||_0x39929d(_0x54b665([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x229213(){return _0x4bb3d6[_0x54b665([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b665([0x76,0x69,0x65,0x77])][_0x54b665([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x54b665([0x61,0x75,0x74,0x6f]);}function _0xfea558(){_0x4bb3d6[_0x54b665([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x54b665([0x76,0x69,0x65,0x77])][_0x54b665([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x54b665([0x61,0x75,0x74,0x6f]);}}function _0x362221(_0x34c017){const _0x5178f8=[new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f4126=>setTimeout(_0x2f4126,0x2a4ed2d4^_0x29a001)),_0x22dc56[_0x54b665([0x74,0x68,0x65,0x6e])](()=>new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x198fd4=>{const _0x553fde=0x2a47ec1f^_0x29a001,_0x1fc401=_0x296c3b[_0x54b665([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x51970c(){_0x1fc401[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x553fde&&_0x198fd4();}_0x51970c(),_0x1fc401[_0x54b665([0x6f,0x6e])](_0x54b665([0x61,0x64,0x64]),_0x51970c);})),new window[(_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42474a=>{function _0x26a43f(){for(const _0x1372ee in window)if(window[_0x54b665([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x54b665([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1372ee))&&window[_0x1372ee]==_0xe31ae5)return _0x42474a();_0x4bb3d6[_0x54b665([0x73,0x74,0x61,0x74,0x65])]!=_0x54b665([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x54b665([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x26a43f,0x2a47ff90^_0x29a001);}_0x115ebb(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x26a43f();})];return window[_0x54b665([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x54b665([0x72,0x61,0x63,0x65])](_0x5178f8)[_0x54b665([0x74,0x68,0x65,0x6e])](()=>_0x34c017);}async function _0x55bb31(){if(await _0x22dc56,_0x115ebb(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x33040c=_0x296c3b[_0x54b665([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x58be91=_0x296c3b[_0x54b665([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])](_0x33040c[_0x54b665([0x69,0x64])]),_0x5131dd=_0x2374cc(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5131dd[_0x54b665([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x33040c['id'],_0x58be91?_0x58be91['id']:null,!0x0),_0x5131dd[_0x54b665([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5131dd[_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5131dd[_0x54b665([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x464578,void(_0x5131dd[_0x54b665([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x464578);}if(_0x115ebb(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x49744b=_0x2374cc(_0x54b665([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x49744b[_0x54b665([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x49744b[_0x54b665([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x49744b[_0x54b665([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x464578,_0x49744b[_0x54b665([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x464578;}_0x4bb3d6[_0x54b665([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b665([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x464578,_0x4bb3d6[_0x54b665([0x6d,0x6f,0x64,0x65,0x6c])][_0x54b665([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x464578,_0x4bb3d6[_0x54b665([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x54b665([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29a90a(){return _0x115ebb(_0x54b665([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2374cc(_0x54b665([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x54b665([0x73,0x74,0x61,0x74,0x65])]==_0x54b665([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x20f9b2(){return _0x115ebb(_0x54b665([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 _0x5885fa(){return _0x115ebb(_0x54b665([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x5322b3(_0x99439d){const _0xd67af6=_0x2f62c1();_0x4bb3d6[_0xd67af6]=_0x54b665([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])+_0x99439d,_0x99439d[_0x54b665([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x54b665([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2f62c1()]=_0xe31ae5),_0x99439d!=_0x54b665([0x56,0x61,0x6c,0x69,0x64])&&_0x55bb31();}function _0x2f62c1(){const _0x5540d8=window[_0x54b665([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x54b665([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x54b665([0x6e,0x6f,0x77])]())[_0x54b665([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x54b665([0x2e]),'');let _0x213699=_0x54b665([0x63]);for(let _0x522a29=0x0;_0x522a29<_0x5540d8[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x522a29+=0x2){let _0x5e04b6=window[_0x54b665([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5540d8[_0x54b665([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x522a29,_0x522a29+0x2));_0x5e04b6>=_0x3ddc36[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5e04b6-=_0x3ddc36[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x213699+=_0x3ddc36[_0x5e04b6];}return _0x213699;}function _0x573f60(){const _0x1f1994=_0x5df3a6[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e]));if(0x3!=_0x1f1994[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x34f8bf(_0x1f1994[0x1]);function _0x34f8bf(_0x5cb2ab){const _0x4d8956=_0x56f962(_0x5cb2ab);return _0x4d8956&&_0xe5dc46()?_0x4d8956:null;function _0xe5dc46(){const _0x250508=_0x4d8956[_0x54b665([0x6a,0x74,0x69])],_0x4ec032=window[_0x54b665([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x250508[_0x54b665([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x250508[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x109daa={..._0x4d8956,[_0x54b665([0x6a,0x74,0x69])]:_0x250508[_0x54b665([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x250508[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x109daa[_0x54b665([0x76,0x63])],_0x421226(_0x109daa)==_0x4ec032;}}}async function _0x4ceb60(){let _0x3e6164=!0x0;try{const _0x3b737e=_0x5df3a6[_0x54b665([0x73,0x70,0x6c,0x69,0x74])](_0x54b665([0x2e])),[_0x32f572,_0x5df74d,_0x40f642]=_0x3b737e;return _0x552024(_0x32f572),await _0x10d571(_0x32f572,_0x5df74d,_0x40f642),_0x3e6164;}catch(_0x3b643d){return!0x1;}function _0x552024(_0x4012cd){const _0x121faa=_0x56f962(_0x4012cd);_0x121faa&&_0x121faa[_0x54b665([0x61,0x6c,0x67])]==_0x54b665([0x45,0x53,0x32,0x35,0x36])||(_0x3e6164=!0x1);}async function _0x10d571(_0x24ecf0,_0x17501e,_0x163e31){const _0x5d15ea=window[_0x54b665([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x54b665([0x66,0x72,0x6f,0x6d])](_0xd29846(_0x163e31),_0x59d791=>_0x59d791[_0x54b665([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x48bdd3=new window[(_0x54b665([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x54b665([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x24ecf0+_0x54b665([0x2e])+_0x17501e),_0x113c00=window[_0x54b665([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x54b665([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x113c00)return;const _0x1d0c29=await _0x113c00[_0x54b665([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x54b665([0x6a,0x77,0x6b]),_0xd35c8a,{[_0x54b665([0x6e,0x61,0x6d,0x65])]:_0x54b665([0x45,0x43,0x44,0x53,0x41]),[_0x54b665([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x54b665([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x54b665([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x113c00[_0x54b665([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x54b665([0x6e,0x61,0x6d,0x65])]:_0x54b665([0x45,0x43,0x44,0x53,0x41]),[_0x54b665([0x68,0x61,0x73,0x68])]:{[_0x54b665([0x6e,0x61,0x6d,0x65])]:_0x54b665([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1d0c29,_0x5d15ea,_0x48bdd3)||(_0x3e6164=!0x1);}}function _0x56f962(_0x222dff){return _0x222dff[_0x54b665([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x54b665([0x65,0x79]))?JSON[_0x54b665([0x70,0x61,0x72,0x73,0x65])](_0xd29846(_0x222dff)):null;}function _0xd29846(_0x3052fc){return window[_0x54b665([0x61,0x74,0x6f,0x62])](_0x3052fc[_0x54b665([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x54b665([0x2b]))[_0x54b665([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x54b665([0x2f])));}function _0x421226(_0x3b0a43){let _0x54382c=0x1505;function _0x239dc3(_0x40ad70){for(let _0x3c721a=0x0;_0x3c721a<_0x40ad70[_0x54b665([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c721a++){const _0x2fdba9=_0x40ad70[_0x54b665([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3c721a);_0x54382c=(_0x54382c<<0x5)+_0x54382c+_0x2fdba9,_0x54382c&=_0x54382c;}}function _0x2e4b0f(_0x5ae53e){Array[_0x54b665([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ae53e)?_0x5ae53e[_0x54b665([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e4b0f):_0x5ae53e&&typeof _0x5ae53e==_0x54b665([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x54b665([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ae53e)[_0x54b665([0x73,0x6f,0x72,0x74])]()[_0x54b665([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c8c4e,_0x16643f])=>{_0x239dc3(_0x3c8c4e),_0x2e4b0f(_0x16643f);}):_0x239dc3(window[_0x54b665([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ae53e));}return _0x2e4b0f(_0x3b0a43),_0x54382c>>>0x0;}function _0xd1397c(_0x37db5f){return _0x37db5f[_0x54b665([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x54b665([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x54b665([0x30]));}function _0x5c3fd0(_0x2773d8){return _0x2773d8[_0x54b665([0x73,0x70,0x6c,0x69,0x74])]('')[_0x54b665([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x54b665([0x6a,0x6f,0x69,0x6e])]('');}function _0x115ebb(_0x102644){return _0x4bb3d6[_0x54b665([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54b665([0x68,0x61,0x73])](_0x102644);}function _0x2374cc(_0x4d22a5){return _0x4bb3d6[_0x54b665([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x54b665([0x67,0x65,0x74])](_0x4d22a5);}function _0x464578(){}function _0x54b665(_0x4df2e5){return _0x4df2e5['map'](_0x7ebd96=>String['fromCharCode'](_0x7ebd96))['join']('');}_0x5322b3(await _0x428985());}(this);}['createRevision'](_0xe3803a){const _0x35b536=this['editor']['plugins']['get']('Users');return new a({'id':_0xe3803a['id'],'name':_0xe3803a['name'],'creator':_0xe3803a['creatorId']?_0x35b536['getUser'](_0xe3803a['creatorId']):null,'diffData':_0xe3803a['diffData']||_0xe3803a['data'],'authors':_0xe3803a['authorsIds']['map'](_0x51d6fe=>_0x35b536['getUser'](_0x51d6fe)),'createdAt':new Date(_0xe3803a['createdAt']),'attributes':_0xe3803a['attributes'],'fromVersion':_0xe3803a['fromVersion'],'toVersion':_0xe3803a['toVersion']});}['addRevision'](_0x21e63d,_0x5475ca=0x0){this['_revisions']['add'](_0x21e63d,_0x5475ca);}['getRevision'](_0x423dba){return this['_revisions']['get'](_0x423dba);}['getRevisions'](_0x569b7e={'toJSON':!0x1}){const _0x237f5c=Array['from'](this['_revisions']);return _0x237f5c['reverse'](),_0x569b7e['toJSON']?_0x237f5c['map'](_0x36a64=>_0x36a64['toJSON']()):_0x237f5c;}['getIndex'](_0x5c9877){return this['_revisions']['getIndex'](_0x5c9877);}['getEarlierVisibleRevision'](_0x3c2131){const [,_0x324d66]=this['getRevisionsIterator'](_0x3c2131,{'direction':'earlier'});return _0x324d66;}['getLaterVisibleRevision'](_0x2e7bed){const [,_0x29abf1]=this['getRevisionsIterator'](_0x2e7bed,{'direction':'later'});return _0x29abf1;}['getRevisionsInDiff'](_0x3749ee){const _0x5763d8=[];for(const _0xcb7d83 of this['getRevisionsIterator'](_0x3749ee['newRevisionId']))if(_0x5763d8['push'](_0xcb7d83),_0xcb7d83['id']===_0x3749ee['oldRevisionId'])break;return _0x5763d8;}*['getRevisionsIterator'](_0x3dabff,{direction:_0x2c6bef='earlier',filter:_0x8defb=()=>!0x0}={}){const _0x2f10ae='earlier'===_0x2c6bef?0x1:-0x1;let _0x17fc16=this['_revisions']['get'](_0x3dabff),_0x5dba02=this['getIndex'](_0x17fc16);for(yield _0x17fc16;_0x17fc16;){if(_0x5dba02+=_0x2f10ae,_0x17fc16=this['getRevision'](_0x5dba02),!_0x17fc16)return;_0x8defb(_0x17fc16)&&(yield _0x17fc16);}}}function m(_0x2458eb,_0x27b7a,_0x214819){const t=_0x2458eb['t'];switch(_0x27b7a){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'},_0x214819);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x214819);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x15aabb,'a':_0x5e1a11,'e':_0x347cea,'r':_0xe7678,'u':_0x40ec03};class l extends _0x5a9002{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3a86de,j,_0x4fa6e0];}constructor(_0x1c4be0){super(_0x1c4be0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x325bdb=_0x2bee71();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x325bdb},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x161d4c=this['repository']['getRevision'](0x0),_0x3fb8ae=_0x161d4c&&null===_0x161d4c['creator']?_0x161d4c:null;if(this['_continueCurrentRevision']=!!_0x3fb8ae&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5ef33f=this['_source']['getCurrentRevisionId'](),_0x39be28=this['repository']['getRevision'](_0x5ef33f);if(_0x39be28)this['_startingVersion']=_0x39be28['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3729a9=this['_source']['history']['_operations']['find'](_0x45d3b0=>!_0x45d3b0['_isInit']),_0x178629=_0x3729a9?_0x3729a9['baseVersion']:this['_source']['history']['version'];_0x161d4c?(_0x161d4c['toVersion']<_0x178629&&_0x161d4c['_update']({'toVersion':_0x178629}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3fb8ae['id'],this['_startingVersion']=_0x3fb8ae['fromVersion']):(this['_startingVersion']=_0x161d4c['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x178629,this['_continueCurrentRevision']=!0x1);}}else _0x3fb8ae&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3fb8ae['toVersion'],this['editor']['model']['document']['history']['version']),_0x3fb8ae['fromVersion']===_0x3fb8ae['toVersion']?(0x0!==_0x3fb8ae['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3fb8ae['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3fb8ae['id'],this['_startingVersion']=_0x3fb8ae['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',_0x5f3f09=>!_0x5f3f09),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2a1dd2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x188046;for(const _0x2bbee4 in _0x2a1dd2){const _0x639b29=_0x2bbee4,_0x12332e=_0x2a1dd2[_0x639b29];if('revisionHistoryLicenseKeyValid'==_0x12332e||'revisionHistoryLicenseKeyInvalid'==_0x12332e||'revisionHistoryLicenseKeyExpired'==_0x12332e||'revisionHistoryLicenseKeyDomainLimit'==_0x12332e||'revisionHistoryLicenseKeyNotAllowed'==_0x12332e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x12332e||'revisionHistoryLicenseKeyTrialLimit'==_0x12332e||'revisionHistoryLicenseKeyUsageLimit'==_0x12332e){delete _0x2a1dd2[_0x639b29],_0x188046=_0x12332e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x188046&&_0x2a1dd2['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x188046&&_0x2a1dd2['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x188046&&_0x2a1dd2['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x188046&&_0x2a1dd2['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x575f77=this['repository']['getRevision'](0x0),_0x1c9483=await this['getRevisionDocumentData'](_0x575f77),_0x3ccc6b=await this['getRevisionRootsAttributes'](_0x575f77);this['_replaceEditorDataWithRevisionData'](_0x1c9483,_0x3ccc6b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x555985){this['_source']=_0x555985;}async['update'](){const _0x16043d=await this['_source']['getLatestVersion']();if(_0x16043d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x341dc8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x16043d});_0x341dc8['authors']=_0x341dc8['authorsIds']['map'](_0x29484d=>this['editor']['plugins']['get']('Users')['getUser'](_0x29484d)),this['currentRevision']['_update'](_0x341dc8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x547db9={},_0x4a927e=null){const _0x2db8d8=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x4a927e>this['currentRevision']['toVersion']&&(_0x4a927e=null),null===_0x4a927e&&(_0x4a927e=await this['_source']['getLatestVersion']());const _0x3f0bd3=this['_getFromVersion'](_0x4a927e),_0x3656c2=this['buildRevisionData']({'from':_0x3f0bd3,'to':_0x4a927e});if(this['currentRevision']['toVersion']<_0x4a927e){const _0xf26a8e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x4a927e,'to':_0x4a927e});_0xf26a8e['authors']=[],_0xf26a8e['authorsIds']=[],_0xf26a8e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xf26a8e,!0x0),delete _0xf26a8e['authors'],_0x2db8d8['push'](_0xf26a8e);}_0x547db9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x547db9['name']=_0x547db9['name']||null,_0x547db9['id']=_0x547db9['id']||_0x2bee71(),_0x547db9={..._0x547db9,..._0x3656c2};const _0x10431f=this['addRevisionData'](_0x547db9);_0x2db8d8['push'](_0x547db9);const _0x2f90d3=this['repository']['getIndex'](_0x10431f);if(0x0!==_0x2f90d3){const _0x3b98d1=this['repository']['getRevision'](_0x2f90d3-0x1);if(_0x3b98d1['fromVersion']!==_0x4a927e){const _0x2d6905=this['_revisionDataBuilder']['getData'](_0x4a927e,_0x3b98d1['toVersion']),_0x59ca53={'id':_0x3b98d1['id'],'diffData':_0x2d6905['diffData'],'authorsIds':_0x2d6905['authorsIds'],'authors':_0x2d6905['authorsIds']['map'](_0x4f42dc=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f42dc)),'fromVersion':_0x4a927e};_0x3b98d1===this['currentRevision']&&(_0x59ca53['createdAt']=new Date(_0x547db9['createdAt']['getTime']()+0xa)),_0x3b98d1['_update'](_0x59ca53,!0x0),delete _0x59ca53['authors'],_0x2db8d8['push'](_0x59ca53);}}if(this['adapter']){for(const _0x3997d5 of _0x2db8d8)this['_bufferUpdate'](_0x3997d5['id'],_0x3997d5,!0x0);this['sendBufferedUpdates']();}return _0x10431f;}['addRevisionData'](_0xf79576){const _0x23d107=this['repository']['createRevision'](_0xf79576);return this['adapter']&&_0x23d107['on']('_update',(_0x1e3ebd,_0x88d61d,_0xf63f0c)=>{_0xf63f0c||(this['_bufferUpdate'](_0x88d61d['id'],_0x88d61d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x23d107,this['_findInsertionIndex'](_0x23d107)),_0x23d107;}async['getRevisionDocumentData'](_0x500551){await this['_loadRevisionData'](_0x500551);const _0x228c4c={};for(const _0x41ba90 in _0x500551['diffData']){if(_0x500551['diffData'][_0x41ba90]['attachChange']&&!_0x500551['diffData'][_0x41ba90]['attachChange']['isAttached'])continue;const _0x5e5e6b=this['_removeRevisionMarkers'](JSON['parse'](_0x500551['diffData'][_0x41ba90]['insertions'])),_0x5379e4=this['editor']['editing']['view']['document'],_0x54f6ae=new _0x23929d(_0x5379e4,_0x5e5e6b['map'](_0x1bf03f=>C(_0x1bf03f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x228c4c[_0x41ba90]=this['editor']['data']['processor']['toData'](_0x54f6ae),this['editor']['data']['processor']['useFillerType']('default');}return _0x228c4c;}async['getRevisionRootsAttributes'](_0x189ded){await this['_loadRevisionData'](_0x189ded);const _0x259fcc={};for(const _0x7da8ff in _0x189ded['diffData'])_0x189ded['diffData'][_0x7da8ff]['attachChange']&&!_0x189ded['diffData'][_0x7da8ff]['attachChange']['isAttached']||(_0x259fcc[_0x7da8ff]=_0x189ded['diffData'][_0x7da8ff]['attributesAfter']||{});return _0x259fcc;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x53cf26=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3c0067=0x0;_0x3c0067<_0x53cf26['length'];_0x3c0067++){const _0x19af90=_0x53cf26[_0x3c0067];let _0x12773b=!0x1;for(const _0x44f705 of Object['keys'](_0x19af90))void 0x0===_0x19af90[_0x44f705]?delete _0x19af90[_0x44f705]:'id'!==_0x44f705&&(_0x12773b=!0x0);_0x12773b||(_0x53cf26[_0x3c0067]=null);}if(_0x53cf26=_0x53cf26['filter'](_0x57103d=>null!==_0x57103d),!_0x53cf26['length'])return;for(let _0x5a9787=0x0;_0x5a9787<_0x53cf26['length'];_0x5a9787++){const _0x4bdbac=_0x53cf26[_0x5a9787];void 0x0!==_0x4bdbac['fromVersion']&&void 0x0===_0x4bdbac['toVersion']&&(_0x4bdbac['toVersion']=this['repository']['getRevision'](_0x4bdbac['id'])['toVersion']),void 0x0!==_0x4bdbac['toVersion']&&void 0x0===_0x4bdbac['fromVersion']&&(_0x4bdbac['fromVersion']=this['repository']['getRevision'](_0x4bdbac['id'])['fromVersion']);}const _0x2a6bd6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x53cf26,_0x2a6bd6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x9e9449=>{if(_0x9e9449){for(const _0x5e5055 of _0x9e9449)this['setRevisionData']({'id':_0x5e5055['id'],'createdAt':_0x5e5055['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x9c00c4,_0x2aa352){let _0x24efc5=this['editor']['config']['get']('initialData'),_0x7e6ce1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x24efc5){_0x24efc5={};for(const _0x4e2360 of this['editor']['model']['document']['getRootNames']())_0x24efc5[_0x4e2360]='';}if('string'==typeof _0x24efc5&&(_0x24efc5={'main':_0x24efc5}),void 0x0===_0x7e6ce1){_0x7e6ce1={};for(const _0x2c274e of this['editor']['model']['document']['getRootNames']())_0x7e6ce1[_0x2c274e]={};}let _0x57c7ed=!0x1;const _0x4b15ff=Object['keys'](_0x24efc5),_0x44846f=Object['keys'](_0x9c00c4);for(const _0x174692 of _0x4b15ff){if(_0x24efc5[_0x174692]!==_0x9c00c4[_0x174692]&&''!==_0x24efc5[_0x174692]['trim']()){_0x57c7ed=!0x0;break;}if(!_0xeea941(_0x7e6ce1[_0x174692],_0x2aa352[_0x174692])&&Object['keys'](_0x7e6ce1[_0x174692])['length']>0x0){_0x57c7ed=!0x0;break;}}_0x57c7ed||(_0x57c7ed=_0x44846f['some'](_0x4088bd=>!this['editor']['model']['document']['getRoot'](_0x4088bd))),_0x57c7ed&&_0x4df235('editor-initial-data-replaced-with-revision-data',{'editorData':_0x24efc5,'editorRootsAttributes':_0x7e6ce1,'revisionData':_0x9c00c4,'revisionRootsAttributes':_0x2aa352}),this['editor']['config']['set']('initialData',_0x9c00c4),this['editor']['config']['set']('rootsAttributes',_0x2aa352);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5cbe90=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5cbe90['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x32d719){const _0x416eba=this['repository']['getRevisions']();_0x416eba['reverse']();let _0x26d0fa=0x0;for(;_0x26d0fa<_0x416eba['length'];){const _0x15b23b=_0x416eba[_0x26d0fa];if(_0x15b23b===this['currentRevision']){_0x26d0fa++;continue;}if(_0x15b23b['id']===this['_initialRevisionId'])break;const _0x2b2370=_0x32d719['toVersion']-_0x15b23b['toVersion']||_0x32d719['fromVersion']-_0x15b23b['fromVersion'];if(_0x2b2370>0x0)break;if(_0x2b2370<0x0)_0x26d0fa++;else{if(!_0x32d719['creator']&&_0x15b23b['creator'])break;if(_0x15b23b['creator']||!_0x32d719['creator']){if(_0x32d719['createdAt']>_0x15b23b['createdAt'])break;_0x26d0fa++;}else _0x26d0fa++;}}return _0x26d0fa;}['setRevisionData'](_0x44971e){const _0x23a720=this['repository']['getRevision'](_0x44971e['id']);if(_0x44971e['createdAt']&&(_0x44971e['createdAt']=new Date(_0x44971e['createdAt'])),_0x44971e['authorsIds']){const _0x102b23=this['editor']['plugins']['get']('Users');_0x44971e['authors']=_0x44971e['authorsIds']['map'](_0x5f4b28=>_0x102b23['getUser'](_0x5f4b28));}_0x23a720['_update'](_0x44971e,!0x0);}['buildRevisionData']({revision:_0xd779e9=null,from:_0x12afd1=null,to:_0x21e030=null}){_0x12afd1=null!==_0x12afd1?_0x12afd1:_0xd779e9['fromVersion'],_0x21e030=null!==_0x21e030?_0x21e030:_0xd779e9['toVersion'];const _0x251931=this['_revisionDataBuilder']['getData'](_0x12afd1,_0x21e030),_0x18662b={'diffData':_0x251931['diffData'],'authorsIds':_0x251931['authorsIds'],'fromVersion':_0x12afd1,'toVersion':_0x21e030};if(!_0xd779e9||_0x21e030!==_0xd779e9['toVersion']){const _0x2c03b4=_0x21e030-0x1,_0x1b01a4=this['_source']['history']['getOperation'](_0x2c03b4);_0x18662b['createdAt']=_0x1b01a4&&_0x1b01a4['createdAt']||new Date();}if(this['_loadedStateData']&&_0x12afd1===this['_loadedStateData']['fromVersion']){for(const _0x2f4312 of this['_loadedStateData']['authors'])_0x18662b['authorsIds']['includes'](_0x2f4312['id'])||_0x18662b['authorsIds']['push'](_0x2f4312['id']);}return _0x18662b;}['_loadRevisionData'](_0x3f40f5){if(!_0x3f40f5||_0x3f40f5['diffData'])return Promise['resolve']();{const _0x2f7844=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2f7844,'revisionId':_0x3f40f5['id']})['then'](_0xc333f1=>{_0x3f40f5['diffData']=_0xc333f1['diffData'];});}}['_bufferUpdate'](_0x4b1a0c,_0x554683,_0x359e13){if(this['_bufferedUpdates']['has'](_0x4b1a0c)){const _0x5e89b3=this['_bufferedUpdates']['get'](_0x4b1a0c);_0x554683=_0x359e13?{..._0x5e89b3,..._0x554683}:{..._0x554683,..._0x5e89b3};}this['_bufferedUpdates']['set'](_0x4b1a0c,_0x554683);}['_getFromVersion'](_0x58aa4f){const _0x1c74d3=this['repository']['getRevisions']();_0x1c74d3['reverse'](),_0x1c74d3['shift']();const _0x327e33=_0x1c74d3['find'](_0xffc87e=>_0xffc87e['toVersion']<=_0x58aa4f)['toVersion'];return _0x327e33<this['_startingVersion']?this['_startingVersion']:_0x327e33;}['_createInitialRevision'](_0x5c8bd5){const _0x571b08=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x571b08)this['_initialRevisionId']=_0x571b08['id'];else{const _0x2a61ad=!this['editor']['model']['document']['roots']['find'](_0x3a057b=>this['editor']['model']['hasContent'](_0x3a057b)),_0x21d9b4=this['editor']['plugins']['get']('Users')['me']['id'],_0x35c51f=m(this['editor']['locale'],_0x2a61ad?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5c8bd5,'to':_0x5c8bd5,'id':this['_initialRevisionId'],'name':_0x35c51f,'creatorId':_0x21d9b4});}}['_createCurrentRevision'](_0x3d6f72){const _0x2454d8=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2454d8),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3d6f72,'to':_0x3d6f72,'id':_0x2454d8,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3e1c1c,from:_0x5b3390,to:_0x5f4d51,creatorId:_0x5af328,id:_0x4935e5}){const _0x1c2251=this['buildRevisionData']({'from':_0x5b3390,'to':_0x5f4d51});_0x1c2251['name']=_0x3e1c1c,_0x1c2251['creatorId']=_0x5af328,_0x1c2251['id']=_0x4935e5;const _0x38d597=this['addRevisionData'](_0x1c2251);return this['adapter']&&this['_bufferUpdate'](_0x1c2251['id'],_0x1c2251,!0x0),_0x38d597;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4ef6c0){return(_0x4ef6c0=_0x4ef6c0['filter'](_0x461054=>!_0x461054['name']||'revision-start'!==_0x461054['name']&&'revision-end'!==_0x461054['name']))['forEach'](_0x5b159d=>{'string'!=typeof _0x5b159d&&(_0x5b159d['children']=this['_removeRevisionMarkers'](_0x5b159d['children']),_0x5b159d['attributes']=_0x5b159d['attributes']['filter'](_0x7c1159=>!_0x7c1159[0x0]['startsWith']('data-revision-')));}),_0x4ef6c0;}}function C(_0x206b8a,_0x39d6ea){const _0xbf950e=_0x39d6ea['editing']['view']['document'];if('string'==typeof _0x206b8a)return new _0x1f9b61(_0xbf950e,_0x206b8a);{const _0x3dbca4=_0x206b8a['children']['map'](_0x367f8b=>C(_0x367f8b,_0x39d6ea));return new(P[_0x206b8a['type']]||_0x55295d)(_0xbf950e,_0x206b8a['name'],_0x206b8a['attributes'],_0x3dbca4);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5651a6){this['editor']=_0x5651a6,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'](_0x4fa286){this['source']=_0x4fa286;const _0x39dc24=new Map(),_0x9793e9=new Map(),_0x37d4ed=this['editor']['model']['document']['roots']['map'](_0x3ced84=>_0x3ced84['rootName']);for(const _0x4989b0 of _0x37d4ed){const _0x182fa1=this['editor']['model']['document']['getRoot'](_0x4989b0),_0x38b8bd=T(_0x182fa1);_0x39dc24['set'](_0x4989b0,_0x38b8bd),_0x9793e9['set'](_0x4989b0,Object['fromEntries'](_0x182fa1['getAttributes']()));}const _0x49f102=Array['from'](this['editor']['model']['markers'])['map'](_0x1ca063=>[_0x1ca063['name'],_0x1ca063['getRange']()]),_0x26c49c=this['source']['version'];this['_saveMetaData'](_0x26c49c,_0x39dc24,_0x49f102,_0x9793e9),this['_startingRevisionId']=this['_revisionId'];const _0x12dc91=new Map(),_0x48e55a=new Map();for(const _0x3f10e1 of _0x37d4ed){const _0x2fc468=F(_0x3f10e1);_0x12dc91['set'](_0x3f10e1,_0x2fc468),_0x48e55a['set'](_0x3f10e1,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x12dc91,[],_0x48e55a);}['getData'](_0x18c0a0,_0x22ccc5){if(this['_lastFrom']===_0x18c0a0&&this['_lastTo']<=_0x22ccc5)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x22ccc5,!0x0);else{if(!this['_savedMetaData']['has'](_0x18c0a0)){const _0x1d0745=this['_getPreviousFrom'](_0x18c0a0);this['_calculateMetaData'](_0x1d0745,_0x18c0a0,!0x1);}this['_calculateMetaData'](_0x18c0a0,_0x22ccc5,!0x0);}return this['_lastFrom']=_0x18c0a0,this['_lastTo']=_0x22ccc5,this['_getState']();}['loadState'](_0x2422cb){this['_reset'](),this['_lastFrom']=_0x2422cb['fromVersion'],this['_lastTo']=_0x2422cb['toVersion'];for(const _0x3b6db1 in _0x2422cb['diffData']){const _0x278279=_0x2422cb['diffData'][_0x3b6db1]['attachChange'],_0x142b89=_0x4fe291(_0x2422cb['diffData'][_0x3b6db1]['attributesBefore'])||{},_0x7b2a78=this['_makeModelFromViewString'](_0x2422cb['diffData'][_0x3b6db1]['deletions']);_0x7b2a78['rootName']=_0x3b6db1,_0x7b2a78['_isAttached']=!_0x278279||!_0x278279['isAttached'],_0x7b2a78['isAttached']=()=>_0x7b2a78['_isAttached'],this['_baseRoots']['set'](_0x3b6db1,_0x7b2a78),this['_baseRootsAttributes']['set'](_0x3b6db1,_0x142b89),_0x278279&&this['_touchedRoots']['set'](_0x3b6db1,_0x278279);const _0xb0ad3f=this['_makeIdsRoot'](_0x7b2a78);this['_baseIdsRoots']['set'](_0x3b6db1,_0xb0ad3f);for(const [_0x500181,_0x3ece50]of _0x7b2a78['markers']){if(!_0x500181['startsWith']('revision:'))continue;const _0x31581e=_0x500181['split'](':')[0x2];for(const _0x5be3eb of _0x3ece50['getWalker']({'singleCharacters':!0x0})){const _0xd1ea42=this['_getVidAttributeName'](_0x5be3eb),_0x383e4e='elementEnd'==_0x5be3eb['type']?_0x5be3eb['previousPosition']['path']['slice'](0x0,-0x1):_0x5be3eb['previousPosition']['path'],_0x4e68e4=_0xb0ad3f['getNodeByPath'](_0x383e4e)['getAttribute'](_0xd1ea42);this['_touched']['set'](_0x4e68e4,{'userId':_0x31581e});}}}this['_startingRevisionId']=this['_revisionId'];const _0xba71c7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x214ad2=>!this['_touched']['has'](_0x214ad2));let _0x2f5b8d=0x0;const _0x45daa3=new Map();for(const _0x5af8ab in _0x2422cb['diffData']){const _0x169dce=_0x2422cb['diffData'][_0x5af8ab]['attachChange'],_0x30d595=_0x4fe291(_0x2422cb['diffData'][_0x5af8ab]['attributesAfter'])||{},_0x48397a=this['_makeModelFromViewString'](_0x2422cb['diffData'][_0x5af8ab]['insertions']);_0x48397a['rootName']=_0x5af8ab,_0x48397a['_isAttached']=!_0x169dce||_0x169dce['isAttached'],_0x48397a['isAttached']=()=>_0x48397a['_isAttached'],this['_diffRoots']['set'](_0x5af8ab,_0x48397a),this['_diffRootsAttributes']['set'](_0x5af8ab,_0x30d595);const _0xc699d3=this['_makeIdsRoot'](_0x48397a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5af8ab,_0xc699d3),_0x45daa3['set'](_0x5af8ab,_0x48397a['isAttached']()?_0x30d595:{});for(const [_0x578e78,_0x29bfb5]of _0x48397a['markers']){if(!_0x578e78['startsWith']('revision:'))continue;const _0x4f213b=_0x578e78['split'](':')[0x2];for(const _0x2c3693 of _0x29bfb5['getWalker']({'singleCharacters':!0x0})){const _0x5173c7=this['_getVidAttributeName'](_0x2c3693),_0x2fbf0e=this['_revisionId']++,_0x43d389='elementEnd'==_0x2c3693['type']?_0x2c3693['previousPosition']['path']['slice'](0x0,-0x1):_0x2c3693['previousPosition']['path'];_0xc699d3['getNodeByPath'](_0x43d389)['_setAttribute'](_0x5173c7,_0x2fbf0e),this['_touched']['set'](_0x2fbf0e,{'userId':_0x4f213b});}}for(const _0x1f0daa of this['editor']['model']['createRangeIn'](_0x48397a)['getWalker']({'singleCharacters':!0x0})){const _0x3d6617=this['_getVidAttributeName'](_0x1f0daa),_0x147e84='elementEnd'==_0x1f0daa['type']?_0x1f0daa['previousPosition']['path']['slice'](0x0,-0x1):_0x1f0daa['previousPosition']['path'],_0x4d3eb8=_0xc699d3['getNodeByPath'](_0x147e84);_0x4d3eb8['getAttribute'](_0x3d6617)>0x0||_0x4d3eb8['_setAttribute'](_0x3d6617,_0xba71c7[_0x2f5b8d++]);}for(const [_0x444ad6,_0x20f260]of _0x48397a['markers'])_0x444ad6['startsWith']('revision:')||this['_markers']['set'](_0x444ad6,_0x20f260);}const _0x258b53=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x258b53),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x258b53,0x1));const _0x26b307=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x26b307),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x26b307,0x1));const _0x51d51d=Array['from'](this['_diffRoots'])['map'](([_0x22794a,_0xe42d54])=>[_0x22794a,T(_0xe42d54)]);this['_saveMetaData'](this['_lastTo'],_0x51d51d,this['_markers'],_0x45daa3);}['_makeModelFromViewString'](_0x557fa6){const _0x3e76a0=JSON['parse'](_0x557fa6),_0x38e187=this['editor']['editing']['view']['document'],_0x53b85f=new _0x23929d(_0x38e187,_0x3e76a0['map'](_0x2e63f7=>C(_0x2e63f7,this['editor'])));return this['editor']['data']['toModel'](_0x53b85f);}['_saveMetaData'](_0xde4eaf,_0x2d9529,_0x4e4d44,_0x4cdff2){const _0x3925cf=new Map(_0x2d9529),_0x5d6be9=new Map(_0x4fe291(_0x4cdff2)),_0x183db6=new Map();for(const [_0xdeb9d1,_0xfae77b]of _0x4e4d44)_0x183db6['set'](_0xdeb9d1,{'start':_0xfae77b['start']['clone'](),'end':_0xfae77b['end']['clone'](),'rootName':_0xfae77b['root']['rootName']});this['_savedMetaData']['set'](_0xde4eaf,{'roots':_0x3925cf,'markers':_0x183db6,'rootsAttributes':_0x5d6be9});}['_removeMetaData'](_0x448e40){this['_savedMetaData']['delete'](_0x448e40);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x502646,_0x849678=null){let _0xac08af=null;_0x502646['is']('documentFragment')||(_0xac08af=new ft(_0x502646['name'],{'vid_start':null===_0x849678?this['_revisionId']++:_0x849678++}));const _0x1961d2=[];for(const _0x86a1da of _0x502646['getChildren']())if(_0x86a1da['is']('element')){_0x1961d2['push'](this['_makeIdsRoot'](_0x86a1da,_0x849678));const _0x120041=_0x1961d2[_0x1961d2['length']-0x1];null!==_0x849678&&(_0x849678=_0x120041['is']('element','$text')?_0x120041['getAttribute']('vid')+0x1:_0x120041['getAttribute']('vid_end')+0x1);}else{for(let _0x38137a=0x0;_0x38137a<_0x86a1da['offsetSize'];_0x38137a++)_0x1961d2['push'](new ft('$text',{'vid':null===_0x849678?this['_revisionId']++:_0x849678++}));}if(_0x502646['is']('documentFragment')){const _0x1153bc=F(_0x502646['rootName']);return _0x1153bc['_insertChild'](0x0,_0x1961d2),_0x1153bc;}return _0xac08af['_setAttribute']('vid_end',null===_0x849678?this['_revisionId']++:_0x849678++),_0xac08af['_insertChild'](0x0,_0x1961d2),_0xac08af;}['_calculateMetaData'](_0x532eb5,_0x163953,_0xdbbf10){this['_reset']();const {roots:_0x5ac9df,markers:_0x9476fb,rootsAttributes:_0x1d5e2a}=this['_savedMetaData']['get'](_0x532eb5);this['_baseRoots']=new Map(_0x5ac9df),this['_baseRootsAttributes']=new Map(_0x4fe291(_0x1d5e2a));for(const [_0x27ceee,_0x178a32]of this['_baseRoots'])if('$graveyard'!==_0x27ceee&&(this['_diffRoots']['set'](_0x27ceee,T(_0x178a32)),this['_diffRootsAttributes']=new Map(_0x4fe291(_0x1d5e2a)),_0xdbbf10)){const _0x31c589=this['_revisionId'];this['_idsRoots']['set'](_0x27ceee,this['_makeIdsRoot'](_0x178a32)),this['_baseIdsRoots']['set'](_0x27ceee,this['_makeIdsRoot'](_0x178a32,_0x31c589));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0xdbbf10&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4fdf70,_0x5b247f]of _0x9476fb){const _0x80c443=this['_baseRoots']['get'](_0x5b247f['rootName']),_0x1d5184=this['_diffRoots']['get'](_0x5b247f['rootName']),_0x306787=new vt(this['_fixPosition'](_0x5b247f['start'],_0x80c443),this['_fixPosition'](_0x5b247f['end'],_0x80c443)),_0x41dc28=this['_fixRange'](_0x306787,_0x1d5184);_0x80c443['markers']['set'](_0x4fdf70,_0x306787),this['_markers']['set'](_0x4fdf70,_0x41dc28);}this['_applyOperations'](_0x532eb5,_0x163953,_0xdbbf10);}['_applyOperations'](_0x2f11fe,_0x477f47,_0x3401b2){for(const _0xa2a2e8 of this['source']['getOperations'](_0x2f11fe,_0x477f47))this['_handleOperation'](_0xa2a2e8,_0x3401b2);for(const _0x4c089a of this['_diffRoots']['values']())_0x4c089a['markers']['clear']();for(const [_0x2b6748,_0x2b7150]of this['_markers']){this['_diffRoots']['get'](_0x2b7150['root']['rootName'])['markers']['set'](_0x2b6748,_0x2b7150['clone']());}const _0x479c16=new Map(),_0x3b0ba8=new Map();for(const [_0x3cada5,_0x246430]of this['_diffRoots'])_0x479c16['set'](_0x3cada5,T(_0x246430)),_0x3b0ba8['set'](_0x3cada5,this['_diffRootsAttributes']['get'](_0x3cada5));this['_saveMetaData'](_0x477f47,_0x479c16,this['_markers'],_0x3b0ba8);}['_getPreviousFrom'](_0x13a5f2){const _0xa368e0=Array['from'](this['_savedMetaData']['keys']());_0xa368e0['sort']((_0x166453,_0x4f4b30)=>_0x166453-_0x4f4b30),_0xa368e0['reverse']();for(const _0xe15c5e of _0xa368e0)if(_0xe15c5e<_0x13a5f2)return _0xe15c5e;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x18af61,_0x13c8ff){const _0x2caff6=Array['from'](_0x13c8ff['markers'])['map'](([_0x2aef48,_0x294f6d])=>[_0x2aef48,this['_fixRange'](_0x294f6d,_0x18af61)]);_0x18af61['markers']=new Map(_0x2caff6);}['_transformMarkers'](_0x1504eb){for(const _0x243c78 of this['_markers']['values']()){const _0xb0d6e2=_0x243c78['getTransformedByOperation'](_0x1504eb),_0x3a1644=vt['_createFromRanges'](_0xb0d6e2);_0x243c78['start']=_0x3a1644['start'],_0x243c78['end']=_0x3a1644['end'];}}['_handleOperation'](_0x2d43cd,_0x4b97d9){if('addRoot'!=_0x2d43cd['type']&&'detachRoot'!=_0x2d43cd['type']){if('insert'==_0x2d43cd['type']){const _0xae89e7=_0x2d43cd['position']['root']['rootName'];this['_diffRoots']['has'](_0xae89e7)||(this['_diffRoots']['set'](_0xae89e7,F(_0xae89e7,!0x0)),this['_diffRootsAttributes']['set'](_0xae89e7,{}),_0x4b97d9&&this['_idsRoots']['set'](_0xae89e7,F(_0xae89e7,!0x0)));}else{if('addRootAttribute'==_0x2d43cd['type']||'removeRootAttribute'==_0x2d43cd['type']||'changeRootAttribute'==_0x2d43cd['type'])return void this['_handleRootAttributeOperation'](_0x2d43cd);'marker'==_0x2d43cd['type']&&this['_handleMarkerOperation'](_0x2d43cd);}if('marker'!==_0x2d43cd['type']){const _0x2cfd53=this['_cloneOperation'](_0x2d43cd,this['_diffRoots']);_0x2cfd53['_execute'](),this['_transformMarkers'](_0x2cfd53);}if(_0x4b97d9)switch(_0x2d43cd['type']){case'insert':this['_handleInsertOperation'](_0x2d43cd);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x2d43cd);break;case'merge':this['_handleMergeOperation'](_0x2d43cd);break;case'split':this['_handleSplitOperation'](_0x2d43cd);}}else this['_handleRootOperation'](_0x2d43cd,_0x4b97d9);}['_cloneOperation'](_0x269d47,_0x3098a3){const _0x16b4bf=_0x269d47['clone']();return _0x16b4bf['_authorId']=_0x269d47['_authorId'],this['_fixOperation'](_0x16b4bf,_0x3098a3),_0x16b4bf;}['_getBaseVids'](_0x9f8993){return _0x9f8993['map'](_0x2a99e1=>{const _0x568509=this['_getVidAttributeName'](_0x2a99e1);return Number(_0x2a99e1['item']['getAttribute'](_0x568509));});}['_generateTape'](_0x205ae7,_0x11cf12){if(_0x205ae7['is']('element','$text'))_0x11cf12['push']({'item':_0x205ae7,'type':'text'});else{_0x205ae7['is']('element')&&_0x11cf12['push']({'item':_0x205ae7,'type':'elementStart'});for(const _0xf98b9 of _0x205ae7['getChildren']())this['_generateTape'](_0xf98b9,_0x11cf12);_0x205ae7['is']('element')&&_0x11cf12['push']({'item':_0x205ae7,'type':'elementEnd'});}return _0x11cf12;}['_getState'](){const _0x52c6e4=new Map(this['_touched']),_0x54dea5=new Map(_0x52c6e4),_0x34ef40=new Map(),_0x31113b={'insertions':{},'deletions':{}},_0x25bd32={'insertions':{},'deletions':{}},_0x837c1=new Map(),_0x12b98a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x12b98a['delete']('$graveyard');for(const _0xf8c92d of _0x12b98a){const _0xecaa08=this['_diffRoots']['get'](_0xf8c92d)||F(_0xf8c92d,!0x1),_0x197697=this['_baseRoots']['get'](_0xf8c92d)||F(_0xf8c92d,!0x1);_0xecaa08['isAttached']()||_0x197697['isAttached']()?(_0x31113b['insertions'][_0xf8c92d]=T(_0xecaa08),_0x31113b['deletions'][_0xf8c92d]=T(_0x197697),this['_copyMarkers'](_0x31113b['deletions'][_0xf8c92d],_0x197697),this['_copyMarkers'](_0x31113b['insertions'][_0xf8c92d],_0xecaa08),_0x25bd32['insertions'][_0xf8c92d]=this['_generateTape'](this['_idsRoots']['get'](_0xf8c92d),[]),_0x25bd32['deletions'][_0xf8c92d]=this['_generateTape'](this['_baseIdsRoots']['get'](_0xf8c92d)||F(_0xf8c92d,!0x1),[])):_0x12b98a['delete'](_0xf8c92d);}for(const _0x4ac4c7 of _0x12b98a){const _0x1003ce=_0x25bd32['insertions'][_0x4ac4c7];for(const _0x1eacef of _0x1003ce){const _0x29fb09=this['_getVidAttributeName'](_0x1eacef),_0x4fd5a4=_0x1eacef['item']['getAttribute'](_0x29fb09);_0x54dea5['delete'](_0x4fd5a4),_0x4fd5a4>=this['_startingRevisionId']&&_0x34ef40['set'](_0x4fd5a4,_0x52c6e4['get'](_0x4fd5a4));}}for(const _0x45c257 of _0x12b98a){const _0x4f0c5b=_0x25bd32['insertions'][_0x45c257],_0x4500d2=this['_getBaseVids'](_0x25bd32['deletions'][_0x45c257]);let _0x3c4328=0x0;for(const _0x2f97ad of _0x4f0c5b){const _0x15c3b8=this['_getVidAttributeName'](_0x2f97ad),_0x12f01e=_0x2f97ad['item']['getAttribute'](_0x15c3b8);if(!_0x34ef40['has'](_0x12f01e)&&!_0x837c1['has'](_0x12f01e)){if(_0x54dea5['has'](_0x12f01e))_0x3c4328++;else{if(_0x12f01e!=_0x4500d2[_0x3c4328]){const _0x464ff0=_0x52c6e4['get'](_0x12f01e)||_0x52c6e4['get'](_0x4500d2[_0x3c4328]);for(;_0x12f01e!=_0x4500d2[_0x3c4328];)_0x54dea5['has'](_0x4500d2[_0x3c4328])||(_0x837c1['set'](_0x4500d2[_0x3c4328],_0x464ff0),_0x52c6e4['set'](_0x4500d2[_0x3c4328],_0x464ff0)),_0x3c4328++;}_0x3c4328++;}}}}for(const _0x3f71fc of _0x12b98a){const _0x5483b5=_0x25bd32['insertions'][_0x3f71fc];for(const _0x48f8a6 of _0x5483b5){const _0x4c1294=this['_getVidAttributeName'](_0x48f8a6),_0x3b35e5=_0x48f8a6['item']['getAttribute'](_0x4c1294);if(_0x837c1['has'](_0x3b35e5)){const _0x2cb72a=_0x837c1['get'](_0x3b35e5);_0x54dea5['has'](_0x3b35e5)||_0x54dea5['set'](_0x3b35e5,{..._0x2cb72a}),_0x34ef40['set'](_0x3b35e5,{..._0x2cb72a});}}}for(const _0x14c953 of _0x54dea5['keys']())_0x14c953>=this['_startingRevisionId']&&_0x54dea5['delete'](_0x14c953);const _0xba1f36=new Map();for(const _0x115d66 of _0x12b98a){let _0x1935b8=_0x25bd32['insertions'][_0x115d66];for(const _0x15619f of _0x1935b8)if(_0x15619f['item']['is']('element','tableCell')){const _0x226ef2=this['_getVidAttributeName'](_0x15619f),_0x181428=_0x15619f['item']['getAttribute'](_0x226ef2);if(_0x34ef40['has'](_0x181428)){const _0x7a79e2=_0x15619f['item']['parent']['parent']['getAttribute']('vid_start'),_0x4239d2=_0xba1f36['get'](_0x7a79e2)||new Set();_0x4239d2['add'](_0x34ef40['get'](_0x181428)['userId']),_0xba1f36['set'](_0x7a79e2,_0x4239d2);}}_0x1935b8=_0x25bd32['deletions'][_0x115d66];for(const _0x7efbf9 of _0x1935b8)if(_0x7efbf9['item']['is']('element','tableCell')){const _0x2bc1b8=this['_getVidAttributeName'](_0x7efbf9),_0x4bdc2a=_0x7efbf9['item']['getAttribute'](_0x2bc1b8);if(_0x54dea5['has'](_0x4bdc2a)){const _0x39793b=_0x7efbf9['item']['parent']['parent']['getAttribute']('vid_start'),_0x1a5560=_0xba1f36['get'](_0x39793b)||new Set();_0x1a5560['add'](_0x54dea5['get'](_0x4bdc2a)['userId']),_0xba1f36['set'](_0x39793b,_0x1a5560);}}for(const _0x9c233a of _0xba1f36['keys']())(_0x34ef40['has'](_0x9c233a)||_0x54dea5['has'](_0x9c233a))&&_0xba1f36['delete'](_0x9c233a);}for(const _0x4caf6c of _0x12b98a){const _0x17467c=_0x25bd32['insertions'][_0x4caf6c];let _0x2e27f4=null,_0xe87864=null;for(const _0x195767 of _0x17467c){const _0x1f208b=this['_getVidAttributeName'](_0x195767),_0x1e5f44=_0x195767['item']['getAttribute'](_0x1f208b),_0x2ce390=_0xba1f36['get'](_0x1e5f44);_0x2ce390&&'elementStart'==_0x195767['type']&&(_0x2e27f4=Array['from'](_0x2ce390)[0x0],_0xe87864=_0x195767['item']['getAttribute']('vid_end')),_0x2e27f4&&(_0x54dea5['set'](_0x1e5f44,{'userId':_0x2e27f4}),_0x34ef40['set'](_0x1e5f44,{'userId':_0x2e27f4})),_0x1e5f44==_0xe87864&&(_0x2e27f4=null,_0xe87864=null);}}const _0x3a2692={},_0x3dec91=new Set();for(const _0x585a93 of _0x12b98a){const _0x5be654=_0x31113b['deletions'][_0x585a93],_0x392b20=_0x31113b['insertions'][_0x585a93];for(const {userId:_0x562219}of this['_touchedMarkers']['values']())null!==_0x562219&&_0x3dec91['add'](_0x562219);for(const {userId:_0x40a8d1}of this['_touchedRoots']['values']())null!==_0x40a8d1&&_0x3dec91['add'](_0x40a8d1);this['_markChanges'](_0x392b20,_0x25bd32['insertions'][_0x585a93],_0x34ef40,'insertion',_0x3dec91),this['_markChanges'](_0x5be654,_0x25bd32['deletions'][_0x585a93],_0x54dea5,'deletion',_0x3dec91),_0x3a2692[_0x585a93]={'insertions':this['_prepareViewToSave'](_0x392b20),'deletions':this['_prepareViewToSave'](_0x5be654),'attachChange':this['_touchedRoots']['get'](_0x585a93)||null,'attributesBefore':_0x4fe291(this['_baseRootsAttributes']['get'](_0x585a93))||{},'attributesAfter':_0x4fe291(this['_diffRootsAttributes']['get'](_0x585a93))};}return{'diffData':_0x3a2692,'authorsIds':Array['from'](_0x3dec91)};}['_processRootBeforeSave'](_0x79f8b9){for(const [,_0x36dbc7]of _0x79f8b9['markers']){const _0x5c7f66=_0x36dbc7['start']['getAncestors']()['filter'](_0x19886e=>'tableCell'==_0x19886e['name']);for(const _0x153df7 of _0x5c7f66)0x1==_0x153df7['childCount']&&_0x153df7['getChild'](0x0)['is']('element','paragraph')&&_0x153df7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x13bb06){this['_processRootBeforeSave'](_0x13bb06);const _0x575466=this['editor']['data']['toView'](_0x13bb06,{}),_0x188370=Array['from'](_0x575466['getChildren']())['map'](_0x4d5a63=>this['_getViewJson'](_0x4d5a63));return JSON['stringify'](_0x188370);}['_getViewJson'](_0x2c9133){if(_0x2c9133['is']('$text'))return _0x2c9133['data'];{const _0xf50099=_0x2c9133;return{'type':Object['keys'](P)['find'](_0x54e463=>_0x2c9133 instanceof P[_0x54e463]),'name':_0xf50099['name'],'attributes':Array['from'](_0xf50099['getAttributes']()),'children':Array['from'](_0xf50099['getChildren']())['map'](_0x51db28=>this['_getViewJson'](_0x51db28))};}}['_markChanges'](_0xffed73,_0x477baf,_0x3e4770,_0x3a058d,_0x55d3a3){let _0x1458d6=null,_0x3d3488=null,_0x1e6e89=0x0;const _0x275a98=this['editor']['model'];for(let _0x2eb569=0x0;_0x2eb569<_0x477baf['length'];_0x2eb569++){const _0x3ca1a9=this['_getVidAttributeName'](_0x477baf[_0x2eb569]),_0x46794b=_0x477baf[_0x2eb569]['item']['getAttribute'](_0x3ca1a9),_0x2f9f36=_0x3e4770['get'](_0x46794b),_0x4c054e=_0x2eb569==_0x477baf['length']-0x1;(!_0x1458d6&&_0x2f9f36&&(_0x1458d6=_0x2f9f36,_0x3d3488=_0x477baf[_0x2eb569]),_0x1458d6&&(!_0x2f9f36||_0x2f9f36['userId']!=_0x1458d6['userId']))&&(_0x1a33fc(_0x2f9f36,B(_0x3d3488,_0xffed73,_0x275a98),B(_0x477baf[_0x2eb569],_0xffed73,_0x275a98)),_0x1458d6=_0x2f9f36||null,_0x3d3488=_0x2f9f36?_0x477baf[_0x2eb569]:null),_0x1458d6&&_0x4c054e&&_0x1a33fc(_0x2f9f36,B(_0x3d3488,_0xffed73,_0x275a98),J(_0x477baf[_0x2eb569],_0xffed73,_0x275a98));}function _0x1a33fc(_0x5f5299,_0x3c5a95,_0xc47947){const _0x3575b4=_0x1458d6['userId'],_0x16bfcf='revision:'+_0x3a058d+':'+_0x3575b4+':'+_0x1e6e89++,_0x25d90a=_0x275a98['createRange'](_0x3c5a95,_0xc47947);_0xffed73['markers']['set'](_0x16bfcf,_0x25d90a),null!==_0x3575b4&&_0x55d3a3['add'](_0x3575b4);}}['_getVidAttributeName'](_0x1e4fb9){switch(_0x1e4fb9['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x476270,_0x1ef67e){_0x476270['baseVersion']=null;for(const _0x424bdc in _0x476270){const _0x400ea8=_0x476270[_0x424bdc];if(_0x400ea8 instanceof gt){const _0x542274=_0x1ef67e['get'](_0x400ea8['root']['rootName']);_0x476270[_0x424bdc]=this['_fixPosition'](_0x400ea8,_0x542274);}if(_0x400ea8 instanceof vt){const _0x4d19b5=_0x1ef67e['get'](_0x400ea8['root']['rootName']);_0x476270[_0x424bdc]=this['_fixRange'](_0x400ea8,_0x4d19b5);}'root'===_0x424bdc&&(_0x476270['root']=_0x1ef67e['get'](_0x476270['root']['rootName']));}}['_fixRange'](_0xfbb316,_0x4605a1){return this['editor']['model']['createRange'](this['_fixPosition'](_0xfbb316['start'],_0x4605a1),this['_fixPosition'](_0xfbb316['end'],_0x4605a1));}['_fixPosition'](_0x580618,_0x4f7153){return this['editor']['model']['createPositionFromPath'](_0x4f7153,_0x580618['path'],_0x580618['stickiness']);}['_handleInsertOperation'](_0x22851a){const _0x154752=this['_idsRoots']['get'](_0x22851a['position']['root']['rootName']),_0x1173bd=this['_fixPosition'](_0x22851a['position'],_0x154752),_0x4b3368=null===_0x22851a['_authorId']?null:_0x22851a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x330a2b=_0x1173bd['parent'],_0x26a313=this['_revisionId'],_0xb12915=[];for(const _0x5be8e4 of _0x22851a['nodes'])if(_0x5be8e4['is']('element'))_0xb12915['push'](this['_makeIdsRoot'](_0x5be8e4));else{for(let _0x303429=0x0;_0x303429<_0x5be8e4['offsetSize'];_0x303429++)_0xb12915['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2f2028=this['_revisionId'];for(let _0x333ec1=_0x26a313;_0x333ec1<_0x2f2028;_0x333ec1++)this['_touched']['set'](_0x333ec1,{'userId':_0x4b3368});_0x330a2b['_insertChild'](_0x1173bd['offset'],_0xb12915);}['_handleMoveOperation'](_0x516598){(_0x516598=this['_cloneOperation'](_0x516598,this['_idsRoots']))['_execute']();const _0x316349=null===_0x516598['_authorId']?null:_0x516598['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x343f24=_0x516598['getMovedRangeStart'](),_0x5df01d=_0x343f24['parent'],_0x4a660e=_0x343f24['offset'];!function _0x1b7bd0(_0xc83dc4,_0x4af83d,_0x264562,_0x5375ad){for(let _0x43721a=_0x264562;_0x43721a<_0x5375ad;_0x43721a++){const _0x178d06=_0x4af83d['getChild'](_0x43721a);_0x178d06['is']('element','$text')?_0xc83dc4['set'](_0x178d06['getAttribute']('vid'),{'userId':_0x316349}):(_0xc83dc4['set'](_0x178d06['getAttribute']('vid_start'),{'userId':_0x316349}),_0x1b7bd0(_0xc83dc4,_0x178d06,0x0,_0x178d06['childCount']),_0xc83dc4['set'](_0x178d06['getAttribute']('vid_end'),{'userId':_0x316349}));}}(this['_touched'],_0x5df01d,_0x4a660e,_0x4a660e+_0x516598['howMany']);}['_handleMergeOperation'](_0x3fdb76){const _0x1877a5=null===(_0x3fdb76=this['_cloneOperation'](_0x3fdb76,this['_idsRoots']))['_authorId']?null:_0x3fdb76['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1273a7=_0x3fdb76['targetPosition']['parent'],_0x1016bb=_0x3fdb76['sourcePosition']['parent'],_0x5ca46b=_0x1273a7['getAttribute']('vid_end'),_0xf2320a=_0x1016bb['getAttribute']('vid_start');_0x1273a7['_setAttribute']('vid_end',_0x1016bb['getAttribute']('vid_end')),_0x1016bb['_setAttribute']('vid_end',_0x5ca46b),this['_touched']['set'](_0xf2320a,{'userId':_0x1877a5}),this['_touched']['set'](_0x5ca46b,{'userId':_0x1877a5}),_0x3fdb76['_execute']();}['_handleSplitOperation'](_0x11adbe){const _0x2c17fa=null===(_0x11adbe=this['_cloneOperation'](_0x11adbe,this['_idsRoots']))['_authorId']?null:_0x11adbe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5452c8=_0x11adbe['graveyardPosition'],_0x1e5cd7=_0x11adbe['splitPosition']['parent'];_0x11adbe['_execute']();const _0x3e6fff=_0x1e5cd7['getAttribute']('vid_end'),_0x1e8110=_0x11adbe['insertionPosition']['nodeAfter'];if(_0x5452c8){const _0x1aa683=_0x1e8110['getAttribute']('vid_end'),_0x57dd91=_0x1e5cd7['getAttribute']('vid_end');_0x1e5cd7['_setAttribute']('vid_end',_0x1aa683),_0x1e8110['_setAttribute']('vid_end',_0x57dd91),this['_touched']['set'](_0x1e5cd7['getAttribute']('vid_end'),{'userId':_0x2c17fa}),this['_touched']['set'](_0x1e8110['getAttribute']('vid_start'),{'userId':_0x2c17fa});}else{const _0xef73a1=this['_revisionId']++,_0x132e15=this['_revisionId']++;_0x1e5cd7['_setAttribute']('vid_end',_0xef73a1),_0x1e8110['_setAttribute']('vid_start',_0x132e15),_0x1e8110['_setAttribute']('vid_end',_0x3e6fff),this['_touched']['set'](_0xef73a1,{'userId':_0x2c17fa}),this['_touched']['set'](_0x132e15,{'userId':_0x2c17fa});}}['_handleMarkerOperation'](_0x3d69c9){if(!_0x3d69c9['affectsData'])return;const _0x102221=(_0x3d69c9=this['_cloneOperation'](_0x3d69c9,this['_diffRoots']))['oldRange']?_0x3d69c9['oldRange']['root']:null,_0x2193a6=_0x3d69c9['newRange']?_0x3d69c9['newRange']['root']:null;_0x102221&&this['_markers']['delete'](_0x3d69c9['name']),_0x2193a6&&this['_markers']['set'](_0x3d69c9['name'],_0x3d69c9['newRange']['clone']());const _0x1aadf6=null===_0x3d69c9['_authorId']?null:_0x3d69c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3eb38f=_0x3d69c9['name'];if(!this['_touchedMarkers']['has'](_0x3eb38f))return void this['_touchedMarkers']['set'](_0x3eb38f,{'range':_0x3d69c9['oldRange'],'userId':_0x1aadf6});const _0x4594e1=this['_touchedMarkers']['get'](_0x3eb38f),_0x247007=_0x4594e1['range'],_0x3017ad=_0x3d69c9['newRange'];null==_0x247007&&null==_0x3017ad||_0x247007&&_0x3017ad&&_0x247007['isEqual'](_0x3017ad)?this['_touchedMarkers']['delete'](_0x3d69c9['name']):_0x4594e1['userId']=_0x1aadf6;}['_handleRootOperation'](_0x2ee644,_0x5cf8ad){this['_diffRoots']['has'](_0x2ee644['rootName'])?this['_diffRoots']['get'](_0x2ee644['rootName'])['_isAttached']=_0x2ee644['isAdd']:(this['_diffRoots']['set'](_0x2ee644['rootName'],F(_0x2ee644['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2ee644['rootName'],{}),_0x5cf8ad&&this['_idsRoots']['set'](_0x2ee644['rootName'],F(_0x2ee644['rootName'],!0x0)));const _0x5231d7=null===_0x2ee644['_authorId']?null:_0x2ee644['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e5791=this['_touchedRoots']['get'](_0x2ee644['rootName']);_0x1e5791&&_0x1e5791['userId']===_0x5231d7?this['_touchedRoots']['delete'](_0x2ee644['rootName']):this['_touchedRoots']['set'](_0x2ee644['rootName'],{'userId':_0x5231d7,'isAttached':_0x2ee644['isAdd']});}['_handleRootAttributeOperation'](_0x2cd0bf){const _0xece56c=this['_diffRootsAttributes']['get'](_0x2cd0bf['root']['rootName']);null===_0x2cd0bf['newValue']?delete _0xece56c[_0x2cd0bf['key']]:_0xece56c[_0x2cd0bf['key']]=_0x2cd0bf['newValue'];}}function T(_0x34d2c){const _0x3211be=F(_0x34d2c['rootName'],_0x34d2c['isAttached']());for(const _0x498f9a of _0x34d2c['getChildren']()){const _0x4dd87b=_0x498f9a['_clone'](!0x0);_0x3211be['_appendChild'](_0x4dd87b);}return _0x3211be;}function F(_0x4f5a3f,_0x2f22c5=!0x0){const _0x43d397=new mt();return _0x43d397['rootName']=_0x4f5a3f,_0x43d397['_isAttached']=_0x2f22c5,_0x43d397['isAttached']=()=>_0x43d397['_isAttached'],_0x43d397;}function B(_0x41f087,_0x300153,_0x2ee0ef){const _0x17b688='elementEnd'==_0x41f087['type']?_0x2ee0ef['createPositionAt'](_0x41f087['item'],'end'):_0x2ee0ef['createPositionBefore'](_0x41f087['item']);return _0x2ee0ef['createPositionFromPath'](_0x300153,_0x17b688['path'],_0x17b688['stickiness']);}function J(_0x2c68c2,_0x4deac7,_0x8a995a){const _0xe7daa='elementStart'==_0x2c68c2['type']?_0x8a995a['createPositionAt'](_0x2c68c2['item'],0x0):_0x8a995a['createPositionAfter'](_0x2c68c2['item']);return _0x8a995a['createPositionFromPath'](_0x4deac7,_0xe7daa['path'],_0xe7daa['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x277293,_0x2c9922){super(_0x277293),this['focusTracker']=new _0x553d6d(),this['keystrokes']=new _0x1cff90(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2c9922),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x2c8ba4(this);}['render'](){super['render'](),_0x59a652({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1c45a4=_0x84bd1e=>_0x84bd1e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1c45a4),this['keystrokes']['set']('arrowleft',_0x1c45a4),this['keystrokes']['set']('arrowup',_0x1c45a4),this['keystrokes']['set']('arrowdown',_0x1c45a4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3a9309){this['revisionNameInputView']['fieldView']['element']['value']=_0x3a9309['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3fb522){const _0x3540e6=new _0x3d4f9b(this['locale'],_0x55a6a1),_0x1bae15=_0x3540e6['fieldView'];_0x1bae15['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5484ec=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3fb522&&(_0x5484ec+='\x20('+m(this['locale'],'optional')+')'),(_0x3540e6['label']=_0x5484ec,_0x1bae15['on']('input',()=>{this['revisionNameInputValue']=_0x1bae15['element']['value']['trim']();}),_0x3540e6);}}class u extends _0x5a9002{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x3a6680=this['editor'],_0x89cd6d=_0x3a6680['plugins']['get']('RevisionTracker');_0x3a6680['ui']['componentFactory']['add']('revisionHistory',_0x15e87b=>{const _0x514d41=_0x1ffd4b(_0x15e87b),_0x949a6e=_0x514d41['panelView']['children'],_0xe2044b=new _0x12e40f(_0x15e87b),_0x32c368=new _0x9a60cf(_0x15e87b),_0x532cd9=new te(_0x15e87b),_0x5f466e=new _0x9a60cf(_0x15e87b),_0x23451b=new te(_0x15e87b);return _0x514d41['bind']('isEnabled')['to'](_0x89cd6d,'isReady',_0x89cd6d,'isEnabled',_0x3a6680,'isReadOnly',(_0x8a1e8b,_0x5e7740,_0x329f82)=>_0x8a1e8b&&_0x5e7740&&!_0x329f82),_0x514d41['buttonView']['set']({'icon':_0x123892['history'],'label':m(_0x15e87b,'Revision\x20history'),'tooltip':!0x0}),_0x532cd9['set']({'label':m(_0x15e87b,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x532cd9['bind']('isEnabled')['to'](_0x89cd6d,'isReady',_0x89cd6d,'isEnabled',_0x3a6680,'isReadOnly',(_0x245b05,_0x23e14f,_0x516205)=>_0x245b05&&_0x23e14f&&!_0x516205),_0x532cd9['on']('execute',()=>this['_showDialog']()),_0x23451b['set']({'label':m(_0x15e87b,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x23451b['bind']('isEnabled')['to'](_0x89cd6d,'isReady',_0x3a6680,'isReadOnly',(_0xbb6b3c,_0x5272f6)=>_0xbb6b3c&&!_0x5272f6),_0x23451b['on']('execute',()=>{_0x3a6680['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x514d41['isOpen']=!0x1,_0x3a6680['editing']['view']['focus']();}),_0x32c368['children']['add'](_0x532cd9),_0x5f466e['children']['add'](_0x23451b),_0xe2044b['role']='menu',_0xe2044b['items']['addMany']([_0x32c368,_0x5f466e]),_0x949a6e['add'](_0xe2044b),_0x514d41;}),_0x3a6680['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x400a77=this['editor'],_0x1d5de5=_0x400a77['locale'],_0xac2ea=new _0x415c08(_0x1d5de5),_0x5d2595=new _0x1e6d87(_0x1d5de5);_0xac2ea['buttonView']['set']({'icon':_0x123892['history'],'label':m(_0x1d5de5,'Revision\x20history')});const _0x3f3bea=new _0x33539e(_0x1d5de5,_0xac2ea),_0x7ac9b0=new _0x37d286(_0x1d5de5);_0x7ac9b0['set']({'label':m(_0x1d5de5,'Save\x20current\x20revision')}),_0x7ac9b0['delegate']('execute')['to'](_0xac2ea),_0x7ac9b0['on']('execute',()=>{this['_showDialog']();}),_0x3f3bea['children']['add'](_0x7ac9b0),_0x5d2595['items']['add'](_0x3f3bea);const _0x4773ca=new _0x33539e(_0x1d5de5,_0xac2ea),_0x3f0fd7=new _0x37d286(_0x1d5de5);return _0x3f0fd7['set']({'label':m(_0x1d5de5,'Open\x20revision\x20history')}),_0x3f0fd7['delegate']('execute')['to'](_0xac2ea),_0x3f0fd7['on']('execute',()=>{_0x400a77['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4773ca['children']['add'](_0x3f0fd7),_0x5d2595['items']['add'](_0x4773ca),_0xac2ea['panelView']['children']['add'](_0x5d2595),_0xac2ea;}['_showDialog'](){const _0x2eb0fe=this['editor'],_0x5554e3=_0x2eb0fe['locale'],_0x7d86fb=_0x2eb0fe['plugins']['get']('Dialog'),_0x4d60ad=_0x2eb0fe['plugins']['get']('RevisionTracker');function _0x389f47(_0x3006cd){_0x2eb0fe['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3006cd['revisionName']?_0x3006cd['revisionNameInputView']['errorText']=m(_0x5554e3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2eb0fe['plugins']['get'](l)['saveRevision']({'name':_0x3006cd['revisionName']}),_0x7d86fb['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x389f47(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x7d86fb['show']({'id':'revisionSave','title':m(_0x5554e3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2eb0fe['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x7d86fb['hide']()},{'label':m(_0x2eb0fe['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d8c05){_0x1d8c05['bind']('isEnabled')['to'](_0x4d60ad,'isReady',_0x4d60ad,'isEnabled',_0x2eb0fe,'isReadOnly',(_0x4d2ac8,_0x47e292,_0x2ac2a4)=>_0x4d2ac8&&_0x47e292&&!_0x2ac2a4);},'onExecute':()=>_0x389f47(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x323a89=this['editor'],_0x3df158=_0x323a89['locale'];this['_saveRevisionFormView']=new hs(_0x3df158,_0x323a89['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x8ec7fd,_0x9bf71f){super(_0x8ec7fd),this['_model']=_0x9bf71f,this['changeId']=_0x9bf71f['id'];const _0x30ea19=this['bindTemplate'],_0xcbfe4d=m(_0x8ec7fd,_0x9bf71f['data']['isSuggestion']?'Suggested\x20by':'add'==_0x9bf71f['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x9bf71f['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x30ea19['to']('type',_0x472594=>'ck-revision-change__'+_0x472594)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xcbfe4d}]},{'text':'\x20'+_0x9bf71f['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x5d07e0(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x50feb1){super(),this['id']=_0x50feb1['id']||_0x2bee71(),this['author']=_0x50feb1['author'],this['type']=_0x50feb1['type'],this['data']=_0x50feb1['data']||{},this['rootName']=_0x50feb1['rootName'],this['set']('createdAt',_0x50feb1['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4b8a05,_0x267146){this['newRevisionId']=_0x4b8a05,this['oldRevisionId']=_0x267146,this['changes']=new _0x4bd15c();}['_setChanges'](_0x140ff4){for(const _0x5b016d of _0x140ff4)this['changes']['add'](_0x5b016d);}}const Y={'c':_0x15aabb,'a':_0x5e1a11,'e':_0x347cea,'r':_0xe7678,'u':_0x40ec03};class d extends _0x5a9002{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3a86de,_0x4fee7b,j];}constructor(_0x225aa2){super(_0x225aa2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x38bcdb,_0x2235dc,_0x521cb4)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xdab305=>{for(const _0x45469a of this['editor']['editing']['view']['document']['roots'])_0x521cb4?_0xdab305['removeClass']('ck-editor__editable__overlay',_0x45469a):_0xdab305['addClass']('ck-editor__editable__overlay',_0x45469a);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2ec153=>null!==_0x2ec153),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x43fd84,_0x143585,_0x2b9aea)=>_0x43fd84&&_0x2b9aea?_0x143585['changes']['getIndex'](_0x2b9aea):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x59db22,_0x7d3db4)=>_0x59db22?_0x7d3db4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x4fee7b);}['init'](){const _0x11813a=this['editor'],_0x26250f=new _t(_0x11813a,{'direction':'backward'}),_0x50314a=new _t(_0x11813a,{'direction':'forward'});(_0x11813a['commands']['add']('showPreviousChange',_0x26250f),_0x11813a['commands']['add']('showNextChange',_0x50314a),_0x11813a['commands']['add']('restoreRevision',new pt(_0x11813a)),this['on']('change:numberOfChanges',()=>{_0x26250f['refresh'](),_0x50314a['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x11813a['enableReadOnlyMode']('revision-viewer'),_0x11813a['plugins']['has']('WidgetToolbarRepository'))&&_0x11813a['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x44e307){await this['loadRevisionData'](_0x44e307);const _0x3fed3c={};for(const _0x4fa4ef in _0x44e307['diffData']){if(_0x44e307['diffData'][_0x4fa4ef]['attachChange']&&!_0x44e307['diffData'][_0x4fa4ef]['attachChange']['isAttached'])continue;const _0x180048=this['_removeRevisionMarkers'](JSON['parse'](_0x44e307['diffData'][_0x4fa4ef]['insertions'])),_0x55eeac=this['editor']['editing']['view']['document'],_0x3109ec=new _0x23929d(_0x55eeac,_0x180048['map'](_0x5cba67=>this['_getViewObj'](_0x5cba67)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3fed3c[_0x4fa4ef]=this['editor']['data']['processor']['toData'](_0x3109ec),this['editor']['data']['processor']['useFillerType']('default');}return _0x3fed3c;}async['getRevisionRootsAttributes'](_0x151a07){await this['loadRevisionData'](_0x151a07);const _0x39aff2={};for(const _0x2304cf in _0x151a07['diffData'])_0x151a07['diffData'][_0x2304cf]['attachChange']&&!_0x151a07['diffData'][_0x2304cf]['attachChange']['isAttached']||(_0x39aff2[_0x2304cf]=_0x151a07['diffData'][_0x2304cf]['attributesAfter']||{});return _0x39aff2;}['_removeRevisionMarkers'](_0x4de8c0){return(_0x4de8c0=_0x4de8c0['filter'](_0x1e0dea=>!_0x1e0dea['name']||'revision-start'!==_0x1e0dea['name']&&'revision-end'!==_0x1e0dea['name']))['forEach'](_0x4e9a5e=>{'string'!=typeof _0x4e9a5e&&(_0x4e9a5e['children']=this['_removeRevisionMarkers'](_0x4e9a5e['children']),_0x4e9a5e['attributes']=_0x4e9a5e['attributes']['filter'](_0x28b661=>!_0x28b661[0x0]['startsWith']('data-revision-')));}),_0x4de8c0;}async['compare'](_0x2e2179,_0x19877c,_0x2aea3e=!0x1){if(!this['isEnabled'])return;const _0x15b5f6=this['diff'],_0x8fdb3c=this['repository'],_0x3b9378='string'==typeof _0x2e2179?_0x8fdb3c['getRevision'](_0x2e2179):_0x2e2179,_0x25d6cc='string'==typeof _0x19877c?_0x8fdb3c['getRevision'](_0x19877c):_0x19877c,_0x2e6173=_0x3b9378['id'],_0x285599=_0x25d6cc?_0x25d6cc['id']:null;if(!_0x2aea3e&&this['diff']&&this['diff']['newRevisionId']===_0x2e6173&&this['diff']['oldRevisionId']===_0x285599)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x2e6173,_0x285599);const _0x2ea37c=this['_getRevisionsRange'](_0x3b9378,_0x25d6cc,!0x0)['map'](_0x3b6607=>this['loadRevisionData'](_0x3b6607));return _0x2ea37c['push'](new Promise(_0x5dee1f=>{setTimeout(_0x5dee1f,0x14);})),Promise['all'](_0x2ea37c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x389b6c=this['_getDiff'](_0x2e6173,_0x285599);for(const _0x19a547 of _0x389b6c['changes'])this['_changeIdToChange']['set'](_0x19a547['id'],_0x19a547);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4c5018=>{for(const _0x53f676 of this['editor']['model']['document']['getRootNames']())_0x4c5018['detachRoot'](_0x53f676);for(const _0x35a652 of Object['keys'](_0x389b6c['model'])){const _0x3cef86=_0x4c5018['addRoot'](_0x35a652);for(const _0x18d3c3 of Object['keys'](_0x389b6c['attributes'][_0x35a652]))_0x4c5018['setAttribute'](_0x18d3c3,_0x389b6c['attributes'][_0x35a652][_0x18d3c3],_0x3cef86);_0x4c5018['insert'](_0x389b6c['model'][_0x35a652],_0x3cef86,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x389b6c['changes'])),this['isReady']=!0x0;})['catch'](_0x52cc49=>{console['error'](_0x52cc49),this['_cleanUp'](),_0x15b5f6&&(this['diff']=_0x15b5f6),this['isReady']=!0x0;});}['addRevisionData'](_0x41f45c,_0x3f1f4a){const _0x121ec6=this['repository']['createRevision'](_0x41f45c);return _0x121ec6['on']('_update',(_0x314c22,_0x3056fe,_0x5dd6a0)=>_0x3f1f4a(_0x3056fe,_0x5dd6a0,_0x121ec6)),this['repository']['addRevision'](_0x121ec6),_0x121ec6;}['loadRevisionData'](_0x57a718){if(!_0x57a718||_0x57a718['diffData'])return Promise['resolve']();{const _0x4cbb4a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4cbb4a,'revisionId':_0x57a718['id']})['then'](_0x233cb2=>{_0x57a718['_update']({'diffData':_0x233cb2['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5c54e2=>{for(const _0x408e5d of this['editor']['model']['document']['getRootNames']())_0x5c54e2['detachRoot'](_0x408e5d);});}['_sortAndFilterDiffChanges'](_0x280444){const _0x5a9a7a=[],_0x629009=new Map();for(const _0x247dba of this['editor']['model']['document']['getRootNames']()){const _0x384c=this['editor']['editing']['view']['getDomRoot'](_0x247dba);if(!_0x384c)continue;const _0x2e11f6=_0x384c['getClientRects']()['item'](0x0);_0x2e11f6&&(_0x5a9a7a['push'](_0x247dba),_0x629009['set'](_0x247dba,_0x2e11f6));}return _0x5a9a7a['sort']((_0x451ac5,_0x5f53a7)=>{const _0x4889c1=_0x629009['get'](_0x451ac5),_0x4e9721=_0x629009['get'](_0x5f53a7);return _0x4889c1['y']-_0x4e9721['y']||_0x4889c1['x']-_0x4e9721['x'];}),(_0x280444=_0x280444['filter'](_0x552f04=>_0x5a9a7a['includes'](_0x552f04['rootName'])))['sort']((_0x424398,_0x20e520)=>_0x5a9a7a['indexOf'](_0x424398['rootName'])-_0x5a9a7a['indexOf'](_0x20e520['rootName'])),_0x280444;}['_makeTape'](_0x3ddcf4){const _0x232692=Array['from'](_0x3ddcf4['markers'])['filter'](([_0x1f16b5,_0x342da0])=>_0x1f16b5['startsWith']('revision:')&&!_0x342da0['isCollapsed']),_0x47ae74=Array['from'](this['editor']['model']['createRangeIn'](_0x3ddcf4)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x232692['length'])for(const _0x3cbfd7 of _0x47ae74){const [_0x2479b5,_0x5c7d64]=_0x232692[0x0],[,_0x4a5b84,_0x3e2e6f]=_0x2479b5['split'](':');if(_0x5c7d64['end']['isEqual'](_0x3cbfd7['nextPosition'])&&_0x232692['shift'](),(_0x3cbfd7['previousPosition']['isEqual'](_0x5c7d64['start'])||_0x3cbfd7['previousPosition']['isAfter'](_0x5c7d64['start']))&&('insertion'==_0x4a5b84?_0x3cbfd7['isAdded']={'userId':_0x3e2e6f}:'deletion'==_0x4a5b84&&(_0x3cbfd7['isRemoved']={'userId':_0x3e2e6f})),0x0==_0x232692['length'])break;}return _0x47ae74;}['_refreshStartEndIndex'](_0x3ac366){const _0x1b29bf=new Map();for(let _0x3201b8=0x0;_0x3201b8<_0x3ac366['length'];_0x3201b8++)'text'===_0x3ac366[_0x3201b8]['type']?(_0x3ac366[_0x3201b8]['item']['startIndex']=_0x3201b8,_0x3ac366[_0x3201b8]['item']['endIndex']=_0x3201b8):('elementStart'===_0x3ac366[_0x3201b8]['type']?_0x3ac366[_0x3201b8]['item']['startIndex']=_0x3201b8:'elementEnd'===_0x3ac366[_0x3201b8]['type']&&(_0x3ac366[_0x3201b8]['item']['endIndex']=_0x3201b8),_0x1b29bf['set'](_0x3ac366[_0x3201b8]['id'],_0x3201b8));for(const _0x4299b8 of _0x1b29bf['values']())'elementStart'===_0x3ac366[_0x4299b8]['type']?_0x3ac366[_0x4299b8]['item']['endIndex']=_0x1b29bf['get'](_0x3ac366[_0x4299b8]['pairId']):'elementEnd'===_0x3ac366[_0x4299b8]['type']&&(_0x3ac366[_0x4299b8]['item']['startIndex']=_0x1b29bf['get'](_0x3ac366[_0x4299b8]['pairId']));}['_processTape'](_0x4d6459){for(let _0x261014=0x0;_0x261014<_0x4d6459['length'];_0x261014++){if('elementStart'===_0x4d6459[_0x261014]['type'])_0x4d6459[_0x261014]['item']['startIndex']=_0x261014;else{if('elementEnd'===_0x4d6459[_0x261014]['type']){_0x4d6459[_0x261014]['item']['endIndex']=_0x261014;const _0x53ab21=_0x4d6459[_0x261014]['item']['startIndex'];_0x4d6459[_0x53ab21]['pairId']=_0x4d6459[_0x261014]['id'],_0x4d6459[_0x261014]['pairId']=_0x4d6459[_0x53ab21]['id'];}else _0x4d6459[_0x261014]['item']['startIndex']=_0x261014,_0x4d6459[_0x261014]['item']['endIndex']=_0x261014,_0x4d6459[_0x261014]['pairId']=null;}_0x4d6459[_0x261014]['markersStart']||(_0x4d6459[_0x261014]['markersStart']=[],_0x4d6459[_0x261014]['markersEnd']=[]);}}['_markInsertions'](_0x454a01,_0x1f2aa0){const _0x440a8a=_0x454a01['filter'](_0x126fed=>!_0x126fed['isAdded']);for(let _0x2e9b8d=0x0;_0x2e9b8d<_0x1f2aa0['length'];_0x2e9b8d++)_0x1f2aa0[_0x2e9b8d]['isAdded']&&(_0x440a8a[_0x2e9b8d]['isAdded']=_0x1f2aa0[_0x2e9b8d]['isAdded']);}['_makeModelFromViewString'](_0x594100){const _0x3582dc=JSON['parse'](_0x594100),_0x54cc39=this['editor']['editing']['view']['document'],_0xe6961b=new _0x23929d(_0x54cc39,_0x3582dc['map'](_0x53e76b=>this['_getViewObj'](_0x53e76b)));return this['editor']['data']['toModel'](_0xe6961b);}['_getViewObj'](_0x24996f){const _0x4fd251=this['editor']['editing']['view']['document'];if('string'==typeof _0x24996f)return new _0x1f9b61(_0x4fd251,_0x24996f);{const _0x34cd2e=_0x24996f['children']['map'](_0x3cf1c1=>this['_getViewObj'](_0x3cf1c1));return new(Y[_0x24996f['type']]||_0x55295d)(_0x4fd251,_0x24996f['name'],_0x24996f['attributes'],_0x34cd2e);}}['_getDiff'](_0x919b26,_0x432883=null){const _0x262fb0=this['repository']['getRevision'](_0x919b26),_0x1a7fec=_0x432883?this['repository']['getRevision'](_0x432883):null,_0xd35bf9=this['_getRevisionsRange'](_0x262fb0,_0x1a7fec),_0x2787d0=_0xd35bf9[_0xd35bf9['length']-0x1],_0x52f56d=new Map(),_0x3b75af={'model':{},'attributes':{},'changes':[]},_0x39583d=new Set(),_0x592114=new Map();for(let _0x43fd80=_0xd35bf9['length']-0x1;_0x43fd80>=0x0;_0x43fd80--){const _0x27a3e8=_0xd35bf9[_0x43fd80];for(const _0x3ab779 of Object['keys'](_0x27a3e8['diffData']))if(_0x27a3e8['diffData'][_0x3ab779]['attachChange']){const _0x442d3a=_0x27a3e8['diffData'][_0x3ab779]['attachChange'];_0x442d3a['isAttached']?(_0x39583d['add'](_0x3ab779),_0x592114['has'](_0x3ab779)&&_0x592114['get'](_0x3ab779)['userId']==_0x442d3a['userId']?_0x592114['delete'](_0x3ab779):_0x592114['set'](_0x3ab779,_0x442d3a)):_0x592114['has'](_0x3ab779)?(_0x39583d['delete'](_0x3ab779),_0x592114['delete'](_0x3ab779)):(_0x39583d['add'](_0x3ab779),_0x592114['set'](_0x3ab779,_0x442d3a));}else _0x39583d['add'](_0x3ab779);}for(const _0x1761a8 of _0x39583d){const _0x1bbe12=_0x592114['has'](_0x1761a8)&&!_0x592114['get'](_0x1761a8)['isAttached'];let _0x397c54=_0x1bbe12?_0xd35bf9['length']-0x1:0x0;const _0x265bdd=_0x1bbe12?-0x1:0x1;for(;_0xd35bf9[_0x397c54];){const _0x295eef=_0xd35bf9[_0x397c54];if(_0x295eef['diffData'][_0x1761a8]){const _0x159fc5=_0x1bbe12?_0x295eef['diffData'][_0x1761a8]['attributesBefore']:_0x295eef['diffData'][_0x1761a8]['attributesAfter'];_0x3b75af['attributes'][_0x1761a8]=_0x159fc5?_0x4fe291(_0x159fc5):{};break;}_0x397c54+=_0x265bdd;}}for(const _0x4152b3 of _0xd35bf9){_0x4152b3['model']={};for(const _0x4efd19 of _0x4152b3['authors'])_0x52f56d['set'](_0x4efd19['id'],_0x4efd19);for(const _0x1d7e68 of _0x39583d){const _0x2f5c94=_0x4152b3['diffData'][_0x1d7e68]?_0x4152b3['diffData'][_0x1d7e68]['insertions']:'[]',_0x13ebdc=_0x4152b3['diffData'][_0x1d7e68]?_0x4152b3['diffData'][_0x1d7e68]['deletions']:'[]';_0x4152b3['model'][_0x1d7e68]={'insertions':this['_makeModelFromViewString'](_0x2f5c94),'deletions':this['_makeModelFromViewString'](_0x13ebdc)};}}for(const _0x5cd25e of _0x39583d){let _0x496b38=null,_0x5770a7=0x0;const _0x81b9ed=new Map(Array['from'](_0x262fb0['model'][_0x5cd25e]['insertions']['markers'])['filter'](([_0xdc2590])=>!_0xdc2590['startsWith']('revision:')));let _0x477c74=0x0;for(const _0x2c868d of _0xd35bf9){const _0x2191a2=this['_makeTape'](_0x2c868d['model'][_0x5cd25e]['insertions']);_0x2c868d==_0x262fb0?(_0x496b38=_0x2191a2,_0x5770a7=_0x496b38['length'],_0x496b38['forEach'](_0x1783c1=>{_0x1783c1['id']=_0x477c74++;}),this['_processTape'](_0x496b38)):this['_markInsertions'](_0x496b38,_0x2191a2);const _0x1bbf37=_0x496b38['filter'](_0x1e3226=>!_0x1e3226['isAdded'])['map'](_0x174a1e=>_0x174a1e['id']);let _0x9f96d2=0x0;const _0x3c1c40=this['_makeTape'](_0x2c868d['model'][_0x5cd25e]['deletions']);_0x3c1c40['forEach'](_0x35b9e4=>{_0x35b9e4['isRemoved']?_0x35b9e4['id']=_0x5770a7++:_0x35b9e4['id']=_0x1bbf37[_0x9f96d2++];}),this['_processTape'](_0x3c1c40),this['_setDistance'](_0x496b38,'isAdded'),this['_setDistance'](_0x3c1c40,'isRemoved'),_0x2c868d==_0x262fb0&&this['_markMarkers'](_0x496b38,_0x81b9ed),_0x496b38=this['_joinTapes'](_0x496b38,_0x3c1c40),this['_refreshStartEndIndex'](_0x496b38),this['_setDistance'](_0x496b38,'isRemoved');}_0x496b38=_0x496b38['filter'](_0x47ac5d=>!(_0x47ac5d['isAdded']&&_0x47ac5d['isRemoved']));const _0x3eb6b8=new Map(_0x2787d0['model'][_0x5cd25e]['deletions']['markers']),_0xc04621=new Set(_0x81b9ed['keys']());for(const _0x554463 of _0x3eb6b8['keys']())_0xc04621['delete'](_0x554463);this['_markSuggestions'](_0x496b38,_0xc04621),this['_fixObsoleteTags'](_0x496b38),_0x496b38=this['_removeMissingPairs'](_0x496b38),_0x496b38=this['_markMismatchedRemovedTags'](_0x496b38),_0x496b38=this['_removeUnsupportedChanges'](_0x496b38);const {root:_0x3b0262,changes:_0x1b7562}=this['_makeModelFromTape'](_0x496b38,_0x52f56d,_0x5cd25e);_0x3b75af['model'][_0x5cd25e]=_0x3b0262;const _0x3e3041=_0x592114['get'](_0x5cd25e);if(_0x3e3041){const _0x15d3d5=_0x52f56d['get'](_0x3e3041['userId']),_0x1b43db=new r({'author':_0x15d3d5,'type':_0x3e3041['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5cd25e});_0x1b7562['unshift'](_0x1b43db),_0x3b75af['attributes'][_0x5cd25e]['revisionHistoryAttachChange']=_0x1b43db['id'];}_0x3b75af['changes']=_0x3b75af['changes']['concat'](_0x1b7562);}return _0x3b75af;}['_markMarkers'](_0x20a531,_0x43a978){for(let _0x145d26=0x0;_0x145d26<_0x20a531['length'];_0x145d26++)for(const [_0x18f18b,_0x13a50d]of _0x43a978)_0x13a50d['start']['isEqual'](_0x20a531[_0x145d26]['previousPosition'])&&_0x20a531[_0x145d26]['markersStart']['push'](_0x18f18b),_0x13a50d['end']['isEqual'](_0x20a531[_0x145d26]['nextPosition'])&&_0x20a531[_0x145d26]['markersEnd']['push'](_0x18f18b);}['_joinTapes'](_0x50d05f,_0x3cfaff){let _0x27f533=[],_0x1a4b67=0x0,_0xefd039=0x0;for(;_0x1a4b67<_0x50d05f['length']||_0xefd039<_0x3cfaff['length'];){const _0x4ac98c=_0x50d05f[_0x1a4b67]||{},_0x27c54f=_0x3cfaff[_0xefd039]||{};if(_0x4ac98c['id']==_0x27c54f['id'])_0x1a4b67++,_0xefd039++,_0x27f533['push'](_0x4ac98c);else{if(_0x27c54f['isRemoved']&&_0x4ac98c['isAdded']){const {commonTape:_0x8071cf,iEnd:_0x4c10e1,jEnd:_0x3dac02}=this['_threeWayMerge'](_0x50d05f,_0x1a4b67,_0x3cfaff,_0xefd039);_0x27f533=_0x27f533['concat'](_0x8071cf),_0x1a4b67=_0x4c10e1,_0xefd039=_0x3dac02;}else _0x27c54f['isRemoved']?(_0xefd039++,_0x27f533['push'](_0x27c54f)):(_0x1a4b67++,_0x27f533['push'](_0x4ac98c));}}return _0x27f533;}['_markSuggestions'](_0x36aae2,_0x32003d){const _0x56a407=[];for(let _0x1953c5=0x0;_0x1953c5<_0x36aae2['length'];_0x1953c5++){for(let _0x5ea6a3=0x0;_0x5ea6a3<_0x36aae2[_0x1953c5]['markersStart']['length'];_0x5ea6a3++){const _0x33a768=_0x36aae2[_0x1953c5]['markersStart'][_0x5ea6a3];if(!_0x32003d['has'](_0x33a768))continue;const {group:_0x3fe475,type:_0x5cba64,authorId:_0x7d8293}=_0x159bee(_0x33a768);'revision-suggestion'!=_0x3fe475||'insertion'!=_0x5cba64&&'deletion'!=_0x5cba64||(_0x56a407['unshift']({'type':_0x5cba64,'name':_0x33a768,'userId':_0x7d8293}),_0x36aae2[_0x1953c5]['markersStart']['splice'](_0x5ea6a3,0x1),_0x5ea6a3--);}_0x2ae544(_0x36aae2[_0x1953c5]);for(let _0x5aa34a=0x0;_0x5aa34a<_0x36aae2[_0x1953c5]['markersEnd']['length'];_0x5aa34a++){const _0x4aeed2=_0x36aae2[_0x1953c5]['markersEnd'][_0x5aa34a];if(!_0x32003d['has'](_0x4aeed2))continue;const {group:_0x5b702d,type:_0x42e20d}=_0x159bee(_0x4aeed2);if('revision-suggestion'!=_0x5b702d||'insertion'!=_0x42e20d&&'deletion'!=_0x42e20d)continue;_0x36aae2[_0x1953c5]['markersEnd']['splice'](_0x5aa34a,0x1),_0x5aa34a--;const _0x1d262b=_0x56a407['findIndex'](_0x17864e=>_0x17864e['name']==_0x4aeed2);_0x1d262b>-0x1&&_0x56a407['splice'](_0x1d262b,0x1);}}function _0x159bee(_0x2afd56){const _0x511851=_0x2afd56['split'](':');return{'group':_0x511851[0x0],'type':_0x511851[0x1],'subType':_0x511851['length']>=0x5?_0x511851[0x2]:null,'id':_0x511851['length']<0x5?_0x511851[0x2]:_0x511851[0x3],'authorId':_0x511851['length']<0x5?_0x511851[0x3]:_0x511851[0x4],'markerCount':0x6==_0x511851['length']?_0x511851[0x5]:null};}function _0x2ae544(_0x5666e7){for(let _0x255f16=0x0;_0x255f16<_0x56a407['length'];_0x255f16++){if(_0x5666e7['isAdded']&&'insertion'==_0x56a407[_0x255f16]['type'])return _0x5666e7['isAddSuggestion']=_0x56a407[_0x255f16],void delete _0x5666e7['isAdded'];if(!_0x5666e7['isAdded']&&!_0x5666e7['isRemoved']&&'deletion'==_0x56a407[_0x255f16]['type'])return void(_0x5666e7['isRemoveSuggestion']=_0x56a407[_0x255f16]);}}}['_setDistance'](_0x2be987,_0x455a65){let _0x23b570=0x0,_0x3b60b5=!0x1;const _0x424dad=new Map();for(const _0x22a796 of _0x2be987)_0x22a796[_0x455a65]?_0x3b60b5&&(_0x23b570++,_0x3b60b5=!0x1):(_0x23b570++,_0x3b60b5=!0x0),_0x424dad['set'](_0x22a796['id'],_0x23b570);for(let _0x449ddc=0x0;_0x449ddc<_0x2be987['length'];_0x449ddc++){if('isRemoved'==_0x455a65&&_0x2be987[_0x449ddc]['isAdded']||'isAdded'==_0x455a65&&_0x2be987[_0x449ddc]['isRemoved'])continue;if('text'==_0x2be987[_0x449ddc]['type']){_0x2be987[_0x449ddc]['distance']=0x0;continue;}const _0x52fd23=_0x424dad['get'](_0x2be987[_0x449ddc]['pairId']),_0x207e8f=_0x424dad['get'](_0x2be987[_0x449ddc]['id']);_0x2be987[_0x449ddc]['distance']=_0x52fd23-_0x207e8f;}}['_getRevisionsRange'](_0x4ce5d1,_0x209464,_0x212791=!0x1){const _0x24b2db=[];let _0x93b8ab=this['repository']['getIndex'](_0x4ce5d1),_0x76ab8d=this['repository']['getIndex'](_0x209464);for(-0x1==_0x76ab8d&&(_0x76ab8d=this['repository']['_revisions']['length'],_0x212791=!0x1);_0x93b8ab<_0x76ab8d;)_0x24b2db['push'](this['repository']['getRevision'](_0x93b8ab)),_0x93b8ab++;return _0x212791&&_0x24b2db['push'](this['repository']['getRevision'](_0x93b8ab)),_0x24b2db;}['_threeWayMerge'](_0x241e07,_0x400992,_0x4e4de8,_0x37b6ab){const _0x5e3961=this['editor']['model']['schema'];let _0x3e1db2=_0x400992;for(;_0x241e07[_0x3e1db2]&&_0x241e07[_0x3e1db2]['isAdded'];)_0x3e1db2++;let _0xe8f38d=_0x37b6ab;for(;_0x4e4de8[_0xe8f38d]&&_0x4e4de8[_0xe8f38d]['isRemoved'];)_0xe8f38d++;_0x307739(_0x241e07,_0x400992,_0x3e1db2),_0x307739(_0x4e4de8,_0x37b6ab,_0xe8f38d);const _0x17c5de=_0x4e4de8['slice'](_0x37b6ab,_0xe8f38d)['concat'](_0x241e07['slice'](_0x400992,_0x3e1db2));return _0x17c5de['sort']((_0x3ab449,_0x59e918)=>_0x3ab449['side']!=_0x59e918['side']?_0x3ab449['side']-_0x59e918['side']:_0x3ab449['level']!=_0x59e918['level']?_0x3ab449['level']-_0x59e918['level']:_0x3ab449['distance']!=_0x59e918['distance']?_0x59e918['distance']-_0x3ab449['distance']:!!_0x3ab449['isAdded']!=!!_0x59e918['isAdded']?-0x1==_0x3ab449['side']||0x0==_0x3ab449['side']?_0x3ab449['isAdded']?-0x1:0x1:_0x3ab449['isAdded']?0x1:-0x1:_0x3ab449['index']-_0x59e918['index']),{'commonTape':_0x17c5de,'iEnd':_0x3e1db2,'jEnd':_0xe8f38d};function _0x307739(_0x43d2f9,_0x5a42e7,_0x5b2ff6){let _0x58b9f6=-0x1,_0x44ecad=Number['POSITIVE_INFINITY'],_0x8757c=!0x0;for(let _0x35527d=_0x5a42e7;_0x35527d<_0x5b2ff6;_0x35527d++)if(_0x5e3961['isInline'](_0x43d2f9[_0x35527d]['item'])||(_0x8757c=!0x1),_0x43d2f9[_0x35527d]['item']['startIndex']<_0x5a42e7&&(_0x58b9f6=_0x35527d),_0x43d2f9[_0x35527d]['item']['endIndex']>=_0x5b2ff6){_0x44ecad=_0x35527d;break;}_0x8757c&&(_0x58b9f6=_0x5b2ff6-0x1);for(let _0x2eb5e4=_0x5a42e7;_0x2eb5e4<_0x5b2ff6;_0x2eb5e4++)_0x43d2f9[_0x2eb5e4]['side']=_0x2eb5e4<=_0x58b9f6?-0x1:_0x2eb5e4<_0x44ecad?0x0:0x1,_0x43d2f9[_0x2eb5e4]['index']=_0x2eb5e4;let _0x335d1d=0x0;for(let _0x247916=_0x5a42e7;_0x247916<=_0x58b9f6;_0x247916++)0x0==_0x43d2f9[_0x247916]['distance']?_0x43d2f9[_0x247916]['level']=_0x335d1d:(_0x335d1d++,_0x43d2f9[_0x247916]['level']=_0x335d1d,_0x335d1d++);for(let _0x3762ac=_0x5a42e7;_0x3762ac<_0x5b2ff6;_0x3762ac++)0x0==_0x43d2f9[_0x3762ac]['side']&&(_0x43d2f9[_0x3762ac]['level']=_0x335d1d);_0x335d1d=0x0;for(let _0x1886fd=_0x5b2ff6-0x1;_0x1886fd>=_0x44ecad;_0x1886fd--)0x0==_0x43d2f9[_0x1886fd]['distance']?_0x43d2f9[_0x1886fd]['level']=_0x335d1d:(_0x335d1d--,_0x43d2f9[_0x1886fd]['level']=_0x335d1d,_0x335d1d--);}}['_fixObsoleteTags'](_0x3d0b33){const _0x1e424a=new Map(),_0x349258=this['editor']['model']['schema'];for(let _0x282f1d=0x1;_0x282f1d<_0x3d0b33['length'];_0x282f1d++){let _0xda2075,_0x4d4cfe,_0x29c617;const _0x4f3461=_0x3d0b33[_0x282f1d],_0x417a03=_0x3d0b33[_0x282f1d-0x1];if('text'==_0x4f3461['type'])continue;if(_0x4f3461['type']!=_0x417a03['type'])continue;if(!_0x349258['isBlock'](_0x417a03['item'])||_0x349258['isLimit'](_0x417a03['item']))continue;if(!_0x349258['isBlock'](_0x4f3461['item'])||_0x349258['isLimit'](_0x4f3461['item']))continue;if((_0x3d0b33[_0x282f1d]['isAdded']||_0x3d0b33[_0x282f1d]['isAddSuggestion'])&&_0x3d0b33[_0x282f1d-0x1]['isRemoved'])_0xda2075=_0x3d0b33[_0x282f1d],_0x4d4cfe=_0x3d0b33[_0x282f1d-0x1],_0x29c617=_0x282f1d-0x1;else{if(!_0x3d0b33[_0x282f1d]['isRemoved']||!_0x3d0b33[_0x282f1d-0x1]['isAdded']&&!_0x3d0b33[_0x282f1d-0x1]['isAddSuggestion'])continue;_0xda2075=_0x3d0b33[_0x282f1d-0x1],_0x4d4cfe=_0x3d0b33[_0x282f1d],_0x29c617=_0x282f1d;}const _0x377f38=_0xda2075['level']==_0x4d4cfe['level'],_0x4bcc53=Math['abs'](_0xda2075['level'])<Math['abs'](_0x4d4cfe['level'])&&0x0==_0x4d4cfe['distance'];(_0x377f38||_0x4bcc53)&&(_0x1e424a['set'](_0x4d4cfe['id'],_0xda2075['id']),_0x3d0b33['splice'](_0x29c617,0x1),_0x282f1d--,_0xda2075['isAdded']=!0x1);}for(let _0x36173e=0x0;_0x36173e<_0x3d0b33['length'];_0x36173e++)_0x1e424a['has'](_0x3d0b33[_0x36173e]['pairId'])&&(_0x3d0b33[_0x36173e]['pairId']=_0x1e424a['get'](_0x3d0b33[_0x36173e]['pairId']));}['_removeMissingPairs'](_0x4dab99){const _0xe52a23=new Set(_0x4dab99['map'](_0x205986=>_0x205986['id']));for(let _0x3c849b=0x0;_0x3c849b<_0x4dab99['length'];_0x3c849b++)_0xe52a23['has'](_0x4dab99[_0x3c849b]['pairId'])||0x0==_0x4dab99[_0x3c849b]['distance']||(_0x4dab99[_0x3c849b]['isIncorrect']=!0x0);return _0x4dab99['filter'](_0x57ca67=>!_0x57ca67['isIncorrect']);}['_markMismatchedRemovedTags'](_0x49f53f){const _0x1ea32f=new Set();for(let _0x533d18=0x0;_0x533d18<_0x49f53f['length'];_0x533d18++){if(_0x1ea32f['has'](_0x49f53f[_0x533d18]['id'])&&_0x49f53f[_0x533d18]['isRemoved']&&(_0x49f53f[_0x533d18]['isIncorrect']=!0x0),_0x49f53f[_0x533d18]['isIncorrect'])continue;if(0x0==_0x49f53f[_0x533d18]['distance'])continue;if('elementStart'!=_0x49f53f[_0x533d18]['type'])continue;if(null==_0x49f53f[_0x533d18]['pairId'])continue;let _0x17e435=_0x533d18+0x1,_0x39edfe=0x0;for(;_0x49f53f[_0x17e435]['id']!=_0x49f53f[_0x533d18]['pairId'];)'elementStart'==_0x49f53f[_0x17e435]['type']?_0x39edfe++:'elementEnd'==_0x49f53f[_0x17e435]['type']&&_0x39edfe--,_0x17e435++;if(0x0!=_0x39edfe){if(_0x49f53f[_0x533d18]['isRemoved'])_0x49f53f[_0x533d18]['isIncorrect']=!0x0;else{for(;_0x17e435!=_0x533d18;)_0x49f53f[_0x17e435]['isRemoved']&&0x0!=_0x49f53f[_0x17e435]['distance']&&(_0x49f53f[_0x17e435]['isIncorrect']=!0x0,_0x1ea32f['add'](_0x49f53f[_0x17e435]['pairId'])),_0x17e435--;}}}return _0x49f53f['filter'](_0x2709e1=>!_0x2709e1['isIncorrect']);}['_removeUnsupportedChanges'](_0x579d8d){const _0x3454d1=this['editor']['model']['schema'];for(let _0x17425c=0x0;_0x17425c<_0x579d8d['length'];_0x17425c++){if(!(_0x579d8d[_0x17425c]['isAdded']||_0x579d8d[_0x17425c]['isAddSuggestion']||_0x579d8d[_0x17425c]['isRemoved']||_0x579d8d[_0x17425c]['isRemoveSuggestion']))continue;if(0x0==_0x579d8d[_0x17425c]['distance'])continue;const _0x38ffed=_0x579d8d[_0x17425c]['item'];_0x3454d1['isBlock'](_0x38ffed)||_0x3454d1['isLimit'](_0x38ffed)||(_0x579d8d[_0x17425c]['isAdded']&&delete _0x579d8d[_0x17425c]['isAdded'],_0x579d8d[_0x17425c]['isAddSuggestion']&&delete _0x579d8d[_0x17425c]['isAddSuggestion'],_0x579d8d[_0x17425c]['isRemoveSuggestion']&&delete _0x579d8d[_0x17425c]['isRemoveSuggestion'],_0x579d8d[_0x17425c]['isRemoved']&&(_0x579d8d[_0x17425c]['isIncorrect']=!0x0));}return _0x579d8d['filter'](_0x3ed953=>!_0x3ed953['isIncorrect']);}['_makeModelFromTape'](_0x1d0ff2,_0x55e91f,_0x421c22){const _0x187ef0=new mt(),_0x5e2d3b=[],_0x3250a6=new Map(),_0x162d93=this['editor']['model'],_0x51da63=_0x162d93['schema'],_0x5ee859=[_0x187ef0],_0x60ed4c={},_0x224ad9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x788683=null;const _0xa192ea=[0x0];for(let _0x4ee35=0x0;_0x4ee35<_0x1d0ff2['length'];_0x4ee35++)if('elementStart'===_0x1d0ff2[_0x4ee35]['type']){_0x1d0ff2[_0x4ee35]['previousPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea);const _0x5d29b6=new ft(_0x1d0ff2[_0x4ee35]['item']['name'],_0x1d0ff2[_0x4ee35]['item']['getAttributes']());_0x5ee859[0x0]['_appendChild'](_0x5d29b6),_0xa192ea['push'](0x0),_0x5ee859['unshift'](_0x5d29b6),_0x1d0ff2[_0x4ee35]['nextPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea);}else'elementEnd'===_0x1d0ff2[_0x4ee35]['type']?(_0x5ee859['shift'](),_0x1d0ff2[_0x4ee35]['previousPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea),_0xa192ea['pop'](),_0xa192ea[_0xa192ea['length']-0x1]++,_0x1d0ff2[_0x4ee35]['nextPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea)):(_0x1d0ff2[_0x4ee35]['previousPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea),_0x788683?_0x788683['_data']+=_0x1d0ff2[_0x4ee35]['item']['data']:_0x788683=new wt(_0x1d0ff2[_0x4ee35]['item']['data'],_0x1d0ff2[_0x4ee35]['item']['getAttributes']()),_0x1d0ff2[_0x4ee35+0x1]&&'text'===_0x1d0ff2[_0x4ee35+0x1]['type']&&_0x11bce6(_0x788683,_0x1d0ff2[_0x4ee35+0x1]['item'])||(_0x5ee859[0x0]['_appendChild'](_0x788683),_0x788683=null),_0xa192ea[_0xa192ea['length']-0x1]+=_0x1d0ff2[_0x4ee35]['item']['offsetSize'],_0x1d0ff2[_0x4ee35]['nextPosition']=_0x162d93['createPositionFromPath'](_0x187ef0,_0xa192ea));for(let _0x32d421=0x0;_0x32d421<_0x1d0ff2['length'];_0x32d421++){const _0x395692=_0x1d0ff2[_0x32d421]['previousPosition'],_0x184fe9=_0x1d0ff2[_0x32d421]['nextPosition'];for(const _0x1a4542 of _0x1d0ff2[_0x32d421]['markersStart'])_0x3250a6['set'](_0x1a4542,{'start':_0x395692,'end':null});_0x17e10a('isRemoveSuggestion',_0x32d421,_0x395692,_0x184fe9),_0x17e10a('isAddSuggestion',_0x32d421,_0x395692,_0x184fe9),_0x17e10a('isRemoved',_0x32d421,_0x395692,_0x184fe9),_0x17e10a('isAdded',_0x32d421,_0x395692,_0x184fe9);for(const _0x254aa9 of _0x1d0ff2[_0x32d421]['markersEnd']){_0x3250a6['get'](_0x254aa9)['end']=_0x184fe9;}}for(const [_0xea20be,_0x2ebb81]of _0x3250a6){const _0x793fd8=this['editor']['model']['createRange'](_0x2ebb81['start'],_0x2ebb81['end']);_0x187ef0['markers']['set'](_0xea20be,_0x793fd8);}return _0x5e2d3b['sort']((_0x102616,_0xfd58b8)=>{const _0x487e86=_0x187ef0['markers']['get']('revision:'+_0x102616['id']),_0x37d725=_0x187ef0['markers']['get']('revision:'+_0xfd58b8['id']);return _0x487e86['start']['isBefore'](_0x37d725['start'])?-0x1:_0x487e86['start']['isAfter'](_0x37d725['start'])?0x1:_0x487e86['end']['isBefore'](_0x37d725['end'])?-0x1:_0x487e86['end']['isAfter'](_0x37d725['end'])?0x1:'add'===_0x102616['type']?-0x1:0x1;}),{'root':_0x187ef0,'changes':_0x5e2d3b};function _0x17e10a(_0x58917f,_0x1acf31,_0x2b7302,_0x524b02){const _0x29098f=!!_0x1d0ff2[_0x1acf31][_0x58917f],_0x2d997d=_0x29098f?_0x1d0ff2[_0x1acf31][_0x58917f]['userId']:null,_0x37a868=_0x1acf31===_0x1d0ff2['length']-0x1,_0x42ee19=_0x224ad9[_0x58917f][0x0],_0x33a0d9=_0x51da63['isObject'](_0x1d0ff2[_0x1acf31]['item']);!_0x60ed4c[_0x58917f]&&_0x29098f?_0x60ed4c[_0x58917f]={'start':_0x2b7302,'tapeItem':_0x1d0ff2[_0x1acf31],'userId':_0x2d997d,'type':_0x58917f}:_0x60ed4c[_0x58917f]&&!_0x29098f?(_0x60ed4c[_0x58917f]['end']=_0x2b7302,_0x48d7de(_0x60ed4c[_0x58917f]),_0x60ed4c[_0x58917f]=null):_0x60ed4c[_0x58917f]&&_0x29098f&&_0x60ed4c[_0x58917f]['userId']!==_0x2d997d&&(_0x60ed4c[_0x58917f]['end']=_0x2b7302,_0x42ee19&&_0x42ee19['userId']===_0x60ed4c[_0x58917f]['userId']||_0x48d7de(_0x60ed4c[_0x58917f]),_0x60ed4c[_0x58917f]={'start':_0x2b7302,'tapeItem':_0x1d0ff2[_0x1acf31],'userId':_0x2d997d,'type':_0x58917f}),_0x60ed4c[_0x58917f]&&_0x33a0d9&&('elementStart'!==_0x1d0ff2[_0x1acf31]['type']||_0x42ee19&&_0x42ee19['userId']===_0x2d997d||_0x224ad9[_0x58917f]['unshift']({'userId':_0x2d997d,'object':_0x1d0ff2[_0x1acf31]['item'],'change':_0x60ed4c[_0x58917f]}),'elementEnd'===_0x1d0ff2[_0x1acf31]['type']&&_0x42ee19&&_0x42ee19['object']===_0x1d0ff2[_0x1acf31]['item']&&(_0x224ad9[_0x58917f]['shift'](),_0x60ed4c[_0x58917f]=_0x42ee19['change'])),_0x60ed4c[_0x58917f]&&_0x37a868&&(_0x60ed4c[_0x58917f]['end']=_0x524b02,_0x48d7de(_0x60ed4c[_0x58917f]),_0x60ed4c[_0x58917f]=null);}function _0x48d7de({start:_0x41ba39,end:_0x2e627b,tapeItem:_0x5b90e4,userId:_0x392f53,type:_0x23d1ff}){const _0x44b8ef=_0x5b90e4['item'],_0x5c68de=_0x162d93['schema']['isBlock'](_0x44b8ef)&&!_0x162d93['schema']['isLimit'](_0x44b8ef),_0x3fbe6e=_0x41ba39['nodeAfter']==_0x2e627b['parent']&&_0x2e627b['isAtStart'];if(_0x5c68de&&_0x3fbe6e)return;const _0x5b5deb=_0x162d93['createRange'](_0x41ba39,_0x2e627b),_0x5bc5c3=_0x55e91f['get'](_0x392f53),_0x37c60d=new r({'author':_0x5bc5c3,'type':'isAdded'==_0x23d1ff||'isAddSuggestion'==_0x23d1ff?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x23d1ff||'isRemoveSuggestion'==_0x23d1ff},'createdAt':new Date(),'rootName':_0x421c22});_0x5e2d3b['push'](_0x37c60d),_0x187ef0['markers']['set']('revision:'+_0x37c60d['id'],_0x5b5deb);}function _0x11bce6(_0x56be86,_0x37c747){const _0x16c870=_0x56be86['getAttributes'](),_0x4d101a=_0x37c747['getAttributes']();for(const _0x59f5b8 of _0x16c870){if(_0x59f5b8[0x1]!==_0x37c747['getAttribute'](_0x59f5b8[0x0]))return!0x1;_0x4d101a['next']();}return _0x4d101a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x194db0=>{const _0x141eb2=_0x194db0['markerName']['split'](':')[0x1],_0x2f6083=this['_getChangeFromId'](_0x141eb2);if(!_0x2f6083)return null;const _0x1fe7ad='add'==_0x2f6083['type']?'insertion':'deletion',_0x5a04be=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fe7ad];return _0x2f6083['data']['isSuggestion']&&_0x5a04be['push']('ck-suggestion-marker-'+_0x1fe7ad+'-new'),this['activeChange']==_0x2f6083&&_0x5a04be['push']('ck-suggestion-marker--active'),{'classes':_0x5a04be,'attributes':{'data-change-id':_0x141eb2}};}}),this['editor']['conversion']['for']('upcast')['add'](_0xffb5c7=>{_0xffb5c7['on']('element:pre',(_0x91cf1f,_0x463c34,_0x270104)=>{const _0x112165=_0x463c34['viewItem']['getChild'](0x0);if(!_0x112165||!_0x112165['is']('element','code'))return;if(!_0x270104['consumable']['consume'](_0x112165,{'attributes':['vid_start','vid_end']}))return;const _0x539c7c=_0x463c34['modelRange']['start']['nodeAfter'];_0x270104['writer']['setAttribute']('vid_start',_0x112165['getAttribute']('vid_start'),_0x539c7c),_0x270104['writer']['setAttribute']('vid_end',_0x112165['getAttribute']('vid_end'),_0x539c7c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x259c51=>{_0x259c51['on']('element',(_0x18cdba,_0x2e5b93,_0x716b3f)=>{if(!_0x716b3f['consumable']['consume'](_0x2e5b93['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2e5b93['modelRange']['isCollapsed'])return;const _0x2a5306=_0x2e5b93['modelRange']['start']['nodeAfter'];_0x2a5306['hasAttribute']('vid_start')||_0x2a5306['hasAttribute']('vid')||(_0x716b3f['writer']['setAttribute']('vid_start',_0x2e5b93['viewItem']['getAttribute']('vid_start'),_0x2a5306),_0x716b3f['writer']['setAttribute']('vid_end',_0x2e5b93['viewItem']['getAttribute']('vid_end'),_0x2a5306));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x141f43=>_0x141f43['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3c600a,[,_0x25f956])=>{['vid_start','vid_end','vid']['includes'](_0x25f956)&&(_0x3c600a['return']=!0x0,_0x3c600a['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x34a55c=>{_0x34a55c['on']('attribute:vid',(_0x22da5f,_0x241a62,_0x339f5e)=>{if('\x20'!=_0x241a62['item']['data']||_0x241a62['item']['parent']['maxOffset']>0x1)return;if(!_0x339f5e['consumable']['consume'](_0x241a62['item'],_0x22da5f['name']))return;const _0x29d860=_0x339f5e['writer'],_0x1926a3=_0x339f5e['mapper']['toViewRange'](_0x241a62['range']);_0x29d860['wrap'](_0x1926a3,_0x29d860['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x425d7d){const _0x481610=_0x425d7d['plugins']['get']('RevisionViewer');return(_0x58c6b8,_0x3d2b80,_0x7c045b)=>{const _0x131b92=_0x3d2b80['markerName']['split'](':')[0x1],_0x5e9354=_0x481610['_getChangeFromId'](_0x131b92);if(!_0x5e9354)return null;const _0x336c75='add'==_0x5e9354['type']?'split':'merge';if(!_0x7c045b['consumable']['test'](_0x3d2b80['markerRange'],_0x58c6b8['name']))return;const _0x27c120=_0x3d2b80['markerRange']['getWalker'](),_0x378d8e=_0x3d2b80['markerRange']['start'],_0xf66ee=_0x425d7d['model']['schema'];let _0x25f3f5=null,_0x95e1c4=null,_0x4f9669=!0x1,_0x1e9932=!0x1;for(const _0x104c00 of _0x27c120){const _0x286f0b=_0x104c00['item'];_0x4f9669=_0x4f9669||_0xf66ee['isContent'](_0x286f0b);const _0x4ca13f=_0x7c045b['mapper']['toViewElement'](_0x286f0b);if(_0x4ca13f&&_0x4ca13f['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x104c00['type']&&(_0xf66ee['isBlock'](_0x286f0b)&&!_0xf66ee['isLimit'](_0x286f0b)&&(_0x286f0b['nextSibling']||_0x378d8e['isAtEnd']?_0x25f3f5&&_0x25f3f5['parent']==_0x286f0b||(_0x25f3f5=_0x286f0b,_0x465157(_0x104c00['previousPosition']),_0x1e9932=!0x0):_0x95e1c4=_0x95e1c4||_0x104c00['previousPosition']));}function _0x465157(_0x33c3ae){const _0x38d323=_0x7c045b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x336c75}),_0xc2ee6c=_0x7c045b['mapper']['toViewPosition'](_0x33c3ae);_0x5e9354['data']['isSuggestion']&&_0x7c045b['writer']['addClass']('ck-suggestion-marker-'+_0x336c75+'-new',_0x38d323),_0x481610['activeChange']==_0x5e9354&&_0x7c045b['writer']['addClass']('ck-suggestion-marker--active',_0x38d323),_0x7c045b['writer']['insert'](_0xc2ee6c,_0x38d323),_0x7c045b['mapper']['bindElementToMarker'](_0x38d323,_0x3d2b80['markerName']);}_0x4f9669||_0x1e9932||!_0x95e1c4||_0x465157(_0x95e1c4);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x82b7c9,_0x3b8106,_0x23682e)=>{const _0x1503e9=_0x23682e['mapper']['markerNameToElements'](_0x3b8106['markerName']);if(_0x1503e9){for(const _0x593540 of _0x1503e9)(_0x593540['hasClass']('ck-suggestion-marker-split')||_0x593540['hasClass']('ck-suggestion-marker-merge'))&&(_0x23682e['mapper']['unbindElementFromMarkerName'](_0x593540,_0x3b8106['markerName']),_0x23682e['writer']['remove'](_0x593540));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x19b12a,_0x497bdf,_0x25511f)=>{const _0x53e246=_0x497bdf['markerName']['split'](':')[0x1],_0x250cd5=this['_getChangeFromId'](_0x53e246);if(!_0x250cd5)return null;const _0x3b2392='add'==_0x250cd5['type']?'split':'merge';if(_0x25511f['consumable']['test'](_0x497bdf['markerRange'],_0x19b12a['name']))for(const _0x235b1d of _0x497bdf['markerRange']['getItems']()){if(!_0x235b1d['is']('element','softBreak'))continue;const _0x3bd8c6=_0x25511f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3b2392}),_0x47c418=_0x25511f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x235b1d));_0x250cd5['data']['isSuggestion']&&_0x25511f['writer']['addClass']('ck-suggestion-marker-'+_0x3b2392+'-new',_0x3bd8c6),this['activeChange']==_0x250cd5&&_0x25511f['writer']['addClass']('ck-suggestion-marker--active',_0x3bd8c6),_0x25511f['writer']['insert'](_0x47c418,_0x3bd8c6),_0x25511f['mapper']['bindElementToMarker'](_0x3bd8c6,_0x497bdf['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x472deb=>{for(const _0x8f69b5 of this['editor']['model']['document']['getRootNames']()){const _0x31a5be=this['editor']['model']['document']['getRoot'](_0x8f69b5),_0x40e20d=this['editor']['editing']['view']['document']['getRoot'](_0x8f69b5);if(_0x40e20d){const _0x40b203=_0x31a5be['getAttribute']('revisionHistoryAttachChange');if(_0x472deb['removeAttribute']('data-change-id',_0x40e20d),_0x472deb['removeClass']('ck-revision-history-root-add',_0x40e20d),_0x472deb['removeClass']('ck-revision-history-root-remove',_0x40e20d),_0x472deb['removeClass']('ck-revision-history-root--active',_0x40e20d),_0x40b203){const _0x28ed74=this['_getChangeFromId'](_0x40b203);if(!_0x28ed74)return null;_0x472deb['setAttribute']('data-change-id',_0x40b203,_0x40e20d),_0x472deb['addClass']('ck-revision-history-root-'+_0x28ed74['type'],_0x40e20d),this['activeChange']==_0x28ed74&&_0x472deb['addClass']('ck-revision-history-root--active',_0x40e20d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x55d279=>'revision-comment:'+_0x55d279,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x593cb4=>'revision-suggestion:'+_0x593cb4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x190930=>({'name':'suggestion:'+_0x190930,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3d51e0=>{const _0x3423ca=_0x3d51e0['markerName']['split'](':')[0x1];return'insertion'!=_0x3423ca&&'deletion'!=_0x3423ca?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3423ca]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xdf1b7d,_0x22fc24,_0x4e4669)=>{const _0xaf0e2=_0x4e4669['mapper']['markerNameToElements'](_0x22fc24['markerName']);if(_0xaf0e2){for(const _0x2c42b0 of _0xaf0e2)_0x2c42b0['is']('uiElement')&&(_0x4e4669['mapper']['unbindElementFromMarkerName'](_0x2c42b0,_0x22fc24['markerName']),_0x4e4669['writer']['remove'](_0x2c42b0));}},{'priority':'high'});}['_getChangeFromId'](_0x2f1a9c){return this['_changeIdToChange']['get'](_0x2f1a9c);}['_getViewForChange'](_0x590e83){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x590e83),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x472659,_0x34ca61,_0x2581e9,_0x1b7605)=>{_0x1b7605&&this['_balloon']['remove'](_0x1b7605),_0x2581e9&&(this['_balloon']['add']({'view':_0x2581e9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xf971c5=this['editor']['editing'],_0x2e0c7d=this['_getChangeFromId'](_0x2581e9['changeId']);let _0x46f6fd;if(_0x2e0c7d['data']['isOnRoot']){const _0x3ef9e9=_0xf971c5['view']['getDomRoot'](_0x2e0c7d['rootName']);_0x46f6fd=Array['from'](_0x3ef9e9['getClientRects']());}else{const _0x5ad88c=this['editor']['model']['markers']['get']('revision:'+_0x2581e9['changeId']);_0x46f6fd=Array['from'](_0xf971c5['mapper']['markerNameToElements'](_0x5ad88c['name']))['map'](_0x5e4fca=>_0xf971c5['view']['domConverter']['mapViewToDom'](_0x5e4fca))['map'](_0x9ad306=>Array['from'](_0x9ad306['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x46f6fd[0x0];return _0x46f6fd['find'](_0x3ad963=>_0x3ad963['top']-0x3<=this['_activeViewTarget']['y']&&_0x3ad963['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3ad963['left']-0x3<=this['_activeViewTarget']['x']&&_0x3ad963['right']+0x3>=this['_activeViewTarget']['x'])||_0x46f6fd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x56ed9d,_0x53d203,_0x24e04c,_0x117a7d)=>{this['activeView']=_0x24e04c?this['_getViewForChange'](_0x24e04c):null,this['editor']['model']['change'](()=>{const _0x27882e=this['editor']['editing'];_0x117a7d&&(_0x117a7d['data']['isOnRoot']?_0x27882e['view']['change'](_0x2b2242=>{_0x2b2242['removeClass']('ck-revision-history-root--active',_0x27882e['view']['document']['getRoot'](_0x117a7d['rootName']));}):_0x27882e['reconvertMarker']('revision:'+_0x117a7d['id'])),_0x24e04c&&(_0x24e04c['data']['isOnRoot']?_0x27882e['view']['change'](_0xfa974=>{_0xfa974['addClass']('ck-revision-history-root--active',_0x27882e['view']['document']['getRoot'](_0x24e04c['rootName']));}):_0x27882e['reconvertMarker']('revision:'+_0x24e04c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4f703c,_0x5ecff8)=>{if(this['activeChange'])return;const _0x1f72fd=this['_findChangeIdFromDomTarget'](_0x5ecff8['target']),_0xe2b321=this['_changeIdToChange']['get'](_0x1f72fd);_0xe2b321?(this['_activeViewTarget']={'x':_0x5ecff8['domEvent']['x'],'y':_0x5ecff8['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe2b321)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5916d1,_0x594c6a)=>{const _0x267e86=this['_findChangeIdFromDomTarget'](_0x594c6a['target']),_0x2d5afb=this['_changeIdToChange']['get'](_0x267e86);_0x2d5afb?(this['_activeViewTarget']={'x':_0x594c6a['domEvent']['x'],'y':_0x594c6a['domEvent']['y']},_0x2d5afb===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d5afb):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x31b906){do{const _0x5f5df8=_0x31b906['getAttribute']('data-change-id');if(_0x5f5df8)return _0x5f5df8;_0x31b906=_0x31b906['parent'];}while(_0x31b906);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1d80df=>{for(const _0x533cdf of this['editor']['model']['markers'])_0x1d80df['removeMarker'](_0x533cdf);});}}function Z(_0xb9472e,_0x426251){return(_0xc68aa0,_0x4aa080,_0x542edc)=>{if(!_0x542edc['consumable']['test'](_0x4aa080['markerRange'],_0xc68aa0['name']))return;const _0x27bd95=_0x4aa080['markerRange']['getWalker'](),_0x5639f9=_0x4aa080['markerRange']['start'],_0x356686=_0xb9472e['model']['schema'];let _0x59205e=null,_0x8bb588=null,_0x4e5b36=!0x1,_0x1c1302=!0x1;for(const _0x2b1334 of _0x27bd95){const _0x6e0a66=_0x2b1334['item'];_0x4e5b36=_0x4e5b36||_0x356686['isContent'](_0x6e0a66);const _0xb313fb=_0x542edc['mapper']['toViewElement'](_0x6e0a66);if(_0xb313fb&&_0xb313fb['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b1334['type']&&(_0x356686['isBlock'](_0x6e0a66)&&!_0x356686['isLimit'](_0x6e0a66)&&(_0x6e0a66['nextSibling']||_0x5639f9['isAtEnd']?_0x59205e&&_0x59205e['parent']==_0x6e0a66||(_0x59205e=_0x6e0a66,_0x272919(_0x2b1334['previousPosition']),_0x1c1302=!0x0):_0x8bb588=_0x8bb588||_0x2b1334['previousPosition']));}function _0x272919(_0x19bfd8){const _0x35f3de=_0x542edc['mapper']['toViewPosition'](_0x19bfd8),_0x5f1332=_0x542edc['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x426251});_0x542edc['writer']['insert'](_0x35f3de,_0x5f1332),_0x542edc['mapper']['bindElementToMarker'](_0x5f1332,_0x4aa080['markerName']);}_0x4e5b36||_0x1c1302||!_0x8bb588||_0x272919(_0x8bb588);};}class pt extends _0x5883d5{constructor(_0x597b6d){super(_0x597b6d);const _0x40d46d=_0x597b6d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x40d46d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x40d46d,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2bfd8d=this['editor'],_0x1a0c09=_0x2bfd8d['plugins']['get'](d),_0x40be16=_0x1a0c09['isReady']?_0x1a0c09['diff']['newRevisionId']:null;_0x2bfd8d['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x40be16);}['refresh'](){const {isReady:_0x5015b7,isEnabled:_0x386933,repository:_0x1b61dc,diff:_0x38d3be}=this['editor']['plugins']['get'](d),_0x60c90=_0x38d3be&&_0x1b61dc['getLaterVisibleRevision'](_0x38d3be['newRevisionId']);this['isEnabled']=_0x5015b7&&_0x386933&&Boolean(_0x60c90);}}class _t extends _0x5883d5{['_step'];constructor(_0x5f3ca1,{direction:_0x4df415}){super(_0x5f3ca1);const _0xc37b10=_0x5f3ca1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x4df415?0x1:-0x1,this['listenTo'](_0xc37b10,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xc37b10,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0xc37b10,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5357df=this['editor'],_0x31cd37=_0x5357df['plugins']['get'](d),{isNavigationMode:_0xfeae7,currentChangeNumber:_0x3708e4}=_0x31cd37;let _0x13c9aa;if(_0x31cd37['activeChange']=_0xfeae7?_0x31cd37['diff']['changes']['get'](_0x3708e4+this['_step']):_0x31cd37['diff']['changes']['first'],_0x31cd37['activeChange']['data']['isOnRoot'])_0x13c9aa=_0x5357df['editing']['view']['getDomRoot'](_0x31cd37['activeChange']['rootName']);else{const _0xe576b3=_0x5357df['model']['markers']['get']('revision:'+_0x31cd37['activeChange']['id']);_0x13c9aa=_0x26fb60(_0x5357df['editing'],_0xe576b3);}_0x7e407f({'target':_0x13c9aa,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4b55ed,currentChangeNumber:_0x30e2f9,numberOfChanges:_0x59c100,isReady:_0x49fb90,isEnabled:_0x369d0d}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x369d0d&&_0x49fb90&&_0x59c100)&&(!_0x4b55ed||(0x1===this['_step']?_0x30e2f9<_0x59c100-0x1:_0x30e2f9>0x0));}}class ui extends ts{constructor(_0x5ad8bf){super(_0x5ad8bf);const _0x19106f=this['bindTemplate'],_0x2425b8=new te(_0x5ad8bf),_0x10926d=new te(_0x5ad8bf);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',(_0x353763,_0x1cd309)=>_0x353763&&_0x1cd309>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4371a8,_0x3c6125,_0x34ce8c,_0x562b2a)=>{if(!_0x4371a8)return m(_0x5ad8bf,'Loading...');if(!_0x34ce8c)return m(_0x5ad8bf,'No\x20changes');const _0x1b6dae=m(_0x5ad8bf,'NUMBER_OF_CHANGES',_0x34ce8c);return _0x562b2a?m(_0x5ad8bf,'X_OF_Y_CHANGES',[_0x3c6125+0x1,_0x34ce8c]):_0x1b6dae;}),_0x2425b8['set']({'label':m(_0x5ad8bf,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x10926d['set']({'label':m(_0x5ad8bf,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x2425b8['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x10926d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2425b8['on']('execute',()=>this['fire']('execute','backward')),_0x10926d['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',_0x19106f['if']('_isStatusLabelVisible','ck-hidden',_0x13fc31=>!_0x13fc31)]},'children':[{'text':_0x19106f['to']('isNavigationMode',_0x5315f5=>_0x5315f5?m(_0x5ad8bf,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5ad8bf,'Total')+':\x20')}]},{'text':_0x19106f['to']('_statusText')}]},new _0x1baa83(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2425b8,_0x10926d]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x5a9002{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x11b99f=this['editor']['editing']['view'];_0x11b99f['change'](_0x269f37=>{for(const _0x75aae8 of _0x11b99f['document']['roots'])_0x269f37['addClass'](le,_0x75aae8);});}['hide'](){const _0xfeb73a=this['editor']['editing']['view'];_0xfeb73a['change'](_0x16db2c=>{for(const _0x225d40 of _0xfeb73a['document']['roots'])_0x16db2c['removeClass'](le,_0x225d40);});}}class g extends _0x5a9002{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x47e704=this['editor'],_0x1b8f70=_0x47e704['plugins']['get'](d),_0x5d64e6=_0x47e704['plugins']['get'](de);_0x47e704['ui']['componentFactory']['add']('exitToEditing',_0x373b1e=>{const _0x3996de=new te(_0x373b1e);return _0x3996de['set']({'label':m(_0x373b1e,'Back\x20to\x20editing'),'icon':_0x123892['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3996de,'execute',()=>{_0x47e704['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3996de;}),_0x47e704['ui']['componentFactory']['add']('restoreRevision',_0xf7ddfa=>{const _0xe1d98e=new te(_0xf7ddfa);return _0xe1d98e['set']({'label':m(_0xf7ddfa,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0xe1d98e['bind']('isEnabled')['to'](_0x47e704['commands']['get']('restoreRevision')),this['listenTo'](_0xe1d98e,'execute',()=>_0x47e704['execute']('restoreRevision')),_0xe1d98e;}),_0x47e704['ui']['componentFactory']['add']('changesNavigation',_0x3b9e31=>{const _0x10ef5e=new ui(_0x3b9e31),_0x3164d6=_0x47e704['commands']['get']('showPreviousChange'),_0x399aa5=_0x47e704['commands']['get']('showNextChange');return _0x10ef5e['bind']('isBackwardNavigationEnabled')['to'](_0x3164d6,'isEnabled'),_0x10ef5e['bind']('isForwardNavigationEnabled')['to'](_0x399aa5,'isEnabled'),_0x10ef5e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1b8f70),this['listenTo'](_0x10ef5e,'execute',(_0x4ee7d5,_0x3b653e)=>{_0x47e704['execute']('forward'===_0x3b653e?'showNextChange':'showPreviousChange');}),_0x10ef5e;}),_0x5d64e6['show'](),_0x1b8f70['on']('change:isReady',(_0x3bfe02,_0xc09cab,_0x2737c3)=>{_0x2737c3?_0x5d64e6['hide']():_0x5d64e6['show']();});}}class at extends _0x3d4f9b{['_resizeObserver']=null;constructor(_0x3eebdd,_0xf08bff){super(_0x3eebdd,_0xf08bff);const _0x59e917=this['bindTemplate'];this['set']({'label':m(_0x3eebdd,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x3eebdd,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x59e917['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x360969=this['fieldView']['element'];this['_tooltipString']=_0x360969['scrollWidth']>_0x360969['clientWidth']&&_0x360969['value']||'';}}class ri extends ts{constructor(_0x4e4c15,_0x48380a,_0x27232d){super(_0x4e4c15);const _0x21a0b7=new _0x1ba9cd();_0x21a0b7['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x424999=['ck','ck-revision-history-sidebar__revision-author'];_0x27232d&&_0x424999['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2afb95=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4e4c15,_0x27232d?'Revision\x20creator':'Revision\x20author')},'children':[_0x21a0b7,_0x48380a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x424999},'children':_0x2afb95});}}function oi(_0x1f16df,_0x2c504c){const _0x4c4365=_0x1f16df['bindTemplate'],_0x28dc55=_0x1f16df['locale'],_0xa243cc=_0x1ffd4b(_0x28dc55);_0xa243cc['panelPosition']='sw';const _0x483b23=function(_0xbd0cd1,_0x2c10be){const _0x22ca69=function(_0x471ec2,_0x40a100){const _0x411113=_0x471ec2['locale'],_0x1d73f8={'Compare\x20against\x20selected':m(_0x411113,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x411113,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x411113,'Restore\x20this\x20revision')};return _0x40a100['map'](_0x32bad0=>{const _0x37544b=_0x1d73f8[_0x32bad0['name']];return _0x37544b&&_0x37544b!==_0x32bad0['name']&&(_0x32bad0['name']=_0x37544b),_0x32bad0;});}(_0xbd0cd1,_0x2c10be),_0x1485a2=new _0x4bd15c();for(const _0x24e737 of _0x22ca69){const _0x2cd56d={'type':'button','model':new _0x45a407({'label':_0x24e737['name'],'class':_0x24e737['class'],'withText':!0x0,'role':'menuitem','_action':_0x24e737['action']})};_0x2cd56d['model']['bind']('isEnabled')['to'](_0xbd0cd1,'isActionsDropdownOpen',_0x3e2bab=>'function'!=typeof _0x24e737['isEnabled']||(!_0x3e2bab||_0x24e737['isEnabled'](_0xbd0cd1))),_0x1485a2['add'](_0x2cd56d);}return _0x1485a2;}(_0x1f16df,_0x2c504c);return _0x1f16df['bind']('isActionsDropdownOpen')['to'](_0xa243cc,'isOpen'),_0xa243cc['buttonView']['set']({'label':m(_0x28dc55,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x123892['threeVerticalDots']}),_0xa243cc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4c4365['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4c4365['to'](_0x546022=>_0x546022['stopPropagation']())}}),_0xa243cc['on']('execute',_0x2a6ac0=>{_0x1f16df['isReady']&&'function'==typeof _0x2a6ac0['source']['_action']&&_0x2a6ac0['source']['_action'](_0x1f16df);}),to(_0xa243cc,_0x483b23,{'role':'menu'}),_0xa243cc['listenTo'](_0x1f16df,'change:isActionsDropdownOpen',(_0x510454,_0x99924b,_0x277d09)=>{if(_0x277d09)for(const _0x35d2bd of _0xa243cc['listView']['items']){const _0x5a272e=_0x35d2bd['children']['first'],_0x1f7399=_0x2c504c['find'](_0x481248=>_0x481248['action']===_0x5a272e['_action'])['isVisible'];_0x35d2bd['isVisible']=void 0x0===_0x1f7399||_0x1f7399(_0x1f16df);}}),_0xa243cc;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x5b4ffe,_0x3f4b7b,_0x57d2c1,_0x5c0510){super(_0x5b4ffe);const _0x1c640e=this['bindTemplate'],_0x21fc11=function(_0x411ad8,_0x22b611){const _0x1ad7a4=Array['from'](_0x22b611['authors'])['filter'](_0x4db884=>_0x4db884!=_0x22b611['creator']);return _0x22b611['creator']&&_0x1ad7a4['unshift'](_0x22b611['creator']),_0x1ad7a4['map'](_0x13a16d=>new ri(_0x411ad8,_0x13a16d,_0x13a16d==_0x22b611['creator']));}(_0x5b4ffe,_0x3f4b7b);this['id']=_0x3f4b7b['id'],this['_revision']=_0x3f4b7b,this['_requireRevisionName']=_0x5c0510,this['bind']('name','createdAt')['to'](_0x3f4b7b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x387377=>{return _0x33976e=_0x5b4ffe['uiLanguage'],(_0x5a41ef=_0x387377)['toLocaleDateString'](_0x33976e,{'month':'long','day':'numeric'})+',\x20'+_0x5a41ef['toLocaleTimeString'](_0x33976e,{'hour':'numeric','minute':'numeric'});var _0x33976e,_0x5a41ef;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x5b4ffe,_0x55a6a1),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xdc1490=>_0xdc1490||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x4a662d,_0x252b47)=>_0x4a662d&&_0x252b47),this['revisionActionsView']=_0x57d2c1&&_0x57d2c1['length']?oi(this,_0x57d2c1):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1c640e['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1c640e['if']('isEnabled','ck-disabled',_0x1d2fa9=>!_0x1d2fa9),_0x1c640e['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1c640e['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1c640e['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':_0x1c640e['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':_0x21fc11}]},this['revisionActionsView']],'on':{'click':_0x1c640e['to'](_0x6ea0f5=>{_0x6ea0f5['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3c3e03=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3c3e03,'change',()=>{this['_requireRevisionName']&&!_0x3c3e03['value']||this['fire']('setName',{'id':this['id'],'name':_0x3c3e03['value']}),_0x3c3e03['value']||(_0x3c3e03['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x1537b4,_0x162018){const _0x129d16=_0x4c2825['fromJSDate'](_0x1537b4)['setLocale'](_0x162018),_0x14108f=_0x4c2825['local'](),_0x37c879=_0x14108f['minus']({'days':0x1})['startOf']('day');let _0x49e9f0,_0x4f6edb;return _0x129d16['hasSame'](_0x14108f,'day')?(_0x49e9f0=_0x129d16['startOf']('day')['toJSDate'](),_0x4f6edb=_0x129d16['toRelativeCalendar']()):_0x129d16['hasSame'](_0x37c879,'day')?(_0x49e9f0=_0x37c879['toJSDate'](),_0x4f6edb=_0x129d16['toRelativeCalendar']()):_0x129d16['hasSame'](_0x14108f,'week')?(_0x49e9f0=_0x129d16['startOf']('week')['toJSDate'](),_0x4f6edb=_0x129d16['weekdayLong']||''):_0x129d16['hasSame'](_0x14108f,'year')?(_0x49e9f0=_0x129d16['startOf']('month')['toJSDate'](),_0x4f6edb=_0x129d16['monthLong']||''):(_0x49e9f0=_0x129d16['startOf']('year')['toJSDate'](),_0x4f6edb=String(_0x129d16['year'])),{'startDate':_0x49e9f0,'localizedPeriodName':_0x4f6edb};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x551739,_0x592331,_0xea31d9,_0x1051ab){super(_0x551739);const _0x2f8c81=mi(_0x592331,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x592331,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0xea31d9,this['_requireRevisionName']=_0x1051ab,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':_0x2f8c81}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4cff1c){const _0x1cfdf0=new hi(this['locale'],_0x4cff1c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1cfdf0);}['removeRevision'](_0x4739de){const _0x62eab5=this['revisionViews']['find'](_0x3ddb74=>_0x3ddb74['id']===_0x4739de['id']);this['revisionViews']['remove'](_0x62eab5);}}class as extends ts{constructor(_0x536c73){super(_0x536c73);const _0x57b49d=new _0x1ba9cd();_0x57b49d['content']=_0x123892['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x57b49d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x536c73,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x524151,_0x4e92c0,_0x2a4599,_0x128bca){super(_0x524151);const _0x30b50f=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4e92c0,this['_revisionActions']=_0x2a4599,this['_requireRevisionName']=_0x128bca,this['on']('select',(_0x25296f,_0x1511dd)=>{this['fire']('revisionSelected',_0x1511dd);}),this['on']('setName',(_0x28f329,_0x4487e5)=>{this['fire']('revisionSetName',_0x4487e5);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x524151),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x30b50f['if']('isEnabled','ck-disabled',_0x2a8312=>!_0x2a8312)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x55d49e of this['_revisions'])this['_addRevision'](_0x55d49e);this['_revisions']['on']('add',(_0x22f91c,_0x500d63)=>{this['_addRevision'](_0x500d63);}),this['_revisions']['on']('remove',(_0xf3e2bd,_0x49c5ec)=>{this['_removeRevision'](_0x49c5ec);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5ef19a=>_0x5ef19a['revisionViews']['map'](_0x464ee4=>_0x464ee4))['flat']();}['selectRevision'](_0x19c5fe){for(const _0x2b1492 of this['revisionViews'])_0x19c5fe&&_0x19c5fe['id']===_0x2b1492['id']?_0x2b1492['select']():_0x2b1492['deselect']();}['highlightRevisions'](_0xa3105e){for(const _0x260707 of this['revisionViews'])_0xa3105e['some'](({id:_0x4295eb})=>_0x4295eb===_0x260707['id'])?_0x260707['highlight']():_0x260707['unhighlight']();}['_addRevision'](_0x1d01fb){const _0x3ca340=mi(_0x1d01fb['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x419548=this['timePeriodViews']['get'](0x0);_0x419548&&_0x419548['startDate']['getTime']()===_0x3ca340['getTime']()||(_0x419548=new vi(this['locale'],_0x3ca340,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x419548)),_0x419548['addRevision'](_0x1d01fb);}['_removeRevision'](_0x38f45f){const _0x1fca32=mi(_0x38f45f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1fca32)['removeRevision'](_0x38f45f);}['_getTimePeriodViewByStartDate'](_0x3f9212){return this['timePeriodViews']['find'](_0x2d31b6=>_0x2d31b6['startDate']['getTime']()===_0x3f9212['getTime']());}}class w extends _0x5a9002{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0xc54ae,uid as _0xc1e5f5,Collection as _0x315d6f,logWarning as _0x407a6c,FocusTracker as _0x26e1ac,KeystrokeHandler as _0x314979,scrollViewportToShowTarget as _0x18c847,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x5580b5}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x536724,set as _0x11a305,unset as _0x57b81f,isEqual as _0x1eec34}from'lodash-es';import{Plugin as _0x4e9651,PendingActions as _0x354331,icons as _0x57e327,Command as _0x5cf7cf,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4bbfe3,getMarkerDomElement as _0x147bd9,ConfirmMixin as _0x546404,sanitizeEditorConfig as _0x2aae73}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x251f66,Element as ft,Range as vt,ViewUIElement as _0x137693,ViewRawElement as _0xb2655b,ViewEmptyElement as _0x2523f7,ViewAttributeElement as _0x30d3fd,ViewContainerElement as _0x1af83a,Position as gt,ViewText as _0x44b068,ViewElement as _0x4349c0,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x5d06dd,injectCssTransitionDisabler as ts,submitHandler as _0x3c29ba,LabeledFieldView as nt,createLabeledInputText as _0x403f90,createDropdown as _0x3d8e5a,ListView as te,ListItemView as _0x9715fb,ButtonView as _0xf16c04,MenuBarMenuView as _0x5ef95d,MenuBarMenuListView as _0x940a85,MenuBarMenuListItemView as _0x18824a,MenuBarMenuListItemButtonView as _0x3913d3,ContextualBalloon as _0x2686c7,ToolbarSeparatorView as _0xa97505,IconView as _0x1a07de,addListToDropdown as _0x41c57e,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4188de}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0xc54ae(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x58dc2b){super(),this['id']=_0x58dc2b['id']||_0xc1e5f5(),this['creator']=_0x58dc2b['creator']||null,this['authors']=_0x58dc2b['authors']||[],this['diffData']=_0x58dc2b['diffData']||null,this['toVersion']=_0x58dc2b['toVersion']||0x0,this['fromVersion']=_0x58dc2b['fromVersion']||0x0,this['set']('name',_0x58dc2b['name']||''),this['set']('createdAt',_0x58dc2b['createdAt']||new Date()),this['set']('attributes',_0x58dc2b['attributes']||{});}['setName'](_0x39b497){this['_update']({'name':_0x39b497});}['setAttribute'](_0x248480,_0x40bbc3){const _0x4387bb=_0x536724(this['attributes']);_0x11a305(_0x4387bb,_0x248480,_0x40bbc3),this['_update']({'attributes':_0x4387bb});}['removeAttribute'](_0x247e33){const _0x3d9ed0=_0x536724(this['attributes']);_0x57b81f(_0x3d9ed0,_0x247e33),this['_update']({'attributes':_0x3d9ed0});}['_update'](_0x595291,_0xe6a04b=!0x1){let _0x18e294=!0x1;const _0x543bc8={'id':this['id']},_0x1eb3ba=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x28debe of _0x1eb3ba){const _0x2426b8=_0x595291[_0x28debe];void 0x0!==_0x2426b8&&_0x2426b8!==this[_0x28debe]&&(this[_0x28debe]=_0x2426b8,_0x543bc8[_0x28debe]=_0x2426b8,_0x18e294=!0x0);}_0x18e294&&(_0x543bc8['authors']&&(_0x543bc8['authorsIds']=_0x543bc8['authors']['map'](_0x457995=>_0x457995['id']),delete _0x543bc8['authors']),this['fire']('_update',_0x543bc8,_0xe6a04b));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3c3354=>_0x3c3354['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4e9651{['_revisions'];static get['requires'](){return[_0x4bbfe3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x868526){super(_0x868526),this['_revisions']=new _0x315d6f();}['afterInit'](){!async function(_0x467b8e){const _0x29e4b3=_0x26311b([0x59,0x52,0x53,0x30,0x48,0x44,0x4d,0x49,0x67,0x78,0x42,0x77,0x58,0x45,0x76,0x38,0x68,0x39,0x7a,0x6e,0x4f,0x43,0x61,0x36,0x74,0x37,0x4b,0x4c,0x71,0x72,0x73,0x64,0x4e,0x5a,0x50,0x47,0x51,0x75,0x63,0x32,0x57,0x35,0x34,0x6a,0x56,0x6f,0x54,0x79,0x69,0x6c,0x41,0x65,0x70,0x33,0x6d,0x4a,0x46,0x62,0x66,0x6b,0x31,0x55]),_0x14527c=0xeb829,_0x9b1645=0x2b0765a7,_0x99fcce=0x2b003b77^_0x9b1645,_0x3ae360=window[_0x26311b([0x44,0x61,0x74,0x65])][_0x26311b([0x6e,0x6f,0x77])](),_0x6caf45=_0x467b8e[_0x26311b([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2c34ce=new window[(_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f632c=>{_0x6caf45[_0x26311b([0x6f,0x6e,0x63,0x65])](_0x26311b([0x72,0x65,0x61,0x64,0x79]),_0x3f632c);}),_0x527a01={[_0x26311b([0x6b,0x74,0x79])]:_0x26311b([0x45,0x43]),[_0x26311b([0x75,0x73,0x65])]:_0x26311b([0x73,0x69,0x67]),[_0x26311b([0x63,0x72,0x76])]:_0x26311b([0x50,0x2d,0x32,0x35,0x36]),[_0x26311b([0x78])]:_0x26311b([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]),[_0x26311b([0x79])]:_0x26311b([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]),[_0x26311b([0x61,0x6c,0x67])]:_0x26311b([0x45,0x53,0x32,0x35,0x36])},_0x36bf33=_0x6caf45[_0x26311b([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x26311b([0x67,0x65,0x74])](_0x26311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4227c9(){let _0x536aa6,_0x1125bb=null,_0x269ce1=null;try{if(_0x36bf33==_0x26311b([0x47,0x50,0x4c]))return _0x26311b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x536aa6=_0x40807c(),!_0x536aa6)return _0x26311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x536aa6[_0x26311b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x269ce1=_0x9df0ca(_0x536aa6[_0x26311b([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x536aa6[_0x26311b([0x6a,0x74,0x69])])),await _0x1fa9aa()?_0x2c1f2b()?_0x38d94f()?_0x26311b([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x34be5e()?(_0x536aa6[_0x26311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26311b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1125bb=_0x3cd28d(_0x26311b([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x536aa6[_0x26311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x26311b([0x74,0x72,0x69,0x61,0x6c])&&(_0x1125bb=_0x3cd28d(_0x26311b([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x20f8fe()):_0x26311b([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x26311b([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x26311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x402d09){return _0x26311b([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x38d94f(){const _0x5144e6=[_0x26311b([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x26311b([0x74,0x72,0x69,0x61,0x6c])][_0x26311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x536aa6[_0x26311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3ae360/0x3e8:0xe10*_0x99fcce;return _0x536aa6[_0x26311b([0x65,0x78,0x70])]<_0x5144e6;}function _0x2c1f2b(){const _0x4f9efe=_0x536aa6[_0x26311b([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4f9efe)return!0x1;if(_0x4f9efe[_0x26311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26311b([0x2a])))return!0x0;if(_0x4f9efe[_0x26311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26311b([0x52,0x48])))return!0x0;if(_0x4f9efe[_0x26311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26311b([0x52,0x52,0x48]))){if(_0x27a40b())return!0x0;if(_0x33cb39()||_0x283ca2())return!0x0;}return!0x1;}function _0x34be5e(){const _0x249d8a=_0x536aa6[_0x26311b([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x249d8a||0x0==_0x249d8a[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x157988}=new URL(window[_0x26311b([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x249d8a[_0x26311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x157988))return!0x0;const _0x377d64=_0x157988[_0x26311b([0x73,0x70,0x6c,0x69,0x74])](_0x26311b([0x2e]));return _0x249d8a[_0x26311b([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x447532=>_0x447532[_0x26311b([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26311b([0x2a])))[_0x26311b([0x6d,0x61,0x70])](_0x3d3f0e=>_0x3d3f0e[_0x26311b([0x73,0x70,0x6c,0x69,0x74])](_0x26311b([0x2e])))[_0x26311b([0x73,0x6f,0x6d,0x65])](_0xcbf238=>_0x377d64[_0x26311b([0x65,0x76,0x65,0x72,0x79])]((_0x48a6a5,_0x24a7df)=>_0xcbf238[_0x24a7df]===_0x48a6a5||_0xcbf238[_0x24a7df]===_0x26311b([0x2a])));}function _0x20f8fe(){return _0x1125bb&&_0x269ce1?new window[(_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xc685cb,_0x528ea7)=>{_0x1125bb[_0x26311b([0x74,0x68,0x65,0x6e])](_0xc685cb,_0x528ea7),_0x269ce1[_0x26311b([0x74,0x68,0x65,0x6e])](_0x1dbf91=>{_0x1dbf91!=_0x26311b([0x56,0x61,0x6c,0x69,0x64])&&_0xc685cb(_0x1dbf91);},_0x528ea7);}):_0x1125bb||_0x269ce1||_0x26311b([0x56,0x61,0x6c,0x69,0x64]);}}function _0x9df0ca(_0x49dba2,_0x405206){return new window[(_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4714cc=>{if(_0x9c2cd2())return _0x4714cc(_0x26311b([0x56,0x61,0x6c,0x69,0x64]));_0x5d2468(),_0x6caf45[_0x26311b([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x26311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37386f=!0x1;const _0x3359a1=_0xc1e5f5();function _0x197ece(_0x581470){return!!_0x581470&&(typeof _0x581470===_0x26311b([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x581470===_0x26311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x581470[_0x26311b([0x74,0x68,0x65,0x6e])]===_0x26311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x581470[_0x26311b([0x63,0x61,0x74,0x63,0x68])]===_0x26311b([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e5810(_0x45be26){_0x40f868(_0x45be26)[_0x26311b([0x74,0x68,0x65,0x6e])](_0xc41264=>{if(!_0xc41264||_0xc41264[_0x26311b([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x26311b([0x6f,0x6b]))return _0x26311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2f7f42(_0x36af25(_0x3359a1+_0x405206))!=_0xc41264[_0x26311b([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x26311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x26311b([0x56,0x61,0x6c,0x69,0x64]);})[_0x26311b([0x74,0x68,0x65,0x6e])](_0x36a6d3=>(_0x3985a2(),_0x36a6d3),()=>{const _0xbdb0dc=_0x26669d();return null==_0xbdb0dc?(_0x3985a2(),_0x26311b([0x56,0x61,0x6c,0x69,0x64])):_0x26311b(_0x3ae360-_0xbdb0dc>(0xf0be1a7^_0x9b1645)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x26311b([0x74,0x68,0x65,0x6e])](_0x4714cc)[_0x26311b([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4714cc(_0x26311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53ee75=0x2b318b27^_0x9b1645;function _0x3985a2(){const _0x313465=_0x26311b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7f42(_0x36af25(_0x49dba2)),_0x9df92c=_0x4e834f(_0x2f7f42(window[_0x26311b([0x4d,0x61,0x74,0x68])][_0x26311b([0x63,0x65,0x69,0x6c])](_0x3ae360/_0x53ee75)));window[_0x26311b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26311b([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x313465,_0x9df92c);}function _0x26669d(){const _0xa7b926=_0x26311b([0x6c,0x6c,0x63,0x74,0x2d])+_0x2f7f42(_0x36af25(_0x49dba2)),_0x5aadb3=window[_0x26311b([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x26311b([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa7b926);return _0x5aadb3?window[_0x26311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e834f(_0x5aadb3),0x10)*_0x53ee75:null;}function _0x40f868(_0x1877bd){return new window[(_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x526d4c,_0x473358)=>{_0x1877bd[_0x26311b([0x74,0x68,0x65,0x6e])](_0x526d4c,_0x473358),window[_0x26311b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x473358,0x2b06b167^_0x9b1645);});}}_0x6caf45[_0x26311b([0x6f,0x6e])](_0x26311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3438ca,_0x22186f)=>{if(_0x22186f[0x0]!=_0x49dba2)return _0x4714cc(_0x26311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22186f[0x1]={..._0x22186f[0x1],[_0x26311b([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3359a1};},{[_0x26311b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26311b([0x68,0x69,0x67,0x68])}),_0x6caf45[_0x26311b([0x6f,0x6e])](_0x26311b([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x259ee5=>{_0x197ece(_0x259ee5[_0x26311b([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37386f=!0x0,_0x3e5810(_0x259ee5[_0x26311b([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x26311b([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x26311b([0x6c,0x6f,0x77])}),_0x2c34ce[_0x26311b([0x74,0x68,0x65,0x6e])](()=>{_0x37386f||_0x4714cc(_0x26311b([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9c2cd2(){return _0x6caf45[_0x26311b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26311b([0x76,0x69,0x65,0x77])][_0x26311b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x26311b([0x61,0x75,0x74,0x6f]);}function _0x5d2468(){_0x6caf45[_0x26311b([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26311b([0x76,0x69,0x65,0x77])][_0x26311b([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26311b([0x61,0x75,0x74,0x6f]);}}function _0x3cd28d(_0x1d9388){const _0x16b0aa=[new window[(_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x158150=>setTimeout(_0x158150,0x2b0e5b6b^_0x9b1645)),_0x2c34ce[_0x26311b([0x74,0x68,0x65,0x6e])](()=>new window[(_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ee27=>{const _0x98d925=0x2b0765a0^_0x9b1645,_0x24233e=_0x467b8e[_0x26311b([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3ee6d8(){_0x24233e[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x98d925&&_0x46ee27();}_0x3ee6d8(),_0x24233e[_0x26311b([0x6f,0x6e])](_0x26311b([0x61,0x64,0x64]),_0x3ee6d8);})),new window[(_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x21cf96=>{function _0x28b2b5(){for(const _0x46024b in window)if(window[_0x26311b([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x26311b([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x46024b))&&window[_0x46024b]==_0x14527c)return _0x21cf96();_0x6caf45[_0x26311b([0x73,0x74,0x61,0x74,0x65])]!=_0x26311b([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x26311b([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28b2b5,0x2b07762f^_0x9b1645);}_0x23c118(_0x26311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x28b2b5();})];return window[_0x26311b([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26311b([0x72,0x61,0x63,0x65])](_0x16b0aa)[_0x26311b([0x74,0x68,0x65,0x6e])](()=>_0x1d9388);}async function _0x190a9d(){if(await _0x2c34ce,_0x23c118(_0x26311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x58d58e=_0x467b8e[_0x26311b([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4d89a7=_0x467b8e[_0x26311b([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])](_0x58d58e[_0x26311b([0x69,0x64])]),_0x13cbf3=_0x54abc5(_0x26311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x13cbf3[_0x26311b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x58d58e['id'],_0x4d89a7?_0x4d89a7['id']:null,!0x0),_0x13cbf3[_0x26311b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x26311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x13cbf3[_0x26311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x13cbf3[_0x26311b([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x54264b,void(_0x13cbf3[_0x26311b([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x54264b);}if(_0x23c118(_0x26311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0xb468b8=_0x54abc5(_0x26311b([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0xb468b8[_0x26311b([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x26311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0xb468b8[_0x26311b([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0xb468b8[_0x26311b([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x54264b,_0xb468b8[_0x26311b([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x54264b;}_0x6caf45[_0x26311b([0x6d,0x6f,0x64,0x65,0x6c])][_0x26311b([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x54264b,_0x6caf45[_0x26311b([0x6d,0x6f,0x64,0x65,0x6c])][_0x26311b([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x54264b,_0x6caf45[_0x26311b([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x26311b([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27a40b(){return _0x23c118(_0x26311b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x54abc5(_0x26311b([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x26311b([0x73,0x74,0x61,0x74,0x65])]==_0x26311b([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x33cb39(){return _0x23c118(_0x26311b([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 _0x283ca2(){return _0x23c118(_0x26311b([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xf70f06(_0x681bf1){const _0x32a757=_0x3f9757();_0x6caf45[_0x32a757]=_0x26311b([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])+_0x681bf1,_0x681bf1[_0x26311b([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x26311b([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3f9757()]=_0x14527c),_0x681bf1!=_0x26311b([0x56,0x61,0x6c,0x69,0x64])&&_0x190a9d();}function _0x3f9757(){const _0x180d97=window[_0x26311b([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x26311b([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x26311b([0x6e,0x6f,0x77])]())[_0x26311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x26311b([0x2e]),'');let _0x31e99f=_0x26311b([0x59]);for(let _0x21edd8=0x0;_0x21edd8<_0x180d97[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21edd8+=0x2){let _0x35104a=window[_0x26311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x180d97[_0x26311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21edd8,_0x21edd8+0x2));_0x35104a>=_0x29e4b3[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x35104a-=_0x29e4b3[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x31e99f+=_0x29e4b3[_0x35104a];}return _0x31e99f;}function _0x40807c(){const _0x3f9c73=_0x36bf33[_0x26311b([0x73,0x70,0x6c,0x69,0x74])](_0x26311b([0x2e]));if(0x3!=_0x3f9c73[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x17c7b(_0x3f9c73[0x1]);function _0x17c7b(_0x3e63ae){const _0x403e63=_0x390506(_0x3e63ae);return _0x403e63&&_0x528b2d()?_0x403e63:null;function _0x528b2d(){const _0x13f4eb=_0x403e63[_0x26311b([0x6a,0x74,0x69])],_0x3d09a6=window[_0x26311b([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f4eb[_0x26311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13f4eb[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x22d749={..._0x403e63,[_0x26311b([0x6a,0x74,0x69])]:_0x13f4eb[_0x26311b([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13f4eb[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x22d749[_0x26311b([0x76,0x63])],_0x36af25(_0x22d749)==_0x3d09a6;}}}async function _0x1fa9aa(){let _0x31ef49=!0x0;try{const _0x20e6eb=_0x36bf33[_0x26311b([0x73,0x70,0x6c,0x69,0x74])](_0x26311b([0x2e])),[_0x1f6a67,_0x3df793,_0x4c8ec0]=_0x20e6eb;return _0x1b0ae4(_0x1f6a67),await _0xe5e7dc(_0x1f6a67,_0x3df793,_0x4c8ec0),_0x31ef49;}catch(_0x1e4f84){return!0x1;}function _0x1b0ae4(_0x5ab1e5){const _0x545fb1=_0x390506(_0x5ab1e5);_0x545fb1&&_0x545fb1[_0x26311b([0x61,0x6c,0x67])]==_0x26311b([0x45,0x53,0x32,0x35,0x36])||(_0x31ef49=!0x1);}async function _0xe5e7dc(_0xd7f63f,_0x1841c8,_0x46990d){const _0x45bae4=window[_0x26311b([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x26311b([0x66,0x72,0x6f,0x6d])](_0x217b12(_0x46990d),_0x171c83=>_0x171c83[_0x26311b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4e9e8c=new window[(_0x26311b([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x26311b([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd7f63f+_0x26311b([0x2e])+_0x1841c8),_0x1f5a41=window[_0x26311b([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x26311b([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1f5a41)return;const _0x1c51e2=await _0x1f5a41[_0x26311b([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x26311b([0x6a,0x77,0x6b]),_0x527a01,{[_0x26311b([0x6e,0x61,0x6d,0x65])]:_0x26311b([0x45,0x43,0x44,0x53,0x41]),[_0x26311b([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x26311b([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x26311b([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1f5a41[_0x26311b([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x26311b([0x6e,0x61,0x6d,0x65])]:_0x26311b([0x45,0x43,0x44,0x53,0x41]),[_0x26311b([0x68,0x61,0x73,0x68])]:{[_0x26311b([0x6e,0x61,0x6d,0x65])]:_0x26311b([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c51e2,_0x45bae4,_0x4e9e8c)||(_0x31ef49=!0x1);}}function _0x390506(_0x4b2e53){return _0x4b2e53[_0x26311b([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x26311b([0x65,0x79]))?JSON[_0x26311b([0x70,0x61,0x72,0x73,0x65])](_0x217b12(_0x4b2e53)):null;}function _0x217b12(_0x167c7b){return window[_0x26311b([0x61,0x74,0x6f,0x62])](_0x167c7b[_0x26311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x26311b([0x2b]))[_0x26311b([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x26311b([0x2f])));}function _0x36af25(_0x4df62c){let _0x4847e7=0x1505;function _0x5c97f7(_0x4db6ba){for(let _0x1fdcd9=0x0;_0x1fdcd9<_0x4db6ba[_0x26311b([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fdcd9++){const _0x2b999f=_0x4db6ba[_0x26311b([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fdcd9);_0x4847e7=(_0x4847e7<<0x5)+_0x4847e7+_0x2b999f,_0x4847e7&=_0x4847e7;}}function _0x4a218a(_0xe16dec){Array[_0x26311b([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xe16dec)?_0xe16dec[_0x26311b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4a218a):_0xe16dec&&typeof _0xe16dec==_0x26311b([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x26311b([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xe16dec)[_0x26311b([0x73,0x6f,0x72,0x74])]()[_0x26311b([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3cda7f,_0x2aabea])=>{_0x5c97f7(_0x3cda7f),_0x4a218a(_0x2aabea);}):_0x5c97f7(window[_0x26311b([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xe16dec));}return _0x4a218a(_0x4df62c),_0x4847e7>>>0x0;}function _0x2f7f42(_0x152aab){return _0x152aab[_0x26311b([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x26311b([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x26311b([0x30]));}function _0x4e834f(_0x1621ea){return _0x1621ea[_0x26311b([0x73,0x70,0x6c,0x69,0x74])]('')[_0x26311b([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x26311b([0x6a,0x6f,0x69,0x6e])]('');}function _0x23c118(_0x48b48e){return _0x6caf45[_0x26311b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x26311b([0x68,0x61,0x73])](_0x48b48e);}function _0x54abc5(_0x2d6ac5){return _0x6caf45[_0x26311b([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x26311b([0x67,0x65,0x74])](_0x2d6ac5);}function _0x54264b(){}function _0x26311b(_0x4afbdd){return _0x4afbdd['map'](_0x1199d2=>String['fromCharCode'](_0x1199d2))['join']('');}_0xf70f06(await _0x4227c9());}(this);}['createRevision'](_0x351a29){const _0x57abaf=this['editor']['plugins']['get']('Users');return new a({'id':_0x351a29['id'],'name':_0x351a29['name'],'creator':_0x351a29['creatorId']?_0x57abaf['getUser'](_0x351a29['creatorId']):null,'diffData':_0x351a29['diffData']||_0x351a29['data'],'authors':_0x351a29['authorsIds']['map'](_0x9a3440=>_0x57abaf['getUser'](_0x9a3440)),'createdAt':new Date(_0x351a29['createdAt']),'attributes':_0x351a29['attributes'],'fromVersion':_0x351a29['fromVersion'],'toVersion':_0x351a29['toVersion']});}['addRevision'](_0x1694fb,_0x3a8dd6=0x0){this['_revisions']['add'](_0x1694fb,_0x3a8dd6);}['getRevision'](_0x4aaaff){return this['_revisions']['get'](_0x4aaaff);}['getRevisions'](_0x265cb2={'toJSON':!0x1}){const _0x305dcb=Array['from'](this['_revisions']);return _0x305dcb['reverse'](),_0x265cb2['toJSON']?_0x305dcb['map'](_0x3f6818=>_0x3f6818['toJSON']()):_0x305dcb;}['getIndex'](_0xfbed63){return this['_revisions']['getIndex'](_0xfbed63);}['getEarlierVisibleRevision'](_0x20cde0){const [,_0x22ad92]=this['getRevisionsIterator'](_0x20cde0,{'direction':'earlier'});return _0x22ad92;}['getLaterVisibleRevision'](_0x4cbc1d){const [,_0x3b8253]=this['getRevisionsIterator'](_0x4cbc1d,{'direction':'later'});return _0x3b8253;}['getRevisionsInDiff'](_0x42b936){const _0x57f627=[];for(const _0x383833 of this['getRevisionsIterator'](_0x42b936['newRevisionId']))if(_0x57f627['push'](_0x383833),_0x383833['id']===_0x42b936['oldRevisionId'])break;return _0x57f627;}*['getRevisionsIterator'](_0x2edb83,{direction:_0x420208='earlier',filter:_0x3b80fd=()=>!0x0}={}){const _0x47b8f8='earlier'===_0x420208?0x1:-0x1;let _0x10829e=this['_revisions']['get'](_0x2edb83),_0x2fd92b=this['getIndex'](_0x10829e);for(yield _0x10829e;_0x10829e;){if(_0x2fd92b+=_0x47b8f8,_0x10829e=this['getRevision'](_0x2fd92b),!_0x10829e)return;_0x3b80fd(_0x10829e)&&(yield _0x10829e);}}}function m(_0x45bfd3,_0x5cffba,_0x28bd61){const t=_0x45bfd3['t'];switch(_0x5cffba){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'},_0x28bd61);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x28bd61);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x1af83a,'a':_0x30d3fd,'e':_0x2523f7,'r':_0xb2655b,'u':_0x137693};class l extends _0x4e9651{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4bbfe3,j,_0x354331];}constructor(_0x52eaed){super(_0x52eaed),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x6c451a=_0xc1e5f5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x6c451a},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x41d9a6=this['repository']['getRevision'](0x0),_0xc2c3a0=_0x41d9a6&&null===_0x41d9a6['creator']?_0x41d9a6:null;if(this['_continueCurrentRevision']=!!_0xc2c3a0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x1cee73=this['_source']['getCurrentRevisionId'](),_0x59acee=this['repository']['getRevision'](_0x1cee73);if(_0x59acee)this['_startingVersion']=_0x59acee['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xa55ab6=this['_source']['history']['_operations']['find'](_0x43100d=>!_0x43100d['_isInit']),_0x50a861=_0xa55ab6?_0xa55ab6['baseVersion']:this['_source']['history']['version'];_0x41d9a6?(_0x41d9a6['toVersion']<_0x50a861&&_0x41d9a6['_update']({'toVersion':_0x50a861}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xc2c3a0['id'],this['_startingVersion']=_0xc2c3a0['fromVersion']):(this['_startingVersion']=_0x41d9a6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x50a861,this['_continueCurrentRevision']=!0x1);}}else _0xc2c3a0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xc2c3a0['toVersion'],this['editor']['model']['document']['history']['version']),_0xc2c3a0['fromVersion']===_0xc2c3a0['toVersion']?(0x0!==_0xc2c3a0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xc2c3a0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xc2c3a0['id'],this['_startingVersion']=_0xc2c3a0['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',_0x42d82e=>!_0x42d82e),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2f4511=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x122ce7;for(const _0x4f6a5f in _0x2f4511){const _0x2b14e8=_0x4f6a5f,_0x398e21=_0x2f4511[_0x2b14e8];if('revisionHistoryLicenseKeyValid'==_0x398e21||'revisionHistoryLicenseKeyInvalid'==_0x398e21||'revisionHistoryLicenseKeyExpired'==_0x398e21||'revisionHistoryLicenseKeyDomainLimit'==_0x398e21||'revisionHistoryLicenseKeyNotAllowed'==_0x398e21||'revisionHistoryLicenseKeyEvaluationLimit'==_0x398e21||'revisionHistoryLicenseKeyTrialLimit'==_0x398e21||'revisionHistoryLicenseKeyUsageLimit'==_0x398e21){delete _0x2f4511[_0x2b14e8],_0x122ce7=_0x398e21,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x122ce7&&_0x2f4511['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x122ce7&&_0x2f4511['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x122ce7&&_0x2f4511['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x122ce7&&_0x2f4511['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x122ce7&&_0x2f4511['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x122ce7&&_0x2f4511['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x122ce7&&_0x2f4511['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x175a25=this['repository']['getRevision'](0x0),_0x571ea6=await this['getRevisionDocumentData'](_0x175a25),_0x13a99e=await this['getRevisionRootsAttributes'](_0x175a25);this['_replaceEditorDataWithRevisionData'](_0x571ea6,_0x13a99e);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x25c170){this['_source']=_0x25c170;}async['update'](){const _0x258f99=await this['_source']['getLatestVersion']();if(_0x258f99>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2a48d1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x258f99});_0x2a48d1['authors']=_0x2a48d1['authorsIds']['map'](_0x45bed8=>this['editor']['plugins']['get']('Users')['getUser'](_0x45bed8)),this['currentRevision']['_update'](_0x2a48d1);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x2f0b9e={},_0x1ae227=null){const _0x111109=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1ae227>this['currentRevision']['toVersion']&&(_0x1ae227=null),null===_0x1ae227&&(_0x1ae227=await this['_source']['getLatestVersion']());const _0x544d4e=this['_getFromVersion'](_0x1ae227),_0x1f5250=this['buildRevisionData']({'from':_0x544d4e,'to':_0x1ae227});if(this['currentRevision']['toVersion']<_0x1ae227){const _0x598fdc=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1ae227,'to':_0x1ae227});_0x598fdc['authors']=[],_0x598fdc['authorsIds']=[],_0x598fdc['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x598fdc,!0x0),delete _0x598fdc['authors'],_0x111109['push'](_0x598fdc);}_0x2f0b9e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f0b9e['name']=_0x2f0b9e['name']||null,_0x2f0b9e['id']=_0x2f0b9e['id']||_0xc1e5f5(),_0x2f0b9e={..._0x2f0b9e,..._0x1f5250};const _0x56577b=this['addRevisionData'](_0x2f0b9e);_0x111109['push'](_0x2f0b9e);const _0x20aae9=this['repository']['getIndex'](_0x56577b);if(0x0!==_0x20aae9){const _0x138c3e=this['repository']['getRevision'](_0x20aae9-0x1);if(_0x138c3e['fromVersion']!==_0x1ae227){const _0x54bb09=this['_revisionDataBuilder']['getData'](_0x1ae227,_0x138c3e['toVersion']),_0x1e0fc3={'id':_0x138c3e['id'],'diffData':_0x54bb09['diffData'],'authorsIds':_0x54bb09['authorsIds'],'authors':_0x54bb09['authorsIds']['map'](_0x7da597=>this['editor']['plugins']['get']('Users')['getUser'](_0x7da597)),'fromVersion':_0x1ae227};_0x138c3e===this['currentRevision']&&(_0x1e0fc3['createdAt']=new Date(_0x2f0b9e['createdAt']['getTime']()+0xa)),_0x138c3e['_update'](_0x1e0fc3,!0x0),delete _0x1e0fc3['authors'],_0x111109['push'](_0x1e0fc3);}}if(this['adapter']){for(const _0x38e6c0 of _0x111109)this['_bufferUpdate'](_0x38e6c0['id'],_0x38e6c0,!0x0);this['sendBufferedUpdates']();}return _0x56577b;}['addRevisionData'](_0x1720fa){const _0x5c876e=this['repository']['createRevision'](_0x1720fa);return this['adapter']&&_0x5c876e['on']('_update',(_0x437f39,_0x5eb6b9,_0x45b16a)=>{_0x45b16a||(this['_bufferUpdate'](_0x5eb6b9['id'],_0x5eb6b9,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c876e,this['_findInsertionIndex'](_0x5c876e)),_0x5c876e;}async['getRevisionDocumentData'](_0x5e0c5e){await this['_loadRevisionData'](_0x5e0c5e);const _0x33f6c5={};for(const _0x335766 in _0x5e0c5e['diffData']){if(_0x5e0c5e['diffData'][_0x335766]['attachChange']&&!_0x5e0c5e['diffData'][_0x335766]['attachChange']['isAttached'])continue;const _0x3b8be0=this['_removeRevisionMarkers'](JSON['parse'](_0x5e0c5e['diffData'][_0x335766]['insertions'])),_0x5013b8=this['editor']['editing']['view']['document'],_0x31bade=new _0x251f66(_0x5013b8,_0x3b8be0['map'](_0x32d38b=>C(_0x32d38b,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x33f6c5[_0x335766]=this['editor']['data']['processor']['toData'](_0x31bade),this['editor']['data']['processor']['useFillerType']('default');}return _0x33f6c5;}async['getRevisionRootsAttributes'](_0x1fafc9){await this['_loadRevisionData'](_0x1fafc9);const _0x494e0a={};for(const _0x260429 in _0x1fafc9['diffData'])_0x1fafc9['diffData'][_0x260429]['attachChange']&&!_0x1fafc9['diffData'][_0x260429]['attachChange']['isAttached']||(_0x494e0a[_0x260429]=_0x1fafc9['diffData'][_0x260429]['attributesAfter']||{});return _0x494e0a;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0xfe2ae0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x19ff87=0x0;_0x19ff87<_0xfe2ae0['length'];_0x19ff87++){const _0x2ddc08=_0xfe2ae0[_0x19ff87];let _0x1c6d5e=!0x1;for(const _0x3fb472 of Object['keys'](_0x2ddc08))void 0x0===_0x2ddc08[_0x3fb472]?delete _0x2ddc08[_0x3fb472]:'id'!==_0x3fb472&&(_0x1c6d5e=!0x0);_0x1c6d5e||(_0xfe2ae0[_0x19ff87]=null);}if(_0xfe2ae0=_0xfe2ae0['filter'](_0x490b32=>null!==_0x490b32),!_0xfe2ae0['length'])return;for(let _0x1b623a=0x0;_0x1b623a<_0xfe2ae0['length'];_0x1b623a++){const _0x343e9c=_0xfe2ae0[_0x1b623a];void 0x0!==_0x343e9c['fromVersion']&&void 0x0===_0x343e9c['toVersion']&&(_0x343e9c['toVersion']=this['repository']['getRevision'](_0x343e9c['id'])['toVersion']),void 0x0!==_0x343e9c['toVersion']&&void 0x0===_0x343e9c['fromVersion']&&(_0x343e9c['fromVersion']=this['repository']['getRevision'](_0x343e9c['id'])['fromVersion']);}const _0x4c7701=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0xfe2ae0,_0x4c7701)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3b06ca=>{if(_0x3b06ca){for(const _0x36c1bd of _0x3b06ca)this['setRevisionData']({'id':_0x36c1bd['id'],'createdAt':_0x36c1bd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x22655e,_0x6e9625){let _0x501fca=this['editor']['config']['get']('initialData'),_0x3cb732=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x501fca){_0x501fca={};for(const _0x179693 of this['editor']['model']['document']['getRootNames']())_0x501fca[_0x179693]='';}if('string'==typeof _0x501fca&&(_0x501fca={'main':_0x501fca}),void 0x0===_0x3cb732){_0x3cb732={};for(const _0xff254d of this['editor']['model']['document']['getRootNames']())_0x3cb732[_0xff254d]={};}let _0x55d20e=!0x1;const _0x2d4b46=Object['keys'](_0x501fca),_0x17d9c0=Object['keys'](_0x22655e);for(const _0x4c3fa6 of _0x2d4b46){if(_0x501fca[_0x4c3fa6]!==_0x22655e[_0x4c3fa6]&&''!==_0x501fca[_0x4c3fa6]['trim']()){_0x55d20e=!0x0;break;}if(!_0x1eec34(_0x3cb732[_0x4c3fa6],_0x6e9625[_0x4c3fa6])&&Object['keys'](_0x3cb732[_0x4c3fa6])['length']>0x0){_0x55d20e=!0x0;break;}}_0x55d20e||(_0x55d20e=_0x17d9c0['some'](_0x47b19d=>!this['editor']['model']['document']['getRoot'](_0x47b19d))),_0x55d20e&&_0x407a6c('editor-initial-data-replaced-with-revision-data',{'editorData':_0x501fca,'editorRootsAttributes':_0x3cb732,'revisionData':_0x22655e,'revisionRootsAttributes':_0x6e9625}),this['editor']['config']['set']('initialData',_0x22655e),this['editor']['config']['set']('rootsAttributes',_0x6e9625);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x40fa3c=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x40fa3c['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x45c4fa){const _0x3e8411=this['repository']['getRevisions']();_0x3e8411['reverse']();let _0x389246=0x0;for(;_0x389246<_0x3e8411['length'];){const _0x36062c=_0x3e8411[_0x389246];if(_0x36062c===this['currentRevision']){_0x389246++;continue;}if(_0x36062c['id']===this['_initialRevisionId'])break;const _0x20a4a5=_0x45c4fa['toVersion']-_0x36062c['toVersion']||_0x45c4fa['fromVersion']-_0x36062c['fromVersion'];if(_0x20a4a5>0x0)break;if(_0x20a4a5<0x0)_0x389246++;else{if(!_0x45c4fa['creator']&&_0x36062c['creator'])break;if(_0x36062c['creator']||!_0x45c4fa['creator']){if(_0x45c4fa['createdAt']>_0x36062c['createdAt'])break;_0x389246++;}else _0x389246++;}}return _0x389246;}['setRevisionData'](_0x1c34f3){const _0x561225=this['repository']['getRevision'](_0x1c34f3['id']);if(_0x1c34f3['createdAt']&&(_0x1c34f3['createdAt']=new Date(_0x1c34f3['createdAt'])),_0x1c34f3['authorsIds']){const _0x7d5a5d=this['editor']['plugins']['get']('Users');_0x1c34f3['authors']=_0x1c34f3['authorsIds']['map'](_0x3616b0=>_0x7d5a5d['getUser'](_0x3616b0));}_0x561225['_update'](_0x1c34f3,!0x0);}['buildRevisionData']({revision:_0x353b74=null,from:_0x54f59c=null,to:_0x227add=null}){_0x54f59c=null!==_0x54f59c?_0x54f59c:_0x353b74['fromVersion'],_0x227add=null!==_0x227add?_0x227add:_0x353b74['toVersion'];const _0x1e009c=this['_revisionDataBuilder']['getData'](_0x54f59c,_0x227add),_0x519497={'diffData':_0x1e009c['diffData'],'authorsIds':_0x1e009c['authorsIds'],'fromVersion':_0x54f59c,'toVersion':_0x227add};if(!_0x353b74||_0x227add!==_0x353b74['toVersion']){const _0x551868=_0x227add-0x1,_0x5b0c5f=this['_source']['history']['getOperation'](_0x551868);_0x519497['createdAt']=_0x5b0c5f&&_0x5b0c5f['createdAt']||new Date();}if(this['_loadedStateData']&&_0x54f59c===this['_loadedStateData']['fromVersion']){for(const _0x58a42f of this['_loadedStateData']['authors'])_0x519497['authorsIds']['includes'](_0x58a42f['id'])||_0x519497['authorsIds']['push'](_0x58a42f['id']);}return _0x519497;}['_loadRevisionData'](_0x18775a){if(!_0x18775a||_0x18775a['diffData'])return Promise['resolve']();{const _0x4a01be=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4a01be,'revisionId':_0x18775a['id']})['then'](_0x42a1b2=>{_0x18775a['diffData']=_0x42a1b2['diffData'];});}}['_bufferUpdate'](_0x27f5ac,_0xc9bb9f,_0x3cb4b9){if(this['_bufferedUpdates']['has'](_0x27f5ac)){const _0xaabd75=this['_bufferedUpdates']['get'](_0x27f5ac);_0xc9bb9f=_0x3cb4b9?{..._0xaabd75,..._0xc9bb9f}:{..._0xc9bb9f,..._0xaabd75};}this['_bufferedUpdates']['set'](_0x27f5ac,_0xc9bb9f);}['_getFromVersion'](_0x2dbea5){const _0x578696=this['repository']['getRevisions']();_0x578696['reverse'](),_0x578696['shift']();const _0x36d1a8=_0x578696['find'](_0xbe6e42=>_0xbe6e42['toVersion']<=_0x2dbea5)['toVersion'];return _0x36d1a8<this['_startingVersion']?this['_startingVersion']:_0x36d1a8;}['_createInitialRevision'](_0x4997df){const _0x38d91f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x38d91f)this['_initialRevisionId']=_0x38d91f['id'];else{const _0x3e220c=!this['editor']['model']['document']['roots']['find'](_0x3c5e78=>this['editor']['model']['hasContent'](_0x3c5e78)),_0x2b636a=this['editor']['plugins']['get']('Users')['me']['id'],_0x165126=m(this['editor']['locale'],_0x3e220c?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x4997df,'to':_0x4997df,'id':this['_initialRevisionId'],'name':_0x165126,'creatorId':_0x2b636a});}}['_createCurrentRevision'](_0x3aba94){const _0x494740=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x494740),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3aba94,'to':_0x3aba94,'id':_0x494740,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2e9000,from:_0x40128f,to:_0x585e05,creatorId:_0x7eb541,id:_0x245241}){const _0x5dbc0b=this['buildRevisionData']({'from':_0x40128f,'to':_0x585e05});_0x5dbc0b['name']=_0x2e9000,_0x5dbc0b['creatorId']=_0x7eb541,_0x5dbc0b['id']=_0x245241;const _0x270dc9=this['addRevisionData'](_0x5dbc0b);return this['adapter']&&this['_bufferUpdate'](_0x5dbc0b['id'],_0x5dbc0b,!0x0),_0x270dc9;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1f11f3){return(_0x1f11f3=_0x1f11f3['filter'](_0x39c95c=>!_0x39c95c['name']||'revision-start'!==_0x39c95c['name']&&'revision-end'!==_0x39c95c['name']))['forEach'](_0xe039ae=>{'string'!=typeof _0xe039ae&&(_0xe039ae['children']=this['_removeRevisionMarkers'](_0xe039ae['children']),_0xe039ae['attributes']=_0xe039ae['attributes']['filter'](_0x17c146=>!_0x17c146[0x0]['startsWith']('data-revision-')));}),_0x1f11f3;}}function C(_0x4e232c,_0x4d2f79){const _0xb8b286=_0x4d2f79['editing']['view']['document'];if('string'==typeof _0x4e232c)return new _0x44b068(_0xb8b286,_0x4e232c);{const _0x3ccbfb=_0x4e232c['children']['map'](_0x5dcfbb=>C(_0x5dcfbb,_0x4d2f79));return new(P[_0x4e232c['type']]||_0x4349c0)(_0xb8b286,_0x4e232c['name'],_0x4e232c['attributes'],_0x3ccbfb);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x39bd51){this['editor']=_0x39bd51,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'](_0x18bb78){this['source']=_0x18bb78;const _0x5d8f7c=new Map(),_0x5d56fe=new Map(),_0x5835ea=this['editor']['model']['document']['roots']['map'](_0x214f70=>_0x214f70['rootName']);for(const _0x43a1a7 of _0x5835ea){const _0x541c4d=this['editor']['model']['document']['getRoot'](_0x43a1a7),_0x4c240a=T(_0x541c4d);_0x5d8f7c['set'](_0x43a1a7,_0x4c240a),_0x5d56fe['set'](_0x43a1a7,Object['fromEntries'](_0x541c4d['getAttributes']()));}const _0x481b1f=Array['from'](this['editor']['model']['markers'])['map'](_0x27b522=>[_0x27b522['name'],_0x27b522['getRange']()]),_0x2876d7=this['source']['version'];this['_saveMetaData'](_0x2876d7,_0x5d8f7c,_0x481b1f,_0x5d56fe),this['_startingRevisionId']=this['_revisionId'];const _0x395d0c=new Map(),_0x3f26d3=new Map();for(const _0x328ce7 of _0x5835ea){const _0x31e350=F(_0x328ce7);_0x395d0c['set'](_0x328ce7,_0x31e350),_0x3f26d3['set'](_0x328ce7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x395d0c,[],_0x3f26d3);}['getData'](_0x18d424,_0x1d1f40){if(this['_lastFrom']===_0x18d424&&this['_lastTo']<=_0x1d1f40)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1d1f40,!0x0);else{if(!this['_savedMetaData']['has'](_0x18d424)){const _0x31ebd2=this['_getPreviousFrom'](_0x18d424);this['_calculateMetaData'](_0x31ebd2,_0x18d424,!0x1);}this['_calculateMetaData'](_0x18d424,_0x1d1f40,!0x0);}return this['_lastFrom']=_0x18d424,this['_lastTo']=_0x1d1f40,this['_getState']();}['loadState'](_0x233f20){this['_reset'](),this['_lastFrom']=_0x233f20['fromVersion'],this['_lastTo']=_0x233f20['toVersion'];for(const _0x701aa2 in _0x233f20['diffData']){const _0x579df4=_0x233f20['diffData'][_0x701aa2]['attachChange'],_0x2d5004=_0x536724(_0x233f20['diffData'][_0x701aa2]['attributesBefore'])||{},_0x596e62=this['_makeModelFromViewString'](_0x233f20['diffData'][_0x701aa2]['deletions']);_0x596e62['rootName']=_0x701aa2,_0x596e62['_isAttached']=!_0x579df4||!_0x579df4['isAttached'],_0x596e62['isAttached']=()=>_0x596e62['_isAttached'],this['_baseRoots']['set'](_0x701aa2,_0x596e62),this['_baseRootsAttributes']['set'](_0x701aa2,_0x2d5004),_0x579df4&&this['_touchedRoots']['set'](_0x701aa2,_0x579df4);const _0x2ad1dc=this['_makeIdsRoot'](_0x596e62);this['_baseIdsRoots']['set'](_0x701aa2,_0x2ad1dc);for(const [_0x174360,_0x4204ae]of _0x596e62['markers']){if(!_0x174360['startsWith']('revision:'))continue;const _0xb84449=_0x174360['split'](':')[0x2];for(const _0x5a4086 of _0x4204ae['getWalker']({'singleCharacters':!0x0})){const _0x38a1a4=this['_getVidAttributeName'](_0x5a4086),_0x1fec0d='elementEnd'==_0x5a4086['type']?_0x5a4086['previousPosition']['path']['slice'](0x0,-0x1):_0x5a4086['previousPosition']['path'],_0x1580a5=_0x2ad1dc['getNodeByPath'](_0x1fec0d)['getAttribute'](_0x38a1a4);this['_touched']['set'](_0x1580a5,{'userId':_0xb84449});}}}this['_startingRevisionId']=this['_revisionId'];const _0x13d734=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x272340=>!this['_touched']['has'](_0x272340));let _0x53e7a6=0x0;const _0x276821=new Map();for(const _0x4fdaa4 in _0x233f20['diffData']){const _0x5b6b5e=_0x233f20['diffData'][_0x4fdaa4]['attachChange'],_0x5eee77=_0x536724(_0x233f20['diffData'][_0x4fdaa4]['attributesAfter'])||{},_0xb3438a=this['_makeModelFromViewString'](_0x233f20['diffData'][_0x4fdaa4]['insertions']);_0xb3438a['rootName']=_0x4fdaa4,_0xb3438a['_isAttached']=!_0x5b6b5e||_0x5b6b5e['isAttached'],_0xb3438a['isAttached']=()=>_0xb3438a['_isAttached'],this['_diffRoots']['set'](_0x4fdaa4,_0xb3438a),this['_diffRootsAttributes']['set'](_0x4fdaa4,_0x5eee77);const _0x72757b=this['_makeIdsRoot'](_0xb3438a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4fdaa4,_0x72757b),_0x276821['set'](_0x4fdaa4,_0xb3438a['isAttached']()?_0x5eee77:{});for(const [_0x5b21f3,_0x55aacf]of _0xb3438a['markers']){if(!_0x5b21f3['startsWith']('revision:'))continue;const _0x371f54=_0x5b21f3['split'](':')[0x2];for(const _0x56df77 of _0x55aacf['getWalker']({'singleCharacters':!0x0})){const _0x309c98=this['_getVidAttributeName'](_0x56df77),_0x19cef9=this['_revisionId']++,_0x278b48='elementEnd'==_0x56df77['type']?_0x56df77['previousPosition']['path']['slice'](0x0,-0x1):_0x56df77['previousPosition']['path'];_0x72757b['getNodeByPath'](_0x278b48)['_setAttribute'](_0x309c98,_0x19cef9),this['_touched']['set'](_0x19cef9,{'userId':_0x371f54});}}for(const _0x2adc89 of this['editor']['model']['createRangeIn'](_0xb3438a)['getWalker']({'singleCharacters':!0x0})){const _0x46cb76=this['_getVidAttributeName'](_0x2adc89),_0x454888='elementEnd'==_0x2adc89['type']?_0x2adc89['previousPosition']['path']['slice'](0x0,-0x1):_0x2adc89['previousPosition']['path'],_0x2767bb=_0x72757b['getNodeByPath'](_0x454888);_0x2767bb['getAttribute'](_0x46cb76)>0x0||_0x2767bb['_setAttribute'](_0x46cb76,_0x13d734[_0x53e7a6++]);}for(const [_0x680c59,_0x169ba9]of _0xb3438a['markers'])_0x680c59['startsWith']('revision:')||this['_markers']['set'](_0x680c59,_0x169ba9);}const _0x599c99=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x599c99),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x599c99,0x1));const _0x53bcff=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x53bcff),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x53bcff,0x1));const _0xe9b299=Array['from'](this['_diffRoots'])['map'](([_0x260bc0,_0x5d401f])=>[_0x260bc0,T(_0x5d401f)]);this['_saveMetaData'](this['_lastTo'],_0xe9b299,this['_markers'],_0x276821);}['_makeModelFromViewString'](_0x57237f){const _0x5b1df6=JSON['parse'](_0x57237f),_0x154f00=this['editor']['editing']['view']['document'],_0x588be9=new _0x251f66(_0x154f00,_0x5b1df6['map'](_0x35a204=>C(_0x35a204,this['editor'])));return this['editor']['data']['toModel'](_0x588be9);}['_saveMetaData'](_0x1b5a4e,_0x3701e2,_0x1f4c84,_0x33382c){const _0x3fd03a=new Map(_0x3701e2),_0x5c70f1=new Map(_0x536724(_0x33382c)),_0x566c26=new Map();for(const [_0x22988f,_0x4ace72]of _0x1f4c84)_0x566c26['set'](_0x22988f,{'start':_0x4ace72['start']['clone'](),'end':_0x4ace72['end']['clone'](),'rootName':_0x4ace72['root']['rootName']});this['_savedMetaData']['set'](_0x1b5a4e,{'roots':_0x3fd03a,'markers':_0x566c26,'rootsAttributes':_0x5c70f1});}['_removeMetaData'](_0x4a4c6e){this['_savedMetaData']['delete'](_0x4a4c6e);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x54587d,_0x547cf7=null){let _0x1cb25a=null;_0x54587d['is']('documentFragment')||(_0x1cb25a=new ft(_0x54587d['name'],{'vid_start':null===_0x547cf7?this['_revisionId']++:_0x547cf7++}));const _0x26a4ce=[];for(const _0x5376f3 of _0x54587d['getChildren']())if(_0x5376f3['is']('element')){_0x26a4ce['push'](this['_makeIdsRoot'](_0x5376f3,_0x547cf7));const _0x199fa9=_0x26a4ce[_0x26a4ce['length']-0x1];null!==_0x547cf7&&(_0x547cf7=_0x199fa9['is']('element','$text')?_0x199fa9['getAttribute']('vid')+0x1:_0x199fa9['getAttribute']('vid_end')+0x1);}else{for(let _0x29d2c1=0x0;_0x29d2c1<_0x5376f3['offsetSize'];_0x29d2c1++)_0x26a4ce['push'](new ft('$text',{'vid':null===_0x547cf7?this['_revisionId']++:_0x547cf7++}));}if(_0x54587d['is']('documentFragment')){const _0x17bbe4=F(_0x54587d['rootName']);return _0x17bbe4['_insertChild'](0x0,_0x26a4ce),_0x17bbe4;}return _0x1cb25a['_setAttribute']('vid_end',null===_0x547cf7?this['_revisionId']++:_0x547cf7++),_0x1cb25a['_insertChild'](0x0,_0x26a4ce),_0x1cb25a;}['_calculateMetaData'](_0x182bf0,_0x66a74d,_0x3a1404){this['_reset']();const {roots:_0x15516f,markers:_0x198dd5,rootsAttributes:_0x4fe6d9}=this['_savedMetaData']['get'](_0x182bf0);this['_baseRoots']=new Map(_0x15516f),this['_baseRootsAttributes']=new Map(_0x536724(_0x4fe6d9));for(const [_0x53b48e,_0x2faa3c]of this['_baseRoots'])if('$graveyard'!==_0x53b48e&&(this['_diffRoots']['set'](_0x53b48e,T(_0x2faa3c)),this['_diffRootsAttributes']=new Map(_0x536724(_0x4fe6d9)),_0x3a1404)){const _0x4d0f0c=this['_revisionId'];this['_idsRoots']['set'](_0x53b48e,this['_makeIdsRoot'](_0x2faa3c)),this['_baseIdsRoots']['set'](_0x53b48e,this['_makeIdsRoot'](_0x2faa3c,_0x4d0f0c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3a1404&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x30c153,_0xd909d1]of _0x198dd5){const _0x1d8e84=this['_baseRoots']['get'](_0xd909d1['rootName']),_0x2f63ab=this['_diffRoots']['get'](_0xd909d1['rootName']),_0x4d984d=new vt(this['_fixPosition'](_0xd909d1['start'],_0x1d8e84),this['_fixPosition'](_0xd909d1['end'],_0x1d8e84)),_0x56426d=this['_fixRange'](_0x4d984d,_0x2f63ab);_0x1d8e84['markers']['set'](_0x30c153,_0x4d984d),this['_markers']['set'](_0x30c153,_0x56426d);}this['_applyOperations'](_0x182bf0,_0x66a74d,_0x3a1404);}['_applyOperations'](_0xcd91c7,_0x59e322,_0x1795f2){for(const _0x153798 of this['source']['getOperations'](_0xcd91c7,_0x59e322))this['_handleOperation'](_0x153798,_0x1795f2);for(const _0x1b6983 of this['_diffRoots']['values']())_0x1b6983['markers']['clear']();for(const [_0x3b8eb1,_0x1ff783]of this['_markers']){this['_diffRoots']['get'](_0x1ff783['root']['rootName'])['markers']['set'](_0x3b8eb1,_0x1ff783['clone']());}const _0x7ba847=new Map(),_0x58fdb7=new Map();for(const [_0x56a540,_0x3fe7c2]of this['_diffRoots'])_0x7ba847['set'](_0x56a540,T(_0x3fe7c2)),_0x58fdb7['set'](_0x56a540,this['_diffRootsAttributes']['get'](_0x56a540));this['_saveMetaData'](_0x59e322,_0x7ba847,this['_markers'],_0x58fdb7);}['_getPreviousFrom'](_0x59d5e8){const _0x29ab5d=Array['from'](this['_savedMetaData']['keys']());_0x29ab5d['sort']((_0x4ac7e7,_0x446b2b)=>_0x4ac7e7-_0x446b2b),_0x29ab5d['reverse']();for(const _0x48e9b1 of _0x29ab5d)if(_0x48e9b1<_0x59d5e8)return _0x48e9b1;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x5dcfad,_0x239cf3){const _0x552812=Array['from'](_0x239cf3['markers'])['map'](([_0x483e78,_0x3b9831])=>[_0x483e78,this['_fixRange'](_0x3b9831,_0x5dcfad)]);_0x5dcfad['markers']=new Map(_0x552812);}['_transformMarkers'](_0x1fa283){for(const _0x5d8f4a of this['_markers']['values']()){const _0x6b3534=_0x5d8f4a['getTransformedByOperation'](_0x1fa283),_0x3f801c=vt['_createFromRanges'](_0x6b3534);_0x5d8f4a['start']=_0x3f801c['start'],_0x5d8f4a['end']=_0x3f801c['end'];}}['_handleOperation'](_0xe1f2df,_0x28756f){if('addRoot'!=_0xe1f2df['type']&&'detachRoot'!=_0xe1f2df['type']){if('insert'==_0xe1f2df['type']){const _0x415bcb=_0xe1f2df['position']['root']['rootName'];this['_diffRoots']['has'](_0x415bcb)||(this['_diffRoots']['set'](_0x415bcb,F(_0x415bcb,!0x0)),this['_diffRootsAttributes']['set'](_0x415bcb,{}),_0x28756f&&this['_idsRoots']['set'](_0x415bcb,F(_0x415bcb,!0x0)));}else{if('addRootAttribute'==_0xe1f2df['type']||'removeRootAttribute'==_0xe1f2df['type']||'changeRootAttribute'==_0xe1f2df['type'])return void this['_handleRootAttributeOperation'](_0xe1f2df);'marker'==_0xe1f2df['type']&&this['_handleMarkerOperation'](_0xe1f2df);}if('marker'!==_0xe1f2df['type']){const _0x4b91db=this['_cloneOperation'](_0xe1f2df,this['_diffRoots']);_0x4b91db['_execute'](),this['_transformMarkers'](_0x4b91db);}if(_0x28756f)switch(_0xe1f2df['type']){case'insert':this['_handleInsertOperation'](_0xe1f2df);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xe1f2df);break;case'merge':this['_handleMergeOperation'](_0xe1f2df);break;case'split':this['_handleSplitOperation'](_0xe1f2df);}}else this['_handleRootOperation'](_0xe1f2df,_0x28756f);}['_cloneOperation'](_0x4c8987,_0x2e3460){const _0x32c781=_0x4c8987['clone']();return _0x32c781['_authorId']=_0x4c8987['_authorId'],this['_fixOperation'](_0x32c781,_0x2e3460),_0x32c781;}['_getBaseVids'](_0x3ca975){return _0x3ca975['map'](_0x363ae7=>{const _0x210823=this['_getVidAttributeName'](_0x363ae7);return Number(_0x363ae7['item']['getAttribute'](_0x210823));});}['_generateTape'](_0x40c866,_0x540c5c){if(_0x40c866['is']('element','$text'))_0x540c5c['push']({'item':_0x40c866,'type':'text'});else{_0x40c866['is']('element')&&_0x540c5c['push']({'item':_0x40c866,'type':'elementStart'});for(const _0x8b914c of _0x40c866['getChildren']())this['_generateTape'](_0x8b914c,_0x540c5c);_0x40c866['is']('element')&&_0x540c5c['push']({'item':_0x40c866,'type':'elementEnd'});}return _0x540c5c;}['_getState'](){const _0x283a27=new Map(this['_touched']),_0x1d60b5=new Map(_0x283a27),_0x478286=new Map(),_0x3ca839={'insertions':{},'deletions':{}},_0x55d992={'insertions':{},'deletions':{}},_0x48e90f=new Map(),_0x58a053=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x58a053['delete']('$graveyard');for(const _0x2132cb of _0x58a053){const _0x3f5aeb=this['_diffRoots']['get'](_0x2132cb)||F(_0x2132cb,!0x1),_0x554021=this['_baseRoots']['get'](_0x2132cb)||F(_0x2132cb,!0x1);_0x3f5aeb['isAttached']()||_0x554021['isAttached']()?(_0x3ca839['insertions'][_0x2132cb]=T(_0x3f5aeb),_0x3ca839['deletions'][_0x2132cb]=T(_0x554021),this['_copyMarkers'](_0x3ca839['deletions'][_0x2132cb],_0x554021),this['_copyMarkers'](_0x3ca839['insertions'][_0x2132cb],_0x3f5aeb),_0x55d992['insertions'][_0x2132cb]=this['_generateTape'](this['_idsRoots']['get'](_0x2132cb),[]),_0x55d992['deletions'][_0x2132cb]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x2132cb)||F(_0x2132cb,!0x1),[])):_0x58a053['delete'](_0x2132cb);}for(const _0x4b2d83 of _0x58a053){const _0x1c8917=_0x55d992['insertions'][_0x4b2d83];for(const _0x1ce347 of _0x1c8917){const _0x652d1=this['_getVidAttributeName'](_0x1ce347),_0x594e29=_0x1ce347['item']['getAttribute'](_0x652d1);_0x1d60b5['delete'](_0x594e29),_0x594e29>=this['_startingRevisionId']&&_0x478286['set'](_0x594e29,_0x283a27['get'](_0x594e29));}}for(const _0x17bf88 of _0x58a053){const _0x3a1930=_0x55d992['insertions'][_0x17bf88],_0x49f121=this['_getBaseVids'](_0x55d992['deletions'][_0x17bf88]);let _0x2a0bd9=0x0;for(const _0x160077 of _0x3a1930){const _0x493f88=this['_getVidAttributeName'](_0x160077),_0x2ed1ee=_0x160077['item']['getAttribute'](_0x493f88);if(!_0x478286['has'](_0x2ed1ee)&&!_0x48e90f['has'](_0x2ed1ee)){if(_0x1d60b5['has'](_0x2ed1ee))_0x2a0bd9++;else{if(_0x2ed1ee!=_0x49f121[_0x2a0bd9]){const _0x61b5f3=_0x283a27['get'](_0x2ed1ee)||_0x283a27['get'](_0x49f121[_0x2a0bd9]);for(;_0x2ed1ee!=_0x49f121[_0x2a0bd9];)_0x1d60b5['has'](_0x49f121[_0x2a0bd9])||(_0x48e90f['set'](_0x49f121[_0x2a0bd9],_0x61b5f3),_0x283a27['set'](_0x49f121[_0x2a0bd9],_0x61b5f3)),_0x2a0bd9++;}_0x2a0bd9++;}}}}for(const _0xf26536 of _0x58a053){const _0x4d4f00=_0x55d992['insertions'][_0xf26536];for(const _0x406b49 of _0x4d4f00){const _0x40c385=this['_getVidAttributeName'](_0x406b49),_0xd4d190=_0x406b49['item']['getAttribute'](_0x40c385);if(_0x48e90f['has'](_0xd4d190)){const _0x302691=_0x48e90f['get'](_0xd4d190);_0x1d60b5['has'](_0xd4d190)||_0x1d60b5['set'](_0xd4d190,{..._0x302691}),_0x478286['set'](_0xd4d190,{..._0x302691});}}}for(const _0x55df03 of _0x1d60b5['keys']())_0x55df03>=this['_startingRevisionId']&&_0x1d60b5['delete'](_0x55df03);const _0x2fbfc=new Map();for(const _0x1696eb of _0x58a053){let _0x37f19a=_0x55d992['insertions'][_0x1696eb];for(const _0x320421 of _0x37f19a)if(_0x320421['item']['is']('element','tableCell')){const _0x478631=this['_getVidAttributeName'](_0x320421),_0x11ad64=_0x320421['item']['getAttribute'](_0x478631);if(_0x478286['has'](_0x11ad64)){const _0x14a1a4=_0x320421['item']['parent']['parent']['getAttribute']('vid_start'),_0x111129=_0x2fbfc['get'](_0x14a1a4)||new Set();_0x111129['add'](_0x478286['get'](_0x11ad64)['userId']),_0x2fbfc['set'](_0x14a1a4,_0x111129);}}_0x37f19a=_0x55d992['deletions'][_0x1696eb];for(const _0x59ae77 of _0x37f19a)if(_0x59ae77['item']['is']('element','tableCell')){const _0x566c85=this['_getVidAttributeName'](_0x59ae77),_0x30aa95=_0x59ae77['item']['getAttribute'](_0x566c85);if(_0x1d60b5['has'](_0x30aa95)){const _0x22a2ff=_0x59ae77['item']['parent']['parent']['getAttribute']('vid_start'),_0x3aa972=_0x2fbfc['get'](_0x22a2ff)||new Set();_0x3aa972['add'](_0x1d60b5['get'](_0x30aa95)['userId']),_0x2fbfc['set'](_0x22a2ff,_0x3aa972);}}for(const _0x3b9d69 of _0x2fbfc['keys']())(_0x478286['has'](_0x3b9d69)||_0x1d60b5['has'](_0x3b9d69))&&_0x2fbfc['delete'](_0x3b9d69);}for(const _0x2934b0 of _0x58a053){const _0x4747e4=_0x55d992['insertions'][_0x2934b0];let _0x435a80=null,_0x301aea=null;for(const _0xb9c95f of _0x4747e4){const _0x1c647d=this['_getVidAttributeName'](_0xb9c95f),_0xea2110=_0xb9c95f['item']['getAttribute'](_0x1c647d),_0x55c365=_0x2fbfc['get'](_0xea2110);_0x55c365&&'elementStart'==_0xb9c95f['type']&&(_0x435a80=Array['from'](_0x55c365)[0x0],_0x301aea=_0xb9c95f['item']['getAttribute']('vid_end')),_0x435a80&&(_0x1d60b5['set'](_0xea2110,{'userId':_0x435a80}),_0x478286['set'](_0xea2110,{'userId':_0x435a80})),_0xea2110==_0x301aea&&(_0x435a80=null,_0x301aea=null);}}const _0x494b99={},_0x84952d=new Set();for(const _0x153b71 of _0x58a053){const _0x3b476b=_0x3ca839['deletions'][_0x153b71],_0x103f54=_0x3ca839['insertions'][_0x153b71];for(const {userId:_0xba0414}of this['_touchedMarkers']['values']())null!==_0xba0414&&_0x84952d['add'](_0xba0414);for(const {userId:_0x3fe23a}of this['_touchedRoots']['values']())null!==_0x3fe23a&&_0x84952d['add'](_0x3fe23a);this['_markChanges'](_0x103f54,_0x55d992['insertions'][_0x153b71],_0x478286,'insertion',_0x84952d),this['_markChanges'](_0x3b476b,_0x55d992['deletions'][_0x153b71],_0x1d60b5,'deletion',_0x84952d),_0x494b99[_0x153b71]={'insertions':this['_prepareViewToSave'](_0x103f54),'deletions':this['_prepareViewToSave'](_0x3b476b),'attachChange':this['_touchedRoots']['get'](_0x153b71)||null,'attributesBefore':_0x536724(this['_baseRootsAttributes']['get'](_0x153b71))||{},'attributesAfter':_0x536724(this['_diffRootsAttributes']['get'](_0x153b71))};}return{'diffData':_0x494b99,'authorsIds':Array['from'](_0x84952d)};}['_processRootBeforeSave'](_0x3a7171){for(const [,_0x45f6bb]of _0x3a7171['markers']){const _0x550f42=_0x45f6bb['start']['getAncestors']()['filter'](_0x3c7966=>'tableCell'==_0x3c7966['name']);for(const _0x338967 of _0x550f42)0x1==_0x338967['childCount']&&_0x338967['getChild'](0x0)['is']('element','paragraph')&&_0x338967['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1eb94d){this['_processRootBeforeSave'](_0x1eb94d);const _0x29c14f=this['editor']['data']['toView'](_0x1eb94d,{}),_0x240bf0=Array['from'](_0x29c14f['getChildren']())['map'](_0x46118c=>this['_getViewJson'](_0x46118c));return JSON['stringify'](_0x240bf0);}['_getViewJson'](_0x407913){if(_0x407913['is']('$text'))return _0x407913['data'];{const _0x316b3f=_0x407913;return{'type':Object['keys'](P)['find'](_0x2d3fe4=>_0x407913 instanceof P[_0x2d3fe4]),'name':_0x316b3f['name'],'attributes':Array['from'](_0x316b3f['getAttributes']()),'children':Array['from'](_0x316b3f['getChildren']())['map'](_0x3b5cdb=>this['_getViewJson'](_0x3b5cdb))};}}['_markChanges'](_0x565429,_0x23edda,_0x41a794,_0x17d9f0,_0x2c9d4e){let _0x5db6ad=null,_0x3ca96e=null,_0x4a11b9=0x0;const _0x3f3914=this['editor']['model'];for(let _0x28e877=0x0;_0x28e877<_0x23edda['length'];_0x28e877++){const _0x4b4c6d=this['_getVidAttributeName'](_0x23edda[_0x28e877]),_0xe7304f=_0x23edda[_0x28e877]['item']['getAttribute'](_0x4b4c6d),_0x504697=_0x41a794['get'](_0xe7304f),_0x554f69=_0x28e877==_0x23edda['length']-0x1;(!_0x5db6ad&&_0x504697&&(_0x5db6ad=_0x504697,_0x3ca96e=_0x23edda[_0x28e877]),_0x5db6ad&&(!_0x504697||_0x504697['userId']!=_0x5db6ad['userId']))&&(_0x4d4122(_0x504697,B(_0x3ca96e,_0x565429,_0x3f3914),B(_0x23edda[_0x28e877],_0x565429,_0x3f3914)),_0x5db6ad=_0x504697||null,_0x3ca96e=_0x504697?_0x23edda[_0x28e877]:null),_0x5db6ad&&_0x554f69&&_0x4d4122(_0x504697,B(_0x3ca96e,_0x565429,_0x3f3914),J(_0x23edda[_0x28e877],_0x565429,_0x3f3914));}function _0x4d4122(_0x21863c,_0x41d591,_0x115990){const _0x56cd3c=_0x5db6ad['userId'],_0x320f90='revision:'+_0x17d9f0+':'+_0x56cd3c+':'+_0x4a11b9++,_0x15072c=_0x3f3914['createRange'](_0x41d591,_0x115990);_0x565429['markers']['set'](_0x320f90,_0x15072c),null!==_0x56cd3c&&_0x2c9d4e['add'](_0x56cd3c);}}['_getVidAttributeName'](_0x422d4d){switch(_0x422d4d['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x40acc4,_0x25ca40){_0x40acc4['baseVersion']=null;for(const _0x128197 in _0x40acc4){const _0x383022=_0x40acc4[_0x128197];if(_0x383022 instanceof gt){const _0x33fabe=_0x25ca40['get'](_0x383022['root']['rootName']);_0x40acc4[_0x128197]=this['_fixPosition'](_0x383022,_0x33fabe);}if(_0x383022 instanceof vt){const _0x7926bc=_0x25ca40['get'](_0x383022['root']['rootName']);_0x40acc4[_0x128197]=this['_fixRange'](_0x383022,_0x7926bc);}'root'===_0x128197&&(_0x40acc4['root']=_0x25ca40['get'](_0x40acc4['root']['rootName']));}}['_fixRange'](_0x327ef0,_0x894074){return this['editor']['model']['createRange'](this['_fixPosition'](_0x327ef0['start'],_0x894074),this['_fixPosition'](_0x327ef0['end'],_0x894074));}['_fixPosition'](_0x2b40bb,_0x35117d){return this['editor']['model']['createPositionFromPath'](_0x35117d,_0x2b40bb['path'],_0x2b40bb['stickiness']);}['_handleInsertOperation'](_0x5ed7c3){const _0xb6d813=this['_idsRoots']['get'](_0x5ed7c3['position']['root']['rootName']),_0x2ea7e9=this['_fixPosition'](_0x5ed7c3['position'],_0xb6d813),_0x22547b=null===_0x5ed7c3['_authorId']?null:_0x5ed7c3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34fa2a=_0x2ea7e9['parent'],_0x29477f=this['_revisionId'],_0xa744a8=[];for(const _0x4c0e38 of _0x5ed7c3['nodes'])if(_0x4c0e38['is']('element'))_0xa744a8['push'](this['_makeIdsRoot'](_0x4c0e38));else{for(let _0xa0941e=0x0;_0xa0941e<_0x4c0e38['offsetSize'];_0xa0941e++)_0xa744a8['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x427b2b=this['_revisionId'];for(let _0x1e1a75=_0x29477f;_0x1e1a75<_0x427b2b;_0x1e1a75++)this['_touched']['set'](_0x1e1a75,{'userId':_0x22547b});_0x34fa2a['_insertChild'](_0x2ea7e9['offset'],_0xa744a8);}['_handleMoveOperation'](_0x1bbf50){(_0x1bbf50=this['_cloneOperation'](_0x1bbf50,this['_idsRoots']))['_execute']();const _0x460fcb=null===_0x1bbf50['_authorId']?null:_0x1bbf50['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53d9c5=_0x1bbf50['getMovedRangeStart'](),_0x34cc46=_0x53d9c5['parent'],_0x2bd132=_0x53d9c5['offset'];!function _0x2a58b8(_0x4cf8c4,_0x1ea05d,_0x32231a,_0x5e6122){for(let _0x3a6750=_0x32231a;_0x3a6750<_0x5e6122;_0x3a6750++){const _0x28024d=_0x1ea05d['getChild'](_0x3a6750);_0x28024d['is']('element','$text')?_0x4cf8c4['set'](_0x28024d['getAttribute']('vid'),{'userId':_0x460fcb}):(_0x4cf8c4['set'](_0x28024d['getAttribute']('vid_start'),{'userId':_0x460fcb}),_0x2a58b8(_0x4cf8c4,_0x28024d,0x0,_0x28024d['childCount']),_0x4cf8c4['set'](_0x28024d['getAttribute']('vid_end'),{'userId':_0x460fcb}));}}(this['_touched'],_0x34cc46,_0x2bd132,_0x2bd132+_0x1bbf50['howMany']);}['_handleMergeOperation'](_0xa5ba0d){const _0x1c1fcb=null===(_0xa5ba0d=this['_cloneOperation'](_0xa5ba0d,this['_idsRoots']))['_authorId']?null:_0xa5ba0d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3af7b1=_0xa5ba0d['targetPosition']['parent'],_0x1c7ff3=_0xa5ba0d['sourcePosition']['parent'],_0x368db0=_0x3af7b1['getAttribute']('vid_end'),_0x627393=_0x1c7ff3['getAttribute']('vid_start');_0x3af7b1['_setAttribute']('vid_end',_0x1c7ff3['getAttribute']('vid_end')),_0x1c7ff3['_setAttribute']('vid_end',_0x368db0),this['_touched']['set'](_0x627393,{'userId':_0x1c1fcb}),this['_touched']['set'](_0x368db0,{'userId':_0x1c1fcb}),_0xa5ba0d['_execute']();}['_handleSplitOperation'](_0x8d0c3e){const _0x56bf5c=null===(_0x8d0c3e=this['_cloneOperation'](_0x8d0c3e,this['_idsRoots']))['_authorId']?null:_0x8d0c3e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3e9847=_0x8d0c3e['graveyardPosition'],_0x4def43=_0x8d0c3e['splitPosition']['parent'];_0x8d0c3e['_execute']();const _0x77c3c6=_0x4def43['getAttribute']('vid_end'),_0x2fc5d6=_0x8d0c3e['insertionPosition']['nodeAfter'];if(_0x3e9847){const _0x1fde9b=_0x2fc5d6['getAttribute']('vid_end'),_0x11d354=_0x4def43['getAttribute']('vid_end');_0x4def43['_setAttribute']('vid_end',_0x1fde9b),_0x2fc5d6['_setAttribute']('vid_end',_0x11d354),this['_touched']['set'](_0x4def43['getAttribute']('vid_end'),{'userId':_0x56bf5c}),this['_touched']['set'](_0x2fc5d6['getAttribute']('vid_start'),{'userId':_0x56bf5c});}else{const _0x19eb88=this['_revisionId']++,_0x50d928=this['_revisionId']++;_0x4def43['_setAttribute']('vid_end',_0x19eb88),_0x2fc5d6['_setAttribute']('vid_start',_0x50d928),_0x2fc5d6['_setAttribute']('vid_end',_0x77c3c6),this['_touched']['set'](_0x19eb88,{'userId':_0x56bf5c}),this['_touched']['set'](_0x50d928,{'userId':_0x56bf5c});}}['_handleMarkerOperation'](_0x585634){if(!_0x585634['affectsData'])return;const _0x136da7=(_0x585634=this['_cloneOperation'](_0x585634,this['_diffRoots']))['oldRange']?_0x585634['oldRange']['root']:null,_0x4f5c1b=_0x585634['newRange']?_0x585634['newRange']['root']:null;_0x136da7&&this['_markers']['delete'](_0x585634['name']),_0x4f5c1b&&this['_markers']['set'](_0x585634['name'],_0x585634['newRange']['clone']());const _0x330b44=null===_0x585634['_authorId']?null:_0x585634['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x425624=_0x585634['name'];if(!this['_touchedMarkers']['has'](_0x425624))return void this['_touchedMarkers']['set'](_0x425624,{'range':_0x585634['oldRange'],'userId':_0x330b44});const _0x21f790=this['_touchedMarkers']['get'](_0x425624),_0x2485d9=_0x21f790['range'],_0x30f478=_0x585634['newRange'];null==_0x2485d9&&null==_0x30f478||_0x2485d9&&_0x30f478&&_0x2485d9['isEqual'](_0x30f478)?this['_touchedMarkers']['delete'](_0x585634['name']):_0x21f790['userId']=_0x330b44;}['_handleRootOperation'](_0x1658ee,_0xcaec92){this['_diffRoots']['has'](_0x1658ee['rootName'])?this['_diffRoots']['get'](_0x1658ee['rootName'])['_isAttached']=_0x1658ee['isAdd']:(this['_diffRoots']['set'](_0x1658ee['rootName'],F(_0x1658ee['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x1658ee['rootName'],{}),_0xcaec92&&this['_idsRoots']['set'](_0x1658ee['rootName'],F(_0x1658ee['rootName'],!0x0)));const _0x405350=null===_0x1658ee['_authorId']?null:_0x1658ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28fadb=this['_touchedRoots']['get'](_0x1658ee['rootName']);_0x28fadb&&_0x28fadb['userId']===_0x405350?this['_touchedRoots']['delete'](_0x1658ee['rootName']):this['_touchedRoots']['set'](_0x1658ee['rootName'],{'userId':_0x405350,'isAttached':_0x1658ee['isAdd']});}['_handleRootAttributeOperation'](_0x20fb09){const _0x1924d7=this['_diffRootsAttributes']['get'](_0x20fb09['root']['rootName']);null===_0x20fb09['newValue']?delete _0x1924d7[_0x20fb09['key']]:_0x1924d7[_0x20fb09['key']]=_0x20fb09['newValue'];}}function T(_0x96f06f){const _0x24d97d=F(_0x96f06f['rootName'],_0x96f06f['isAttached']());for(const _0x427e90 of _0x96f06f['getChildren']()){const _0x5ec5fb=_0x427e90['_clone'](!0x0);_0x24d97d['_appendChild'](_0x5ec5fb);}return _0x24d97d;}function F(_0x1c3c86,_0x4ebc52=!0x0){const _0x1cf71d=new mt();return _0x1cf71d['rootName']=_0x1c3c86,_0x1cf71d['_isAttached']=_0x4ebc52,_0x1cf71d['isAttached']=()=>_0x1cf71d['_isAttached'],_0x1cf71d;}function B(_0x479b94,_0x5dec27,_0x10482f){const _0x837771='elementEnd'==_0x479b94['type']?_0x10482f['createPositionAt'](_0x479b94['item'],'end'):_0x10482f['createPositionBefore'](_0x479b94['item']);return _0x10482f['createPositionFromPath'](_0x5dec27,_0x837771['path'],_0x837771['stickiness']);}function J(_0x485fc9,_0x4858f7,_0xaea98c){const _0x57d96c='elementStart'==_0x485fc9['type']?_0xaea98c['createPositionAt'](_0x485fc9['item'],0x0):_0xaea98c['createPositionAfter'](_0x485fc9['item']);return _0xaea98c['createPositionFromPath'](_0x4858f7,_0x57d96c['path'],_0x57d96c['stickiness']);}class ns extends _0x5d06dd{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x18f0a9,_0x5bd4f6){super(_0x18f0a9),this['focusTracker']=new _0x26e1ac(),this['keystrokes']=new _0x314979(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5bd4f6),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'](),_0x3c29ba({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x1930a8=_0x4514d4=>_0x4514d4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1930a8),this['keystrokes']['set']('arrowleft',_0x1930a8),this['keystrokes']['set']('arrowup',_0x1930a8),this['keystrokes']['set']('arrowdown',_0x1930a8);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3e7b0f){this['revisionNameInputView']['fieldView']['element']['value']=_0x3e7b0f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x200799){const _0x287cd1=new nt(this['locale'],_0x403f90),_0xbf1008=_0x287cd1['fieldView'];_0xbf1008['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xd7f828=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x200799&&(_0xd7f828+='\x20('+m(this['locale'],'optional')+')'),(_0x287cd1['label']=_0xd7f828,_0xbf1008['on']('input',()=>{this['revisionNameInputValue']=_0xbf1008['element']['value']['trim']();}),_0x287cd1);}}class u extends _0x4e9651{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x8053a6=this['editor'],_0x299cc8=_0x8053a6['plugins']['get']('RevisionTracker');_0x8053a6['ui']['componentFactory']['add']('revisionHistory',_0x5f335d=>{const _0x5c614b=_0x3d8e5a(_0x5f335d),_0x320c62=_0x5c614b['panelView']['children'],_0x32d446=new te(_0x5f335d),_0xe30172=new _0x9715fb(_0x5f335d),_0x375fcd=new _0xf16c04(_0x5f335d),_0x742a3a=new _0x9715fb(_0x5f335d),_0x1275d7=new _0xf16c04(_0x5f335d);return _0x5c614b['bind']('isEnabled')['to'](_0x299cc8,'isReady',_0x299cc8,'isEnabled',_0x8053a6,'isReadOnly',(_0x1ab156,_0x2491e8,_0x196da4)=>_0x1ab156&&_0x2491e8&&!_0x196da4),_0x5c614b['buttonView']['set']({'icon':_0x57e327['history'],'label':m(_0x5f335d,'Revision\x20history'),'tooltip':!0x0}),_0x375fcd['set']({'label':m(_0x5f335d,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x375fcd['bind']('isEnabled')['to'](_0x299cc8,'isReady',_0x299cc8,'isEnabled',_0x8053a6,'isReadOnly',(_0x43343e,_0x3b6618,_0x483f01)=>_0x43343e&&_0x3b6618&&!_0x483f01),_0x375fcd['on']('execute',()=>this['_showDialog']()),_0x1275d7['set']({'label':m(_0x5f335d,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1275d7['bind']('isEnabled')['to'](_0x299cc8,'isReady',_0x8053a6,'isReadOnly',(_0x3c600a,_0xcdc2ab)=>_0x3c600a&&!_0xcdc2ab),_0x1275d7['on']('execute',()=>{_0x8053a6['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5c614b['isOpen']=!0x1,_0x8053a6['editing']['view']['focus']();}),_0xe30172['children']['add'](_0x375fcd),_0x742a3a['children']['add'](_0x1275d7),_0x32d446['role']='menu',_0x32d446['items']['addMany']([_0xe30172,_0x742a3a]),_0x320c62['add'](_0x32d446),_0x5c614b;}),_0x8053a6['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1e8dcc=this['editor'],_0x35db6b=_0x1e8dcc['locale'],_0x36abbc=new _0x5ef95d(_0x35db6b),_0x1cdf7a=new _0x940a85(_0x35db6b);_0x36abbc['buttonView']['set']({'icon':_0x57e327['history'],'label':m(_0x35db6b,'Revision\x20history')});const _0x1ecc65=new _0x18824a(_0x35db6b,_0x36abbc),_0x1ee629=new _0x3913d3(_0x35db6b);_0x1ee629['set']({'label':m(_0x35db6b,'Save\x20current\x20revision')}),_0x1ee629['delegate']('execute')['to'](_0x36abbc),_0x1ee629['on']('execute',()=>{this['_showDialog']();}),_0x1ecc65['children']['add'](_0x1ee629),_0x1cdf7a['items']['add'](_0x1ecc65);const _0x2379ec=new _0x18824a(_0x35db6b,_0x36abbc),_0x190c51=new _0x3913d3(_0x35db6b);return _0x190c51['set']({'label':m(_0x35db6b,'Open\x20revision\x20history')}),_0x190c51['delegate']('execute')['to'](_0x36abbc),_0x190c51['on']('execute',()=>{_0x1e8dcc['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2379ec['children']['add'](_0x190c51),_0x1cdf7a['items']['add'](_0x2379ec),_0x36abbc['panelView']['children']['add'](_0x1cdf7a),_0x36abbc;}['_showDialog'](){const _0x127ac0=this['editor'],_0x1429c4=_0x127ac0['locale'],_0x24eddb=_0x127ac0['plugins']['get']('Dialog'),_0x5dceae=_0x127ac0['plugins']['get']('RevisionTracker');function _0x20dcaa(_0x1a76d0){_0x127ac0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x1a76d0['revisionName']?_0x1a76d0['revisionNameInputView']['errorText']=m(_0x1429c4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x127ac0['plugins']['get'](l)['saveRevision']({'name':_0x1a76d0['revisionName']}),_0x24eddb['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x20dcaa(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x24eddb['show']({'id':'revisionSave','title':m(_0x1429c4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x127ac0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x24eddb['hide']()},{'label':m(_0x127ac0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x7a8c7){_0x7a8c7['bind']('isEnabled')['to'](_0x5dceae,'isReady',_0x5dceae,'isEnabled',_0x127ac0,'isReadOnly',(_0x1be2c0,_0x39b1be,_0x5d5a15)=>_0x1be2c0&&_0x39b1be&&!_0x5d5a15);},'onExecute':()=>_0x20dcaa(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x152795=this['editor'],_0x3aeb59=_0x152795['locale'];this['_saveRevisionFormView']=new ns(_0x3aeb59,_0x152795['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x5d06dd{['changeId'];['_model'];constructor(_0x4de6b0,_0x304018){super(_0x4de6b0),this['_model']=_0x304018,this['changeId']=_0x304018['id'];const _0x30e371=this['bindTemplate'],_0x4ca310=m(_0x4de6b0,_0x304018['data']['isSuggestion']?'Suggested\x20by':'add'==_0x304018['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x304018['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x30e371['to']('type',_0x2cacd3=>'ck-revision-change__'+_0x2cacd3)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4ca310}]},{'text':'\x20'+_0x304018['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0xc54ae(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x53683b){super(),this['id']=_0x53683b['id']||_0xc1e5f5(),this['author']=_0x53683b['author'],this['type']=_0x53683b['type'],this['data']=_0x53683b['data']||{},this['rootName']=_0x53683b['rootName'],this['set']('createdAt',_0x53683b['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2b1b03,_0x1a2017){this['newRevisionId']=_0x2b1b03,this['oldRevisionId']=_0x1a2017,this['changes']=new _0x315d6f();}['_setChanges'](_0x5dce27){for(const _0x1be572 of _0x5dce27)this['changes']['add'](_0x1be572);}}const Y={'c':_0x1af83a,'a':_0x30d3fd,'e':_0x2523f7,'r':_0xb2655b,'u':_0x137693};class d extends _0x4e9651{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4bbfe3,_0x2686c7,j];}constructor(_0x53e202){super(_0x53e202),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x549d20,_0x2510af,_0x2bf3ab)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x14a8d5=>{for(const _0x9e1203 of this['editor']['editing']['view']['document']['roots'])_0x2bf3ab?_0x14a8d5['removeClass']('ck-editor__editable__overlay',_0x9e1203):_0x14a8d5['addClass']('ck-editor__editable__overlay',_0x9e1203);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x379e35=>null!==_0x379e35),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4e7f64,_0x3fa7a6,_0xc41201)=>_0x4e7f64&&_0xc41201?_0x3fa7a6['changes']['getIndex'](_0xc41201):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x37255c,_0x31b55d)=>_0x37255c?_0x31b55d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2686c7);}['init'](){const _0x5a3278=this['editor'],_0x4dc0b3=new yt(_0x5a3278,{'direction':'backward'}),_0x577780=new yt(_0x5a3278,{'direction':'forward'});(_0x5a3278['commands']['add']('showPreviousChange',_0x4dc0b3),_0x5a3278['commands']['add']('showNextChange',_0x577780),_0x5a3278['commands']['add']('restoreRevision',new _t(_0x5a3278)),this['on']('change:numberOfChanges',()=>{_0x4dc0b3['refresh'](),_0x577780['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5a3278['enableReadOnlyMode']('revision-viewer'),_0x5a3278['plugins']['has']('WidgetToolbarRepository'))&&_0x5a3278['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x3b3bd7){await this['loadRevisionData'](_0x3b3bd7);const _0x2274a3={};for(const _0x4cbd3e in _0x3b3bd7['diffData']){if(_0x3b3bd7['diffData'][_0x4cbd3e]['attachChange']&&!_0x3b3bd7['diffData'][_0x4cbd3e]['attachChange']['isAttached'])continue;const _0x1f8cb2=this['_removeRevisionMarkers'](JSON['parse'](_0x3b3bd7['diffData'][_0x4cbd3e]['insertions'])),_0xa8cff9=this['editor']['editing']['view']['document'],_0x294569=new _0x251f66(_0xa8cff9,_0x1f8cb2['map'](_0xc6e587=>this['_getViewObj'](_0xc6e587)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2274a3[_0x4cbd3e]=this['editor']['data']['processor']['toData'](_0x294569),this['editor']['data']['processor']['useFillerType']('default');}return _0x2274a3;}async['getRevisionRootsAttributes'](_0x28ece2){await this['loadRevisionData'](_0x28ece2);const _0x500294={};for(const _0x2de1c0 in _0x28ece2['diffData'])_0x28ece2['diffData'][_0x2de1c0]['attachChange']&&!_0x28ece2['diffData'][_0x2de1c0]['attachChange']['isAttached']||(_0x500294[_0x2de1c0]=_0x28ece2['diffData'][_0x2de1c0]['attributesAfter']||{});return _0x500294;}['_removeRevisionMarkers'](_0x5a5f2a){return(_0x5a5f2a=_0x5a5f2a['filter'](_0x5a5d97=>!_0x5a5d97['name']||'revision-start'!==_0x5a5d97['name']&&'revision-end'!==_0x5a5d97['name']))['forEach'](_0x373851=>{'string'!=typeof _0x373851&&(_0x373851['children']=this['_removeRevisionMarkers'](_0x373851['children']),_0x373851['attributes']=_0x373851['attributes']['filter'](_0x135e39=>!_0x135e39[0x0]['startsWith']('data-revision-')));}),_0x5a5f2a;}async['compare'](_0x5b928b,_0x374fb9,_0x1f8e2d=!0x1){if(!this['isEnabled'])return;const _0x530805=this['diff'],_0x4a54fe=this['repository'],_0x1e59a9='string'==typeof _0x5b928b?_0x4a54fe['getRevision'](_0x5b928b):_0x5b928b,_0x49de2b='string'==typeof _0x374fb9?_0x4a54fe['getRevision'](_0x374fb9):_0x374fb9,_0x280438=_0x1e59a9['id'],_0x1af769=_0x49de2b?_0x49de2b['id']:null;if(!_0x1f8e2d&&this['diff']&&this['diff']['newRevisionId']===_0x280438&&this['diff']['oldRevisionId']===_0x1af769)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x280438,_0x1af769);const _0x2d4f4f=this['_getRevisionsRange'](_0x1e59a9,_0x49de2b,!0x0)['map'](_0x5ce92f=>this['loadRevisionData'](_0x5ce92f));return _0x2d4f4f['push'](new Promise(_0x20ba2a=>{setTimeout(_0x20ba2a,0x14);})),Promise['all'](_0x2d4f4f)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x13ca36=this['_getDiff'](_0x280438,_0x1af769);for(const _0x12463a of _0x13ca36['changes'])this['_changeIdToChange']['set'](_0x12463a['id'],_0x12463a);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2fe36a=>{for(const _0x3d95dd of this['editor']['model']['document']['getRootNames']())_0x2fe36a['detachRoot'](_0x3d95dd);for(const _0x4de478 of Object['keys'](_0x13ca36['model'])){const _0x455cc4=_0x2fe36a['addRoot'](_0x4de478);for(const _0x5a26b9 of Object['keys'](_0x13ca36['attributes'][_0x4de478]))_0x2fe36a['setAttribute'](_0x5a26b9,_0x13ca36['attributes'][_0x4de478][_0x5a26b9],_0x455cc4);_0x2fe36a['insert'](_0x13ca36['model'][_0x4de478],_0x455cc4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x13ca36['changes'])),this['isReady']=!0x0;})['catch'](_0x4d24f6=>{console['error'](_0x4d24f6),this['_cleanUp'](),_0x530805&&(this['diff']=_0x530805),this['isReady']=!0x0;});}['addRevisionData'](_0x2205e1,_0x8b0667){const _0x3045bb=this['repository']['createRevision'](_0x2205e1);return _0x3045bb['on']('_update',(_0x2e425b,_0x39cb76,_0x5b38e6)=>_0x8b0667(_0x39cb76,_0x5b38e6,_0x3045bb)),this['repository']['addRevision'](_0x3045bb),_0x3045bb;}['loadRevisionData'](_0x1c5cfe){if(!_0x1c5cfe||_0x1c5cfe['diffData'])return Promise['resolve']();{const _0x10483a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x10483a,'revisionId':_0x1c5cfe['id']})['then'](_0x4ba8b5=>{_0x1c5cfe['_update']({'diffData':_0x4ba8b5['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3b83fc=>{for(const _0x2250ad of this['editor']['model']['document']['getRootNames']())_0x3b83fc['detachRoot'](_0x2250ad);});}['_sortAndFilterDiffChanges'](_0xdb3dec){const _0x188794=[],_0x513b6c=new Map();for(const _0x1b9697 of this['editor']['model']['document']['getRootNames']()){const _0x4239c1=this['editor']['editing']['view']['getDomRoot'](_0x1b9697);if(!_0x4239c1)continue;const _0x480143=_0x4239c1['getClientRects']()['item'](0x0);_0x480143&&(_0x188794['push'](_0x1b9697),_0x513b6c['set'](_0x1b9697,_0x480143));}return _0x188794['sort']((_0x599cfa,_0x5e9b28)=>{const _0x7b8b53=_0x513b6c['get'](_0x599cfa),_0x51eacf=_0x513b6c['get'](_0x5e9b28);return _0x7b8b53['y']-_0x51eacf['y']||_0x7b8b53['x']-_0x51eacf['x'];}),(_0xdb3dec=_0xdb3dec['filter'](_0x187e80=>_0x188794['includes'](_0x187e80['rootName'])))['sort']((_0x3928ce,_0x29d380)=>_0x188794['indexOf'](_0x3928ce['rootName'])-_0x188794['indexOf'](_0x29d380['rootName'])),_0xdb3dec;}['_makeTape'](_0x5810a0){const _0x5288c9=Array['from'](_0x5810a0['markers'])['filter'](([_0x3f194f,_0x13cd70])=>_0x3f194f['startsWith']('revision:')&&!_0x13cd70['isCollapsed']),_0x2c08b7=Array['from'](this['editor']['model']['createRangeIn'](_0x5810a0)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5288c9['length'])for(const _0x27da54 of _0x2c08b7){const [_0x30f9f9,_0x4f6970]=_0x5288c9[0x0],[,_0x3b797b,_0x1763ad]=_0x30f9f9['split'](':');if(_0x4f6970['end']['isEqual'](_0x27da54['nextPosition'])&&_0x5288c9['shift'](),(_0x27da54['previousPosition']['isEqual'](_0x4f6970['start'])||_0x27da54['previousPosition']['isAfter'](_0x4f6970['start']))&&('insertion'==_0x3b797b?_0x27da54['isAdded']={'userId':_0x1763ad}:'deletion'==_0x3b797b&&(_0x27da54['isRemoved']={'userId':_0x1763ad})),0x0==_0x5288c9['length'])break;}return _0x2c08b7;}['_refreshStartEndIndex'](_0x32c873){const _0x3aeaac=new Map();for(let _0x1317a6=0x0;_0x1317a6<_0x32c873['length'];_0x1317a6++)'text'===_0x32c873[_0x1317a6]['type']?(_0x32c873[_0x1317a6]['item']['startIndex']=_0x1317a6,_0x32c873[_0x1317a6]['item']['endIndex']=_0x1317a6):('elementStart'===_0x32c873[_0x1317a6]['type']?_0x32c873[_0x1317a6]['item']['startIndex']=_0x1317a6:'elementEnd'===_0x32c873[_0x1317a6]['type']&&(_0x32c873[_0x1317a6]['item']['endIndex']=_0x1317a6),_0x3aeaac['set'](_0x32c873[_0x1317a6]['id'],_0x1317a6));for(const _0x5a479b of _0x3aeaac['values']())'elementStart'===_0x32c873[_0x5a479b]['type']?_0x32c873[_0x5a479b]['item']['endIndex']=_0x3aeaac['get'](_0x32c873[_0x5a479b]['pairId']):'elementEnd'===_0x32c873[_0x5a479b]['type']&&(_0x32c873[_0x5a479b]['item']['startIndex']=_0x3aeaac['get'](_0x32c873[_0x5a479b]['pairId']));}['_processTape'](_0x28ca40){for(let _0x55748e=0x0;_0x55748e<_0x28ca40['length'];_0x55748e++){if('elementStart'===_0x28ca40[_0x55748e]['type'])_0x28ca40[_0x55748e]['item']['startIndex']=_0x55748e;else{if('elementEnd'===_0x28ca40[_0x55748e]['type']){_0x28ca40[_0x55748e]['item']['endIndex']=_0x55748e;const _0x215c90=_0x28ca40[_0x55748e]['item']['startIndex'];_0x28ca40[_0x215c90]['pairId']=_0x28ca40[_0x55748e]['id'],_0x28ca40[_0x55748e]['pairId']=_0x28ca40[_0x215c90]['id'];}else _0x28ca40[_0x55748e]['item']['startIndex']=_0x55748e,_0x28ca40[_0x55748e]['item']['endIndex']=_0x55748e,_0x28ca40[_0x55748e]['pairId']=null;}_0x28ca40[_0x55748e]['markersStart']||(_0x28ca40[_0x55748e]['markersStart']=[],_0x28ca40[_0x55748e]['markersEnd']=[]);}}['_markInsertions'](_0x485a29,_0x529cce){const _0x11edde=_0x485a29['filter'](_0xc8088b=>!_0xc8088b['isAdded']);for(let _0xc7fbcd=0x0;_0xc7fbcd<_0x529cce['length'];_0xc7fbcd++)_0x529cce[_0xc7fbcd]['isAdded']&&(_0x11edde[_0xc7fbcd]['isAdded']=_0x529cce[_0xc7fbcd]['isAdded']);}['_makeModelFromViewString'](_0x29638e){const _0x4e2fdc=JSON['parse'](_0x29638e),_0x4e11a9=this['editor']['editing']['view']['document'],_0x4c410d=new _0x251f66(_0x4e11a9,_0x4e2fdc['map'](_0x33d103=>this['_getViewObj'](_0x33d103)));return this['editor']['data']['toModel'](_0x4c410d);}['_getViewObj'](_0x1b989a){const _0x3e09b5=this['editor']['editing']['view']['document'];if('string'==typeof _0x1b989a)return new _0x44b068(_0x3e09b5,_0x1b989a);{const _0xda655=_0x1b989a['children']['map'](_0x11fa5f=>this['_getViewObj'](_0x11fa5f));return new(Y[_0x1b989a['type']]||_0x4349c0)(_0x3e09b5,_0x1b989a['name'],_0x1b989a['attributes'],_0xda655);}}['_getDiff'](_0x466af2,_0x1e488b=null){const _0x474ae9=this['repository']['getRevision'](_0x466af2),_0x186427=_0x1e488b?this['repository']['getRevision'](_0x1e488b):null,_0x16cb02=this['_getRevisionsRange'](_0x474ae9,_0x186427),_0x32caa1=_0x16cb02[_0x16cb02['length']-0x1],_0x52c126=new Map(),_0xcee2e7={'model':{},'attributes':{},'changes':[]},_0x273508=new Set(),_0x5170ba=new Map();for(let _0x4c09d4=_0x16cb02['length']-0x1;_0x4c09d4>=0x0;_0x4c09d4--){const _0x1e0bc0=_0x16cb02[_0x4c09d4];for(const _0x50be2f of Object['keys'](_0x1e0bc0['diffData']))if(_0x1e0bc0['diffData'][_0x50be2f]['attachChange']){const _0x52cc3a=_0x1e0bc0['diffData'][_0x50be2f]['attachChange'];_0x52cc3a['isAttached']?(_0x273508['add'](_0x50be2f),_0x5170ba['has'](_0x50be2f)&&_0x5170ba['get'](_0x50be2f)['userId']==_0x52cc3a['userId']?_0x5170ba['delete'](_0x50be2f):_0x5170ba['set'](_0x50be2f,_0x52cc3a)):_0x5170ba['has'](_0x50be2f)?(_0x273508['delete'](_0x50be2f),_0x5170ba['delete'](_0x50be2f)):(_0x273508['add'](_0x50be2f),_0x5170ba['set'](_0x50be2f,_0x52cc3a));}else _0x273508['add'](_0x50be2f);}for(const _0x2d529d of _0x273508){const _0x45b8d5=_0x5170ba['has'](_0x2d529d)&&!_0x5170ba['get'](_0x2d529d)['isAttached'];let _0x56be72=_0x45b8d5?_0x16cb02['length']-0x1:0x0;const _0x2743d0=_0x45b8d5?-0x1:0x1;for(;_0x16cb02[_0x56be72];){const _0x3b075b=_0x16cb02[_0x56be72];if(_0x3b075b['diffData'][_0x2d529d]){const _0x24dfca=_0x45b8d5?_0x3b075b['diffData'][_0x2d529d]['attributesBefore']:_0x3b075b['diffData'][_0x2d529d]['attributesAfter'];_0xcee2e7['attributes'][_0x2d529d]=_0x24dfca?_0x536724(_0x24dfca):{};break;}_0x56be72+=_0x2743d0;}}for(const _0xbb50c5 of _0x16cb02){_0xbb50c5['model']={};for(const _0x12b0a1 of _0xbb50c5['authors'])_0x52c126['set'](_0x12b0a1['id'],_0x12b0a1);for(const _0x5d0a02 of _0x273508){const _0x3162c8=_0xbb50c5['diffData'][_0x5d0a02]?_0xbb50c5['diffData'][_0x5d0a02]['insertions']:'[]',_0x5627a4=_0xbb50c5['diffData'][_0x5d0a02]?_0xbb50c5['diffData'][_0x5d0a02]['deletions']:'[]';_0xbb50c5['model'][_0x5d0a02]={'insertions':this['_makeModelFromViewString'](_0x3162c8),'deletions':this['_makeModelFromViewString'](_0x5627a4)};}}for(const _0x20bb4f of _0x273508){let _0x358a1b=null,_0x3bfa58=0x0;const _0x1e253e=new Map(Array['from'](_0x474ae9['model'][_0x20bb4f]['insertions']['markers'])['filter'](([_0x690dda])=>!_0x690dda['startsWith']('revision:')));let _0x75bb8a=0x0;for(const _0x361439 of _0x16cb02){const _0x2dc503=this['_makeTape'](_0x361439['model'][_0x20bb4f]['insertions']);_0x361439==_0x474ae9?(_0x358a1b=_0x2dc503,_0x3bfa58=_0x358a1b['length'],_0x358a1b['forEach'](_0x4e3c6f=>{_0x4e3c6f['id']=_0x75bb8a++;}),this['_processTape'](_0x358a1b)):this['_markInsertions'](_0x358a1b,_0x2dc503);const _0x49227a=_0x358a1b['filter'](_0x530cda=>!_0x530cda['isAdded'])['map'](_0xe8c7d0=>_0xe8c7d0['id']);let _0x39de0a=0x0;const _0x176b08=this['_makeTape'](_0x361439['model'][_0x20bb4f]['deletions']);_0x176b08['forEach'](_0x23022a=>{_0x23022a['isRemoved']?_0x23022a['id']=_0x3bfa58++:_0x23022a['id']=_0x49227a[_0x39de0a++];}),this['_processTape'](_0x176b08),this['_setDistance'](_0x358a1b,'isAdded'),this['_setDistance'](_0x176b08,'isRemoved'),_0x361439==_0x474ae9&&this['_markMarkers'](_0x358a1b,_0x1e253e),_0x358a1b=this['_joinTapes'](_0x358a1b,_0x176b08),this['_refreshStartEndIndex'](_0x358a1b),this['_setDistance'](_0x358a1b,'isRemoved');}_0x358a1b=_0x358a1b['filter'](_0x407300=>!(_0x407300['isAdded']&&_0x407300['isRemoved']));const _0xbb7f1d=new Map(_0x32caa1['model'][_0x20bb4f]['deletions']['markers']),_0x2f0f2b=new Set(_0x1e253e['keys']());for(const _0x27a71c of _0xbb7f1d['keys']())_0x2f0f2b['delete'](_0x27a71c);this['_markSuggestions'](_0x358a1b,_0x2f0f2b),this['_fixObsoleteTags'](_0x358a1b),_0x358a1b=this['_removeMissingPairs'](_0x358a1b),_0x358a1b=this['_markMismatchedRemovedTags'](_0x358a1b),_0x358a1b=this['_removeUnsupportedChanges'](_0x358a1b);const {root:_0xc53ea1,changes:_0x491694}=this['_makeModelFromTape'](_0x358a1b,_0x52c126,_0x20bb4f);_0xcee2e7['model'][_0x20bb4f]=_0xc53ea1;const _0x24b654=_0x5170ba['get'](_0x20bb4f);if(_0x24b654){const _0x58ccd8=_0x52c126['get'](_0x24b654['userId']),_0x3ed012=new r({'author':_0x58ccd8,'type':_0x24b654['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x20bb4f});_0x491694['unshift'](_0x3ed012),_0xcee2e7['attributes'][_0x20bb4f]['revisionHistoryAttachChange']=_0x3ed012['id'];}_0xcee2e7['changes']=_0xcee2e7['changes']['concat'](_0x491694);}return _0xcee2e7;}['_markMarkers'](_0x2c935b,_0x504c3f){for(let _0xaf9016=0x0;_0xaf9016<_0x2c935b['length'];_0xaf9016++)for(const [_0x2ac2b3,_0x2fa85e]of _0x504c3f)_0x2fa85e['start']['isEqual'](_0x2c935b[_0xaf9016]['previousPosition'])&&_0x2c935b[_0xaf9016]['markersStart']['push'](_0x2ac2b3),_0x2fa85e['end']['isEqual'](_0x2c935b[_0xaf9016]['nextPosition'])&&_0x2c935b[_0xaf9016]['markersEnd']['push'](_0x2ac2b3);}['_joinTapes'](_0x26c6bb,_0x13a60f){let _0x2699cf=[],_0x46a713=0x0,_0xbe3cab=0x0;for(;_0x46a713<_0x26c6bb['length']||_0xbe3cab<_0x13a60f['length'];){const _0x1f90ff=_0x26c6bb[_0x46a713]||{},_0x3bf8c8=_0x13a60f[_0xbe3cab]||{};if(_0x1f90ff['id']==_0x3bf8c8['id'])_0x46a713++,_0xbe3cab++,_0x2699cf['push'](_0x1f90ff);else{if(_0x3bf8c8['isRemoved']&&_0x1f90ff['isAdded']){const {commonTape:_0x312c22,iEnd:_0x4ab5a3,jEnd:_0x475f33}=this['_threeWayMerge'](_0x26c6bb,_0x46a713,_0x13a60f,_0xbe3cab);_0x2699cf=_0x2699cf['concat'](_0x312c22),_0x46a713=_0x4ab5a3,_0xbe3cab=_0x475f33;}else _0x3bf8c8['isRemoved']?(_0xbe3cab++,_0x2699cf['push'](_0x3bf8c8)):(_0x46a713++,_0x2699cf['push'](_0x1f90ff));}}return _0x2699cf;}['_markSuggestions'](_0x30b983,_0x283a5c){const _0x142efc=[];for(let _0x4553ef=0x0;_0x4553ef<_0x30b983['length'];_0x4553ef++){for(let _0x1ec21f=0x0;_0x1ec21f<_0x30b983[_0x4553ef]['markersStart']['length'];_0x1ec21f++){const _0x1a56cb=_0x30b983[_0x4553ef]['markersStart'][_0x1ec21f];if(!_0x283a5c['has'](_0x1a56cb))continue;const {group:_0x540c8e,type:_0x273cd2,authorId:_0x518c58}=_0x71c131(_0x1a56cb);'revision-suggestion'!=_0x540c8e||'insertion'!=_0x273cd2&&'deletion'!=_0x273cd2||(_0x142efc['unshift']({'type':_0x273cd2,'name':_0x1a56cb,'userId':_0x518c58}),_0x30b983[_0x4553ef]['markersStart']['splice'](_0x1ec21f,0x1),_0x1ec21f--);}_0x4eda66(_0x30b983[_0x4553ef]);for(let _0x4b59f5=0x0;_0x4b59f5<_0x30b983[_0x4553ef]['markersEnd']['length'];_0x4b59f5++){const _0x17ff90=_0x30b983[_0x4553ef]['markersEnd'][_0x4b59f5];if(!_0x283a5c['has'](_0x17ff90))continue;const {group:_0x5f5900,type:_0x397878}=_0x71c131(_0x17ff90);if('revision-suggestion'!=_0x5f5900||'insertion'!=_0x397878&&'deletion'!=_0x397878)continue;_0x30b983[_0x4553ef]['markersEnd']['splice'](_0x4b59f5,0x1),_0x4b59f5--;const _0x4f2e91=_0x142efc['findIndex'](_0x30a14e=>_0x30a14e['name']==_0x17ff90);_0x4f2e91>-0x1&&_0x142efc['splice'](_0x4f2e91,0x1);}}function _0x71c131(_0x493bd3){const _0xe2cd76=_0x493bd3['split'](':');return{'group':_0xe2cd76[0x0],'type':_0xe2cd76[0x1],'subType':_0xe2cd76['length']>=0x5?_0xe2cd76[0x2]:null,'id':_0xe2cd76['length']<0x5?_0xe2cd76[0x2]:_0xe2cd76[0x3],'authorId':_0xe2cd76['length']<0x5?_0xe2cd76[0x3]:_0xe2cd76[0x4],'markerCount':0x6==_0xe2cd76['length']?_0xe2cd76[0x5]:null};}function _0x4eda66(_0x4b89d6){for(let _0x386da3=0x0;_0x386da3<_0x142efc['length'];_0x386da3++){if(_0x4b89d6['isAdded']&&'insertion'==_0x142efc[_0x386da3]['type'])return _0x4b89d6['isAddSuggestion']=_0x142efc[_0x386da3],void delete _0x4b89d6['isAdded'];if(!_0x4b89d6['isAdded']&&!_0x4b89d6['isRemoved']&&'deletion'==_0x142efc[_0x386da3]['type'])return void(_0x4b89d6['isRemoveSuggestion']=_0x142efc[_0x386da3]);}}}['_setDistance'](_0x95a8c6,_0x49e144){let _0x2c11fa=0x0,_0x41e8f6=!0x1;const _0x5065d2=new Map();for(const _0x255f01 of _0x95a8c6)_0x255f01[_0x49e144]?_0x41e8f6&&(_0x2c11fa++,_0x41e8f6=!0x1):(_0x2c11fa++,_0x41e8f6=!0x0),_0x5065d2['set'](_0x255f01['id'],_0x2c11fa);for(let _0x4506e1=0x0;_0x4506e1<_0x95a8c6['length'];_0x4506e1++){if('isRemoved'==_0x49e144&&_0x95a8c6[_0x4506e1]['isAdded']||'isAdded'==_0x49e144&&_0x95a8c6[_0x4506e1]['isRemoved'])continue;if('text'==_0x95a8c6[_0x4506e1]['type']){_0x95a8c6[_0x4506e1]['distance']=0x0;continue;}const _0x2559fc=_0x5065d2['get'](_0x95a8c6[_0x4506e1]['pairId']),_0x48ccfe=_0x5065d2['get'](_0x95a8c6[_0x4506e1]['id']);_0x95a8c6[_0x4506e1]['distance']=_0x2559fc-_0x48ccfe;}}['_getRevisionsRange'](_0x3286e5,_0x3b9039,_0x2afc46=!0x1){const _0x16999b=[];let _0x36d73c=this['repository']['getIndex'](_0x3286e5),_0x1ac025=this['repository']['getIndex'](_0x3b9039);for(-0x1==_0x1ac025&&(_0x1ac025=this['repository']['_revisions']['length'],_0x2afc46=!0x1);_0x36d73c<_0x1ac025;)_0x16999b['push'](this['repository']['getRevision'](_0x36d73c)),_0x36d73c++;return _0x2afc46&&_0x16999b['push'](this['repository']['getRevision'](_0x36d73c)),_0x16999b;}['_threeWayMerge'](_0x1a5230,_0x406fb3,_0x56179c,_0xee5e63){const _0x5148c2=this['editor']['model']['schema'];let _0x395a65=_0x406fb3;for(;_0x1a5230[_0x395a65]&&_0x1a5230[_0x395a65]['isAdded'];)_0x395a65++;let _0xf81b36=_0xee5e63;for(;_0x56179c[_0xf81b36]&&_0x56179c[_0xf81b36]['isRemoved'];)_0xf81b36++;_0x1dd08e(_0x1a5230,_0x406fb3,_0x395a65),_0x1dd08e(_0x56179c,_0xee5e63,_0xf81b36);const _0x30cd50=_0x56179c['slice'](_0xee5e63,_0xf81b36)['concat'](_0x1a5230['slice'](_0x406fb3,_0x395a65));return _0x30cd50['sort']((_0x2bd9e6,_0x50e208)=>_0x2bd9e6['side']!=_0x50e208['side']?_0x2bd9e6['side']-_0x50e208['side']:_0x2bd9e6['level']!=_0x50e208['level']?_0x2bd9e6['level']-_0x50e208['level']:_0x2bd9e6['distance']!=_0x50e208['distance']?_0x50e208['distance']-_0x2bd9e6['distance']:!!_0x2bd9e6['isAdded']!=!!_0x50e208['isAdded']?-0x1==_0x2bd9e6['side']||0x0==_0x2bd9e6['side']?_0x2bd9e6['isAdded']?-0x1:0x1:_0x2bd9e6['isAdded']?0x1:-0x1:_0x2bd9e6['index']-_0x50e208['index']),{'commonTape':_0x30cd50,'iEnd':_0x395a65,'jEnd':_0xf81b36};function _0x1dd08e(_0xdb9924,_0xc5cb51,_0x17d6e5){let _0x34783a=-0x1,_0x2a9c31=Number['POSITIVE_INFINITY'],_0x525076=!0x0;for(let _0x4b4bd0=_0xc5cb51;_0x4b4bd0<_0x17d6e5;_0x4b4bd0++)if(_0x5148c2['isInline'](_0xdb9924[_0x4b4bd0]['item'])||(_0x525076=!0x1),_0xdb9924[_0x4b4bd0]['item']['startIndex']<_0xc5cb51&&(_0x34783a=_0x4b4bd0),_0xdb9924[_0x4b4bd0]['item']['endIndex']>=_0x17d6e5){_0x2a9c31=_0x4b4bd0;break;}_0x525076&&(_0x34783a=_0x17d6e5-0x1);for(let _0x3429ff=_0xc5cb51;_0x3429ff<_0x17d6e5;_0x3429ff++)_0xdb9924[_0x3429ff]['side']=_0x3429ff<=_0x34783a?-0x1:_0x3429ff<_0x2a9c31?0x0:0x1,_0xdb9924[_0x3429ff]['index']=_0x3429ff;let _0x575815=0x0;for(let _0x33fdbd=_0xc5cb51;_0x33fdbd<=_0x34783a;_0x33fdbd++)0x0==_0xdb9924[_0x33fdbd]['distance']?_0xdb9924[_0x33fdbd]['level']=_0x575815:(_0x575815++,_0xdb9924[_0x33fdbd]['level']=_0x575815,_0x575815++);for(let _0x1b1691=_0xc5cb51;_0x1b1691<_0x17d6e5;_0x1b1691++)0x0==_0xdb9924[_0x1b1691]['side']&&(_0xdb9924[_0x1b1691]['level']=_0x575815);_0x575815=0x0;for(let _0x2e89a2=_0x17d6e5-0x1;_0x2e89a2>=_0x2a9c31;_0x2e89a2--)0x0==_0xdb9924[_0x2e89a2]['distance']?_0xdb9924[_0x2e89a2]['level']=_0x575815:(_0x575815--,_0xdb9924[_0x2e89a2]['level']=_0x575815,_0x575815--);}}['_fixObsoleteTags'](_0x3a4a71){const _0x3ca9dc=new Map(),_0x5e758d=this['editor']['model']['schema'];for(let _0xe7ac97=0x1;_0xe7ac97<_0x3a4a71['length'];_0xe7ac97++){let _0x4ed07c,_0x36debd,_0x130b17;const _0x252a2f=_0x3a4a71[_0xe7ac97],_0x3aa52b=_0x3a4a71[_0xe7ac97-0x1];if('text'==_0x252a2f['type'])continue;if(_0x252a2f['type']!=_0x3aa52b['type'])continue;if(!_0x5e758d['isBlock'](_0x3aa52b['item'])||_0x5e758d['isLimit'](_0x3aa52b['item']))continue;if(!_0x5e758d['isBlock'](_0x252a2f['item'])||_0x5e758d['isLimit'](_0x252a2f['item']))continue;if((_0x3a4a71[_0xe7ac97]['isAdded']||_0x3a4a71[_0xe7ac97]['isAddSuggestion'])&&_0x3a4a71[_0xe7ac97-0x1]['isRemoved'])_0x4ed07c=_0x3a4a71[_0xe7ac97],_0x36debd=_0x3a4a71[_0xe7ac97-0x1],_0x130b17=_0xe7ac97-0x1;else{if(!_0x3a4a71[_0xe7ac97]['isRemoved']||!_0x3a4a71[_0xe7ac97-0x1]['isAdded']&&!_0x3a4a71[_0xe7ac97-0x1]['isAddSuggestion'])continue;_0x4ed07c=_0x3a4a71[_0xe7ac97-0x1],_0x36debd=_0x3a4a71[_0xe7ac97],_0x130b17=_0xe7ac97;}const _0x12744a=_0x4ed07c['level']==_0x36debd['level'],_0x33523d=Math['abs'](_0x4ed07c['level'])<Math['abs'](_0x36debd['level'])&&0x0==_0x36debd['distance'];(_0x12744a||_0x33523d)&&(_0x3ca9dc['set'](_0x36debd['id'],_0x4ed07c['id']),_0x3a4a71['splice'](_0x130b17,0x1),_0xe7ac97--,_0x4ed07c['isAdded']=!0x1);}for(let _0x42eeab=0x0;_0x42eeab<_0x3a4a71['length'];_0x42eeab++)_0x3ca9dc['has'](_0x3a4a71[_0x42eeab]['pairId'])&&(_0x3a4a71[_0x42eeab]['pairId']=_0x3ca9dc['get'](_0x3a4a71[_0x42eeab]['pairId']));}['_removeMissingPairs'](_0x54380f){const _0x3cac43=new Set(_0x54380f['map'](_0x5b7693=>_0x5b7693['id']));for(let _0x1b9ce0=0x0;_0x1b9ce0<_0x54380f['length'];_0x1b9ce0++)_0x3cac43['has'](_0x54380f[_0x1b9ce0]['pairId'])||0x0==_0x54380f[_0x1b9ce0]['distance']||(_0x54380f[_0x1b9ce0]['isIncorrect']=!0x0);return _0x54380f['filter'](_0x588c6a=>!_0x588c6a['isIncorrect']);}['_markMismatchedRemovedTags'](_0x1023de){const _0x366ea0=new Set();for(let _0x53205e=0x0;_0x53205e<_0x1023de['length'];_0x53205e++){if(_0x366ea0['has'](_0x1023de[_0x53205e]['id'])&&_0x1023de[_0x53205e]['isRemoved']&&(_0x1023de[_0x53205e]['isIncorrect']=!0x0),_0x1023de[_0x53205e]['isIncorrect'])continue;if(0x0==_0x1023de[_0x53205e]['distance'])continue;if('elementStart'!=_0x1023de[_0x53205e]['type'])continue;if(null==_0x1023de[_0x53205e]['pairId'])continue;let _0x29cb7c=_0x53205e+0x1,_0x1e61ec=0x0;for(;_0x1023de[_0x29cb7c]['id']!=_0x1023de[_0x53205e]['pairId'];)'elementStart'==_0x1023de[_0x29cb7c]['type']?_0x1e61ec++:'elementEnd'==_0x1023de[_0x29cb7c]['type']&&_0x1e61ec--,_0x29cb7c++;if(0x0!=_0x1e61ec){if(_0x1023de[_0x53205e]['isRemoved'])_0x1023de[_0x53205e]['isIncorrect']=!0x0;else{for(;_0x29cb7c!=_0x53205e;)_0x1023de[_0x29cb7c]['isRemoved']&&0x0!=_0x1023de[_0x29cb7c]['distance']&&(_0x1023de[_0x29cb7c]['isIncorrect']=!0x0,_0x366ea0['add'](_0x1023de[_0x29cb7c]['pairId'])),_0x29cb7c--;}}}return _0x1023de['filter'](_0x46463d=>!_0x46463d['isIncorrect']);}['_removeUnsupportedChanges'](_0x5d6d2f){const _0x20d016=this['editor']['model']['schema'];for(let _0xa82e78=0x0;_0xa82e78<_0x5d6d2f['length'];_0xa82e78++){if(!(_0x5d6d2f[_0xa82e78]['isAdded']||_0x5d6d2f[_0xa82e78]['isAddSuggestion']||_0x5d6d2f[_0xa82e78]['isRemoved']||_0x5d6d2f[_0xa82e78]['isRemoveSuggestion']))continue;if(0x0==_0x5d6d2f[_0xa82e78]['distance'])continue;const _0x490eb7=_0x5d6d2f[_0xa82e78]['item'];_0x20d016['isBlock'](_0x490eb7)||_0x20d016['isLimit'](_0x490eb7)||(_0x5d6d2f[_0xa82e78]['isAdded']&&delete _0x5d6d2f[_0xa82e78]['isAdded'],_0x5d6d2f[_0xa82e78]['isAddSuggestion']&&delete _0x5d6d2f[_0xa82e78]['isAddSuggestion'],_0x5d6d2f[_0xa82e78]['isRemoveSuggestion']&&delete _0x5d6d2f[_0xa82e78]['isRemoveSuggestion'],_0x5d6d2f[_0xa82e78]['isRemoved']&&(_0x5d6d2f[_0xa82e78]['isIncorrect']=!0x0));}return _0x5d6d2f['filter'](_0x5cba95=>!_0x5cba95['isIncorrect']);}['_makeModelFromTape'](_0x33a981,_0x49296f,_0x3081fd){const _0x2e3099=new mt(),_0x292cef=[],_0x2090ef=new Map(),_0x4505d0=this['editor']['model'],_0x1aab58=_0x4505d0['schema'],_0x1b5b5b=[_0x2e3099],_0x7f1ece={},_0x183e1c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x8cefe9=null;const _0x3a819c=[0x0];for(let _0x5e023f=0x0;_0x5e023f<_0x33a981['length'];_0x5e023f++)if('elementStart'===_0x33a981[_0x5e023f]['type']){_0x33a981[_0x5e023f]['previousPosition']=_0x4505d0['createPositionFromPath'](_0x2e3099,_0x3a819c);const _0x4ec7de=new ft(_0x33a981[_0x5e023f]['item']['name'],_0x33a981[_0x5e023f]['item']['getAttributes']());_0x1b5b5b[0x0]['_appendChild'](_0x4ec7de),_0x3a819c['push'](0x0),_0x1b5b5b['unshift'](_0x4ec7de),_0x33a981[_0x5e023f]['nextPosition']=_0x4505d0['createPositionFromPath'](_0x2e3099,_0x3a819c);}else'elementEnd'===_0x33a981[_0x5e023f]['type']?(_0x1b5b5b['shift'](),_0x33a981[_0x5e023f]['previousPosition']=_0x4505d0['createPositionFromPath'](_0x2e3099,_0x3a819c),_0x3a819c['pop'](),_0x3a819c[_0x3a819c['length']-0x1]++,_0x33a981[_0x5e023f]['nextPosition']=_0x4505d0['createPositionFromPath'](_0x2e3099,_0x3a819c)):(_0x33a981[_0x5e023f]['previousPosition']=_0x4505d0['createPositionFromPath'](_0x2e3099,_0x3a819c),_0x8cefe9?_0x8cefe9['_data']+=_0x33a981[_0x5e023f]['item']['data']:_0x8cefe9=new wt(_0x33a981[_0x5e023f]['item']['data'],_0x33a981[_0x5e023f]['item']['getAttributes']()),_0x33a981[_0x5e023f+0x1]&&'text'===_0x33a981[_0x5e023f+0x1]['type']&&_0x1d33f6(_0x8cefe9,_0x33a981[_0x5e023f+0x1]['item'])||(_0x1b5b5b[0x0]['_appendChild'](_0x8cefe9),_0x8cefe9=null),_0x3a819c[_0x3a819c['length']-0x1]+=_0x33a981[_0x5e023f]['item']['offsetSize'],_0x33a981[_0x5e023f]['nextPosition']=_0x4505d0['createPositionFromPath'](_0x2e3099,_0x3a819c));for(let _0x14a340=0x0;_0x14a340<_0x33a981['length'];_0x14a340++){const _0x85c8c1=_0x33a981[_0x14a340]['previousPosition'],_0x3fdd06=_0x33a981[_0x14a340]['nextPosition'];for(const _0x51e0eb of _0x33a981[_0x14a340]['markersStart'])_0x2090ef['set'](_0x51e0eb,{'start':_0x85c8c1,'end':null});_0x195e09('isRemoveSuggestion',_0x14a340,_0x85c8c1,_0x3fdd06),_0x195e09('isAddSuggestion',_0x14a340,_0x85c8c1,_0x3fdd06),_0x195e09('isRemoved',_0x14a340,_0x85c8c1,_0x3fdd06),_0x195e09('isAdded',_0x14a340,_0x85c8c1,_0x3fdd06);for(const _0x5b1537 of _0x33a981[_0x14a340]['markersEnd']){_0x2090ef['get'](_0x5b1537)['end']=_0x3fdd06;}}for(const [_0x95d93c,_0x530065]of _0x2090ef){const _0x16b432=this['editor']['model']['createRange'](_0x530065['start'],_0x530065['end']);_0x2e3099['markers']['set'](_0x95d93c,_0x16b432);}return _0x292cef['sort']((_0x1a94c5,_0x1c305c)=>{const _0x355555=_0x2e3099['markers']['get']('revision:'+_0x1a94c5['id']),_0x35ca74=_0x2e3099['markers']['get']('revision:'+_0x1c305c['id']);return _0x355555['start']['isBefore'](_0x35ca74['start'])?-0x1:_0x355555['start']['isAfter'](_0x35ca74['start'])?0x1:_0x355555['end']['isBefore'](_0x35ca74['end'])?-0x1:_0x355555['end']['isAfter'](_0x35ca74['end'])?0x1:'add'===_0x1a94c5['type']?-0x1:0x1;}),{'root':_0x2e3099,'changes':_0x292cef};function _0x195e09(_0x4bf510,_0x288341,_0x5db168,_0x16381a){const _0x45e36e=!!_0x33a981[_0x288341][_0x4bf510],_0x2361ff=_0x45e36e?_0x33a981[_0x288341][_0x4bf510]['userId']:null,_0x1241da=_0x288341===_0x33a981['length']-0x1,_0x35e4aa=_0x183e1c[_0x4bf510][0x0],_0x54cea3=_0x1aab58['isObject'](_0x33a981[_0x288341]['item']);!_0x7f1ece[_0x4bf510]&&_0x45e36e?_0x7f1ece[_0x4bf510]={'start':_0x5db168,'tapeItem':_0x33a981[_0x288341],'userId':_0x2361ff,'type':_0x4bf510}:_0x7f1ece[_0x4bf510]&&!_0x45e36e?(_0x7f1ece[_0x4bf510]['end']=_0x5db168,_0x129202(_0x7f1ece[_0x4bf510]),_0x7f1ece[_0x4bf510]=null):_0x7f1ece[_0x4bf510]&&_0x45e36e&&_0x7f1ece[_0x4bf510]['userId']!==_0x2361ff&&(_0x7f1ece[_0x4bf510]['end']=_0x5db168,_0x35e4aa&&_0x35e4aa['userId']===_0x7f1ece[_0x4bf510]['userId']||_0x129202(_0x7f1ece[_0x4bf510]),_0x7f1ece[_0x4bf510]={'start':_0x5db168,'tapeItem':_0x33a981[_0x288341],'userId':_0x2361ff,'type':_0x4bf510}),_0x7f1ece[_0x4bf510]&&_0x54cea3&&('elementStart'!==_0x33a981[_0x288341]['type']||_0x35e4aa&&_0x35e4aa['userId']===_0x2361ff||_0x183e1c[_0x4bf510]['unshift']({'userId':_0x2361ff,'object':_0x33a981[_0x288341]['item'],'change':_0x7f1ece[_0x4bf510]}),'elementEnd'===_0x33a981[_0x288341]['type']&&_0x35e4aa&&_0x35e4aa['object']===_0x33a981[_0x288341]['item']&&(_0x183e1c[_0x4bf510]['shift'](),_0x7f1ece[_0x4bf510]=_0x35e4aa['change'])),_0x7f1ece[_0x4bf510]&&_0x1241da&&(_0x7f1ece[_0x4bf510]['end']=_0x16381a,_0x129202(_0x7f1ece[_0x4bf510]),_0x7f1ece[_0x4bf510]=null);}function _0x129202({start:_0x56508f,end:_0x5a91a4,tapeItem:_0x52d1b8,userId:_0x2b8dbd,type:_0x5e2058}){const _0x1d1c6b=_0x52d1b8['item'],_0x3b32a1=_0x4505d0['schema']['isBlock'](_0x1d1c6b)&&!_0x4505d0['schema']['isLimit'](_0x1d1c6b),_0x535690=_0x56508f['nodeAfter']==_0x5a91a4['parent']&&_0x5a91a4['isAtStart'];if(_0x3b32a1&&_0x535690)return;const _0x399bd1=_0x4505d0['createRange'](_0x56508f,_0x5a91a4),_0x3a49df=_0x49296f['get'](_0x2b8dbd),_0x46a6fa=new r({'author':_0x3a49df,'type':'isAdded'==_0x5e2058||'isAddSuggestion'==_0x5e2058?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5e2058||'isRemoveSuggestion'==_0x5e2058},'createdAt':new Date(),'rootName':_0x3081fd});_0x292cef['push'](_0x46a6fa),_0x2e3099['markers']['set']('revision:'+_0x46a6fa['id'],_0x399bd1);}function _0x1d33f6(_0x564535,_0x3fbe5f){const _0x59ede7=_0x564535['getAttributes'](),_0x1f1f22=_0x3fbe5f['getAttributes']();for(const _0x3f1eed of _0x59ede7){if(_0x3f1eed[0x1]!==_0x3fbe5f['getAttribute'](_0x3f1eed[0x0]))return!0x1;_0x1f1f22['next']();}return _0x1f1f22['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x367868=>{const _0xb0f338=_0x367868['markerName']['split'](':')[0x1],_0x5a86c3=this['_getChangeFromId'](_0xb0f338);if(!_0x5a86c3)return null;const _0x4323fc='add'==_0x5a86c3['type']?'insertion':'deletion',_0xf859d7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4323fc];return _0x5a86c3['data']['isSuggestion']&&_0xf859d7['push']('ck-suggestion-marker-'+_0x4323fc+'-new'),this['activeChange']==_0x5a86c3&&_0xf859d7['push']('ck-suggestion-marker--active'),{'classes':_0xf859d7,'attributes':{'data-change-id':_0xb0f338}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4f7279=>{_0x4f7279['on']('element:pre',(_0xca21e4,_0x150532,_0x2b3d4c)=>{const _0x49fb65=_0x150532['viewItem']['getChild'](0x0);if(!_0x49fb65||!_0x49fb65['is']('element','code'))return;if(!_0x2b3d4c['consumable']['consume'](_0x49fb65,{'attributes':['vid_start','vid_end']}))return;const _0xe1e5a4=_0x150532['modelRange']['start']['nodeAfter'];_0x2b3d4c['writer']['setAttribute']('vid_start',_0x49fb65['getAttribute']('vid_start'),_0xe1e5a4),_0x2b3d4c['writer']['setAttribute']('vid_end',_0x49fb65['getAttribute']('vid_end'),_0xe1e5a4);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x13e1ad=>{_0x13e1ad['on']('element',(_0xfb2211,_0x59e3b5,_0x2f92f7)=>{if(!_0x2f92f7['consumable']['consume'](_0x59e3b5['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x59e3b5['modelRange']['isCollapsed'])return;const _0x19bf05=_0x59e3b5['modelRange']['start']['nodeAfter'];_0x19bf05['hasAttribute']('vid_start')||_0x19bf05['hasAttribute']('vid')||(_0x2f92f7['writer']['setAttribute']('vid_start',_0x59e3b5['viewItem']['getAttribute']('vid_start'),_0x19bf05),_0x2f92f7['writer']['setAttribute']('vid_end',_0x59e3b5['viewItem']['getAttribute']('vid_end'),_0x19bf05));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x17214a=>_0x17214a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x42a53d,[,_0x100d82])=>{['vid_start','vid_end','vid']['includes'](_0x100d82)&&(_0x42a53d['return']=!0x0,_0x42a53d['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x155a64=>{_0x155a64['on']('attribute:vid',(_0x388b04,_0xe88a1,_0x6dfc8c)=>{if('\x20'!=_0xe88a1['item']['data']||_0xe88a1['item']['parent']['maxOffset']>0x1)return;if(!_0x6dfc8c['consumable']['consume'](_0xe88a1['item'],_0x388b04['name']))return;const _0x62d308=_0x6dfc8c['writer'],_0x45a6a4=_0x6dfc8c['mapper']['toViewRange'](_0xe88a1['range']);_0x62d308['wrap'](_0x45a6a4,_0x62d308['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35c704){const _0x36cbee=_0x35c704['plugins']['get']('RevisionViewer');return(_0x290f2b,_0xe6ea20,_0x20fcf9)=>{const _0x3a10bc=_0xe6ea20['markerName']['split'](':')[0x1],_0x448f7d=_0x36cbee['_getChangeFromId'](_0x3a10bc);if(!_0x448f7d)return null;const _0x4c3317='add'==_0x448f7d['type']?'split':'merge';if(!_0x20fcf9['consumable']['test'](_0xe6ea20['markerRange'],_0x290f2b['name']))return;const _0x1fc7e0=_0xe6ea20['markerRange']['getWalker'](),_0x2525b9=_0xe6ea20['markerRange']['start'],_0x30c7bc=_0x35c704['model']['schema'];let _0x3abd1a=null,_0x51bf46=null,_0x3aef4e=!0x1,_0x57a4e1=!0x1;for(const _0x377963 of _0x1fc7e0){const _0x81b941=_0x377963['item'];_0x3aef4e=_0x3aef4e||_0x30c7bc['isContent'](_0x81b941);const _0x505746=_0x20fcf9['mapper']['toViewElement'](_0x81b941);if(_0x505746&&_0x505746['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x377963['type']&&(_0x30c7bc['isBlock'](_0x81b941)&&!_0x30c7bc['isLimit'](_0x81b941)&&(_0x81b941['nextSibling']||_0x2525b9['isAtEnd']?_0x3abd1a&&_0x3abd1a['parent']==_0x81b941||(_0x3abd1a=_0x81b941,_0x58edcd(_0x377963['previousPosition']),_0x57a4e1=!0x0):_0x51bf46=_0x51bf46||_0x377963['previousPosition']));}function _0x58edcd(_0x4c3646){const _0x1f4d42=_0x20fcf9['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c3317}),_0x3d01a2=_0x20fcf9['mapper']['toViewPosition'](_0x4c3646);_0x448f7d['data']['isSuggestion']&&_0x20fcf9['writer']['addClass']('ck-suggestion-marker-'+_0x4c3317+'-new',_0x1f4d42),_0x36cbee['activeChange']==_0x448f7d&&_0x20fcf9['writer']['addClass']('ck-suggestion-marker--active',_0x1f4d42),_0x20fcf9['writer']['insert'](_0x3d01a2,_0x1f4d42),_0x20fcf9['mapper']['bindElementToMarker'](_0x1f4d42,_0xe6ea20['markerName']);}_0x3aef4e||_0x57a4e1||!_0x51bf46||_0x58edcd(_0x51bf46);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x94a9b1,_0x515340,_0x3aff59)=>{const _0x58b287=_0x3aff59['mapper']['markerNameToElements'](_0x515340['markerName']);if(_0x58b287){for(const _0x3f33bf of _0x58b287)(_0x3f33bf['hasClass']('ck-suggestion-marker-split')||_0x3f33bf['hasClass']('ck-suggestion-marker-merge'))&&(_0x3aff59['mapper']['unbindElementFromMarkerName'](_0x3f33bf,_0x515340['markerName']),_0x3aff59['writer']['remove'](_0x3f33bf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x318b18,_0x1ee25b,_0xcd8e8a)=>{const _0x31d702=_0x1ee25b['markerName']['split'](':')[0x1],_0x3b77f0=this['_getChangeFromId'](_0x31d702);if(!_0x3b77f0)return null;const _0x42b8c8='add'==_0x3b77f0['type']?'split':'merge';if(_0xcd8e8a['consumable']['test'](_0x1ee25b['markerRange'],_0x318b18['name']))for(const _0x306a20 of _0x1ee25b['markerRange']['getItems']()){if(!_0x306a20['is']('element','softBreak'))continue;const _0x34256a=_0xcd8e8a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x42b8c8}),_0x2f13f3=_0xcd8e8a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x306a20));_0x3b77f0['data']['isSuggestion']&&_0xcd8e8a['writer']['addClass']('ck-suggestion-marker-'+_0x42b8c8+'-new',_0x34256a),this['activeChange']==_0x3b77f0&&_0xcd8e8a['writer']['addClass']('ck-suggestion-marker--active',_0x34256a),_0xcd8e8a['writer']['insert'](_0x2f13f3,_0x34256a),_0xcd8e8a['mapper']['bindElementToMarker'](_0x34256a,_0x1ee25b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2581b1=>{for(const _0x3665ff of this['editor']['model']['document']['getRootNames']()){const _0x3df02b=this['editor']['model']['document']['getRoot'](_0x3665ff),_0x15803b=this['editor']['editing']['view']['document']['getRoot'](_0x3665ff);if(_0x15803b){const _0x405408=_0x3df02b['getAttribute']('revisionHistoryAttachChange');if(_0x2581b1['removeAttribute']('data-change-id',_0x15803b),_0x2581b1['removeClass']('ck-revision-history-root-add',_0x15803b),_0x2581b1['removeClass']('ck-revision-history-root-remove',_0x15803b),_0x2581b1['removeClass']('ck-revision-history-root--active',_0x15803b),_0x405408){const _0x2d39ba=this['_getChangeFromId'](_0x405408);if(!_0x2d39ba)return null;_0x2581b1['setAttribute']('data-change-id',_0x405408,_0x15803b),_0x2581b1['addClass']('ck-revision-history-root-'+_0x2d39ba['type'],_0x15803b),this['activeChange']==_0x2d39ba&&_0x2581b1['addClass']('ck-revision-history-root--active',_0x15803b);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2e9dae=>'revision-comment:'+_0x2e9dae,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x3e629c=>'revision-suggestion:'+_0x3e629c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4d39a7=>({'name':'suggestion:'+_0x4d39a7,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x18ac0c=>{const _0x5e25fa=_0x18ac0c['markerName']['split'](':')[0x1];return'insertion'!=_0x5e25fa&&'deletion'!=_0x5e25fa?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x5e25fa]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x6ba346,_0x463613,_0xb4bba5)=>{const _0x32b73d=_0xb4bba5['mapper']['markerNameToElements'](_0x463613['markerName']);if(_0x32b73d){for(const _0x1bb177 of _0x32b73d)_0x1bb177['is']('uiElement')&&(_0xb4bba5['mapper']['unbindElementFromMarkerName'](_0x1bb177,_0x463613['markerName']),_0xb4bba5['writer']['remove'](_0x1bb177));}},{'priority':'high'});}['_getChangeFromId'](_0x4684f0){return this['_changeIdToChange']['get'](_0x4684f0);}['_getViewForChange'](_0x406bad){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x406bad),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x48942f,_0x3731da,_0x39c2eb,_0xe7018f)=>{_0xe7018f&&this['_balloon']['remove'](_0xe7018f),_0x39c2eb&&(this['_balloon']['add']({'view':_0x39c2eb,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x8f579c=this['editor']['editing'],_0x646644=this['_getChangeFromId'](_0x39c2eb['changeId']);let _0x5cce03;if(_0x646644['data']['isOnRoot']){const _0x47a416=_0x8f579c['view']['getDomRoot'](_0x646644['rootName']);_0x5cce03=Array['from'](_0x47a416['getClientRects']());}else{const _0x5bfc08=this['editor']['model']['markers']['get']('revision:'+_0x39c2eb['changeId']);_0x5cce03=Array['from'](_0x8f579c['mapper']['markerNameToElements'](_0x5bfc08['name']))['map'](_0xab0c30=>_0x8f579c['view']['domConverter']['mapViewToDom'](_0xab0c30))['map'](_0x3fe897=>Array['from'](_0x3fe897['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5cce03[0x0];return _0x5cce03['find'](_0x222386=>_0x222386['top']-0x3<=this['_activeViewTarget']['y']&&_0x222386['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x222386['left']-0x3<=this['_activeViewTarget']['x']&&_0x222386['right']+0x3>=this['_activeViewTarget']['x'])||_0x5cce03[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1881dd,_0x4bab0f,_0x5b1389,_0x5b37f7)=>{this['activeView']=_0x5b1389?this['_getViewForChange'](_0x5b1389):null,this['editor']['model']['change'](()=>{const _0x3222a2=this['editor']['editing'];_0x5b37f7&&(_0x5b37f7['data']['isOnRoot']?_0x3222a2['view']['change'](_0x2d00ad=>{_0x2d00ad['removeClass']('ck-revision-history-root--active',_0x3222a2['view']['document']['getRoot'](_0x5b37f7['rootName']));}):_0x3222a2['reconvertMarker']('revision:'+_0x5b37f7['id'])),_0x5b1389&&(_0x5b1389['data']['isOnRoot']?_0x3222a2['view']['change'](_0x1b1de3=>{_0x1b1de3['addClass']('ck-revision-history-root--active',_0x3222a2['view']['document']['getRoot'](_0x5b1389['rootName']));}):_0x3222a2['reconvertMarker']('revision:'+_0x5b1389['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x392310,_0x155b74)=>{if(this['activeChange'])return;const _0x5f3ca0=this['_findChangeIdFromDomTarget'](_0x155b74['target']),_0x5ba8cd=this['_changeIdToChange']['get'](_0x5f3ca0);_0x5ba8cd?(this['_activeViewTarget']={'x':_0x155b74['domEvent']['x'],'y':_0x155b74['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5ba8cd)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x261391,_0x208619)=>{const _0xf48cb1=this['_findChangeIdFromDomTarget'](_0x208619['target']),_0x3fa067=this['_changeIdToChange']['get'](_0xf48cb1);_0x3fa067?(this['_activeViewTarget']={'x':_0x208619['domEvent']['x'],'y':_0x208619['domEvent']['y']},_0x3fa067===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3fa067):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0xaf849a){do{const _0x52723b=_0xaf849a['getAttribute']('data-change-id');if(_0x52723b)return _0x52723b;_0xaf849a=_0xaf849a['parent'];}while(_0xaf849a);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x52f884=>{for(const _0x2d93a5 of this['editor']['model']['markers'])_0x52f884['removeMarker'](_0x2d93a5);});}}function Z(_0x29524d,_0x1b0123){return(_0x2c7ee5,_0x23e66c,_0x381315)=>{if(!_0x381315['consumable']['test'](_0x23e66c['markerRange'],_0x2c7ee5['name']))return;const _0x40cd43=_0x23e66c['markerRange']['getWalker'](),_0x365ae5=_0x23e66c['markerRange']['start'],_0x142c88=_0x29524d['model']['schema'];let _0x2030a9=null,_0x2b21e5=null,_0x37d16b=!0x1,_0x1d92d3=!0x1;for(const _0x1c7c4d of _0x40cd43){const _0x417299=_0x1c7c4d['item'];_0x37d16b=_0x37d16b||_0x142c88['isContent'](_0x417299);const _0x420ed8=_0x381315['mapper']['toViewElement'](_0x417299);if(_0x420ed8&&_0x420ed8['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c7c4d['type']&&(_0x142c88['isBlock'](_0x417299)&&!_0x142c88['isLimit'](_0x417299)&&(_0x417299['nextSibling']||_0x365ae5['isAtEnd']?_0x2030a9&&_0x2030a9['parent']==_0x417299||(_0x2030a9=_0x417299,_0x3cec08(_0x1c7c4d['previousPosition']),_0x1d92d3=!0x0):_0x2b21e5=_0x2b21e5||_0x1c7c4d['previousPosition']));}function _0x3cec08(_0x5158a1){const _0x10f0f4=_0x381315['mapper']['toViewPosition'](_0x5158a1),_0xc0d21a=_0x381315['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1b0123});_0x381315['writer']['insert'](_0x10f0f4,_0xc0d21a),_0x381315['mapper']['bindElementToMarker'](_0xc0d21a,_0x23e66c['markerName']);}_0x37d16b||_0x1d92d3||!_0x2b21e5||_0x3cec08(_0x2b21e5);};}class _t extends _0x5cf7cf{constructor(_0x45b4cb){super(_0x45b4cb);const _0xbcc3cd=_0x45b4cb['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xbcc3cd,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xbcc3cd,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1f3682=this['editor'],_0x136689=_0x1f3682['plugins']['get'](d),_0x38d47b=_0x136689['isReady']?_0x136689['diff']['newRevisionId']:null;_0x1f3682['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x38d47b);}['refresh'](){const {isReady:_0x488f6d,isEnabled:_0x2d350d,repository:_0x21ae24,diff:_0x468d6e}=this['editor']['plugins']['get'](d),_0x3d5015=_0x468d6e&&_0x21ae24['getLaterVisibleRevision'](_0x468d6e['newRevisionId']);this['isEnabled']=_0x488f6d&&_0x2d350d&&Boolean(_0x3d5015);}}class yt extends _0x5cf7cf{['_step'];constructor(_0x386e9f,{direction:_0x52dc93}){super(_0x386e9f);const _0x3b7272=_0x386e9f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x52dc93?0x1:-0x1,this['listenTo'](_0x3b7272,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x3b7272,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x3b7272,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2318f=this['editor'],_0x358fc0=_0x2318f['plugins']['get'](d),{isNavigationMode:_0x2f87d4,currentChangeNumber:_0x1604bd}=_0x358fc0;let _0x3a0cfa;if(_0x358fc0['activeChange']=_0x2f87d4?_0x358fc0['diff']['changes']['get'](_0x1604bd+this['_step']):_0x358fc0['diff']['changes']['first'],_0x358fc0['activeChange']['data']['isOnRoot'])_0x3a0cfa=_0x2318f['editing']['view']['getDomRoot'](_0x358fc0['activeChange']['rootName']);else{const _0x2d101b=_0x2318f['model']['markers']['get']('revision:'+_0x358fc0['activeChange']['id']);_0x3a0cfa=_0x147bd9(_0x2318f['editing'],_0x2d101b);}_0x18c847({'target':_0x3a0cfa,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3c6879,currentChangeNumber:_0xb554ea,numberOfChanges:_0x5d0550,isReady:_0xfdcab3,isEnabled:_0x4ec7d7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4ec7d7&&_0xfdcab3&&_0x5d0550)&&(!_0x3c6879||(0x1===this['_step']?_0xb554ea<_0x5d0550-0x1:_0xb554ea>0x0));}}class _i extends _0x5d06dd{constructor(_0x990cec){super(_0x990cec);const _0x1891cd=this['bindTemplate'],_0x4f7147=new _0xf16c04(_0x990cec),_0x547183=new _0xf16c04(_0x990cec);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',(_0x5f02c8,_0x9d3bc3)=>_0x5f02c8&&_0x9d3bc3>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1f3cb1,_0x500934,_0x145a24,_0x238b4e)=>{if(!_0x1f3cb1)return m(_0x990cec,'Loading...');if(!_0x145a24)return m(_0x990cec,'No\x20changes');const _0x2c910a=m(_0x990cec,'NUMBER_OF_CHANGES',_0x145a24);return _0x238b4e?m(_0x990cec,'X_OF_Y_CHANGES',[_0x500934+0x1,_0x145a24]):_0x2c910a;}),_0x4f7147['set']({'label':m(_0x990cec,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x547183['set']({'label':m(_0x990cec,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x4f7147['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x547183['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x4f7147['on']('execute',()=>this['fire']('execute','backward')),_0x547183['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',_0x1891cd['if']('_isStatusLabelVisible','ck-hidden',_0x147617=>!_0x147617)]},'children':[{'text':_0x1891cd['to']('isNavigationMode',_0x2b5348=>_0x2b5348?m(_0x990cec,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x990cec,'Total')+':\x20')}]},{'text':_0x1891cd['to']('_statusText')}]},new _0xa97505(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x4f7147,_0x547183]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4e9651{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x379b80=this['editor']['editing']['view'];_0x379b80['change'](_0x1b1b12=>{for(const _0x11517d of _0x379b80['document']['roots'])_0x1b1b12['addClass'](ce,_0x11517d);});}['hide'](){const _0x696c56=this['editor']['editing']['view'];_0x696c56['change'](_0x37be22=>{for(const _0x36806b of _0x696c56['document']['roots'])_0x37be22['removeClass'](ce,_0x36806b);});}}class g extends _0x4e9651{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x578c3d=this['editor'],_0xbead4c=_0x578c3d['plugins']['get'](d),_0x1edd48=_0x578c3d['plugins']['get'](le);_0x578c3d['ui']['componentFactory']['add']('exitToEditing',_0x23f68d=>{const _0xeee4dc=new _0xf16c04(_0x23f68d);return _0xeee4dc['set']({'label':m(_0x23f68d,'Back\x20to\x20editing'),'icon':_0x57e327['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xeee4dc,'execute',()=>{_0x578c3d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xeee4dc;}),_0x578c3d['ui']['componentFactory']['add']('restoreRevision',_0x505243=>{const _0x31f276=new _0xf16c04(_0x505243);return _0x31f276['set']({'label':m(_0x505243,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x31f276['bind']('isEnabled')['to'](_0x578c3d['commands']['get']('restoreRevision')),this['listenTo'](_0x31f276,'execute',()=>_0x578c3d['execute']('restoreRevision')),_0x31f276;}),_0x578c3d['ui']['componentFactory']['add']('changesNavigation',_0x92baaa=>{const _0x1734bd=new _i(_0x92baaa),_0x5a5ecc=_0x578c3d['commands']['get']('showPreviousChange'),_0x3e04ea=_0x578c3d['commands']['get']('showNextChange');return _0x1734bd['bind']('isBackwardNavigationEnabled')['to'](_0x5a5ecc,'isEnabled'),_0x1734bd['bind']('isForwardNavigationEnabled')['to'](_0x3e04ea,'isEnabled'),_0x1734bd['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xbead4c),this['listenTo'](_0x1734bd,'execute',(_0x5c02f7,_0x1a999a)=>{_0x578c3d['execute']('forward'===_0x1a999a?'showNextChange':'showPreviousChange');}),_0x1734bd;}),_0x1edd48['show'](),_0xbead4c['on']('change:isReady',(_0x6cf004,_0xcc0fe4,_0x57b3e7)=>{_0x57b3e7?_0x1edd48['hide']():_0x1edd48['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0xbf879e,_0x4df2cc){super(_0xbf879e,_0x4df2cc);const _0x419f15=this['bindTemplate'];this['set']({'label':m(_0xbf879e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0xbf879e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x419f15['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 _0x34e0e3=this['fieldView']['element'];this['_tooltipString']=_0x34e0e3['scrollWidth']>_0x34e0e3['clientWidth']&&_0x34e0e3['value']||'';}}class ti extends _0x5d06dd{constructor(_0xa45698,_0x50603d,_0xb9f281){super(_0xa45698);const _0x51c7b2=new _0x1a07de();_0x51c7b2['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x1d3110=['ck','ck-revision-history-sidebar__revision-author'];_0xb9f281&&_0x1d3110['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3d9270=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0xa45698,_0xb9f281?'Revision\x20creator':'Revision\x20author')},'children':[_0x51c7b2,_0x50603d['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d3110},'children':_0x3d9270});}}function ni(_0x4a99fa,_0x3da655){const _0xb2c7d2=_0x4a99fa['bindTemplate'],_0x9d338c=_0x4a99fa['locale'],_0xac5b0c=_0x3d8e5a(_0x9d338c);_0xac5b0c['panelPosition']='sw';const _0x35f607=function(_0x4e8c8e,_0x344f44){const _0x4110cd=function(_0x780a77,_0x9590c1){const _0x5931c4=_0x780a77['locale'],_0x5c5924={'Compare\x20against\x20selected':m(_0x5931c4,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x5931c4,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x5931c4,'Restore\x20this\x20revision')};return _0x9590c1['map'](_0x3bc121=>{const _0x359940=_0x5c5924[_0x3bc121['name']];return _0x359940&&_0x359940!==_0x3bc121['name']&&(_0x3bc121['name']=_0x359940),_0x3bc121;});}(_0x4e8c8e,_0x344f44),_0x39768e=new _0x315d6f();for(const _0x5b4db5 of _0x4110cd){const _0x2e2481={'type':'button','model':new to({'label':_0x5b4db5['name'],'class':_0x5b4db5['class'],'withText':!0x0,'role':'menuitem','_action':_0x5b4db5['action']})};_0x2e2481['model']['bind']('isEnabled')['to'](_0x4e8c8e,'isActionsDropdownOpen',_0x30e50a=>'function'!=typeof _0x5b4db5['isEnabled']||(!_0x30e50a||_0x5b4db5['isEnabled'](_0x4e8c8e))),_0x39768e['add'](_0x2e2481);}return _0x39768e;}(_0x4a99fa,_0x3da655);return _0x4a99fa['bind']('isActionsDropdownOpen')['to'](_0xac5b0c,'isOpen'),_0xac5b0c['buttonView']['set']({'label':m(_0x9d338c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57e327['threeVerticalDots']}),_0xac5b0c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xb2c7d2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xb2c7d2['to'](_0x1a0fb3=>_0x1a0fb3['stopPropagation']())}}),_0xac5b0c['on']('execute',_0x777ed6=>{_0x4a99fa['isReady']&&'function'==typeof _0x777ed6['source']['_action']&&_0x777ed6['source']['_action'](_0x4a99fa);}),_0x41c57e(_0xac5b0c,_0x35f607,{'role':'menu'}),_0xac5b0c['listenTo'](_0x4a99fa,'change:isActionsDropdownOpen',(_0x48127d,_0x449ce7,_0x540c05)=>{if(_0x540c05)for(const _0x44e6d4 of _0xac5b0c['listView']['items']){const _0x51ecb1=_0x44e6d4['children']['first'],_0x8d7fbc=_0x3da655['find'](_0x5700cb=>_0x5700cb['action']===_0x51ecb1['_action'])['isVisible'];_0x44e6d4['isVisible']=void 0x0===_0x8d7fbc||_0x8d7fbc(_0x4a99fa);}}),_0xac5b0c;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x546404(_0x5d06dd){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x500e3e,_0x41c1d3,_0x5572de,_0x47e336){super(_0x500e3e);const _0x1e69cc=this['bindTemplate'],_0x364825=function(_0x463a4e,_0x1c257a){const _0x33b99b=Array['from'](_0x1c257a['authors'])['filter'](_0x39f862=>_0x39f862!=_0x1c257a['creator']);return _0x1c257a['creator']&&_0x33b99b['unshift'](_0x1c257a['creator']),_0x33b99b['map'](_0x4fa5ac=>new ti(_0x463a4e,_0x4fa5ac,_0x4fa5ac==_0x1c257a['creator']));}(_0x500e3e,_0x41c1d3);this['id']=_0x41c1d3['id'],this['_revision']=_0x41c1d3,this['_requireRevisionName']=_0x47e336,this['bind']('name','createdAt')['to'](_0x41c1d3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1c82e2=>{return _0x1ffb8e=_0x500e3e['uiLanguage'],(_0x47aefa=_0x1c82e2)['toLocaleDateString'](_0x1ffb8e,{'month':'long','day':'numeric'})+',\x20'+_0x47aefa['toLocaleTimeString'](_0x1ffb8e,{'hour':'numeric','minute':'numeric'});var _0x1ffb8e,_0x47aefa;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x500e3e,_0x403f90),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x299703=>_0x299703||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x32f05b,_0x4823f7)=>_0x32f05b&&_0x4823f7),this['revisionActionsView']=_0x5572de&&_0x5572de['length']?ni(this,_0x5572de):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1e69cc['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1e69cc['if']('isEnabled','ck-disabled',_0x877edd=>!_0x877edd),_0x1e69cc['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1e69cc['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1e69cc['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':_0x1e69cc['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':_0x364825}]},this['revisionActionsView']],'on':{'click':_0x1e69cc['to'](_0xfa6b52=>{_0xfa6b52['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2cf25e=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x2cf25e,'change',()=>{this['_requireRevisionName']&&!_0x2cf25e['value']||this['fire']('setName',{'id':this['id'],'name':_0x2cf25e['value']}),_0x2cf25e['value']||(_0x2cf25e['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x35c67a,_0x11084){const _0x504d84=_0x4188de['fromJSDate'](_0x35c67a)['setLocale'](_0x11084),_0x106f84=_0x4188de['local'](),_0xb016a0=_0x106f84['minus']({'days':0x1})['startOf']('day');let _0x1c0cbf,_0x38ea78;return _0x504d84['hasSame'](_0x106f84,'day')?(_0x1c0cbf=_0x504d84['startOf']('day')['toJSDate'](),_0x38ea78=_0x504d84['toRelativeCalendar']()):_0x504d84['hasSame'](_0xb016a0,'day')?(_0x1c0cbf=_0xb016a0['toJSDate'](),_0x38ea78=_0x504d84['toRelativeCalendar']()):_0x504d84['hasSame'](_0x106f84,'week')?(_0x1c0cbf=_0x504d84['startOf']('week')['toJSDate'](),_0x38ea78=_0x504d84['weekdayLong']||''):_0x504d84['hasSame'](_0x106f84,'year')?(_0x1c0cbf=_0x504d84['startOf']('month')['toJSDate'](),_0x38ea78=_0x504d84['monthLong']||''):(_0x1c0cbf=_0x504d84['startOf']('year')['toJSDate'](),_0x38ea78=String(_0x504d84['year'])),{'startDate':_0x1c0cbf,'localizedPeriodName':_0x38ea78};}class mi extends _0x5d06dd{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x33def5,_0x1eb039,_0x5f4dd3,_0x49c421){super(_0x33def5);const _0x58976=di(_0x1eb039,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1eb039,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5f4dd3,this['_requireRevisionName']=_0x49c421,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':_0x58976}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1990cd){const _0x4d69d2=new ai(this['locale'],_0x1990cd,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4d69d2);}['removeRevision'](_0xb9b98f){const _0x34556c=this['revisionViews']['find'](_0x305073=>_0x305073['id']===_0xb9b98f['id']);this['revisionViews']['remove'](_0x34556c);}}class as extends _0x5d06dd{constructor(_0x3a6529){super(_0x3a6529);const _0xd8ee89=new _0x1a07de();_0xd8ee89['content']=_0x57e327['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xd8ee89,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x3a6529,'Revision\x20history')]}]});}}class ci extends _0x5d06dd{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x908d19,_0x28b67c,_0x497198,_0x3d6cd2){super(_0x908d19);const _0x545792=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x28b67c,this['_revisionActions']=_0x497198,this['_requireRevisionName']=_0x3d6cd2,this['on']('select',(_0x9935fe,_0x4d61be)=>{this['fire']('revisionSelected',_0x4d61be);}),this['on']('setName',(_0x1e653a,_0x14814e)=>{this['fire']('revisionSetName',_0x14814e);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x908d19),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x545792['if']('isEnabled','ck-disabled',_0x32c6d5=>!_0x32c6d5)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x12eb4e of this['_revisions'])this['_addRevision'](_0x12eb4e);this['_revisions']['on']('add',(_0x4aeb5f,_0x4c8902)=>{this['_addRevision'](_0x4c8902);}),this['_revisions']['on']('remove',(_0x2e397a,_0x3e5f6e)=>{this['_removeRevision'](_0x3e5f6e);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x24d41f=>_0x24d41f['revisionViews']['map'](_0x1bdcb0=>_0x1bdcb0))['flat']();}['selectRevision'](_0x25de8a){for(const _0x1e8035 of this['revisionViews'])_0x25de8a&&_0x25de8a['id']===_0x1e8035['id']?_0x1e8035['select']():_0x1e8035['deselect']();}['highlightRevisions'](_0x2d155b){for(const _0x28be88 of this['revisionViews'])_0x2d155b['some'](({id:_0x59152e})=>_0x59152e===_0x28be88['id'])?_0x28be88['highlight']():_0x28be88['unhighlight']();}['_addRevision'](_0x404509){const _0x392a03=di(_0x404509['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x129cfc=this['timePeriodViews']['get'](0x0);_0x129cfc&&_0x129cfc['startDate']['getTime']()===_0x392a03['getTime']()||(_0x129cfc=new mi(this['locale'],_0x392a03,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x129cfc)),_0x129cfc['addRevision'](_0x404509);}['_removeRevision'](_0x512e6d){const _0x506b81=di(_0x512e6d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x506b81)['removeRevision'](_0x512e6d);}['_getTimePeriodViewByStartDate'](_0x37fb08){return this['timePeriodViews']['find'](_0xa58c32=>_0xa58c32['startDate']['getTime']()===_0x37fb08['getTime']());}}class w extends _0x4e9651{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0xd05ddd){super(_0xd05ddd),this['_revisionViewer']=_0xd05ddd['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1d3977=this['_revisionsRepository']['_revisions'],_0x1eb225=this['_createRevisionActions'](),_0x29a717=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x1d3977,_0x1eb225,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',(_0x4d432a,_0x3b2778)=>{_0x3b2778['revisionViews']['on']('add',(_0x2f1b5d,_0x39aeda)=>{_0x39aeda['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)),_0x29a717['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x583c8b=this['_revisionsRepository']['getRevision'](0x0);if(_0x583c8b){const _0x3c584c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x583c8b['id']);this['_revisionViewer']['compare'](_0x583c8b,_0x3c584c);}}['_handleRevisionSelected'](_0x3e5090,_0x5711f7){const _0x17c1c0=this['_revisionsRepository']['getRevision'](_0x5711f7['id']),_0x3fbfd2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x17c1c0['id']);this['_revisionViewer']['compare'](_0x17c1c0,_0x3fbfd2);}['_handleRevisionSetName'](_0x5ae97e,_0x3262d0){this['_revisionsRepository']['getRevision'](_0x3262d0['id'])['setName'](_0x3262d0['name']);}['_handleDiffChange'](_0x11f1fa,_0x54402b,_0x25138a){const _0x14c9b2=this['_revisionsRepository']['getRevisionsInDiff'](_0x25138a);_0x14c9b2['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x14c9b2),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x14c9b2[0x0]));}['_createRevisionActions'](){const _0x4b0846=this['editor'],_0x4d4d18=w['availableRevisionActions'],_0x1513ef=_0x4b0846['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x1513ef['length'])return _0x1513ef['map'](_0x100bf1=>{const _0x4bea31='string'==typeof _0x100bf1?Object['assign']({},_0x4d4d18[_0x100bf1]):_0x100bf1;return _0x4bea31['action']=_0x4bea31['action']['bind'](this,_0x4b0846),_0x4bea31['isVisible']&&(_0x4bea31['isVisible']=_0x4bea31['isVisible']['bind'](this,_0x4b0846)),_0x4bea31;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4f3464},_0x50fc9c)=>{const _0x582108=_0x4f3464['get'](d),_0x442b0a=_0x582108['repository'];let _0x4c888d=_0x582108['diff']['newRevisionId'],_0x32e5b6=_0x50fc9c['id'];_0x442b0a['getIndex'](_0x4c888d)>_0x442b0a['getIndex'](_0x32e5b6)&&([_0x4c888d,_0x32e5b6]=[_0x32e5b6,_0x4c888d]),_0x582108['compare'](_0x4c888d,_0x32e5b6);},'isVisible':({plugins:_0xcafc80},_0x23f4b4)=>{const _0x80ddf4=_0xcafc80['get'](d);return!(_0x80ddf4['repository']['getRevisionsInDiff'](_0x80ddf4['diff'])['length']>0x2)&&!_0x23f4b4['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1dd8cb,{id:_0x5a364f})=>{_0x1dd8cb['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5a364f);},'isVisible':({plugins:_0xe70fa6},_0x468750)=>!!_0xe70fa6['get'](d)['repository']['getLaterVisibleRevision'](_0x468750['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x23e36e},{id:_0x31421a,revisionNameView:_0x441287})=>{const _0x58f8cb=_0x23e36e['get'](d),_0x1674c2=_0x58f8cb['repository']['getEarlierVisibleRevision'](_0x31421a);_0x58f8cb['compare'](_0x31421a,_0x1674c2),_0x441287['focus'](),_0x441287['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1c799e,_0x2de783){super(_0x1c799e),this['_view']=_0x2de783,this['_toolbarConfig']=ot(_0x1c799e['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0xf99c30){const _0x28dfc9=this['editor'],_0x26d07a=this['view'],_0x4106d7=_0x28dfc9['editing']['view'],_0x4da665=_0x26d07a['editable'],_0x941305=_0x4106d7['document']['getRoot']();_0x4da665['name']=_0x941305['rootName'],_0x26d07a['render']();const _0x26a649=_0x4da665['element'];this['setEditableElement'](_0x4da665['name'],_0x26a649),_0x26d07a['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4106d7['attachDomRoot'](_0x26a649),this['_elementReplacer']['replace'](_0xf99c30,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x4e9ea4=this['view'],_0x21755d=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x21755d['detachDomRoot'](_0x4e9ea4['editable']['name']),_0x4e9ea4['destroy']();}['_initToolbar'](){const _0x341497=this['view'];_0x341497['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x341497['stickyPanel']['limiterElement']=_0x341497['element'],_0x341497['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x86ffcb})=>_0x86ffcb),_0x341497['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x341497['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1eb97d,_0x399528,_0x184d6a={}){super(_0x1eb97d),this['stickyPanel']=new ut(_0x1eb97d),this['toolbar']=new lt(_0x1eb97d,{'shouldGroupWhenFull':_0x184d6a['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1eb97d,_0x399528);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xfce994,_0x1b10ed){super(_0x1b10ed),this['sourceElement']=_0xfce994,this['model']['document']['createRoot']();const _0x3de04c=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3de04c);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x38dd78,_0xaab213){const _0x424e8b=new this(_0x38dd78,_0xaab213);return await _0x424e8b['initPlugins'](),await _0x424e8b['ui']['init'](_0x38dd78),await _0x424e8b['data']['init'](_0x424e8b['config']['get']('initialData')||''),_0x424e8b['fire']('ready'),_0x424e8b;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x5a9002{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x31a15b){function _0x4f467e(_0x5dc9b5){return _0x5dc9b5['map'](_0x2c9204=>String['fromCharCode'](_0x2c9204))['join']('');}super(_0x31a15b),this['result']='end',_0x31a15b[_0x4f467e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4f467e([0x76,0x69,0x65,0x77])][_0x4f467e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4f467e([0x61,0x75,0x74,0x6f]),_0x31a15b[_0x4f467e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4f467e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4f467e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4f467e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4f467e([0x6f,0x6b])});}}class k extends _0x5a9002{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x3690f3){if(super(_0x3690f3),!this['editor']['config']['get']('revisionHistory'))throw new _0x53925d('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x676d4d=>this['_showRevisionViewer']({..._0x676d4d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4a4d87=>this['_closeRevisionViewer'](_0x4a4d87)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x4e0835=>this['_restoreRevision'](_0x4e0835)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x16d9dc){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x16d9dc;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x47d8e2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x47d8e2);}['getRevision'](_0x47f2f5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x47f2f5);}['getRevisions'](_0x53dd94){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x53dd94||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xf1d603=this['editor'],_0x5a2530=_0x488052(_0xf1d603,p),_0xf10434=_0xf1d603['plugins']['get']('RevisionTracker'),_0x33d910=_0xf1d603['plugins']['get']('Users')['users'];return _0x5a2530['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5a2530['lazyRoots'],(_0x5a2530['plugins']['push'](bt,d,g,class extends _0x5a9002{static get['requires'](){return[d,'Users'];}['init'](){const _0x455908=this['editor']['plugins']['get']('Users');for(const _0x13e7d3 of _0x33d910)_0x13e7d3['isAnonymous']||_0x455908['getUser'](_0x13e7d3['id'])||_0x455908['addUser'](_0x13e7d3);const _0x381c40=_0xf10434['repository']['getRevisions']();let _0xccfc02=null;const _0x2bad16=this['editor']['plugins']['get']('RevisionViewer');_0x2bad16['adapter']=_0xf10434['adapter'],_0x2bad16['bind']('isEnabled')['to'](_0xf10434),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xf1d603,'isReadOnly',_0x4e4e4b=>!_0x4e4e4b);for(const _0x114c44 of _0x381c40){const _0x529bdb=null===_0x114c44['creator'];if(_0x529bdb&&_0x114c44['toVersion']===_0x114c44['fromVersion'])continue;const _0x4e674a=_0x114c44['toJSON']();_0x2bad16['addRevisionData'](_0x4e674a,(_0x431945,_0x140dc6,_0x3f2468)=>{if(_0x529bdb){if(_0xccfc02)_0xccfc02['_update'](_0x431945,_0x140dc6);else{if(!_0x140dc6){const _0x2f144e=_0x3f2468['toJSON']();_0x2f144e['id']=_0x2bee71(),_0xf10434['saveRevision'](_0x2f144e,_0x3f2468['toVersion'])['then'](_0x1dbffb=>{_0xccfc02=_0x1dbffb;});}}}else _0x114c44['_update'](_0x431945,_0x140dc6);});}}},w),_0x5a2530);}['_enhanceShowRevisionViewerCallback'](){const _0x44fb72=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x2b10b4=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x636804=this['editor']['plugins']['get']('Autosave');await _0x636804['save']();}else await _0x2b10b4['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x965038=this['editor']['plugins']['get']('Dialog');_0x965038['isOpen']&&_0x965038['hide']();}const _0x42d47f=this['_getRevisionViewerEditorConfig']();return _0x44fb72(_0x42d47f)['then'](_0x1d28d4=>{return(this['_viewerEditor']=_0x1d28d4,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1d28d4;})['catch'](_0x33a313=>(console['error'](_0x33a313),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x29be59=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x29be59(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x12db97=this['editor']['plugins']['get']('Annotations');_0x12db97['refreshVisibility'](),_0x12db97['refreshPositioning']();}})));}['_showRevisionViewer'](_0x536213){const _0x3c72f4=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5b54da=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xebfbb5=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xebfbb5,_0x536213)['then'](_0x9bd923=>(_0x5b54da['style']['display']='block',_0x3c72f4['style']['display']='none',_0x9bd923));}['_closeRevisionViewer'](_0x512f22){const _0x5dab37=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5dab37['style']['display']='',_0x512f22['destroy']();}async['_restoreRevision'](_0x3f9609){const _0x454319=this['editor'],_0x3d0a79=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x70caef=_0x454319['plugins']['get']('RevisionTracker'),_0x2ecd42=_0x3d0a79['repository']['getRevision'](_0x3f9609);let _0x3fcaad,_0x112bfe,_0x37faf2;try{_0x3fcaad=await _0x3d0a79['getRevisionData'](_0x2ecd42),_0x112bfe=await _0x3d0a79['getRevisionRootsAttributes'](_0x2ecd42);}catch(_0xa15985){return void console['error'](_0xa15985);}_0x454319['model']['change'](_0x2d1ed2=>{for(const _0x385511 of Array['from'](_0x454319['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2d1ed2['removeMarker'](_0x385511);}),_0x3d0a79['isReady']=!0x1,_0x454319['model']['enqueueChange'](_0x327403=>{_0x327403['setSelection'](null),_0x327403['removeSelectionAttribute'](_0x454319['model']['document']['selection']['getAttributeKeys']());const _0x1ce190=Object['keys'](_0x3fcaad);for(const _0x433b82 of _0x454319['model']['document']['roots'])'$graveyard'!=_0x433b82['rootName']&&_0x433b82['isAttached']()&&!_0x1ce190['includes'](_0x433b82['rootName'])&&_0x327403['detachRoot'](_0x433b82);for(const _0x3d0657 of _0x1ce190){let _0x140d29=_0x454319['model']['document']['getRoot'](_0x3d0657);_0x140d29&&_0x140d29['isAttached']()||(_0x140d29=_0x327403['addRoot'](_0x3d0657));const _0x2084c1=_0x112bfe[_0x3d0657],_0x5438bb=Object['keys'](_0x2084c1),_0x42c676=_0x3fcaad[_0x3d0657];for(const _0x13f003 of _0x140d29['getAttributeKeys']())_0x5438bb['includes'](_0x13f003)||_0x327403['removeAttribute'](_0x13f003,_0x140d29);for(const _0x4fcc04 of _0x5438bb)_0x327403['setAttribute'](_0x4fcc04,_0x112bfe[_0x3d0657][_0x4fcc04],_0x140d29);_0x327403['remove'](_0x327403['createRangeIn'](_0x140d29)),_0x327403['insert'](_0x454319['data']['parse'](_0x42c676,_0x140d29),_0x140d29,0x0);}});const _0x5923e8=m(_0x454319['locale'],'Restored');if(_0x2ecd42['name'])_0x37faf2=-0x1==_0x2ecd42['name']['indexOf'](_0x5923e8)?_0x5923e8+':\x20'+_0x2ecd42['name']:_0x2ecd42['name'];else _0x37faf2=_0x5923e8+':\x20'+(_0x2ecd42['createdAt']['toLocaleDateString'](_0x454319['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2ecd42['createdAt']['toLocaleTimeString'](_0x454319['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x70caef['saveRevision']({'name':_0x37faf2}),_0x3d0a79['isReady']=!0x0,_0x454319['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x9608e7){super(_0x9608e7),this['_revisionViewer']=_0x9608e7['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x452d22=this['_revisionsRepository']['_revisions'],_0xe0c41f=this['_createRevisionActions'](),_0x407b1a=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x452d22,_0xe0c41f,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',(_0x5ddbb6,_0x31871b)=>{_0x31871b['revisionViews']['on']('add',(_0x5c4bc9,_0x1affff)=>{_0x1affff['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)),_0x407b1a['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xdff079=this['_revisionsRepository']['getRevision'](0x0);if(_0xdff079){const _0x1db771=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xdff079['id']);this['_revisionViewer']['compare'](_0xdff079,_0x1db771);}}['_handleRevisionSelected'](_0xf76f6a,_0x403594){const _0x577df6=this['_revisionsRepository']['getRevision'](_0x403594['id']),_0x1063ba=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x577df6['id']);this['_revisionViewer']['compare'](_0x577df6,_0x1063ba);}['_handleRevisionSetName'](_0xb60b08,_0x1c4eb7){this['_revisionsRepository']['getRevision'](_0x1c4eb7['id'])['setName'](_0x1c4eb7['name']);}['_handleDiffChange'](_0x223b2c,_0x4dad66,_0x4fe6e4){const _0x136658=this['_revisionsRepository']['getRevisionsInDiff'](_0x4fe6e4);_0x136658['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x136658),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x136658[0x0]));}['_createRevisionActions'](){const _0x2a420a=this['editor'],_0x202263=w['availableRevisionActions'],_0x28f924=_0x2a420a['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x28f924['length'])return _0x28f924['map'](_0x10a952=>{const _0x2d447d='string'==typeof _0x10a952?Object['assign']({},_0x202263[_0x10a952]):_0x10a952;return _0x2d447d['action']=_0x2d447d['action']['bind'](this,_0x2a420a),_0x2d447d['isVisible']&&(_0x2d447d['isVisible']=_0x2d447d['isVisible']['bind'](this,_0x2a420a)),_0x2d447d;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x422780},_0x5d8398)=>{const _0x4a3a6b=_0x422780['get'](d),_0xc68344=_0x4a3a6b['repository'];let _0x38f13d=_0x4a3a6b['diff']['newRevisionId'],_0x2f37fd=_0x5d8398['id'];_0xc68344['getIndex'](_0x38f13d)>_0xc68344['getIndex'](_0x2f37fd)&&([_0x38f13d,_0x2f37fd]=[_0x2f37fd,_0x38f13d]),_0x4a3a6b['compare'](_0x38f13d,_0x2f37fd);},'isVisible':({plugins:_0x5b957f},_0x5c378d)=>{const _0x40e6f1=_0x5b957f['get'](d);return!(_0x40e6f1['repository']['getRevisionsInDiff'](_0x40e6f1['diff'])['length']>0x2)&&!_0x5c378d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x44a074,{id:_0x2f7590})=>{_0x44a074['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2f7590);},'isVisible':({plugins:_0x4b652f},_0x17569b)=>!!_0x4b652f['get'](d)['repository']['getLaterVisibleRevision'](_0x17569b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xa808ed},{id:_0xe492d,revisionNameView:_0x481597})=>{const _0x2aa026=_0xa808ed['get'](d),_0x3a90a5=_0x2aa026['repository']['getEarlierVisibleRevision'](_0xe492d);_0x2aa026['compare'](_0xe492d,_0x3a90a5),_0x481597['focus'](),_0x481597['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x2d5d7f,_0x4067be){super(_0x2d5d7f),this['_view']=_0x4067be,this['_toolbarConfig']=ot(_0x2d5d7f['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1cc889){const _0x4d8b1f=this['editor'],_0x4f4ed5=this['view'],_0x258a09=_0x4d8b1f['editing']['view'],_0x310f48=_0x4f4ed5['editable'],_0xb2bca7=_0x258a09['document']['getRoot']();_0x310f48['name']=_0xb2bca7['rootName'],_0x4f4ed5['render']();const _0xa7eb05=_0x310f48['element'];this['setEditableElement'](_0x310f48['name'],_0xa7eb05),_0x4f4ed5['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x258a09['attachDomRoot'](_0xa7eb05),this['_elementReplacer']['replace'](_0x1cc889,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x7457bc=this['view'],_0x32748f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x32748f['detachDomRoot'](_0x7457bc['editable']['name']),_0x7457bc['destroy']();}['_initToolbar'](){const _0x4b8815=this['view'];_0x4b8815['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4b8815['stickyPanel']['limiterElement']=_0x4b8815['element'],_0x4b8815['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x487b44})=>_0x487b44),_0x4b8815['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4b8815['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x19c2d3,_0x377394,_0x2c4ff4={}){super(_0x19c2d3),this['stickyPanel']=new ut(_0x19c2d3),this['toolbar']=new lt(_0x19c2d3,{'shouldGroupWhenFull':_0x2c4ff4['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x19c2d3,_0x377394);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x24152d,_0xff8627){super(_0xff8627),this['sourceElement']=_0x24152d,this['model']['document']['createRoot']();const _0x19a6d0=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x19a6d0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x209453,_0x1b4d64){const _0x247eb4=new this(_0x209453,_0x1b4d64);return await _0x247eb4['initPlugins'](),await _0x247eb4['ui']['init'](_0x209453),await _0x247eb4['data']['init'](_0x247eb4['config']['get']('initialData')||''),_0x247eb4['fire']('ready'),_0x247eb4;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4e9651{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x118d22){function _0x44e13f(_0x31bdd0){return _0x31bdd0['map'](_0x50fe3c=>String['fromCharCode'](_0x50fe3c))['join']('');}super(_0x118d22),this['result']='end',_0x118d22[_0x44e13f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x44e13f([0x76,0x69,0x65,0x77])][_0x44e13f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x44e13f([0x61,0x75,0x74,0x6f]),_0x118d22[_0x44e13f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x44e13f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x44e13f([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x44e13f([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x44e13f([0x6f,0x6b])});}}class k extends _0x4e9651{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x388198){if(super(_0x388198),!this['editor']['config']['get']('revisionHistory'))throw new _0x5580b5('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x122dcf=>this['_showRevisionViewer']({..._0x122dcf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4353db=>this['_closeRevisionViewer'](_0x4353db)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x833c2f=>this['_restoreRevision'](_0x833c2f)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x46a489){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x46a489;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x5ab308){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x5ab308);}['getRevision'](_0x125899){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x125899);}['getRevisions'](_0x235ef8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x235ef8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2e016b=this['editor'],_0x5c5edf=_0x2aae73(_0x2e016b,p),_0x2cfe72=_0x2e016b['plugins']['get']('RevisionTracker'),_0x440fed=_0x2e016b['plugins']['get']('Users')['users'];return _0x5c5edf['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5c5edf['lazyRoots'],(_0x5c5edf['plugins']['push'](Rt,d,g,class extends _0x4e9651{static get['requires'](){return[d,'Users'];}['init'](){const _0x397594=this['editor']['plugins']['get']('Users');for(const _0x2cebf6 of _0x440fed)_0x2cebf6['isAnonymous']||_0x397594['getUser'](_0x2cebf6['id'])||_0x397594['addUser'](_0x2cebf6);const _0x2ca08e=_0x2cfe72['repository']['getRevisions']();let _0x370ebd=null;const _0x376a3a=this['editor']['plugins']['get']('RevisionViewer');_0x376a3a['adapter']=_0x2cfe72['adapter'],_0x376a3a['bind']('isEnabled')['to'](_0x2cfe72),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2e016b,'isReadOnly',_0x2944f2=>!_0x2944f2);for(const _0x45d048 of _0x2ca08e){const _0x481de2=null===_0x45d048['creator'];if(_0x481de2&&_0x45d048['toVersion']===_0x45d048['fromVersion'])continue;const _0x501ac0=_0x45d048['toJSON']();_0x376a3a['addRevisionData'](_0x501ac0,(_0xa39312,_0x59a667,_0x3559f5)=>{if(_0x481de2){if(_0x370ebd)_0x370ebd['_update'](_0xa39312,_0x59a667);else{if(!_0x59a667){const _0x359ffb=_0x3559f5['toJSON']();_0x359ffb['id']=_0xc1e5f5(),_0x2cfe72['saveRevision'](_0x359ffb,_0x3559f5['toVersion'])['then'](_0x4c6236=>{_0x370ebd=_0x4c6236;});}}}else _0x45d048['_update'](_0xa39312,_0x59a667);});}}},w),_0x5c5edf);}['_enhanceShowRevisionViewerCallback'](){const _0x476557=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x38e64f=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4c5916=this['editor']['plugins']['get']('Autosave');await _0x4c5916['save']();}else await _0x38e64f['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x503ec6=this['editor']['plugins']['get']('Dialog');_0x503ec6['isOpen']&&_0x503ec6['hide']();}const _0x415dda=this['_getRevisionViewerEditorConfig']();return _0x476557(_0x415dda)['then'](_0x48b96e=>{return(this['_viewerEditor']=_0x48b96e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x48b96e;})['catch'](_0x58ff54=>(console['error'](_0x58ff54),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0xd25382=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0xd25382(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xff7b71=this['editor']['plugins']['get']('Annotations');_0xff7b71['refreshVisibility'](),_0xff7b71['refreshPositioning']();}})));}['_showRevisionViewer'](_0x453ea1){const _0x3c125a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x517143=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2793b0=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2793b0,_0x453ea1)['then'](_0x302eb0=>(_0x517143['style']['display']='block',_0x3c125a['style']['display']='none',_0x302eb0));}['_closeRevisionViewer'](_0x1fc131){const _0x353108=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x353108['style']['display']='',_0x1fc131['destroy']();}async['_restoreRevision'](_0x2dee74){const _0x2c8587=this['editor'],_0x19296a=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3bd7e5=_0x2c8587['plugins']['get']('RevisionTracker'),_0x4d47c4=_0x19296a['repository']['getRevision'](_0x2dee74);let _0x41bc2d,_0x55baee,_0x437a82;try{_0x41bc2d=await _0x19296a['getRevisionData'](_0x4d47c4),_0x55baee=await _0x19296a['getRevisionRootsAttributes'](_0x4d47c4);}catch(_0x46e028){return void console['error'](_0x46e028);}_0x2c8587['model']['change'](_0x317e70=>{for(const _0x33446d of Array['from'](_0x2c8587['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x317e70['removeMarker'](_0x33446d);}),_0x19296a['isReady']=!0x1,_0x2c8587['model']['enqueueChange'](_0x1dcdc4=>{_0x1dcdc4['setSelection'](null),_0x1dcdc4['removeSelectionAttribute'](_0x2c8587['model']['document']['selection']['getAttributeKeys']());const _0x1aa3df=Object['keys'](_0x41bc2d);for(const _0x7b0325 of _0x2c8587['model']['document']['roots'])'$graveyard'!=_0x7b0325['rootName']&&_0x7b0325['isAttached']()&&!_0x1aa3df['includes'](_0x7b0325['rootName'])&&_0x1dcdc4['detachRoot'](_0x7b0325);for(const _0x382a30 of _0x1aa3df){let _0x1a7250=_0x2c8587['model']['document']['getRoot'](_0x382a30);_0x1a7250&&_0x1a7250['isAttached']()||(_0x1a7250=_0x1dcdc4['addRoot'](_0x382a30));const _0x581e47=_0x55baee[_0x382a30],_0x21bc31=Object['keys'](_0x581e47),_0x41220d=_0x41bc2d[_0x382a30];for(const _0x395be6 of _0x1a7250['getAttributeKeys']())_0x21bc31['includes'](_0x395be6)||_0x1dcdc4['removeAttribute'](_0x395be6,_0x1a7250);for(const _0x3150bd of _0x21bc31)_0x1dcdc4['setAttribute'](_0x3150bd,_0x55baee[_0x382a30][_0x3150bd],_0x1a7250);_0x1dcdc4['remove'](_0x1dcdc4['createRangeIn'](_0x1a7250)),_0x1dcdc4['insert'](_0x2c8587['data']['parse'](_0x41220d,_0x1a7250),_0x1a7250,0x0);}});const _0x5aba54=m(_0x2c8587['locale'],'Restored');if(_0x4d47c4['name'])_0x437a82=-0x1==_0x4d47c4['name']['indexOf'](_0x5aba54)?_0x5aba54+':\x20'+_0x4d47c4['name']:_0x4d47c4['name'];else _0x437a82=_0x5aba54+':\x20'+(_0x4d47c4['createdAt']['toLocaleDateString'](_0x2c8587['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4d47c4['createdAt']['toLocaleTimeString'](_0x2c8587['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3bd7e5['saveRevision']({'name':_0x437a82}),_0x19296a['isReady']=!0x0,_0x2c8587['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};