@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250120.0 → 0.0.0-nightly-20250122.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 +8 -8
  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 _0x153256,uid as _0x1de225,Collection as _0x369930,logWarning as _0x31f83f,FocusTracker as _0x46dc44,KeystrokeHandler as _0x3c8938,scrollViewportToShowTarget as _0x54a603,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x404111}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x140c2b,set as _0xfa1a26,unset as _0x431668,isEqual as _0x4852ea}from'lodash-es';import{Plugin as _0x46c671,PendingActions as _0x581fb9,icons as _0x36297c,Command as _0x49e04e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5bda76,getMarkerDomElement as _0x1adcad,ConfirmMixin as _0x1d95fd,sanitizeEditorConfig as _0x587d03}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2ec321,ViewText as _0x5aeb6e,ViewElement as _0x3d1ce6,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x12a9ad,ViewAttributeElement as _0x276013,ViewEmptyElement as _0x57a21f,ViewRawElement as _0x347dc5,ViewUIElement as _0x18c6ed,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x3191d2,injectCssTransitionDisabler as ts,submitHandler as _0x2d472c,LabeledFieldView as nt,createLabeledInputText as _0x101bc4,createDropdown as _0x4ce21a,ListView as _0x4cd0b4,ListItemView as _0x26a18a,ButtonView as _0x5d5006,MenuBarMenuView as _0x37fedc,MenuBarMenuListView as _0x1a6348,MenuBarMenuListItemView as _0x48e1ba,MenuBarMenuListItemButtonView as _0x4b263a,ContextualBalloon as _0xeb8c9,ToolbarSeparatorView as _0x1c1102,IconView as _0x3ca579,addListToDropdown as _0x32e9dd,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 _0x459ebb}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x153256(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xbeb02f){super(),this['id']=_0xbeb02f['id']||_0x1de225(),this['creator']=_0xbeb02f['creator']||null,this['authors']=_0xbeb02f['authors']||[],this['diffData']=_0xbeb02f['diffData']||null,this['toVersion']=_0xbeb02f['toVersion']||0x0,this['fromVersion']=_0xbeb02f['fromVersion']||0x0,this['set']('name',_0xbeb02f['name']||''),this['set']('createdAt',_0xbeb02f['createdAt']||new Date()),this['set']('attributes',_0xbeb02f['attributes']||{});}['setName'](_0x1a942b){this['_update']({'name':_0x1a942b});}['setAttribute'](_0x1b695f,_0x2810f4){const _0x12d4d2=_0x140c2b(this['attributes']);_0xfa1a26(_0x12d4d2,_0x1b695f,_0x2810f4),this['_update']({'attributes':_0x12d4d2});}['removeAttribute'](_0x2029e8){const _0x4adb72=_0x140c2b(this['attributes']);_0x431668(_0x4adb72,_0x2029e8),this['_update']({'attributes':_0x4adb72});}['_update'](_0xcb916a,_0x7d5b3e=!0x1){let _0x5bd6a9=!0x1;const _0x236f8f={'id':this['id']},_0xc50d42=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x4c9997 of _0xc50d42){const _0x1652a8=_0xcb916a[_0x4c9997];void 0x0!==_0x1652a8&&_0x1652a8!==this[_0x4c9997]&&(this[_0x4c9997]=_0x1652a8,_0x236f8f[_0x4c9997]=_0x1652a8,_0x5bd6a9=!0x0);}_0x5bd6a9&&(_0x236f8f['authors']&&(_0x236f8f['authorsIds']=_0x236f8f['authors']['map'](_0x360349=>_0x360349['id']),delete _0x236f8f['authors']),this['fire']('_update',_0x236f8f,_0x7d5b3e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2f0c02=>_0x2f0c02['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x46c671{['_revisions'];static get['requires'](){return[_0x5bda76];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x525469){super(_0x525469),this['_revisions']=new _0x369930();}['afterInit'](){!async function(_0xbf7686){const _0x2ff29f=_0x3be786([0x6a,0x4c,0x67,0x75,0x52,0x6c,0x45,0x31,0x56,0x43,0x71,0x5a,0x64,0x62,0x74,0x73,0x54,0x33,0x38,0x32,0x69,0x48,0x72,0x35,0x51,0x4d,0x30,0x76,0x6b,0x77,0x36,0x47,0x68,0x4e,0x42,0x44,0x39,0x6e,0x59,0x79,0x55,0x70,0x49,0x34,0x37,0x50,0x65,0x7a,0x4b,0x53,0x6d,0x66,0x61,0x6f,0x4f,0x57,0x41,0x46,0x78,0x63,0x58,0x4a]),_0xbf4f0a=0xeb829,_0x3b3986=0x7d1a394a,_0x3e5afe=0x7d1d646a^_0x3b3986,_0x36a36e=window[_0x3be786([0x44,0x61,0x74,0x65])][_0x3be786([0x6e,0x6f,0x77])](),_0x5040be=_0xbf7686[_0x3be786([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xa952d6=new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf2e087=>{_0x5040be[_0x3be786([0x6f,0x6e,0x63,0x65])](_0x3be786([0x72,0x65,0x61,0x64,0x79]),_0xf2e087);}),_0x250712={[_0x3be786([0x6b,0x74,0x79])]:_0x3be786([0x45,0x43]),[_0x3be786([0x75,0x73,0x65])]:_0x3be786([0x73,0x69,0x67]),[_0x3be786([0x63,0x72,0x76])]:_0x3be786([0x50,0x2d,0x32,0x35,0x36]),[_0x3be786([0x78])]:_0x3be786([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]),[_0x3be786([0x79])]:_0x3be786([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]),[_0x3be786([0x61,0x6c,0x67])]:_0x3be786([0x45,0x53,0x32,0x35,0x36])},_0x19ffe2=_0x5040be[_0x3be786([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3be786([0x67,0x65,0x74])](_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5e65bd(){let _0x44039c,_0x52ea7b=null,_0x5e0560=null;try{if(_0x19ffe2==_0x3be786([0x47,0x50,0x4c]))return _0x3be786([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x44039c=_0x3a8b49(),!_0x44039c)return _0x3be786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x44039c[_0x3be786([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e0560=_0x3b1210(_0x44039c[_0x3be786([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x44039c[_0x3be786([0x6a,0x74,0x69])])),await _0x2399bd()?_0x4327c8()?_0x5558ca()?_0x3be786([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x353200()?(_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3be786([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x52ea7b=_0x252ab2(_0x3be786([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3be786([0x74,0x72,0x69,0x61,0x6c])&&(_0x52ea7b=_0x252ab2(_0x3be786([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3be786([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x52ea7b=_0x252ab2(_0x3be786([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5a1231()):_0x3be786([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3be786([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3be786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x44e08b){return _0x3be786([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5558ca(){const _0x4cbd38=[_0x3be786([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3be786([0x74,0x72,0x69,0x61,0x6c])][_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x36a36e/0x3e8:0xe10*_0x3e5afe;return _0x44039c[_0x3be786([0x65,0x78,0x70])]<_0x4cbd38;}function _0x4327c8(){const _0x50a1d7=_0x44039c[_0x3be786([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x50a1d7)return!0x1;if(_0x50a1d7[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x2a])))return!0x0;if(_0x50a1d7[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x52,0x48])))return!0x0;if(_0x50a1d7[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x52,0x52,0x48]))){if(_0x48840f())return!0x0;if(_0x12f23c()||_0x358fb9())return!0x0;}return!0x1;}function _0x353200(){const _0x198352=_0x44039c[_0x3be786([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x198352||0x0==_0x198352[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f48c7}=new URL(window[_0x3be786([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x198352[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f48c7))return!0x0;const _0x5f483e=_0x1f48c7[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e]));return _0x198352[_0x3be786([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x54d57a=>_0x54d57a[_0x3be786([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3be786([0x2a])))[_0x3be786([0x6d,0x61,0x70])](_0x2e3c6a=>_0x2e3c6a[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e])))[_0x3be786([0x73,0x6f,0x6d,0x65])](_0x597a6c=>_0x5f483e[_0x3be786([0x65,0x76,0x65,0x72,0x79])]((_0x1c9baa,_0xf8c9d2)=>_0x597a6c[_0xf8c9d2]===_0x1c9baa||_0x597a6c[_0xf8c9d2]===_0x3be786([0x2a])));}function _0x5a1231(){return _0x52ea7b&&_0x5e0560?new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d9b0c,_0x43abc3)=>{_0x52ea7b[_0x3be786([0x74,0x68,0x65,0x6e])](_0x2d9b0c,_0x43abc3),_0x5e0560[_0x3be786([0x74,0x68,0x65,0x6e])](_0x187dd6=>{_0x187dd6!=_0x3be786([0x56,0x61,0x6c,0x69,0x64])&&_0x2d9b0c(_0x187dd6);},_0x43abc3);}):_0x52ea7b||_0x5e0560||_0x3be786([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b1210(_0x2b6011,_0x264ae2){return new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c6ea2=>{if(_0x55ffc9())return _0x5c6ea2(_0x3be786([0x56,0x61,0x6c,0x69,0x64]));_0x6a4dd5(),_0x5040be[_0x3be786([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3be786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4094c7=!0x1;const _0xdc3a62=_0x1de225();function _0x34cf69(_0x309b59){return!!_0x309b59&&(typeof _0x309b59===_0x3be786([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x309b59===_0x3be786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x309b59[_0x3be786([0x74,0x68,0x65,0x6e])]===_0x3be786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x309b59[_0x3be786([0x63,0x61,0x74,0x63,0x68])]===_0x3be786([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d2358(_0x6f6317){_0x3f4d9(_0x6f6317)[_0x3be786([0x74,0x68,0x65,0x6e])](_0xb06052=>{if(!_0xb06052||_0xb06052[_0x3be786([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3be786([0x6f,0x6b]))return _0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8348f(_0x11f52f(_0xdc3a62+_0x264ae2))!=_0xb06052[_0x3be786([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3be786([0x56,0x61,0x6c,0x69,0x64]);})[_0x3be786([0x74,0x68,0x65,0x6e])](_0x58e2a6=>(_0x3c8967(),_0x58e2a6),()=>{const _0x3d3133=_0x129326();return null==_0x3d3133?(_0x3c8967(),_0x3be786([0x56,0x61,0x6c,0x69,0x64])):_0x3be786(_0x36a36e-_0x3d3133>(0x5916bd4a^_0x3b3986)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3be786([0x74,0x68,0x65,0x6e])](_0x5c6ea2)[_0x3be786([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5c6ea2(_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b3ae5=0x7d2cd7ca^_0x3b3986;function _0x3c8967(){const _0x5bb578=_0x3be786([0x6c,0x6c,0x63,0x74,0x2d])+_0x8348f(_0x11f52f(_0x2b6011)),_0x5d3923=_0x3aa9a2(_0x8348f(window[_0x3be786([0x4d,0x61,0x74,0x68])][_0x3be786([0x63,0x65,0x69,0x6c])](_0x36a36e/_0x5b3ae5)));window[_0x3be786([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3be786([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5bb578,_0x5d3923);}function _0x129326(){const _0x86940=_0x3be786([0x6c,0x6c,0x63,0x74,0x2d])+_0x8348f(_0x11f52f(_0x2b6011)),_0x200c8f=window[_0x3be786([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3be786([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x86940);return _0x200c8f?window[_0x3be786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3aa9a2(_0x200c8f),0x10)*_0x5b3ae5:null;}function _0x3f4d9(_0xa3e2ce){return new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x172238,_0x480525)=>{_0xa3e2ce[_0x3be786([0x74,0x68,0x65,0x6e])](_0x172238,_0x480525),window[_0x3be786([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x480525,0x7d1bed8a^_0x3b3986);});}}_0x5040be[_0x3be786([0x6f,0x6e])](_0x3be786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xd94f3a,_0x3686d4)=>{if(_0x3686d4[0x0]!=_0x2b6011)return _0x5c6ea2(_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3686d4[0x1]={..._0x3686d4[0x1],[_0x3be786([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xdc3a62};},{[_0x3be786([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3be786([0x68,0x69,0x67,0x68])}),_0x5040be[_0x3be786([0x6f,0x6e])](_0x3be786([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x350e18=>{_0x34cf69(_0x350e18[_0x3be786([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4094c7=!0x0,_0x2d2358(_0x350e18[_0x3be786([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3be786([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3be786([0x6c,0x6f,0x77])}),_0xa952d6[_0x3be786([0x74,0x68,0x65,0x6e])](()=>{_0x4094c7||_0x5c6ea2(_0x3be786([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x55ffc9(){return _0x5040be[_0x3be786([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3be786([0x76,0x69,0x65,0x77])][_0x3be786([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3be786([0x61,0x75,0x74,0x6f]);}function _0x6a4dd5(){_0x5040be[_0x3be786([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3be786([0x76,0x69,0x65,0x77])][_0x3be786([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3be786([0x61,0x75,0x74,0x6f]);}}function _0x252ab2(_0x59e6c4){const _0xd2baa1=[new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264c7a=>setTimeout(_0x264c7a,0x7d130786^_0x3b3986)),_0xa952d6[_0x3be786([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c23a6=>{const _0x5a33a3=0x7d1a394d^_0x3b3986,_0x51c4e4=_0xbf7686[_0x3be786([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x54c699(){_0x51c4e4[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5a33a3&&_0x1c23a6();}_0x54c699(),_0x51c4e4[_0x3be786([0x6f,0x6e])](_0x3be786([0x61,0x64,0x64]),_0x54c699);})),new window[(_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53b3a4=>{function _0x54db48(){for(const _0x635087 in window)if(window[_0x3be786([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3be786([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x635087))&&window[_0x635087]==_0xbf4f0a)return _0x53b3a4();_0x5040be[_0x3be786([0x73,0x74,0x61,0x74,0x65])]!=_0x3be786([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3be786([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x54db48,0x7d1a2ac2^_0x3b3986);}_0x28eb39(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x54db48();})];return window[_0x3be786([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3be786([0x72,0x61,0x63,0x65])](_0xd2baa1)[_0x3be786([0x74,0x68,0x65,0x6e])](()=>_0x59e6c4);}async function _0x3ac9c4(){if(await _0xa952d6,_0x28eb39(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x28dd01=_0xbf7686[_0x3be786([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x53a61c=_0xbf7686[_0x3be786([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])](_0x28dd01[_0x3be786([0x69,0x64])]),_0x3f62a6=_0x9657c8(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x3f62a6[_0x3be786([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x28dd01['id'],_0x53a61c?_0x53a61c['id']:null,!0x0),_0x3f62a6[_0x3be786([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3f62a6[_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3f62a6[_0x3be786([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4206b8,void(_0x3f62a6[_0x3be786([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4206b8);}if(_0x28eb39(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4b3294=_0x9657c8(_0x3be786([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4b3294[_0x3be786([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4b3294[_0x3be786([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4b3294[_0x3be786([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4206b8,_0x4b3294[_0x3be786([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4206b8;}_0x5040be[_0x3be786([0x6d,0x6f,0x64,0x65,0x6c])][_0x3be786([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4206b8,_0x5040be[_0x3be786([0x6d,0x6f,0x64,0x65,0x6c])][_0x3be786([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4206b8,_0x5040be[_0x3be786([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3be786([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x48840f(){return _0x28eb39(_0x3be786([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x9657c8(_0x3be786([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3be786([0x73,0x74,0x61,0x74,0x65])]==_0x3be786([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x12f23c(){return _0x28eb39(_0x3be786([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 _0x358fb9(){return _0x28eb39(_0x3be786([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xfa1bdd(_0x1c6e99){const _0x11776a=_0x130f0c();_0x5040be[_0x11776a]=_0x3be786([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])+_0x1c6e99,_0x1c6e99[_0x3be786([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3be786([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x130f0c()]=_0xbf4f0a),_0x1c6e99!=_0x3be786([0x56,0x61,0x6c,0x69,0x64])&&_0x3ac9c4();}function _0x130f0c(){const _0x2a229c=window[_0x3be786([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3be786([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3be786([0x6e,0x6f,0x77])]())[_0x3be786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3be786([0x2e]),'');let _0x1a5552=_0x3be786([0x6a]);for(let _0x1fd1b4=0x0;_0x1fd1b4<_0x2a229c[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fd1b4+=0x2){let _0x25178a=window[_0x3be786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a229c[_0x3be786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fd1b4,_0x1fd1b4+0x2));_0x25178a>=_0x2ff29f[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x25178a-=_0x2ff29f[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1a5552+=_0x2ff29f[_0x25178a];}return _0x1a5552;}function _0x3a8b49(){const _0x3d59d9=_0x19ffe2[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e]));if(0x3!=_0x3d59d9[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2c2ada(_0x3d59d9[0x1]);function _0x2c2ada(_0x1548d1){const _0xe2319a=_0x41ab5c(_0x1548d1);return _0xe2319a&&_0x1c491b()?_0xe2319a:null;function _0x1c491b(){const _0x5ba5d0=_0xe2319a[_0x3be786([0x6a,0x74,0x69])],_0x146e3e=window[_0x3be786([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5ba5d0[_0x3be786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ba5d0[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x422c86={..._0xe2319a,[_0x3be786([0x6a,0x74,0x69])]:_0x5ba5d0[_0x3be786([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5ba5d0[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x422c86[_0x3be786([0x76,0x63])],_0x11f52f(_0x422c86)==_0x146e3e;}}}async function _0x2399bd(){let _0x165666=!0x0;try{const _0x323e9f=_0x19ffe2[_0x3be786([0x73,0x70,0x6c,0x69,0x74])](_0x3be786([0x2e])),[_0x5cb271,_0x28baef,_0x3edebc]=_0x323e9f;return _0x2357a4(_0x5cb271),await _0x3a66b1(_0x5cb271,_0x28baef,_0x3edebc),_0x165666;}catch(_0x5a61ad){return!0x1;}function _0x2357a4(_0x51a534){const _0x451818=_0x41ab5c(_0x51a534);_0x451818&&_0x451818[_0x3be786([0x61,0x6c,0x67])]==_0x3be786([0x45,0x53,0x32,0x35,0x36])||(_0x165666=!0x1);}async function _0x3a66b1(_0x27b3c6,_0x5cbfbf,_0xe1ab3){const _0x5c8f77=window[_0x3be786([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3be786([0x66,0x72,0x6f,0x6d])](_0x2a9924(_0xe1ab3),_0x2dacb2=>_0x2dacb2[_0x3be786([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x567be0=new window[(_0x3be786([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3be786([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x27b3c6+_0x3be786([0x2e])+_0x5cbfbf),_0x26c58d=window[_0x3be786([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3be786([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26c58d)return;const _0x5f2877=await _0x26c58d[_0x3be786([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3be786([0x6a,0x77,0x6b]),_0x250712,{[_0x3be786([0x6e,0x61,0x6d,0x65])]:_0x3be786([0x45,0x43,0x44,0x53,0x41]),[_0x3be786([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3be786([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3be786([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26c58d[_0x3be786([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3be786([0x6e,0x61,0x6d,0x65])]:_0x3be786([0x45,0x43,0x44,0x53,0x41]),[_0x3be786([0x68,0x61,0x73,0x68])]:{[_0x3be786([0x6e,0x61,0x6d,0x65])]:_0x3be786([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5f2877,_0x5c8f77,_0x567be0)||(_0x165666=!0x1);}}function _0x41ab5c(_0x36573d){return _0x36573d[_0x3be786([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3be786([0x65,0x79]))?JSON[_0x3be786([0x70,0x61,0x72,0x73,0x65])](_0x2a9924(_0x36573d)):null;}function _0x2a9924(_0x3c735a){return window[_0x3be786([0x61,0x74,0x6f,0x62])](_0x3c735a[_0x3be786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3be786([0x2b]))[_0x3be786([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3be786([0x2f])));}function _0x11f52f(_0x4d6797){let _0x343955=0x1505;function _0x51b181(_0x46ecd5){for(let _0xbf589=0x0;_0xbf589<_0x46ecd5[_0x3be786([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbf589++){const _0x2924e0=_0x46ecd5[_0x3be786([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xbf589);_0x343955=(_0x343955<<0x5)+_0x343955+_0x2924e0,_0x343955&=_0x343955;}}function _0x724e6f(_0x2d4bd0){Array[_0x3be786([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d4bd0)?_0x2d4bd0[_0x3be786([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x724e6f):_0x2d4bd0&&typeof _0x2d4bd0==_0x3be786([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3be786([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d4bd0)[_0x3be786([0x73,0x6f,0x72,0x74])]()[_0x3be786([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x11a0ee,_0x486f88])=>{_0x51b181(_0x11a0ee),_0x724e6f(_0x486f88);}):_0x51b181(window[_0x3be786([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d4bd0));}return _0x724e6f(_0x4d6797),_0x343955>>>0x0;}function _0x8348f(_0x1dfbad){return _0x1dfbad[_0x3be786([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3be786([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3be786([0x30]));}function _0x3aa9a2(_0x21f0d3){return _0x21f0d3[_0x3be786([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3be786([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3be786([0x6a,0x6f,0x69,0x6e])]('');}function _0x28eb39(_0x17006b){return _0x5040be[_0x3be786([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3be786([0x68,0x61,0x73])](_0x17006b);}function _0x9657c8(_0x481a8c){return _0x5040be[_0x3be786([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3be786([0x67,0x65,0x74])](_0x481a8c);}function _0x4206b8(){}function _0x3be786(_0x321538){return _0x321538['map'](_0x30a943=>String['fromCharCode'](_0x30a943))['join']('');}_0xfa1bdd(await _0x5e65bd());}(this);}['createRevision'](_0x4e0553){const _0x2fceac=this['editor']['plugins']['get']('Users');return new a({'id':_0x4e0553['id'],'name':_0x4e0553['name'],'creator':_0x4e0553['creatorId']?_0x2fceac['getUser'](_0x4e0553['creatorId']):null,'diffData':_0x4e0553['diffData']||_0x4e0553['data'],'authors':_0x4e0553['authorsIds']['map'](_0x15c106=>_0x2fceac['getUser'](_0x15c106)),'createdAt':new Date(_0x4e0553['createdAt']),'attributes':_0x4e0553['attributes'],'fromVersion':_0x4e0553['fromVersion'],'toVersion':_0x4e0553['toVersion']});}['addRevision'](_0x475aa6,_0x218bce=0x0){this['_revisions']['add'](_0x475aa6,_0x218bce);}['getRevision'](_0x273880){return this['_revisions']['get'](_0x273880);}['getRevisions'](_0x25902f={'toJSON':!0x1}){const _0x542871=Array['from'](this['_revisions']);return _0x542871['reverse'](),_0x25902f['toJSON']?_0x542871['map'](_0x14a1e5=>_0x14a1e5['toJSON']()):_0x542871;}['getIndex'](_0x2ae39b){return this['_revisions']['getIndex'](_0x2ae39b);}['getEarlierVisibleRevision'](_0x1c27b4){const [,_0x355819]=this['getRevisionsIterator'](_0x1c27b4,{'direction':'earlier'});return _0x355819;}['getLaterVisibleRevision'](_0x1dd5a2){const [,_0x3799b5]=this['getRevisionsIterator'](_0x1dd5a2,{'direction':'later'});return _0x3799b5;}['getRevisionsInDiff'](_0xcaefc4){const _0x593a7a=[];for(const _0x1420b7 of this['getRevisionsIterator'](_0xcaefc4['newRevisionId']))if(_0x593a7a['push'](_0x1420b7),_0x1420b7['id']===_0xcaefc4['oldRevisionId'])break;return _0x593a7a;}*['getRevisionsIterator'](_0x5466af,{direction:_0x402d9f='earlier',filter:_0x1e8719=()=>!0x0}={}){const _0x1b0e1e='earlier'===_0x402d9f?0x1:-0x1;let _0x2e6069=this['_revisions']['get'](_0x5466af),_0x513306=this['getIndex'](_0x2e6069);for(yield _0x2e6069;_0x2e6069;){if(_0x513306+=_0x1b0e1e,_0x2e6069=this['getRevision'](_0x513306),!_0x2e6069)return;_0x1e8719(_0x2e6069)&&(yield _0x2e6069);}}}function m(_0x135e1d,_0x42ef42,_0x3b04fb){const t=_0x135e1d['t'];switch(_0x42ef42){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'},_0x3b04fb);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3b04fb);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':_0x12a9ad,'a':_0x276013,'e':_0x57a21f,'r':_0x347dc5,'u':_0x18c6ed};class l extends _0x46c671{['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[_0x5bda76,j,_0x581fb9];}constructor(_0x22bc6d){super(_0x22bc6d),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 _0x4fcf63=_0x1de225();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4fcf63},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 _0x2876aa=this['repository']['getRevision'](0x0),_0x1fed67=_0x2876aa&&null===_0x2876aa['creator']?_0x2876aa:null;if(this['_continueCurrentRevision']=!!_0x1fed67&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x3e55d5=this['_source']['getCurrentRevisionId'](),_0x14e5e4=this['repository']['getRevision'](_0x3e55d5);if(_0x14e5e4)this['_startingVersion']=_0x14e5e4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xa87728=this['_source']['history']['_operations']['find'](_0x3f37f6=>!_0x3f37f6['_isInit']),_0xb77008=_0xa87728?_0xa87728['baseVersion']:this['_source']['history']['version'];_0x2876aa?(_0x2876aa['toVersion']<_0xb77008&&_0x2876aa['_update']({'toVersion':_0xb77008}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1fed67['id'],this['_startingVersion']=_0x1fed67['fromVersion']):(this['_startingVersion']=_0x2876aa['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0xb77008,this['_continueCurrentRevision']=!0x1);}}else _0x1fed67&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1fed67['toVersion'],this['editor']['model']['document']['history']['version']),_0x1fed67['fromVersion']===_0x1fed67['toVersion']?(0x0!==_0x1fed67['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1fed67['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1fed67['id'],this['_startingVersion']=_0x1fed67['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',_0x41f624=>!_0x41f624),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb6ab15=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5016dd;for(const _0x111c0a in _0xb6ab15){const _0x395bdf=_0x111c0a,_0x49ba37=_0xb6ab15[_0x395bdf];if('revisionHistoryLicenseKeyValid'==_0x49ba37||'revisionHistoryLicenseKeyInvalid'==_0x49ba37||'revisionHistoryLicenseKeyExpired'==_0x49ba37||'revisionHistoryLicenseKeyDomainLimit'==_0x49ba37||'revisionHistoryLicenseKeyNotAllowed'==_0x49ba37||'revisionHistoryLicenseKeyEvaluationLimit'==_0x49ba37||'revisionHistoryLicenseKeyTrialLimit'==_0x49ba37||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x49ba37||'revisionHistoryLicenseKeyUsageLimit'==_0x49ba37){delete _0xb6ab15[_0x395bdf],_0x5016dd=_0x49ba37,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5016dd&&_0xb6ab15['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5016dd&&_0xb6ab15['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5016dd&&_0xb6ab15['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5016dd&&_0xb6ab15['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58cbe5=this['repository']['getRevision'](0x0),_0x2aede4=await this['getRevisionDocumentData'](_0x58cbe5),_0x27eb9b=await this['getRevisionRootsAttributes'](_0x58cbe5);this['_replaceEditorDataWithRevisionData'](_0x2aede4,_0x27eb9b);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3846b5){this['_source']=_0x3846b5;}async['update'](){const _0x125b76=await this['_source']['getLatestVersion']();if(_0x125b76>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5c77d1=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x125b76});_0x5c77d1['authors']=_0x5c77d1['authorsIds']['map'](_0x20fe79=>this['editor']['plugins']['get']('Users')['getUser'](_0x20fe79)),this['currentRevision']['_update'](_0x5c77d1);}}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'](_0x2c2aa6={},_0x5663d8=null){const _0x59488c=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5663d8>this['currentRevision']['toVersion']&&(_0x5663d8=null),null===_0x5663d8&&(_0x5663d8=await this['_source']['getLatestVersion']());const _0x6eea43=this['_getFromVersion'](_0x5663d8),_0x7b45ba=this['buildRevisionData']({'from':_0x6eea43,'to':_0x5663d8});if(this['currentRevision']['toVersion']<_0x5663d8){const _0x477611=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5663d8,'to':_0x5663d8});_0x477611['authors']=[],_0x477611['authorsIds']=[],_0x477611['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x477611,!0x0),delete _0x477611['authors'],_0x59488c['push'](_0x477611);}_0x2c2aa6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2c2aa6['name']=_0x2c2aa6['name']||null,_0x2c2aa6['id']=_0x2c2aa6['id']||_0x1de225(),_0x2c2aa6={..._0x2c2aa6,..._0x7b45ba};const _0x4e8356=this['addRevisionData'](_0x2c2aa6);_0x59488c['push'](_0x2c2aa6);const _0x28e9b7=this['repository']['getIndex'](_0x4e8356);if(0x0!==_0x28e9b7){const _0x2f2d75=this['repository']['getRevision'](_0x28e9b7-0x1);if(_0x2f2d75['fromVersion']!==_0x5663d8){const _0x2faa16=this['_revisionDataBuilder']['getData'](_0x5663d8,_0x2f2d75['toVersion']),_0x3904eb={'id':_0x2f2d75['id'],'diffData':_0x2faa16['diffData'],'authorsIds':_0x2faa16['authorsIds'],'authors':_0x2faa16['authorsIds']['map'](_0x4a4768=>this['editor']['plugins']['get']('Users')['getUser'](_0x4a4768)),'fromVersion':_0x5663d8};_0x2f2d75===this['currentRevision']&&(_0x3904eb['createdAt']=new Date(_0x2c2aa6['createdAt']['getTime']()+0xa)),_0x2f2d75['_update'](_0x3904eb,!0x0),delete _0x3904eb['authors'],_0x59488c['push'](_0x3904eb);}}if(this['adapter']){for(const _0x9c9315 of _0x59488c)this['_bufferUpdate'](_0x9c9315['id'],_0x9c9315,!0x0);this['sendBufferedUpdates']();}return _0x4e8356;}['addRevisionData'](_0x18df59){const _0x5eaa7f=this['repository']['createRevision'](_0x18df59);return this['adapter']&&_0x5eaa7f['on']('_update',(_0x5b54cc,_0x32336e,_0xdb3627)=>{_0xdb3627||(this['_bufferUpdate'](_0x32336e['id'],_0x32336e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5eaa7f,this['_findInsertionIndex'](_0x5eaa7f)),_0x5eaa7f;}async['getRevisionDocumentData'](_0x5953d0){await this['_loadRevisionData'](_0x5953d0);const _0x30f0b5={};for(const _0x572507 in _0x5953d0['diffData']){if(_0x5953d0['diffData'][_0x572507]['attachChange']&&!_0x5953d0['diffData'][_0x572507]['attachChange']['isAttached'])continue;const _0x49f2b3=this['_removeRevisionMarkers'](JSON['parse'](_0x5953d0['diffData'][_0x572507]['insertions'])),_0x52482d=this['editor']['editing']['view']['document'],_0x376ce9=new _0x2ec321(_0x52482d,_0x49f2b3['map'](_0xd1319f=>C(_0xd1319f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x30f0b5[_0x572507]=this['editor']['data']['processor']['toData'](_0x376ce9),this['editor']['data']['processor']['useFillerType']('default');}return _0x30f0b5;}async['getRevisionRootsAttributes'](_0x22783b){await this['_loadRevisionData'](_0x22783b);const _0x1b723b={};for(const _0x43f1bd in _0x22783b['diffData'])_0x22783b['diffData'][_0x43f1bd]['attachChange']&&!_0x22783b['diffData'][_0x43f1bd]['attachChange']['isAttached']||(_0x1b723b[_0x43f1bd]=_0x22783b['diffData'][_0x43f1bd]['attributesAfter']||{});return _0x1b723b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x20a784=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x252812=0x0;_0x252812<_0x20a784['length'];_0x252812++){const _0x12fa24=_0x20a784[_0x252812];let _0x16ba48=!0x1;for(const _0x59a77a of Object['keys'](_0x12fa24))void 0x0===_0x12fa24[_0x59a77a]?delete _0x12fa24[_0x59a77a]:'id'!==_0x59a77a&&(_0x16ba48=!0x0);_0x16ba48||(_0x20a784[_0x252812]=null);}if(_0x20a784=_0x20a784['filter'](_0x36392d=>null!==_0x36392d),!_0x20a784['length'])return;for(let _0x2dbcc9=0x0;_0x2dbcc9<_0x20a784['length'];_0x2dbcc9++){const _0x43e34b=_0x20a784[_0x2dbcc9];void 0x0!==_0x43e34b['fromVersion']&&void 0x0===_0x43e34b['toVersion']&&(_0x43e34b['toVersion']=this['repository']['getRevision'](_0x43e34b['id'])['toVersion']),void 0x0!==_0x43e34b['toVersion']&&void 0x0===_0x43e34b['fromVersion']&&(_0x43e34b['fromVersion']=this['repository']['getRevision'](_0x43e34b['id'])['fromVersion']);}const _0x362244=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x20a784,_0x362244)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1e1dde=>{if(_0x1e1dde){for(const _0x18e28a of _0x1e1dde)this['setRevisionData']({'id':_0x18e28a['id'],'createdAt':_0x18e28a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x45b982,_0x534cb5){let _0x29a750=this['editor']['config']['get']('initialData'),_0x5523c0=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x29a750){_0x29a750={};for(const _0x1b378f of this['editor']['model']['document']['getRootNames']())_0x29a750[_0x1b378f]='';}if('string'==typeof _0x29a750&&(_0x29a750={'main':_0x29a750}),void 0x0===_0x5523c0){_0x5523c0={};for(const _0x2a6017 of this['editor']['model']['document']['getRootNames']())_0x5523c0[_0x2a6017]={};}let _0x109c4f=!0x1;const _0x4fa122=Object['keys'](_0x29a750),_0x4d3e23=Object['keys'](_0x45b982);for(const _0x262328 of _0x4fa122){if(_0x29a750[_0x262328]!==_0x45b982[_0x262328]&&''!==_0x29a750[_0x262328]['trim']()){_0x109c4f=!0x0;break;}if(!_0x4852ea(_0x5523c0[_0x262328],_0x534cb5[_0x262328])&&Object['keys'](_0x5523c0[_0x262328])['length']>0x0){_0x109c4f=!0x0;break;}}_0x109c4f||(_0x109c4f=_0x4d3e23['some'](_0x5d37db=>!this['editor']['model']['document']['getRoot'](_0x5d37db))),_0x109c4f&&_0x31f83f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x29a750,'editorRootsAttributes':_0x5523c0,'revisionData':_0x45b982,'revisionRootsAttributes':_0x534cb5}),this['editor']['config']['set']('initialData',_0x45b982),this['editor']['config']['set']('rootsAttributes',_0x534cb5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x35aa2f=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x35aa2f['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1a58cf){const _0x596597=this['repository']['getRevisions']();_0x596597['reverse']();let _0x43ed11=0x0;for(;_0x43ed11<_0x596597['length'];){const _0xcb2a80=_0x596597[_0x43ed11];if(_0xcb2a80===this['currentRevision']){_0x43ed11++;continue;}if(_0xcb2a80['id']===this['_initialRevisionId'])break;const _0x3a1c87=_0x1a58cf['toVersion']-_0xcb2a80['toVersion']||_0x1a58cf['fromVersion']-_0xcb2a80['fromVersion'];if(_0x3a1c87>0x0)break;if(_0x3a1c87<0x0)_0x43ed11++;else{if(!_0x1a58cf['creator']&&_0xcb2a80['creator'])break;if(_0xcb2a80['creator']||!_0x1a58cf['creator']){if(_0x1a58cf['createdAt']>_0xcb2a80['createdAt'])break;_0x43ed11++;}else _0x43ed11++;}}return _0x43ed11;}['setRevisionData'](_0x2b3a5a){const _0x5c1588=this['repository']['getRevision'](_0x2b3a5a['id']);if(_0x2b3a5a['createdAt']&&(_0x2b3a5a['createdAt']=new Date(_0x2b3a5a['createdAt'])),_0x2b3a5a['authorsIds']){const _0x30301d=this['editor']['plugins']['get']('Users');_0x2b3a5a['authors']=_0x2b3a5a['authorsIds']['map'](_0x100996=>_0x30301d['getUser'](_0x100996));}_0x5c1588['_update'](_0x2b3a5a,!0x0);}['buildRevisionData']({revision:_0x44d614=null,from:_0x2bb88b=null,to:_0x3467bb=null}){_0x2bb88b=null!==_0x2bb88b?_0x2bb88b:_0x44d614['fromVersion'],_0x3467bb=null!==_0x3467bb?_0x3467bb:_0x44d614['toVersion'];const _0x389ace=this['_revisionDataBuilder']['getData'](_0x2bb88b,_0x3467bb),_0x5e377b={'diffData':_0x389ace['diffData'],'authorsIds':_0x389ace['authorsIds'],'fromVersion':_0x2bb88b,'toVersion':_0x3467bb};if(!_0x44d614||_0x3467bb!==_0x44d614['toVersion']){const _0x4b3d64=_0x3467bb-0x1,_0x4d6b11=this['_source']['history']['getOperation'](_0x4b3d64);_0x5e377b['createdAt']=_0x4d6b11&&_0x4d6b11['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2bb88b===this['_loadedStateData']['fromVersion']){for(const _0x38e120 of this['_loadedStateData']['authors'])_0x5e377b['authorsIds']['includes'](_0x38e120['id'])||_0x5e377b['authorsIds']['push'](_0x38e120['id']);}return _0x5e377b;}['_loadRevisionData'](_0x1653fb){if(!_0x1653fb||_0x1653fb['diffData'])return Promise['resolve']();{const _0xb5a7fb=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0xb5a7fb,'revisionId':_0x1653fb['id']})['then'](_0x112594=>{_0x1653fb['diffData']=_0x112594['diffData'];});}}['_bufferUpdate'](_0x3eb02d,_0x7160f1,_0x2a1473){if(this['_bufferedUpdates']['has'](_0x3eb02d)){const _0x58886f=this['_bufferedUpdates']['get'](_0x3eb02d);_0x7160f1=_0x2a1473?{..._0x58886f,..._0x7160f1}:{..._0x7160f1,..._0x58886f};}this['_bufferedUpdates']['set'](_0x3eb02d,_0x7160f1);}['_getFromVersion'](_0x43ea81){const _0x10ebc0=this['repository']['getRevisions']();_0x10ebc0['reverse'](),_0x10ebc0['shift']();const _0x6f0798=_0x10ebc0['find'](_0x41f180=>_0x41f180['toVersion']<=_0x43ea81)['toVersion'];return _0x6f0798<this['_startingVersion']?this['_startingVersion']:_0x6f0798;}['_createInitialRevision'](_0x124653){const _0x36181c=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x36181c)this['_initialRevisionId']=_0x36181c['id'];else{const _0x4470e1=!this['editor']['model']['document']['roots']['find'](_0x9f9460=>this['editor']['model']['hasContent'](_0x9f9460)),_0x43f6eb=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f08b1=m(this['editor']['locale'],_0x4470e1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x124653,'to':_0x124653,'id':this['_initialRevisionId'],'name':_0x1f08b1,'creatorId':_0x43f6eb});}}['_createCurrentRevision'](_0x575f3c){const _0x2d6d15=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2d6d15),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x575f3c,'to':_0x575f3c,'id':_0x2d6d15,'name':'','creatorId':null}));}['_makeRevision']({name:_0x156327,from:_0x57f0a8,to:_0x12b17,creatorId:_0x4f8df1,id:_0x40d15b}){const _0x4d7f41=this['buildRevisionData']({'from':_0x57f0a8,'to':_0x12b17});_0x4d7f41['name']=_0x156327,_0x4d7f41['creatorId']=_0x4f8df1,_0x4d7f41['id']=_0x40d15b;const _0x2edf5d=this['addRevisionData'](_0x4d7f41);return this['adapter']&&this['_bufferUpdate'](_0x4d7f41['id'],_0x4d7f41,!0x0),_0x2edf5d;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4358db){return(_0x4358db=_0x4358db['filter'](_0xb406c1=>!_0xb406c1['name']||'revision-start'!==_0xb406c1['name']&&'revision-end'!==_0xb406c1['name']))['forEach'](_0x5ea7a7=>{'string'!=typeof _0x5ea7a7&&(_0x5ea7a7['children']=this['_removeRevisionMarkers'](_0x5ea7a7['children']),_0x5ea7a7['attributes']=_0x5ea7a7['attributes']['filter'](_0x47f0b9=>!_0x47f0b9[0x0]['startsWith']('data-revision-')));}),_0x4358db;}}function C(_0x35df29,_0xd7cdcd){const _0x39a5bc=_0xd7cdcd['editing']['view']['document'];if('string'==typeof _0x35df29)return new _0x5aeb6e(_0x39a5bc,_0x35df29);{const _0x31451f=_0x35df29['children']['map'](_0x277ce5=>C(_0x277ce5,_0xd7cdcd));return new(P[_0x35df29['type']]||_0x3d1ce6)(_0x39a5bc,_0x35df29['name'],_0x35df29['attributes'],_0x31451f);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5619ce){this['editor']=_0x5619ce,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'](_0x1de85f){this['source']=_0x1de85f;const _0x5e4020=new Map(),_0x7b9679=new Map(),_0x56e6ff=this['editor']['model']['document']['roots']['map'](_0x34ed4f=>_0x34ed4f['rootName']);for(const _0x4be191 of _0x56e6ff){const _0x1f49a1=this['editor']['model']['document']['getRoot'](_0x4be191),_0x27d055=T(_0x1f49a1);_0x5e4020['set'](_0x4be191,_0x27d055),_0x7b9679['set'](_0x4be191,Object['fromEntries'](_0x1f49a1['getAttributes']()));}const _0x33b5b3=Array['from'](this['editor']['model']['markers'])['map'](_0x506448=>[_0x506448['name'],_0x506448['getRange']()]),_0xf9f5f=this['source']['version'];this['_saveMetaData'](_0xf9f5f,_0x5e4020,_0x33b5b3,_0x7b9679),this['_startingRevisionId']=this['_revisionId'];const _0xf9f06e=new Map(),_0x3f84b1=new Map();for(const _0x21d0d2 of _0x56e6ff){const _0x404fb4=F(_0x21d0d2);_0xf9f06e['set'](_0x21d0d2,_0x404fb4),_0x3f84b1['set'](_0x21d0d2,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xf9f06e,[],_0x3f84b1);}['getData'](_0x2b3002,_0x531160){if(this['_lastFrom']===_0x2b3002&&this['_lastTo']<=_0x531160)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x531160,!0x0);else{if(!this['_savedMetaData']['has'](_0x2b3002)){const _0x400c2d=this['_getPreviousFrom'](_0x2b3002);this['_calculateMetaData'](_0x400c2d,_0x2b3002,!0x1);}this['_calculateMetaData'](_0x2b3002,_0x531160,!0x0);}return this['_lastFrom']=_0x2b3002,this['_lastTo']=_0x531160,this['_getState']();}['loadState'](_0x359d24){this['_reset'](),this['_lastFrom']=_0x359d24['fromVersion'],this['_lastTo']=_0x359d24['toVersion'];for(const _0x3f58fd in _0x359d24['diffData']){const _0x1fb205=_0x359d24['diffData'][_0x3f58fd]['attachChange'],_0x36de89=_0x140c2b(_0x359d24['diffData'][_0x3f58fd]['attributesBefore'])||{},_0x54cb42=this['_makeModelFromViewString'](_0x359d24['diffData'][_0x3f58fd]['deletions']);_0x54cb42['rootName']=_0x3f58fd,_0x54cb42['_isAttached']=!_0x1fb205||!_0x1fb205['isAttached'],_0x54cb42['isAttached']=()=>_0x54cb42['_isAttached'],this['_baseRoots']['set'](_0x3f58fd,_0x54cb42),this['_baseRootsAttributes']['set'](_0x3f58fd,_0x36de89),_0x1fb205&&this['_touchedRoots']['set'](_0x3f58fd,_0x1fb205);const _0x1f7789=this['_makeIdsRoot'](_0x54cb42);this['_baseIdsRoots']['set'](_0x3f58fd,_0x1f7789);for(const [_0x582419,_0x33c222]of _0x54cb42['markers']){if(!_0x582419['startsWith']('revision:'))continue;const _0x296689=_0x582419['split'](':')[0x2];for(const _0x1415d5 of _0x33c222['getWalker']({'singleCharacters':!0x0})){const _0x319fd5=this['_getVidAttributeName'](_0x1415d5),_0x2fa254='elementEnd'==_0x1415d5['type']?_0x1415d5['previousPosition']['path']['slice'](0x0,-0x1):_0x1415d5['previousPosition']['path'],_0x49b958=_0x1f7789['getNodeByPath'](_0x2fa254)['getAttribute'](_0x319fd5);this['_touched']['set'](_0x49b958,{'userId':_0x296689});}}}this['_startingRevisionId']=this['_revisionId'];const _0x4d1c1c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4918e2=>!this['_touched']['has'](_0x4918e2));let _0x1b74e7=0x0;const _0x362b55=new Map();for(const _0x465c65 in _0x359d24['diffData']){const _0x1acdbd=_0x359d24['diffData'][_0x465c65]['attachChange'],_0x58d527=_0x140c2b(_0x359d24['diffData'][_0x465c65]['attributesAfter'])||{},_0x4453c4=this['_makeModelFromViewString'](_0x359d24['diffData'][_0x465c65]['insertions']);_0x4453c4['rootName']=_0x465c65,_0x4453c4['_isAttached']=!_0x1acdbd||_0x1acdbd['isAttached'],_0x4453c4['isAttached']=()=>_0x4453c4['_isAttached'],this['_diffRoots']['set'](_0x465c65,_0x4453c4),this['_diffRootsAttributes']['set'](_0x465c65,_0x58d527);const _0x2525ca=this['_makeIdsRoot'](_0x4453c4,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x465c65,_0x2525ca),_0x362b55['set'](_0x465c65,_0x4453c4['isAttached']()?_0x58d527:{});for(const [_0x272bf7,_0x4033ec]of _0x4453c4['markers']){if(!_0x272bf7['startsWith']('revision:'))continue;const _0x35c59e=_0x272bf7['split'](':')[0x2];for(const _0x2d18e8 of _0x4033ec['getWalker']({'singleCharacters':!0x0})){const _0xd89402=this['_getVidAttributeName'](_0x2d18e8),_0x3de7f7=this['_revisionId']++,_0x49c325='elementEnd'==_0x2d18e8['type']?_0x2d18e8['previousPosition']['path']['slice'](0x0,-0x1):_0x2d18e8['previousPosition']['path'];_0x2525ca['getNodeByPath'](_0x49c325)['_setAttribute'](_0xd89402,_0x3de7f7),this['_touched']['set'](_0x3de7f7,{'userId':_0x35c59e});}}for(const _0x5644e5 of this['editor']['model']['createRangeIn'](_0x4453c4)['getWalker']({'singleCharacters':!0x0})){const _0x594e1d=this['_getVidAttributeName'](_0x5644e5),_0x329136='elementEnd'==_0x5644e5['type']?_0x5644e5['previousPosition']['path']['slice'](0x0,-0x1):_0x5644e5['previousPosition']['path'],_0x458ffe=_0x2525ca['getNodeByPath'](_0x329136);_0x458ffe['getAttribute'](_0x594e1d)>0x0||_0x458ffe['_setAttribute'](_0x594e1d,_0x4d1c1c[_0x1b74e7++]);}for(const [_0x5a7a39,_0x4a5d3f]of _0x4453c4['markers'])_0x5a7a39['startsWith']('revision:')||this['_markers']['set'](_0x5a7a39,_0x4a5d3f);}const _0x195fcb=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x195fcb),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x195fcb,0x1));const _0xa2f97f=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0xa2f97f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xa2f97f,0x1));const _0x2ffaf5=Array['from'](this['_diffRoots'])['map'](([_0x69eaad,_0x5360cf])=>[_0x69eaad,T(_0x5360cf)]);this['_saveMetaData'](this['_lastTo'],_0x2ffaf5,this['_markers'],_0x362b55);}['_makeModelFromViewString'](_0x39b2ee){const _0x1895af=JSON['parse'](_0x39b2ee),_0x20a5ea=this['editor']['editing']['view']['document'],_0x56b431=new _0x2ec321(_0x20a5ea,_0x1895af['map'](_0xf3605e=>C(_0xf3605e,this['editor'])));return this['editor']['data']['toModel'](_0x56b431);}['_saveMetaData'](_0x137c33,_0x4b1af2,_0x35b242,_0x38c8c9){const _0x14dc5e=new Map(_0x4b1af2),_0x182de1=new Map(_0x140c2b(_0x38c8c9)),_0xa52e96=new Map();for(const [_0x284943,_0x5d8815]of _0x35b242)_0xa52e96['set'](_0x284943,{'start':_0x5d8815['start']['clone'](),'end':_0x5d8815['end']['clone'](),'rootName':_0x5d8815['root']['rootName']});this['_savedMetaData']['set'](_0x137c33,{'roots':_0x14dc5e,'markers':_0xa52e96,'rootsAttributes':_0x182de1});}['_removeMetaData'](_0x47abe4){this['_savedMetaData']['delete'](_0x47abe4);}['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'](_0x3370ef,_0x5ad7ba=null){let _0x89c6af=null;_0x3370ef['is']('documentFragment')||(_0x89c6af=new ft(_0x3370ef['name'],{'vid_start':null===_0x5ad7ba?this['_revisionId']++:_0x5ad7ba++}));const _0x3d4e5f=[];for(const _0x5efd55 of _0x3370ef['getChildren']())if(_0x5efd55['is']('element')){_0x3d4e5f['push'](this['_makeIdsRoot'](_0x5efd55,_0x5ad7ba));const _0x14764a=_0x3d4e5f[_0x3d4e5f['length']-0x1];null!==_0x5ad7ba&&(_0x5ad7ba=_0x14764a['is']('element','$text')?_0x14764a['getAttribute']('vid')+0x1:_0x14764a['getAttribute']('vid_end')+0x1);}else{for(let _0x44ed32=0x0;_0x44ed32<_0x5efd55['offsetSize'];_0x44ed32++)_0x3d4e5f['push'](new ft('$text',{'vid':null===_0x5ad7ba?this['_revisionId']++:_0x5ad7ba++}));}if(_0x3370ef['is']('documentFragment')){const _0x625193=F(_0x3370ef['rootName']);return _0x625193['_insertChild'](0x0,_0x3d4e5f),_0x625193;}return _0x89c6af['_setAttribute']('vid_end',null===_0x5ad7ba?this['_revisionId']++:_0x5ad7ba++),_0x89c6af['_insertChild'](0x0,_0x3d4e5f),_0x89c6af;}['_calculateMetaData'](_0x12c8e7,_0x28e806,_0x4de3c8){this['_reset']();const {roots:_0x54fa79,markers:_0x16fc64,rootsAttributes:_0x5a8361}=this['_savedMetaData']['get'](_0x12c8e7);this['_baseRoots']=new Map(_0x54fa79),this['_baseRootsAttributes']=new Map(_0x140c2b(_0x5a8361));for(const [_0x42295f,_0x3f6d12]of this['_baseRoots'])if('$graveyard'!==_0x42295f&&(this['_diffRoots']['set'](_0x42295f,T(_0x3f6d12)),this['_diffRootsAttributes']=new Map(_0x140c2b(_0x5a8361)),_0x4de3c8)){const _0x4bff56=this['_revisionId'];this['_idsRoots']['set'](_0x42295f,this['_makeIdsRoot'](_0x3f6d12)),this['_baseIdsRoots']['set'](_0x42295f,this['_makeIdsRoot'](_0x3f6d12,_0x4bff56));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x4de3c8&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2d95dd,_0x3e5c5f]of _0x16fc64){const _0x54bf7d=this['_baseRoots']['get'](_0x3e5c5f['rootName']),_0x2ed914=this['_diffRoots']['get'](_0x3e5c5f['rootName']),_0x1ed9d8=new vt(this['_fixPosition'](_0x3e5c5f['start'],_0x54bf7d),this['_fixPosition'](_0x3e5c5f['end'],_0x54bf7d)),_0x4ca005=this['_fixRange'](_0x1ed9d8,_0x2ed914);_0x54bf7d['markers']['set'](_0x2d95dd,_0x1ed9d8),this['_markers']['set'](_0x2d95dd,_0x4ca005);}this['_applyOperations'](_0x12c8e7,_0x28e806,_0x4de3c8);}['_applyOperations'](_0x401ed2,_0x34226b,_0x9fb69a){for(const _0x1c4b39 of this['source']['getOperations'](_0x401ed2,_0x34226b))this['_handleOperation'](_0x1c4b39,_0x9fb69a);for(const _0x26be12 of this['_diffRoots']['values']())_0x26be12['markers']['clear']();for(const [_0x52e021,_0x4972a8]of this['_markers']){this['_diffRoots']['get'](_0x4972a8['root']['rootName'])['markers']['set'](_0x52e021,_0x4972a8['clone']());}const _0x330071=new Map(),_0x5d2596=new Map();for(const [_0x444e7d,_0x4669c5]of this['_diffRoots'])_0x330071['set'](_0x444e7d,T(_0x4669c5)),_0x5d2596['set'](_0x444e7d,this['_diffRootsAttributes']['get'](_0x444e7d));this['_saveMetaData'](_0x34226b,_0x330071,this['_markers'],_0x5d2596);}['_getPreviousFrom'](_0x46ffec){const _0x22d3c7=Array['from'](this['_savedMetaData']['keys']());_0x22d3c7['sort']((_0x36a73a,_0x3b04b2)=>_0x36a73a-_0x3b04b2),_0x22d3c7['reverse']();for(const _0x14b09d of _0x22d3c7)if(_0x14b09d<_0x46ffec)return _0x14b09d;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x52c214,_0x2c3ce8){const _0x3073b9=Array['from'](_0x2c3ce8['markers'])['map'](([_0x28f38e,_0x1de39d])=>[_0x28f38e,this['_fixRange'](_0x1de39d,_0x52c214)]);_0x52c214['markers']=new Map(_0x3073b9);}['_transformMarkers'](_0x4b6047){for(const _0x5f4327 of this['_markers']['values']()){const _0x3bebc6=_0x5f4327['getTransformedByOperation'](_0x4b6047),_0x4e6724=vt['_createFromRanges'](_0x3bebc6);_0x5f4327['start']=_0x4e6724['start'],_0x5f4327['end']=_0x4e6724['end'];}}['_handleOperation'](_0x4373e7,_0x16f968){if('addRoot'!=_0x4373e7['type']&&'detachRoot'!=_0x4373e7['type']){if('insert'==_0x4373e7['type']){const _0x248e0b=_0x4373e7['position']['root']['rootName'];this['_diffRoots']['has'](_0x248e0b)||(this['_diffRoots']['set'](_0x248e0b,F(_0x248e0b,!0x0)),this['_diffRootsAttributes']['set'](_0x248e0b,{}),_0x16f968&&this['_idsRoots']['set'](_0x248e0b,F(_0x248e0b,!0x0)));}else{if('addRootAttribute'==_0x4373e7['type']||'removeRootAttribute'==_0x4373e7['type']||'changeRootAttribute'==_0x4373e7['type'])return void this['_handleRootAttributeOperation'](_0x4373e7);'marker'==_0x4373e7['type']&&this['_handleMarkerOperation'](_0x4373e7);}if('marker'!==_0x4373e7['type']){const _0x63a910=this['_cloneOperation'](_0x4373e7,this['_diffRoots']);_0x63a910['_execute'](),this['_transformMarkers'](_0x63a910);}if(_0x16f968)switch(_0x4373e7['type']){case'insert':this['_handleInsertOperation'](_0x4373e7);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4373e7);break;case'merge':this['_handleMergeOperation'](_0x4373e7);break;case'split':this['_handleSplitOperation'](_0x4373e7);}}else this['_handleRootOperation'](_0x4373e7,_0x16f968);}['_cloneOperation'](_0x4ff1ca,_0x25dfd2){const _0x439637=_0x4ff1ca['clone']();return _0x439637['_authorId']=_0x4ff1ca['_authorId'],this['_fixOperation'](_0x439637,_0x25dfd2),_0x439637;}['_getBaseVids'](_0x19d760){return _0x19d760['map'](_0x35cf1c=>{const _0x1fd577=this['_getVidAttributeName'](_0x35cf1c);return Number(_0x35cf1c['item']['getAttribute'](_0x1fd577));});}['_generateTape'](_0x5c907d,_0xea07d7){if(_0x5c907d['is']('element','$text'))_0xea07d7['push']({'item':_0x5c907d,'type':'text'});else{_0x5c907d['is']('element')&&_0xea07d7['push']({'item':_0x5c907d,'type':'elementStart'});for(const _0x46fef2 of _0x5c907d['getChildren']())this['_generateTape'](_0x46fef2,_0xea07d7);_0x5c907d['is']('element')&&_0xea07d7['push']({'item':_0x5c907d,'type':'elementEnd'});}return _0xea07d7;}['_getState'](){const _0x8a13d8=new Map(this['_touched']),_0x5dc5ee=new Map(_0x8a13d8),_0x25d694=new Map(),_0x26f7eb={'insertions':{},'deletions':{}},_0x42edb8={'insertions':{},'deletions':{}},_0x5e435a=new Map(),_0x58c34c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x58c34c['delete']('$graveyard');for(const _0x371af4 of _0x58c34c){const _0x3b8d4b=this['_diffRoots']['get'](_0x371af4)||F(_0x371af4,!0x1),_0x3e926c=this['_baseRoots']['get'](_0x371af4)||F(_0x371af4,!0x1);_0x3b8d4b['isAttached']()||_0x3e926c['isAttached']()?(_0x26f7eb['insertions'][_0x371af4]=T(_0x3b8d4b),_0x26f7eb['deletions'][_0x371af4]=T(_0x3e926c),this['_copyMarkers'](_0x26f7eb['deletions'][_0x371af4],_0x3e926c),this['_copyMarkers'](_0x26f7eb['insertions'][_0x371af4],_0x3b8d4b),_0x42edb8['insertions'][_0x371af4]=this['_generateTape'](this['_idsRoots']['get'](_0x371af4),[]),_0x42edb8['deletions'][_0x371af4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x371af4)||F(_0x371af4,!0x1),[])):_0x58c34c['delete'](_0x371af4);}for(const _0x3fe833 of _0x58c34c){const _0x24256c=_0x42edb8['insertions'][_0x3fe833];for(const _0x33e928 of _0x24256c){const _0x1fdf8c=this['_getVidAttributeName'](_0x33e928),_0x2103ca=_0x33e928['item']['getAttribute'](_0x1fdf8c);_0x5dc5ee['delete'](_0x2103ca),_0x2103ca>=this['_startingRevisionId']&&_0x25d694['set'](_0x2103ca,_0x8a13d8['get'](_0x2103ca));}}for(const _0x4383e7 of _0x58c34c){const _0x544570=_0x42edb8['insertions'][_0x4383e7],_0x5d4c73=this['_getBaseVids'](_0x42edb8['deletions'][_0x4383e7]);let _0xb90ac=0x0;for(const _0x5146ec of _0x544570){const _0x357265=this['_getVidAttributeName'](_0x5146ec),_0x95e683=_0x5146ec['item']['getAttribute'](_0x357265);if(!_0x25d694['has'](_0x95e683)&&!_0x5e435a['has'](_0x95e683)){if(_0x5dc5ee['has'](_0x95e683))_0xb90ac++;else{if(_0x95e683!=_0x5d4c73[_0xb90ac]){const _0x3f7606=_0x8a13d8['get'](_0x95e683)||_0x8a13d8['get'](_0x5d4c73[_0xb90ac]);for(;_0x95e683!=_0x5d4c73[_0xb90ac];)_0x5dc5ee['has'](_0x5d4c73[_0xb90ac])||(_0x5e435a['set'](_0x5d4c73[_0xb90ac],_0x3f7606),_0x8a13d8['set'](_0x5d4c73[_0xb90ac],_0x3f7606)),_0xb90ac++;}_0xb90ac++;}}}}for(const _0x11a9e6 of _0x58c34c){const _0x59616a=_0x42edb8['insertions'][_0x11a9e6];for(const _0x827a9d of _0x59616a){const _0x3af9c1=this['_getVidAttributeName'](_0x827a9d),_0x1c0bf2=_0x827a9d['item']['getAttribute'](_0x3af9c1);if(_0x5e435a['has'](_0x1c0bf2)){const _0x4a7536=_0x5e435a['get'](_0x1c0bf2);_0x5dc5ee['has'](_0x1c0bf2)||_0x5dc5ee['set'](_0x1c0bf2,{..._0x4a7536}),_0x25d694['set'](_0x1c0bf2,{..._0x4a7536});}}}for(const _0x1854cd of _0x5dc5ee['keys']())_0x1854cd>=this['_startingRevisionId']&&_0x5dc5ee['delete'](_0x1854cd);const _0x1e7b82=new Map();for(const _0x3705cb of _0x58c34c){let _0xb8893=_0x42edb8['insertions'][_0x3705cb];for(const _0x28e0bd of _0xb8893)if(_0x28e0bd['item']['is']('element','tableCell')){const _0x5c9cb3=this['_getVidAttributeName'](_0x28e0bd),_0x51d613=_0x28e0bd['item']['getAttribute'](_0x5c9cb3);if(_0x25d694['has'](_0x51d613)){const _0x7ac296=_0x28e0bd['item']['parent']['parent']['getAttribute']('vid_start'),_0x85af65=_0x1e7b82['get'](_0x7ac296)||new Set();_0x85af65['add'](_0x25d694['get'](_0x51d613)['userId']),_0x1e7b82['set'](_0x7ac296,_0x85af65);}}_0xb8893=_0x42edb8['deletions'][_0x3705cb];for(const _0x18928e of _0xb8893)if(_0x18928e['item']['is']('element','tableCell')){const _0x1d203a=this['_getVidAttributeName'](_0x18928e),_0x3d58a5=_0x18928e['item']['getAttribute'](_0x1d203a);if(_0x5dc5ee['has'](_0x3d58a5)){const _0x3a7ac6=_0x18928e['item']['parent']['parent']['getAttribute']('vid_start'),_0xeb9f35=_0x1e7b82['get'](_0x3a7ac6)||new Set();_0xeb9f35['add'](_0x5dc5ee['get'](_0x3d58a5)['userId']),_0x1e7b82['set'](_0x3a7ac6,_0xeb9f35);}}for(const _0x2219e2 of _0x1e7b82['keys']())(_0x25d694['has'](_0x2219e2)||_0x5dc5ee['has'](_0x2219e2))&&_0x1e7b82['delete'](_0x2219e2);}for(const _0x39de06 of _0x58c34c){const _0x146f7c=_0x42edb8['insertions'][_0x39de06];let _0x32bcf5=null,_0x984a6b=null;for(const _0x1ef536 of _0x146f7c){const _0xbd9214=this['_getVidAttributeName'](_0x1ef536),_0xeb555a=_0x1ef536['item']['getAttribute'](_0xbd9214),_0x36f21e=_0x1e7b82['get'](_0xeb555a);_0x36f21e&&'elementStart'==_0x1ef536['type']&&(_0x32bcf5=Array['from'](_0x36f21e)[0x0],_0x984a6b=_0x1ef536['item']['getAttribute']('vid_end')),_0x32bcf5&&(_0x5dc5ee['set'](_0xeb555a,{'userId':_0x32bcf5}),_0x25d694['set'](_0xeb555a,{'userId':_0x32bcf5})),_0xeb555a==_0x984a6b&&(_0x32bcf5=null,_0x984a6b=null);}}const _0x51e551={},_0x2996ce=new Set();for(const _0x1a3218 of _0x58c34c){const _0x11f558=_0x26f7eb['deletions'][_0x1a3218],_0x208232=_0x26f7eb['insertions'][_0x1a3218];for(const {userId:_0x5bcc7f}of this['_touchedMarkers']['values']())null!==_0x5bcc7f&&_0x2996ce['add'](_0x5bcc7f);for(const {userId:_0x33a503}of this['_touchedRoots']['values']())null!==_0x33a503&&_0x2996ce['add'](_0x33a503);this['_markChanges'](_0x208232,_0x42edb8['insertions'][_0x1a3218],_0x25d694,'insertion',_0x2996ce),this['_markChanges'](_0x11f558,_0x42edb8['deletions'][_0x1a3218],_0x5dc5ee,'deletion',_0x2996ce),_0x51e551[_0x1a3218]={'insertions':this['_prepareViewToSave'](_0x208232),'deletions':this['_prepareViewToSave'](_0x11f558),'attachChange':this['_touchedRoots']['get'](_0x1a3218)||null,'attributesBefore':_0x140c2b(this['_baseRootsAttributes']['get'](_0x1a3218))||{},'attributesAfter':_0x140c2b(this['_diffRootsAttributes']['get'](_0x1a3218))};}return{'diffData':_0x51e551,'authorsIds':Array['from'](_0x2996ce)};}['_processRootBeforeSave'](_0x5f3acd){for(const [,_0x294a03]of _0x5f3acd['markers']){const _0x542a9b=_0x294a03['start']['getAncestors']()['filter'](_0x2b4b81=>'tableCell'==_0x2b4b81['name']);for(const _0x1c5fba of _0x542a9b)0x1==_0x1c5fba['childCount']&&_0x1c5fba['getChild'](0x0)['is']('element','paragraph')&&_0x1c5fba['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x18f8ad){this['_processRootBeforeSave'](_0x18f8ad);const _0x531c34=this['editor']['data']['toView'](_0x18f8ad,{}),_0x27cd6a=Array['from'](_0x531c34['getChildren']())['map'](_0x1c7463=>this['_getViewJson'](_0x1c7463));return JSON['stringify'](_0x27cd6a);}['_getViewJson'](_0x3104b9){if(_0x3104b9['is']('$text'))return _0x3104b9['data'];{const _0x161957=_0x3104b9;return{'type':Object['keys'](P)['find'](_0x2ca0a5=>_0x3104b9 instanceof P[_0x2ca0a5]),'name':_0x161957['name'],'attributes':Array['from'](_0x161957['getAttributes']()),'children':Array['from'](_0x161957['getChildren']())['map'](_0x247541=>this['_getViewJson'](_0x247541))};}}['_markChanges'](_0x221e76,_0x1ee522,_0x56eba8,_0x50f4d9,_0x11cdbf){let _0x55f494=null,_0x3bb00b=null,_0x5f5b09=0x0;const _0x2337a6=this['editor']['model'];for(let _0x2ff33a=0x0;_0x2ff33a<_0x1ee522['length'];_0x2ff33a++){const _0x17043e=this['_getVidAttributeName'](_0x1ee522[_0x2ff33a]),_0x30a530=_0x1ee522[_0x2ff33a]['item']['getAttribute'](_0x17043e),_0x500a13=_0x56eba8['get'](_0x30a530),_0x2632b8=_0x2ff33a==_0x1ee522['length']-0x1;(!_0x55f494&&_0x500a13&&(_0x55f494=_0x500a13,_0x3bb00b=_0x1ee522[_0x2ff33a]),_0x55f494&&(!_0x500a13||_0x500a13['userId']!=_0x55f494['userId']))&&(_0x1e3420(_0x500a13,B(_0x3bb00b,_0x221e76,_0x2337a6),B(_0x1ee522[_0x2ff33a],_0x221e76,_0x2337a6)),_0x55f494=_0x500a13||null,_0x3bb00b=_0x500a13?_0x1ee522[_0x2ff33a]:null),_0x55f494&&_0x2632b8&&_0x1e3420(_0x500a13,B(_0x3bb00b,_0x221e76,_0x2337a6),J(_0x1ee522[_0x2ff33a],_0x221e76,_0x2337a6));}function _0x1e3420(_0x5d91aa,_0x5f382b,_0x37a717){const _0x4e9073=_0x55f494['userId'],_0x30feb8='revision:'+_0x50f4d9+':'+_0x4e9073+':'+_0x5f5b09++,_0x58eca2=_0x2337a6['createRange'](_0x5f382b,_0x37a717);_0x221e76['markers']['set'](_0x30feb8,_0x58eca2),null!==_0x4e9073&&_0x11cdbf['add'](_0x4e9073);}}['_getVidAttributeName'](_0x5d545b){switch(_0x5d545b['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x410631,_0x1fa166){_0x410631['baseVersion']=null;for(const _0x33f18e in _0x410631){const _0x59f334=_0x410631[_0x33f18e];if(_0x59f334 instanceof gt){const _0x461f7a=_0x1fa166['get'](_0x59f334['root']['rootName']);_0x410631[_0x33f18e]=this['_fixPosition'](_0x59f334,_0x461f7a);}if(_0x59f334 instanceof vt){const _0x320928=_0x1fa166['get'](_0x59f334['root']['rootName']);_0x410631[_0x33f18e]=this['_fixRange'](_0x59f334,_0x320928);}'root'===_0x33f18e&&(_0x410631['root']=_0x1fa166['get'](_0x410631['root']['rootName']));}}['_fixRange'](_0xe3a788,_0x388c1c){return this['editor']['model']['createRange'](this['_fixPosition'](_0xe3a788['start'],_0x388c1c),this['_fixPosition'](_0xe3a788['end'],_0x388c1c));}['_fixPosition'](_0x2c1e9b,_0x38f1fb){return this['editor']['model']['createPositionFromPath'](_0x38f1fb,_0x2c1e9b['path'],_0x2c1e9b['stickiness']);}['_handleInsertOperation'](_0xb93c3f){const _0x3b35f0=this['_idsRoots']['get'](_0xb93c3f['position']['root']['rootName']),_0x25cb8c=this['_fixPosition'](_0xb93c3f['position'],_0x3b35f0),_0x518a20=null===_0xb93c3f['_authorId']?null:_0xb93c3f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x59b438=_0x25cb8c['parent'],_0x28f054=this['_revisionId'],_0x1fbd44=[];for(const _0x4cf8e1 of _0xb93c3f['nodes'])if(_0x4cf8e1['is']('element'))_0x1fbd44['push'](this['_makeIdsRoot'](_0x4cf8e1));else{for(let _0x11d3d5=0x0;_0x11d3d5<_0x4cf8e1['offsetSize'];_0x11d3d5++)_0x1fbd44['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x397c04=this['_revisionId'];for(let _0x1bc1cc=_0x28f054;_0x1bc1cc<_0x397c04;_0x1bc1cc++)this['_touched']['set'](_0x1bc1cc,{'userId':_0x518a20});_0x59b438['_insertChild'](_0x25cb8c['offset'],_0x1fbd44);}['_handleMoveOperation'](_0x3e80d6){(_0x3e80d6=this['_cloneOperation'](_0x3e80d6,this['_idsRoots']))['_execute']();const _0x586f10=null===_0x3e80d6['_authorId']?null:_0x3e80d6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7032f0=_0x3e80d6['getMovedRangeStart'](),_0x217a10=_0x7032f0['parent'],_0x56c689=_0x7032f0['offset'];!function _0x3e590a(_0x5e8589,_0x24a11a,_0x434b32,_0x4e5fe2){for(let _0x5df863=_0x434b32;_0x5df863<_0x4e5fe2;_0x5df863++){const _0x28bfaa=_0x24a11a['getChild'](_0x5df863);_0x28bfaa['is']('element','$text')?_0x5e8589['set'](_0x28bfaa['getAttribute']('vid'),{'userId':_0x586f10}):(_0x5e8589['set'](_0x28bfaa['getAttribute']('vid_start'),{'userId':_0x586f10}),_0x3e590a(_0x5e8589,_0x28bfaa,0x0,_0x28bfaa['childCount']),_0x5e8589['set'](_0x28bfaa['getAttribute']('vid_end'),{'userId':_0x586f10}));}}(this['_touched'],_0x217a10,_0x56c689,_0x56c689+_0x3e80d6['howMany']);}['_handleMergeOperation'](_0x1c487f){const _0x4dc2c4=null===(_0x1c487f=this['_cloneOperation'](_0x1c487f,this['_idsRoots']))['_authorId']?null:_0x1c487f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x28f297=_0x1c487f['targetPosition']['parent'],_0x244076=_0x1c487f['sourcePosition']['parent'],_0x11d7cd=_0x28f297['getAttribute']('vid_end'),_0x200194=_0x244076['getAttribute']('vid_start');_0x28f297['_setAttribute']('vid_end',_0x244076['getAttribute']('vid_end')),_0x244076['_setAttribute']('vid_end',_0x11d7cd),this['_touched']['set'](_0x200194,{'userId':_0x4dc2c4}),this['_touched']['set'](_0x11d7cd,{'userId':_0x4dc2c4}),_0x1c487f['_execute']();}['_handleSplitOperation'](_0x549331){const _0xf4b364=null===(_0x549331=this['_cloneOperation'](_0x549331,this['_idsRoots']))['_authorId']?null:_0x549331['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x228986=_0x549331['graveyardPosition'],_0x3564d9=_0x549331['splitPosition']['parent'];_0x549331['_execute']();const _0xe2d7e7=_0x3564d9['getAttribute']('vid_end'),_0x527d59=_0x549331['insertionPosition']['nodeAfter'];if(_0x228986){const _0x8c981d=_0x527d59['getAttribute']('vid_end'),_0x3494ae=_0x3564d9['getAttribute']('vid_end');_0x3564d9['_setAttribute']('vid_end',_0x8c981d),_0x527d59['_setAttribute']('vid_end',_0x3494ae),this['_touched']['set'](_0x3564d9['getAttribute']('vid_end'),{'userId':_0xf4b364}),this['_touched']['set'](_0x527d59['getAttribute']('vid_start'),{'userId':_0xf4b364});}else{const _0xf4ab36=this['_revisionId']++,_0x352a09=this['_revisionId']++;_0x3564d9['_setAttribute']('vid_end',_0xf4ab36),_0x527d59['_setAttribute']('vid_start',_0x352a09),_0x527d59['_setAttribute']('vid_end',_0xe2d7e7),this['_touched']['set'](_0xf4ab36,{'userId':_0xf4b364}),this['_touched']['set'](_0x352a09,{'userId':_0xf4b364});}}['_handleMarkerOperation'](_0x79bd7a){if(!_0x79bd7a['affectsData'])return;const _0x4538b0=(_0x79bd7a=this['_cloneOperation'](_0x79bd7a,this['_diffRoots']))['oldRange']?_0x79bd7a['oldRange']['root']:null,_0x23a2e1=_0x79bd7a['newRange']?_0x79bd7a['newRange']['root']:null;_0x4538b0&&this['_markers']['delete'](_0x79bd7a['name']),_0x23a2e1&&this['_markers']['set'](_0x79bd7a['name'],_0x79bd7a['newRange']['clone']());const _0x54ae5d=null===_0x79bd7a['_authorId']?null:_0x79bd7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x181760=_0x79bd7a['name'];if(!this['_touchedMarkers']['has'](_0x181760))return void this['_touchedMarkers']['set'](_0x181760,{'range':_0x79bd7a['oldRange'],'userId':_0x54ae5d});const _0x310eed=this['_touchedMarkers']['get'](_0x181760),_0x1abce6=_0x310eed['range'],_0x35f02e=_0x79bd7a['newRange'];null==_0x1abce6&&null==_0x35f02e||_0x1abce6&&_0x35f02e&&_0x1abce6['isEqual'](_0x35f02e)?this['_touchedMarkers']['delete'](_0x79bd7a['name']):_0x310eed['userId']=_0x54ae5d;}['_handleRootOperation'](_0x358375,_0x4b2074){this['_diffRoots']['has'](_0x358375['rootName'])?this['_diffRoots']['get'](_0x358375['rootName'])['_isAttached']=_0x358375['isAdd']:(this['_diffRoots']['set'](_0x358375['rootName'],F(_0x358375['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x358375['rootName'],{}),_0x4b2074&&this['_idsRoots']['set'](_0x358375['rootName'],F(_0x358375['rootName'],!0x0)));const _0x3206ab=null===_0x358375['_authorId']?null:_0x358375['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x439d15=this['_touchedRoots']['get'](_0x358375['rootName']);_0x439d15&&_0x439d15['userId']===_0x3206ab?this['_touchedRoots']['delete'](_0x358375['rootName']):this['_touchedRoots']['set'](_0x358375['rootName'],{'userId':_0x3206ab,'isAttached':_0x358375['isAdd']});}['_handleRootAttributeOperation'](_0xb820da){const _0x49f83c=this['_diffRootsAttributes']['get'](_0xb820da['root']['rootName']);null===_0xb820da['newValue']?delete _0x49f83c[_0xb820da['key']]:_0x49f83c[_0xb820da['key']]=_0xb820da['newValue'];}}function T(_0x1dc741){const _0x2e23df=F(_0x1dc741['rootName'],_0x1dc741['isAttached']());for(const _0x67dc0a of _0x1dc741['getChildren']()){const _0x2efdeb=_0x67dc0a['_clone'](!0x0);_0x2e23df['_appendChild'](_0x2efdeb);}return _0x2e23df;}function F(_0x2af9d7,_0x58680a=!0x0){const _0x5ec03a=new mt();return _0x5ec03a['rootName']=_0x2af9d7,_0x5ec03a['_isAttached']=_0x58680a,_0x5ec03a['isAttached']=()=>_0x5ec03a['_isAttached'],_0x5ec03a;}function B(_0x42d160,_0x4789f1,_0xadd3c6){const _0x26c091='elementEnd'==_0x42d160['type']?_0xadd3c6['createPositionAt'](_0x42d160['item'],'end'):_0xadd3c6['createPositionBefore'](_0x42d160['item']);return _0xadd3c6['createPositionFromPath'](_0x4789f1,_0x26c091['path'],_0x26c091['stickiness']);}function J(_0x5b97f7,_0x3f5c65,_0x2dfd50){const _0x2024ae='elementStart'==_0x5b97f7['type']?_0x2dfd50['createPositionAt'](_0x5b97f7['item'],0x0):_0x2dfd50['createPositionAfter'](_0x5b97f7['item']);return _0x2dfd50['createPositionFromPath'](_0x3f5c65,_0x2024ae['path'],_0x2024ae['stickiness']);}class hs extends _0x3191d2{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5f15ed,_0x189f86){super(_0x5f15ed),this['focusTracker']=new _0x46dc44(),this['keystrokes']=new _0x3c8938(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x189f86),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'](),_0x2d472c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2f565c=_0x2953ed=>_0x2953ed['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f565c),this['keystrokes']['set']('arrowleft',_0x2f565c),this['keystrokes']['set']('arrowup',_0x2f565c),this['keystrokes']['set']('arrowdown',_0x2f565c);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2e5dcd){this['revisionNameInputView']['fieldView']['element']['value']=_0x2e5dcd['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x9cd2d4){const _0x1fb5e8=new nt(this['locale'],_0x101bc4),_0x533b89=_0x1fb5e8['fieldView'];_0x533b89['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x513cb1=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x9cd2d4&&(_0x513cb1+='\x20('+m(this['locale'],'optional')+')'),(_0x1fb5e8['label']=_0x513cb1,_0x533b89['on']('input',()=>{this['revisionNameInputValue']=_0x533b89['element']['value']['trim']();}),_0x1fb5e8);}}class u extends _0x46c671{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x56a76c=this['editor'],_0x146e9f=_0x56a76c['plugins']['get']('RevisionTracker');_0x56a76c['ui']['componentFactory']['add']('revisionHistory',_0x4837ee=>{const _0x2ca9f3=_0x4ce21a(_0x4837ee),_0x1cf04b=_0x2ca9f3['panelView']['children'],_0x3c8c26=new _0x4cd0b4(_0x4837ee),_0x4b4ed7=new _0x26a18a(_0x4837ee),_0x3d291a=new _0x5d5006(_0x4837ee),_0x9729d=new _0x26a18a(_0x4837ee),_0x15e6a9=new _0x5d5006(_0x4837ee);return _0x2ca9f3['bind']('isEnabled')['to'](_0x146e9f,'isReady',_0x146e9f,'isEnabled',_0x56a76c,'isReadOnly',(_0x451f5c,_0x23b889,_0xb704a0)=>_0x451f5c&&_0x23b889&&!_0xb704a0),_0x2ca9f3['buttonView']['set']({'icon':_0x36297c['history'],'label':m(_0x4837ee,'Revision\x20history'),'tooltip':!0x0}),_0x3d291a['set']({'label':m(_0x4837ee,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3d291a['bind']('isEnabled')['to'](_0x146e9f,'isReady',_0x146e9f,'isEnabled',_0x56a76c,'isReadOnly',(_0x34b87f,_0x5f2688,_0x26d63d)=>_0x34b87f&&_0x5f2688&&!_0x26d63d),_0x3d291a['on']('execute',()=>this['_showDialog']()),_0x15e6a9['set']({'label':m(_0x4837ee,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x15e6a9['bind']('isEnabled')['to'](_0x146e9f,'isReady',_0x56a76c,'isReadOnly',(_0x32da5a,_0x54be50)=>_0x32da5a&&!_0x54be50),_0x15e6a9['on']('execute',()=>{_0x56a76c['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x2ca9f3['isOpen']=!0x1,_0x56a76c['editing']['view']['focus']();}),_0x4b4ed7['children']['add'](_0x3d291a),_0x9729d['children']['add'](_0x15e6a9),_0x3c8c26['role']='menu',_0x3c8c26['items']['addMany']([_0x4b4ed7,_0x9729d]),_0x1cf04b['add'](_0x3c8c26),_0x2ca9f3;}),_0x56a76c['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x467213=this['editor'],_0x290107=_0x467213['locale'],_0x5438b1=new _0x37fedc(_0x290107),_0x1ddeba=new _0x1a6348(_0x290107);_0x5438b1['buttonView']['set']({'icon':_0x36297c['history'],'label':m(_0x290107,'Revision\x20history')});const _0x150032=new _0x48e1ba(_0x290107,_0x5438b1),_0x393284=new _0x4b263a(_0x290107);_0x393284['set']({'label':m(_0x290107,'Save\x20current\x20revision')}),_0x393284['delegate']('execute')['to'](_0x5438b1),_0x393284['on']('execute',()=>{this['_showDialog']();}),_0x150032['children']['add'](_0x393284),_0x1ddeba['items']['add'](_0x150032);const _0x215405=new _0x48e1ba(_0x290107,_0x5438b1),_0x48f297=new _0x4b263a(_0x290107);return _0x48f297['set']({'label':m(_0x290107,'Open\x20revision\x20history')}),_0x48f297['delegate']('execute')['to'](_0x5438b1),_0x48f297['on']('execute',()=>{_0x467213['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x215405['children']['add'](_0x48f297),_0x1ddeba['items']['add'](_0x215405),_0x5438b1['panelView']['children']['add'](_0x1ddeba),_0x5438b1;}['_showDialog'](){const _0x59cc8f=this['editor'],_0x25c5ef=_0x59cc8f['locale'],_0x25eb80=_0x59cc8f['plugins']['get']('Dialog'),_0x9366dd=_0x59cc8f['plugins']['get']('RevisionTracker');function _0x4ba6bb(_0x7399a1){_0x59cc8f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x7399a1['revisionName']?_0x7399a1['revisionNameInputView']['errorText']=m(_0x25c5ef,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x59cc8f['plugins']['get'](l)['saveRevision']({'name':_0x7399a1['revisionName']}),_0x25eb80['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4ba6bb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x25eb80['show']({'id':'revisionSave','title':m(_0x25c5ef,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x59cc8f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x25eb80['hide']()},{'label':m(_0x59cc8f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x49de91){_0x49de91['bind']('isEnabled')['to'](_0x9366dd,'isReady',_0x9366dd,'isEnabled',_0x59cc8f,'isReadOnly',(_0x3afe7c,_0x23f738,_0x15e7a2)=>_0x3afe7c&&_0x23f738&&!_0x15e7a2);},'onExecute':()=>_0x4ba6bb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x25c3ce=this['editor'],_0x1adbf3=_0x25c3ce['locale'];this['_saveRevisionFormView']=new hs(_0x1adbf3,_0x25c3ce['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x3191d2{['changeId'];['_model'];constructor(_0x32ae23,_0x18be4d){super(_0x32ae23),this['_model']=_0x18be4d,this['changeId']=_0x18be4d['id'];const _0x16fa0a=this['bindTemplate'],_0x1b5d4a=m(_0x32ae23,_0x18be4d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x18be4d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x18be4d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x16fa0a['to']('type',_0x44cc97=>'ck-revision-change__'+_0x44cc97)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x1b5d4a}]},{'text':'\x20'+_0x18be4d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x153256(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa6bf21){super(),this['id']=_0xa6bf21['id']||_0x1de225(),this['author']=_0xa6bf21['author'],this['type']=_0xa6bf21['type'],this['data']=_0xa6bf21['data']||{},this['rootName']=_0xa6bf21['rootName'],this['set']('createdAt',_0xa6bf21['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(_0x1475b9,_0xcf70b5){this['newRevisionId']=_0x1475b9,this['oldRevisionId']=_0xcf70b5,this['changes']=new _0x369930();}['_setChanges'](_0x5e0d6f){for(const _0x48775c of _0x5e0d6f)this['changes']['add'](_0x48775c);}}const Y={'c':_0x12a9ad,'a':_0x276013,'e':_0x57a21f,'r':_0x347dc5,'u':_0x18c6ed};class d extends _0x46c671{['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[_0x5bda76,_0xeb8c9,j];}constructor(_0x17d952){super(_0x17d952),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',(_0x28faea,_0x48bf6c,_0x25dd2f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x15c57c=>{for(const _0xf9e687 of this['editor']['editing']['view']['document']['roots'])_0x25dd2f?_0x15c57c['removeClass']('ck-editor__editable__overlay',_0xf9e687):_0x15c57c['addClass']('ck-editor__editable__overlay',_0xf9e687);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb3a8d7=>null!==_0xb3a8d7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xbaab43,_0x29771b,_0x4fb419)=>_0xbaab43&&_0x4fb419?_0x29771b['changes']['getIndex'](_0x4fb419):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x412af1,_0xcf65a6)=>_0x412af1?_0xcf65a6['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xeb8c9);}['init'](){const _0x2feae7=this['editor'],_0x297ba0=new yt(_0x2feae7,{'direction':'backward'}),_0x3ab455=new yt(_0x2feae7,{'direction':'forward'});(_0x2feae7['commands']['add']('showPreviousChange',_0x297ba0),_0x2feae7['commands']['add']('showNextChange',_0x3ab455),_0x2feae7['commands']['add']('restoreRevision',new _t(_0x2feae7)),this['on']('change:numberOfChanges',()=>{_0x297ba0['refresh'](),_0x3ab455['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2feae7['enableReadOnlyMode']('revision-viewer'),_0x2feae7['plugins']['has']('WidgetToolbarRepository'))&&_0x2feae7['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x5bf442){await this['loadRevisionData'](_0x5bf442);const _0x178058={};for(const _0x379a23 in _0x5bf442['diffData']){if(_0x5bf442['diffData'][_0x379a23]['attachChange']&&!_0x5bf442['diffData'][_0x379a23]['attachChange']['isAttached'])continue;const _0x3aac28=this['_removeRevisionMarkers'](JSON['parse'](_0x5bf442['diffData'][_0x379a23]['insertions'])),_0x243a37=this['editor']['editing']['view']['document'],_0x216de3=new _0x2ec321(_0x243a37,_0x3aac28['map'](_0x4ba480=>this['_getViewObj'](_0x4ba480)));this['editor']['data']['processor']['useFillerType']('marked'),_0x178058[_0x379a23]=this['editor']['data']['processor']['toData'](_0x216de3),this['editor']['data']['processor']['useFillerType']('default');}return _0x178058;}async['getRevisionRootsAttributes'](_0x5b8541){await this['loadRevisionData'](_0x5b8541);const _0xf3f6cd={};for(const _0x134b8e in _0x5b8541['diffData'])_0x5b8541['diffData'][_0x134b8e]['attachChange']&&!_0x5b8541['diffData'][_0x134b8e]['attachChange']['isAttached']||(_0xf3f6cd[_0x134b8e]=_0x5b8541['diffData'][_0x134b8e]['attributesAfter']||{});return _0xf3f6cd;}['_removeRevisionMarkers'](_0x48b6f4){return(_0x48b6f4=_0x48b6f4['filter'](_0x1ad2b1=>!_0x1ad2b1['name']||'revision-start'!==_0x1ad2b1['name']&&'revision-end'!==_0x1ad2b1['name']))['forEach'](_0x329802=>{'string'!=typeof _0x329802&&(_0x329802['children']=this['_removeRevisionMarkers'](_0x329802['children']),_0x329802['attributes']=_0x329802['attributes']['filter'](_0x24812e=>!_0x24812e[0x0]['startsWith']('data-revision-')));}),_0x48b6f4;}async['compare'](_0x5ee815,_0x38afd9,_0x45a5a9=!0x1){if(!this['isEnabled'])return;const _0x430798=this['diff'],_0x157032=this['repository'],_0x3cfa21='string'==typeof _0x5ee815?_0x157032['getRevision'](_0x5ee815):_0x5ee815,_0x24d7a4='string'==typeof _0x38afd9?_0x157032['getRevision'](_0x38afd9):_0x38afd9,_0x393d4a=_0x3cfa21['id'],_0xbbc12=_0x24d7a4?_0x24d7a4['id']:null;if(!_0x45a5a9&&this['diff']&&this['diff']['newRevisionId']===_0x393d4a&&this['diff']['oldRevisionId']===_0xbbc12)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x393d4a,_0xbbc12);const _0xfd4eee=this['_getRevisionsRange'](_0x3cfa21,_0x24d7a4,!0x0)['map'](_0x36a22b=>this['loadRevisionData'](_0x36a22b));return _0xfd4eee['push'](new Promise(_0xf0176e=>{setTimeout(_0xf0176e,0x14);})),Promise['all'](_0xfd4eee)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x20b1cf=this['_getDiff'](_0x393d4a,_0xbbc12);for(const _0x3a84a5 of _0x20b1cf['changes'])this['_changeIdToChange']['set'](_0x3a84a5['id'],_0x3a84a5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x4b8354=>{for(const _0x1b618a of this['editor']['model']['document']['getRootNames']())_0x4b8354['detachRoot'](_0x1b618a);for(const _0x375577 of Object['keys'](_0x20b1cf['model'])){const _0x2e831=_0x4b8354['addRoot'](_0x375577);for(const _0x120aa2 of Object['keys'](_0x20b1cf['attributes'][_0x375577]))_0x4b8354['setAttribute'](_0x120aa2,_0x20b1cf['attributes'][_0x375577][_0x120aa2],_0x2e831);_0x4b8354['insert'](_0x20b1cf['model'][_0x375577],_0x2e831,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x20b1cf['changes'])),this['isReady']=!0x0;})['catch'](_0x14b935=>{console['error'](_0x14b935),this['_cleanUp'](),_0x430798&&(this['diff']=_0x430798),this['isReady']=!0x0;});}['addRevisionData'](_0x535357,_0x25f07e){const _0x2c60f7=this['repository']['createRevision'](_0x535357);return _0x2c60f7['on']('_update',(_0x497ab7,_0x5a5bfc,_0x314058)=>_0x25f07e(_0x5a5bfc,_0x314058,_0x2c60f7)),this['repository']['addRevision'](_0x2c60f7),_0x2c60f7;}['loadRevisionData'](_0x2344c9){if(!_0x2344c9||_0x2344c9['diffData'])return Promise['resolve']();{const _0x575d4a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x575d4a,'revisionId':_0x2344c9['id']})['then'](_0x4d7871=>{_0x2344c9['_update']({'diffData':_0x4d7871['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},_0xf4f19b=>{for(const _0x550c30 of this['editor']['model']['document']['getRootNames']())_0xf4f19b['detachRoot'](_0x550c30);});}['_sortAndFilterDiffChanges'](_0x539b31){const _0x272081=[],_0x5cea1c=new Map();for(const _0x4093d6 of this['editor']['model']['document']['getRootNames']()){const _0x38436b=this['editor']['editing']['view']['getDomRoot'](_0x4093d6);if(!_0x38436b)continue;const _0x3cc92b=_0x38436b['getClientRects']()['item'](0x0);_0x3cc92b&&(_0x272081['push'](_0x4093d6),_0x5cea1c['set'](_0x4093d6,_0x3cc92b));}return _0x272081['sort']((_0x299c29,_0x5b9885)=>{const _0x264abe=_0x5cea1c['get'](_0x299c29),_0x4e603f=_0x5cea1c['get'](_0x5b9885);return _0x264abe['y']-_0x4e603f['y']||_0x264abe['x']-_0x4e603f['x'];}),(_0x539b31=_0x539b31['filter'](_0x2eeabb=>_0x272081['includes'](_0x2eeabb['rootName'])))['sort']((_0x9f99c5,_0x4fc770)=>_0x272081['indexOf'](_0x9f99c5['rootName'])-_0x272081['indexOf'](_0x4fc770['rootName'])),_0x539b31;}['_makeTape'](_0x2937dd){const _0x4fd978=Array['from'](_0x2937dd['markers'])['filter'](([_0x16acc6,_0x5ccfc8])=>_0x16acc6['startsWith']('revision:')&&!_0x5ccfc8['isCollapsed']),_0x1dd6df=Array['from'](this['editor']['model']['createRangeIn'](_0x2937dd)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4fd978['length'])for(const _0x157a41 of _0x1dd6df){const [_0x2c0ff1,_0x4cc0af]=_0x4fd978[0x0],[,_0x4f3178,_0x58f180]=_0x2c0ff1['split'](':');if(_0x4cc0af['end']['isEqual'](_0x157a41['nextPosition'])&&_0x4fd978['shift'](),(_0x157a41['previousPosition']['isEqual'](_0x4cc0af['start'])||_0x157a41['previousPosition']['isAfter'](_0x4cc0af['start']))&&('insertion'==_0x4f3178?_0x157a41['isAdded']={'userId':_0x58f180}:'deletion'==_0x4f3178&&(_0x157a41['isRemoved']={'userId':_0x58f180})),0x0==_0x4fd978['length'])break;}return _0x1dd6df;}['_refreshStartEndIndex'](_0x223b05){const _0x347770=new Map();for(let _0x5dca5c=0x0;_0x5dca5c<_0x223b05['length'];_0x5dca5c++)'text'===_0x223b05[_0x5dca5c]['type']?(_0x223b05[_0x5dca5c]['item']['startIndex']=_0x5dca5c,_0x223b05[_0x5dca5c]['item']['endIndex']=_0x5dca5c):('elementStart'===_0x223b05[_0x5dca5c]['type']?_0x223b05[_0x5dca5c]['item']['startIndex']=_0x5dca5c:'elementEnd'===_0x223b05[_0x5dca5c]['type']&&(_0x223b05[_0x5dca5c]['item']['endIndex']=_0x5dca5c),_0x347770['set'](_0x223b05[_0x5dca5c]['id'],_0x5dca5c));for(const _0x45aef7 of _0x347770['values']())'elementStart'===_0x223b05[_0x45aef7]['type']?_0x223b05[_0x45aef7]['item']['endIndex']=_0x347770['get'](_0x223b05[_0x45aef7]['pairId']):'elementEnd'===_0x223b05[_0x45aef7]['type']&&(_0x223b05[_0x45aef7]['item']['startIndex']=_0x347770['get'](_0x223b05[_0x45aef7]['pairId']));}['_processTape'](_0x57f2a2){for(let _0x40257e=0x0;_0x40257e<_0x57f2a2['length'];_0x40257e++){if('elementStart'===_0x57f2a2[_0x40257e]['type'])_0x57f2a2[_0x40257e]['item']['startIndex']=_0x40257e;else{if('elementEnd'===_0x57f2a2[_0x40257e]['type']){_0x57f2a2[_0x40257e]['item']['endIndex']=_0x40257e;const _0x29dc7b=_0x57f2a2[_0x40257e]['item']['startIndex'];_0x57f2a2[_0x29dc7b]['pairId']=_0x57f2a2[_0x40257e]['id'],_0x57f2a2[_0x40257e]['pairId']=_0x57f2a2[_0x29dc7b]['id'];}else _0x57f2a2[_0x40257e]['item']['startIndex']=_0x40257e,_0x57f2a2[_0x40257e]['item']['endIndex']=_0x40257e,_0x57f2a2[_0x40257e]['pairId']=null;}_0x57f2a2[_0x40257e]['markersStart']||(_0x57f2a2[_0x40257e]['markersStart']=[],_0x57f2a2[_0x40257e]['markersEnd']=[]);}}['_markInsertions'](_0xa848a6,_0x25a55a){const _0x27c7c4=_0xa848a6['filter'](_0x56296b=>!_0x56296b['isAdded']);for(let _0x3a420b=0x0;_0x3a420b<_0x25a55a['length'];_0x3a420b++)_0x25a55a[_0x3a420b]['isAdded']&&(_0x27c7c4[_0x3a420b]['isAdded']=_0x25a55a[_0x3a420b]['isAdded']);}['_makeModelFromViewString'](_0x5a7b9a){const _0x305088=JSON['parse'](_0x5a7b9a),_0x5f2324=this['editor']['editing']['view']['document'],_0x52f223=new _0x2ec321(_0x5f2324,_0x305088['map'](_0xf9281b=>this['_getViewObj'](_0xf9281b)));return this['editor']['data']['toModel'](_0x52f223);}['_getViewObj'](_0x334fd6){const _0x5985cb=this['editor']['editing']['view']['document'];if('string'==typeof _0x334fd6)return new _0x5aeb6e(_0x5985cb,_0x334fd6);{const _0x5d9f8d=_0x334fd6['children']['map'](_0x4ed47d=>this['_getViewObj'](_0x4ed47d));return new(Y[_0x334fd6['type']]||_0x3d1ce6)(_0x5985cb,_0x334fd6['name'],_0x334fd6['attributes'],_0x5d9f8d);}}['_getDiff'](_0x203a0c,_0x552bbe=null){const _0x26ac77=this['repository']['getRevision'](_0x203a0c),_0x137c2b=_0x552bbe?this['repository']['getRevision'](_0x552bbe):null,_0x3c7f2e=this['_getRevisionsRange'](_0x26ac77,_0x137c2b),_0x2714c2=_0x3c7f2e[_0x3c7f2e['length']-0x1],_0x4da8e8=new Map(),_0x3f9168={'model':{},'attributes':{},'changes':[]},_0x68d973=new Set(),_0x5c4d5c=new Map();for(let _0x1b458f=_0x3c7f2e['length']-0x1;_0x1b458f>=0x0;_0x1b458f--){const _0x572959=_0x3c7f2e[_0x1b458f];for(const _0x1ceb6f of Object['keys'](_0x572959['diffData']))if(_0x572959['diffData'][_0x1ceb6f]['attachChange']){const _0x872a11=_0x572959['diffData'][_0x1ceb6f]['attachChange'];_0x872a11['isAttached']?(_0x68d973['add'](_0x1ceb6f),_0x5c4d5c['has'](_0x1ceb6f)&&_0x5c4d5c['get'](_0x1ceb6f)['userId']==_0x872a11['userId']?_0x5c4d5c['delete'](_0x1ceb6f):_0x5c4d5c['set'](_0x1ceb6f,_0x872a11)):_0x5c4d5c['has'](_0x1ceb6f)?(_0x68d973['delete'](_0x1ceb6f),_0x5c4d5c['delete'](_0x1ceb6f)):(_0x68d973['add'](_0x1ceb6f),_0x5c4d5c['set'](_0x1ceb6f,_0x872a11));}else _0x68d973['add'](_0x1ceb6f);}for(const _0x48f7e3 of _0x68d973){const _0x65919f=_0x5c4d5c['has'](_0x48f7e3)&&!_0x5c4d5c['get'](_0x48f7e3)['isAttached'];let _0x3ece8f=_0x65919f?_0x3c7f2e['length']-0x1:0x0;const _0x4e80d2=_0x65919f?-0x1:0x1;for(;_0x3c7f2e[_0x3ece8f];){const _0xdd7fd6=_0x3c7f2e[_0x3ece8f];if(_0xdd7fd6['diffData'][_0x48f7e3]){const _0x48cd71=_0x65919f?_0xdd7fd6['diffData'][_0x48f7e3]['attributesBefore']:_0xdd7fd6['diffData'][_0x48f7e3]['attributesAfter'];_0x3f9168['attributes'][_0x48f7e3]=_0x48cd71?_0x140c2b(_0x48cd71):{};break;}_0x3ece8f+=_0x4e80d2;}}for(const _0x20d1d9 of _0x3c7f2e){_0x20d1d9['model']={};for(const _0x551b96 of _0x20d1d9['authors'])_0x4da8e8['set'](_0x551b96['id'],_0x551b96);for(const _0x482d3c of _0x68d973){const _0xdc5829=_0x20d1d9['diffData'][_0x482d3c]?_0x20d1d9['diffData'][_0x482d3c]['insertions']:'[]',_0x543107=_0x20d1d9['diffData'][_0x482d3c]?_0x20d1d9['diffData'][_0x482d3c]['deletions']:'[]';_0x20d1d9['model'][_0x482d3c]={'insertions':this['_makeModelFromViewString'](_0xdc5829),'deletions':this['_makeModelFromViewString'](_0x543107)};}}for(const _0x37c20f of _0x68d973){let _0x5ee111=null,_0x3f93b0=0x0;const _0x465ece=new Map(Array['from'](_0x26ac77['model'][_0x37c20f]['insertions']['markers'])['filter'](([_0x40e3ca])=>!_0x40e3ca['startsWith']('revision:')));let _0x41eb8a=0x0;for(const _0x4a8a08 of _0x3c7f2e){const _0x244f6e=this['_makeTape'](_0x4a8a08['model'][_0x37c20f]['insertions']);_0x4a8a08==_0x26ac77?(_0x5ee111=_0x244f6e,_0x3f93b0=_0x5ee111['length'],_0x5ee111['forEach'](_0x395684=>{_0x395684['id']=_0x41eb8a++;}),this['_processTape'](_0x5ee111)):this['_markInsertions'](_0x5ee111,_0x244f6e);const _0x1a2dcc=_0x5ee111['filter'](_0x38b6fe=>!_0x38b6fe['isAdded'])['map'](_0x3419c8=>_0x3419c8['id']);let _0x2e41c2=0x0;const _0x52c96a=this['_makeTape'](_0x4a8a08['model'][_0x37c20f]['deletions']);_0x52c96a['forEach'](_0x3d2e80=>{_0x3d2e80['isRemoved']?_0x3d2e80['id']=_0x3f93b0++:_0x3d2e80['id']=_0x1a2dcc[_0x2e41c2++];}),this['_processTape'](_0x52c96a),this['_setDistance'](_0x5ee111,'isAdded'),this['_setDistance'](_0x52c96a,'isRemoved'),_0x4a8a08==_0x26ac77&&this['_markMarkers'](_0x5ee111,_0x465ece),_0x5ee111=this['_joinTapes'](_0x5ee111,_0x52c96a),this['_refreshStartEndIndex'](_0x5ee111),this['_setDistance'](_0x5ee111,'isRemoved');}_0x5ee111=_0x5ee111['filter'](_0x18a60f=>!(_0x18a60f['isAdded']&&_0x18a60f['isRemoved']));const _0x7360f7=new Map(_0x2714c2['model'][_0x37c20f]['deletions']['markers']),_0x23322b=new Set(_0x465ece['keys']());for(const _0x4a7ebf of _0x7360f7['keys']())_0x23322b['delete'](_0x4a7ebf);this['_markSuggestions'](_0x5ee111,_0x23322b),this['_fixObsoleteTags'](_0x5ee111),_0x5ee111=this['_removeMissingPairs'](_0x5ee111),_0x5ee111=this['_markMismatchedRemovedTags'](_0x5ee111),_0x5ee111=this['_removeUnsupportedChanges'](_0x5ee111);const {root:_0x436a8c,changes:_0x44aeec}=this['_makeModelFromTape'](_0x5ee111,_0x4da8e8,_0x37c20f);_0x3f9168['model'][_0x37c20f]=_0x436a8c;const _0x5b61b1=_0x5c4d5c['get'](_0x37c20f);if(_0x5b61b1){const _0x534083=_0x4da8e8['get'](_0x5b61b1['userId']),_0x156c03=new r({'author':_0x534083,'type':_0x5b61b1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37c20f});_0x44aeec['unshift'](_0x156c03),_0x3f9168['attributes'][_0x37c20f]['revisionHistoryAttachChange']=_0x156c03['id'];}_0x3f9168['changes']=_0x3f9168['changes']['concat'](_0x44aeec);}return _0x3f9168;}['_markMarkers'](_0x21dc89,_0x35eebe){for(let _0x5e6d23=0x0;_0x5e6d23<_0x21dc89['length'];_0x5e6d23++)for(const [_0x95df64,_0x5aaa07]of _0x35eebe)_0x5aaa07['start']['isEqual'](_0x21dc89[_0x5e6d23]['previousPosition'])&&_0x21dc89[_0x5e6d23]['markersStart']['push'](_0x95df64),_0x5aaa07['end']['isEqual'](_0x21dc89[_0x5e6d23]['nextPosition'])&&_0x21dc89[_0x5e6d23]['markersEnd']['push'](_0x95df64);}['_joinTapes'](_0x1b3b32,_0x4e72c9){let _0xd37d4a=[],_0x67fca8=0x0,_0x8d7ccb=0x0;for(;_0x67fca8<_0x1b3b32['length']||_0x8d7ccb<_0x4e72c9['length'];){const _0x1c0f65=_0x1b3b32[_0x67fca8]||{},_0x32fd09=_0x4e72c9[_0x8d7ccb]||{};if(_0x1c0f65['id']==_0x32fd09['id'])_0x67fca8++,_0x8d7ccb++,_0xd37d4a['push'](_0x1c0f65);else{if(_0x32fd09['isRemoved']&&_0x1c0f65['isAdded']){const {commonTape:_0x4f23fe,iEnd:_0x3f1301,jEnd:_0x2a9c4a}=this['_threeWayMerge'](_0x1b3b32,_0x67fca8,_0x4e72c9,_0x8d7ccb);_0xd37d4a=_0xd37d4a['concat'](_0x4f23fe),_0x67fca8=_0x3f1301,_0x8d7ccb=_0x2a9c4a;}else _0x32fd09['isRemoved']?(_0x8d7ccb++,_0xd37d4a['push'](_0x32fd09)):(_0x67fca8++,_0xd37d4a['push'](_0x1c0f65));}}return _0xd37d4a;}['_markSuggestions'](_0x130955,_0x3be8bb){const _0x3dc5b5=[];for(let _0x392f19=0x0;_0x392f19<_0x130955['length'];_0x392f19++){for(let _0x372e9f=0x0;_0x372e9f<_0x130955[_0x392f19]['markersStart']['length'];_0x372e9f++){const _0xd7e7f2=_0x130955[_0x392f19]['markersStart'][_0x372e9f];if(!_0x3be8bb['has'](_0xd7e7f2))continue;const {group:_0x245718,type:_0x181422,authorId:_0x66e944}=_0x54a4d6(_0xd7e7f2);'revision-suggestion'!=_0x245718||'insertion'!=_0x181422&&'deletion'!=_0x181422||(_0x3dc5b5['unshift']({'type':_0x181422,'name':_0xd7e7f2,'userId':_0x66e944}),_0x130955[_0x392f19]['markersStart']['splice'](_0x372e9f,0x1),_0x372e9f--);}_0x3ee5dc(_0x130955[_0x392f19]);for(let _0x4c0af8=0x0;_0x4c0af8<_0x130955[_0x392f19]['markersEnd']['length'];_0x4c0af8++){const _0x3fe759=_0x130955[_0x392f19]['markersEnd'][_0x4c0af8];if(!_0x3be8bb['has'](_0x3fe759))continue;const {group:_0x456ed5,type:_0x4356a4}=_0x54a4d6(_0x3fe759);if('revision-suggestion'!=_0x456ed5||'insertion'!=_0x4356a4&&'deletion'!=_0x4356a4)continue;_0x130955[_0x392f19]['markersEnd']['splice'](_0x4c0af8,0x1),_0x4c0af8--;const _0x12abdc=_0x3dc5b5['findIndex'](_0x2da909=>_0x2da909['name']==_0x3fe759);_0x12abdc>-0x1&&_0x3dc5b5['splice'](_0x12abdc,0x1);}}function _0x54a4d6(_0x30c0cf){const _0x5aa9c5=_0x30c0cf['split'](':');return{'group':_0x5aa9c5[0x0],'type':_0x5aa9c5[0x1],'subType':_0x5aa9c5['length']>=0x5?_0x5aa9c5[0x2]:null,'id':_0x5aa9c5['length']<0x5?_0x5aa9c5[0x2]:_0x5aa9c5[0x3],'authorId':_0x5aa9c5['length']<0x5?_0x5aa9c5[0x3]:_0x5aa9c5[0x4],'markerCount':0x6==_0x5aa9c5['length']?_0x5aa9c5[0x5]:null};}function _0x3ee5dc(_0x43432f){for(let _0x3f31c7=0x0;_0x3f31c7<_0x3dc5b5['length'];_0x3f31c7++){if(_0x43432f['isAdded']&&'insertion'==_0x3dc5b5[_0x3f31c7]['type'])return _0x43432f['isAddSuggestion']=_0x3dc5b5[_0x3f31c7],void delete _0x43432f['isAdded'];if(!_0x43432f['isAdded']&&!_0x43432f['isRemoved']&&'deletion'==_0x3dc5b5[_0x3f31c7]['type'])return void(_0x43432f['isRemoveSuggestion']=_0x3dc5b5[_0x3f31c7]);}}}['_setDistance'](_0x570a78,_0x20d9f4){let _0x2ddf28=0x0,_0x173f33=!0x1;const _0x28a087=new Map();for(const _0x2a69fb of _0x570a78)_0x2a69fb[_0x20d9f4]?_0x173f33&&(_0x2ddf28++,_0x173f33=!0x1):(_0x2ddf28++,_0x173f33=!0x0),_0x28a087['set'](_0x2a69fb['id'],_0x2ddf28);for(let _0x45776f=0x0;_0x45776f<_0x570a78['length'];_0x45776f++){if('isRemoved'==_0x20d9f4&&_0x570a78[_0x45776f]['isAdded']||'isAdded'==_0x20d9f4&&_0x570a78[_0x45776f]['isRemoved'])continue;if('text'==_0x570a78[_0x45776f]['type']){_0x570a78[_0x45776f]['distance']=0x0;continue;}const _0x5803d2=_0x28a087['get'](_0x570a78[_0x45776f]['pairId']),_0xd2ef91=_0x28a087['get'](_0x570a78[_0x45776f]['id']);_0x570a78[_0x45776f]['distance']=_0x5803d2-_0xd2ef91;}}['_getRevisionsRange'](_0xea3ba8,_0x24bf76,_0x334d8f=!0x1){const _0x56d875=[];let _0x29bfae=this['repository']['getIndex'](_0xea3ba8),_0xd963a5=this['repository']['getIndex'](_0x24bf76);for(-0x1==_0xd963a5&&(_0xd963a5=this['repository']['_revisions']['length'],_0x334d8f=!0x1);_0x29bfae<_0xd963a5;)_0x56d875['push'](this['repository']['getRevision'](_0x29bfae)),_0x29bfae++;return _0x334d8f&&_0x56d875['push'](this['repository']['getRevision'](_0x29bfae)),_0x56d875;}['_threeWayMerge'](_0x565607,_0x53df36,_0x2fbdf9,_0x120e68){const _0xdcc0c9=this['editor']['model']['schema'];let _0x20b52b=_0x53df36;for(;_0x565607[_0x20b52b]&&_0x565607[_0x20b52b]['isAdded'];)_0x20b52b++;let _0x4f3498=_0x120e68;for(;_0x2fbdf9[_0x4f3498]&&_0x2fbdf9[_0x4f3498]['isRemoved'];)_0x4f3498++;_0x1ccd50(_0x565607,_0x53df36,_0x20b52b),_0x1ccd50(_0x2fbdf9,_0x120e68,_0x4f3498);const _0x450d22=_0x2fbdf9['slice'](_0x120e68,_0x4f3498)['concat'](_0x565607['slice'](_0x53df36,_0x20b52b));return _0x450d22['sort']((_0x19ff7b,_0xcdf614)=>_0x19ff7b['side']!=_0xcdf614['side']?_0x19ff7b['side']-_0xcdf614['side']:_0x19ff7b['level']!=_0xcdf614['level']?_0x19ff7b['level']-_0xcdf614['level']:_0x19ff7b['distance']!=_0xcdf614['distance']?_0xcdf614['distance']-_0x19ff7b['distance']:!!_0x19ff7b['isAdded']!=!!_0xcdf614['isAdded']?-0x1==_0x19ff7b['side']||0x0==_0x19ff7b['side']?_0x19ff7b['isAdded']?-0x1:0x1:_0x19ff7b['isAdded']?0x1:-0x1:_0x19ff7b['index']-_0xcdf614['index']),{'commonTape':_0x450d22,'iEnd':_0x20b52b,'jEnd':_0x4f3498};function _0x1ccd50(_0x5c5321,_0x9074c8,_0x32e7be){let _0xa9e0e6=-0x1,_0x1595ec=Number['POSITIVE_INFINITY'],_0x58f077=!0x0;for(let _0x14f22d=_0x9074c8;_0x14f22d<_0x32e7be;_0x14f22d++)if(_0xdcc0c9['isInline'](_0x5c5321[_0x14f22d]['item'])||(_0x58f077=!0x1),_0x5c5321[_0x14f22d]['item']['startIndex']<_0x9074c8&&(_0xa9e0e6=_0x14f22d),_0x5c5321[_0x14f22d]['item']['endIndex']>=_0x32e7be){_0x1595ec=_0x14f22d;break;}_0x58f077&&(_0xa9e0e6=_0x32e7be-0x1);for(let _0x32b3c9=_0x9074c8;_0x32b3c9<_0x32e7be;_0x32b3c9++)_0x5c5321[_0x32b3c9]['side']=_0x32b3c9<=_0xa9e0e6?-0x1:_0x32b3c9<_0x1595ec?0x0:0x1,_0x5c5321[_0x32b3c9]['index']=_0x32b3c9;let _0x8e7dc7=0x0;for(let _0x23889c=_0x9074c8;_0x23889c<=_0xa9e0e6;_0x23889c++)0x0==_0x5c5321[_0x23889c]['distance']?_0x5c5321[_0x23889c]['level']=_0x8e7dc7:(_0x8e7dc7++,_0x5c5321[_0x23889c]['level']=_0x8e7dc7,_0x8e7dc7++);for(let _0x1ef797=_0x9074c8;_0x1ef797<_0x32e7be;_0x1ef797++)0x0==_0x5c5321[_0x1ef797]['side']&&(_0x5c5321[_0x1ef797]['level']=_0x8e7dc7);_0x8e7dc7=0x0;for(let _0x462120=_0x32e7be-0x1;_0x462120>=_0x1595ec;_0x462120--)0x0==_0x5c5321[_0x462120]['distance']?_0x5c5321[_0x462120]['level']=_0x8e7dc7:(_0x8e7dc7--,_0x5c5321[_0x462120]['level']=_0x8e7dc7,_0x8e7dc7--);}}['_fixObsoleteTags'](_0x3d0fba){const _0x4b9a5f=new Map(),_0x3bec43=this['editor']['model']['schema'];for(let _0x2e83f3=0x1;_0x2e83f3<_0x3d0fba['length'];_0x2e83f3++){let _0x4d24d8,_0x2fd11a,_0x5aeb11;const _0x4b104e=_0x3d0fba[_0x2e83f3],_0x121c09=_0x3d0fba[_0x2e83f3-0x1];if('text'==_0x4b104e['type'])continue;if(_0x4b104e['type']!=_0x121c09['type'])continue;if(!_0x3bec43['isBlock'](_0x121c09['item'])||_0x3bec43['isLimit'](_0x121c09['item']))continue;if(!_0x3bec43['isBlock'](_0x4b104e['item'])||_0x3bec43['isLimit'](_0x4b104e['item']))continue;if((_0x3d0fba[_0x2e83f3]['isAdded']||_0x3d0fba[_0x2e83f3]['isAddSuggestion'])&&_0x3d0fba[_0x2e83f3-0x1]['isRemoved'])_0x4d24d8=_0x3d0fba[_0x2e83f3],_0x2fd11a=_0x3d0fba[_0x2e83f3-0x1],_0x5aeb11=_0x2e83f3-0x1;else{if(!_0x3d0fba[_0x2e83f3]['isRemoved']||!_0x3d0fba[_0x2e83f3-0x1]['isAdded']&&!_0x3d0fba[_0x2e83f3-0x1]['isAddSuggestion'])continue;_0x4d24d8=_0x3d0fba[_0x2e83f3-0x1],_0x2fd11a=_0x3d0fba[_0x2e83f3],_0x5aeb11=_0x2e83f3;}const _0x4fe45d=_0x4d24d8['level']==_0x2fd11a['level'],_0x35686a=Math['abs'](_0x4d24d8['level'])<Math['abs'](_0x2fd11a['level'])&&0x0==_0x2fd11a['distance'];(_0x4fe45d||_0x35686a)&&(_0x4b9a5f['set'](_0x2fd11a['id'],_0x4d24d8['id']),_0x3d0fba['splice'](_0x5aeb11,0x1),_0x2e83f3--,_0x4d24d8['isAdded']=!0x1);}for(let _0x25b773=0x0;_0x25b773<_0x3d0fba['length'];_0x25b773++)_0x4b9a5f['has'](_0x3d0fba[_0x25b773]['pairId'])&&(_0x3d0fba[_0x25b773]['pairId']=_0x4b9a5f['get'](_0x3d0fba[_0x25b773]['pairId']));}['_removeMissingPairs'](_0x1b992b){const _0x3d0dd0=new Set(_0x1b992b['map'](_0x53a97c=>_0x53a97c['id']));for(let _0x2317c9=0x0;_0x2317c9<_0x1b992b['length'];_0x2317c9++)_0x3d0dd0['has'](_0x1b992b[_0x2317c9]['pairId'])||0x0==_0x1b992b[_0x2317c9]['distance']||(_0x1b992b[_0x2317c9]['isIncorrect']=!0x0);return _0x1b992b['filter'](_0xefdd21=>!_0xefdd21['isIncorrect']);}['_markMismatchedRemovedTags'](_0x48d238){const _0x189969=new Set();for(let _0x33b1c6=0x0;_0x33b1c6<_0x48d238['length'];_0x33b1c6++){if(_0x189969['has'](_0x48d238[_0x33b1c6]['id'])&&_0x48d238[_0x33b1c6]['isRemoved']&&(_0x48d238[_0x33b1c6]['isIncorrect']=!0x0),_0x48d238[_0x33b1c6]['isIncorrect'])continue;if(0x0==_0x48d238[_0x33b1c6]['distance'])continue;if('elementStart'!=_0x48d238[_0x33b1c6]['type'])continue;if(null==_0x48d238[_0x33b1c6]['pairId'])continue;let _0x1f95a7=_0x33b1c6+0x1,_0x1d67c1=0x0;for(;_0x48d238[_0x1f95a7]['id']!=_0x48d238[_0x33b1c6]['pairId'];)'elementStart'==_0x48d238[_0x1f95a7]['type']?_0x1d67c1++:'elementEnd'==_0x48d238[_0x1f95a7]['type']&&_0x1d67c1--,_0x1f95a7++;if(0x0!=_0x1d67c1){if(_0x48d238[_0x33b1c6]['isRemoved'])_0x48d238[_0x33b1c6]['isIncorrect']=!0x0;else{for(;_0x1f95a7!=_0x33b1c6;)_0x48d238[_0x1f95a7]['isRemoved']&&0x0!=_0x48d238[_0x1f95a7]['distance']&&(_0x48d238[_0x1f95a7]['isIncorrect']=!0x0,_0x189969['add'](_0x48d238[_0x1f95a7]['pairId'])),_0x1f95a7--;}}}return _0x48d238['filter'](_0x28e003=>!_0x28e003['isIncorrect']);}['_removeUnsupportedChanges'](_0x135a72){const _0x1c1b54=this['editor']['model']['schema'];for(let _0x4a42cf=0x0;_0x4a42cf<_0x135a72['length'];_0x4a42cf++){if(!(_0x135a72[_0x4a42cf]['isAdded']||_0x135a72[_0x4a42cf]['isAddSuggestion']||_0x135a72[_0x4a42cf]['isRemoved']||_0x135a72[_0x4a42cf]['isRemoveSuggestion']))continue;if(0x0==_0x135a72[_0x4a42cf]['distance'])continue;const _0x305e9d=_0x135a72[_0x4a42cf]['item'];_0x1c1b54['isBlock'](_0x305e9d)||_0x1c1b54['isLimit'](_0x305e9d)||(_0x135a72[_0x4a42cf]['isAdded']&&delete _0x135a72[_0x4a42cf]['isAdded'],_0x135a72[_0x4a42cf]['isAddSuggestion']&&delete _0x135a72[_0x4a42cf]['isAddSuggestion'],_0x135a72[_0x4a42cf]['isRemoveSuggestion']&&delete _0x135a72[_0x4a42cf]['isRemoveSuggestion'],_0x135a72[_0x4a42cf]['isRemoved']&&(_0x135a72[_0x4a42cf]['isIncorrect']=!0x0));}return _0x135a72['filter'](_0x301282=>!_0x301282['isIncorrect']);}['_makeModelFromTape'](_0x176d95,_0x3725e2,_0x1d2335){const _0x658cd4=new mt(),_0x1bff1e=[],_0x583c1c=new Map(),_0x249775=this['editor']['model'],_0x50292a=_0x249775['schema'],_0x5d5a3b=[_0x658cd4],_0x46de57={},_0x2dadbe={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3b873f=null;const _0x39401f=[0x0];for(let _0x3f6aa4=0x0;_0x3f6aa4<_0x176d95['length'];_0x3f6aa4++)if('elementStart'===_0x176d95[_0x3f6aa4]['type']){_0x176d95[_0x3f6aa4]['previousPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f);const _0x3f0745=new ft(_0x176d95[_0x3f6aa4]['item']['name'],_0x176d95[_0x3f6aa4]['item']['getAttributes']());_0x5d5a3b[0x0]['_appendChild'](_0x3f0745),_0x39401f['push'](0x0),_0x5d5a3b['unshift'](_0x3f0745),_0x176d95[_0x3f6aa4]['nextPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f);}else'elementEnd'===_0x176d95[_0x3f6aa4]['type']?(_0x5d5a3b['shift'](),_0x176d95[_0x3f6aa4]['previousPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f),_0x39401f['pop'](),_0x39401f[_0x39401f['length']-0x1]++,_0x176d95[_0x3f6aa4]['nextPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f)):(_0x176d95[_0x3f6aa4]['previousPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f),_0x3b873f?_0x3b873f['_data']+=_0x176d95[_0x3f6aa4]['item']['data']:_0x3b873f=new wt(_0x176d95[_0x3f6aa4]['item']['data'],_0x176d95[_0x3f6aa4]['item']['getAttributes']()),_0x176d95[_0x3f6aa4+0x1]&&'text'===_0x176d95[_0x3f6aa4+0x1]['type']&&_0x537a67(_0x3b873f,_0x176d95[_0x3f6aa4+0x1]['item'])||(_0x5d5a3b[0x0]['_appendChild'](_0x3b873f),_0x3b873f=null),_0x39401f[_0x39401f['length']-0x1]+=_0x176d95[_0x3f6aa4]['item']['offsetSize'],_0x176d95[_0x3f6aa4]['nextPosition']=_0x249775['createPositionFromPath'](_0x658cd4,_0x39401f));for(let _0x5cee03=0x0;_0x5cee03<_0x176d95['length'];_0x5cee03++){const _0x1f738a=_0x176d95[_0x5cee03]['previousPosition'],_0x3ffbbe=_0x176d95[_0x5cee03]['nextPosition'];for(const _0x1f8610 of _0x176d95[_0x5cee03]['markersStart'])_0x583c1c['set'](_0x1f8610,{'start':_0x1f738a,'end':null});_0x344d45('isRemoveSuggestion',_0x5cee03,_0x1f738a,_0x3ffbbe),_0x344d45('isAddSuggestion',_0x5cee03,_0x1f738a,_0x3ffbbe),_0x344d45('isRemoved',_0x5cee03,_0x1f738a,_0x3ffbbe),_0x344d45('isAdded',_0x5cee03,_0x1f738a,_0x3ffbbe);for(const _0x550124 of _0x176d95[_0x5cee03]['markersEnd']){_0x583c1c['get'](_0x550124)['end']=_0x3ffbbe;}}for(const [_0x12c368,_0x3006cb]of _0x583c1c){const _0x37fe15=this['editor']['model']['createRange'](_0x3006cb['start'],_0x3006cb['end']);_0x658cd4['markers']['set'](_0x12c368,_0x37fe15);}return _0x1bff1e['sort']((_0x107b2a,_0x39d7b3)=>{const _0x2f07e7=_0x658cd4['markers']['get']('revision:'+_0x107b2a['id']),_0x5cc386=_0x658cd4['markers']['get']('revision:'+_0x39d7b3['id']);return _0x2f07e7['start']['isBefore'](_0x5cc386['start'])?-0x1:_0x2f07e7['start']['isAfter'](_0x5cc386['start'])?0x1:_0x2f07e7['end']['isBefore'](_0x5cc386['end'])?-0x1:_0x2f07e7['end']['isAfter'](_0x5cc386['end'])?0x1:'add'===_0x107b2a['type']?-0x1:0x1;}),{'root':_0x658cd4,'changes':_0x1bff1e};function _0x344d45(_0x23705f,_0x39951b,_0x2db12e,_0x5b473a){const _0x514700=!!_0x176d95[_0x39951b][_0x23705f],_0x247153=_0x514700?_0x176d95[_0x39951b][_0x23705f]['userId']:null,_0x5404c9=_0x39951b===_0x176d95['length']-0x1,_0x18ba0f=_0x2dadbe[_0x23705f][0x0],_0xe1257b=_0x50292a['isObject'](_0x176d95[_0x39951b]['item']);!_0x46de57[_0x23705f]&&_0x514700?_0x46de57[_0x23705f]={'start':_0x2db12e,'tapeItem':_0x176d95[_0x39951b],'userId':_0x247153,'type':_0x23705f}:_0x46de57[_0x23705f]&&!_0x514700?(_0x46de57[_0x23705f]['end']=_0x2db12e,_0x34daea(_0x46de57[_0x23705f]),_0x46de57[_0x23705f]=null):_0x46de57[_0x23705f]&&_0x514700&&_0x46de57[_0x23705f]['userId']!==_0x247153&&(_0x46de57[_0x23705f]['end']=_0x2db12e,_0x18ba0f&&_0x18ba0f['userId']===_0x46de57[_0x23705f]['userId']||_0x34daea(_0x46de57[_0x23705f]),_0x46de57[_0x23705f]={'start':_0x2db12e,'tapeItem':_0x176d95[_0x39951b],'userId':_0x247153,'type':_0x23705f}),_0x46de57[_0x23705f]&&_0xe1257b&&('elementStart'!==_0x176d95[_0x39951b]['type']||_0x18ba0f&&_0x18ba0f['userId']===_0x247153||_0x2dadbe[_0x23705f]['unshift']({'userId':_0x247153,'object':_0x176d95[_0x39951b]['item'],'change':_0x46de57[_0x23705f]}),'elementEnd'===_0x176d95[_0x39951b]['type']&&_0x18ba0f&&_0x18ba0f['object']===_0x176d95[_0x39951b]['item']&&(_0x2dadbe[_0x23705f]['shift'](),_0x46de57[_0x23705f]=_0x18ba0f['change'])),_0x46de57[_0x23705f]&&_0x5404c9&&(_0x46de57[_0x23705f]['end']=_0x5b473a,_0x34daea(_0x46de57[_0x23705f]),_0x46de57[_0x23705f]=null);}function _0x34daea({start:_0x38c08c,end:_0x3b3f3f,tapeItem:_0x3ab6db,userId:_0x255475,type:_0xf734e8}){const _0xad18e4=_0x3ab6db['item'],_0x47bda3=_0x249775['schema']['isBlock'](_0xad18e4)&&!_0x249775['schema']['isLimit'](_0xad18e4),_0x3396b7=_0x38c08c['nodeAfter']==_0x3b3f3f['parent']&&_0x3b3f3f['isAtStart'];if(_0x47bda3&&_0x3396b7)return;const _0x593854=_0x249775['createRange'](_0x38c08c,_0x3b3f3f),_0x4f299b=_0x3725e2['get'](_0x255475),_0x5373db=new r({'author':_0x4f299b,'type':'isAdded'==_0xf734e8||'isAddSuggestion'==_0xf734e8?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0xf734e8||'isRemoveSuggestion'==_0xf734e8},'createdAt':new Date(),'rootName':_0x1d2335});_0x1bff1e['push'](_0x5373db),_0x658cd4['markers']['set']('revision:'+_0x5373db['id'],_0x593854);}function _0x537a67(_0x502403,_0x15a9de){const _0x4adf9e=_0x502403['getAttributes'](),_0x110d32=_0x15a9de['getAttributes']();for(const _0x281980 of _0x4adf9e){if(_0x281980[0x1]!==_0x15a9de['getAttribute'](_0x281980[0x0]))return!0x1;_0x110d32['next']();}return _0x110d32['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5bfc81=>{const _0x40310e=_0x5bfc81['markerName']['split'](':')[0x1],_0x130da0=this['_getChangeFromId'](_0x40310e);if(!_0x130da0)return null;const _0x1765a6='add'==_0x130da0['type']?'insertion':'deletion',_0x462940=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1765a6];return _0x130da0['data']['isSuggestion']&&_0x462940['push']('ck-suggestion-marker-'+_0x1765a6+'-new'),this['activeChange']==_0x130da0&&_0x462940['push']('ck-suggestion-marker--active'),{'classes':_0x462940,'attributes':{'data-change-id':_0x40310e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x569ca6=>{_0x569ca6['on']('element:pre',(_0x337803,_0x5444e1,_0x536b6c)=>{const _0x11be73=_0x5444e1['viewItem']['getChild'](0x0);if(!_0x11be73||!_0x11be73['is']('element','code'))return;if(!_0x536b6c['consumable']['consume'](_0x11be73,{'attributes':['vid_start','vid_end']}))return;const _0x1cc03c=_0x5444e1['modelRange']['start']['nodeAfter'];_0x536b6c['writer']['setAttribute']('vid_start',_0x11be73['getAttribute']('vid_start'),_0x1cc03c),_0x536b6c['writer']['setAttribute']('vid_end',_0x11be73['getAttribute']('vid_end'),_0x1cc03c);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4bae85=>{_0x4bae85['on']('element',(_0x79dd6e,_0x5743f6,_0x3b47c2)=>{if(!_0x3b47c2['consumable']['consume'](_0x5743f6['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5743f6['modelRange']['isCollapsed'])return;const _0x5dc9f4=_0x5743f6['modelRange']['start']['nodeAfter'];_0x5dc9f4['hasAttribute']('vid_start')||_0x5dc9f4['hasAttribute']('vid')||(_0x3b47c2['writer']['setAttribute']('vid_start',_0x5743f6['viewItem']['getAttribute']('vid_start'),_0x5dc9f4),_0x3b47c2['writer']['setAttribute']('vid_end',_0x5743f6['viewItem']['getAttribute']('vid_end'),_0x5dc9f4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x8833ba=>_0x8833ba['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x45823f,[,_0x108732])=>{['vid_start','vid_end','vid']['includes'](_0x108732)&&(_0x45823f['return']=!0x0,_0x45823f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x19e032=>{_0x19e032['on']('attribute:vid',(_0x47815c,_0xfa481e,_0x59dacc)=>{if('\x20'!=_0xfa481e['item']['data']||_0xfa481e['item']['parent']['maxOffset']>0x1)return;if(!_0x59dacc['consumable']['consume'](_0xfa481e['item'],_0x47815c['name']))return;const _0x41dcd2=_0x59dacc['writer'],_0x5a2bc5=_0x59dacc['mapper']['toViewRange'](_0xfa481e['range']);_0x41dcd2['wrap'](_0x5a2bc5,_0x41dcd2['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2be0f9){const _0x1893eb=_0x2be0f9['plugins']['get']('RevisionViewer');return(_0xcb3c10,_0x14950f,_0x47b1eb)=>{const _0x450e88=_0x14950f['markerName']['split'](':')[0x1],_0x646a91=_0x1893eb['_getChangeFromId'](_0x450e88);if(!_0x646a91)return null;const _0x38a10a='add'==_0x646a91['type']?'split':'merge';if(!_0x47b1eb['consumable']['test'](_0x14950f['markerRange'],_0xcb3c10['name']))return;const _0x3ff5ed=_0x14950f['markerRange']['getWalker'](),_0xba1046=_0x14950f['markerRange']['start'],_0x31cbdd=_0x2be0f9['model']['schema'];let _0x528f27=null,_0x34cbfe=null,_0x19ec0c=!0x1,_0x2a4f04=!0x1;for(const _0x1c74f8 of _0x3ff5ed){const _0xc55023=_0x1c74f8['item'];_0x19ec0c=_0x19ec0c||_0x31cbdd['isContent'](_0xc55023);const _0x2bb0b1=_0x47b1eb['mapper']['toViewElement'](_0xc55023);if(_0x2bb0b1&&_0x2bb0b1['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1c74f8['type']&&(_0x31cbdd['isBlock'](_0xc55023)&&!_0x31cbdd['isLimit'](_0xc55023)&&(_0xc55023['nextSibling']||_0xba1046['isAtEnd']?_0x528f27&&_0x528f27['parent']==_0xc55023||(_0x528f27=_0xc55023,_0x5867b9(_0x1c74f8['previousPosition']),_0x2a4f04=!0x0):_0x34cbfe=_0x34cbfe||_0x1c74f8['previousPosition']));}function _0x5867b9(_0x31f290){const _0x3b34fc=_0x47b1eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x38a10a}),_0xb648fc=_0x47b1eb['mapper']['toViewPosition'](_0x31f290);_0x646a91['data']['isSuggestion']&&_0x47b1eb['writer']['addClass']('ck-suggestion-marker-'+_0x38a10a+'-new',_0x3b34fc),_0x1893eb['activeChange']==_0x646a91&&_0x47b1eb['writer']['addClass']('ck-suggestion-marker--active',_0x3b34fc),_0x47b1eb['writer']['insert'](_0xb648fc,_0x3b34fc),_0x47b1eb['mapper']['bindElementToMarker'](_0x3b34fc,_0x14950f['markerName']);}_0x19ec0c||_0x2a4f04||!_0x34cbfe||_0x5867b9(_0x34cbfe);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x386912,_0x3b3287,_0x1d5ac1)=>{const _0x4009af=_0x1d5ac1['mapper']['markerNameToElements'](_0x3b3287['markerName']);if(_0x4009af){for(const _0xbff787 of _0x4009af)(_0xbff787['hasClass']('ck-suggestion-marker-split')||_0xbff787['hasClass']('ck-suggestion-marker-merge'))&&(_0x1d5ac1['mapper']['unbindElementFromMarkerName'](_0xbff787,_0x3b3287['markerName']),_0x1d5ac1['writer']['remove'](_0xbff787));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x44c558,_0x2233fa,_0x3b63a0)=>{const _0x482298=_0x2233fa['markerName']['split'](':')[0x1],_0x4caf6e=this['_getChangeFromId'](_0x482298);if(!_0x4caf6e)return null;const _0x4b45f9='add'==_0x4caf6e['type']?'split':'merge';if(_0x3b63a0['consumable']['test'](_0x2233fa['markerRange'],_0x44c558['name']))for(const _0x3cf560 of _0x2233fa['markerRange']['getItems']()){if(!_0x3cf560['is']('element','softBreak'))continue;const _0x5d3008=_0x3b63a0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4b45f9}),_0x19021f=_0x3b63a0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3cf560));_0x4caf6e['data']['isSuggestion']&&_0x3b63a0['writer']['addClass']('ck-suggestion-marker-'+_0x4b45f9+'-new',_0x5d3008),this['activeChange']==_0x4caf6e&&_0x3b63a0['writer']['addClass']('ck-suggestion-marker--active',_0x5d3008),_0x3b63a0['writer']['insert'](_0x19021f,_0x5d3008),_0x3b63a0['mapper']['bindElementToMarker'](_0x5d3008,_0x2233fa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x26fe2f=>{for(const _0x3d734e of this['editor']['model']['document']['getRootNames']()){const _0x4450c7=this['editor']['model']['document']['getRoot'](_0x3d734e),_0x395771=this['editor']['editing']['view']['document']['getRoot'](_0x3d734e);if(_0x395771){const _0x3ee99b=_0x4450c7['getAttribute']('revisionHistoryAttachChange');if(_0x26fe2f['removeAttribute']('data-change-id',_0x395771),_0x26fe2f['removeClass']('ck-revision-history-root-add',_0x395771),_0x26fe2f['removeClass']('ck-revision-history-root-remove',_0x395771),_0x26fe2f['removeClass']('ck-revision-history-root--active',_0x395771),_0x3ee99b){const _0x34499c=this['_getChangeFromId'](_0x3ee99b);if(!_0x34499c)return null;_0x26fe2f['setAttribute']('data-change-id',_0x3ee99b,_0x395771),_0x26fe2f['addClass']('ck-revision-history-root-'+_0x34499c['type'],_0x395771),this['activeChange']==_0x34499c&&_0x26fe2f['addClass']('ck-revision-history-root--active',_0x395771);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3f842a=>'revision-comment:'+_0x3f842a,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x587d23=>'revision-suggestion:'+_0x587d23,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ac1bc=>({'name':'suggestion:'+_0x2ac1bc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x47fd7e=>{const _0x434276=_0x47fd7e['markerName']['split'](':')[0x1];return'insertion'!=_0x434276&&'deletion'!=_0x434276?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x434276]};}}),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',(_0x2cfa39,_0x2c6199,_0x4a75ae)=>{const _0x512ed8=_0x4a75ae['mapper']['markerNameToElements'](_0x2c6199['markerName']);if(_0x512ed8){for(const _0x3ccf75 of _0x512ed8)_0x3ccf75['is']('uiElement')&&(_0x4a75ae['mapper']['unbindElementFromMarkerName'](_0x3ccf75,_0x2c6199['markerName']),_0x4a75ae['writer']['remove'](_0x3ccf75));}},{'priority':'high'});}['_getChangeFromId'](_0x19814c){return this['_changeIdToChange']['get'](_0x19814c);}['_getViewForChange'](_0xa73f99){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xa73f99),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5d7eb1,_0x53167d,_0x2e765d,_0x57edde)=>{_0x57edde&&this['_balloon']['remove'](_0x57edde),_0x2e765d&&(this['_balloon']['add']({'view':_0x2e765d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x577836=this['editor']['editing'],_0x364357=this['_getChangeFromId'](_0x2e765d['changeId']);let _0x27d758;if(_0x364357['data']['isOnRoot']){const _0x4047a1=_0x577836['view']['getDomRoot'](_0x364357['rootName']);_0x27d758=Array['from'](_0x4047a1['getClientRects']());}else{const _0x141499=this['editor']['model']['markers']['get']('revision:'+_0x2e765d['changeId']);_0x27d758=Array['from'](_0x577836['mapper']['markerNameToElements'](_0x141499['name']))['map'](_0x17a7a0=>_0x577836['view']['domConverter']['mapViewToDom'](_0x17a7a0))['map'](_0x573e78=>Array['from'](_0x573e78['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x27d758[0x0];return _0x27d758['find'](_0x436a28=>_0x436a28['top']-0x3<=this['_activeViewTarget']['y']&&_0x436a28['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x436a28['left']-0x3<=this['_activeViewTarget']['x']&&_0x436a28['right']+0x3>=this['_activeViewTarget']['x'])||_0x27d758[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x258d77,_0x48187d,_0x43d6d0,_0x4812f0)=>{this['activeView']=_0x43d6d0?this['_getViewForChange'](_0x43d6d0):null,this['editor']['model']['change'](()=>{const _0x418cfa=this['editor']['editing'];_0x4812f0&&(_0x4812f0['data']['isOnRoot']?_0x418cfa['view']['change'](_0x119d65=>{_0x119d65['removeClass']('ck-revision-history-root--active',_0x418cfa['view']['document']['getRoot'](_0x4812f0['rootName']));}):_0x418cfa['reconvertMarker']('revision:'+_0x4812f0['id'])),_0x43d6d0&&(_0x43d6d0['data']['isOnRoot']?_0x418cfa['view']['change'](_0x5e9e43=>{_0x5e9e43['addClass']('ck-revision-history-root--active',_0x418cfa['view']['document']['getRoot'](_0x43d6d0['rootName']));}):_0x418cfa['reconvertMarker']('revision:'+_0x43d6d0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x56c5e3,_0x20c31b)=>{if(this['activeChange'])return;const _0x2eead9=this['_findChangeIdFromDomTarget'](_0x20c31b['target']),_0x248284=this['_changeIdToChange']['get'](_0x2eead9);_0x248284?(this['_activeViewTarget']={'x':_0x20c31b['domEvent']['x'],'y':_0x20c31b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x248284)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x45daf0,_0x1b0af1)=>{const _0x28442d=this['_findChangeIdFromDomTarget'](_0x1b0af1['target']),_0x8a374f=this['_changeIdToChange']['get'](_0x28442d);_0x8a374f?(this['_activeViewTarget']={'x':_0x1b0af1['domEvent']['x'],'y':_0x1b0af1['domEvent']['y']},_0x8a374f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8a374f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2f06a5){do{const _0x3b0e7b=_0x2f06a5['getAttribute']('data-change-id');if(_0x3b0e7b)return _0x3b0e7b;_0x2f06a5=_0x2f06a5['parent'];}while(_0x2f06a5);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25d01e=>{for(const _0x44805b of this['editor']['model']['markers'])_0x25d01e['removeMarker'](_0x44805b);});}}function Z(_0x51c76f,_0x46843d){return(_0x5042e3,_0x5c4e9e,_0x5aca81)=>{if(!_0x5aca81['consumable']['test'](_0x5c4e9e['markerRange'],_0x5042e3['name']))return;const _0x36f7ed=_0x5c4e9e['markerRange']['getWalker'](),_0x4784fc=_0x5c4e9e['markerRange']['start'],_0x483f0c=_0x51c76f['model']['schema'];let _0x47470d=null,_0x5814b1=null,_0x52e8dc=!0x1,_0x26d394=!0x1;for(const _0x239136 of _0x36f7ed){const _0x2a1c5c=_0x239136['item'];_0x52e8dc=_0x52e8dc||_0x483f0c['isContent'](_0x2a1c5c);const _0x5b3206=_0x5aca81['mapper']['toViewElement'](_0x2a1c5c);if(_0x5b3206&&_0x5b3206['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x239136['type']&&(_0x483f0c['isBlock'](_0x2a1c5c)&&!_0x483f0c['isLimit'](_0x2a1c5c)&&(_0x2a1c5c['nextSibling']||_0x4784fc['isAtEnd']?_0x47470d&&_0x47470d['parent']==_0x2a1c5c||(_0x47470d=_0x2a1c5c,_0x1b686c(_0x239136['previousPosition']),_0x26d394=!0x0):_0x5814b1=_0x5814b1||_0x239136['previousPosition']));}function _0x1b686c(_0x5982de){const _0x1c8352=_0x5aca81['mapper']['toViewPosition'](_0x5982de),_0x3344f9=_0x5aca81['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x46843d});_0x5aca81['writer']['insert'](_0x1c8352,_0x3344f9),_0x5aca81['mapper']['bindElementToMarker'](_0x3344f9,_0x5c4e9e['markerName']);}_0x52e8dc||_0x26d394||!_0x5814b1||_0x1b686c(_0x5814b1);};}class _t extends _0x49e04e{constructor(_0x2ad715){super(_0x2ad715);const _0x1412d4=_0x2ad715['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1412d4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1412d4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x94a6ed=this['editor'],_0x22a0b1=_0x94a6ed['plugins']['get'](d),_0x5c1877=_0x22a0b1['isReady']?_0x22a0b1['diff']['newRevisionId']:null;_0x94a6ed['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5c1877);}['refresh'](){const {isReady:_0x244616,isEnabled:_0x3ba3c6,repository:_0x5c7b47,diff:_0x42c9ae}=this['editor']['plugins']['get'](d),_0x461482=_0x42c9ae&&_0x5c7b47['getLaterVisibleRevision'](_0x42c9ae['newRevisionId']);this['isEnabled']=_0x244616&&_0x3ba3c6&&Boolean(_0x461482);}}class yt extends _0x49e04e{['_step'];constructor(_0x517a05,{direction:_0x2e3de9}){super(_0x517a05);const _0x295533=_0x517a05['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2e3de9?0x1:-0x1,this['listenTo'](_0x295533,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x295533,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x295533,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x8223c5=this['editor'],_0x4e792d=_0x8223c5['plugins']['get'](d),{isNavigationMode:_0xcbf768,currentChangeNumber:_0x11445d}=_0x4e792d;let _0x38fffc;if(_0x4e792d['activeChange']=_0xcbf768?_0x4e792d['diff']['changes']['get'](_0x11445d+this['_step']):_0x4e792d['diff']['changes']['first'],_0x4e792d['activeChange']['data']['isOnRoot'])_0x38fffc=_0x8223c5['editing']['view']['getDomRoot'](_0x4e792d['activeChange']['rootName']);else{const _0x3ff890=_0x8223c5['model']['markers']['get']('revision:'+_0x4e792d['activeChange']['id']);_0x38fffc=_0x1adcad(_0x8223c5['editing'],_0x3ff890);}_0x54a603({'target':_0x38fffc,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xfde203,currentChangeNumber:_0x3d419e,numberOfChanges:_0x2c9f66,isReady:_0x17a966,isEnabled:_0xf01af4}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xf01af4&&_0x17a966&&_0x2c9f66)&&(!_0xfde203||(0x1===this['_step']?_0x3d419e<_0x2c9f66-0x1:_0x3d419e>0x0));}}class bi extends _0x3191d2{constructor(_0x460f51){super(_0x460f51);const _0x1b86be=this['bindTemplate'],_0x57490f=new _0x5d5006(_0x460f51),_0x5eaf4f=new _0x5d5006(_0x460f51);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',(_0x1a3327,_0x29e25c)=>_0x1a3327&&_0x29e25c>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x58d6fa,_0x11620c,_0x118699,_0x75b23a)=>{if(!_0x58d6fa)return m(_0x460f51,'Loading...');if(!_0x118699)return m(_0x460f51,'No\x20changes');const _0x1f4ddc=m(_0x460f51,'NUMBER_OF_CHANGES',_0x118699);return _0x75b23a?m(_0x460f51,'X_OF_Y_CHANGES',[_0x11620c+0x1,_0x118699]):_0x1f4ddc;}),_0x57490f['set']({'label':m(_0x460f51,'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'}),_0x5eaf4f['set']({'label':m(_0x460f51,'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'}),_0x57490f['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x5eaf4f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x57490f['on']('execute',()=>this['fire']('execute','backward')),_0x5eaf4f['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',_0x1b86be['if']('_isStatusLabelVisible','ck-hidden',_0x5eeb08=>!_0x5eeb08)]},'children':[{'text':_0x1b86be['to']('isNavigationMode',_0x5d2231=>_0x5d2231?m(_0x460f51,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x460f51,'Total')+':\x20')}]},{'text':_0x1b86be['to']('_statusText')}]},new _0x1c1102(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x57490f,_0x5eaf4f]}]});}}const ie='ck-editor__editable__loading-overlay';class te extends _0x46c671{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0xd70ce4=this['editor']['editing']['view'];_0xd70ce4['change'](_0xafa630=>{for(const _0x4d6b20 of _0xd70ce4['document']['roots'])_0xafa630['addClass'](ie,_0x4d6b20);});}['hide'](){const _0x5832d1=this['editor']['editing']['view'];_0x5832d1['change'](_0x1f4246=>{for(const _0x3a2f0d of _0x5832d1['document']['roots'])_0x1f4246['removeClass'](ie,_0x3a2f0d);});}}class g extends _0x46c671{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,te];}['init'](){const _0x4d7a20=this['editor'],_0x4e9b4b=_0x4d7a20['plugins']['get'](d),_0x2622c6=_0x4d7a20['plugins']['get'](te);_0x4d7a20['ui']['componentFactory']['add']('exitToEditing',_0x7c406=>{const _0x4f5cc0=new _0x5d5006(_0x7c406);return _0x4f5cc0['set']({'label':m(_0x7c406,'Back\x20to\x20editing'),'icon':_0x36297c['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4f5cc0,'execute',()=>{_0x4d7a20['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4f5cc0;}),_0x4d7a20['ui']['componentFactory']['add']('restoreRevision',_0x1d67f7=>{const _0x292dfb=new _0x5d5006(_0x1d67f7);return _0x292dfb['set']({'label':m(_0x1d67f7,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x292dfb['bind']('isEnabled')['to'](_0x4d7a20['commands']['get']('restoreRevision')),this['listenTo'](_0x292dfb,'execute',()=>_0x4d7a20['execute']('restoreRevision')),_0x292dfb;}),_0x4d7a20['ui']['componentFactory']['add']('changesNavigation',_0x5e738a=>{const _0x24de98=new bi(_0x5e738a),_0x32fec8=_0x4d7a20['commands']['get']('showPreviousChange'),_0x4cef1e=_0x4d7a20['commands']['get']('showNextChange');return _0x24de98['bind']('isBackwardNavigationEnabled')['to'](_0x32fec8,'isEnabled'),_0x24de98['bind']('isForwardNavigationEnabled')['to'](_0x4cef1e,'isEnabled'),_0x24de98['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4e9b4b),this['listenTo'](_0x24de98,'execute',(_0x24ea80,_0x371630)=>{_0x4d7a20['execute']('forward'===_0x371630?'showNextChange':'showPreviousChange');}),_0x24de98;}),_0x2622c6['show'](),_0x4e9b4b['on']('change:isReady',(_0x32e575,_0x4721cd,_0x24e93e)=>{_0x24e93e?_0x2622c6['hide']():_0x2622c6['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x21e98b,_0x1e0163){super(_0x21e98b,_0x1e0163);const _0x252fd4=this['bindTemplate'];this['set']({'label':m(_0x21e98b,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x21e98b,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x252fd4['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 _0x495291=this['fieldView']['element'];this['_tooltipString']=_0x495291['scrollWidth']>_0x495291['clientWidth']&&_0x495291['value']||'';}}class ti extends _0x3191d2{constructor(_0x5232df,_0x27d85f,_0x57a825){super(_0x5232df);const _0x25a8f2=new _0x3ca579();_0x25a8f2['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 _0x48d64f=['ck','ck-revision-history-sidebar__revision-author'];_0x57a825&&_0x48d64f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2b8a20=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5232df,_0x57a825?'Revision\x20creator':'Revision\x20author')},'children':[_0x25a8f2,_0x27d85f['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x48d64f},'children':_0x2b8a20});}}function ni(_0x228307,_0x46414a){const _0x27512e=_0x228307['bindTemplate'],_0xfcb94f=_0x228307['locale'],_0x237bbe=_0x4ce21a(_0xfcb94f);_0x237bbe['panelPosition']='sw';const _0x4a8573=function(_0x359fa7,_0x4c0cc9){const _0x5c17df=function(_0x45d2ae,_0x14e725){const _0x20aafb=_0x45d2ae['locale'],_0x1e0727={'Compare\x20against\x20selected':m(_0x20aafb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x20aafb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x20aafb,'Restore\x20this\x20revision')};return _0x14e725['map'](_0xd3ba90=>{const _0x51aaac=_0x1e0727[_0xd3ba90['name']];return _0x51aaac&&_0x51aaac!==_0xd3ba90['name']&&(_0xd3ba90['name']=_0x51aaac),_0xd3ba90;});}(_0x359fa7,_0x4c0cc9),_0x13a649=new _0x369930();for(const _0xb5dca5 of _0x5c17df){const _0x3e3196={'type':'button','model':new to({'label':_0xb5dca5['name'],'class':_0xb5dca5['class'],'withText':!0x0,'role':'menuitem','_action':_0xb5dca5['action']})};_0x3e3196['model']['bind']('isEnabled')['to'](_0x359fa7,'isActionsDropdownOpen',_0x4e7ff3=>'function'!=typeof _0xb5dca5['isEnabled']||(!_0x4e7ff3||_0xb5dca5['isEnabled'](_0x359fa7))),_0x13a649['add'](_0x3e3196);}return _0x13a649;}(_0x228307,_0x46414a);return _0x228307['bind']('isActionsDropdownOpen')['to'](_0x237bbe,'isOpen'),_0x237bbe['buttonView']['set']({'label':m(_0xfcb94f,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x36297c['threeVerticalDots']}),_0x237bbe['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x27512e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x27512e['to'](_0x1f9190=>_0x1f9190['stopPropagation']())}}),_0x237bbe['on']('execute',_0x4459d2=>{_0x228307['isReady']&&'function'==typeof _0x4459d2['source']['_action']&&_0x4459d2['source']['_action'](_0x228307);}),_0x32e9dd(_0x237bbe,_0x4a8573,{'role':'menu'}),_0x237bbe['listenTo'](_0x228307,'change:isActionsDropdownOpen',(_0x41c7e7,_0x6bdef0,_0x43a225)=>{if(_0x43a225)for(const _0x3f6c09 of _0x237bbe['listView']['items']){const _0x166a11=_0x3f6c09['children']['first'],_0x3ebe54=_0x46414a['find'](_0x13d1c9=>_0x13d1c9['action']===_0x166a11['_action'])['isVisible'];_0x3f6c09['isVisible']=void 0x0===_0x3ebe54||_0x3ebe54(_0x228307);}}),_0x237bbe;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1d95fd(_0x3191d2){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xee298b,_0x3a65c4,_0x4815e7,_0xd00aa4){super(_0xee298b);const _0x6e10fd=this['bindTemplate'],_0x2c4c8c=function(_0xd1cfc2,_0x1406a3){const _0xc30d6=Array['from'](_0x1406a3['authors'])['filter'](_0x131324=>_0x131324!=_0x1406a3['creator']);return _0x1406a3['creator']&&_0xc30d6['unshift'](_0x1406a3['creator']),_0xc30d6['map'](_0x57a0c0=>new ti(_0xd1cfc2,_0x57a0c0,_0x57a0c0==_0x1406a3['creator']));}(_0xee298b,_0x3a65c4);this['id']=_0x3a65c4['id'],this['_revision']=_0x3a65c4,this['_requireRevisionName']=_0xd00aa4,this['bind']('name','createdAt')['to'](_0x3a65c4),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5b5010=>{return _0x41e601=_0xee298b['uiLanguage'],(_0x2ff1d7=_0x5b5010)['toLocaleDateString'](_0x41e601,{'month':'long','day':'numeric'})+',\x20'+_0x2ff1d7['toLocaleTimeString'](_0x41e601,{'hour':'numeric','minute':'numeric'});var _0x41e601,_0x2ff1d7;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xee298b,_0x101bc4),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3acab5=>_0x3acab5||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x34b133,_0x40223e)=>_0x34b133&&_0x40223e),this['revisionActionsView']=_0x4815e7&&_0x4815e7['length']?ni(this,_0x4815e7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x6e10fd['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x6e10fd['if']('isEnabled','ck-disabled',_0x5a90a4=>!_0x5a90a4),_0x6e10fd['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x6e10fd['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x6e10fd['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':_0x6e10fd['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':_0x2c4c8c}]},this['revisionActionsView']],'on':{'click':_0x6e10fd['to'](_0x4f9a6a=>{_0x4f9a6a['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x1ff6ca=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x1ff6ca,'change',()=>{this['_requireRevisionName']&&!_0x1ff6ca['value']||this['fire']('setName',{'id':this['id'],'name':_0x1ff6ca['value']}),_0x1ff6ca['value']||(_0x1ff6ca['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(_0x4a5fac,_0x3ad24b){const _0x141bc6=_0x459ebb['fromJSDate'](_0x4a5fac)['setLocale'](_0x3ad24b),_0x3640e1=_0x459ebb['local'](),_0x4de3c1=_0x3640e1['minus']({'days':0x1})['startOf']('day');let _0x9dc390,_0x33d162;return _0x141bc6['hasSame'](_0x3640e1,'day')?(_0x9dc390=_0x141bc6['startOf']('day')['toJSDate'](),_0x33d162=_0x141bc6['toRelativeCalendar']()):_0x141bc6['hasSame'](_0x4de3c1,'day')?(_0x9dc390=_0x4de3c1['toJSDate'](),_0x33d162=_0x141bc6['toRelativeCalendar']()):_0x141bc6['hasSame'](_0x3640e1,'week')?(_0x9dc390=_0x141bc6['startOf']('week')['toJSDate'](),_0x33d162=_0x141bc6['weekdayLong']||''):_0x141bc6['hasSame'](_0x3640e1,'year')?(_0x9dc390=_0x141bc6['startOf']('month')['toJSDate'](),_0x33d162=_0x141bc6['monthLong']||''):(_0x9dc390=_0x141bc6['startOf']('year')['toJSDate'](),_0x33d162=String(_0x141bc6['year'])),{'startDate':_0x9dc390,'localizedPeriodName':_0x33d162};}class mi extends _0x3191d2{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2097cb,_0x151cd9,_0x452a9d,_0x5cea0c){super(_0x2097cb);const _0x96ad79=di(_0x151cd9,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x151cd9,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x452a9d,this['_requireRevisionName']=_0x5cea0c,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':_0x96ad79}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x580e11){const _0x24d1d6=new ai(this['locale'],_0x580e11,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x24d1d6);}['removeRevision'](_0x935040){const _0x1f8980=this['revisionViews']['find'](_0x4f0e7e=>_0x4f0e7e['id']===_0x935040['id']);this['revisionViews']['remove'](_0x1f8980);}}class rs extends _0x3191d2{constructor(_0x189fce){super(_0x189fce);const _0x28f271=new _0x3ca579();_0x28f271['content']=_0x36297c['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x28f271,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x189fce,'Revision\x20history')]}]});}}class ci extends _0x3191d2{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x168bf2,_0x4fbde9,_0x1f4860,_0x2c7313){super(_0x168bf2);const _0x432a5c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x4fbde9,this['_revisionActions']=_0x1f4860,this['_requireRevisionName']=_0x2c7313,this['on']('select',(_0x502e45,_0x13a45c)=>{this['fire']('revisionSelected',_0x13a45c);}),this['on']('setName',(_0x4630b1,_0x1e4ef9)=>{this['fire']('revisionSetName',_0x1e4ef9);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x168bf2),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x432a5c['if']('isEnabled','ck-disabled',_0x561b5b=>!_0x561b5b)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3be876 of this['_revisions'])this['_addRevision'](_0x3be876);this['_revisions']['on']('add',(_0x3683e8,_0x54ffc9)=>{this['_addRevision'](_0x54ffc9);}),this['_revisions']['on']('remove',(_0x3cb5e3,_0x284e7b)=>{this['_removeRevision'](_0x284e7b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x35d3fa=>_0x35d3fa['revisionViews']['map'](_0x559e2a=>_0x559e2a))['flat']();}['selectRevision'](_0x118f42){for(const _0x15a2db of this['revisionViews'])_0x118f42&&_0x118f42['id']===_0x15a2db['id']?_0x15a2db['select']():_0x15a2db['deselect']();}['highlightRevisions'](_0x4b9c84){for(const _0x1fb812 of this['revisionViews'])_0x4b9c84['some'](({id:_0x4e1bdc})=>_0x4e1bdc===_0x1fb812['id'])?_0x1fb812['highlight']():_0x1fb812['unhighlight']();}['_addRevision'](_0x2383bc){const _0x4274f2=di(_0x2383bc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x580176=this['timePeriodViews']['get'](0x0);_0x580176&&_0x580176['startDate']['getTime']()===_0x4274f2['getTime']()||(_0x580176=new mi(this['locale'],_0x4274f2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x580176)),_0x580176['addRevision'](_0x2383bc);}['_removeRevision'](_0x1a3d9e){const _0x16fcd9=di(_0x1a3d9e['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x16fcd9)['removeRevision'](_0x1a3d9e);}['_getTimePeriodViewByStartDate'](_0x49c4d7){return this['timePeriodViews']['find'](_0x418663=>_0x418663['startDate']['getTime']()===_0x49c4d7['getTime']());}}class w extends _0x46c671{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x2397cf,uid as _0x316b02,Collection as _0x177da0,logWarning as _0x4a53ea,FocusTracker as _0x4413f1,KeystrokeHandler as _0x2b44d5,scrollViewportToShowTarget as _0x221f1c,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x522924}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3bd5f8,set as _0x43c483,unset as _0xd74934,isEqual as _0x50711e}from'lodash-es';import{Plugin as _0x4011e1,PendingActions as _0x3bf72f,icons as _0x5bb3f8,Command as _0x451a85,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x7d3fd1,getMarkerDomElement as _0x51754f,ConfirmMixin as _0x1c84ab,sanitizeEditorConfig as _0x1d984c}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x531090,ViewText as _0x334ef4,ViewElement as _0x3564d6,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x377942,ViewAttributeElement as _0x4c0794,ViewEmptyElement as _0x421417,ViewRawElement as _0x525184,ViewUIElement as _0x44f876,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x54bab1,injectCssTransitionDisabler as ts,submitHandler as _0x5b59ac,LabeledFieldView as nt,createLabeledInputText as _0x42aec0,createDropdown as _0x46c6e4,ListView as _0x1e14d0,ListItemView as te,ButtonView as _0x412521,MenuBarMenuView as _0x3e0dcb,MenuBarMenuListView as _0x367653,MenuBarMenuListItemView as _0x2deb30,MenuBarMenuListItemButtonView as _0x3449d1,ContextualBalloon as _0x53c608,ToolbarSeparatorView as _0x50d3fa,IconView as _0xe7dccb,addListToDropdown as _0x8c893,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 _0x481116}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x2397cf(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x5be490){super(),this['id']=_0x5be490['id']||_0x316b02(),this['creator']=_0x5be490['creator']||null,this['authors']=_0x5be490['authors']||[],this['diffData']=_0x5be490['diffData']||null,this['toVersion']=_0x5be490['toVersion']||0x0,this['fromVersion']=_0x5be490['fromVersion']||0x0,this['set']('name',_0x5be490['name']||''),this['set']('createdAt',_0x5be490['createdAt']||new Date()),this['set']('attributes',_0x5be490['attributes']||{});}['setName'](_0x3a7b42){this['_update']({'name':_0x3a7b42});}['setAttribute'](_0xda8efc,_0x4afd81){const _0x422916=_0x3bd5f8(this['attributes']);_0x43c483(_0x422916,_0xda8efc,_0x4afd81),this['_update']({'attributes':_0x422916});}['removeAttribute'](_0xc80b6e){const _0x43ad0b=_0x3bd5f8(this['attributes']);_0xd74934(_0x43ad0b,_0xc80b6e),this['_update']({'attributes':_0x43ad0b});}['_update'](_0x5633c4,_0x12b5ab=!0x1){let _0x16fab6=!0x1;const _0x3f75a5={'id':this['id']},_0x36d03b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x16cde1 of _0x36d03b){const _0xd2eb96=_0x5633c4[_0x16cde1];void 0x0!==_0xd2eb96&&_0xd2eb96!==this[_0x16cde1]&&(this[_0x16cde1]=_0xd2eb96,_0x3f75a5[_0x16cde1]=_0xd2eb96,_0x16fab6=!0x0);}_0x16fab6&&(_0x3f75a5['authors']&&(_0x3f75a5['authorsIds']=_0x3f75a5['authors']['map'](_0x16bfc4=>_0x16bfc4['id']),delete _0x3f75a5['authors']),this['fire']('_update',_0x3f75a5,_0x12b5ab));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4dcbdc=>_0x4dcbdc['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4011e1{['_revisions'];static get['requires'](){return[_0x7d3fd1];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x379c7b){super(_0x379c7b),this['_revisions']=new _0x177da0();}['afterInit'](){!async function(_0x58bd5a){const _0x8695bd=_0x49043d([0x68,0x45,0x54,0x79,0x31,0x4f,0x6b,0x73,0x39,0x33,0x5a,0x71,0x34,0x67,0x66,0x43,0x41,0x7a,0x42,0x35,0x44,0x58,0x4a,0x49,0x70,0x55,0x6c,0x57,0x63,0x32,0x78,0x76,0x6f,0x53,0x4d,0x62,0x46,0x6e,0x52,0x47,0x4c,0x6a,0x37,0x4e,0x38,0x6d,0x77,0x4b,0x65,0x69,0x72,0x51,0x56,0x59,0x74,0x75,0x64,0x50,0x48,0x30,0x36,0x61]),_0x2f4d99=0xeb829,_0x1acdae=0x9501ecd,_0x32d50d=0x957439d^_0x1acdae,_0x5f50e3=window[_0x49043d([0x44,0x61,0x74,0x65])][_0x49043d([0x6e,0x6f,0x77])](),_0xc39ce9=_0x58bd5a[_0x49043d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4ed62f=new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b52a=>{_0xc39ce9[_0x49043d([0x6f,0x6e,0x63,0x65])](_0x49043d([0x72,0x65,0x61,0x64,0x79]),_0x17b52a);}),_0x2e3e06={[_0x49043d([0x6b,0x74,0x79])]:_0x49043d([0x45,0x43]),[_0x49043d([0x75,0x73,0x65])]:_0x49043d([0x73,0x69,0x67]),[_0x49043d([0x63,0x72,0x76])]:_0x49043d([0x50,0x2d,0x32,0x35,0x36]),[_0x49043d([0x78])]:_0x49043d([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]),[_0x49043d([0x79])]:_0x49043d([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]),[_0x49043d([0x61,0x6c,0x67])]:_0x49043d([0x45,0x53,0x32,0x35,0x36])},_0x1ab99c=_0xc39ce9[_0x49043d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x49043d([0x67,0x65,0x74])](_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2228bc(){let _0x582dc9,_0x14bd43=null,_0x4bf27a=null;try{if(_0x1ab99c==_0x49043d([0x47,0x50,0x4c]))return _0x49043d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x582dc9=_0x3a78ba(),!_0x582dc9)return _0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x582dc9[_0x49043d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4bf27a=_0x2b5195(_0x582dc9[_0x49043d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x582dc9[_0x49043d([0x6a,0x74,0x69])])),await _0x2c319a()?_0x161e1b()?_0x2f3f98()?_0x49043d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xf8973c()?(_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x14bd43=_0x19aa97(_0x49043d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x74,0x72,0x69,0x61,0x6c])&&(_0x14bd43=_0x19aa97(_0x49043d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x49043d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x14bd43=_0x19aa97(_0x49043d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x592510()):_0x49043d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x49043d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1a986d){return _0x49043d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2f3f98(){const _0x46dc86=[_0x49043d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x49043d([0x74,0x72,0x69,0x61,0x6c])][_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5f50e3/0x3e8:0xe10*_0x32d50d;return _0x582dc9[_0x49043d([0x65,0x78,0x70])]<_0x46dc86;}function _0x161e1b(){const _0x2c315b=_0x582dc9[_0x49043d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2c315b)return!0x1;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x2a])))return!0x0;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x52,0x48])))return!0x0;if(_0x2c315b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x52,0x52,0x48]))){if(_0xa9bbdf())return!0x0;if(_0x18caca()||_0x1ee42())return!0x0;}return!0x1;}function _0xf8973c(){const _0x3cd88b=_0x582dc9[_0x49043d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cd88b||0x0==_0x3cd88b[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3e7d70}=new URL(window[_0x49043d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cd88b[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3e7d70))return!0x0;const _0x5546b2=_0x3e7d70[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e]));return _0x3cd88b[_0x49043d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x316777=>_0x316777[_0x49043d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49043d([0x2a])))[_0x49043d([0x6d,0x61,0x70])](_0x29d424=>_0x29d424[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e])))[_0x49043d([0x73,0x6f,0x6d,0x65])](_0x4376b0=>_0x5546b2[_0x49043d([0x65,0x76,0x65,0x72,0x79])]((_0x4f5b5f,_0x5b1812)=>_0x4376b0[_0x5b1812]===_0x4f5b5f||_0x4376b0[_0x5b1812]===_0x49043d([0x2a])));}function _0x592510(){return _0x14bd43&&_0x4bf27a?new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9830e0,_0x551a38)=>{_0x14bd43[_0x49043d([0x74,0x68,0x65,0x6e])](_0x9830e0,_0x551a38),_0x4bf27a[_0x49043d([0x74,0x68,0x65,0x6e])](_0x1c038e=>{_0x1c038e!=_0x49043d([0x56,0x61,0x6c,0x69,0x64])&&_0x9830e0(_0x1c038e);},_0x551a38);}):_0x14bd43||_0x4bf27a||_0x49043d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2b5195(_0x536f99,_0x1c78a5){return new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x508fcc=>{if(_0x145661())return _0x508fcc(_0x49043d([0x56,0x61,0x6c,0x69,0x64]));_0x4545da(),_0xc39ce9[_0x49043d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51f128=!0x1;const _0x28740a=_0x316b02();function _0x3c6b5d(_0x2685b5){return!!_0x2685b5&&(typeof _0x2685b5===_0x49043d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2685b5===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2685b5[_0x49043d([0x74,0x68,0x65,0x6e])]===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2685b5[_0x49043d([0x63,0x61,0x74,0x63,0x68])]===_0x49043d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xe39d48(_0x5c6d9a){_0x2d8477(_0x5c6d9a)[_0x49043d([0x74,0x68,0x65,0x6e])](_0x3b2fea=>{if(!_0x3b2fea||_0x3b2fea[_0x49043d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x49043d([0x6f,0x6b]))return _0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5261e8(_0x2c7853(_0x28740a+_0x1c78a5))!=_0x3b2fea[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x49043d([0x56,0x61,0x6c,0x69,0x64]);})[_0x49043d([0x74,0x68,0x65,0x6e])](_0xb223d1=>(_0x1cd5a9(),_0xb223d1),()=>{const _0x26b84a=_0x5eaf02();return null==_0x26b84a?(_0x1cd5a9(),_0x49043d([0x56,0x61,0x6c,0x69,0x64])):_0x49043d(_0x5f50e3-_0x26b84a>(0x2d5c9acd^_0x1acdae)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x49043d([0x74,0x68,0x65,0x6e])](_0x508fcc)[_0x49043d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x55f38a=0x966f04d^_0x1acdae;function _0x1cd5a9(){const _0x3970eb=_0x49043d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5261e8(_0x2c7853(_0x536f99)),_0x2ecaf8=_0x2b263c(_0x5261e8(window[_0x49043d([0x4d,0x61,0x74,0x68])][_0x49043d([0x63,0x65,0x69,0x6c])](_0x5f50e3/_0x55f38a)));window[_0x49043d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49043d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3970eb,_0x2ecaf8);}function _0x5eaf02(){const _0x4bc19d=_0x49043d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5261e8(_0x2c7853(_0x536f99)),_0x27e178=window[_0x49043d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x49043d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4bc19d);return _0x27e178?window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2b263c(_0x27e178),0x10)*_0x55f38a:null;}function _0x2d8477(_0x2899bb){return new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3703c2,_0x307fdc)=>{_0x2899bb[_0x49043d([0x74,0x68,0x65,0x6e])](_0x3703c2,_0x307fdc),window[_0x49043d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x307fdc,0x951ca0d^_0x1acdae);});}}_0xc39ce9[_0x49043d([0x6f,0x6e])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xae97e9,_0x4b409b)=>{if(_0x4b409b[0x0]!=_0x536f99)return _0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b409b[0x1]={..._0x4b409b[0x1],[_0x49043d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x28740a};},{[_0x49043d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49043d([0x68,0x69,0x67,0x68])}),_0xc39ce9[_0x49043d([0x6f,0x6e])](_0x49043d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25de74=>{_0x3c6b5d(_0x25de74[_0x49043d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51f128=!0x0,_0xe39d48(_0x25de74[_0x49043d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x49043d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x49043d([0x6c,0x6f,0x77])}),_0x4ed62f[_0x49043d([0x74,0x68,0x65,0x6e])](()=>{_0x51f128||_0x508fcc(_0x49043d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x145661(){return _0xc39ce9[_0x49043d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49043d([0x76,0x69,0x65,0x77])][_0x49043d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x49043d([0x61,0x75,0x74,0x6f]);}function _0x4545da(){_0xc39ce9[_0x49043d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x49043d([0x76,0x69,0x65,0x77])][_0x49043d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x49043d([0x61,0x75,0x74,0x6f]);}}function _0x19aa97(_0x2e2060){const _0x1ae8bf=[new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1adacc=>setTimeout(_0x1adacc,0x9592001^_0x1acdae)),_0x4ed62f[_0x49043d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44217d=>{const _0x22ac23=0x9501eca^_0x1acdae,_0x177ed6=_0x58bd5a[_0x49043d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x23ecfa(){_0x177ed6[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x22ac23&&_0x44217d();}_0x23ecfa(),_0x177ed6[_0x49043d([0x6f,0x6e])](_0x49043d([0x61,0x64,0x64]),_0x23ecfa);})),new window[(_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149950=>{function _0x46a145(){for(const _0x1146a6 in window)if(window[_0x49043d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x49043d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1146a6))&&window[_0x1146a6]==_0x2f4d99)return _0x149950();_0xc39ce9[_0x49043d([0x73,0x74,0x61,0x74,0x65])]!=_0x49043d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x49043d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x46a145,0x9500d45^_0x1acdae);}_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x46a145();})];return window[_0x49043d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x49043d([0x72,0x61,0x63,0x65])](_0x1ae8bf)[_0x49043d([0x74,0x68,0x65,0x6e])](()=>_0x2e2060);}async function _0x1c5fd5(){if(await _0x4ed62f,_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11521d=_0x58bd5a[_0x49043d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2c49f2=_0x58bd5a[_0x49043d([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])](_0x11521d[_0x49043d([0x69,0x64])]),_0x2332c8=_0x3fb37b(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2332c8[_0x49043d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11521d['id'],_0x2c49f2?_0x2c49f2['id']:null,!0x0),_0x2332c8[_0x49043d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2332c8[_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2332c8[_0x49043d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x28ccb2,void(_0x2332c8[_0x49043d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x28ccb2);}if(_0x328fc9(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x17691b=_0x3fb37b(_0x49043d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x17691b[_0x49043d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x17691b[_0x49043d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x17691b[_0x49043d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x28ccb2,_0x17691b[_0x49043d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x28ccb2;}_0xc39ce9[_0x49043d([0x6d,0x6f,0x64,0x65,0x6c])][_0x49043d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x28ccb2,_0xc39ce9[_0x49043d([0x6d,0x6f,0x64,0x65,0x6c])][_0x49043d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x28ccb2,_0xc39ce9[_0x49043d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x49043d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa9bbdf(){return _0x328fc9(_0x49043d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3fb37b(_0x49043d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x49043d([0x73,0x74,0x61,0x74,0x65])]==_0x49043d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x18caca(){return _0x328fc9(_0x49043d([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 _0x1ee42(){return _0x328fc9(_0x49043d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1935f3(_0x538a20){const _0x5703a9=_0x1d14f7();_0xc39ce9[_0x5703a9]=_0x49043d([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])+_0x538a20,_0x538a20[_0x49043d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x49043d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1d14f7()]=_0x2f4d99),_0x538a20!=_0x49043d([0x56,0x61,0x6c,0x69,0x64])&&_0x1c5fd5();}function _0x1d14f7(){const _0x39a672=window[_0x49043d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x49043d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x49043d([0x6e,0x6f,0x77])]())[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x49043d([0x2e]),'');let _0x1ea287=_0x49043d([0x68]);for(let _0x56bb21=0x0;_0x56bb21<_0x39a672[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56bb21+=0x2){let _0x3eb1cb=window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x39a672[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56bb21,_0x56bb21+0x2));_0x3eb1cb>=_0x8695bd[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3eb1cb-=_0x8695bd[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1ea287+=_0x8695bd[_0x3eb1cb];}return _0x1ea287;}function _0x3a78ba(){const _0x22dc4c=_0x1ab99c[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e]));if(0x3!=_0x22dc4c[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x348721(_0x22dc4c[0x1]);function _0x348721(_0x2c5ea5){const _0x37bd9b=_0x55397a(_0x2c5ea5);return _0x37bd9b&&_0xf013a2()?_0x37bd9b:null;function _0xf013a2(){const _0x516995=_0x37bd9b[_0x49043d([0x6a,0x74,0x69])],_0x96c8f3=window[_0x49043d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x516995[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x516995[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x36c510={..._0x37bd9b,[_0x49043d([0x6a,0x74,0x69])]:_0x516995[_0x49043d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x516995[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x36c510[_0x49043d([0x76,0x63])],_0x2c7853(_0x36c510)==_0x96c8f3;}}}async function _0x2c319a(){let _0x499ed0=!0x0;try{const _0x3a0e6c=_0x1ab99c[_0x49043d([0x73,0x70,0x6c,0x69,0x74])](_0x49043d([0x2e])),[_0x51bcea,_0x1a4b79,_0x3465c3]=_0x3a0e6c;return _0x4a0ecb(_0x51bcea),await _0x288e30(_0x51bcea,_0x1a4b79,_0x3465c3),_0x499ed0;}catch(_0x442f73){return!0x1;}function _0x4a0ecb(_0x4b47e0){const _0x426233=_0x55397a(_0x4b47e0);_0x426233&&_0x426233[_0x49043d([0x61,0x6c,0x67])]==_0x49043d([0x45,0x53,0x32,0x35,0x36])||(_0x499ed0=!0x1);}async function _0x288e30(_0x4f3595,_0x9b33ed,_0x3b313e){const _0x559829=window[_0x49043d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x49043d([0x66,0x72,0x6f,0x6d])](_0x27ee61(_0x3b313e),_0x1388e3=>_0x1388e3[_0x49043d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x301471=new window[(_0x49043d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x49043d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4f3595+_0x49043d([0x2e])+_0x9b33ed),_0x19e646=window[_0x49043d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x49043d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x19e646)return;const _0x31f420=await _0x19e646[_0x49043d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x49043d([0x6a,0x77,0x6b]),_0x2e3e06,{[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x45,0x43,0x44,0x53,0x41]),[_0x49043d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x49043d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x19e646[_0x49043d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x45,0x43,0x44,0x53,0x41]),[_0x49043d([0x68,0x61,0x73,0x68])]:{[_0x49043d([0x6e,0x61,0x6d,0x65])]:_0x49043d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x31f420,_0x559829,_0x301471)||(_0x499ed0=!0x1);}}function _0x55397a(_0x264dbc){return _0x264dbc[_0x49043d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x49043d([0x65,0x79]))?JSON[_0x49043d([0x70,0x61,0x72,0x73,0x65])](_0x27ee61(_0x264dbc)):null;}function _0x27ee61(_0x33a59b){return window[_0x49043d([0x61,0x74,0x6f,0x62])](_0x33a59b[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x49043d([0x2b]))[_0x49043d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x49043d([0x2f])));}function _0x2c7853(_0x563f4f){let _0x2e6506=0x1505;function _0x3c02c2(_0x416232){for(let _0x5dd87e=0x0;_0x5dd87e<_0x416232[_0x49043d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5dd87e++){const _0x501752=_0x416232[_0x49043d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5dd87e);_0x2e6506=(_0x2e6506<<0x5)+_0x2e6506+_0x501752,_0x2e6506&=_0x2e6506;}}function _0x2cdac5(_0x422f30){Array[_0x49043d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x422f30)?_0x422f30[_0x49043d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2cdac5):_0x422f30&&typeof _0x422f30==_0x49043d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x49043d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x422f30)[_0x49043d([0x73,0x6f,0x72,0x74])]()[_0x49043d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x179511,_0x2fd295])=>{_0x3c02c2(_0x179511),_0x2cdac5(_0x2fd295);}):_0x3c02c2(window[_0x49043d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x422f30));}return _0x2cdac5(_0x563f4f),_0x2e6506>>>0x0;}function _0x5261e8(_0x1a4eb5){return _0x1a4eb5[_0x49043d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x49043d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x49043d([0x30]));}function _0x2b263c(_0x4daff3){return _0x4daff3[_0x49043d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x49043d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x49043d([0x6a,0x6f,0x69,0x6e])]('');}function _0x328fc9(_0x237f12){return _0xc39ce9[_0x49043d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49043d([0x68,0x61,0x73])](_0x237f12);}function _0x3fb37b(_0x35d41e){return _0xc39ce9[_0x49043d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x49043d([0x67,0x65,0x74])](_0x35d41e);}function _0x28ccb2(){}function _0x49043d(_0x4f1ed4){return _0x4f1ed4['map'](_0x2923c1=>String['fromCharCode'](_0x2923c1))['join']('');}_0x1935f3(await _0x2228bc());}(this);}['createRevision'](_0x59270d){const _0x4b7870=this['editor']['plugins']['get']('Users');return new a({'id':_0x59270d['id'],'name':_0x59270d['name'],'creator':_0x59270d['creatorId']?_0x4b7870['getUser'](_0x59270d['creatorId']):null,'diffData':_0x59270d['diffData']||_0x59270d['data'],'authors':_0x59270d['authorsIds']['map'](_0x33af71=>_0x4b7870['getUser'](_0x33af71)),'createdAt':new Date(_0x59270d['createdAt']),'attributes':_0x59270d['attributes'],'fromVersion':_0x59270d['fromVersion'],'toVersion':_0x59270d['toVersion']});}['addRevision'](_0x5177a7,_0x11de3c=0x0){this['_revisions']['add'](_0x5177a7,_0x11de3c);}['getRevision'](_0x1e5c08){return this['_revisions']['get'](_0x1e5c08);}['getRevisions'](_0x17e97d={'toJSON':!0x1}){const _0x171253=Array['from'](this['_revisions']);return _0x171253['reverse'](),_0x17e97d['toJSON']?_0x171253['map'](_0x294f44=>_0x294f44['toJSON']()):_0x171253;}['getIndex'](_0x40b616){return this['_revisions']['getIndex'](_0x40b616);}['getEarlierVisibleRevision'](_0x260528){const [,_0x33bb73]=this['getRevisionsIterator'](_0x260528,{'direction':'earlier'});return _0x33bb73;}['getLaterVisibleRevision'](_0xc2553b){const [,_0x6c6bf5]=this['getRevisionsIterator'](_0xc2553b,{'direction':'later'});return _0x6c6bf5;}['getRevisionsInDiff'](_0x4b772c){const _0x30aa00=[];for(const _0x3ff6f2 of this['getRevisionsIterator'](_0x4b772c['newRevisionId']))if(_0x30aa00['push'](_0x3ff6f2),_0x3ff6f2['id']===_0x4b772c['oldRevisionId'])break;return _0x30aa00;}*['getRevisionsIterator'](_0x4d3e22,{direction:_0x2f908e='earlier',filter:_0x43c480=()=>!0x0}={}){const _0x5b3486='earlier'===_0x2f908e?0x1:-0x1;let _0x308167=this['_revisions']['get'](_0x4d3e22),_0xaaf6d3=this['getIndex'](_0x308167);for(yield _0x308167;_0x308167;){if(_0xaaf6d3+=_0x5b3486,_0x308167=this['getRevision'](_0xaaf6d3),!_0x308167)return;_0x43c480(_0x308167)&&(yield _0x308167);}}}function m(_0x3f01ef,_0x30b729,_0x6c8713){const t=_0x3f01ef['t'];switch(_0x30b729){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'},_0x6c8713);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x6c8713);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':_0x377942,'a':_0x4c0794,'e':_0x421417,'r':_0x525184,'u':_0x44f876};class l extends _0x4011e1{['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[_0x7d3fd1,j,_0x3bf72f];}constructor(_0x5248bc){super(_0x5248bc),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 _0x4d2a71=_0x316b02();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4d2a71},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 _0x332053=this['repository']['getRevision'](0x0),_0x5c2e8f=_0x332053&&null===_0x332053['creator']?_0x332053:null;if(this['_continueCurrentRevision']=!!_0x5c2e8f&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5df354=this['_source']['getCurrentRevisionId'](),_0x299a79=this['repository']['getRevision'](_0x5df354);if(_0x299a79)this['_startingVersion']=_0x299a79['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5bbc7b=this['_source']['history']['_operations']['find'](_0x53b33f=>!_0x53b33f['_isInit']),_0x282440=_0x5bbc7b?_0x5bbc7b['baseVersion']:this['_source']['history']['version'];_0x332053?(_0x332053['toVersion']<_0x282440&&_0x332053['_update']({'toVersion':_0x282440}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id'],this['_startingVersion']=_0x5c2e8f['fromVersion']):(this['_startingVersion']=_0x332053['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x282440,this['_continueCurrentRevision']=!0x1);}}else _0x5c2e8f&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5c2e8f['toVersion'],this['editor']['model']['document']['history']['version']),_0x5c2e8f['fromVersion']===_0x5c2e8f['toVersion']?(0x0!==_0x5c2e8f['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5c2e8f['id'],this['_startingVersion']=_0x5c2e8f['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',_0x24fb6a=>!_0x24fb6a),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3d0d33=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x2eec86;for(const _0x4ac57f in _0x3d0d33){const _0x2d68f6=_0x4ac57f,_0xa85a55=_0x3d0d33[_0x2d68f6];if('revisionHistoryLicenseKeyValid'==_0xa85a55||'revisionHistoryLicenseKeyInvalid'==_0xa85a55||'revisionHistoryLicenseKeyExpired'==_0xa85a55||'revisionHistoryLicenseKeyDomainLimit'==_0xa85a55||'revisionHistoryLicenseKeyNotAllowed'==_0xa85a55||'revisionHistoryLicenseKeyEvaluationLimit'==_0xa85a55||'revisionHistoryLicenseKeyTrialLimit'==_0xa85a55||'revisionHistoryLicenseKeyDevelopmentLimit'==_0xa85a55||'revisionHistoryLicenseKeyUsageLimit'==_0xa85a55){delete _0x3d0d33[_0x2d68f6],_0x2eec86=_0xa85a55,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x2eec86&&_0x3d0d33['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x2eec86&&_0x3d0d33['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x2eec86&&_0x3d0d33['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x2eec86&&_0x3d0d33['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fe49b=this['repository']['getRevision'](0x0),_0x2a3d64=await this['getRevisionDocumentData'](_0x2fe49b),_0x578939=await this['getRevisionRootsAttributes'](_0x2fe49b);this['_replaceEditorDataWithRevisionData'](_0x2a3d64,_0x578939);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x582465){this['_source']=_0x582465;}async['update'](){const _0x2098da=await this['_source']['getLatestVersion']();if(_0x2098da>this['currentRevision']['toVersion']){await this['_loadState']();const _0x72a971=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2098da});_0x72a971['authors']=_0x72a971['authorsIds']['map'](_0x505d16=>this['editor']['plugins']['get']('Users')['getUser'](_0x505d16)),this['currentRevision']['_update'](_0x72a971);}}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'](_0x55298d={},_0x3cf13d=null){const _0x15ee4a=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3cf13d>this['currentRevision']['toVersion']&&(_0x3cf13d=null),null===_0x3cf13d&&(_0x3cf13d=await this['_source']['getLatestVersion']());const _0x41f414=this['_getFromVersion'](_0x3cf13d),_0x52c563=this['buildRevisionData']({'from':_0x41f414,'to':_0x3cf13d});if(this['currentRevision']['toVersion']<_0x3cf13d){const _0x42f036=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3cf13d,'to':_0x3cf13d});_0x42f036['authors']=[],_0x42f036['authorsIds']=[],_0x42f036['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x42f036,!0x0),delete _0x42f036['authors'],_0x15ee4a['push'](_0x42f036);}_0x55298d['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x55298d['name']=_0x55298d['name']||null,_0x55298d['id']=_0x55298d['id']||_0x316b02(),_0x55298d={..._0x55298d,..._0x52c563};const _0x46de7b=this['addRevisionData'](_0x55298d);_0x15ee4a['push'](_0x55298d);const _0x135ed4=this['repository']['getIndex'](_0x46de7b);if(0x0!==_0x135ed4){const _0x2f0e06=this['repository']['getRevision'](_0x135ed4-0x1);if(_0x2f0e06['fromVersion']!==_0x3cf13d){const _0xabd258=this['_revisionDataBuilder']['getData'](_0x3cf13d,_0x2f0e06['toVersion']),_0x17c21a={'id':_0x2f0e06['id'],'diffData':_0xabd258['diffData'],'authorsIds':_0xabd258['authorsIds'],'authors':_0xabd258['authorsIds']['map'](_0x14d805=>this['editor']['plugins']['get']('Users')['getUser'](_0x14d805)),'fromVersion':_0x3cf13d};_0x2f0e06===this['currentRevision']&&(_0x17c21a['createdAt']=new Date(_0x55298d['createdAt']['getTime']()+0xa)),_0x2f0e06['_update'](_0x17c21a,!0x0),delete _0x17c21a['authors'],_0x15ee4a['push'](_0x17c21a);}}if(this['adapter']){for(const _0x1f6114 of _0x15ee4a)this['_bufferUpdate'](_0x1f6114['id'],_0x1f6114,!0x0);this['sendBufferedUpdates']();}return _0x46de7b;}['addRevisionData'](_0x5597af){const _0xbc6ef5=this['repository']['createRevision'](_0x5597af);return this['adapter']&&_0xbc6ef5['on']('_update',(_0x26d74e,_0x1046ca,_0x1acd5f)=>{_0x1acd5f||(this['_bufferUpdate'](_0x1046ca['id'],_0x1046ca,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xbc6ef5,this['_findInsertionIndex'](_0xbc6ef5)),_0xbc6ef5;}async['getRevisionDocumentData'](_0x16a195){await this['_loadRevisionData'](_0x16a195);const _0x55ee29={};for(const _0x59719b in _0x16a195['diffData']){if(_0x16a195['diffData'][_0x59719b]['attachChange']&&!_0x16a195['diffData'][_0x59719b]['attachChange']['isAttached'])continue;const _0x394fba=this['_removeRevisionMarkers'](JSON['parse'](_0x16a195['diffData'][_0x59719b]['insertions'])),_0xeaf250=this['editor']['editing']['view']['document'],_0x1ea224=new _0x531090(_0xeaf250,_0x394fba['map'](_0x54a78d=>C(_0x54a78d,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x55ee29[_0x59719b]=this['editor']['data']['processor']['toData'](_0x1ea224),this['editor']['data']['processor']['useFillerType']('default');}return _0x55ee29;}async['getRevisionRootsAttributes'](_0x58602d){await this['_loadRevisionData'](_0x58602d);const _0x13522c={};for(const _0x2968ec in _0x58602d['diffData'])_0x58602d['diffData'][_0x2968ec]['attachChange']&&!_0x58602d['diffData'][_0x2968ec]['attachChange']['isAttached']||(_0x13522c[_0x2968ec]=_0x58602d['diffData'][_0x2968ec]['attributesAfter']||{});return _0x13522c;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x31b6c0=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3eca5d=0x0;_0x3eca5d<_0x31b6c0['length'];_0x3eca5d++){const _0x3ef93f=_0x31b6c0[_0x3eca5d];let _0x5622b3=!0x1;for(const _0x52461c of Object['keys'](_0x3ef93f))void 0x0===_0x3ef93f[_0x52461c]?delete _0x3ef93f[_0x52461c]:'id'!==_0x52461c&&(_0x5622b3=!0x0);_0x5622b3||(_0x31b6c0[_0x3eca5d]=null);}if(_0x31b6c0=_0x31b6c0['filter'](_0x532fe9=>null!==_0x532fe9),!_0x31b6c0['length'])return;for(let _0x506b8e=0x0;_0x506b8e<_0x31b6c0['length'];_0x506b8e++){const _0x4178e7=_0x31b6c0[_0x506b8e];void 0x0!==_0x4178e7['fromVersion']&&void 0x0===_0x4178e7['toVersion']&&(_0x4178e7['toVersion']=this['repository']['getRevision'](_0x4178e7['id'])['toVersion']),void 0x0!==_0x4178e7['toVersion']&&void 0x0===_0x4178e7['fromVersion']&&(_0x4178e7['fromVersion']=this['repository']['getRevision'](_0x4178e7['id'])['fromVersion']);}const _0x1c2b55=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x31b6c0,_0x1c2b55)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0xf768ca=>{if(_0xf768ca){for(const _0x2b26b7 of _0xf768ca)this['setRevisionData']({'id':_0x2b26b7['id'],'createdAt':_0x2b26b7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xef7345,_0xc0e1ed){let _0x135152=this['editor']['config']['get']('initialData'),_0x303c29=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x135152){_0x135152={};for(const _0x1136d3 of this['editor']['model']['document']['getRootNames']())_0x135152[_0x1136d3]='';}if('string'==typeof _0x135152&&(_0x135152={'main':_0x135152}),void 0x0===_0x303c29){_0x303c29={};for(const _0x5b5b39 of this['editor']['model']['document']['getRootNames']())_0x303c29[_0x5b5b39]={};}let _0x1baebf=!0x1;const _0x54275b=Object['keys'](_0x135152),_0x57aecd=Object['keys'](_0xef7345);for(const _0x2fe3e0 of _0x54275b){if(_0x135152[_0x2fe3e0]!==_0xef7345[_0x2fe3e0]&&''!==_0x135152[_0x2fe3e0]['trim']()){_0x1baebf=!0x0;break;}if(!_0x50711e(_0x303c29[_0x2fe3e0],_0xc0e1ed[_0x2fe3e0])&&Object['keys'](_0x303c29[_0x2fe3e0])['length']>0x0){_0x1baebf=!0x0;break;}}_0x1baebf||(_0x1baebf=_0x57aecd['some'](_0x2c8f6a=>!this['editor']['model']['document']['getRoot'](_0x2c8f6a))),_0x1baebf&&_0x4a53ea('editor-initial-data-replaced-with-revision-data',{'editorData':_0x135152,'editorRootsAttributes':_0x303c29,'revisionData':_0xef7345,'revisionRootsAttributes':_0xc0e1ed}),this['editor']['config']['set']('initialData',_0xef7345),this['editor']['config']['set']('rootsAttributes',_0xc0e1ed);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4c65d8=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4c65d8['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x212ce9){const _0x4cc93b=this['repository']['getRevisions']();_0x4cc93b['reverse']();let _0x53c205=0x0;for(;_0x53c205<_0x4cc93b['length'];){const _0xb692b2=_0x4cc93b[_0x53c205];if(_0xb692b2===this['currentRevision']){_0x53c205++;continue;}if(_0xb692b2['id']===this['_initialRevisionId'])break;const _0x290766=_0x212ce9['toVersion']-_0xb692b2['toVersion']||_0x212ce9['fromVersion']-_0xb692b2['fromVersion'];if(_0x290766>0x0)break;if(_0x290766<0x0)_0x53c205++;else{if(!_0x212ce9['creator']&&_0xb692b2['creator'])break;if(_0xb692b2['creator']||!_0x212ce9['creator']){if(_0x212ce9['createdAt']>_0xb692b2['createdAt'])break;_0x53c205++;}else _0x53c205++;}}return _0x53c205;}['setRevisionData'](_0x24c6ec){const _0x18414d=this['repository']['getRevision'](_0x24c6ec['id']);if(_0x24c6ec['createdAt']&&(_0x24c6ec['createdAt']=new Date(_0x24c6ec['createdAt'])),_0x24c6ec['authorsIds']){const _0x4436dd=this['editor']['plugins']['get']('Users');_0x24c6ec['authors']=_0x24c6ec['authorsIds']['map'](_0x2ab625=>_0x4436dd['getUser'](_0x2ab625));}_0x18414d['_update'](_0x24c6ec,!0x0);}['buildRevisionData']({revision:_0x1e8b65=null,from:_0xae5550=null,to:_0x35db1a=null}){_0xae5550=null!==_0xae5550?_0xae5550:_0x1e8b65['fromVersion'],_0x35db1a=null!==_0x35db1a?_0x35db1a:_0x1e8b65['toVersion'];const _0x3efb1c=this['_revisionDataBuilder']['getData'](_0xae5550,_0x35db1a),_0x570f78={'diffData':_0x3efb1c['diffData'],'authorsIds':_0x3efb1c['authorsIds'],'fromVersion':_0xae5550,'toVersion':_0x35db1a};if(!_0x1e8b65||_0x35db1a!==_0x1e8b65['toVersion']){const _0x1e0eeb=_0x35db1a-0x1,_0x45a435=this['_source']['history']['getOperation'](_0x1e0eeb);_0x570f78['createdAt']=_0x45a435&&_0x45a435['createdAt']||new Date();}if(this['_loadedStateData']&&_0xae5550===this['_loadedStateData']['fromVersion']){for(const _0x38afd8 of this['_loadedStateData']['authors'])_0x570f78['authorsIds']['includes'](_0x38afd8['id'])||_0x570f78['authorsIds']['push'](_0x38afd8['id']);}return _0x570f78;}['_loadRevisionData'](_0x54cfb0){if(!_0x54cfb0||_0x54cfb0['diffData'])return Promise['resolve']();{const _0x586e79=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x586e79,'revisionId':_0x54cfb0['id']})['then'](_0x5d99d5=>{_0x54cfb0['diffData']=_0x5d99d5['diffData'];});}}['_bufferUpdate'](_0x36b381,_0x54a341,_0x20c8a2){if(this['_bufferedUpdates']['has'](_0x36b381)){const _0x1e88a1=this['_bufferedUpdates']['get'](_0x36b381);_0x54a341=_0x20c8a2?{..._0x1e88a1,..._0x54a341}:{..._0x54a341,..._0x1e88a1};}this['_bufferedUpdates']['set'](_0x36b381,_0x54a341);}['_getFromVersion'](_0x2495f5){const _0x52787a=this['repository']['getRevisions']();_0x52787a['reverse'](),_0x52787a['shift']();const _0x59e854=_0x52787a['find'](_0x26ce32=>_0x26ce32['toVersion']<=_0x2495f5)['toVersion'];return _0x59e854<this['_startingVersion']?this['_startingVersion']:_0x59e854;}['_createInitialRevision'](_0x150ccb){const _0x4e08f4=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x4e08f4)this['_initialRevisionId']=_0x4e08f4['id'];else{const _0x3c73cc=!this['editor']['model']['document']['roots']['find'](_0x12fe74=>this['editor']['model']['hasContent'](_0x12fe74)),_0x26a2b8=this['editor']['plugins']['get']('Users')['me']['id'],_0x4b2c06=m(this['editor']['locale'],_0x3c73cc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x150ccb,'to':_0x150ccb,'id':this['_initialRevisionId'],'name':_0x4b2c06,'creatorId':_0x26a2b8});}}['_createCurrentRevision'](_0x397f55){const _0x2cbff3=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2cbff3),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x397f55,'to':_0x397f55,'id':_0x2cbff3,'name':'','creatorId':null}));}['_makeRevision']({name:_0x5f44d4,from:_0x5a81ef,to:_0x355053,creatorId:_0x5b778b,id:_0x2b0e44}){const _0x58764a=this['buildRevisionData']({'from':_0x5a81ef,'to':_0x355053});_0x58764a['name']=_0x5f44d4,_0x58764a['creatorId']=_0x5b778b,_0x58764a['id']=_0x2b0e44;const _0x2231b6=this['addRevisionData'](_0x58764a);return this['adapter']&&this['_bufferUpdate'](_0x58764a['id'],_0x58764a,!0x0),_0x2231b6;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x2cd8dc){return(_0x2cd8dc=_0x2cd8dc['filter'](_0x79b15e=>!_0x79b15e['name']||'revision-start'!==_0x79b15e['name']&&'revision-end'!==_0x79b15e['name']))['forEach'](_0x286492=>{'string'!=typeof _0x286492&&(_0x286492['children']=this['_removeRevisionMarkers'](_0x286492['children']),_0x286492['attributes']=_0x286492['attributes']['filter'](_0x1dfcc2=>!_0x1dfcc2[0x0]['startsWith']('data-revision-')));}),_0x2cd8dc;}}function C(_0xd7302c,_0x8330c3){const _0x562a2d=_0x8330c3['editing']['view']['document'];if('string'==typeof _0xd7302c)return new _0x334ef4(_0x562a2d,_0xd7302c);{const _0x14b628=_0xd7302c['children']['map'](_0x2303c9=>C(_0x2303c9,_0x8330c3));return new(P[_0xd7302c['type']]||_0x3564d6)(_0x562a2d,_0xd7302c['name'],_0xd7302c['attributes'],_0x14b628);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4b3335){this['editor']=_0x4b3335,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'](_0x173811){this['source']=_0x173811;const _0x4f0028=new Map(),_0x3c12e9=new Map(),_0x3f1fa9=this['editor']['model']['document']['roots']['map'](_0x1bfa6d=>_0x1bfa6d['rootName']);for(const _0x1364bc of _0x3f1fa9){const _0x4af53d=this['editor']['model']['document']['getRoot'](_0x1364bc),_0x2e3fdf=T(_0x4af53d);_0x4f0028['set'](_0x1364bc,_0x2e3fdf),_0x3c12e9['set'](_0x1364bc,Object['fromEntries'](_0x4af53d['getAttributes']()));}const _0x3e1ec3=Array['from'](this['editor']['model']['markers'])['map'](_0x33701e=>[_0x33701e['name'],_0x33701e['getRange']()]),_0x52702b=this['source']['version'];this['_saveMetaData'](_0x52702b,_0x4f0028,_0x3e1ec3,_0x3c12e9),this['_startingRevisionId']=this['_revisionId'];const _0xc6c9ac=new Map(),_0x266a75=new Map();for(const _0x45cfc6 of _0x3f1fa9){const _0x4974e3=F(_0x45cfc6);_0xc6c9ac['set'](_0x45cfc6,_0x4974e3),_0x266a75['set'](_0x45cfc6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xc6c9ac,[],_0x266a75);}['getData'](_0x403e1c,_0x140cb2){if(this['_lastFrom']===_0x403e1c&&this['_lastTo']<=_0x140cb2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x140cb2,!0x0);else{if(!this['_savedMetaData']['has'](_0x403e1c)){const _0x2dbed7=this['_getPreviousFrom'](_0x403e1c);this['_calculateMetaData'](_0x2dbed7,_0x403e1c,!0x1);}this['_calculateMetaData'](_0x403e1c,_0x140cb2,!0x0);}return this['_lastFrom']=_0x403e1c,this['_lastTo']=_0x140cb2,this['_getState']();}['loadState'](_0x3f3c62){this['_reset'](),this['_lastFrom']=_0x3f3c62['fromVersion'],this['_lastTo']=_0x3f3c62['toVersion'];for(const _0x5f3926 in _0x3f3c62['diffData']){const _0x16f0a1=_0x3f3c62['diffData'][_0x5f3926]['attachChange'],_0x50c413=_0x3bd5f8(_0x3f3c62['diffData'][_0x5f3926]['attributesBefore'])||{},_0x5cb073=this['_makeModelFromViewString'](_0x3f3c62['diffData'][_0x5f3926]['deletions']);_0x5cb073['rootName']=_0x5f3926,_0x5cb073['_isAttached']=!_0x16f0a1||!_0x16f0a1['isAttached'],_0x5cb073['isAttached']=()=>_0x5cb073['_isAttached'],this['_baseRoots']['set'](_0x5f3926,_0x5cb073),this['_baseRootsAttributes']['set'](_0x5f3926,_0x50c413),_0x16f0a1&&this['_touchedRoots']['set'](_0x5f3926,_0x16f0a1);const _0x253514=this['_makeIdsRoot'](_0x5cb073);this['_baseIdsRoots']['set'](_0x5f3926,_0x253514);for(const [_0x3e34f7,_0x5d00d6]of _0x5cb073['markers']){if(!_0x3e34f7['startsWith']('revision:'))continue;const _0x7f732e=_0x3e34f7['split'](':')[0x2];for(const _0x33a159 of _0x5d00d6['getWalker']({'singleCharacters':!0x0})){const _0x9c3c90=this['_getVidAttributeName'](_0x33a159),_0x2bb5b5='elementEnd'==_0x33a159['type']?_0x33a159['previousPosition']['path']['slice'](0x0,-0x1):_0x33a159['previousPosition']['path'],_0x2d5a39=_0x253514['getNodeByPath'](_0x2bb5b5)['getAttribute'](_0x9c3c90);this['_touched']['set'](_0x2d5a39,{'userId':_0x7f732e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x52f86a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4ba05a=>!this['_touched']['has'](_0x4ba05a));let _0xa11c0e=0x0;const _0x338961=new Map();for(const _0x4c404a in _0x3f3c62['diffData']){const _0x346575=_0x3f3c62['diffData'][_0x4c404a]['attachChange'],_0x1a4e11=_0x3bd5f8(_0x3f3c62['diffData'][_0x4c404a]['attributesAfter'])||{},_0x1d374c=this['_makeModelFromViewString'](_0x3f3c62['diffData'][_0x4c404a]['insertions']);_0x1d374c['rootName']=_0x4c404a,_0x1d374c['_isAttached']=!_0x346575||_0x346575['isAttached'],_0x1d374c['isAttached']=()=>_0x1d374c['_isAttached'],this['_diffRoots']['set'](_0x4c404a,_0x1d374c),this['_diffRootsAttributes']['set'](_0x4c404a,_0x1a4e11);const _0x4c9429=this['_makeIdsRoot'](_0x1d374c,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x4c404a,_0x4c9429),_0x338961['set'](_0x4c404a,_0x1d374c['isAttached']()?_0x1a4e11:{});for(const [_0x3f42f9,_0x250213]of _0x1d374c['markers']){if(!_0x3f42f9['startsWith']('revision:'))continue;const _0x2a9bb8=_0x3f42f9['split'](':')[0x2];for(const _0x569430 of _0x250213['getWalker']({'singleCharacters':!0x0})){const _0x5013fb=this['_getVidAttributeName'](_0x569430),_0x4e0a20=this['_revisionId']++,_0x3469f4='elementEnd'==_0x569430['type']?_0x569430['previousPosition']['path']['slice'](0x0,-0x1):_0x569430['previousPosition']['path'];_0x4c9429['getNodeByPath'](_0x3469f4)['_setAttribute'](_0x5013fb,_0x4e0a20),this['_touched']['set'](_0x4e0a20,{'userId':_0x2a9bb8});}}for(const _0x3db3e6 of this['editor']['model']['createRangeIn'](_0x1d374c)['getWalker']({'singleCharacters':!0x0})){const _0x20525f=this['_getVidAttributeName'](_0x3db3e6),_0x2204dc='elementEnd'==_0x3db3e6['type']?_0x3db3e6['previousPosition']['path']['slice'](0x0,-0x1):_0x3db3e6['previousPosition']['path'],_0x2d0104=_0x4c9429['getNodeByPath'](_0x2204dc);_0x2d0104['getAttribute'](_0x20525f)>0x0||_0x2d0104['_setAttribute'](_0x20525f,_0x52f86a[_0xa11c0e++]);}for(const [_0x9d005a,_0x522c4d]of _0x1d374c['markers'])_0x9d005a['startsWith']('revision:')||this['_markers']['set'](_0x9d005a,_0x522c4d);}const _0x47a800=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x47a800),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x47a800,0x1));const _0x4c1a17=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4c1a17),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4c1a17,0x1));const _0x1d2a31=Array['from'](this['_diffRoots'])['map'](([_0x2f9d4e,_0x3a0832])=>[_0x2f9d4e,T(_0x3a0832)]);this['_saveMetaData'](this['_lastTo'],_0x1d2a31,this['_markers'],_0x338961);}['_makeModelFromViewString'](_0x1e1771){const _0x43294a=JSON['parse'](_0x1e1771),_0x4ce08e=this['editor']['editing']['view']['document'],_0x12e73d=new _0x531090(_0x4ce08e,_0x43294a['map'](_0x3135f7=>C(_0x3135f7,this['editor'])));return this['editor']['data']['toModel'](_0x12e73d);}['_saveMetaData'](_0x6d1c57,_0x5b59a8,_0xa46c38,_0x5a1628){const _0x2f8738=new Map(_0x5b59a8),_0x4eebd0=new Map(_0x3bd5f8(_0x5a1628)),_0x4021c=new Map();for(const [_0x32cd40,_0x4538c7]of _0xa46c38)_0x4021c['set'](_0x32cd40,{'start':_0x4538c7['start']['clone'](),'end':_0x4538c7['end']['clone'](),'rootName':_0x4538c7['root']['rootName']});this['_savedMetaData']['set'](_0x6d1c57,{'roots':_0x2f8738,'markers':_0x4021c,'rootsAttributes':_0x4eebd0});}['_removeMetaData'](_0xdcb301){this['_savedMetaData']['delete'](_0xdcb301);}['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'](_0x41bf34,_0x4fcbd7=null){let _0x255d1f=null;_0x41bf34['is']('documentFragment')||(_0x255d1f=new ft(_0x41bf34['name'],{'vid_start':null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++}));const _0x1b7ea3=[];for(const _0x21380c of _0x41bf34['getChildren']())if(_0x21380c['is']('element')){_0x1b7ea3['push'](this['_makeIdsRoot'](_0x21380c,_0x4fcbd7));const _0x36bedb=_0x1b7ea3[_0x1b7ea3['length']-0x1];null!==_0x4fcbd7&&(_0x4fcbd7=_0x36bedb['is']('element','$text')?_0x36bedb['getAttribute']('vid')+0x1:_0x36bedb['getAttribute']('vid_end')+0x1);}else{for(let _0x4528b4=0x0;_0x4528b4<_0x21380c['offsetSize'];_0x4528b4++)_0x1b7ea3['push'](new ft('$text',{'vid':null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++}));}if(_0x41bf34['is']('documentFragment')){const _0x5611c8=F(_0x41bf34['rootName']);return _0x5611c8['_insertChild'](0x0,_0x1b7ea3),_0x5611c8;}return _0x255d1f['_setAttribute']('vid_end',null===_0x4fcbd7?this['_revisionId']++:_0x4fcbd7++),_0x255d1f['_insertChild'](0x0,_0x1b7ea3),_0x255d1f;}['_calculateMetaData'](_0x488d63,_0x5a687e,_0x3e7794){this['_reset']();const {roots:_0x406975,markers:_0x2aa37f,rootsAttributes:_0x40c257}=this['_savedMetaData']['get'](_0x488d63);this['_baseRoots']=new Map(_0x406975),this['_baseRootsAttributes']=new Map(_0x3bd5f8(_0x40c257));for(const [_0x2f9c5c,_0x443c88]of this['_baseRoots'])if('$graveyard'!==_0x2f9c5c&&(this['_diffRoots']['set'](_0x2f9c5c,T(_0x443c88)),this['_diffRootsAttributes']=new Map(_0x3bd5f8(_0x40c257)),_0x3e7794)){const _0x4518a3=this['_revisionId'];this['_idsRoots']['set'](_0x2f9c5c,this['_makeIdsRoot'](_0x443c88)),this['_baseIdsRoots']['set'](_0x2f9c5c,this['_makeIdsRoot'](_0x443c88,_0x4518a3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3e7794&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x442b9d,_0x268693]of _0x2aa37f){const _0x46e0bf=this['_baseRoots']['get'](_0x268693['rootName']),_0x32313c=this['_diffRoots']['get'](_0x268693['rootName']),_0x373ac1=new vt(this['_fixPosition'](_0x268693['start'],_0x46e0bf),this['_fixPosition'](_0x268693['end'],_0x46e0bf)),_0x4f79b8=this['_fixRange'](_0x373ac1,_0x32313c);_0x46e0bf['markers']['set'](_0x442b9d,_0x373ac1),this['_markers']['set'](_0x442b9d,_0x4f79b8);}this['_applyOperations'](_0x488d63,_0x5a687e,_0x3e7794);}['_applyOperations'](_0x5336cf,_0x54bcc7,_0x59adda){for(const _0x56ac2e of this['source']['getOperations'](_0x5336cf,_0x54bcc7))this['_handleOperation'](_0x56ac2e,_0x59adda);for(const _0x245670 of this['_diffRoots']['values']())_0x245670['markers']['clear']();for(const [_0x506422,_0x1e1b51]of this['_markers']){this['_diffRoots']['get'](_0x1e1b51['root']['rootName'])['markers']['set'](_0x506422,_0x1e1b51['clone']());}const _0x43c461=new Map(),_0x590058=new Map();for(const [_0x2ab75b,_0x1302d1]of this['_diffRoots'])_0x43c461['set'](_0x2ab75b,T(_0x1302d1)),_0x590058['set'](_0x2ab75b,this['_diffRootsAttributes']['get'](_0x2ab75b));this['_saveMetaData'](_0x54bcc7,_0x43c461,this['_markers'],_0x590058);}['_getPreviousFrom'](_0xfd127b){const _0x3da10b=Array['from'](this['_savedMetaData']['keys']());_0x3da10b['sort']((_0x53d7e8,_0x49f271)=>_0x53d7e8-_0x49f271),_0x3da10b['reverse']();for(const _0x538556 of _0x3da10b)if(_0x538556<_0xfd127b)return _0x538556;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x390131,_0x5b369a){const _0x59ea31=Array['from'](_0x5b369a['markers'])['map'](([_0x5879ba,_0x43214e])=>[_0x5879ba,this['_fixRange'](_0x43214e,_0x390131)]);_0x390131['markers']=new Map(_0x59ea31);}['_transformMarkers'](_0x34504c){for(const _0x14daf3 of this['_markers']['values']()){const _0x8afa31=_0x14daf3['getTransformedByOperation'](_0x34504c),_0x1c92fa=vt['_createFromRanges'](_0x8afa31);_0x14daf3['start']=_0x1c92fa['start'],_0x14daf3['end']=_0x1c92fa['end'];}}['_handleOperation'](_0x126b4d,_0x33810c){if('addRoot'!=_0x126b4d['type']&&'detachRoot'!=_0x126b4d['type']){if('insert'==_0x126b4d['type']){const _0xf254b8=_0x126b4d['position']['root']['rootName'];this['_diffRoots']['has'](_0xf254b8)||(this['_diffRoots']['set'](_0xf254b8,F(_0xf254b8,!0x0)),this['_diffRootsAttributes']['set'](_0xf254b8,{}),_0x33810c&&this['_idsRoots']['set'](_0xf254b8,F(_0xf254b8,!0x0)));}else{if('addRootAttribute'==_0x126b4d['type']||'removeRootAttribute'==_0x126b4d['type']||'changeRootAttribute'==_0x126b4d['type'])return void this['_handleRootAttributeOperation'](_0x126b4d);'marker'==_0x126b4d['type']&&this['_handleMarkerOperation'](_0x126b4d);}if('marker'!==_0x126b4d['type']){const _0x1d837a=this['_cloneOperation'](_0x126b4d,this['_diffRoots']);_0x1d837a['_execute'](),this['_transformMarkers'](_0x1d837a);}if(_0x33810c)switch(_0x126b4d['type']){case'insert':this['_handleInsertOperation'](_0x126b4d);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x126b4d);break;case'merge':this['_handleMergeOperation'](_0x126b4d);break;case'split':this['_handleSplitOperation'](_0x126b4d);}}else this['_handleRootOperation'](_0x126b4d,_0x33810c);}['_cloneOperation'](_0x303066,_0x3e1c33){const _0x2a6c68=_0x303066['clone']();return _0x2a6c68['_authorId']=_0x303066['_authorId'],this['_fixOperation'](_0x2a6c68,_0x3e1c33),_0x2a6c68;}['_getBaseVids'](_0x45e4ea){return _0x45e4ea['map'](_0x37c48d=>{const _0x5aa251=this['_getVidAttributeName'](_0x37c48d);return Number(_0x37c48d['item']['getAttribute'](_0x5aa251));});}['_generateTape'](_0x48fba2,_0x2cd454){if(_0x48fba2['is']('element','$text'))_0x2cd454['push']({'item':_0x48fba2,'type':'text'});else{_0x48fba2['is']('element')&&_0x2cd454['push']({'item':_0x48fba2,'type':'elementStart'});for(const _0x293d30 of _0x48fba2['getChildren']())this['_generateTape'](_0x293d30,_0x2cd454);_0x48fba2['is']('element')&&_0x2cd454['push']({'item':_0x48fba2,'type':'elementEnd'});}return _0x2cd454;}['_getState'](){const _0x2159b2=new Map(this['_touched']),_0x1cdd79=new Map(_0x2159b2),_0x3317bb=new Map(),_0x4d639a={'insertions':{},'deletions':{}},_0x1645f3={'insertions':{},'deletions':{}},_0xa23487=new Map(),_0xc7605a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xc7605a['delete']('$graveyard');for(const _0x106ca5 of _0xc7605a){const _0x1482b9=this['_diffRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1),_0x4a9c67=this['_baseRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1);_0x1482b9['isAttached']()||_0x4a9c67['isAttached']()?(_0x4d639a['insertions'][_0x106ca5]=T(_0x1482b9),_0x4d639a['deletions'][_0x106ca5]=T(_0x4a9c67),this['_copyMarkers'](_0x4d639a['deletions'][_0x106ca5],_0x4a9c67),this['_copyMarkers'](_0x4d639a['insertions'][_0x106ca5],_0x1482b9),_0x1645f3['insertions'][_0x106ca5]=this['_generateTape'](this['_idsRoots']['get'](_0x106ca5),[]),_0x1645f3['deletions'][_0x106ca5]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x106ca5)||F(_0x106ca5,!0x1),[])):_0xc7605a['delete'](_0x106ca5);}for(const _0x221cee of _0xc7605a){const _0x1b0ee3=_0x1645f3['insertions'][_0x221cee];for(const _0x4ca790 of _0x1b0ee3){const _0xe50654=this['_getVidAttributeName'](_0x4ca790),_0x46ba18=_0x4ca790['item']['getAttribute'](_0xe50654);_0x1cdd79['delete'](_0x46ba18),_0x46ba18>=this['_startingRevisionId']&&_0x3317bb['set'](_0x46ba18,_0x2159b2['get'](_0x46ba18));}}for(const _0x559685 of _0xc7605a){const _0x53609e=_0x1645f3['insertions'][_0x559685],_0x2ee577=this['_getBaseVids'](_0x1645f3['deletions'][_0x559685]);let _0x493a05=0x0;for(const _0x333d40 of _0x53609e){const _0x359b43=this['_getVidAttributeName'](_0x333d40),_0x658fc1=_0x333d40['item']['getAttribute'](_0x359b43);if(!_0x3317bb['has'](_0x658fc1)&&!_0xa23487['has'](_0x658fc1)){if(_0x1cdd79['has'](_0x658fc1))_0x493a05++;else{if(_0x658fc1!=_0x2ee577[_0x493a05]){const _0x8b79d=_0x2159b2['get'](_0x658fc1)||_0x2159b2['get'](_0x2ee577[_0x493a05]);for(;_0x658fc1!=_0x2ee577[_0x493a05];)_0x1cdd79['has'](_0x2ee577[_0x493a05])||(_0xa23487['set'](_0x2ee577[_0x493a05],_0x8b79d),_0x2159b2['set'](_0x2ee577[_0x493a05],_0x8b79d)),_0x493a05++;}_0x493a05++;}}}}for(const _0x4617ec of _0xc7605a){const _0x263409=_0x1645f3['insertions'][_0x4617ec];for(const _0x3bf32c of _0x263409){const _0x444ed8=this['_getVidAttributeName'](_0x3bf32c),_0x4f9bb2=_0x3bf32c['item']['getAttribute'](_0x444ed8);if(_0xa23487['has'](_0x4f9bb2)){const _0x4f7dec=_0xa23487['get'](_0x4f9bb2);_0x1cdd79['has'](_0x4f9bb2)||_0x1cdd79['set'](_0x4f9bb2,{..._0x4f7dec}),_0x3317bb['set'](_0x4f9bb2,{..._0x4f7dec});}}}for(const _0x4c9793 of _0x1cdd79['keys']())_0x4c9793>=this['_startingRevisionId']&&_0x1cdd79['delete'](_0x4c9793);const _0x511981=new Map();for(const _0x592fd4 of _0xc7605a){let _0x53e5a6=_0x1645f3['insertions'][_0x592fd4];for(const _0x18dbba of _0x53e5a6)if(_0x18dbba['item']['is']('element','tableCell')){const _0x385da1=this['_getVidAttributeName'](_0x18dbba),_0x1dc8a2=_0x18dbba['item']['getAttribute'](_0x385da1);if(_0x3317bb['has'](_0x1dc8a2)){const _0xd80e3=_0x18dbba['item']['parent']['parent']['getAttribute']('vid_start'),_0x272600=_0x511981['get'](_0xd80e3)||new Set();_0x272600['add'](_0x3317bb['get'](_0x1dc8a2)['userId']),_0x511981['set'](_0xd80e3,_0x272600);}}_0x53e5a6=_0x1645f3['deletions'][_0x592fd4];for(const _0x4d070e of _0x53e5a6)if(_0x4d070e['item']['is']('element','tableCell')){const _0x4b8cb2=this['_getVidAttributeName'](_0x4d070e),_0x1dad88=_0x4d070e['item']['getAttribute'](_0x4b8cb2);if(_0x1cdd79['has'](_0x1dad88)){const _0x35dc49=_0x4d070e['item']['parent']['parent']['getAttribute']('vid_start'),_0x416f96=_0x511981['get'](_0x35dc49)||new Set();_0x416f96['add'](_0x1cdd79['get'](_0x1dad88)['userId']),_0x511981['set'](_0x35dc49,_0x416f96);}}for(const _0x45d2aa of _0x511981['keys']())(_0x3317bb['has'](_0x45d2aa)||_0x1cdd79['has'](_0x45d2aa))&&_0x511981['delete'](_0x45d2aa);}for(const _0x3816c4 of _0xc7605a){const _0x566f3e=_0x1645f3['insertions'][_0x3816c4];let _0x15635a=null,_0x34b0aa=null;for(const _0x1aa5cd of _0x566f3e){const _0x18050b=this['_getVidAttributeName'](_0x1aa5cd),_0xd63b86=_0x1aa5cd['item']['getAttribute'](_0x18050b),_0x2324e9=_0x511981['get'](_0xd63b86);_0x2324e9&&'elementStart'==_0x1aa5cd['type']&&(_0x15635a=Array['from'](_0x2324e9)[0x0],_0x34b0aa=_0x1aa5cd['item']['getAttribute']('vid_end')),_0x15635a&&(_0x1cdd79['set'](_0xd63b86,{'userId':_0x15635a}),_0x3317bb['set'](_0xd63b86,{'userId':_0x15635a})),_0xd63b86==_0x34b0aa&&(_0x15635a=null,_0x34b0aa=null);}}const _0x545df0={},_0x4b7bf0=new Set();for(const _0x54e81b of _0xc7605a){const _0x4654a8=_0x4d639a['deletions'][_0x54e81b],_0x493ef7=_0x4d639a['insertions'][_0x54e81b];for(const {userId:_0x146415}of this['_touchedMarkers']['values']())null!==_0x146415&&_0x4b7bf0['add'](_0x146415);for(const {userId:_0x3642fa}of this['_touchedRoots']['values']())null!==_0x3642fa&&_0x4b7bf0['add'](_0x3642fa);this['_markChanges'](_0x493ef7,_0x1645f3['insertions'][_0x54e81b],_0x3317bb,'insertion',_0x4b7bf0),this['_markChanges'](_0x4654a8,_0x1645f3['deletions'][_0x54e81b],_0x1cdd79,'deletion',_0x4b7bf0),_0x545df0[_0x54e81b]={'insertions':this['_prepareViewToSave'](_0x493ef7),'deletions':this['_prepareViewToSave'](_0x4654a8),'attachChange':this['_touchedRoots']['get'](_0x54e81b)||null,'attributesBefore':_0x3bd5f8(this['_baseRootsAttributes']['get'](_0x54e81b))||{},'attributesAfter':_0x3bd5f8(this['_diffRootsAttributes']['get'](_0x54e81b))};}return{'diffData':_0x545df0,'authorsIds':Array['from'](_0x4b7bf0)};}['_processRootBeforeSave'](_0x399275){for(const [,_0x11cafa]of _0x399275['markers']){const _0x14ba4a=_0x11cafa['start']['getAncestors']()['filter'](_0x23bc45=>'tableCell'==_0x23bc45['name']);for(const _0x259b99 of _0x14ba4a)0x1==_0x259b99['childCount']&&_0x259b99['getChild'](0x0)['is']('element','paragraph')&&_0x259b99['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x307cf2){this['_processRootBeforeSave'](_0x307cf2);const _0x873775=this['editor']['data']['toView'](_0x307cf2,{}),_0x193d11=Array['from'](_0x873775['getChildren']())['map'](_0x2b85c4=>this['_getViewJson'](_0x2b85c4));return JSON['stringify'](_0x193d11);}['_getViewJson'](_0x2ff2e3){if(_0x2ff2e3['is']('$text'))return _0x2ff2e3['data'];{const _0x1d83a0=_0x2ff2e3;return{'type':Object['keys'](P)['find'](_0x238282=>_0x2ff2e3 instanceof P[_0x238282]),'name':_0x1d83a0['name'],'attributes':Array['from'](_0x1d83a0['getAttributes']()),'children':Array['from'](_0x1d83a0['getChildren']())['map'](_0x12faef=>this['_getViewJson'](_0x12faef))};}}['_markChanges'](_0x1c5690,_0x442db4,_0x4c27ba,_0x4610d5,_0x827bb){let _0x463aa9=null,_0x5521a6=null,_0x2ebf94=0x0;const _0x1115e4=this['editor']['model'];for(let _0xd1b339=0x0;_0xd1b339<_0x442db4['length'];_0xd1b339++){const _0x4385fa=this['_getVidAttributeName'](_0x442db4[_0xd1b339]),_0xf08a27=_0x442db4[_0xd1b339]['item']['getAttribute'](_0x4385fa),_0x1bf245=_0x4c27ba['get'](_0xf08a27),_0xf1b1b7=_0xd1b339==_0x442db4['length']-0x1;(!_0x463aa9&&_0x1bf245&&(_0x463aa9=_0x1bf245,_0x5521a6=_0x442db4[_0xd1b339]),_0x463aa9&&(!_0x1bf245||_0x1bf245['userId']!=_0x463aa9['userId']))&&(_0x4134ae(_0x1bf245,B(_0x5521a6,_0x1c5690,_0x1115e4),B(_0x442db4[_0xd1b339],_0x1c5690,_0x1115e4)),_0x463aa9=_0x1bf245||null,_0x5521a6=_0x1bf245?_0x442db4[_0xd1b339]:null),_0x463aa9&&_0xf1b1b7&&_0x4134ae(_0x1bf245,B(_0x5521a6,_0x1c5690,_0x1115e4),J(_0x442db4[_0xd1b339],_0x1c5690,_0x1115e4));}function _0x4134ae(_0x5dfb11,_0x2d9a23,_0x5e1b4b){const _0x111d08=_0x463aa9['userId'],_0x2c4ddd='revision:'+_0x4610d5+':'+_0x111d08+':'+_0x2ebf94++,_0xdabf97=_0x1115e4['createRange'](_0x2d9a23,_0x5e1b4b);_0x1c5690['markers']['set'](_0x2c4ddd,_0xdabf97),null!==_0x111d08&&_0x827bb['add'](_0x111d08);}}['_getVidAttributeName'](_0x1443f6){switch(_0x1443f6['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13d5f1,_0x2e8c1e){_0x13d5f1['baseVersion']=null;for(const _0x1dfaeb in _0x13d5f1){const _0x5cc091=_0x13d5f1[_0x1dfaeb];if(_0x5cc091 instanceof gt){const _0xd7a01b=_0x2e8c1e['get'](_0x5cc091['root']['rootName']);_0x13d5f1[_0x1dfaeb]=this['_fixPosition'](_0x5cc091,_0xd7a01b);}if(_0x5cc091 instanceof vt){const _0x27fbcb=_0x2e8c1e['get'](_0x5cc091['root']['rootName']);_0x13d5f1[_0x1dfaeb]=this['_fixRange'](_0x5cc091,_0x27fbcb);}'root'===_0x1dfaeb&&(_0x13d5f1['root']=_0x2e8c1e['get'](_0x13d5f1['root']['rootName']));}}['_fixRange'](_0x539c1b,_0x43e6a4){return this['editor']['model']['createRange'](this['_fixPosition'](_0x539c1b['start'],_0x43e6a4),this['_fixPosition'](_0x539c1b['end'],_0x43e6a4));}['_fixPosition'](_0x4b1325,_0x2f43bf){return this['editor']['model']['createPositionFromPath'](_0x2f43bf,_0x4b1325['path'],_0x4b1325['stickiness']);}['_handleInsertOperation'](_0x46c94c){const _0x2b13ea=this['_idsRoots']['get'](_0x46c94c['position']['root']['rootName']),_0x15d75b=this['_fixPosition'](_0x46c94c['position'],_0x2b13ea),_0x531b33=null===_0x46c94c['_authorId']?null:_0x46c94c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5564b7=_0x15d75b['parent'],_0xa4e918=this['_revisionId'],_0x281c29=[];for(const _0x131546 of _0x46c94c['nodes'])if(_0x131546['is']('element'))_0x281c29['push'](this['_makeIdsRoot'](_0x131546));else{for(let _0x3473af=0x0;_0x3473af<_0x131546['offsetSize'];_0x3473af++)_0x281c29['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3c738b=this['_revisionId'];for(let _0x2396fa=_0xa4e918;_0x2396fa<_0x3c738b;_0x2396fa++)this['_touched']['set'](_0x2396fa,{'userId':_0x531b33});_0x5564b7['_insertChild'](_0x15d75b['offset'],_0x281c29);}['_handleMoveOperation'](_0x3f2d6a){(_0x3f2d6a=this['_cloneOperation'](_0x3f2d6a,this['_idsRoots']))['_execute']();const _0x586d16=null===_0x3f2d6a['_authorId']?null:_0x3f2d6a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52230a=_0x3f2d6a['getMovedRangeStart'](),_0x50861a=_0x52230a['parent'],_0x379d6d=_0x52230a['offset'];!function _0x43d156(_0x72e5a5,_0x36474b,_0x32a470,_0x7c7073){for(let _0x2d618a=_0x32a470;_0x2d618a<_0x7c7073;_0x2d618a++){const _0x595125=_0x36474b['getChild'](_0x2d618a);_0x595125['is']('element','$text')?_0x72e5a5['set'](_0x595125['getAttribute']('vid'),{'userId':_0x586d16}):(_0x72e5a5['set'](_0x595125['getAttribute']('vid_start'),{'userId':_0x586d16}),_0x43d156(_0x72e5a5,_0x595125,0x0,_0x595125['childCount']),_0x72e5a5['set'](_0x595125['getAttribute']('vid_end'),{'userId':_0x586d16}));}}(this['_touched'],_0x50861a,_0x379d6d,_0x379d6d+_0x3f2d6a['howMany']);}['_handleMergeOperation'](_0x2688cd){const _0xe38972=null===(_0x2688cd=this['_cloneOperation'](_0x2688cd,this['_idsRoots']))['_authorId']?null:_0x2688cd['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x34fde=_0x2688cd['targetPosition']['parent'],_0x562e7b=_0x2688cd['sourcePosition']['parent'],_0x109f38=_0x34fde['getAttribute']('vid_end'),_0x45d962=_0x562e7b['getAttribute']('vid_start');_0x34fde['_setAttribute']('vid_end',_0x562e7b['getAttribute']('vid_end')),_0x562e7b['_setAttribute']('vid_end',_0x109f38),this['_touched']['set'](_0x45d962,{'userId':_0xe38972}),this['_touched']['set'](_0x109f38,{'userId':_0xe38972}),_0x2688cd['_execute']();}['_handleSplitOperation'](_0x3c47f5){const _0x37bcf9=null===(_0x3c47f5=this['_cloneOperation'](_0x3c47f5,this['_idsRoots']))['_authorId']?null:_0x3c47f5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x581d34=_0x3c47f5['graveyardPosition'],_0x16f3fb=_0x3c47f5['splitPosition']['parent'];_0x3c47f5['_execute']();const _0x44a4ef=_0x16f3fb['getAttribute']('vid_end'),_0x526694=_0x3c47f5['insertionPosition']['nodeAfter'];if(_0x581d34){const _0x1d416b=_0x526694['getAttribute']('vid_end'),_0x1372c5=_0x16f3fb['getAttribute']('vid_end');_0x16f3fb['_setAttribute']('vid_end',_0x1d416b),_0x526694['_setAttribute']('vid_end',_0x1372c5),this['_touched']['set'](_0x16f3fb['getAttribute']('vid_end'),{'userId':_0x37bcf9}),this['_touched']['set'](_0x526694['getAttribute']('vid_start'),{'userId':_0x37bcf9});}else{const _0x443d73=this['_revisionId']++,_0xf04f02=this['_revisionId']++;_0x16f3fb['_setAttribute']('vid_end',_0x443d73),_0x526694['_setAttribute']('vid_start',_0xf04f02),_0x526694['_setAttribute']('vid_end',_0x44a4ef),this['_touched']['set'](_0x443d73,{'userId':_0x37bcf9}),this['_touched']['set'](_0xf04f02,{'userId':_0x37bcf9});}}['_handleMarkerOperation'](_0x550eca){if(!_0x550eca['affectsData'])return;const _0x18e5b6=(_0x550eca=this['_cloneOperation'](_0x550eca,this['_diffRoots']))['oldRange']?_0x550eca['oldRange']['root']:null,_0x1b0e41=_0x550eca['newRange']?_0x550eca['newRange']['root']:null;_0x18e5b6&&this['_markers']['delete'](_0x550eca['name']),_0x1b0e41&&this['_markers']['set'](_0x550eca['name'],_0x550eca['newRange']['clone']());const _0xc56588=null===_0x550eca['_authorId']?null:_0x550eca['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4a7526=_0x550eca['name'];if(!this['_touchedMarkers']['has'](_0x4a7526))return void this['_touchedMarkers']['set'](_0x4a7526,{'range':_0x550eca['oldRange'],'userId':_0xc56588});const _0x46596d=this['_touchedMarkers']['get'](_0x4a7526),_0x40fc7d=_0x46596d['range'],_0x4104ea=_0x550eca['newRange'];null==_0x40fc7d&&null==_0x4104ea||_0x40fc7d&&_0x4104ea&&_0x40fc7d['isEqual'](_0x4104ea)?this['_touchedMarkers']['delete'](_0x550eca['name']):_0x46596d['userId']=_0xc56588;}['_handleRootOperation'](_0x2b0d23,_0x121b12){this['_diffRoots']['has'](_0x2b0d23['rootName'])?this['_diffRoots']['get'](_0x2b0d23['rootName'])['_isAttached']=_0x2b0d23['isAdd']:(this['_diffRoots']['set'](_0x2b0d23['rootName'],F(_0x2b0d23['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2b0d23['rootName'],{}),_0x121b12&&this['_idsRoots']['set'](_0x2b0d23['rootName'],F(_0x2b0d23['rootName'],!0x0)));const _0x3b091f=null===_0x2b0d23['_authorId']?null:_0x2b0d23['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x240c5e=this['_touchedRoots']['get'](_0x2b0d23['rootName']);_0x240c5e&&_0x240c5e['userId']===_0x3b091f?this['_touchedRoots']['delete'](_0x2b0d23['rootName']):this['_touchedRoots']['set'](_0x2b0d23['rootName'],{'userId':_0x3b091f,'isAttached':_0x2b0d23['isAdd']});}['_handleRootAttributeOperation'](_0x363b2c){const _0x5e52fc=this['_diffRootsAttributes']['get'](_0x363b2c['root']['rootName']);null===_0x363b2c['newValue']?delete _0x5e52fc[_0x363b2c['key']]:_0x5e52fc[_0x363b2c['key']]=_0x363b2c['newValue'];}}function T(_0x504c4c){const _0x5ada3f=F(_0x504c4c['rootName'],_0x504c4c['isAttached']());for(const _0x197c89 of _0x504c4c['getChildren']()){const _0x56aba6=_0x197c89['_clone'](!0x0);_0x5ada3f['_appendChild'](_0x56aba6);}return _0x5ada3f;}function F(_0x4b47dd,_0x4d3309=!0x0){const _0x33ed80=new mt();return _0x33ed80['rootName']=_0x4b47dd,_0x33ed80['_isAttached']=_0x4d3309,_0x33ed80['isAttached']=()=>_0x33ed80['_isAttached'],_0x33ed80;}function B(_0xabe03d,_0x103783,_0x1789cb){const _0xeb7af4='elementEnd'==_0xabe03d['type']?_0x1789cb['createPositionAt'](_0xabe03d['item'],'end'):_0x1789cb['createPositionBefore'](_0xabe03d['item']);return _0x1789cb['createPositionFromPath'](_0x103783,_0xeb7af4['path'],_0xeb7af4['stickiness']);}function J(_0x1d2a3c,_0xbe2669,_0xbe4175){const _0x19437c='elementStart'==_0x1d2a3c['type']?_0xbe4175['createPositionAt'](_0x1d2a3c['item'],0x0):_0xbe4175['createPositionAfter'](_0x1d2a3c['item']);return _0xbe4175['createPositionFromPath'](_0xbe2669,_0x19437c['path'],_0x19437c['stickiness']);}class hs extends _0x54bab1{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x776c2,_0xb4fa3){super(_0x776c2),this['focusTracker']=new _0x4413f1(),this['keystrokes']=new _0x2b44d5(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xb4fa3),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'](),_0x5b59ac({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2e880d=_0x2aa256=>_0x2aa256['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e880d),this['keystrokes']['set']('arrowleft',_0x2e880d),this['keystrokes']['set']('arrowup',_0x2e880d),this['keystrokes']['set']('arrowdown',_0x2e880d);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4100f4){this['revisionNameInputView']['fieldView']['element']['value']=_0x4100f4['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x9581cf){const _0x46efdf=new nt(this['locale'],_0x42aec0),_0x414f81=_0x46efdf['fieldView'];_0x414f81['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5b4fd3=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x9581cf&&(_0x5b4fd3+='\x20('+m(this['locale'],'optional')+')'),(_0x46efdf['label']=_0x5b4fd3,_0x414f81['on']('input',()=>{this['revisionNameInputValue']=_0x414f81['element']['value']['trim']();}),_0x46efdf);}}class u extends _0x4011e1{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x57521d=this['editor'],_0x2adb42=_0x57521d['plugins']['get']('RevisionTracker');_0x57521d['ui']['componentFactory']['add']('revisionHistory',_0x45c3f3=>{const _0x4b1a07=_0x46c6e4(_0x45c3f3),_0x4f3742=_0x4b1a07['panelView']['children'],_0x26fc29=new _0x1e14d0(_0x45c3f3),_0x140c40=new te(_0x45c3f3),_0x4dcf7c=new _0x412521(_0x45c3f3),_0x5a3b8d=new te(_0x45c3f3),_0x4dbb22=new _0x412521(_0x45c3f3);return _0x4b1a07['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x2adb42,'isEnabled',_0x57521d,'isReadOnly',(_0x446dce,_0x5676ed,_0x3c8e8f)=>_0x446dce&&_0x5676ed&&!_0x3c8e8f),_0x4b1a07['buttonView']['set']({'icon':_0x5bb3f8['history'],'label':m(_0x45c3f3,'Revision\x20history'),'tooltip':!0x0}),_0x4dcf7c['set']({'label':m(_0x45c3f3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4dcf7c['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x2adb42,'isEnabled',_0x57521d,'isReadOnly',(_0x208036,_0x383edd,_0x1c3f66)=>_0x208036&&_0x383edd&&!_0x1c3f66),_0x4dcf7c['on']('execute',()=>this['_showDialog']()),_0x4dbb22['set']({'label':m(_0x45c3f3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4dbb22['bind']('isEnabled')['to'](_0x2adb42,'isReady',_0x57521d,'isReadOnly',(_0x317889,_0x4f89c1)=>_0x317889&&!_0x4f89c1),_0x4dbb22['on']('execute',()=>{_0x57521d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x4b1a07['isOpen']=!0x1,_0x57521d['editing']['view']['focus']();}),_0x140c40['children']['add'](_0x4dcf7c),_0x5a3b8d['children']['add'](_0x4dbb22),_0x26fc29['role']='menu',_0x26fc29['items']['addMany']([_0x140c40,_0x5a3b8d]),_0x4f3742['add'](_0x26fc29),_0x4b1a07;}),_0x57521d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3a202d=this['editor'],_0x2a7b2f=_0x3a202d['locale'],_0x5b886e=new _0x3e0dcb(_0x2a7b2f),_0x11deb9=new _0x367653(_0x2a7b2f);_0x5b886e['buttonView']['set']({'icon':_0x5bb3f8['history'],'label':m(_0x2a7b2f,'Revision\x20history')});const _0x2c59c4=new _0x2deb30(_0x2a7b2f,_0x5b886e),_0x3449bc=new _0x3449d1(_0x2a7b2f);_0x3449bc['set']({'label':m(_0x2a7b2f,'Save\x20current\x20revision')}),_0x3449bc['delegate']('execute')['to'](_0x5b886e),_0x3449bc['on']('execute',()=>{this['_showDialog']();}),_0x2c59c4['children']['add'](_0x3449bc),_0x11deb9['items']['add'](_0x2c59c4);const _0x2028cb=new _0x2deb30(_0x2a7b2f,_0x5b886e),_0x2cfb0a=new _0x3449d1(_0x2a7b2f);return _0x2cfb0a['set']({'label':m(_0x2a7b2f,'Open\x20revision\x20history')}),_0x2cfb0a['delegate']('execute')['to'](_0x5b886e),_0x2cfb0a['on']('execute',()=>{_0x3a202d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x2028cb['children']['add'](_0x2cfb0a),_0x11deb9['items']['add'](_0x2028cb),_0x5b886e['panelView']['children']['add'](_0x11deb9),_0x5b886e;}['_showDialog'](){const _0x283d60=this['editor'],_0x498cac=_0x283d60['locale'],_0x82e783=_0x283d60['plugins']['get']('Dialog'),_0x46500f=_0x283d60['plugins']['get']('RevisionTracker');function _0x5bb6da(_0x40b8ba){_0x283d60['config']['get']('revisionHistory.requireRevisionName')&&''===_0x40b8ba['revisionName']?_0x40b8ba['revisionNameInputView']['errorText']=m(_0x498cac,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x283d60['plugins']['get'](l)['saveRevision']({'name':_0x40b8ba['revisionName']}),_0x82e783['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5bb6da(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x82e783['show']({'id':'revisionSave','title':m(_0x498cac,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x283d60['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x82e783['hide']()},{'label':m(_0x283d60['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3eda47){_0x3eda47['bind']('isEnabled')['to'](_0x46500f,'isReady',_0x46500f,'isEnabled',_0x283d60,'isReadOnly',(_0xd19f0e,_0x3ac840,_0x2780e8)=>_0xd19f0e&&_0x3ac840&&!_0x2780e8);},'onExecute':()=>_0x5bb6da(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x83f5fa=this['editor'],_0x408ab0=_0x83f5fa['locale'];this['_saveRevisionFormView']=new hs(_0x408ab0,_0x83f5fa['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x54bab1{['changeId'];['_model'];constructor(_0x218039,_0x35fff8){super(_0x218039),this['_model']=_0x35fff8,this['changeId']=_0x35fff8['id'];const _0x518a12=this['bindTemplate'],_0x180e02=m(_0x218039,_0x35fff8['data']['isSuggestion']?'Suggested\x20by':'add'==_0x35fff8['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x35fff8['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x518a12['to']('type',_0x4ae79e=>'ck-revision-change__'+_0x4ae79e)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x180e02}]},{'text':'\x20'+_0x35fff8['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x2397cf(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1d2977){super(),this['id']=_0x1d2977['id']||_0x316b02(),this['author']=_0x1d2977['author'],this['type']=_0x1d2977['type'],this['data']=_0x1d2977['data']||{},this['rootName']=_0x1d2977['rootName'],this['set']('createdAt',_0x1d2977['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(_0x45f232,_0xae872b){this['newRevisionId']=_0x45f232,this['oldRevisionId']=_0xae872b,this['changes']=new _0x177da0();}['_setChanges'](_0x4acb8f){for(const _0x4a8785 of _0x4acb8f)this['changes']['add'](_0x4a8785);}}const Y={'c':_0x377942,'a':_0x4c0794,'e':_0x421417,'r':_0x525184,'u':_0x44f876};class d extends _0x4011e1{['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[_0x7d3fd1,_0x53c608,j];}constructor(_0x44500b){super(_0x44500b),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',(_0x5b1ae4,_0x364b4e,_0x315b83)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1919ef=>{for(const _0x1483f0 of this['editor']['editing']['view']['document']['roots'])_0x315b83?_0x1919ef['removeClass']('ck-editor__editable__overlay',_0x1483f0):_0x1919ef['addClass']('ck-editor__editable__overlay',_0x1483f0);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x16f008=>null!==_0x16f008),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x5cb9df,_0x1cebaf,_0x517171)=>_0x5cb9df&&_0x517171?_0x1cebaf['changes']['getIndex'](_0x517171):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4decda,_0x306873)=>_0x4decda?_0x306873['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x53c608);}['init'](){const _0x28cb6c=this['editor'],_0x4c9b86=new yt(_0x28cb6c,{'direction':'backward'}),_0x37a7d1=new yt(_0x28cb6c,{'direction':'forward'});(_0x28cb6c['commands']['add']('showPreviousChange',_0x4c9b86),_0x28cb6c['commands']['add']('showNextChange',_0x37a7d1),_0x28cb6c['commands']['add']('restoreRevision',new _t(_0x28cb6c)),this['on']('change:numberOfChanges',()=>{_0x4c9b86['refresh'](),_0x37a7d1['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x28cb6c['enableReadOnlyMode']('revision-viewer'),_0x28cb6c['plugins']['has']('WidgetToolbarRepository'))&&_0x28cb6c['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x53333a){await this['loadRevisionData'](_0x53333a);const _0x403525={};for(const _0x5f5341 in _0x53333a['diffData']){if(_0x53333a['diffData'][_0x5f5341]['attachChange']&&!_0x53333a['diffData'][_0x5f5341]['attachChange']['isAttached'])continue;const _0x503c08=this['_removeRevisionMarkers'](JSON['parse'](_0x53333a['diffData'][_0x5f5341]['insertions'])),_0x562635=this['editor']['editing']['view']['document'],_0x31adc6=new _0x531090(_0x562635,_0x503c08['map'](_0x2224da=>this['_getViewObj'](_0x2224da)));this['editor']['data']['processor']['useFillerType']('marked'),_0x403525[_0x5f5341]=this['editor']['data']['processor']['toData'](_0x31adc6),this['editor']['data']['processor']['useFillerType']('default');}return _0x403525;}async['getRevisionRootsAttributes'](_0x45d50c){await this['loadRevisionData'](_0x45d50c);const _0x2e8a99={};for(const _0x564429 in _0x45d50c['diffData'])_0x45d50c['diffData'][_0x564429]['attachChange']&&!_0x45d50c['diffData'][_0x564429]['attachChange']['isAttached']||(_0x2e8a99[_0x564429]=_0x45d50c['diffData'][_0x564429]['attributesAfter']||{});return _0x2e8a99;}['_removeRevisionMarkers'](_0x110bdd){return(_0x110bdd=_0x110bdd['filter'](_0x32b65c=>!_0x32b65c['name']||'revision-start'!==_0x32b65c['name']&&'revision-end'!==_0x32b65c['name']))['forEach'](_0x326d5d=>{'string'!=typeof _0x326d5d&&(_0x326d5d['children']=this['_removeRevisionMarkers'](_0x326d5d['children']),_0x326d5d['attributes']=_0x326d5d['attributes']['filter'](_0x5e7b2=>!_0x5e7b2[0x0]['startsWith']('data-revision-')));}),_0x110bdd;}async['compare'](_0x5588e2,_0x454d99,_0x2e87d4=!0x1){if(!this['isEnabled'])return;const _0x38c0bf=this['diff'],_0xf26f6a=this['repository'],_0xad05ed='string'==typeof _0x5588e2?_0xf26f6a['getRevision'](_0x5588e2):_0x5588e2,_0x3dfc2e='string'==typeof _0x454d99?_0xf26f6a['getRevision'](_0x454d99):_0x454d99,_0x32505c=_0xad05ed['id'],_0x3fbe9a=_0x3dfc2e?_0x3dfc2e['id']:null;if(!_0x2e87d4&&this['diff']&&this['diff']['newRevisionId']===_0x32505c&&this['diff']['oldRevisionId']===_0x3fbe9a)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x32505c,_0x3fbe9a);const _0x29ef8c=this['_getRevisionsRange'](_0xad05ed,_0x3dfc2e,!0x0)['map'](_0x11e497=>this['loadRevisionData'](_0x11e497));return _0x29ef8c['push'](new Promise(_0x564350=>{setTimeout(_0x564350,0x14);})),Promise['all'](_0x29ef8c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x50b47d=this['_getDiff'](_0x32505c,_0x3fbe9a);for(const _0x31d719 of _0x50b47d['changes'])this['_changeIdToChange']['set'](_0x31d719['id'],_0x31d719);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x591064=>{for(const _0x538c4a of this['editor']['model']['document']['getRootNames']())_0x591064['detachRoot'](_0x538c4a);for(const _0x29dd63 of Object['keys'](_0x50b47d['model'])){const _0x58979a=_0x591064['addRoot'](_0x29dd63);for(const _0x202609 of Object['keys'](_0x50b47d['attributes'][_0x29dd63]))_0x591064['setAttribute'](_0x202609,_0x50b47d['attributes'][_0x29dd63][_0x202609],_0x58979a);_0x591064['insert'](_0x50b47d['model'][_0x29dd63],_0x58979a,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x50b47d['changes'])),this['isReady']=!0x0;})['catch'](_0xa97234=>{console['error'](_0xa97234),this['_cleanUp'](),_0x38c0bf&&(this['diff']=_0x38c0bf),this['isReady']=!0x0;});}['addRevisionData'](_0x2619a1,_0x386c80){const _0xd444c5=this['repository']['createRevision'](_0x2619a1);return _0xd444c5['on']('_update',(_0x96f1ee,_0x4bd4d6,_0x5b8c68)=>_0x386c80(_0x4bd4d6,_0x5b8c68,_0xd444c5)),this['repository']['addRevision'](_0xd444c5),_0xd444c5;}['loadRevisionData'](_0x4ad994){if(!_0x4ad994||_0x4ad994['diffData'])return Promise['resolve']();{const _0x4b1de0=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4b1de0,'revisionId':_0x4ad994['id']})['then'](_0x46b04d=>{_0x4ad994['_update']({'diffData':_0x46b04d['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},_0x4ca5e3=>{for(const _0x6f4264 of this['editor']['model']['document']['getRootNames']())_0x4ca5e3['detachRoot'](_0x6f4264);});}['_sortAndFilterDiffChanges'](_0x159e7c){const _0x4d1527=[],_0xd7a79a=new Map();for(const _0x53bc87 of this['editor']['model']['document']['getRootNames']()){const _0x379436=this['editor']['editing']['view']['getDomRoot'](_0x53bc87);if(!_0x379436)continue;const _0x2bce71=_0x379436['getClientRects']()['item'](0x0);_0x2bce71&&(_0x4d1527['push'](_0x53bc87),_0xd7a79a['set'](_0x53bc87,_0x2bce71));}return _0x4d1527['sort']((_0x2db3fa,_0x26b52f)=>{const _0x49ae31=_0xd7a79a['get'](_0x2db3fa),_0x54c8f9=_0xd7a79a['get'](_0x26b52f);return _0x49ae31['y']-_0x54c8f9['y']||_0x49ae31['x']-_0x54c8f9['x'];}),(_0x159e7c=_0x159e7c['filter'](_0x3333db=>_0x4d1527['includes'](_0x3333db['rootName'])))['sort']((_0x561739,_0x13bd53)=>_0x4d1527['indexOf'](_0x561739['rootName'])-_0x4d1527['indexOf'](_0x13bd53['rootName'])),_0x159e7c;}['_makeTape'](_0x35c955){const _0x508d05=Array['from'](_0x35c955['markers'])['filter'](([_0x193d6e,_0x391f9e])=>_0x193d6e['startsWith']('revision:')&&!_0x391f9e['isCollapsed']),_0x227cac=Array['from'](this['editor']['model']['createRangeIn'](_0x35c955)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x508d05['length'])for(const _0x1518d1 of _0x227cac){const [_0x4dbffa,_0x5710ae]=_0x508d05[0x0],[,_0x1f8530,_0x1539f2]=_0x4dbffa['split'](':');if(_0x5710ae['end']['isEqual'](_0x1518d1['nextPosition'])&&_0x508d05['shift'](),(_0x1518d1['previousPosition']['isEqual'](_0x5710ae['start'])||_0x1518d1['previousPosition']['isAfter'](_0x5710ae['start']))&&('insertion'==_0x1f8530?_0x1518d1['isAdded']={'userId':_0x1539f2}:'deletion'==_0x1f8530&&(_0x1518d1['isRemoved']={'userId':_0x1539f2})),0x0==_0x508d05['length'])break;}return _0x227cac;}['_refreshStartEndIndex'](_0x1029e3){const _0x51666e=new Map();for(let _0x437613=0x0;_0x437613<_0x1029e3['length'];_0x437613++)'text'===_0x1029e3[_0x437613]['type']?(_0x1029e3[_0x437613]['item']['startIndex']=_0x437613,_0x1029e3[_0x437613]['item']['endIndex']=_0x437613):('elementStart'===_0x1029e3[_0x437613]['type']?_0x1029e3[_0x437613]['item']['startIndex']=_0x437613:'elementEnd'===_0x1029e3[_0x437613]['type']&&(_0x1029e3[_0x437613]['item']['endIndex']=_0x437613),_0x51666e['set'](_0x1029e3[_0x437613]['id'],_0x437613));for(const _0x2ef65e of _0x51666e['values']())'elementStart'===_0x1029e3[_0x2ef65e]['type']?_0x1029e3[_0x2ef65e]['item']['endIndex']=_0x51666e['get'](_0x1029e3[_0x2ef65e]['pairId']):'elementEnd'===_0x1029e3[_0x2ef65e]['type']&&(_0x1029e3[_0x2ef65e]['item']['startIndex']=_0x51666e['get'](_0x1029e3[_0x2ef65e]['pairId']));}['_processTape'](_0xf6eb94){for(let _0x45aa35=0x0;_0x45aa35<_0xf6eb94['length'];_0x45aa35++){if('elementStart'===_0xf6eb94[_0x45aa35]['type'])_0xf6eb94[_0x45aa35]['item']['startIndex']=_0x45aa35;else{if('elementEnd'===_0xf6eb94[_0x45aa35]['type']){_0xf6eb94[_0x45aa35]['item']['endIndex']=_0x45aa35;const _0x25734f=_0xf6eb94[_0x45aa35]['item']['startIndex'];_0xf6eb94[_0x25734f]['pairId']=_0xf6eb94[_0x45aa35]['id'],_0xf6eb94[_0x45aa35]['pairId']=_0xf6eb94[_0x25734f]['id'];}else _0xf6eb94[_0x45aa35]['item']['startIndex']=_0x45aa35,_0xf6eb94[_0x45aa35]['item']['endIndex']=_0x45aa35,_0xf6eb94[_0x45aa35]['pairId']=null;}_0xf6eb94[_0x45aa35]['markersStart']||(_0xf6eb94[_0x45aa35]['markersStart']=[],_0xf6eb94[_0x45aa35]['markersEnd']=[]);}}['_markInsertions'](_0x2660fa,_0x2ae260){const _0x2722c0=_0x2660fa['filter'](_0x1ed4bb=>!_0x1ed4bb['isAdded']);for(let _0x563ae7=0x0;_0x563ae7<_0x2ae260['length'];_0x563ae7++)_0x2ae260[_0x563ae7]['isAdded']&&(_0x2722c0[_0x563ae7]['isAdded']=_0x2ae260[_0x563ae7]['isAdded']);}['_makeModelFromViewString'](_0x38ce80){const _0xe414b1=JSON['parse'](_0x38ce80),_0x2f504e=this['editor']['editing']['view']['document'],_0x15b54d=new _0x531090(_0x2f504e,_0xe414b1['map'](_0x2b4c58=>this['_getViewObj'](_0x2b4c58)));return this['editor']['data']['toModel'](_0x15b54d);}['_getViewObj'](_0x42f8f1){const _0x266707=this['editor']['editing']['view']['document'];if('string'==typeof _0x42f8f1)return new _0x334ef4(_0x266707,_0x42f8f1);{const _0x3fbe48=_0x42f8f1['children']['map'](_0x53b361=>this['_getViewObj'](_0x53b361));return new(Y[_0x42f8f1['type']]||_0x3564d6)(_0x266707,_0x42f8f1['name'],_0x42f8f1['attributes'],_0x3fbe48);}}['_getDiff'](_0xe57888,_0x1f1b69=null){const _0x4524be=this['repository']['getRevision'](_0xe57888),_0x200ee6=_0x1f1b69?this['repository']['getRevision'](_0x1f1b69):null,_0x12a13e=this['_getRevisionsRange'](_0x4524be,_0x200ee6),_0xff8675=_0x12a13e[_0x12a13e['length']-0x1],_0x511d5a=new Map(),_0x106ce8={'model':{},'attributes':{},'changes':[]},_0xe7488f=new Set(),_0x2ef960=new Map();for(let _0xcf6aa=_0x12a13e['length']-0x1;_0xcf6aa>=0x0;_0xcf6aa--){const _0xf77fcd=_0x12a13e[_0xcf6aa];for(const _0x284c3c of Object['keys'](_0xf77fcd['diffData']))if(_0xf77fcd['diffData'][_0x284c3c]['attachChange']){const _0x1f3783=_0xf77fcd['diffData'][_0x284c3c]['attachChange'];_0x1f3783['isAttached']?(_0xe7488f['add'](_0x284c3c),_0x2ef960['has'](_0x284c3c)&&_0x2ef960['get'](_0x284c3c)['userId']==_0x1f3783['userId']?_0x2ef960['delete'](_0x284c3c):_0x2ef960['set'](_0x284c3c,_0x1f3783)):_0x2ef960['has'](_0x284c3c)?(_0xe7488f['delete'](_0x284c3c),_0x2ef960['delete'](_0x284c3c)):(_0xe7488f['add'](_0x284c3c),_0x2ef960['set'](_0x284c3c,_0x1f3783));}else _0xe7488f['add'](_0x284c3c);}for(const _0x1ab937 of _0xe7488f){const _0x1451dd=_0x2ef960['has'](_0x1ab937)&&!_0x2ef960['get'](_0x1ab937)['isAttached'];let _0x338d8e=_0x1451dd?_0x12a13e['length']-0x1:0x0;const _0x1b3d64=_0x1451dd?-0x1:0x1;for(;_0x12a13e[_0x338d8e];){const _0x25b8e2=_0x12a13e[_0x338d8e];if(_0x25b8e2['diffData'][_0x1ab937]){const _0xe7f2a4=_0x1451dd?_0x25b8e2['diffData'][_0x1ab937]['attributesBefore']:_0x25b8e2['diffData'][_0x1ab937]['attributesAfter'];_0x106ce8['attributes'][_0x1ab937]=_0xe7f2a4?_0x3bd5f8(_0xe7f2a4):{};break;}_0x338d8e+=_0x1b3d64;}}for(const _0x354b3f of _0x12a13e){_0x354b3f['model']={};for(const _0x434106 of _0x354b3f['authors'])_0x511d5a['set'](_0x434106['id'],_0x434106);for(const _0x1b87b3 of _0xe7488f){const _0x44d378=_0x354b3f['diffData'][_0x1b87b3]?_0x354b3f['diffData'][_0x1b87b3]['insertions']:'[]',_0x3f5e28=_0x354b3f['diffData'][_0x1b87b3]?_0x354b3f['diffData'][_0x1b87b3]['deletions']:'[]';_0x354b3f['model'][_0x1b87b3]={'insertions':this['_makeModelFromViewString'](_0x44d378),'deletions':this['_makeModelFromViewString'](_0x3f5e28)};}}for(const _0x253a9e of _0xe7488f){let _0x3da266=null,_0x1fa62d=0x0;const _0x214ef8=new Map(Array['from'](_0x4524be['model'][_0x253a9e]['insertions']['markers'])['filter'](([_0x1d6621])=>!_0x1d6621['startsWith']('revision:')));let _0x4131c1=0x0;for(const _0x527f59 of _0x12a13e){const _0x10d116=this['_makeTape'](_0x527f59['model'][_0x253a9e]['insertions']);_0x527f59==_0x4524be?(_0x3da266=_0x10d116,_0x1fa62d=_0x3da266['length'],_0x3da266['forEach'](_0x345830=>{_0x345830['id']=_0x4131c1++;}),this['_processTape'](_0x3da266)):this['_markInsertions'](_0x3da266,_0x10d116);const _0x108805=_0x3da266['filter'](_0x12d326=>!_0x12d326['isAdded'])['map'](_0x401963=>_0x401963['id']);let _0xd426d3=0x0;const _0x209cb5=this['_makeTape'](_0x527f59['model'][_0x253a9e]['deletions']);_0x209cb5['forEach'](_0x167c58=>{_0x167c58['isRemoved']?_0x167c58['id']=_0x1fa62d++:_0x167c58['id']=_0x108805[_0xd426d3++];}),this['_processTape'](_0x209cb5),this['_setDistance'](_0x3da266,'isAdded'),this['_setDistance'](_0x209cb5,'isRemoved'),_0x527f59==_0x4524be&&this['_markMarkers'](_0x3da266,_0x214ef8),_0x3da266=this['_joinTapes'](_0x3da266,_0x209cb5),this['_refreshStartEndIndex'](_0x3da266),this['_setDistance'](_0x3da266,'isRemoved');}_0x3da266=_0x3da266['filter'](_0x3a2a12=>!(_0x3a2a12['isAdded']&&_0x3a2a12['isRemoved']));const _0x224060=new Map(_0xff8675['model'][_0x253a9e]['deletions']['markers']),_0x155110=new Set(_0x214ef8['keys']());for(const _0x575383 of _0x224060['keys']())_0x155110['delete'](_0x575383);this['_markSuggestions'](_0x3da266,_0x155110),this['_fixObsoleteTags'](_0x3da266),_0x3da266=this['_removeMissingPairs'](_0x3da266),_0x3da266=this['_markMismatchedRemovedTags'](_0x3da266),_0x3da266=this['_removeUnsupportedChanges'](_0x3da266);const {root:_0x1fc8cb,changes:_0xb775a9}=this['_makeModelFromTape'](_0x3da266,_0x511d5a,_0x253a9e);_0x106ce8['model'][_0x253a9e]=_0x1fc8cb;const _0x3fd72b=_0x2ef960['get'](_0x253a9e);if(_0x3fd72b){const _0x19e039=_0x511d5a['get'](_0x3fd72b['userId']),_0x4b447f=new r({'author':_0x19e039,'type':_0x3fd72b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x253a9e});_0xb775a9['unshift'](_0x4b447f),_0x106ce8['attributes'][_0x253a9e]['revisionHistoryAttachChange']=_0x4b447f['id'];}_0x106ce8['changes']=_0x106ce8['changes']['concat'](_0xb775a9);}return _0x106ce8;}['_markMarkers'](_0x1b41b5,_0x120f75){for(let _0x121c30=0x0;_0x121c30<_0x1b41b5['length'];_0x121c30++)for(const [_0x46b0f5,_0x39b313]of _0x120f75)_0x39b313['start']['isEqual'](_0x1b41b5[_0x121c30]['previousPosition'])&&_0x1b41b5[_0x121c30]['markersStart']['push'](_0x46b0f5),_0x39b313['end']['isEqual'](_0x1b41b5[_0x121c30]['nextPosition'])&&_0x1b41b5[_0x121c30]['markersEnd']['push'](_0x46b0f5);}['_joinTapes'](_0x17c35f,_0x9c7afb){let _0x295809=[],_0x12a114=0x0,_0x1bcb94=0x0;for(;_0x12a114<_0x17c35f['length']||_0x1bcb94<_0x9c7afb['length'];){const _0x3aa52b=_0x17c35f[_0x12a114]||{},_0x916f3b=_0x9c7afb[_0x1bcb94]||{};if(_0x3aa52b['id']==_0x916f3b['id'])_0x12a114++,_0x1bcb94++,_0x295809['push'](_0x3aa52b);else{if(_0x916f3b['isRemoved']&&_0x3aa52b['isAdded']){const {commonTape:_0x1d1e1e,iEnd:_0x5ac9d4,jEnd:_0xfd2263}=this['_threeWayMerge'](_0x17c35f,_0x12a114,_0x9c7afb,_0x1bcb94);_0x295809=_0x295809['concat'](_0x1d1e1e),_0x12a114=_0x5ac9d4,_0x1bcb94=_0xfd2263;}else _0x916f3b['isRemoved']?(_0x1bcb94++,_0x295809['push'](_0x916f3b)):(_0x12a114++,_0x295809['push'](_0x3aa52b));}}return _0x295809;}['_markSuggestions'](_0x3ab148,_0x435de4){const _0x438196=[];for(let _0x183188=0x0;_0x183188<_0x3ab148['length'];_0x183188++){for(let _0x2c7122=0x0;_0x2c7122<_0x3ab148[_0x183188]['markersStart']['length'];_0x2c7122++){const _0x59bee0=_0x3ab148[_0x183188]['markersStart'][_0x2c7122];if(!_0x435de4['has'](_0x59bee0))continue;const {group:_0x549da4,type:_0x11c97e,authorId:_0x183644}=_0xe26c88(_0x59bee0);'revision-suggestion'!=_0x549da4||'insertion'!=_0x11c97e&&'deletion'!=_0x11c97e||(_0x438196['unshift']({'type':_0x11c97e,'name':_0x59bee0,'userId':_0x183644}),_0x3ab148[_0x183188]['markersStart']['splice'](_0x2c7122,0x1),_0x2c7122--);}_0x34978b(_0x3ab148[_0x183188]);for(let _0x4ebbcf=0x0;_0x4ebbcf<_0x3ab148[_0x183188]['markersEnd']['length'];_0x4ebbcf++){const _0x9dd084=_0x3ab148[_0x183188]['markersEnd'][_0x4ebbcf];if(!_0x435de4['has'](_0x9dd084))continue;const {group:_0x544eba,type:_0x1ee22a}=_0xe26c88(_0x9dd084);if('revision-suggestion'!=_0x544eba||'insertion'!=_0x1ee22a&&'deletion'!=_0x1ee22a)continue;_0x3ab148[_0x183188]['markersEnd']['splice'](_0x4ebbcf,0x1),_0x4ebbcf--;const _0x16db0d=_0x438196['findIndex'](_0x5902e3=>_0x5902e3['name']==_0x9dd084);_0x16db0d>-0x1&&_0x438196['splice'](_0x16db0d,0x1);}}function _0xe26c88(_0x507e1a){const _0x46bc08=_0x507e1a['split'](':');return{'group':_0x46bc08[0x0],'type':_0x46bc08[0x1],'subType':_0x46bc08['length']>=0x5?_0x46bc08[0x2]:null,'id':_0x46bc08['length']<0x5?_0x46bc08[0x2]:_0x46bc08[0x3],'authorId':_0x46bc08['length']<0x5?_0x46bc08[0x3]:_0x46bc08[0x4],'markerCount':0x6==_0x46bc08['length']?_0x46bc08[0x5]:null};}function _0x34978b(_0x45148a){for(let _0x2ef168=0x0;_0x2ef168<_0x438196['length'];_0x2ef168++){if(_0x45148a['isAdded']&&'insertion'==_0x438196[_0x2ef168]['type'])return _0x45148a['isAddSuggestion']=_0x438196[_0x2ef168],void delete _0x45148a['isAdded'];if(!_0x45148a['isAdded']&&!_0x45148a['isRemoved']&&'deletion'==_0x438196[_0x2ef168]['type'])return void(_0x45148a['isRemoveSuggestion']=_0x438196[_0x2ef168]);}}}['_setDistance'](_0x2ce7fa,_0x161140){let _0xd88fcb=0x0,_0xf21b3a=!0x1;const _0x47a5e3=new Map();for(const _0x49444c of _0x2ce7fa)_0x49444c[_0x161140]?_0xf21b3a&&(_0xd88fcb++,_0xf21b3a=!0x1):(_0xd88fcb++,_0xf21b3a=!0x0),_0x47a5e3['set'](_0x49444c['id'],_0xd88fcb);for(let _0xd35ad2=0x0;_0xd35ad2<_0x2ce7fa['length'];_0xd35ad2++){if('isRemoved'==_0x161140&&_0x2ce7fa[_0xd35ad2]['isAdded']||'isAdded'==_0x161140&&_0x2ce7fa[_0xd35ad2]['isRemoved'])continue;if('text'==_0x2ce7fa[_0xd35ad2]['type']){_0x2ce7fa[_0xd35ad2]['distance']=0x0;continue;}const _0x3fe9ce=_0x47a5e3['get'](_0x2ce7fa[_0xd35ad2]['pairId']),_0xd2205d=_0x47a5e3['get'](_0x2ce7fa[_0xd35ad2]['id']);_0x2ce7fa[_0xd35ad2]['distance']=_0x3fe9ce-_0xd2205d;}}['_getRevisionsRange'](_0x53b514,_0x3d06f1,_0x339290=!0x1){const _0x1f0750=[];let _0x23f884=this['repository']['getIndex'](_0x53b514),_0x3adb35=this['repository']['getIndex'](_0x3d06f1);for(-0x1==_0x3adb35&&(_0x3adb35=this['repository']['_revisions']['length'],_0x339290=!0x1);_0x23f884<_0x3adb35;)_0x1f0750['push'](this['repository']['getRevision'](_0x23f884)),_0x23f884++;return _0x339290&&_0x1f0750['push'](this['repository']['getRevision'](_0x23f884)),_0x1f0750;}['_threeWayMerge'](_0x3d8fcc,_0x508ff0,_0x1f32cc,_0x190e10){const _0x18dbf0=this['editor']['model']['schema'];let _0x576480=_0x508ff0;for(;_0x3d8fcc[_0x576480]&&_0x3d8fcc[_0x576480]['isAdded'];)_0x576480++;let _0x330b0d=_0x190e10;for(;_0x1f32cc[_0x330b0d]&&_0x1f32cc[_0x330b0d]['isRemoved'];)_0x330b0d++;_0x33e3f3(_0x3d8fcc,_0x508ff0,_0x576480),_0x33e3f3(_0x1f32cc,_0x190e10,_0x330b0d);const _0x16963a=_0x1f32cc['slice'](_0x190e10,_0x330b0d)['concat'](_0x3d8fcc['slice'](_0x508ff0,_0x576480));return _0x16963a['sort']((_0x20553b,_0x4e0177)=>_0x20553b['side']!=_0x4e0177['side']?_0x20553b['side']-_0x4e0177['side']:_0x20553b['level']!=_0x4e0177['level']?_0x20553b['level']-_0x4e0177['level']:_0x20553b['distance']!=_0x4e0177['distance']?_0x4e0177['distance']-_0x20553b['distance']:!!_0x20553b['isAdded']!=!!_0x4e0177['isAdded']?-0x1==_0x20553b['side']||0x0==_0x20553b['side']?_0x20553b['isAdded']?-0x1:0x1:_0x20553b['isAdded']?0x1:-0x1:_0x20553b['index']-_0x4e0177['index']),{'commonTape':_0x16963a,'iEnd':_0x576480,'jEnd':_0x330b0d};function _0x33e3f3(_0x1f18fe,_0x2c555e,_0x924fcd){let _0x1c78ae=-0x1,_0x3b80ef=Number['POSITIVE_INFINITY'],_0xf52c00=!0x0;for(let _0x1547ea=_0x2c555e;_0x1547ea<_0x924fcd;_0x1547ea++)if(_0x18dbf0['isInline'](_0x1f18fe[_0x1547ea]['item'])||(_0xf52c00=!0x1),_0x1f18fe[_0x1547ea]['item']['startIndex']<_0x2c555e&&(_0x1c78ae=_0x1547ea),_0x1f18fe[_0x1547ea]['item']['endIndex']>=_0x924fcd){_0x3b80ef=_0x1547ea;break;}_0xf52c00&&(_0x1c78ae=_0x924fcd-0x1);for(let _0x4724bd=_0x2c555e;_0x4724bd<_0x924fcd;_0x4724bd++)_0x1f18fe[_0x4724bd]['side']=_0x4724bd<=_0x1c78ae?-0x1:_0x4724bd<_0x3b80ef?0x0:0x1,_0x1f18fe[_0x4724bd]['index']=_0x4724bd;let _0x326737=0x0;for(let _0x4527d7=_0x2c555e;_0x4527d7<=_0x1c78ae;_0x4527d7++)0x0==_0x1f18fe[_0x4527d7]['distance']?_0x1f18fe[_0x4527d7]['level']=_0x326737:(_0x326737++,_0x1f18fe[_0x4527d7]['level']=_0x326737,_0x326737++);for(let _0x2149e5=_0x2c555e;_0x2149e5<_0x924fcd;_0x2149e5++)0x0==_0x1f18fe[_0x2149e5]['side']&&(_0x1f18fe[_0x2149e5]['level']=_0x326737);_0x326737=0x0;for(let _0xe43971=_0x924fcd-0x1;_0xe43971>=_0x3b80ef;_0xe43971--)0x0==_0x1f18fe[_0xe43971]['distance']?_0x1f18fe[_0xe43971]['level']=_0x326737:(_0x326737--,_0x1f18fe[_0xe43971]['level']=_0x326737,_0x326737--);}}['_fixObsoleteTags'](_0x5cb984){const _0x39910c=new Map(),_0x4beecb=this['editor']['model']['schema'];for(let _0x51f165=0x1;_0x51f165<_0x5cb984['length'];_0x51f165++){let _0x402490,_0x24f351,_0x31aca0;const _0x220f9f=_0x5cb984[_0x51f165],_0x5ee196=_0x5cb984[_0x51f165-0x1];if('text'==_0x220f9f['type'])continue;if(_0x220f9f['type']!=_0x5ee196['type'])continue;if(!_0x4beecb['isBlock'](_0x5ee196['item'])||_0x4beecb['isLimit'](_0x5ee196['item']))continue;if(!_0x4beecb['isBlock'](_0x220f9f['item'])||_0x4beecb['isLimit'](_0x220f9f['item']))continue;if((_0x5cb984[_0x51f165]['isAdded']||_0x5cb984[_0x51f165]['isAddSuggestion'])&&_0x5cb984[_0x51f165-0x1]['isRemoved'])_0x402490=_0x5cb984[_0x51f165],_0x24f351=_0x5cb984[_0x51f165-0x1],_0x31aca0=_0x51f165-0x1;else{if(!_0x5cb984[_0x51f165]['isRemoved']||!_0x5cb984[_0x51f165-0x1]['isAdded']&&!_0x5cb984[_0x51f165-0x1]['isAddSuggestion'])continue;_0x402490=_0x5cb984[_0x51f165-0x1],_0x24f351=_0x5cb984[_0x51f165],_0x31aca0=_0x51f165;}const _0x2af218=_0x402490['level']==_0x24f351['level'],_0x1483f1=Math['abs'](_0x402490['level'])<Math['abs'](_0x24f351['level'])&&0x0==_0x24f351['distance'];(_0x2af218||_0x1483f1)&&(_0x39910c['set'](_0x24f351['id'],_0x402490['id']),_0x5cb984['splice'](_0x31aca0,0x1),_0x51f165--,_0x402490['isAdded']=!0x1);}for(let _0x49b87d=0x0;_0x49b87d<_0x5cb984['length'];_0x49b87d++)_0x39910c['has'](_0x5cb984[_0x49b87d]['pairId'])&&(_0x5cb984[_0x49b87d]['pairId']=_0x39910c['get'](_0x5cb984[_0x49b87d]['pairId']));}['_removeMissingPairs'](_0xb8b322){const _0x1cec44=new Set(_0xb8b322['map'](_0x56256f=>_0x56256f['id']));for(let _0x50c743=0x0;_0x50c743<_0xb8b322['length'];_0x50c743++)_0x1cec44['has'](_0xb8b322[_0x50c743]['pairId'])||0x0==_0xb8b322[_0x50c743]['distance']||(_0xb8b322[_0x50c743]['isIncorrect']=!0x0);return _0xb8b322['filter'](_0x5176e6=>!_0x5176e6['isIncorrect']);}['_markMismatchedRemovedTags'](_0x5d8cf6){const _0x10eca2=new Set();for(let _0x1de502=0x0;_0x1de502<_0x5d8cf6['length'];_0x1de502++){if(_0x10eca2['has'](_0x5d8cf6[_0x1de502]['id'])&&_0x5d8cf6[_0x1de502]['isRemoved']&&(_0x5d8cf6[_0x1de502]['isIncorrect']=!0x0),_0x5d8cf6[_0x1de502]['isIncorrect'])continue;if(0x0==_0x5d8cf6[_0x1de502]['distance'])continue;if('elementStart'!=_0x5d8cf6[_0x1de502]['type'])continue;if(null==_0x5d8cf6[_0x1de502]['pairId'])continue;let _0x5b752b=_0x1de502+0x1,_0x15c7a2=0x0;for(;_0x5d8cf6[_0x5b752b]['id']!=_0x5d8cf6[_0x1de502]['pairId'];)'elementStart'==_0x5d8cf6[_0x5b752b]['type']?_0x15c7a2++:'elementEnd'==_0x5d8cf6[_0x5b752b]['type']&&_0x15c7a2--,_0x5b752b++;if(0x0!=_0x15c7a2){if(_0x5d8cf6[_0x1de502]['isRemoved'])_0x5d8cf6[_0x1de502]['isIncorrect']=!0x0;else{for(;_0x5b752b!=_0x1de502;)_0x5d8cf6[_0x5b752b]['isRemoved']&&0x0!=_0x5d8cf6[_0x5b752b]['distance']&&(_0x5d8cf6[_0x5b752b]['isIncorrect']=!0x0,_0x10eca2['add'](_0x5d8cf6[_0x5b752b]['pairId'])),_0x5b752b--;}}}return _0x5d8cf6['filter'](_0xf9065e=>!_0xf9065e['isIncorrect']);}['_removeUnsupportedChanges'](_0x2148fd){const _0x5c3ed7=this['editor']['model']['schema'];for(let _0x499589=0x0;_0x499589<_0x2148fd['length'];_0x499589++){if(!(_0x2148fd[_0x499589]['isAdded']||_0x2148fd[_0x499589]['isAddSuggestion']||_0x2148fd[_0x499589]['isRemoved']||_0x2148fd[_0x499589]['isRemoveSuggestion']))continue;if(0x0==_0x2148fd[_0x499589]['distance'])continue;const _0x2e46e0=_0x2148fd[_0x499589]['item'];_0x5c3ed7['isBlock'](_0x2e46e0)||_0x5c3ed7['isLimit'](_0x2e46e0)||(_0x2148fd[_0x499589]['isAdded']&&delete _0x2148fd[_0x499589]['isAdded'],_0x2148fd[_0x499589]['isAddSuggestion']&&delete _0x2148fd[_0x499589]['isAddSuggestion'],_0x2148fd[_0x499589]['isRemoveSuggestion']&&delete _0x2148fd[_0x499589]['isRemoveSuggestion'],_0x2148fd[_0x499589]['isRemoved']&&(_0x2148fd[_0x499589]['isIncorrect']=!0x0));}return _0x2148fd['filter'](_0x4b57e5=>!_0x4b57e5['isIncorrect']);}['_makeModelFromTape'](_0x364f02,_0x5143fd,_0x2192aa){const _0x5b1013=new mt(),_0x283c51=[],_0x4a3ef5=new Map(),_0x4bb454=this['editor']['model'],_0x4e1be2=_0x4bb454['schema'],_0x368c7b=[_0x5b1013],_0x58f749={},_0x14a3e4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x160343=null;const _0x2fdd09=[0x0];for(let _0x5737f3=0x0;_0x5737f3<_0x364f02['length'];_0x5737f3++)if('elementStart'===_0x364f02[_0x5737f3]['type']){_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09);const _0x3d8811=new ft(_0x364f02[_0x5737f3]['item']['name'],_0x364f02[_0x5737f3]['item']['getAttributes']());_0x368c7b[0x0]['_appendChild'](_0x3d8811),_0x2fdd09['push'](0x0),_0x368c7b['unshift'](_0x3d8811),_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09);}else'elementEnd'===_0x364f02[_0x5737f3]['type']?(_0x368c7b['shift'](),_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09),_0x2fdd09['pop'](),_0x2fdd09[_0x2fdd09['length']-0x1]++,_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09)):(_0x364f02[_0x5737f3]['previousPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09),_0x160343?_0x160343['_data']+=_0x364f02[_0x5737f3]['item']['data']:_0x160343=new wt(_0x364f02[_0x5737f3]['item']['data'],_0x364f02[_0x5737f3]['item']['getAttributes']()),_0x364f02[_0x5737f3+0x1]&&'text'===_0x364f02[_0x5737f3+0x1]['type']&&_0x2f420b(_0x160343,_0x364f02[_0x5737f3+0x1]['item'])||(_0x368c7b[0x0]['_appendChild'](_0x160343),_0x160343=null),_0x2fdd09[_0x2fdd09['length']-0x1]+=_0x364f02[_0x5737f3]['item']['offsetSize'],_0x364f02[_0x5737f3]['nextPosition']=_0x4bb454['createPositionFromPath'](_0x5b1013,_0x2fdd09));for(let _0x47a80e=0x0;_0x47a80e<_0x364f02['length'];_0x47a80e++){const _0x3e8a02=_0x364f02[_0x47a80e]['previousPosition'],_0x5cba3c=_0x364f02[_0x47a80e]['nextPosition'];for(const _0x2dc019 of _0x364f02[_0x47a80e]['markersStart'])_0x4a3ef5['set'](_0x2dc019,{'start':_0x3e8a02,'end':null});_0x1f5ae8('isRemoveSuggestion',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isAddSuggestion',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isRemoved',_0x47a80e,_0x3e8a02,_0x5cba3c),_0x1f5ae8('isAdded',_0x47a80e,_0x3e8a02,_0x5cba3c);for(const _0x5d9335 of _0x364f02[_0x47a80e]['markersEnd']){_0x4a3ef5['get'](_0x5d9335)['end']=_0x5cba3c;}}for(const [_0x1eaf9b,_0x13bc51]of _0x4a3ef5){const _0x1ef754=this['editor']['model']['createRange'](_0x13bc51['start'],_0x13bc51['end']);_0x5b1013['markers']['set'](_0x1eaf9b,_0x1ef754);}return _0x283c51['sort']((_0x37ac07,_0x334984)=>{const _0xeeefc4=_0x5b1013['markers']['get']('revision:'+_0x37ac07['id']),_0x5a3ae=_0x5b1013['markers']['get']('revision:'+_0x334984['id']);return _0xeeefc4['start']['isBefore'](_0x5a3ae['start'])?-0x1:_0xeeefc4['start']['isAfter'](_0x5a3ae['start'])?0x1:_0xeeefc4['end']['isBefore'](_0x5a3ae['end'])?-0x1:_0xeeefc4['end']['isAfter'](_0x5a3ae['end'])?0x1:'add'===_0x37ac07['type']?-0x1:0x1;}),{'root':_0x5b1013,'changes':_0x283c51};function _0x1f5ae8(_0x1cf427,_0x4f595b,_0x395a2a,_0x4af66b){const _0x3b6281=!!_0x364f02[_0x4f595b][_0x1cf427],_0x1411cf=_0x3b6281?_0x364f02[_0x4f595b][_0x1cf427]['userId']:null,_0x2f6997=_0x4f595b===_0x364f02['length']-0x1,_0x3148ef=_0x14a3e4[_0x1cf427][0x0],_0x3263da=_0x4e1be2['isObject'](_0x364f02[_0x4f595b]['item']);!_0x58f749[_0x1cf427]&&_0x3b6281?_0x58f749[_0x1cf427]={'start':_0x395a2a,'tapeItem':_0x364f02[_0x4f595b],'userId':_0x1411cf,'type':_0x1cf427}:_0x58f749[_0x1cf427]&&!_0x3b6281?(_0x58f749[_0x1cf427]['end']=_0x395a2a,_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]=null):_0x58f749[_0x1cf427]&&_0x3b6281&&_0x58f749[_0x1cf427]['userId']!==_0x1411cf&&(_0x58f749[_0x1cf427]['end']=_0x395a2a,_0x3148ef&&_0x3148ef['userId']===_0x58f749[_0x1cf427]['userId']||_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]={'start':_0x395a2a,'tapeItem':_0x364f02[_0x4f595b],'userId':_0x1411cf,'type':_0x1cf427}),_0x58f749[_0x1cf427]&&_0x3263da&&('elementStart'!==_0x364f02[_0x4f595b]['type']||_0x3148ef&&_0x3148ef['userId']===_0x1411cf||_0x14a3e4[_0x1cf427]['unshift']({'userId':_0x1411cf,'object':_0x364f02[_0x4f595b]['item'],'change':_0x58f749[_0x1cf427]}),'elementEnd'===_0x364f02[_0x4f595b]['type']&&_0x3148ef&&_0x3148ef['object']===_0x364f02[_0x4f595b]['item']&&(_0x14a3e4[_0x1cf427]['shift'](),_0x58f749[_0x1cf427]=_0x3148ef['change'])),_0x58f749[_0x1cf427]&&_0x2f6997&&(_0x58f749[_0x1cf427]['end']=_0x4af66b,_0x582816(_0x58f749[_0x1cf427]),_0x58f749[_0x1cf427]=null);}function _0x582816({start:_0x1c3ff9,end:_0x1c4c3d,tapeItem:_0x44cfc3,userId:_0x28c25b,type:_0x497031}){const _0x5f5759=_0x44cfc3['item'],_0x1d12e4=_0x4bb454['schema']['isBlock'](_0x5f5759)&&!_0x4bb454['schema']['isLimit'](_0x5f5759),_0x811254=_0x1c3ff9['nodeAfter']==_0x1c4c3d['parent']&&_0x1c4c3d['isAtStart'];if(_0x1d12e4&&_0x811254)return;const _0x4577c7=_0x4bb454['createRange'](_0x1c3ff9,_0x1c4c3d),_0xa534d6=_0x5143fd['get'](_0x28c25b),_0x25979a=new r({'author':_0xa534d6,'type':'isAdded'==_0x497031||'isAddSuggestion'==_0x497031?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x497031||'isRemoveSuggestion'==_0x497031},'createdAt':new Date(),'rootName':_0x2192aa});_0x283c51['push'](_0x25979a),_0x5b1013['markers']['set']('revision:'+_0x25979a['id'],_0x4577c7);}function _0x2f420b(_0x5c8e10,_0x145455){const _0x57e2e4=_0x5c8e10['getAttributes'](),_0x53ebc2=_0x145455['getAttributes']();for(const _0x1f5025 of _0x57e2e4){if(_0x1f5025[0x1]!==_0x145455['getAttribute'](_0x1f5025[0x0]))return!0x1;_0x53ebc2['next']();}return _0x53ebc2['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x396d4a=>{const _0x45194a=_0x396d4a['markerName']['split'](':')[0x1],_0x52fadb=this['_getChangeFromId'](_0x45194a);if(!_0x52fadb)return null;const _0x123d68='add'==_0x52fadb['type']?'insertion':'deletion',_0x28f312=['ck-suggestion-marker','ck-suggestion-marker-'+_0x123d68];return _0x52fadb['data']['isSuggestion']&&_0x28f312['push']('ck-suggestion-marker-'+_0x123d68+'-new'),this['activeChange']==_0x52fadb&&_0x28f312['push']('ck-suggestion-marker--active'),{'classes':_0x28f312,'attributes':{'data-change-id':_0x45194a}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x57eacd=>{_0x57eacd['on']('element:pre',(_0x131f21,_0x1083a9,_0x695043)=>{const _0x2897ca=_0x1083a9['viewItem']['getChild'](0x0);if(!_0x2897ca||!_0x2897ca['is']('element','code'))return;if(!_0x695043['consumable']['consume'](_0x2897ca,{'attributes':['vid_start','vid_end']}))return;const _0x5268e3=_0x1083a9['modelRange']['start']['nodeAfter'];_0x695043['writer']['setAttribute']('vid_start',_0x2897ca['getAttribute']('vid_start'),_0x5268e3),_0x695043['writer']['setAttribute']('vid_end',_0x2897ca['getAttribute']('vid_end'),_0x5268e3);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x358c24=>{_0x358c24['on']('element',(_0x22b4f9,_0x187423,_0x5bd7b7)=>{if(!_0x5bd7b7['consumable']['consume'](_0x187423['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x187423['modelRange']['isCollapsed'])return;const _0x572a3a=_0x187423['modelRange']['start']['nodeAfter'];_0x572a3a['hasAttribute']('vid_start')||_0x572a3a['hasAttribute']('vid')||(_0x5bd7b7['writer']['setAttribute']('vid_start',_0x187423['viewItem']['getAttribute']('vid_start'),_0x572a3a),_0x5bd7b7['writer']['setAttribute']('vid_end',_0x187423['viewItem']['getAttribute']('vid_end'),_0x572a3a));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4842aa=>_0x4842aa['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x514908,[,_0x414186])=>{['vid_start','vid_end','vid']['includes'](_0x414186)&&(_0x514908['return']=!0x0,_0x514908['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x236d6f=>{_0x236d6f['on']('attribute:vid',(_0x8e5929,_0x56bb4c,_0x50315f)=>{if('\x20'!=_0x56bb4c['item']['data']||_0x56bb4c['item']['parent']['maxOffset']>0x1)return;if(!_0x50315f['consumable']['consume'](_0x56bb4c['item'],_0x8e5929['name']))return;const _0x334f54=_0x50315f['writer'],_0x27d16b=_0x50315f['mapper']['toViewRange'](_0x56bb4c['range']);_0x334f54['wrap'](_0x27d16b,_0x334f54['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x266009){const _0x20ed8d=_0x266009['plugins']['get']('RevisionViewer');return(_0x5559c3,_0x103b63,_0x5b1080)=>{const _0x5235e6=_0x103b63['markerName']['split'](':')[0x1],_0x34cf6b=_0x20ed8d['_getChangeFromId'](_0x5235e6);if(!_0x34cf6b)return null;const _0x51e346='add'==_0x34cf6b['type']?'split':'merge';if(!_0x5b1080['consumable']['test'](_0x103b63['markerRange'],_0x5559c3['name']))return;const _0x37fd57=_0x103b63['markerRange']['getWalker'](),_0x26471e=_0x103b63['markerRange']['start'],_0x1bb3a1=_0x266009['model']['schema'];let _0x2f8c7a=null,_0x15cfe5=null,_0x26a348=!0x1,_0x1f0bb7=!0x1;for(const _0x4067af of _0x37fd57){const _0x219ef1=_0x4067af['item'];_0x26a348=_0x26a348||_0x1bb3a1['isContent'](_0x219ef1);const _0x4b600d=_0x5b1080['mapper']['toViewElement'](_0x219ef1);if(_0x4b600d&&_0x4b600d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4067af['type']&&(_0x1bb3a1['isBlock'](_0x219ef1)&&!_0x1bb3a1['isLimit'](_0x219ef1)&&(_0x219ef1['nextSibling']||_0x26471e['isAtEnd']?_0x2f8c7a&&_0x2f8c7a['parent']==_0x219ef1||(_0x2f8c7a=_0x219ef1,_0x1a772f(_0x4067af['previousPosition']),_0x1f0bb7=!0x0):_0x15cfe5=_0x15cfe5||_0x4067af['previousPosition']));}function _0x1a772f(_0x3120de){const _0x1d015e=_0x5b1080['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x51e346}),_0x1ef11a=_0x5b1080['mapper']['toViewPosition'](_0x3120de);_0x34cf6b['data']['isSuggestion']&&_0x5b1080['writer']['addClass']('ck-suggestion-marker-'+_0x51e346+'-new',_0x1d015e),_0x20ed8d['activeChange']==_0x34cf6b&&_0x5b1080['writer']['addClass']('ck-suggestion-marker--active',_0x1d015e),_0x5b1080['writer']['insert'](_0x1ef11a,_0x1d015e),_0x5b1080['mapper']['bindElementToMarker'](_0x1d015e,_0x103b63['markerName']);}_0x26a348||_0x1f0bb7||!_0x15cfe5||_0x1a772f(_0x15cfe5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x568d20,_0x406a33,_0x5ef0b3)=>{const _0x2851cc=_0x5ef0b3['mapper']['markerNameToElements'](_0x406a33['markerName']);if(_0x2851cc){for(const _0x5a7f03 of _0x2851cc)(_0x5a7f03['hasClass']('ck-suggestion-marker-split')||_0x5a7f03['hasClass']('ck-suggestion-marker-merge'))&&(_0x5ef0b3['mapper']['unbindElementFromMarkerName'](_0x5a7f03,_0x406a33['markerName']),_0x5ef0b3['writer']['remove'](_0x5a7f03));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x41ce35,_0x5ed52f,_0x28ae05)=>{const _0x37b44a=_0x5ed52f['markerName']['split'](':')[0x1],_0x5a24a4=this['_getChangeFromId'](_0x37b44a);if(!_0x5a24a4)return null;const _0x317004='add'==_0x5a24a4['type']?'split':'merge';if(_0x28ae05['consumable']['test'](_0x5ed52f['markerRange'],_0x41ce35['name']))for(const _0x510b8e of _0x5ed52f['markerRange']['getItems']()){if(!_0x510b8e['is']('element','softBreak'))continue;const _0x165653=_0x28ae05['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x317004}),_0x5c1fcb=_0x28ae05['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x510b8e));_0x5a24a4['data']['isSuggestion']&&_0x28ae05['writer']['addClass']('ck-suggestion-marker-'+_0x317004+'-new',_0x165653),this['activeChange']==_0x5a24a4&&_0x28ae05['writer']['addClass']('ck-suggestion-marker--active',_0x165653),_0x28ae05['writer']['insert'](_0x5c1fcb,_0x165653),_0x28ae05['mapper']['bindElementToMarker'](_0x165653,_0x5ed52f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x30bb79=>{for(const _0x5e4f2b of this['editor']['model']['document']['getRootNames']()){const _0x24f130=this['editor']['model']['document']['getRoot'](_0x5e4f2b),_0x24fa52=this['editor']['editing']['view']['document']['getRoot'](_0x5e4f2b);if(_0x24fa52){const _0x76a792=_0x24f130['getAttribute']('revisionHistoryAttachChange');if(_0x30bb79['removeAttribute']('data-change-id',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root-add',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root-remove',_0x24fa52),_0x30bb79['removeClass']('ck-revision-history-root--active',_0x24fa52),_0x76a792){const _0x5c4966=this['_getChangeFromId'](_0x76a792);if(!_0x5c4966)return null;_0x30bb79['setAttribute']('data-change-id',_0x76a792,_0x24fa52),_0x30bb79['addClass']('ck-revision-history-root-'+_0x5c4966['type'],_0x24fa52),this['activeChange']==_0x5c4966&&_0x30bb79['addClass']('ck-revision-history-root--active',_0x24fa52);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1179d0=>'revision-comment:'+_0x1179d0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x2db3ec=>'revision-suggestion:'+_0x2db3ec,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x32a6a9=>({'name':'suggestion:'+_0x32a6a9,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3ceabf=>{const _0x13812c=_0x3ceabf['markerName']['split'](':')[0x1];return'insertion'!=_0x13812c&&'deletion'!=_0x13812c?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x13812c]};}}),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',(_0x4ba6a3,_0x513ad8,_0x2f5ee9)=>{const _0x20eae4=_0x2f5ee9['mapper']['markerNameToElements'](_0x513ad8['markerName']);if(_0x20eae4){for(const _0x14e534 of _0x20eae4)_0x14e534['is']('uiElement')&&(_0x2f5ee9['mapper']['unbindElementFromMarkerName'](_0x14e534,_0x513ad8['markerName']),_0x2f5ee9['writer']['remove'](_0x14e534));}},{'priority':'high'});}['_getChangeFromId'](_0x3a14f0){return this['_changeIdToChange']['get'](_0x3a14f0);}['_getViewForChange'](_0x3f8b25){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x3f8b25),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57404e,_0x3cea19,_0x3baebc,_0x22293e)=>{_0x22293e&&this['_balloon']['remove'](_0x22293e),_0x3baebc&&(this['_balloon']['add']({'view':_0x3baebc,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5f2b83=this['editor']['editing'],_0xd8bb3c=this['_getChangeFromId'](_0x3baebc['changeId']);let _0x1c32db;if(_0xd8bb3c['data']['isOnRoot']){const _0x5ce4fc=_0x5f2b83['view']['getDomRoot'](_0xd8bb3c['rootName']);_0x1c32db=Array['from'](_0x5ce4fc['getClientRects']());}else{const _0x25e9ac=this['editor']['model']['markers']['get']('revision:'+_0x3baebc['changeId']);_0x1c32db=Array['from'](_0x5f2b83['mapper']['markerNameToElements'](_0x25e9ac['name']))['map'](_0x39ddcd=>_0x5f2b83['view']['domConverter']['mapViewToDom'](_0x39ddcd))['map'](_0x55f167=>Array['from'](_0x55f167['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c32db[0x0];return _0x1c32db['find'](_0x3700f9=>_0x3700f9['top']-0x3<=this['_activeViewTarget']['y']&&_0x3700f9['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3700f9['left']-0x3<=this['_activeViewTarget']['x']&&_0x3700f9['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c32db[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d2dd1,_0x4b09d9,_0x514afe,_0x3a33b9)=>{this['activeView']=_0x514afe?this['_getViewForChange'](_0x514afe):null,this['editor']['model']['change'](()=>{const _0xb4e61=this['editor']['editing'];_0x3a33b9&&(_0x3a33b9['data']['isOnRoot']?_0xb4e61['view']['change'](_0x48a372=>{_0x48a372['removeClass']('ck-revision-history-root--active',_0xb4e61['view']['document']['getRoot'](_0x3a33b9['rootName']));}):_0xb4e61['reconvertMarker']('revision:'+_0x3a33b9['id'])),_0x514afe&&(_0x514afe['data']['isOnRoot']?_0xb4e61['view']['change'](_0x5eb4fb=>{_0x5eb4fb['addClass']('ck-revision-history-root--active',_0xb4e61['view']['document']['getRoot'](_0x514afe['rootName']));}):_0xb4e61['reconvertMarker']('revision:'+_0x514afe['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x37613b,_0x2deec0)=>{if(this['activeChange'])return;const _0xa912e5=this['_findChangeIdFromDomTarget'](_0x2deec0['target']),_0xe5e91b=this['_changeIdToChange']['get'](_0xa912e5);_0xe5e91b?(this['_activeViewTarget']={'x':_0x2deec0['domEvent']['x'],'y':_0x2deec0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0xe5e91b)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5e5743,_0x356ff3)=>{const _0x5ab581=this['_findChangeIdFromDomTarget'](_0x356ff3['target']),_0x8e9f62=this['_changeIdToChange']['get'](_0x5ab581);_0x8e9f62?(this['_activeViewTarget']={'x':_0x356ff3['domEvent']['x'],'y':_0x356ff3['domEvent']['y']},_0x8e9f62===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x8e9f62):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1632a9){do{const _0x18d69e=_0x1632a9['getAttribute']('data-change-id');if(_0x18d69e)return _0x18d69e;_0x1632a9=_0x1632a9['parent'];}while(_0x1632a9);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x108128=>{for(const _0x487025 of this['editor']['model']['markers'])_0x108128['removeMarker'](_0x487025);});}}function Z(_0x58e9fa,_0x20e244){return(_0x262a5a,_0x100389,_0x5cbe0b)=>{if(!_0x5cbe0b['consumable']['test'](_0x100389['markerRange'],_0x262a5a['name']))return;const _0x3524d3=_0x100389['markerRange']['getWalker'](),_0x4fb4d2=_0x100389['markerRange']['start'],_0x2a758e=_0x58e9fa['model']['schema'];let _0x12f8d4=null,_0xf41f36=null,_0x57ccf6=!0x1,_0x358bff=!0x1;for(const _0x2d86ca of _0x3524d3){const _0xcfc5da=_0x2d86ca['item'];_0x57ccf6=_0x57ccf6||_0x2a758e['isContent'](_0xcfc5da);const _0x1c8338=_0x5cbe0b['mapper']['toViewElement'](_0xcfc5da);if(_0x1c8338&&_0x1c8338['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2d86ca['type']&&(_0x2a758e['isBlock'](_0xcfc5da)&&!_0x2a758e['isLimit'](_0xcfc5da)&&(_0xcfc5da['nextSibling']||_0x4fb4d2['isAtEnd']?_0x12f8d4&&_0x12f8d4['parent']==_0xcfc5da||(_0x12f8d4=_0xcfc5da,_0x4d64fa(_0x2d86ca['previousPosition']),_0x358bff=!0x0):_0xf41f36=_0xf41f36||_0x2d86ca['previousPosition']));}function _0x4d64fa(_0x42ffa3){const _0x248753=_0x5cbe0b['mapper']['toViewPosition'](_0x42ffa3),_0x547737=_0x5cbe0b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x20e244});_0x5cbe0b['writer']['insert'](_0x248753,_0x547737),_0x5cbe0b['mapper']['bindElementToMarker'](_0x547737,_0x100389['markerName']);}_0x57ccf6||_0x358bff||!_0xf41f36||_0x4d64fa(_0xf41f36);};}class _t extends _0x451a85{constructor(_0x4c5bc3){super(_0x4c5bc3);const _0x26b259=_0x4c5bc3['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x26b259,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x26b259,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x897b4b=this['editor'],_0x2146d9=_0x897b4b['plugins']['get'](d),_0x5ce5d2=_0x2146d9['isReady']?_0x2146d9['diff']['newRevisionId']:null;_0x897b4b['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5ce5d2);}['refresh'](){const {isReady:_0x13b68e,isEnabled:_0x2f241a,repository:_0x55830a,diff:_0x23da7c}=this['editor']['plugins']['get'](d),_0x31729f=_0x23da7c&&_0x55830a['getLaterVisibleRevision'](_0x23da7c['newRevisionId']);this['isEnabled']=_0x13b68e&&_0x2f241a&&Boolean(_0x31729f);}}class yt extends _0x451a85{['_step'];constructor(_0x51239b,{direction:_0x1f94f9}){super(_0x51239b);const _0x579604=_0x51239b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x1f94f9?0x1:-0x1,this['listenTo'](_0x579604,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x579604,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x579604,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x46e20e=this['editor'],_0x486ce0=_0x46e20e['plugins']['get'](d),{isNavigationMode:_0x213d4d,currentChangeNumber:_0x2eaddf}=_0x486ce0;let _0x2b0a9b;if(_0x486ce0['activeChange']=_0x213d4d?_0x486ce0['diff']['changes']['get'](_0x2eaddf+this['_step']):_0x486ce0['diff']['changes']['first'],_0x486ce0['activeChange']['data']['isOnRoot'])_0x2b0a9b=_0x46e20e['editing']['view']['getDomRoot'](_0x486ce0['activeChange']['rootName']);else{const _0x366a08=_0x46e20e['model']['markers']['get']('revision:'+_0x486ce0['activeChange']['id']);_0x2b0a9b=_0x51754f(_0x46e20e['editing'],_0x366a08);}_0x221f1c({'target':_0x2b0a9b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x19bf01,currentChangeNumber:_0x1d4efe,numberOfChanges:_0x148c07,isReady:_0x4668fb,isEnabled:_0x4ec9d8}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x4ec9d8&&_0x4668fb&&_0x148c07)&&(!_0x19bf01||(0x1===this['_step']?_0x1d4efe<_0x148c07-0x1:_0x1d4efe>0x0));}}class _i extends _0x54bab1{constructor(_0x3c43f2){super(_0x3c43f2);const _0x16bfff=this['bindTemplate'],_0x5141d9=new _0x412521(_0x3c43f2),_0x278f2e=new _0x412521(_0x3c43f2);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',(_0x515fb0,_0x4720e5)=>_0x515fb0&&_0x4720e5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x459773,_0x25befd,_0x521c5e,_0x355f56)=>{if(!_0x459773)return m(_0x3c43f2,'Loading...');if(!_0x521c5e)return m(_0x3c43f2,'No\x20changes');const _0x399a4a=m(_0x3c43f2,'NUMBER_OF_CHANGES',_0x521c5e);return _0x355f56?m(_0x3c43f2,'X_OF_Y_CHANGES',[_0x25befd+0x1,_0x521c5e]):_0x399a4a;}),_0x5141d9['set']({'label':m(_0x3c43f2,'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'}),_0x278f2e['set']({'label':m(_0x3c43f2,'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'}),_0x5141d9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x278f2e['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x5141d9['on']('execute',()=>this['fire']('execute','backward')),_0x278f2e['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',_0x16bfff['if']('_isStatusLabelVisible','ck-hidden',_0x5b567c=>!_0x5b567c)]},'children':[{'text':_0x16bfff['to']('isNavigationMode',_0x305a3a=>_0x305a3a?m(_0x3c43f2,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x3c43f2,'Total')+':\x20')}]},{'text':_0x16bfff['to']('_statusText')}]},new _0x50d3fa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x5141d9,_0x278f2e]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x4011e1{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b1e36=this['editor']['editing']['view'];_0x2b1e36['change'](_0x566977=>{for(const _0x428ba1 of _0x2b1e36['document']['roots'])_0x566977['addClass'](ce,_0x428ba1);});}['hide'](){const _0x22172a=this['editor']['editing']['view'];_0x22172a['change'](_0x24a67e=>{for(const _0x530f3b of _0x22172a['document']['roots'])_0x24a67e['removeClass'](ce,_0x530f3b);});}}class g extends _0x4011e1{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x29df54=this['editor'],_0x568f55=_0x29df54['plugins']['get'](d),_0x20fd9f=_0x29df54['plugins']['get'](le);_0x29df54['ui']['componentFactory']['add']('exitToEditing',_0x123113=>{const _0x7e5a90=new _0x412521(_0x123113);return _0x7e5a90['set']({'label':m(_0x123113,'Back\x20to\x20editing'),'icon':_0x5bb3f8['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x7e5a90,'execute',()=>{_0x29df54['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x7e5a90;}),_0x29df54['ui']['componentFactory']['add']('restoreRevision',_0x257396=>{const _0x1aa086=new _0x412521(_0x257396);return _0x1aa086['set']({'label':m(_0x257396,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1aa086['bind']('isEnabled')['to'](_0x29df54['commands']['get']('restoreRevision')),this['listenTo'](_0x1aa086,'execute',()=>_0x29df54['execute']('restoreRevision')),_0x1aa086;}),_0x29df54['ui']['componentFactory']['add']('changesNavigation',_0x1e9baa=>{const _0x58dd3a=new _i(_0x1e9baa),_0x6c9144=_0x29df54['commands']['get']('showPreviousChange'),_0x24cc87=_0x29df54['commands']['get']('showNextChange');return _0x58dd3a['bind']('isBackwardNavigationEnabled')['to'](_0x6c9144,'isEnabled'),_0x58dd3a['bind']('isForwardNavigationEnabled')['to'](_0x24cc87,'isEnabled'),_0x58dd3a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x568f55),this['listenTo'](_0x58dd3a,'execute',(_0x5e7730,_0x1e9a39)=>{_0x29df54['execute']('forward'===_0x1e9a39?'showNextChange':'showPreviousChange');}),_0x58dd3a;}),_0x20fd9f['show'](),_0x568f55['on']('change:isReady',(_0x283faf,_0x116ab9,_0x5bcf31)=>{_0x5bcf31?_0x20fd9f['hide']():_0x20fd9f['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x47412c,_0x8c707a){super(_0x47412c,_0x8c707a);const _0x549cd1=this['bindTemplate'];this['set']({'label':m(_0x47412c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x47412c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x549cd1['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 _0x23a375=this['fieldView']['element'];this['_tooltipString']=_0x23a375['scrollWidth']>_0x23a375['clientWidth']&&_0x23a375['value']||'';}}class ti extends _0x54bab1{constructor(_0x1e88d9,_0x37ee0a,_0x40f0bc){super(_0x1e88d9);const _0x375337=new _0xe7dccb();_0x375337['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 _0x3d3dde=['ck','ck-revision-history-sidebar__revision-author'];_0x40f0bc&&_0x3d3dde['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3fac3f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1e88d9,_0x40f0bc?'Revision\x20creator':'Revision\x20author')},'children':[_0x375337,_0x37ee0a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3d3dde},'children':_0x3fac3f});}}function ni(_0x56b5f5,_0x1a8009){const _0xea36e9=_0x56b5f5['bindTemplate'],_0x2c58f1=_0x56b5f5['locale'],_0x2f7e0a=_0x46c6e4(_0x2c58f1);_0x2f7e0a['panelPosition']='sw';const _0x5d2ea1=function(_0x240cda,_0x3a05c6){const _0x35c741=function(_0x54c068,_0x5c0d8a){const _0x288e19=_0x54c068['locale'],_0x5a762e={'Compare\x20against\x20selected':m(_0x288e19,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x288e19,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x288e19,'Restore\x20this\x20revision')};return _0x5c0d8a['map'](_0x5c3511=>{const _0x3be94f=_0x5a762e[_0x5c3511['name']];return _0x3be94f&&_0x3be94f!==_0x5c3511['name']&&(_0x5c3511['name']=_0x3be94f),_0x5c3511;});}(_0x240cda,_0x3a05c6),_0x3af440=new _0x177da0();for(const _0x511201 of _0x35c741){const _0x5688ae={'type':'button','model':new to({'label':_0x511201['name'],'class':_0x511201['class'],'withText':!0x0,'role':'menuitem','_action':_0x511201['action']})};_0x5688ae['model']['bind']('isEnabled')['to'](_0x240cda,'isActionsDropdownOpen',_0x36ad87=>'function'!=typeof _0x511201['isEnabled']||(!_0x36ad87||_0x511201['isEnabled'](_0x240cda))),_0x3af440['add'](_0x5688ae);}return _0x3af440;}(_0x56b5f5,_0x1a8009);return _0x56b5f5['bind']('isActionsDropdownOpen')['to'](_0x2f7e0a,'isOpen'),_0x2f7e0a['buttonView']['set']({'label':m(_0x2c58f1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5bb3f8['threeVerticalDots']}),_0x2f7e0a['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0xea36e9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0xea36e9['to'](_0x10e273=>_0x10e273['stopPropagation']())}}),_0x2f7e0a['on']('execute',_0x56a520=>{_0x56b5f5['isReady']&&'function'==typeof _0x56a520['source']['_action']&&_0x56a520['source']['_action'](_0x56b5f5);}),_0x8c893(_0x2f7e0a,_0x5d2ea1,{'role':'menu'}),_0x2f7e0a['listenTo'](_0x56b5f5,'change:isActionsDropdownOpen',(_0x35068f,_0x2c8504,_0x3a37e0)=>{if(_0x3a37e0)for(const _0x3d20de of _0x2f7e0a['listView']['items']){const _0x57b479=_0x3d20de['children']['first'],_0x49d51d=_0x1a8009['find'](_0x515554=>_0x515554['action']===_0x57b479['_action'])['isVisible'];_0x3d20de['isVisible']=void 0x0===_0x49d51d||_0x49d51d(_0x56b5f5);}}),_0x2f7e0a;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x1c84ab(_0x54bab1){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x11d88a,_0x1e950b,_0x190026,_0x26b773){super(_0x11d88a);const _0x12efa4=this['bindTemplate'],_0x4276a9=function(_0x63d184,_0x1c120d){const _0x546f42=Array['from'](_0x1c120d['authors'])['filter'](_0x403c1d=>_0x403c1d!=_0x1c120d['creator']);return _0x1c120d['creator']&&_0x546f42['unshift'](_0x1c120d['creator']),_0x546f42['map'](_0x332f48=>new ti(_0x63d184,_0x332f48,_0x332f48==_0x1c120d['creator']));}(_0x11d88a,_0x1e950b);this['id']=_0x1e950b['id'],this['_revision']=_0x1e950b,this['_requireRevisionName']=_0x26b773,this['bind']('name','createdAt')['to'](_0x1e950b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x4e4de9=>{return _0x54a4cc=_0x11d88a['uiLanguage'],(_0x9bdfc6=_0x4e4de9)['toLocaleDateString'](_0x54a4cc,{'month':'long','day':'numeric'})+',\x20'+_0x9bdfc6['toLocaleTimeString'](_0x54a4cc,{'hour':'numeric','minute':'numeric'});var _0x54a4cc,_0x9bdfc6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x11d88a,_0x42aec0),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x5a7533=>_0x5a7533||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x7909af,_0x7fbb50)=>_0x7909af&&_0x7fbb50),this['revisionActionsView']=_0x190026&&_0x190026['length']?ni(this,_0x190026):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x12efa4['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x12efa4['if']('isEnabled','ck-disabled',_0x2f8be=>!_0x2f8be),_0x12efa4['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x12efa4['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x12efa4['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':_0x12efa4['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':_0x4276a9}]},this['revisionActionsView']],'on':{'click':_0x12efa4['to'](_0x4f4d5b=>{_0x4f4d5b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4e03dc=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4e03dc,'change',()=>{this['_requireRevisionName']&&!_0x4e03dc['value']||this['fire']('setName',{'id':this['id'],'name':_0x4e03dc['value']}),_0x4e03dc['value']||(_0x4e03dc['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(_0x37d275,_0x2badb8){const _0x3258df=_0x481116['fromJSDate'](_0x37d275)['setLocale'](_0x2badb8),_0x3bd246=_0x481116['local'](),_0x5db663=_0x3bd246['minus']({'days':0x1})['startOf']('day');let _0x17e3a0,_0x5a4d74;return _0x3258df['hasSame'](_0x3bd246,'day')?(_0x17e3a0=_0x3258df['startOf']('day')['toJSDate'](),_0x5a4d74=_0x3258df['toRelativeCalendar']()):_0x3258df['hasSame'](_0x5db663,'day')?(_0x17e3a0=_0x5db663['toJSDate'](),_0x5a4d74=_0x3258df['toRelativeCalendar']()):_0x3258df['hasSame'](_0x3bd246,'week')?(_0x17e3a0=_0x3258df['startOf']('week')['toJSDate'](),_0x5a4d74=_0x3258df['weekdayLong']||''):_0x3258df['hasSame'](_0x3bd246,'year')?(_0x17e3a0=_0x3258df['startOf']('month')['toJSDate'](),_0x5a4d74=_0x3258df['monthLong']||''):(_0x17e3a0=_0x3258df['startOf']('year')['toJSDate'](),_0x5a4d74=String(_0x3258df['year'])),{'startDate':_0x17e3a0,'localizedPeriodName':_0x5a4d74};}class mi extends _0x54bab1{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x20a404,_0x36f912,_0x5a3cc7,_0x39967d){super(_0x20a404);const _0x2fba3a=di(_0x36f912,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x36f912,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5a3cc7,this['_requireRevisionName']=_0x39967d,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':_0x2fba3a}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4fbbbe){const _0x23a5ed=new ai(this['locale'],_0x4fbbbe,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x23a5ed);}['removeRevision'](_0x52ca41){const _0x1cdb7b=this['revisionViews']['find'](_0x23d194=>_0x23d194['id']===_0x52ca41['id']);this['revisionViews']['remove'](_0x1cdb7b);}}class rs extends _0x54bab1{constructor(_0x50ddb2){super(_0x50ddb2);const _0x177b1d=new _0xe7dccb();_0x177b1d['content']=_0x5bb3f8['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x177b1d,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x50ddb2,'Revision\x20history')]}]});}}class ci extends _0x54bab1{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x365fe5,_0x542852,_0x562299,_0x315e83){super(_0x365fe5);const _0xcd0313=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x542852,this['_revisionActions']=_0x562299,this['_requireRevisionName']=_0x315e83,this['on']('select',(_0xaf20b3,_0x4a557f)=>{this['fire']('revisionSelected',_0x4a557f);}),this['on']('setName',(_0x49908e,_0x17f0bf)=>{this['fire']('revisionSetName',_0x17f0bf);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x365fe5),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xcd0313['if']('isEnabled','ck-disabled',_0x1241eb=>!_0x1241eb)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x3ec89a of this['_revisions'])this['_addRevision'](_0x3ec89a);this['_revisions']['on']('add',(_0x234f23,_0x4c941d)=>{this['_addRevision'](_0x4c941d);}),this['_revisions']['on']('remove',(_0x3da63b,_0xf598bc)=>{this['_removeRevision'](_0xf598bc);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x516f74=>_0x516f74['revisionViews']['map'](_0x22c3d7=>_0x22c3d7))['flat']();}['selectRevision'](_0x44e3c7){for(const _0x1f68d0 of this['revisionViews'])_0x44e3c7&&_0x44e3c7['id']===_0x1f68d0['id']?_0x1f68d0['select']():_0x1f68d0['deselect']();}['highlightRevisions'](_0x30a314){for(const _0x5f3e71 of this['revisionViews'])_0x30a314['some'](({id:_0x4239fc})=>_0x4239fc===_0x5f3e71['id'])?_0x5f3e71['highlight']():_0x5f3e71['unhighlight']();}['_addRevision'](_0x31af60){const _0x2f0c6a=di(_0x31af60['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x307130=this['timePeriodViews']['get'](0x0);_0x307130&&_0x307130['startDate']['getTime']()===_0x2f0c6a['getTime']()||(_0x307130=new mi(this['locale'],_0x2f0c6a,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x307130)),_0x307130['addRevision'](_0x31af60);}['_removeRevision'](_0x44849d){const _0x91b32c=di(_0x44849d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x91b32c)['removeRevision'](_0x44849d);}['_getTimePeriodViewByStartDate'](_0x395a83){return this['timePeriodViews']['find'](_0x2d73c4=>_0x2d73c4['startDate']['getTime']()===_0x395a83['getTime']());}}class w extends _0x4011e1{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1daa5c){super(_0x1daa5c),this['_revisionViewer']=_0x1daa5c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x35bb63=this['_revisionsRepository']['_revisions'],_0x106f98=this['_createRevisionActions'](),_0x4d42e0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x35bb63,_0x106f98,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',(_0x1ffdd1,_0x50e6da)=>{_0x50e6da['revisionViews']['on']('add',(_0x55eb7c,_0x436024)=>{_0x436024['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)),_0x4d42e0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x16c001=this['_revisionsRepository']['getRevision'](0x0);if(_0x16c001){const _0x24b71d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x16c001['id']);this['_revisionViewer']['compare'](_0x16c001,_0x24b71d);}}['_handleRevisionSelected'](_0x1c777d,_0x4cd810){const _0x45010a=this['_revisionsRepository']['getRevision'](_0x4cd810['id']),_0x4b56aa=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x45010a['id']);this['_revisionViewer']['compare'](_0x45010a,_0x4b56aa);}['_handleRevisionSetName'](_0x3f0cb9,_0x3289e2){this['_revisionsRepository']['getRevision'](_0x3289e2['id'])['setName'](_0x3289e2['name']);}['_handleDiffChange'](_0x296dbd,_0x16ff2f,_0x437f1f){const _0x3f9a4d=this['_revisionsRepository']['getRevisionsInDiff'](_0x437f1f);_0x3f9a4d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3f9a4d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3f9a4d[0x0]));}['_createRevisionActions'](){const _0x28d8ce=this['editor'],_0x34e66c=w['availableRevisionActions'],_0x269f50=_0x28d8ce['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x269f50['length'])return _0x269f50['map'](_0x29b554=>{const _0x39548d='string'==typeof _0x29b554?Object['assign']({},_0x34e66c[_0x29b554]):_0x29b554;return _0x39548d['action']=_0x39548d['action']['bind'](this,_0x28d8ce),_0x39548d['isVisible']&&(_0x39548d['isVisible']=_0x39548d['isVisible']['bind'](this,_0x28d8ce)),_0x39548d;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xce2d38},_0x31f810)=>{const _0x5daccd=_0xce2d38['get'](d),_0x132961=_0x5daccd['repository'];let _0x3bad9b=_0x5daccd['diff']['newRevisionId'],_0x4fac92=_0x31f810['id'];_0x132961['getIndex'](_0x3bad9b)>_0x132961['getIndex'](_0x4fac92)&&([_0x3bad9b,_0x4fac92]=[_0x4fac92,_0x3bad9b]),_0x5daccd['compare'](_0x3bad9b,_0x4fac92);},'isVisible':({plugins:_0x519bcf},_0x5551de)=>{const _0xe15b15=_0x519bcf['get'](d);return!(_0xe15b15['repository']['getRevisionsInDiff'](_0xe15b15['diff'])['length']>0x2)&&!_0x5551de['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0xfacbc1,{id:_0x21b2fa})=>{_0xfacbc1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x21b2fa);},'isVisible':({plugins:_0x33c49a},_0x9553db)=>!!_0x33c49a['get'](d)['repository']['getLaterVisibleRevision'](_0x9553db['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x47bd2d},{id:_0x564172,revisionNameView:_0x11a7e9})=>{const _0x2cf556=_0x47bd2d['get'](d),_0x2bc10a=_0x2cf556['repository']['getEarlierVisibleRevision'](_0x564172);_0x2cf556['compare'](_0x564172,_0x2bc10a),_0x11a7e9['focus'](),_0x11a7e9['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3d7d40,_0x326bde){super(_0x3d7d40),this['_view']=_0x326bde,this['_toolbarConfig']=ot(_0x3d7d40['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x514b8e){const _0x46a1b5=this['editor'],_0x1c38f2=this['view'],_0x1ffbc2=_0x46a1b5['editing']['view'],_0x4da68b=_0x1c38f2['editable'],_0x2efc71=_0x1ffbc2['document']['getRoot']();_0x4da68b['name']=_0x2efc71['rootName'],_0x1c38f2['render']();const _0x2f2360=_0x4da68b['element'];this['setEditableElement'](_0x4da68b['name'],_0x2f2360),_0x1c38f2['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1ffbc2['attachDomRoot'](_0x2f2360),this['_elementReplacer']['replace'](_0x514b8e,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x36fccd=this['view'],_0x469871=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x469871['detachDomRoot'](_0x36fccd['editable']['name']),_0x36fccd['destroy']();}['_initToolbar'](){const _0x59c09b=this['view'];_0x59c09b['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x59c09b['stickyPanel']['limiterElement']=_0x59c09b['element'],_0x59c09b['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5904f5})=>_0x5904f5),_0x59c09b['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x59c09b['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x166e1c,_0x5cdee4,_0x22f046={}){super(_0x166e1c),this['stickyPanel']=new ut(_0x166e1c),this['toolbar']=new lt(_0x166e1c,{'shouldGroupWhenFull':_0x22f046['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x166e1c,_0x5cdee4);}['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(_0xf8b9f3,_0x5a1e6d){super(_0x5a1e6d),this['sourceElement']=_0xf8b9f3,this['model']['document']['createRoot']();const _0x1ea83a=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x1ea83a);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3ddeeb,_0x54c748){const _0x202e15=new this(_0x3ddeeb,_0x54c748);return await _0x202e15['initPlugins'](),await _0x202e15['ui']['init'](_0x3ddeeb),await _0x202e15['data']['init'](_0x202e15['config']['get']('initialData')||''),_0x202e15['fire']('ready'),_0x202e15;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x46c671{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xadaf28){function _0x4d3f3a(_0x4a55bf){return _0x4a55bf['map'](_0x352016=>String['fromCharCode'](_0x352016))['join']('');}super(_0xadaf28),this['result']='end',_0xadaf28[_0x4d3f3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d3f3a([0x76,0x69,0x65,0x77])][_0x4d3f3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d3f3a([0x61,0x75,0x74,0x6f]),_0xadaf28[_0x4d3f3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4d3f3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d3f3a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4d3f3a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4d3f3a([0x6f,0x6b])});}}class k extends _0x46c671{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x36f8b8){if(super(_0x36f8b8),!this['editor']['config']['get']('revisionHistory'))throw new _0x404111('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x31f697=>this['_showRevisionViewer']({..._0x31f697,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4adad2=>this['_closeRevisionViewer'](_0x4adad2)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x21e41d=>this['_restoreRevision'](_0x21e41d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x38caa7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x38caa7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4c1051){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4c1051);}['getRevision'](_0xc07806){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xc07806);}['getRevisions'](_0x35b315){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x35b315||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3a37e6=this['editor'],_0x448ab8=_0x587d03(_0x3a37e6,p),_0x4948dd=_0x3a37e6['plugins']['get']('RevisionTracker'),_0x30931a=_0x3a37e6['plugins']['get']('Users')['users'];return _0x448ab8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x448ab8['lazyRoots'],(_0x448ab8['plugins']['push'](Rt,d,g,class extends _0x46c671{static get['requires'](){return[d,'Users'];}['init'](){const _0x258182=this['editor']['plugins']['get']('Users');for(const _0x41d9b7 of _0x30931a)_0x41d9b7['isAnonymous']||_0x258182['getUser'](_0x41d9b7['id'])||_0x258182['addUser'](_0x41d9b7);const _0x1a2f50=_0x4948dd['repository']['getRevisions']();let _0x40faad=null;const _0x32f342=this['editor']['plugins']['get']('RevisionViewer');_0x32f342['adapter']=_0x4948dd['adapter'],_0x32f342['bind']('isEnabled')['to'](_0x4948dd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3a37e6,'isReadOnly',_0x3f96e2=>!_0x3f96e2);for(const _0x339c06 of _0x1a2f50){const _0x26dfd3=null===_0x339c06['creator'];if(_0x26dfd3&&_0x339c06['toVersion']===_0x339c06['fromVersion'])continue;const _0x5eba18=_0x339c06['toJSON']();_0x32f342['addRevisionData'](_0x5eba18,(_0x266685,_0x37a80d,_0x3dc6a4)=>{if(_0x26dfd3){if(_0x40faad)_0x40faad['_update'](_0x266685,_0x37a80d);else{if(!_0x37a80d){const _0x27f286=_0x3dc6a4['toJSON']();_0x27f286['id']=_0x1de225(),_0x4948dd['saveRevision'](_0x27f286,_0x3dc6a4['toVersion'])['then'](_0x3be1df=>{_0x40faad=_0x3be1df;});}}}else _0x339c06['_update'](_0x266685,_0x37a80d);});}}},w),_0x448ab8);}['_enhanceShowRevisionViewerCallback'](){const _0x4b9931=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x69716b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x3b3c1a=this['editor']['plugins']['get']('Autosave');await _0x3b3c1a['save']();}else await _0x69716b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3e662d=this['editor']['plugins']['get']('Dialog');_0x3e662d['isOpen']&&_0x3e662d['hide']();}const _0x2e7c22=this['_getRevisionViewerEditorConfig']();return _0x4b9931(_0x2e7c22)['then'](_0x433a3a=>{return(this['_viewerEditor']=_0x433a3a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x433a3a;})['catch'](_0x507eda=>(console['error'](_0x507eda),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x531aa4=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'](),_0x531aa4(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xe15af=this['editor']['plugins']['get']('Annotations');_0xe15af['refreshVisibility'](),_0xe15af['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2e9f6b){const _0x4099b3=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x58ff53=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x5a3a21=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x5a3a21,_0x2e9f6b)['then'](_0x301799=>(_0x58ff53['style']['display']='block',_0x4099b3['style']['display']='none',_0x301799));}['_closeRevisionViewer'](_0x45c4cc){const _0x50d8f6=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x50d8f6['style']['display']='',_0x45c4cc['destroy']();}async['_restoreRevision'](_0x4b7245){const _0x3ebcd2=this['editor'],_0x548a3f=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3fd496=_0x3ebcd2['plugins']['get']('RevisionTracker'),_0x2c3011=_0x548a3f['repository']['getRevision'](_0x4b7245);let _0x2bac52,_0x9aeba5,_0x21844d;try{_0x2bac52=await _0x548a3f['getRevisionData'](_0x2c3011),_0x9aeba5=await _0x548a3f['getRevisionRootsAttributes'](_0x2c3011);}catch(_0x42675c){return void console['error'](_0x42675c);}_0x3ebcd2['model']['change'](_0x2a619d=>{for(const _0x3c49b1 of Array['from'](_0x3ebcd2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2a619d['removeMarker'](_0x3c49b1);}),_0x548a3f['isReady']=!0x1,_0x3ebcd2['model']['enqueueChange'](_0x44d84b=>{_0x44d84b['setSelection'](null),_0x44d84b['removeSelectionAttribute'](_0x3ebcd2['model']['document']['selection']['getAttributeKeys']());const _0xf5c96a=Object['keys'](_0x2bac52);for(const _0x32c997 of _0x3ebcd2['model']['document']['roots'])'$graveyard'!=_0x32c997['rootName']&&_0x32c997['isAttached']()&&!_0xf5c96a['includes'](_0x32c997['rootName'])&&_0x44d84b['detachRoot'](_0x32c997);for(const _0x14fde9 of _0xf5c96a){let _0x58d6bd=_0x3ebcd2['model']['document']['getRoot'](_0x14fde9);_0x58d6bd&&_0x58d6bd['isAttached']()||(_0x58d6bd=_0x44d84b['addRoot'](_0x14fde9));const _0x2fd279=_0x9aeba5[_0x14fde9],_0x84a285=Object['keys'](_0x2fd279),_0x8a8740=_0x2bac52[_0x14fde9];for(const _0x5a597c of _0x58d6bd['getAttributeKeys']())_0x84a285['includes'](_0x5a597c)||_0x44d84b['removeAttribute'](_0x5a597c,_0x58d6bd);for(const _0x476c74 of _0x84a285)_0x44d84b['setAttribute'](_0x476c74,_0x9aeba5[_0x14fde9][_0x476c74],_0x58d6bd);_0x44d84b['remove'](_0x44d84b['createRangeIn'](_0x58d6bd)),_0x44d84b['insert'](_0x3ebcd2['data']['parse'](_0x8a8740,_0x58d6bd),_0x58d6bd,0x0);}});const _0x1c19cd=m(_0x3ebcd2['locale'],'Restored');if(_0x2c3011['name'])_0x21844d=-0x1==_0x2c3011['name']['indexOf'](_0x1c19cd)?_0x1c19cd+':\x20'+_0x2c3011['name']:_0x2c3011['name'];else _0x21844d=_0x1c19cd+':\x20'+(_0x2c3011['createdAt']['toLocaleDateString'](_0x3ebcd2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2c3011['createdAt']['toLocaleTimeString'](_0x3ebcd2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3fd496['saveRevision']({'name':_0x21844d}),_0x548a3f['isReady']=!0x0,_0x3ebcd2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,te 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(_0x1922be){super(_0x1922be),this['_revisionViewer']=_0x1922be['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x1e9802=this['_revisionsRepository']['_revisions'],_0x2382af=this['_createRevisionActions'](),_0x407955=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x1e9802,_0x2382af,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',(_0x10d082,_0x412fc6)=>{_0x412fc6['revisionViews']['on']('add',(_0x15e0d6,_0x4eba8d)=>{_0x4eba8d['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)),_0x407955['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x343c59=this['_revisionsRepository']['getRevision'](0x0);if(_0x343c59){const _0x39bdde=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x343c59['id']);this['_revisionViewer']['compare'](_0x343c59,_0x39bdde);}}['_handleRevisionSelected'](_0x4fe888,_0x31e40e){const _0x4d8d87=this['_revisionsRepository']['getRevision'](_0x31e40e['id']),_0x290505=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4d8d87['id']);this['_revisionViewer']['compare'](_0x4d8d87,_0x290505);}['_handleRevisionSetName'](_0x25d4e8,_0x5319c3){this['_revisionsRepository']['getRevision'](_0x5319c3['id'])['setName'](_0x5319c3['name']);}['_handleDiffChange'](_0xa6ebe,_0x353098,_0x3fa7d8){const _0x5a7e8a=this['_revisionsRepository']['getRevisionsInDiff'](_0x3fa7d8);_0x5a7e8a['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5a7e8a),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5a7e8a[0x0]));}['_createRevisionActions'](){const _0x2b8ae9=this['editor'],_0xe30cca=w['availableRevisionActions'],_0x3234e3=_0x2b8ae9['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x3234e3['length'])return _0x3234e3['map'](_0x5c035c=>{const _0x55b917='string'==typeof _0x5c035c?Object['assign']({},_0xe30cca[_0x5c035c]):_0x5c035c;return _0x55b917['action']=_0x55b917['action']['bind'](this,_0x2b8ae9),_0x55b917['isVisible']&&(_0x55b917['isVisible']=_0x55b917['isVisible']['bind'](this,_0x2b8ae9)),_0x55b917;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x254c7c},_0x516a19)=>{const _0x1ec0da=_0x254c7c['get'](d),_0x57a2b2=_0x1ec0da['repository'];let _0xef17a2=_0x1ec0da['diff']['newRevisionId'],_0x16047d=_0x516a19['id'];_0x57a2b2['getIndex'](_0xef17a2)>_0x57a2b2['getIndex'](_0x16047d)&&([_0xef17a2,_0x16047d]=[_0x16047d,_0xef17a2]),_0x1ec0da['compare'](_0xef17a2,_0x16047d);},'isVisible':({plugins:_0x3fce80},_0x512a5e)=>{const _0x96402f=_0x3fce80['get'](d);return!(_0x96402f['repository']['getRevisionsInDiff'](_0x96402f['diff'])['length']>0x2)&&!_0x512a5e['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x499b71,{id:_0x1c80b4})=>{_0x499b71['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1c80b4);},'isVisible':({plugins:_0x4ba907},_0x1e281e)=>!!_0x4ba907['get'](d)['repository']['getLaterVisibleRevision'](_0x1e281e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5c472},{id:_0x3f4ce8,revisionNameView:_0x2208a0})=>{const _0x20a264=_0x5c472['get'](d),_0x490e3d=_0x20a264['repository']['getEarlierVisibleRevision'](_0x3f4ce8);_0x20a264['compare'](_0x3f4ce8,_0x490e3d),_0x2208a0['focus'](),_0x2208a0['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x17b041,_0x5ff240){super(_0x17b041),this['_view']=_0x5ff240,this['_toolbarConfig']=ot(_0x17b041['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1c0d0b){const _0x4d0037=this['editor'],_0x31ac55=this['view'],_0x401d44=_0x4d0037['editing']['view'],_0x5512d2=_0x31ac55['editable'],_0x39f2c2=_0x401d44['document']['getRoot']();_0x5512d2['name']=_0x39f2c2['rootName'],_0x31ac55['render']();const _0x2a4060=_0x5512d2['element'];this['setEditableElement'](_0x5512d2['name'],_0x2a4060),_0x31ac55['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x401d44['attachDomRoot'](_0x2a4060),this['_elementReplacer']['replace'](_0x1c0d0b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x44b425=this['view'],_0x1eb693=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1eb693['detachDomRoot'](_0x44b425['editable']['name']),_0x44b425['destroy']();}['_initToolbar'](){const _0x3e9d01=this['view'];_0x3e9d01['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3e9d01['stickyPanel']['limiterElement']=_0x3e9d01['element'],_0x3e9d01['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4a42fd})=>_0x4a42fd),_0x3e9d01['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3e9d01['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x5209aa,_0x46525a,_0x1cb547={}){super(_0x5209aa),this['stickyPanel']=new ut(_0x5209aa),this['toolbar']=new lt(_0x5209aa,{'shouldGroupWhenFull':_0x1cb547['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x5209aa,_0x46525a);}['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(_0x5d7de5,_0x1204e5){super(_0x1204e5),this['sourceElement']=_0x5d7de5,this['model']['document']['createRoot']();const _0xf53737=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0xf53737);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x53719c,_0x52f13d){const _0x184582=new this(_0x53719c,_0x52f13d);return await _0x184582['initPlugins'](),await _0x184582['ui']['init'](_0x53719c),await _0x184582['data']['init'](_0x184582['config']['get']('initialData')||''),_0x184582['fire']('ready'),_0x184582;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x4011e1{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4ebe32){function _0x177dbe(_0x247e44){return _0x247e44['map'](_0xefad7=>String['fromCharCode'](_0xefad7))['join']('');}super(_0x4ebe32),this['result']='end',_0x4ebe32[_0x177dbe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x177dbe([0x76,0x69,0x65,0x77])][_0x177dbe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x177dbe([0x61,0x75,0x74,0x6f]),_0x4ebe32[_0x177dbe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x177dbe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x177dbe([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x177dbe([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x177dbe([0x6f,0x6b])});}}class k extends _0x4011e1{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0xb60835){if(super(_0xb60835),!this['editor']['config']['get']('revisionHistory'))throw new _0x522924('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x25e8c4=>this['_showRevisionViewer']({..._0x25e8c4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3ffc49=>this['_closeRevisionViewer'](_0x3ffc49)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x6caf75=>this['_restoreRevision'](_0x6caf75)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x410eb7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x410eb7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0xb72ca4){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0xb72ca4);}['getRevision'](_0x33d02f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x33d02f);}['getRevisions'](_0x336d34){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x336d34||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x391490=this['editor'],_0x5ef077=_0x1d984c(_0x391490,p),_0x24cf4f=_0x391490['plugins']['get']('RevisionTracker'),_0x23e0ec=_0x391490['plugins']['get']('Users')['users'];return _0x5ef077['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5ef077['lazyRoots'],(_0x5ef077['plugins']['push'](Rt,d,g,class extends _0x4011e1{static get['requires'](){return[d,'Users'];}['init'](){const _0x30286d=this['editor']['plugins']['get']('Users');for(const _0x214ed0 of _0x23e0ec)_0x214ed0['isAnonymous']||_0x30286d['getUser'](_0x214ed0['id'])||_0x30286d['addUser'](_0x214ed0);const _0x11d2bf=_0x24cf4f['repository']['getRevisions']();let _0x52c36e=null;const _0x5696c1=this['editor']['plugins']['get']('RevisionViewer');_0x5696c1['adapter']=_0x24cf4f['adapter'],_0x5696c1['bind']('isEnabled')['to'](_0x24cf4f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x391490,'isReadOnly',_0x1c940e=>!_0x1c940e);for(const _0x5f0e8b of _0x11d2bf){const _0x3b3002=null===_0x5f0e8b['creator'];if(_0x3b3002&&_0x5f0e8b['toVersion']===_0x5f0e8b['fromVersion'])continue;const _0x290e45=_0x5f0e8b['toJSON']();_0x5696c1['addRevisionData'](_0x290e45,(_0x1e4baa,_0x4d230b,_0x33de0e)=>{if(_0x3b3002){if(_0x52c36e)_0x52c36e['_update'](_0x1e4baa,_0x4d230b);else{if(!_0x4d230b){const _0x42e081=_0x33de0e['toJSON']();_0x42e081['id']=_0x316b02(),_0x24cf4f['saveRevision'](_0x42e081,_0x33de0e['toVersion'])['then'](_0x2929a4=>{_0x52c36e=_0x2929a4;});}}}else _0x5f0e8b['_update'](_0x1e4baa,_0x4d230b);});}}},w),_0x5ef077);}['_enhanceShowRevisionViewerCallback'](){const _0x23773b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1b9805=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x41f64a=this['editor']['plugins']['get']('Autosave');await _0x41f64a['save']();}else await _0x1b9805['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x36b7bd=this['editor']['plugins']['get']('Dialog');_0x36b7bd['isOpen']&&_0x36b7bd['hide']();}const _0x1a6b8e=this['_getRevisionViewerEditorConfig']();return _0x23773b(_0x1a6b8e)['then'](_0xb3fc44=>{return(this['_viewerEditor']=_0xb3fc44,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xb3fc44;})['catch'](_0x600dcf=>(console['error'](_0x600dcf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5b99d2=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'](),_0x5b99d2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x29572a=this['editor']['plugins']['get']('Annotations');_0x29572a['refreshVisibility'](),_0x29572a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x10f798){const _0x4cf4fb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22f191=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc9f8cf=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0xc9f8cf,_0x10f798)['then'](_0x24c4fb=>(_0x22f191['style']['display']='block',_0x4cf4fb['style']['display']='none',_0x24c4fb));}['_closeRevisionViewer'](_0x2c640f){const _0x54ce24=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x54ce24['style']['display']='',_0x2c640f['destroy']();}async['_restoreRevision'](_0x1160c5){const _0x492cb2=this['editor'],_0x2decb5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3c6170=_0x492cb2['plugins']['get']('RevisionTracker'),_0x226c09=_0x2decb5['repository']['getRevision'](_0x1160c5);let _0x5cdd29,_0x45df3d,_0x6d86a2;try{_0x5cdd29=await _0x2decb5['getRevisionData'](_0x226c09),_0x45df3d=await _0x2decb5['getRevisionRootsAttributes'](_0x226c09);}catch(_0x32f89a){return void console['error'](_0x32f89a);}_0x492cb2['model']['change'](_0x5515d3=>{for(const _0x461516 of Array['from'](_0x492cb2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x5515d3['removeMarker'](_0x461516);}),_0x2decb5['isReady']=!0x1,_0x492cb2['model']['enqueueChange'](_0x16c5bf=>{_0x16c5bf['setSelection'](null),_0x16c5bf['removeSelectionAttribute'](_0x492cb2['model']['document']['selection']['getAttributeKeys']());const _0x45571d=Object['keys'](_0x5cdd29);for(const _0x37d49e of _0x492cb2['model']['document']['roots'])'$graveyard'!=_0x37d49e['rootName']&&_0x37d49e['isAttached']()&&!_0x45571d['includes'](_0x37d49e['rootName'])&&_0x16c5bf['detachRoot'](_0x37d49e);for(const _0x3d0369 of _0x45571d){let _0x2dbd33=_0x492cb2['model']['document']['getRoot'](_0x3d0369);_0x2dbd33&&_0x2dbd33['isAttached']()||(_0x2dbd33=_0x16c5bf['addRoot'](_0x3d0369));const _0x2b6396=_0x45df3d[_0x3d0369],_0x52d594=Object['keys'](_0x2b6396),_0x58c377=_0x5cdd29[_0x3d0369];for(const _0x3f9f5f of _0x2dbd33['getAttributeKeys']())_0x52d594['includes'](_0x3f9f5f)||_0x16c5bf['removeAttribute'](_0x3f9f5f,_0x2dbd33);for(const _0x37e86c of _0x52d594)_0x16c5bf['setAttribute'](_0x37e86c,_0x45df3d[_0x3d0369][_0x37e86c],_0x2dbd33);_0x16c5bf['remove'](_0x16c5bf['createRangeIn'](_0x2dbd33)),_0x16c5bf['insert'](_0x492cb2['data']['parse'](_0x58c377,_0x2dbd33),_0x2dbd33,0x0);}});const _0x2f3f21=m(_0x492cb2['locale'],'Restored');if(_0x226c09['name'])_0x6d86a2=-0x1==_0x226c09['name']['indexOf'](_0x2f3f21)?_0x2f3f21+':\x20'+_0x226c09['name']:_0x226c09['name'];else _0x6d86a2=_0x2f3f21+':\x20'+(_0x226c09['createdAt']['toLocaleDateString'](_0x492cb2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x226c09['createdAt']['toLocaleTimeString'](_0x492cb2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3c6170['saveRevision']({'name':_0x6d86a2}),_0x2decb5['isReady']=!0x0,_0x492cb2['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};