@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250310.0 → 0.0.0-nightly-20250311.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 +11 -11
  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 _0x12e48c,uid as _0x11cac6,Collection as _0x3c9798,logWarning as _0x26f557,FocusTracker as _0xb58d78,KeystrokeHandler as _0x22b2b6,scrollViewportToShowTarget as _0x4675b1,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x2fa8d8}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xd3d7c6,set as _0x4a343f,unset as _0x373b32,isEqual as _0x426189}from'es-toolkit/compat';import{Plugin as _0x1947b9,PendingActions as _0x98a53,Command as _0x27c93a,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3da1a3,getMarkerDomElement as _0x43daf5,ConfirmMixin as ti,sanitizeEditorConfig as _0xd0e0b6}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x26a069,Element as ut,Range as ft,ViewUIElement as _0x14dc4c,ViewRawElement as _0x226a61,ViewEmptyElement as _0x155563,ViewAttributeElement as _0x544f6d,ViewContainerElement as _0x30d263,Position as vt,ViewText as _0x29f1b1,ViewElement as _0x59bd53,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x4b0f09,IconChevronUp as _0x37c493,IconChevronDown as _0x14e1f8,IconUndo as _0x13e63e,IconUser as _0x48a0fb,IconThreeVerticalDots as _0x25edbc}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x52b994,submitHandler as _0xbcc6bc,LabeledFieldView as _0x3230b0,createLabeledInputText as _0x30c57f,createDropdown as _0x5ae326,ListView as _0x575510,ListItemView as _0x1fc11a,ButtonView as te,MenuBarMenuView as _0x3d315a,MenuBarMenuListView as _0x489dbe,MenuBarMenuListItemView as _0x5b8bda,MenuBarMenuListItemButtonView as _0x31e280,ContextualBalloon as _0x57e549,ToolbarSeparatorView as _0x332562,IconView as _0x33aa8f,addListToDropdown as _0x40c490,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x19df88}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x12e48c(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xf18be1){super(),this['id']=_0xf18be1['id']||_0x11cac6(),this['creator']=_0xf18be1['creator']||null,this['authors']=_0xf18be1['authors']||[],this['diffData']=_0xf18be1['diffData']||null,this['toVersion']=_0xf18be1['toVersion']||0x0,this['fromVersion']=_0xf18be1['fromVersion']||0x0,this['set']('name',_0xf18be1['name']||''),this['set']('createdAt',_0xf18be1['createdAt']||new Date()),this['set']('attributes',_0xf18be1['attributes']||{});}['setName'](_0x3c2d8c){this['_update']({'name':_0x3c2d8c});}['setAttribute'](_0x592e44,_0x36b154){const _0x56009a=_0xd3d7c6(this['attributes']);_0x4a343f(_0x56009a,_0x592e44,_0x36b154),this['_update']({'attributes':_0x56009a});}['removeAttribute'](_0x39d48c){const _0x10f6af=_0xd3d7c6(this['attributes']);_0x373b32(_0x10f6af,_0x39d48c),this['_update']({'attributes':_0x10f6af});}['_update'](_0x419302,_0x2909bb=!0x1){let _0x3e84df=!0x1;const _0xc347f={'id':this['id']},_0xe5ae2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x312dcb of _0xe5ae2){const _0x118b10=_0x419302[_0x312dcb];void 0x0!==_0x118b10&&_0x118b10!==this[_0x312dcb]&&(this[_0x312dcb]=_0x118b10,_0xc347f[_0x312dcb]=_0x118b10,_0x3e84df=!0x0);}_0x3e84df&&(_0xc347f['authors']&&(_0xc347f['authorsIds']=_0xc347f['authors']['map'](_0x4f52bc=>_0x4f52bc['id']),delete _0xc347f['authors']),this['fire']('_update',_0xc347f,_0x2909bb));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x185db7=>_0x185db7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x1947b9{['_revisions'];static get['requires'](){return[_0x3da1a3];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2d1ed5){super(_0x2d1ed5),this['_revisions']=new _0x3c9798();}['afterInit'](){!async function(_0x35c228){const _0x2d31ae=_0x4b7cbd([0x79,0x54,0x36,0x4d,0x49,0x35,0x63,0x75,0x51,0x4f,0x7a,0x6c,0x66,0x4e,0x55,0x76,0x46,0x78,0x74,0x42,0x4a,0x4c,0x52,0x48,0x77,0x44,0x50,0x47,0x6e,0x61,0x62,0x37,0x6f,0x65,0x58,0x64,0x57,0x41,0x70,0x45,0x73,0x6d,0x33,0x68,0x34,0x38,0x56,0x53,0x6b,0x30,0x67,0x32,0x5a,0x39,0x43,0x72,0x59,0x69,0x4b,0x31,0x71,0x6a]),_0x4e10cc=0xeb829,_0x322501=0x66cc27bb,_0x1cfd17=0x66cb4603^_0x322501,_0x19affa=window[_0x4b7cbd([0x44,0x61,0x74,0x65])][_0x4b7cbd([0x6e,0x6f,0x77])](),_0x5885a6=_0x35c228[_0x4b7cbd([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1c4d69=new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe2901e=>{_0x5885a6[_0x4b7cbd([0x6f,0x6e,0x63,0x65])](_0x4b7cbd([0x72,0x65,0x61,0x64,0x79]),_0xe2901e);}),_0x356fcf={[_0x4b7cbd([0x6b,0x74,0x79])]:_0x4b7cbd([0x45,0x43]),[_0x4b7cbd([0x75,0x73,0x65])]:_0x4b7cbd([0x73,0x69,0x67]),[_0x4b7cbd([0x63,0x72,0x76])]:_0x4b7cbd([0x50,0x2d,0x32,0x35,0x36]),[_0x4b7cbd([0x78])]:_0x4b7cbd([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]),[_0x4b7cbd([0x79])]:_0x4b7cbd([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]),[_0x4b7cbd([0x61,0x6c,0x67])]:_0x4b7cbd([0x45,0x53,0x32,0x35,0x36])},_0x35ee55=_0x5885a6[_0x4b7cbd([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b7cbd([0x67,0x65,0x74])](_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a63dc(){let _0xf2bdb1,_0x6c4cef=null,_0x3706a5=null;try{if(_0x35ee55==_0x4b7cbd([0x47,0x50,0x4c]))return _0x4b7cbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xf2bdb1=_0x5d6222(),!_0xf2bdb1)return _0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xf2bdb1[_0x4b7cbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3706a5=_0x4d959b(_0xf2bdb1[_0x4b7cbd([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xf2bdb1[_0x4b7cbd([0x6a,0x74,0x69])])),await _0x19fca9()?_0x129f56()?_0x5da176()?_0x4b7cbd([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x51be32()?(_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b7cbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x6c4cef=_0x25ed22(_0x4b7cbd([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b7cbd([0x74,0x72,0x69,0x61,0x6c])&&(_0x6c4cef=_0x25ed22(_0x4b7cbd([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16e9c4()):_0x4b7cbd([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b7cbd([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x41942c){return _0x4b7cbd([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5da176(){const _0x51f84b=[_0x4b7cbd([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b7cbd([0x74,0x72,0x69,0x61,0x6c])][_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x19affa/0x3e8:0xe10*_0x1cfd17;return _0xf2bdb1[_0x4b7cbd([0x65,0x78,0x70])]<_0x51f84b;}function _0x129f56(){const _0x4190d9=_0xf2bdb1[_0x4b7cbd([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4190d9)return!0x1;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x2a])))return!0x0;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x52,0x48])))return!0x0;if(_0x4190d9[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x52,0x52,0x48]))){if(_0x131f93())return!0x0;if(_0x3b9145()||_0x5ce27d())return!0x0;}return!0x1;}function _0x51be32(){const _0x23c5c5=_0xf2bdb1[_0x4b7cbd([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x23c5c5||0x0==_0x23c5c5[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x232f20}=new URL(window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x23c5c5[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x232f20))return!0x0;const _0x112d09=_0x232f20[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e]));return _0x23c5c5[_0x4b7cbd([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3bf85d=>_0x3bf85d[_0x4b7cbd([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b7cbd([0x2a])))[_0x4b7cbd([0x6d,0x61,0x70])](_0x131b9d=>_0x131b9d[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e])))[_0x4b7cbd([0x73,0x6f,0x6d,0x65])](_0x137921=>_0x112d09[_0x4b7cbd([0x65,0x76,0x65,0x72,0x79])]((_0x3e8130,_0x44d5a5)=>_0x137921[_0x44d5a5]===_0x3e8130||_0x137921[_0x44d5a5]===_0x4b7cbd([0x2a])));}function _0x16e9c4(){return _0x6c4cef&&_0x3706a5?new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x39172a,_0x5e55d3)=>{_0x6c4cef[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x39172a,_0x5e55d3),_0x3706a5[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x1fa348=>{_0x1fa348!=_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])&&_0x39172a(_0x1fa348);},_0x5e55d3);}):_0x6c4cef||_0x3706a5||_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4d959b(_0x20ac21,_0x5b2be8){return new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a392a=>{if(_0x5760c2())return _0x3a392a(_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]));_0x2a4b1a(),_0x5885a6[_0x4b7cbd([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x22500f=!0x1;const _0x411340=_0x11cac6();function _0x1bc9d1(_0x174ce5){return!!_0x174ce5&&(typeof _0x174ce5===_0x4b7cbd([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x174ce5===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x174ce5[_0x4b7cbd([0x74,0x68,0x65,0x6e])]===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x174ce5[_0x4b7cbd([0x63,0x61,0x74,0x63,0x68])]===_0x4b7cbd([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xa80e67(_0x344188){_0x47a62d(_0x344188)[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x2a7497=>{if(!_0x2a7497||_0x2a7497[_0x4b7cbd([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b7cbd([0x6f,0x6b]))return _0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x513f15(_0x285a49(_0x411340+_0x5b2be8))!=_0x2a7497[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x436661=>(_0x9a5e99(),_0x436661),()=>{const _0x59341a=_0x3e22d8();return null==_0x59341a?(_0x9a5e99(),_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])):_0x4b7cbd(_0x19affa-_0x59341a>(0x42c0a3bb^_0x322501)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x3a392a)[_0x4b7cbd([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x564cd1=0x66fac93b^_0x322501;function _0x9a5e99(){const _0x4356bf=_0x4b7cbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x513f15(_0x285a49(_0x20ac21)),_0x1923d3=_0x5894bd(_0x513f15(window[_0x4b7cbd([0x4d,0x61,0x74,0x68])][_0x4b7cbd([0x63,0x65,0x69,0x6c])](_0x19affa/_0x564cd1)));window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b7cbd([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4356bf,_0x1923d3);}function _0x3e22d8(){const _0x3f52f0=_0x4b7cbd([0x6c,0x6c,0x63,0x74,0x2d])+_0x513f15(_0x285a49(_0x20ac21)),_0x263d9f=window[_0x4b7cbd([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b7cbd([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3f52f0);return _0x263d9f?window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5894bd(_0x263d9f),0x10)*_0x564cd1:null;}function _0x47a62d(_0x2babe4){return new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x10162f,_0xe96d29)=>{_0x2babe4[_0x4b7cbd([0x74,0x68,0x65,0x6e])](_0x10162f,_0xe96d29),window[_0x4b7cbd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xe96d29,0x66cdf37b^_0x322501);});}}_0x5885a6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x143e93,_0x5902cb)=>{if(_0x5902cb[0x0]!=_0x20ac21)return _0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5902cb[0x1]={..._0x5902cb[0x1],[_0x4b7cbd([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x411340};},{[_0x4b7cbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b7cbd([0x68,0x69,0x67,0x68])}),_0x5885a6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x40f514=>{_0x1bc9d1(_0x40f514[_0x4b7cbd([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x22500f=!0x0,_0xa80e67(_0x40f514[_0x4b7cbd([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b7cbd([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b7cbd([0x6c,0x6f,0x77])}),_0x1c4d69[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>{_0x22500f||_0x3a392a(_0x4b7cbd([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5760c2(){return _0x5885a6[_0x4b7cbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b7cbd([0x76,0x69,0x65,0x77])][_0x4b7cbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b7cbd([0x61,0x75,0x74,0x6f]);}function _0x2a4b1a(){_0x5885a6[_0x4b7cbd([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b7cbd([0x76,0x69,0x65,0x77])][_0x4b7cbd([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b7cbd([0x61,0x75,0x74,0x6f]);}}function _0x25ed22(_0x44929f){const _0x21cc1d=[new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3aec14=>setTimeout(_0x3aec14,0x66c51977^_0x322501)),_0x1c4d69[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34bf08=>{const _0x3b5305=0x66cc27bc^_0x322501,_0x1a1fb6=_0x35c228[_0x4b7cbd([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2056a3(){_0x1a1fb6[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3b5305&&_0x34bf08();}_0x2056a3(),_0x1a1fb6[_0x4b7cbd([0x6f,0x6e])](_0x4b7cbd([0x61,0x64,0x64]),_0x2056a3);})),new window[(_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f241f=>{function _0x226298(){for(const _0x43da2f in window)if(window[_0x4b7cbd([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4b7cbd([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x43da2f))&&window[_0x43da2f]==_0x4e10cc)return _0x2f241f();_0x5885a6[_0x4b7cbd([0x73,0x74,0x61,0x74,0x65])]!=_0x4b7cbd([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4b7cbd([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x226298,0x66cc3433^_0x322501);}_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x226298();})];return window[_0x4b7cbd([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b7cbd([0x72,0x61,0x63,0x65])](_0x21cc1d)[_0x4b7cbd([0x74,0x68,0x65,0x6e])](()=>_0x44929f);}async function _0x2c7a55(){if(await _0x1c4d69,_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x11c2b8=_0x35c228[_0x4b7cbd([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x2133af=_0x35c228[_0x4b7cbd([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])](_0x11c2b8[_0x4b7cbd([0x69,0x64])]),_0x1bbd3e=_0x1457f9(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1bbd3e[_0x4b7cbd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x11c2b8['id'],_0x2133af?_0x2133af['id']:null,!0x0),_0x1bbd3e[_0x4b7cbd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bbd3e[_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bbd3e[_0x4b7cbd([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5cf779,void(_0x1bbd3e[_0x4b7cbd([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5cf779);}if(_0x9b6393(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4907ad=_0x1457f9(_0x4b7cbd([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4907ad[_0x4b7cbd([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4907ad[_0x4b7cbd([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4907ad[_0x4b7cbd([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5cf779,_0x4907ad[_0x4b7cbd([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5cf779;}_0x5885a6[_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b7cbd([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5cf779,_0x5885a6[_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b7cbd([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5cf779,_0x5885a6[_0x4b7cbd([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b7cbd([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x131f93(){return _0x9b6393(_0x4b7cbd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x1457f9(_0x4b7cbd([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4b7cbd([0x73,0x74,0x61,0x74,0x65])]==_0x4b7cbd([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3b9145(){return _0x9b6393(_0x4b7cbd([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 _0x5ce27d(){return _0x9b6393(_0x4b7cbd([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x9293bc(_0x504367){const _0x43c6f3=_0x634712();_0x5885a6[_0x43c6f3]=_0x4b7cbd([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])+_0x504367,_0x504367[_0x4b7cbd([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4b7cbd([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x634712()]=_0x4e10cc),_0x504367!=_0x4b7cbd([0x56,0x61,0x6c,0x69,0x64])&&_0x2c7a55();}function _0x634712(){const _0xa4343c=window[_0x4b7cbd([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b7cbd([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b7cbd([0x6e,0x6f,0x77])]())[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b7cbd([0x2e]),'');let _0x1039de=_0x4b7cbd([0x79]);for(let _0x385885=0x0;_0x385885<_0xa4343c[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x385885+=0x2){let _0x1f4678=window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xa4343c[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x385885,_0x385885+0x2));_0x1f4678>=_0x2d31ae[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f4678-=_0x2d31ae[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1039de+=_0x2d31ae[_0x1f4678];}return _0x1039de;}function _0x5d6222(){const _0x27ac5e=_0x35ee55[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e]));if(0x3!=_0x27ac5e[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2d0eab(_0x27ac5e[0x1]);function _0x2d0eab(_0xce6310){const _0x1e03dc=_0x3b2d49(_0xce6310);return _0x1e03dc&&_0x580c7f()?_0x1e03dc:null;function _0x580c7f(){const _0x1fc083=_0x1e03dc[_0x4b7cbd([0x6a,0x74,0x69])],_0x454c4d=window[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fc083[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fc083[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3d7015={..._0x1e03dc,[_0x4b7cbd([0x6a,0x74,0x69])]:_0x1fc083[_0x4b7cbd([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fc083[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3d7015[_0x4b7cbd([0x76,0x63])],_0x285a49(_0x3d7015)==_0x454c4d;}}}async function _0x19fca9(){let _0x167f60=!0x0;try{const _0x19e8df=_0x35ee55[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])](_0x4b7cbd([0x2e])),[_0x2b19a2,_0x52ff4c,_0x28aff9]=_0x19e8df;return _0x362a9f(_0x2b19a2),await _0x5b5a8b(_0x2b19a2,_0x52ff4c,_0x28aff9),_0x167f60;}catch(_0x36646d){return!0x1;}function _0x362a9f(_0x26ccae){const _0x14a756=_0x3b2d49(_0x26ccae);_0x14a756&&_0x14a756[_0x4b7cbd([0x61,0x6c,0x67])]==_0x4b7cbd([0x45,0x53,0x32,0x35,0x36])||(_0x167f60=!0x1);}async function _0x5b5a8b(_0x23b0fb,_0x18a11a,_0x1d7acf){const _0x30c899=window[_0x4b7cbd([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b7cbd([0x66,0x72,0x6f,0x6d])](_0x2a4649(_0x1d7acf),_0x4d2161=>_0x4d2161[_0x4b7cbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118a19=new window[(_0x4b7cbd([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b7cbd([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x23b0fb+_0x4b7cbd([0x2e])+_0x18a11a),_0x18d573=window[_0x4b7cbd([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b7cbd([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x18d573)return;const _0x18db43=await _0x18d573[_0x4b7cbd([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b7cbd([0x6a,0x77,0x6b]),_0x356fcf,{[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x45,0x43,0x44,0x53,0x41]),[_0x4b7cbd([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b7cbd([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x18d573[_0x4b7cbd([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x45,0x43,0x44,0x53,0x41]),[_0x4b7cbd([0x68,0x61,0x73,0x68])]:{[_0x4b7cbd([0x6e,0x61,0x6d,0x65])]:_0x4b7cbd([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x18db43,_0x30c899,_0x118a19)||(_0x167f60=!0x1);}}function _0x3b2d49(_0x10932d){return _0x10932d[_0x4b7cbd([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b7cbd([0x65,0x79]))?JSON[_0x4b7cbd([0x70,0x61,0x72,0x73,0x65])](_0x2a4649(_0x10932d)):null;}function _0x2a4649(_0x4a31f5){return window[_0x4b7cbd([0x61,0x74,0x6f,0x62])](_0x4a31f5[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b7cbd([0x2b]))[_0x4b7cbd([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b7cbd([0x2f])));}function _0x285a49(_0x4e7871){let _0x17ae49=0x1505;function _0x4487b5(_0xfc62cc){for(let _0x40503b=0x0;_0x40503b<_0xfc62cc[_0x4b7cbd([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x40503b++){const _0x514c5e=_0xfc62cc[_0x4b7cbd([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x40503b);_0x17ae49=(_0x17ae49<<0x5)+_0x17ae49+_0x514c5e,_0x17ae49&=_0x17ae49;}}function _0x9f8332(_0x39bed5){Array[_0x4b7cbd([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x39bed5)?_0x39bed5[_0x4b7cbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x9f8332):_0x39bed5&&typeof _0x39bed5==_0x4b7cbd([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b7cbd([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x39bed5)[_0x4b7cbd([0x73,0x6f,0x72,0x74])]()[_0x4b7cbd([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x51957b,_0x50b26f])=>{_0x4487b5(_0x51957b),_0x9f8332(_0x50b26f);}):_0x4487b5(window[_0x4b7cbd([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x39bed5));}return _0x9f8332(_0x4e7871),_0x17ae49>>>0x0;}function _0x513f15(_0x89ca0){return _0x89ca0[_0x4b7cbd([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b7cbd([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b7cbd([0x30]));}function _0x5894bd(_0x2ab4d6){return _0x2ab4d6[_0x4b7cbd([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b7cbd([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b7cbd([0x6a,0x6f,0x69,0x6e])]('');}function _0x9b6393(_0x448706){return _0x5885a6[_0x4b7cbd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b7cbd([0x68,0x61,0x73])](_0x448706);}function _0x1457f9(_0x5da43e){return _0x5885a6[_0x4b7cbd([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4b7cbd([0x67,0x65,0x74])](_0x5da43e);}function _0x5cf779(){}function _0x4b7cbd(_0x1a8cfd){return _0x1a8cfd['map'](_0x39a781=>String['fromCharCode'](_0x39a781))['join']('');}_0x9293bc(await _0x4a63dc());}(this);}['createRevision'](_0x40053b){const _0x3da2cb=this['editor']['plugins']['get']('Users');return new h({'id':_0x40053b['id'],'name':_0x40053b['name'],'creator':_0x40053b['creatorId']?_0x3da2cb['getUser'](_0x40053b['creatorId']):null,'diffData':_0x40053b['diffData']||_0x40053b['data'],'authors':_0x40053b['authorsIds']['map'](_0x88531e=>_0x3da2cb['getUser'](_0x88531e)),'createdAt':new Date(_0x40053b['createdAt']),'attributes':_0x40053b['attributes'],'fromVersion':_0x40053b['fromVersion'],'toVersion':_0x40053b['toVersion']});}['addRevision'](_0x9bb991,_0x1660cd=0x0){this['_revisions']['add'](_0x9bb991,_0x1660cd);}['getRevision'](_0x38fa52){return this['_revisions']['get'](_0x38fa52);}['getRevisions'](_0x1975d0={'toJSON':!0x1}){const _0x35965b=Array['from'](this['_revisions']);return _0x35965b['reverse'](),_0x1975d0['toJSON']?_0x35965b['map'](_0x46407e=>_0x46407e['toJSON']()):_0x35965b;}['getIndex'](_0x9274cd){return this['_revisions']['getIndex'](_0x9274cd);}['getEarlierVisibleRevision'](_0x5d7407){const [,_0x80ec36]=this['getRevisionsIterator'](_0x5d7407,{'direction':'earlier'});return _0x80ec36;}['getLaterVisibleRevision'](_0x41c34b){const [,_0x54c978]=this['getRevisionsIterator'](_0x41c34b,{'direction':'later'});return _0x54c978;}['getRevisionsInDiff'](_0x5b8a45){const _0x444951=[];for(const _0x1677d3 of this['getRevisionsIterator'](_0x5b8a45['newRevisionId']))if(_0x444951['push'](_0x1677d3),_0x1677d3['id']===_0x5b8a45['oldRevisionId'])break;return _0x444951;}*['getRevisionsIterator'](_0x2a120f,{direction:_0xeb49fa='earlier',filter:_0x911658=()=>!0x0}={}){const _0x3030e1='earlier'===_0xeb49fa?0x1:-0x1;let _0x5f2cda=this['_revisions']['get'](_0x2a120f),_0x51ea4c=this['getIndex'](_0x5f2cda);for(yield _0x5f2cda;_0x5f2cda;){if(_0x51ea4c+=_0x3030e1,_0x5f2cda=this['getRevision'](_0x51ea4c),!_0x5f2cda)return;_0x911658(_0x5f2cda)&&(yield _0x5f2cda);}}}function m(_0x2d1d3a,_0x1bff92,_0x475b45){const t=_0x2d1d3a['t'];switch(_0x1bff92){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'},_0x475b45);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x475b45);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 E={'c':_0x30d263,'a':_0x544f6d,'e':_0x155563,'r':_0x226a61,'u':_0x14dc4c};class u extends _0x1947b9{['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[_0x3da1a3,j,_0x98a53];}constructor(_0x2a027f){super(_0x2a027f),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 _0x4e521a=_0x11cac6();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4e521a},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 _0x5a2e8b=this['repository']['getRevision'](0x0),_0x16fdaa=_0x5a2e8b&&null===_0x5a2e8b['creator']?_0x5a2e8b:null;if(this['_continueCurrentRevision']=!!_0x16fdaa&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xa550c6=this['_source']['getCurrentRevisionId'](),_0x3d93c4=this['repository']['getRevision'](_0xa550c6);if(_0x3d93c4)this['_startingVersion']=_0x3d93c4['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2ef583=this['_source']['history']['_operations']['find'](_0x55c6a1=>!_0x55c6a1['_isInit']),_0x31f170=_0x2ef583?_0x2ef583['baseVersion']:this['_source']['history']['version'];_0x5a2e8b?(_0x5a2e8b['toVersion']<_0x31f170&&_0x5a2e8b['_update']({'toVersion':_0x31f170}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id'],this['_startingVersion']=_0x16fdaa['fromVersion']):(this['_startingVersion']=_0x5a2e8b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x31f170,this['_continueCurrentRevision']=!0x1);}}else _0x16fdaa&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x16fdaa['toVersion'],this['editor']['model']['document']['history']['version']),_0x16fdaa['fromVersion']===_0x16fdaa['toVersion']?(0x0!==_0x16fdaa['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x16fdaa['id'],this['_startingVersion']=_0x16fdaa['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',_0x301486=>!_0x301486),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x159f47=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x22d362;for(const _0x33d03c in _0x159f47){const _0x55892b=_0x33d03c,_0x1913c7=_0x159f47[_0x55892b];if('revisionHistoryLicenseKeyValid'==_0x1913c7||'revisionHistoryLicenseKeyInvalid'==_0x1913c7||'revisionHistoryLicenseKeyExpired'==_0x1913c7||'revisionHistoryLicenseKeyDomainLimit'==_0x1913c7||'revisionHistoryLicenseKeyNotAllowed'==_0x1913c7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1913c7||'revisionHistoryLicenseKeyTrialLimit'==_0x1913c7||'revisionHistoryLicenseKeyUsageLimit'==_0x1913c7){delete _0x159f47[_0x55892b],_0x22d362=_0x1913c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x22d362&&_0x159f47['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x22d362&&_0x159f47['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x22d362&&_0x159f47['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x22d362&&_0x159f47['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x22d362&&_0x159f47['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x22d362&&_0x159f47['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x22d362&&_0x159f47['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xef2029=this['repository']['getRevision'](0x0),_0x519b66=await this['getRevisionDocumentData'](_0xef2029),_0xcf51b6=await this['getRevisionRootsAttributes'](_0xef2029);this['_replaceEditorDataWithRevisionData'](_0x519b66,_0xcf51b6);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x17e360){this['_source']=_0x17e360;}async['update'](){const _0x229092=await this['_source']['getLatestVersion']();if(_0x229092>this['currentRevision']['toVersion']){await this['_loadState']();const _0x4c9cc7=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x229092});_0x4c9cc7['authors']=_0x4c9cc7['authorsIds']['map'](_0x335339=>this['editor']['plugins']['get']('Users')['getUser'](_0x335339)),this['currentRevision']['_update'](_0x4c9cc7);}}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'](_0x2f6739={},_0x5aeb74=null){const _0x2f9378=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5aeb74>this['currentRevision']['toVersion']&&(_0x5aeb74=null),null===_0x5aeb74&&(_0x5aeb74=await this['_source']['getLatestVersion']());const _0x3b92a7=this['_getFromVersion'](_0x5aeb74),_0x32447c=this['buildRevisionData']({'from':_0x3b92a7,'to':_0x5aeb74});if(this['currentRevision']['toVersion']<_0x5aeb74){const _0x36ef9b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5aeb74,'to':_0x5aeb74});_0x36ef9b['authors']=[],_0x36ef9b['authorsIds']=[],_0x36ef9b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36ef9b,!0x0),delete _0x36ef9b['authors'],_0x2f9378['push'](_0x36ef9b);}_0x2f6739['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2f6739['name']=_0x2f6739['name']||null,_0x2f6739['id']=_0x2f6739['id']||_0x11cac6(),_0x2f6739={..._0x2f6739,..._0x32447c};const _0x3b8cb9=this['addRevisionData'](_0x2f6739);_0x2f9378['push'](_0x2f6739);const _0x1a2af1=this['repository']['getIndex'](_0x3b8cb9);if(0x0!==_0x1a2af1){const _0x50b4e4=this['repository']['getRevision'](_0x1a2af1-0x1);if(_0x50b4e4['fromVersion']!==_0x5aeb74){const _0x17591f=this['_revisionDataBuilder']['getData'](_0x5aeb74,_0x50b4e4['toVersion']),_0x135a6c={'id':_0x50b4e4['id'],'diffData':_0x17591f['diffData'],'authorsIds':_0x17591f['authorsIds'],'authors':_0x17591f['authorsIds']['map'](_0x238af8=>this['editor']['plugins']['get']('Users')['getUser'](_0x238af8)),'fromVersion':_0x5aeb74};_0x50b4e4===this['currentRevision']&&(_0x135a6c['createdAt']=new Date(_0x2f6739['createdAt']['getTime']()+0xa)),_0x50b4e4['_update'](_0x135a6c,!0x0),delete _0x135a6c['authors'],_0x2f9378['push'](_0x135a6c);}}if(this['adapter']){for(const _0x3faea7 of _0x2f9378)this['_bufferUpdate'](_0x3faea7['id'],_0x3faea7,!0x0);this['sendBufferedUpdates']();}return _0x3b8cb9;}['addRevisionData'](_0x564aed){const _0x1bb9cb=this['repository']['createRevision'](_0x564aed);return this['adapter']&&_0x1bb9cb['on']('_update',(_0x4b2d46,_0x558869,_0x3bea6e)=>{_0x3bea6e||(this['_bufferUpdate'](_0x558869['id'],_0x558869,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1bb9cb,this['_findInsertionIndex'](_0x1bb9cb)),_0x1bb9cb;}async['getRevisionDocumentData'](_0x58cfb0){await this['_loadRevisionData'](_0x58cfb0);const _0x111fb0={};for(const _0x1475f4 in _0x58cfb0['diffData']){if(_0x58cfb0['diffData'][_0x1475f4]['attachChange']&&!_0x58cfb0['diffData'][_0x1475f4]['attachChange']['isAttached'])continue;const _0x974c10=this['_removeRevisionMarkers'](JSON['parse'](_0x58cfb0['diffData'][_0x1475f4]['insertions'])),_0x3740e3=this['editor']['editing']['view']['document'],_0x1853e7=new _0x26a069(_0x3740e3,_0x974c10['map'](_0x29c917=>P(_0x29c917,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x111fb0[_0x1475f4]=this['editor']['data']['processor']['toData'](_0x1853e7),this['editor']['data']['processor']['useFillerType']('default');}return _0x111fb0;}async['getRevisionRootsAttributes'](_0x50423c){await this['_loadRevisionData'](_0x50423c);const _0x495c04={};for(const _0x4245e8 in _0x50423c['diffData'])_0x50423c['diffData'][_0x4245e8]['attachChange']&&!_0x50423c['diffData'][_0x4245e8]['attachChange']['isAttached']||(_0x495c04[_0x4245e8]=_0x50423c['diffData'][_0x4245e8]['attributesAfter']||{});return _0x495c04;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x140843=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x11287d=0x0;_0x11287d<_0x140843['length'];_0x11287d++){const _0x1f72c8=_0x140843[_0x11287d];let _0x431d45=!0x1;for(const _0x2b59cc of Object['keys'](_0x1f72c8))void 0x0===_0x1f72c8[_0x2b59cc]?delete _0x1f72c8[_0x2b59cc]:'id'!==_0x2b59cc&&(_0x431d45=!0x0);_0x431d45||(_0x140843[_0x11287d]=null);}if(_0x140843=_0x140843['filter'](_0x3726dc=>null!==_0x3726dc),!_0x140843['length'])return;for(let _0xd766c3=0x0;_0xd766c3<_0x140843['length'];_0xd766c3++){const _0x2b2e91=_0x140843[_0xd766c3];void 0x0!==_0x2b2e91['fromVersion']&&void 0x0===_0x2b2e91['toVersion']&&(_0x2b2e91['toVersion']=this['repository']['getRevision'](_0x2b2e91['id'])['toVersion']),void 0x0!==_0x2b2e91['toVersion']&&void 0x0===_0x2b2e91['fromVersion']&&(_0x2b2e91['fromVersion']=this['repository']['getRevision'](_0x2b2e91['id'])['fromVersion']);}const _0x39b341=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x140843,_0x39b341)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1945aa=>{if(_0x1945aa){for(const _0x32c738 of _0x1945aa)this['setRevisionData']({'id':_0x32c738['id'],'createdAt':_0x32c738['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1a5893,_0x19139e){let _0x59ad5a=this['editor']['config']['get']('initialData'),_0xbb7bdb=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x59ad5a){_0x59ad5a={};for(const _0xed4963 of this['editor']['model']['document']['getRootNames']())_0x59ad5a[_0xed4963]='';}if('string'==typeof _0x59ad5a&&(_0x59ad5a={'main':_0x59ad5a}),void 0x0===_0xbb7bdb){_0xbb7bdb={};for(const _0x193218 of this['editor']['model']['document']['getRootNames']())_0xbb7bdb[_0x193218]={};}let _0x46446a=!0x1;const _0x1461d1=Object['keys'](_0x59ad5a),_0x16f906=Object['keys'](_0x1a5893);for(const _0x2d76f5 of _0x1461d1){if(_0x59ad5a[_0x2d76f5]!==_0x1a5893[_0x2d76f5]&&''!==_0x59ad5a[_0x2d76f5]['trim']()){_0x46446a=!0x0;break;}if(!_0x426189(_0xbb7bdb[_0x2d76f5],_0x19139e[_0x2d76f5])&&Object['keys'](_0xbb7bdb[_0x2d76f5])['length']>0x0){_0x46446a=!0x0;break;}}_0x46446a||(_0x46446a=_0x16f906['some'](_0x26f5e4=>!this['editor']['model']['document']['getRoot'](_0x26f5e4))),_0x46446a&&_0x26f557('editor-initial-data-replaced-with-revision-data',{'editorData':_0x59ad5a,'editorRootsAttributes':_0xbb7bdb,'revisionData':_0x1a5893,'revisionRootsAttributes':_0x19139e}),this['editor']['config']['set']('initialData',_0x1a5893),this['editor']['config']['set']('rootsAttributes',_0x19139e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1f4ff6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1f4ff6['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5cd74f){const _0x45a9d6=this['repository']['getRevisions']();_0x45a9d6['reverse']();let _0x4813dd=0x0;for(;_0x4813dd<_0x45a9d6['length'];){const _0xf06323=_0x45a9d6[_0x4813dd];if(_0xf06323===this['currentRevision']){_0x4813dd++;continue;}if(_0xf06323['id']===this['_initialRevisionId'])break;const _0x176cd5=_0x5cd74f['toVersion']-_0xf06323['toVersion']||_0x5cd74f['fromVersion']-_0xf06323['fromVersion'];if(_0x176cd5>0x0)break;if(_0x176cd5<0x0)_0x4813dd++;else{if(!_0x5cd74f['creator']&&_0xf06323['creator'])break;if(_0xf06323['creator']||!_0x5cd74f['creator']){if(_0x5cd74f['createdAt']>_0xf06323['createdAt'])break;_0x4813dd++;}else _0x4813dd++;}}return _0x4813dd;}['setRevisionData'](_0x29c467){const _0x10edef=this['repository']['getRevision'](_0x29c467['id']);if(_0x29c467['createdAt']&&(_0x29c467['createdAt']=new Date(_0x29c467['createdAt'])),_0x29c467['authorsIds']){const _0x27f06f=this['editor']['plugins']['get']('Users');_0x29c467['authors']=_0x29c467['authorsIds']['map'](_0x578ee0=>_0x27f06f['getUser'](_0x578ee0));}_0x10edef['_update'](_0x29c467,!0x0);}['buildRevisionData']({revision:_0x192e61=null,from:_0x4dfbd0=null,to:_0x5ebdde=null}){_0x4dfbd0=null!==_0x4dfbd0?_0x4dfbd0:_0x192e61['fromVersion'],_0x5ebdde=null!==_0x5ebdde?_0x5ebdde:_0x192e61['toVersion'];const _0x43f5b6=this['_revisionDataBuilder']['getData'](_0x4dfbd0,_0x5ebdde),_0x1e6959={'diffData':_0x43f5b6['diffData'],'authorsIds':_0x43f5b6['authorsIds'],'fromVersion':_0x4dfbd0,'toVersion':_0x5ebdde};if(!_0x192e61||_0x5ebdde!==_0x192e61['toVersion']){const _0x4ecda5=_0x5ebdde-0x1,_0x5870da=this['_source']['history']['getOperation'](_0x4ecda5);_0x1e6959['createdAt']=_0x5870da&&_0x5870da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4dfbd0===this['_loadedStateData']['fromVersion']){for(const _0x80d08f of this['_loadedStateData']['authors'])_0x1e6959['authorsIds']['includes'](_0x80d08f['id'])||_0x1e6959['authorsIds']['push'](_0x80d08f['id']);}return _0x1e6959;}['_loadRevisionData'](_0x12a6f1){if(!_0x12a6f1||_0x12a6f1['diffData'])return Promise['resolve']();{const _0x48be1d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x48be1d,'revisionId':_0x12a6f1['id']})['then'](_0x4d3c19=>{_0x12a6f1['diffData']=_0x4d3c19['diffData'];});}}['_bufferUpdate'](_0x1a324e,_0x4f1250,_0x13999a){if(this['_bufferedUpdates']['has'](_0x1a324e)){const _0x2d0480=this['_bufferedUpdates']['get'](_0x1a324e);_0x4f1250=_0x13999a?{..._0x2d0480,..._0x4f1250}:{..._0x4f1250,..._0x2d0480};}this['_bufferedUpdates']['set'](_0x1a324e,_0x4f1250);}['_getFromVersion'](_0x32fa6a){const _0x10e934=this['repository']['getRevisions']();_0x10e934['reverse'](),_0x10e934['shift']();const _0x5ba07f=_0x10e934['find'](_0x2d6443=>_0x2d6443['toVersion']<=_0x32fa6a)['toVersion'];return _0x5ba07f<this['_startingVersion']?this['_startingVersion']:_0x5ba07f;}['_createInitialRevision'](_0x1dff86){const _0x58ed8e=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x58ed8e)this['_initialRevisionId']=_0x58ed8e['id'];else{const _0x3c8d99=!this['editor']['model']['document']['roots']['find'](_0x55471d=>this['editor']['model']['hasContent'](_0x55471d)),_0x427ae3=this['editor']['plugins']['get']('Users')['me']['id'],_0x6d73f5=m(this['editor']['locale'],_0x3c8d99?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x1dff86,'to':_0x1dff86,'id':this['_initialRevisionId'],'name':_0x6d73f5,'creatorId':_0x427ae3});}}['_createCurrentRevision'](_0x49f20d){const _0x54da1b=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x54da1b),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x49f20d,'to':_0x49f20d,'id':_0x54da1b,'name':'','creatorId':null}));}['_makeRevision']({name:_0x221f3d,from:_0x478d18,to:_0x2de09c,creatorId:_0x2203c9,id:_0x22121b}){const _0x2019fd=this['buildRevisionData']({'from':_0x478d18,'to':_0x2de09c});_0x2019fd['name']=_0x221f3d,_0x2019fd['creatorId']=_0x2203c9,_0x2019fd['id']=_0x22121b;const _0x2e03ca=this['addRevisionData'](_0x2019fd);return this['adapter']&&this['_bufferUpdate'](_0x2019fd['id'],_0x2019fd,!0x0),_0x2e03ca;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4aba9a){return(_0x4aba9a=_0x4aba9a['filter'](_0x144ece=>!_0x144ece['name']||'revision-start'!==_0x144ece['name']&&'revision-end'!==_0x144ece['name']))['forEach'](_0x22bf06=>{'string'!=typeof _0x22bf06&&(_0x22bf06['children']=this['_removeRevisionMarkers'](_0x22bf06['children']),_0x22bf06['attributes']=_0x22bf06['attributes']['filter'](_0x5ae73f=>!_0x5ae73f[0x0]['startsWith']('data-revision-')));}),_0x4aba9a;}}function P(_0x3513d8,_0x3193b5){const _0x679610=_0x3193b5['editing']['view']['document'];if('string'==typeof _0x3513d8)return new _0x29f1b1(_0x679610,_0x3513d8);{const _0x373576=_0x3513d8['children']['map'](_0x5f2404=>P(_0x5f2404,_0x3193b5));return new(E[_0x3513d8['type']]||_0x59bd53)(_0x679610,_0x3513d8['name'],_0x3513d8['attributes'],_0x373576);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3b788b){this['editor']=_0x3b788b,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'](_0x2053d7){this['source']=_0x2053d7;const _0x5ceb1c=new Map(),_0x3844=new Map(),_0x118685=this['editor']['model']['document']['roots']['map'](_0x537992=>_0x537992['rootName']);for(const _0x22d633 of _0x118685){const _0x196294=this['editor']['model']['document']['getRoot'](_0x22d633),_0x47dc4c=T(_0x196294);_0x5ceb1c['set'](_0x22d633,_0x47dc4c),_0x3844['set'](_0x22d633,Object['fromEntries'](_0x196294['getAttributes']()));}const _0x3fe638=Array['from'](this['editor']['model']['markers'])['map'](_0x1128d2=>[_0x1128d2['name'],_0x1128d2['getRange']()]),_0x84cc45=this['source']['version'];this['_saveMetaData'](_0x84cc45,_0x5ceb1c,_0x3fe638,_0x3844),this['_startingRevisionId']=this['_revisionId'];const _0x383a78=new Map(),_0x48c23f=new Map();for(const _0x286a31 of _0x118685){const _0x1b95c1=F(_0x286a31);_0x383a78['set'](_0x286a31,_0x1b95c1),_0x48c23f['set'](_0x286a31,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x383a78,[],_0x48c23f);}['getData'](_0x384180,_0xe73747){if(this['_lastFrom']===_0x384180&&this['_lastTo']<=_0xe73747)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xe73747,!0x0);else{if(!this['_savedMetaData']['has'](_0x384180)){const _0x47d049=this['_getPreviousFrom'](_0x384180);this['_calculateMetaData'](_0x47d049,_0x384180,!0x1);}this['_calculateMetaData'](_0x384180,_0xe73747,!0x0);}return this['_lastFrom']=_0x384180,this['_lastTo']=_0xe73747,this['_getState']();}['loadState'](_0x490707){this['_reset'](),this['_lastFrom']=_0x490707['fromVersion'],this['_lastTo']=_0x490707['toVersion'];for(const _0x43a50b in _0x490707['diffData']){const _0x129191=_0x490707['diffData'][_0x43a50b]['attachChange'],_0x3b1cf8=_0xd3d7c6(_0x490707['diffData'][_0x43a50b]['attributesBefore'])||{},_0x39981e=this['_makeModelFromViewString'](_0x490707['diffData'][_0x43a50b]['deletions']);_0x39981e['rootName']=_0x43a50b,_0x39981e['_isAttached']=!_0x129191||!_0x129191['isAttached'],_0x39981e['isAttached']=()=>_0x39981e['_isAttached'],this['_baseRoots']['set'](_0x43a50b,_0x39981e),this['_baseRootsAttributes']['set'](_0x43a50b,_0x3b1cf8),_0x129191&&this['_touchedRoots']['set'](_0x43a50b,_0x129191);const _0x41a8d7=this['_makeIdsRoot'](_0x39981e);this['_baseIdsRoots']['set'](_0x43a50b,_0x41a8d7);for(const [_0x326e98,_0x5c5111]of _0x39981e['markers']){if(!_0x326e98['startsWith']('revision:'))continue;const _0x28563e=_0x326e98['split'](':')[0x2];for(const _0x538de2 of _0x5c5111['getWalker']({'singleCharacters':!0x0})){const _0x438adc=this['_getVidAttributeName'](_0x538de2),_0x3d49e4='elementEnd'==_0x538de2['type']?_0x538de2['previousPosition']['path']['slice'](0x0,-0x1):_0x538de2['previousPosition']['path'],_0xdae3d1=_0x41a8d7['getNodeByPath'](_0x3d49e4)['getAttribute'](_0x438adc);this['_touched']['set'](_0xdae3d1,{'userId':_0x28563e});}}}this['_startingRevisionId']=this['_revisionId'];const _0x18cac7=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x32beea=>!this['_touched']['has'](_0x32beea));let _0x18cafd=0x0;const _0x1ea706=new Map();for(const _0x3b1ace in _0x490707['diffData']){const _0x16997d=_0x490707['diffData'][_0x3b1ace]['attachChange'],_0xeca1b1=_0xd3d7c6(_0x490707['diffData'][_0x3b1ace]['attributesAfter'])||{},_0x344648=this['_makeModelFromViewString'](_0x490707['diffData'][_0x3b1ace]['insertions']);_0x344648['rootName']=_0x3b1ace,_0x344648['_isAttached']=!_0x16997d||_0x16997d['isAttached'],_0x344648['isAttached']=()=>_0x344648['_isAttached'],this['_diffRoots']['set'](_0x3b1ace,_0x344648),this['_diffRootsAttributes']['set'](_0x3b1ace,_0xeca1b1);const _0x3509b4=this['_makeIdsRoot'](_0x344648,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3b1ace,_0x3509b4),_0x1ea706['set'](_0x3b1ace,_0x344648['isAttached']()?_0xeca1b1:{});for(const [_0x985e50,_0x21e6e3]of _0x344648['markers']){if(!_0x985e50['startsWith']('revision:'))continue;const _0x1c83c6=_0x985e50['split'](':')[0x2];for(const _0x1d1b5b of _0x21e6e3['getWalker']({'singleCharacters':!0x0})){const _0x3690c3=this['_getVidAttributeName'](_0x1d1b5b),_0x2204f1=this['_revisionId']++,_0x5a51d8='elementEnd'==_0x1d1b5b['type']?_0x1d1b5b['previousPosition']['path']['slice'](0x0,-0x1):_0x1d1b5b['previousPosition']['path'];_0x3509b4['getNodeByPath'](_0x5a51d8)['_setAttribute'](_0x3690c3,_0x2204f1),this['_touched']['set'](_0x2204f1,{'userId':_0x1c83c6});}}for(const _0x3f844f of this['editor']['model']['createRangeIn'](_0x344648)['getWalker']({'singleCharacters':!0x0})){const _0x225c08=this['_getVidAttributeName'](_0x3f844f),_0x49303f='elementEnd'==_0x3f844f['type']?_0x3f844f['previousPosition']['path']['slice'](0x0,-0x1):_0x3f844f['previousPosition']['path'],_0x4d1520=_0x3509b4['getNodeByPath'](_0x49303f);_0x4d1520['getAttribute'](_0x225c08)>0x0||_0x4d1520['_setAttribute'](_0x225c08,_0x18cac7[_0x18cafd++]);}for(const [_0x147607,_0x5805f0]of _0x344648['markers'])_0x147607['startsWith']('revision:')||this['_markers']['set'](_0x147607,_0x5805f0);}const _0x4177f4=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4177f4),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4177f4,0x1));const _0x387475=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x387475),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x387475,0x1));const _0x6af5d9=Array['from'](this['_diffRoots'])['map'](([_0x3ba2d5,_0x4e6c32])=>[_0x3ba2d5,T(_0x4e6c32)]);this['_saveMetaData'](this['_lastTo'],_0x6af5d9,this['_markers'],_0x1ea706);}['_makeModelFromViewString'](_0x45dc8a){const _0x25a038=JSON['parse'](_0x45dc8a),_0x392f5d=this['editor']['editing']['view']['document'],_0x4dafe2=new _0x26a069(_0x392f5d,_0x25a038['map'](_0x3b909b=>P(_0x3b909b,this['editor'])));return this['editor']['data']['toModel'](_0x4dafe2);}['_saveMetaData'](_0xf028b8,_0x23b2b4,_0x122f62,_0x2e2abf){const _0x2fffe4=new Map(_0x23b2b4),_0x35bced=new Map(_0xd3d7c6(_0x2e2abf)),_0x22128d=new Map();for(const [_0x2ce0c2,_0x1c8741]of _0x122f62)_0x22128d['set'](_0x2ce0c2,{'start':_0x1c8741['start']['clone'](),'end':_0x1c8741['end']['clone'](),'rootName':_0x1c8741['root']['rootName']});this['_savedMetaData']['set'](_0xf028b8,{'roots':_0x2fffe4,'markers':_0x22128d,'rootsAttributes':_0x35bced});}['_removeMetaData'](_0x1f658f){this['_savedMetaData']['delete'](_0x1f658f);}['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'](_0x365d01,_0x3038e8=null){let _0x449276=null;_0x365d01['is']('documentFragment')||(_0x449276=new ut(_0x365d01['name'],{'vid_start':null===_0x3038e8?this['_revisionId']++:_0x3038e8++}));const _0x4e40ea=[];for(const _0x484206 of _0x365d01['getChildren']())if(_0x484206['is']('element')){_0x4e40ea['push'](this['_makeIdsRoot'](_0x484206,_0x3038e8));const _0x5cca25=_0x4e40ea[_0x4e40ea['length']-0x1];null!==_0x3038e8&&(_0x3038e8=_0x5cca25['is']('element','$text')?_0x5cca25['getAttribute']('vid')+0x1:_0x5cca25['getAttribute']('vid_end')+0x1);}else{for(let _0x13559e=0x0;_0x13559e<_0x484206['offsetSize'];_0x13559e++)_0x4e40ea['push'](new ut('$text',{'vid':null===_0x3038e8?this['_revisionId']++:_0x3038e8++}));}if(_0x365d01['is']('documentFragment')){const _0x3aa743=F(_0x365d01['rootName']);return _0x3aa743['_insertChild'](0x0,_0x4e40ea),_0x3aa743;}return _0x449276['_setAttribute']('vid_end',null===_0x3038e8?this['_revisionId']++:_0x3038e8++),_0x449276['_insertChild'](0x0,_0x4e40ea),_0x449276;}['_calculateMetaData'](_0x52f264,_0x3eb795,_0x2b9503){this['_reset']();const {roots:_0x110cd5,markers:_0x39ee0d,rootsAttributes:_0xf3ff4b}=this['_savedMetaData']['get'](_0x52f264);this['_baseRoots']=new Map(_0x110cd5),this['_baseRootsAttributes']=new Map(_0xd3d7c6(_0xf3ff4b));for(const [_0x57e363,_0x106378]of this['_baseRoots'])if('$graveyard'!==_0x57e363&&(this['_diffRoots']['set'](_0x57e363,T(_0x106378)),this['_diffRootsAttributes']=new Map(_0xd3d7c6(_0xf3ff4b)),_0x2b9503)){const _0x2ca0eb=this['_revisionId'];this['_idsRoots']['set'](_0x57e363,this['_makeIdsRoot'](_0x106378)),this['_baseIdsRoots']['set'](_0x57e363,this['_makeIdsRoot'](_0x106378,_0x2ca0eb));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2b9503&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xf5826d,_0x473fe4]of _0x39ee0d){const _0x3beb8f=this['_baseRoots']['get'](_0x473fe4['rootName']),_0xb6c27=this['_diffRoots']['get'](_0x473fe4['rootName']),_0xfaebf9=new ft(this['_fixPosition'](_0x473fe4['start'],_0x3beb8f),this['_fixPosition'](_0x473fe4['end'],_0x3beb8f)),_0x1a235b=this['_fixRange'](_0xfaebf9,_0xb6c27);_0x3beb8f['markers']['set'](_0xf5826d,_0xfaebf9),this['_markers']['set'](_0xf5826d,_0x1a235b);}this['_applyOperations'](_0x52f264,_0x3eb795,_0x2b9503);}['_applyOperations'](_0x4bcd27,_0x228bbc,_0x58dc8a){for(const _0x30b3d4 of this['source']['getOperations'](_0x4bcd27,_0x228bbc))this['_handleOperation'](_0x30b3d4,_0x58dc8a);for(const _0x83e924 of this['_diffRoots']['values']())_0x83e924['markers']['clear']();for(const [_0x16685c,_0x548723]of this['_markers']){this['_diffRoots']['get'](_0x548723['root']['rootName'])['markers']['set'](_0x16685c,_0x548723['clone']());}const _0x5c9487=new Map(),_0xc8eaa0=new Map();for(const [_0x5cd10a,_0x1abad2]of this['_diffRoots'])_0x5c9487['set'](_0x5cd10a,T(_0x1abad2)),_0xc8eaa0['set'](_0x5cd10a,this['_diffRootsAttributes']['get'](_0x5cd10a));this['_saveMetaData'](_0x228bbc,_0x5c9487,this['_markers'],_0xc8eaa0);}['_getPreviousFrom'](_0x312834){const _0x2eba11=Array['from'](this['_savedMetaData']['keys']());_0x2eba11['sort']((_0xa4929c,_0x303bb4)=>_0xa4929c-_0x303bb4),_0x2eba11['reverse']();for(const _0xc67c04 of _0x2eba11)if(_0xc67c04<_0x312834)return _0xc67c04;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x12a99c,_0x59ca31){const _0x46119a=Array['from'](_0x59ca31['markers'])['map'](([_0x10d80c,_0x471b58])=>[_0x10d80c,this['_fixRange'](_0x471b58,_0x12a99c)]);_0x12a99c['markers']=new Map(_0x46119a);}['_transformMarkers'](_0x5b46ea){for(const _0x286902 of this['_markers']['values']()){const _0x55851a=_0x286902['getTransformedByOperation'](_0x5b46ea),_0x3f92db=ft['_createFromRanges'](_0x55851a);_0x286902['start']=_0x3f92db['start'],_0x286902['end']=_0x3f92db['end'];}}['_handleOperation'](_0x1deae0,_0x23443e){if('addRoot'!=_0x1deae0['type']&&'detachRoot'!=_0x1deae0['type']){if('insert'==_0x1deae0['type']){const _0x1c4f61=_0x1deae0['position']['root']['rootName'];this['_diffRoots']['has'](_0x1c4f61)||(this['_diffRoots']['set'](_0x1c4f61,F(_0x1c4f61,!0x0)),this['_diffRootsAttributes']['set'](_0x1c4f61,{}),_0x23443e&&this['_idsRoots']['set'](_0x1c4f61,F(_0x1c4f61,!0x0)));}else{if('addRootAttribute'==_0x1deae0['type']||'removeRootAttribute'==_0x1deae0['type']||'changeRootAttribute'==_0x1deae0['type'])return void this['_handleRootAttributeOperation'](_0x1deae0);'marker'==_0x1deae0['type']&&this['_handleMarkerOperation'](_0x1deae0);}if('marker'!==_0x1deae0['type']){const _0x1b60a4=this['_cloneOperation'](_0x1deae0,this['_diffRoots']);_0x1b60a4['_execute'](),this['_transformMarkers'](_0x1b60a4);}if(_0x23443e)switch(_0x1deae0['type']){case'insert':this['_handleInsertOperation'](_0x1deae0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1deae0);break;case'merge':this['_handleMergeOperation'](_0x1deae0);break;case'split':this['_handleSplitOperation'](_0x1deae0);}}else this['_handleRootOperation'](_0x1deae0,_0x23443e);}['_cloneOperation'](_0x4c1d48,_0x39f9b4){const _0x33803e=_0x4c1d48['clone']();return _0x33803e['_authorId']=_0x4c1d48['_authorId'],this['_fixOperation'](_0x33803e,_0x39f9b4),_0x33803e;}['_getBaseVids'](_0x4edcc3){return _0x4edcc3['map'](_0x368a63=>{const _0x444648=this['_getVidAttributeName'](_0x368a63);return Number(_0x368a63['item']['getAttribute'](_0x444648));});}['_generateTape'](_0x10d716,_0x45cc60){if(_0x10d716['is']('element','$text'))_0x45cc60['push']({'item':_0x10d716,'type':'text'});else{_0x10d716['is']('element')&&_0x45cc60['push']({'item':_0x10d716,'type':'elementStart'});for(const _0x3be7fe of _0x10d716['getChildren']())this['_generateTape'](_0x3be7fe,_0x45cc60);_0x10d716['is']('element')&&_0x45cc60['push']({'item':_0x10d716,'type':'elementEnd'});}return _0x45cc60;}['_getState'](){const _0x1dfc3f=new Map(this['_touched']),_0x1d142a=new Map(_0x1dfc3f),_0x482892=new Map(),_0x5de88d={'insertions':{},'deletions':{}},_0x236748={'insertions':{},'deletions':{}},_0x529753=new Map(),_0x36edb5=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36edb5['delete']('$graveyard');for(const _0x32777a of _0x36edb5){const _0x25929b=this['_diffRoots']['get'](_0x32777a)||F(_0x32777a,!0x1),_0x3563a2=this['_baseRoots']['get'](_0x32777a)||F(_0x32777a,!0x1);_0x25929b['isAttached']()||_0x3563a2['isAttached']()?(_0x5de88d['insertions'][_0x32777a]=T(_0x25929b),_0x5de88d['deletions'][_0x32777a]=T(_0x3563a2),this['_copyMarkers'](_0x5de88d['deletions'][_0x32777a],_0x3563a2),this['_copyMarkers'](_0x5de88d['insertions'][_0x32777a],_0x25929b),_0x236748['insertions'][_0x32777a]=this['_generateTape'](this['_idsRoots']['get'](_0x32777a),[]),_0x236748['deletions'][_0x32777a]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x32777a)||F(_0x32777a,!0x1),[])):_0x36edb5['delete'](_0x32777a);}for(const _0x3bf69d of _0x36edb5){const _0xdac229=_0x236748['insertions'][_0x3bf69d];for(const _0x350c52 of _0xdac229){const _0x1d66e4=this['_getVidAttributeName'](_0x350c52),_0x2eb0bd=_0x350c52['item']['getAttribute'](_0x1d66e4);_0x1d142a['delete'](_0x2eb0bd),_0x2eb0bd>=this['_startingRevisionId']&&_0x482892['set'](_0x2eb0bd,_0x1dfc3f['get'](_0x2eb0bd));}}for(const _0x218841 of _0x36edb5){const _0x88867b=_0x236748['insertions'][_0x218841],_0x524cab=this['_getBaseVids'](_0x236748['deletions'][_0x218841]);let _0x3595cc=0x0;for(const _0x5b181b of _0x88867b){const _0x268991=this['_getVidAttributeName'](_0x5b181b),_0x7b3fe7=_0x5b181b['item']['getAttribute'](_0x268991);if(!_0x482892['has'](_0x7b3fe7)&&!_0x529753['has'](_0x7b3fe7)){if(_0x1d142a['has'](_0x7b3fe7))_0x3595cc++;else{if(_0x7b3fe7!=_0x524cab[_0x3595cc]){const _0x38b6da=_0x1dfc3f['get'](_0x7b3fe7)||_0x1dfc3f['get'](_0x524cab[_0x3595cc]);for(;_0x7b3fe7!=_0x524cab[_0x3595cc];)_0x1d142a['has'](_0x524cab[_0x3595cc])||(_0x529753['set'](_0x524cab[_0x3595cc],_0x38b6da),_0x1dfc3f['set'](_0x524cab[_0x3595cc],_0x38b6da)),_0x3595cc++;}_0x3595cc++;}}}}for(const _0x1a1b4d of _0x36edb5){const _0x434f64=_0x236748['insertions'][_0x1a1b4d];for(const _0x19cc77 of _0x434f64){const _0x51706f=this['_getVidAttributeName'](_0x19cc77),_0xd2ee65=_0x19cc77['item']['getAttribute'](_0x51706f);if(_0x529753['has'](_0xd2ee65)){const _0x1901bd=_0x529753['get'](_0xd2ee65);_0x1d142a['has'](_0xd2ee65)||_0x1d142a['set'](_0xd2ee65,{..._0x1901bd}),_0x482892['set'](_0xd2ee65,{..._0x1901bd});}}}for(const _0x55458e of _0x1d142a['keys']())_0x55458e>=this['_startingRevisionId']&&_0x1d142a['delete'](_0x55458e);const _0x319c1b=new Map();for(const _0x32841d of _0x36edb5){let _0xea6072=_0x236748['insertions'][_0x32841d];for(const _0x17eea8 of _0xea6072)if(_0x17eea8['item']['is']('element','tableCell')){const _0x1877e0=this['_getVidAttributeName'](_0x17eea8),_0x2bfa93=_0x17eea8['item']['getAttribute'](_0x1877e0);if(_0x482892['has'](_0x2bfa93)){const _0x3ccca4=_0x17eea8['item']['parent']['parent']['getAttribute']('vid_start'),_0x373668=_0x319c1b['get'](_0x3ccca4)||new Set();_0x373668['add'](_0x482892['get'](_0x2bfa93)['userId']),_0x319c1b['set'](_0x3ccca4,_0x373668);}}_0xea6072=_0x236748['deletions'][_0x32841d];for(const _0x3ae163 of _0xea6072)if(_0x3ae163['item']['is']('element','tableCell')){const _0x114f6e=this['_getVidAttributeName'](_0x3ae163),_0x2a9a78=_0x3ae163['item']['getAttribute'](_0x114f6e);if(_0x1d142a['has'](_0x2a9a78)){const _0x4839f5=_0x3ae163['item']['parent']['parent']['getAttribute']('vid_start'),_0x121879=_0x319c1b['get'](_0x4839f5)||new Set();_0x121879['add'](_0x1d142a['get'](_0x2a9a78)['userId']),_0x319c1b['set'](_0x4839f5,_0x121879);}}for(const _0x4eec73 of _0x319c1b['keys']())(_0x482892['has'](_0x4eec73)||_0x1d142a['has'](_0x4eec73))&&_0x319c1b['delete'](_0x4eec73);}for(const _0x39abbd of _0x36edb5){const _0x1ed2a3=_0x236748['insertions'][_0x39abbd];let _0x4d3c66=null,_0xcb3af3=null;for(const _0x3e2dc4 of _0x1ed2a3){const _0x5c58ab=this['_getVidAttributeName'](_0x3e2dc4),_0x3cd408=_0x3e2dc4['item']['getAttribute'](_0x5c58ab),_0x142125=_0x319c1b['get'](_0x3cd408);_0x142125&&'elementStart'==_0x3e2dc4['type']&&(_0x4d3c66=Array['from'](_0x142125)[0x0],_0xcb3af3=_0x3e2dc4['item']['getAttribute']('vid_end')),_0x4d3c66&&(_0x1d142a['set'](_0x3cd408,{'userId':_0x4d3c66}),_0x482892['set'](_0x3cd408,{'userId':_0x4d3c66})),_0x3cd408==_0xcb3af3&&(_0x4d3c66=null,_0xcb3af3=null);}}const _0x3b5d14={},_0x1e8a2a=new Set();for(const _0x1aac82 of _0x36edb5){const _0x2da901=_0x5de88d['deletions'][_0x1aac82],_0x2a3e7a=_0x5de88d['insertions'][_0x1aac82];for(const {userId:_0x4e2844}of this['_touchedMarkers']['values']())null!==_0x4e2844&&_0x1e8a2a['add'](_0x4e2844);for(const {userId:_0x27217a}of this['_touchedRoots']['values']())null!==_0x27217a&&_0x1e8a2a['add'](_0x27217a);this['_markChanges'](_0x2a3e7a,_0x236748['insertions'][_0x1aac82],_0x482892,'insertion',_0x1e8a2a),this['_markChanges'](_0x2da901,_0x236748['deletions'][_0x1aac82],_0x1d142a,'deletion',_0x1e8a2a),_0x3b5d14[_0x1aac82]={'insertions':this['_prepareViewToSave'](_0x2a3e7a),'deletions':this['_prepareViewToSave'](_0x2da901),'attachChange':this['_touchedRoots']['get'](_0x1aac82)||null,'attributesBefore':_0xd3d7c6(this['_baseRootsAttributes']['get'](_0x1aac82))||{},'attributesAfter':_0xd3d7c6(this['_diffRootsAttributes']['get'](_0x1aac82))};}return{'diffData':_0x3b5d14,'authorsIds':Array['from'](_0x1e8a2a)};}['_processRootBeforeSave'](_0x26d4db){for(const [,_0x3d501b]of _0x26d4db['markers']){const _0x243f97=_0x3d501b['start']['getAncestors']()['filter'](_0x4bf7fe=>'tableCell'==_0x4bf7fe['name']);for(const _0x37066c of _0x243f97)0x1==_0x37066c['childCount']&&_0x37066c['getChild'](0x0)['is']('element','paragraph')&&_0x37066c['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x1c7477){this['_processRootBeforeSave'](_0x1c7477);const _0x3dbbc6=this['editor']['data']['toView'](_0x1c7477,{}),_0x4db852=Array['from'](_0x3dbbc6['getChildren']())['map'](_0x16d72b=>this['_getViewJson'](_0x16d72b));return JSON['stringify'](_0x4db852);}['_getViewJson'](_0x43b1e3){if(_0x43b1e3['is']('$text'))return _0x43b1e3['data'];{const _0x18554a=_0x43b1e3;return{'type':Object['keys'](E)['find'](_0x535bc6=>_0x43b1e3 instanceof E[_0x535bc6]),'name':_0x18554a['name'],'attributes':Array['from'](_0x18554a['getAttributes']()),'children':Array['from'](_0x18554a['getChildren']())['map'](_0x14d3a9=>this['_getViewJson'](_0x14d3a9))};}}['_markChanges'](_0x46b7a8,_0x4e0d25,_0xa2065f,_0x4dde3f,_0x1223e4){let _0x34c6d5=null,_0x46d444=null,_0x498876=0x0;const _0xf3b1e7=this['editor']['model'];for(let _0x39013a=0x0;_0x39013a<_0x4e0d25['length'];_0x39013a++){const _0x305727=this['_getVidAttributeName'](_0x4e0d25[_0x39013a]),_0x47c890=_0x4e0d25[_0x39013a]['item']['getAttribute'](_0x305727),_0x2ab2cb=_0xa2065f['get'](_0x47c890),_0x498b5d=_0x39013a==_0x4e0d25['length']-0x1;(!_0x34c6d5&&_0x2ab2cb&&(_0x34c6d5=_0x2ab2cb,_0x46d444=_0x4e0d25[_0x39013a]),_0x34c6d5&&(!_0x2ab2cb||_0x2ab2cb['userId']!=_0x34c6d5['userId']))&&(_0x2a5606(_0x2ab2cb,B(_0x46d444,_0x46b7a8,_0xf3b1e7),B(_0x4e0d25[_0x39013a],_0x46b7a8,_0xf3b1e7)),_0x34c6d5=_0x2ab2cb||null,_0x46d444=_0x2ab2cb?_0x4e0d25[_0x39013a]:null),_0x34c6d5&&_0x498b5d&&_0x2a5606(_0x2ab2cb,B(_0x46d444,_0x46b7a8,_0xf3b1e7),J(_0x4e0d25[_0x39013a],_0x46b7a8,_0xf3b1e7));}function _0x2a5606(_0x424cc0,_0x582b56,_0x51351d){const _0x48cdb1=_0x34c6d5['userId'],_0x3228a5='revision:'+_0x4dde3f+':'+_0x48cdb1+':'+_0x498876++,_0x228aa6=_0xf3b1e7['createRange'](_0x582b56,_0x51351d);_0x46b7a8['markers']['set'](_0x3228a5,_0x228aa6),null!==_0x48cdb1&&_0x1223e4['add'](_0x48cdb1);}}['_getVidAttributeName'](_0x4a68db){switch(_0x4a68db['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x40f770,_0x15edb3){_0x40f770['baseVersion']=null;for(const _0x4515b9 in _0x40f770){const _0x3628c8=_0x40f770[_0x4515b9];if(_0x3628c8 instanceof vt){const _0x365c8b=_0x15edb3['get'](_0x3628c8['root']['rootName']);_0x40f770[_0x4515b9]=this['_fixPosition'](_0x3628c8,_0x365c8b);}if(_0x3628c8 instanceof ft){const _0x54648e=_0x15edb3['get'](_0x3628c8['root']['rootName']);_0x40f770[_0x4515b9]=this['_fixRange'](_0x3628c8,_0x54648e);}'root'===_0x4515b9&&(_0x40f770['root']=_0x15edb3['get'](_0x40f770['root']['rootName']));}}['_fixRange'](_0x2c8072,_0x2c3cc5){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2c8072['start'],_0x2c3cc5),this['_fixPosition'](_0x2c8072['end'],_0x2c3cc5));}['_fixPosition'](_0x42c928,_0x1f8fb6){return this['editor']['model']['createPositionFromPath'](_0x1f8fb6,_0x42c928['path'],_0x42c928['stickiness']);}['_handleInsertOperation'](_0x5d591a){const _0x30acd5=this['_idsRoots']['get'](_0x5d591a['position']['root']['rootName']),_0x276e0=this['_fixPosition'](_0x5d591a['position'],_0x30acd5),_0x28fa12=null===_0x5d591a['_authorId']?null:_0x5d591a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2681c4=_0x276e0['parent'],_0x56334f=this['_revisionId'],_0x155457=[];for(const _0x2edb5a of _0x5d591a['nodes'])if(_0x2edb5a['is']('element'))_0x155457['push'](this['_makeIdsRoot'](_0x2edb5a));else{for(let _0x4e618e=0x0;_0x4e618e<_0x2edb5a['offsetSize'];_0x4e618e++)_0x155457['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x411baf=this['_revisionId'];for(let _0xe60540=_0x56334f;_0xe60540<_0x411baf;_0xe60540++)this['_touched']['set'](_0xe60540,{'userId':_0x28fa12});_0x2681c4['_insertChild'](_0x276e0['offset'],_0x155457);}['_handleMoveOperation'](_0x30613d){(_0x30613d=this['_cloneOperation'](_0x30613d,this['_idsRoots']))['_execute']();const _0x21fe03=null===_0x30613d['_authorId']?null:_0x30613d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x27650e=_0x30613d['getMovedRangeStart'](),_0x46a014=_0x27650e['parent'],_0x47d880=_0x27650e['offset'];!function _0x1030e7(_0x218d50,_0x24e313,_0x47461c,_0x204ad2){for(let _0x49dae9=_0x47461c;_0x49dae9<_0x204ad2;_0x49dae9++){const _0x58ab38=_0x24e313['getChild'](_0x49dae9);_0x58ab38['is']('element','$text')?_0x218d50['set'](_0x58ab38['getAttribute']('vid'),{'userId':_0x21fe03}):(_0x218d50['set'](_0x58ab38['getAttribute']('vid_start'),{'userId':_0x21fe03}),_0x1030e7(_0x218d50,_0x58ab38,0x0,_0x58ab38['childCount']),_0x218d50['set'](_0x58ab38['getAttribute']('vid_end'),{'userId':_0x21fe03}));}}(this['_touched'],_0x46a014,_0x47d880,_0x47d880+_0x30613d['howMany']);}['_handleMergeOperation'](_0x4c3dde){const _0x5788a8=null===(_0x4c3dde=this['_cloneOperation'](_0x4c3dde,this['_idsRoots']))['_authorId']?null:_0x4c3dde['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53a0df=_0x4c3dde['targetPosition']['parent'],_0x51c5b8=_0x4c3dde['sourcePosition']['parent'],_0x54936c=_0x53a0df['getAttribute']('vid_end'),_0x494415=_0x51c5b8['getAttribute']('vid_start');_0x53a0df['_setAttribute']('vid_end',_0x51c5b8['getAttribute']('vid_end')),_0x51c5b8['_setAttribute']('vid_end',_0x54936c),this['_touched']['set'](_0x494415,{'userId':_0x5788a8}),this['_touched']['set'](_0x54936c,{'userId':_0x5788a8}),_0x4c3dde['_execute']();}['_handleSplitOperation'](_0x5a1ae6){const _0x1d0a12=null===(_0x5a1ae6=this['_cloneOperation'](_0x5a1ae6,this['_idsRoots']))['_authorId']?null:_0x5a1ae6['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30ff=_0x5a1ae6['graveyardPosition'],_0x140a25=_0x5a1ae6['splitPosition']['parent'];_0x5a1ae6['_execute']();const _0x10e999=_0x140a25['getAttribute']('vid_end'),_0xc6bd04=_0x5a1ae6['insertionPosition']['nodeAfter'];if(_0x30ff){const _0x43d45d=_0xc6bd04['getAttribute']('vid_end'),_0xf4552c=_0x140a25['getAttribute']('vid_end');_0x140a25['_setAttribute']('vid_end',_0x43d45d),_0xc6bd04['_setAttribute']('vid_end',_0xf4552c),this['_touched']['set'](_0x140a25['getAttribute']('vid_end'),{'userId':_0x1d0a12}),this['_touched']['set'](_0xc6bd04['getAttribute']('vid_start'),{'userId':_0x1d0a12});}else{const _0x54a557=this['_revisionId']++,_0x446e4e=this['_revisionId']++;_0x140a25['_setAttribute']('vid_end',_0x54a557),_0xc6bd04['_setAttribute']('vid_start',_0x446e4e),_0xc6bd04['_setAttribute']('vid_end',_0x10e999),this['_touched']['set'](_0x54a557,{'userId':_0x1d0a12}),this['_touched']['set'](_0x446e4e,{'userId':_0x1d0a12});}}['_handleMarkerOperation'](_0x542491){if(!_0x542491['affectsData'])return;const _0x2b0458=(_0x542491=this['_cloneOperation'](_0x542491,this['_diffRoots']))['oldRange']?_0x542491['oldRange']['root']:null,_0x21974b=_0x542491['newRange']?_0x542491['newRange']['root']:null;_0x2b0458&&this['_markers']['delete'](_0x542491['name']),_0x21974b&&this['_markers']['set'](_0x542491['name'],_0x542491['newRange']['clone']());const _0x5f15fc=null===_0x542491['_authorId']?null:_0x542491['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2f7ec4=_0x542491['name'];if(!this['_touchedMarkers']['has'](_0x2f7ec4))return void this['_touchedMarkers']['set'](_0x2f7ec4,{'range':_0x542491['oldRange'],'userId':_0x5f15fc});const _0x479af0=this['_touchedMarkers']['get'](_0x2f7ec4),_0x54c6c2=_0x479af0['range'],_0x423bfb=_0x542491['newRange'];null==_0x54c6c2&&null==_0x423bfb||_0x54c6c2&&_0x423bfb&&_0x54c6c2['isEqual'](_0x423bfb)?this['_touchedMarkers']['delete'](_0x542491['name']):_0x479af0['userId']=_0x5f15fc;}['_handleRootOperation'](_0x223a26,_0x5c6285){this['_diffRoots']['has'](_0x223a26['rootName'])?this['_diffRoots']['get'](_0x223a26['rootName'])['_isAttached']=_0x223a26['isAdd']:(this['_diffRoots']['set'](_0x223a26['rootName'],F(_0x223a26['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x223a26['rootName'],{}),_0x5c6285&&this['_idsRoots']['set'](_0x223a26['rootName'],F(_0x223a26['rootName'],!0x0)));const _0x49337d=null===_0x223a26['_authorId']?null:_0x223a26['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12f967=this['_touchedRoots']['get'](_0x223a26['rootName']);_0x12f967&&_0x12f967['userId']===_0x49337d?this['_touchedRoots']['delete'](_0x223a26['rootName']):this['_touchedRoots']['set'](_0x223a26['rootName'],{'userId':_0x49337d,'isAttached':_0x223a26['isAdd']});}['_handleRootAttributeOperation'](_0x2620e3){const _0x17f94b=this['_diffRootsAttributes']['get'](_0x2620e3['root']['rootName']);null===_0x2620e3['newValue']?delete _0x17f94b[_0x2620e3['key']]:_0x17f94b[_0x2620e3['key']]=_0x2620e3['newValue'];}}function T(_0x5159a1){const _0x2f4e75=F(_0x5159a1['rootName'],_0x5159a1['isAttached']());for(const _0x1389b1 of _0x5159a1['getChildren']()){const _0xdb68e6=_0x1389b1['_clone'](!0x0);_0x2f4e75['_appendChild'](_0xdb68e6);}return _0x2f4e75;}function F(_0x4e9e,_0x19d63d=!0x0){const _0x519fec=new gt();return _0x519fec['rootName']=_0x4e9e,_0x519fec['_isAttached']=_0x19d63d,_0x519fec['isAttached']=()=>_0x519fec['_isAttached'],_0x519fec;}function B(_0x5c2710,_0x140140,_0x3775ca){const _0x5a7466='elementEnd'==_0x5c2710['type']?_0x3775ca['createPositionAt'](_0x5c2710['item'],'end'):_0x3775ca['createPositionBefore'](_0x5c2710['item']);return _0x3775ca['createPositionFromPath'](_0x140140,_0x5a7466['path'],_0x5a7466['stickiness']);}function J(_0x209c4b,_0x10584f,_0x5af940){const _0x53994a='elementStart'==_0x209c4b['type']?_0x5af940['createPositionAt'](_0x209c4b['item'],0x0):_0x5af940['createPositionAfter'](_0x209c4b['item']);return _0x5af940['createPositionFromPath'](_0x10584f,_0x53994a['path'],_0x53994a['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x26b41a,_0x5260eb){super(_0x26b41a),this['focusTracker']=new _0xb58d78(),this['keystrokes']=new _0x22b2b6(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5260eb),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x52b994(this);}['render'](){super['render'](),_0xbcc6bc({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x4cb75f=_0x21d6ba=>_0x21d6ba['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4cb75f),this['keystrokes']['set']('arrowleft',_0x4cb75f),this['keystrokes']['set']('arrowup',_0x4cb75f),this['keystrokes']['set']('arrowdown',_0x4cb75f);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x405d56){this['revisionNameInputView']['fieldView']['element']['value']=_0x405d56['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x52e9de){const _0x51c0c9=new _0x3230b0(this['locale'],_0x30c57f),_0x466932=_0x51c0c9['fieldView'];_0x466932['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x24f774=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x52e9de&&(_0x24f774+='\x20('+m(this['locale'],'optional')+')'),(_0x51c0c9['label']=_0x24f774,_0x466932['on']('input',()=>{this['revisionNameInputValue']=_0x466932['element']['value']['trim']();}),_0x51c0c9);}}class f extends _0x1947b9{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3e39e7=this['editor'],_0xbe88fb=_0x3e39e7['plugins']['get']('RevisionTracker');_0x3e39e7['ui']['componentFactory']['add']('revisionHistory',_0x48c413=>{const _0x243b46=_0x5ae326(_0x48c413),_0x18da42=_0x243b46['panelView']['children'],_0x4eb5e1=new _0x575510(_0x48c413),_0x42a0fc=new _0x1fc11a(_0x48c413),_0x429506=new te(_0x48c413),_0x759742=new _0x1fc11a(_0x48c413),_0x2afd5a=new te(_0x48c413);return _0x243b46['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0xbe88fb,'isEnabled',_0x3e39e7,'isReadOnly',(_0x2d3d48,_0x14dc84,_0x195f6c)=>_0x2d3d48&&_0x14dc84&&!_0x195f6c),_0x243b46['buttonView']['set']({'icon':_0x4b0f09,'label':m(_0x48c413,'Revision\x20history'),'tooltip':!0x0}),_0x429506['set']({'label':m(_0x48c413,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x429506['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0xbe88fb,'isEnabled',_0x3e39e7,'isReadOnly',(_0x1e0fe1,_0x5725e1,_0x2b9db2)=>_0x1e0fe1&&_0x5725e1&&!_0x2b9db2),_0x429506['on']('execute',()=>this['_showDialog']()),_0x2afd5a['set']({'label':m(_0x48c413,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2afd5a['bind']('isEnabled')['to'](_0xbe88fb,'isReady',_0x3e39e7,'isReadOnly',(_0x41dec0,_0x2a3164)=>_0x41dec0&&!_0x2a3164),_0x2afd5a['on']('execute',()=>{_0x3e39e7['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x243b46['isOpen']=!0x1,_0x3e39e7['editing']['view']['focus']();}),_0x42a0fc['children']['add'](_0x429506),_0x759742['children']['add'](_0x2afd5a),_0x4eb5e1['role']='menu',_0x4eb5e1['items']['addMany']([_0x42a0fc,_0x759742]),_0x18da42['add'](_0x4eb5e1),_0x243b46;}),_0x3e39e7['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5bd7a3=this['editor'],_0x23b7b8=_0x5bd7a3['locale'],_0x4490dd=new _0x3d315a(_0x23b7b8),_0x30e52e=new _0x489dbe(_0x23b7b8);_0x4490dd['buttonView']['set']({'icon':_0x4b0f09,'label':m(_0x23b7b8,'Revision\x20history')});const _0x3d2de7=new _0x5b8bda(_0x23b7b8,_0x4490dd),_0x105ca9=new _0x31e280(_0x23b7b8);_0x105ca9['set']({'label':m(_0x23b7b8,'Save\x20current\x20revision')}),_0x105ca9['delegate']('execute')['to'](_0x4490dd),_0x105ca9['on']('execute',()=>{this['_showDialog']();}),_0x3d2de7['children']['add'](_0x105ca9),_0x30e52e['items']['add'](_0x3d2de7);const _0x350808=new _0x5b8bda(_0x23b7b8,_0x4490dd),_0x33391c=new _0x31e280(_0x23b7b8);return _0x33391c['set']({'label':m(_0x23b7b8,'Open\x20revision\x20history')}),_0x33391c['delegate']('execute')['to'](_0x4490dd),_0x33391c['on']('execute',()=>{_0x5bd7a3['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x350808['children']['add'](_0x33391c),_0x30e52e['items']['add'](_0x350808),_0x4490dd['panelView']['children']['add'](_0x30e52e),_0x4490dd;}['_showDialog'](){const _0x29d7cc=this['editor'],_0xa1ad21=_0x29d7cc['locale'],_0x206f27=_0x29d7cc['plugins']['get']('Dialog'),_0xf3ea83=_0x29d7cc['plugins']['get']('RevisionTracker');function _0x4b9122(_0x4d0de3){_0x29d7cc['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4d0de3['revisionName']?_0x4d0de3['revisionNameInputView']['errorText']=m(_0xa1ad21,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x29d7cc['plugins']['get'](u)['saveRevision']({'name':_0x4d0de3['revisionName']}),_0x206f27['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4b9122(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x206f27['show']({'id':'revisionSave','title':m(_0xa1ad21,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x29d7cc['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x206f27['hide']()},{'label':m(_0x29d7cc['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2c6344){_0x2c6344['bind']('isEnabled')['to'](_0xf3ea83,'isReady',_0xf3ea83,'isEnabled',_0x29d7cc,'isReadOnly',(_0x3790ae,_0x2ea75a,_0x5a249e)=>_0x3790ae&&_0x2ea75a&&!_0x5a249e);},'onExecute':()=>_0x4b9122(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1ad3c1=this['editor'],_0x372823=_0x1ad3c1['locale'];this['_saveRevisionFormView']=new hs(_0x372823,_0x1ad3c1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x4f91d7,_0x5b68bb){super(_0x4f91d7),this['_model']=_0x5b68bb,this['changeId']=_0x5b68bb['id'];const _0x20b97e=this['bindTemplate'],_0x39ec55=m(_0x4f91d7,_0x5b68bb['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5b68bb['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5b68bb['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x20b97e['to']('type',_0x18021d=>'ck-revision-change__'+_0x18021d)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x39ec55}]},{'text':'\x20'+_0x5b68bb['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x12e48c(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x50aabc){super(),this['id']=_0x50aabc['id']||_0x11cac6(),this['author']=_0x50aabc['author'],this['type']=_0x50aabc['type'],this['data']=_0x50aabc['data']||{},this['rootName']=_0x50aabc['rootName'],this['set']('createdAt',_0x50aabc['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3292ec,_0x449549){this['newRevisionId']=_0x3292ec,this['oldRevisionId']=_0x449549,this['changes']=new _0x3c9798();}['_setChanges'](_0xbbdde7){for(const _0x5294b7 of _0xbbdde7)this['changes']['add'](_0x5294b7);}}const Y={'c':_0x30d263,'a':_0x544f6d,'e':_0x155563,'r':_0x226a61,'u':_0x14dc4c};class d extends _0x1947b9{['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[_0x3da1a3,_0x57e549,j];}constructor(_0x4d3625){super(_0x4d3625),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',(_0x5cbcac,_0x500aca,_0x2d4283)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4d219b=>{for(const _0x1e3ced of this['editor']['editing']['view']['document']['roots'])_0x2d4283?_0x4d219b['removeClass']('ck-editor__editable__overlay',_0x1e3ced):_0x4d219b['addClass']('ck-editor__editable__overlay',_0x1e3ced);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1a53ef=>null!==_0x1a53ef),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x1a1b83,_0x5ab5dc,_0x307aac)=>_0x1a1b83&&_0x307aac?_0x5ab5dc['changes']['getIndex'](_0x307aac):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf1dcb3,_0x506112)=>_0xf1dcb3?_0x506112['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x57e549);}['init'](){const _0x639ae6=this['editor'],_0x5939b6=new _t(_0x639ae6,{'direction':'backward'}),_0x35efd6=new _t(_0x639ae6,{'direction':'forward'});(_0x639ae6['commands']['add']('showPreviousChange',_0x5939b6),_0x639ae6['commands']['add']('showNextChange',_0x35efd6),_0x639ae6['commands']['add']('restoreRevision',new wt(_0x639ae6)),this['on']('change:numberOfChanges',()=>{_0x5939b6['refresh'](),_0x35efd6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x639ae6['enableReadOnlyMode']('revision-viewer'),_0x639ae6['plugins']['has']('WidgetToolbarRepository'))&&_0x639ae6['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x535403){await this['loadRevisionData'](_0x535403);const _0x5f57be={};for(const _0x28a8cc in _0x535403['diffData']){if(_0x535403['diffData'][_0x28a8cc]['attachChange']&&!_0x535403['diffData'][_0x28a8cc]['attachChange']['isAttached'])continue;const _0x2cca8a=this['_removeRevisionMarkers'](JSON['parse'](_0x535403['diffData'][_0x28a8cc]['insertions'])),_0x19e837=this['editor']['editing']['view']['document'],_0x441d4b=new _0x26a069(_0x19e837,_0x2cca8a['map'](_0x529b0b=>this['_getViewObj'](_0x529b0b)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5f57be[_0x28a8cc]=this['editor']['data']['processor']['toData'](_0x441d4b),this['editor']['data']['processor']['useFillerType']('default');}return _0x5f57be;}async['getRevisionRootsAttributes'](_0x1ab559){await this['loadRevisionData'](_0x1ab559);const _0x1c71c7={};for(const _0x5d739c in _0x1ab559['diffData'])_0x1ab559['diffData'][_0x5d739c]['attachChange']&&!_0x1ab559['diffData'][_0x5d739c]['attachChange']['isAttached']||(_0x1c71c7[_0x5d739c]=_0x1ab559['diffData'][_0x5d739c]['attributesAfter']||{});return _0x1c71c7;}['_removeRevisionMarkers'](_0x3787ac){return(_0x3787ac=_0x3787ac['filter'](_0x221be3=>!_0x221be3['name']||'revision-start'!==_0x221be3['name']&&'revision-end'!==_0x221be3['name']))['forEach'](_0x226277=>{'string'!=typeof _0x226277&&(_0x226277['children']=this['_removeRevisionMarkers'](_0x226277['children']),_0x226277['attributes']=_0x226277['attributes']['filter'](_0x583565=>!_0x583565[0x0]['startsWith']('data-revision-')));}),_0x3787ac;}async['compare'](_0x53785f,_0xcc9743,_0x6f7afc=!0x1){if(!this['isEnabled'])return;const _0x680503=this['diff'],_0x1107a4=this['repository'],_0x518ebd='string'==typeof _0x53785f?_0x1107a4['getRevision'](_0x53785f):_0x53785f,_0x581d33='string'==typeof _0xcc9743?_0x1107a4['getRevision'](_0xcc9743):_0xcc9743,_0x17c1a0=_0x518ebd['id'],_0x4bb949=_0x581d33?_0x581d33['id']:null;if(!_0x6f7afc&&this['diff']&&this['diff']['newRevisionId']===_0x17c1a0&&this['diff']['oldRevisionId']===_0x4bb949)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x17c1a0,_0x4bb949);const _0x5305b6=this['_getRevisionsRange'](_0x518ebd,_0x581d33,!0x0)['map'](_0x5933dc=>this['loadRevisionData'](_0x5933dc));return _0x5305b6['push'](new Promise(_0x345005=>{setTimeout(_0x345005,0x14);})),Promise['all'](_0x5305b6)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38f67f=this['_getDiff'](_0x17c1a0,_0x4bb949);for(const _0x1169b6 of _0x38f67f['changes'])this['_changeIdToChange']['set'](_0x1169b6['id'],_0x1169b6);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33788e=>{for(const _0x329e08 of this['editor']['model']['document']['getRootNames']())_0x33788e['detachRoot'](_0x329e08);for(const _0xf0afb of Object['keys'](_0x38f67f['model'])){const _0x55743f=_0x33788e['addRoot'](_0xf0afb);for(const _0x377eb2 of Object['keys'](_0x38f67f['attributes'][_0xf0afb]))_0x33788e['setAttribute'](_0x377eb2,_0x38f67f['attributes'][_0xf0afb][_0x377eb2],_0x55743f);_0x33788e['insert'](_0x38f67f['model'][_0xf0afb],_0x55743f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x38f67f['changes'])),this['isReady']=!0x0;})['catch'](_0x27a1dd=>{console['error'](_0x27a1dd),this['_cleanUp'](),_0x680503&&(this['diff']=_0x680503),this['isReady']=!0x0;});}['addRevisionData'](_0x432d83,_0x248f48){const _0x4f9bc8=this['repository']['createRevision'](_0x432d83);return _0x4f9bc8['on']('_update',(_0xa53ae3,_0x4ccc06,_0xf4feee)=>_0x248f48(_0x4ccc06,_0xf4feee,_0x4f9bc8)),this['repository']['addRevision'](_0x4f9bc8),_0x4f9bc8;}['loadRevisionData'](_0x16142e){if(!_0x16142e||_0x16142e['diffData'])return Promise['resolve']();{const _0x1ef334=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1ef334,'revisionId':_0x16142e['id']})['then'](_0x469f2e=>{_0x16142e['_update']({'diffData':_0x469f2e['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},_0xa50eab=>{for(const _0x4de404 of this['editor']['model']['document']['getRootNames']())_0xa50eab['detachRoot'](_0x4de404);});}['_sortAndFilterDiffChanges'](_0x18ae70){const _0xe5dea1=[],_0x474504=new Map();for(const _0x1b5273 of this['editor']['model']['document']['getRootNames']()){const _0x5a8ba8=this['editor']['editing']['view']['getDomRoot'](_0x1b5273);if(!_0x5a8ba8)continue;const _0x1b96e3=_0x5a8ba8['getClientRects']()['item'](0x0);_0x1b96e3&&(_0xe5dea1['push'](_0x1b5273),_0x474504['set'](_0x1b5273,_0x1b96e3));}return _0xe5dea1['sort']((_0x49512b,_0x3d4c89)=>{const _0x5ad726=_0x474504['get'](_0x49512b),_0x364ffc=_0x474504['get'](_0x3d4c89);return _0x5ad726['y']-_0x364ffc['y']||_0x5ad726['x']-_0x364ffc['x'];}),(_0x18ae70=_0x18ae70['filter'](_0x16b2fc=>_0xe5dea1['includes'](_0x16b2fc['rootName'])))['sort']((_0x4a66bf,_0xb43339)=>_0xe5dea1['indexOf'](_0x4a66bf['rootName'])-_0xe5dea1['indexOf'](_0xb43339['rootName'])),_0x18ae70;}['_makeTape'](_0x16329b){const _0x1fd3dc=Array['from'](_0x16329b['markers'])['filter'](([_0x119c09,_0x406f99])=>_0x119c09['startsWith']('revision:')&&!_0x406f99['isCollapsed']),_0x217f05=Array['from'](this['editor']['model']['createRangeIn'](_0x16329b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1fd3dc['length'])for(const _0x3483b5 of _0x217f05){const [_0x11d7ff,_0x5ebf77]=_0x1fd3dc[0x0],[,_0x2de26d,_0x48c547]=_0x11d7ff['split'](':');if(_0x5ebf77['end']['isEqual'](_0x3483b5['nextPosition'])&&_0x1fd3dc['shift'](),(_0x3483b5['previousPosition']['isEqual'](_0x5ebf77['start'])||_0x3483b5['previousPosition']['isAfter'](_0x5ebf77['start']))&&('insertion'==_0x2de26d?_0x3483b5['isAdded']={'userId':_0x48c547}:'deletion'==_0x2de26d&&(_0x3483b5['isRemoved']={'userId':_0x48c547})),0x0==_0x1fd3dc['length'])break;}return _0x217f05;}['_refreshStartEndIndex'](_0x48785a){const _0x5731a4=new Map();for(let _0x3374ce=0x0;_0x3374ce<_0x48785a['length'];_0x3374ce++)'text'===_0x48785a[_0x3374ce]['type']?(_0x48785a[_0x3374ce]['item']['startIndex']=_0x3374ce,_0x48785a[_0x3374ce]['item']['endIndex']=_0x3374ce):('elementStart'===_0x48785a[_0x3374ce]['type']?_0x48785a[_0x3374ce]['item']['startIndex']=_0x3374ce:'elementEnd'===_0x48785a[_0x3374ce]['type']&&(_0x48785a[_0x3374ce]['item']['endIndex']=_0x3374ce),_0x5731a4['set'](_0x48785a[_0x3374ce]['id'],_0x3374ce));for(const _0x403080 of _0x5731a4['values']())'elementStart'===_0x48785a[_0x403080]['type']?_0x48785a[_0x403080]['item']['endIndex']=_0x5731a4['get'](_0x48785a[_0x403080]['pairId']):'elementEnd'===_0x48785a[_0x403080]['type']&&(_0x48785a[_0x403080]['item']['startIndex']=_0x5731a4['get'](_0x48785a[_0x403080]['pairId']));}['_processTape'](_0x2f307f){for(let _0x254b6f=0x0;_0x254b6f<_0x2f307f['length'];_0x254b6f++){if('elementStart'===_0x2f307f[_0x254b6f]['type'])_0x2f307f[_0x254b6f]['item']['startIndex']=_0x254b6f;else{if('elementEnd'===_0x2f307f[_0x254b6f]['type']){_0x2f307f[_0x254b6f]['item']['endIndex']=_0x254b6f;const _0x4df430=_0x2f307f[_0x254b6f]['item']['startIndex'];_0x2f307f[_0x4df430]['pairId']=_0x2f307f[_0x254b6f]['id'],_0x2f307f[_0x254b6f]['pairId']=_0x2f307f[_0x4df430]['id'];}else _0x2f307f[_0x254b6f]['item']['startIndex']=_0x254b6f,_0x2f307f[_0x254b6f]['item']['endIndex']=_0x254b6f,_0x2f307f[_0x254b6f]['pairId']=null;}_0x2f307f[_0x254b6f]['markersStart']||(_0x2f307f[_0x254b6f]['markersStart']=[],_0x2f307f[_0x254b6f]['markersEnd']=[]);}}['_markInsertions'](_0x49800e,_0x1f4e34){const _0x104178=_0x49800e['filter'](_0x59892e=>!_0x59892e['isAdded']);for(let _0x4e486c=0x0;_0x4e486c<_0x1f4e34['length'];_0x4e486c++)_0x1f4e34[_0x4e486c]['isAdded']&&(_0x104178[_0x4e486c]['isAdded']=_0x1f4e34[_0x4e486c]['isAdded']);}['_makeModelFromViewString'](_0x49ae17){const _0x3731a2=JSON['parse'](_0x49ae17),_0x589315=this['editor']['editing']['view']['document'],_0x1ac469=new _0x26a069(_0x589315,_0x3731a2['map'](_0x36760e=>this['_getViewObj'](_0x36760e)));return this['editor']['data']['toModel'](_0x1ac469);}['_getViewObj'](_0x319fb7){const _0x48e48d=this['editor']['editing']['view']['document'];if('string'==typeof _0x319fb7)return new _0x29f1b1(_0x48e48d,_0x319fb7);{const _0x2cd808=_0x319fb7['children']['map'](_0x42e8b7=>this['_getViewObj'](_0x42e8b7));return new(Y[_0x319fb7['type']]||_0x59bd53)(_0x48e48d,_0x319fb7['name'],_0x319fb7['attributes'],_0x2cd808);}}['_getDiff'](_0x546b65,_0x16478e=null){const _0x3b5443=this['repository']['getRevision'](_0x546b65),_0x4c7184=_0x16478e?this['repository']['getRevision'](_0x16478e):null,_0x5ae167=this['_getRevisionsRange'](_0x3b5443,_0x4c7184),_0x3829ff=_0x5ae167[_0x5ae167['length']-0x1],_0x22d2bc=new Map(),_0x3cc564={'model':{},'attributes':{},'changes':[]},_0x6cdb2b=new Set(),_0x502073=new Map();for(let _0x239131=_0x5ae167['length']-0x1;_0x239131>=0x0;_0x239131--){const _0x5f1d60=_0x5ae167[_0x239131];for(const _0x4f844e of Object['keys'](_0x5f1d60['diffData']))if(_0x5f1d60['diffData'][_0x4f844e]['attachChange']){const _0x4bdc2d=_0x5f1d60['diffData'][_0x4f844e]['attachChange'];_0x4bdc2d['isAttached']?(_0x6cdb2b['add'](_0x4f844e),_0x502073['has'](_0x4f844e)&&_0x502073['get'](_0x4f844e)['userId']==_0x4bdc2d['userId']?_0x502073['delete'](_0x4f844e):_0x502073['set'](_0x4f844e,_0x4bdc2d)):_0x502073['has'](_0x4f844e)?(_0x6cdb2b['delete'](_0x4f844e),_0x502073['delete'](_0x4f844e)):(_0x6cdb2b['add'](_0x4f844e),_0x502073['set'](_0x4f844e,_0x4bdc2d));}else _0x6cdb2b['add'](_0x4f844e);}for(const _0x4f5edb of _0x6cdb2b){const _0x50c9fb=_0x502073['has'](_0x4f5edb)&&!_0x502073['get'](_0x4f5edb)['isAttached'];let _0x487f1f=_0x50c9fb?_0x5ae167['length']-0x1:0x0;const _0x2da110=_0x50c9fb?-0x1:0x1;for(;_0x5ae167[_0x487f1f];){const _0x3df42d=_0x5ae167[_0x487f1f];if(_0x3df42d['diffData'][_0x4f5edb]){const _0x55c2b6=_0x50c9fb?_0x3df42d['diffData'][_0x4f5edb]['attributesBefore']:_0x3df42d['diffData'][_0x4f5edb]['attributesAfter'];_0x3cc564['attributes'][_0x4f5edb]=_0x55c2b6?_0xd3d7c6(_0x55c2b6):{};break;}_0x487f1f+=_0x2da110;}}for(const _0x54e59e of _0x5ae167){_0x54e59e['model']={};for(const _0x2fa2f0 of _0x54e59e['authors'])_0x22d2bc['set'](_0x2fa2f0['id'],_0x2fa2f0);for(const _0xa3eb3f of _0x6cdb2b){const _0x2596e5=_0x54e59e['diffData'][_0xa3eb3f]?_0x54e59e['diffData'][_0xa3eb3f]['insertions']:'[]',_0x14eaeb=_0x54e59e['diffData'][_0xa3eb3f]?_0x54e59e['diffData'][_0xa3eb3f]['deletions']:'[]';_0x54e59e['model'][_0xa3eb3f]={'insertions':this['_makeModelFromViewString'](_0x2596e5),'deletions':this['_makeModelFromViewString'](_0x14eaeb)};}}for(const _0x8a9d9 of _0x6cdb2b){let _0x10217c=null,_0xd985ef=0x0;const _0x4020d2=new Map(Array['from'](_0x3b5443['model'][_0x8a9d9]['insertions']['markers'])['filter'](([_0x5cb1c8])=>!_0x5cb1c8['startsWith']('revision:')));let _0x220319=0x0;for(const _0x588070 of _0x5ae167){const _0x5dacc1=this['_makeTape'](_0x588070['model'][_0x8a9d9]['insertions']);_0x588070==_0x3b5443?(_0x10217c=_0x5dacc1,_0xd985ef=_0x10217c['length'],_0x10217c['forEach'](_0x4cb32b=>{_0x4cb32b['id']=_0x220319++;}),this['_processTape'](_0x10217c)):this['_markInsertions'](_0x10217c,_0x5dacc1);const _0xddf684=_0x10217c['filter'](_0x34fd60=>!_0x34fd60['isAdded'])['map'](_0xd244e8=>_0xd244e8['id']);let _0x589876=0x0;const _0x2972d1=this['_makeTape'](_0x588070['model'][_0x8a9d9]['deletions']);_0x2972d1['forEach'](_0x2e9df1=>{_0x2e9df1['isRemoved']?_0x2e9df1['id']=_0xd985ef++:_0x2e9df1['id']=_0xddf684[_0x589876++];}),this['_processTape'](_0x2972d1),this['_setDistance'](_0x10217c,'isAdded'),this['_setDistance'](_0x2972d1,'isRemoved'),_0x588070==_0x3b5443&&this['_markMarkers'](_0x10217c,_0x4020d2),_0x10217c=this['_joinTapes'](_0x10217c,_0x2972d1),this['_refreshStartEndIndex'](_0x10217c),this['_setDistance'](_0x10217c,'isRemoved');}_0x10217c=_0x10217c['filter'](_0xc84a0a=>!(_0xc84a0a['isAdded']&&_0xc84a0a['isRemoved']));const _0x50d32a=new Map(_0x3829ff['model'][_0x8a9d9]['deletions']['markers']),_0x5928e4=new Set(_0x4020d2['keys']());for(const _0x5aa767 of _0x50d32a['keys']())_0x5928e4['delete'](_0x5aa767);this['_markSuggestions'](_0x10217c,_0x5928e4),this['_fixObsoleteTags'](_0x10217c),_0x10217c=this['_removeMissingPairs'](_0x10217c),_0x10217c=this['_markMismatchedRemovedTags'](_0x10217c),_0x10217c=this['_removeUnsupportedChanges'](_0x10217c);const {root:_0x25a608,changes:_0x311131}=this['_makeModelFromTape'](_0x10217c,_0x22d2bc,_0x8a9d9);_0x3cc564['model'][_0x8a9d9]=_0x25a608;const _0x40e2c1=_0x502073['get'](_0x8a9d9);if(_0x40e2c1){const _0x59f482=_0x22d2bc['get'](_0x40e2c1['userId']),_0x5cf729=new r({'author':_0x59f482,'type':_0x40e2c1['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x8a9d9});_0x311131['unshift'](_0x5cf729),_0x3cc564['attributes'][_0x8a9d9]['revisionHistoryAttachChange']=_0x5cf729['id'];}_0x3cc564['changes']=_0x3cc564['changes']['concat'](_0x311131);}return _0x3cc564;}['_markMarkers'](_0x5c68b4,_0x431294){for(let _0x220d8f=0x0;_0x220d8f<_0x5c68b4['length'];_0x220d8f++)for(const [_0x20fc75,_0x3035a0]of _0x431294)_0x3035a0['start']['isEqual'](_0x5c68b4[_0x220d8f]['previousPosition'])&&_0x5c68b4[_0x220d8f]['markersStart']['push'](_0x20fc75),_0x3035a0['end']['isEqual'](_0x5c68b4[_0x220d8f]['nextPosition'])&&_0x5c68b4[_0x220d8f]['markersEnd']['push'](_0x20fc75);}['_joinTapes'](_0x30bfa1,_0x2983ce){let _0x4f3c14=[],_0x5e1ebd=0x0,_0x4219cc=0x0;for(;_0x5e1ebd<_0x30bfa1['length']||_0x4219cc<_0x2983ce['length'];){const _0x2d9aa0=_0x30bfa1[_0x5e1ebd]||{},_0x223068=_0x2983ce[_0x4219cc]||{};if(_0x2d9aa0['id']==_0x223068['id'])_0x5e1ebd++,_0x4219cc++,_0x4f3c14['push'](_0x2d9aa0);else{if(_0x223068['isRemoved']&&_0x2d9aa0['isAdded']){const {commonTape:_0x4e7472,iEnd:_0x5a0ac1,jEnd:_0x9e541f}=this['_threeWayMerge'](_0x30bfa1,_0x5e1ebd,_0x2983ce,_0x4219cc);_0x4f3c14=_0x4f3c14['concat'](_0x4e7472),_0x5e1ebd=_0x5a0ac1,_0x4219cc=_0x9e541f;}else _0x223068['isRemoved']?(_0x4219cc++,_0x4f3c14['push'](_0x223068)):(_0x5e1ebd++,_0x4f3c14['push'](_0x2d9aa0));}}return _0x4f3c14;}['_markSuggestions'](_0x3326ee,_0x2531b3){const _0x1f0706=[];for(let _0x19f19b=0x0;_0x19f19b<_0x3326ee['length'];_0x19f19b++){for(let _0x4f7b2b=0x0;_0x4f7b2b<_0x3326ee[_0x19f19b]['markersStart']['length'];_0x4f7b2b++){const _0x55a5c1=_0x3326ee[_0x19f19b]['markersStart'][_0x4f7b2b];if(!_0x2531b3['has'](_0x55a5c1))continue;const {group:_0x3ecf17,type:_0x47405d,authorId:_0x35856d}=_0x58c6a8(_0x55a5c1);'revision-suggestion'!=_0x3ecf17||'insertion'!=_0x47405d&&'deletion'!=_0x47405d||(_0x1f0706['unshift']({'type':_0x47405d,'name':_0x55a5c1,'userId':_0x35856d}),_0x3326ee[_0x19f19b]['markersStart']['splice'](_0x4f7b2b,0x1),_0x4f7b2b--);}_0x457d49(_0x3326ee[_0x19f19b]);for(let _0x17d951=0x0;_0x17d951<_0x3326ee[_0x19f19b]['markersEnd']['length'];_0x17d951++){const _0xd3bd66=_0x3326ee[_0x19f19b]['markersEnd'][_0x17d951];if(!_0x2531b3['has'](_0xd3bd66))continue;const {group:_0x5d7136,type:_0x4c794a}=_0x58c6a8(_0xd3bd66);if('revision-suggestion'!=_0x5d7136||'insertion'!=_0x4c794a&&'deletion'!=_0x4c794a)continue;_0x3326ee[_0x19f19b]['markersEnd']['splice'](_0x17d951,0x1),_0x17d951--;const _0x427017=_0x1f0706['findIndex'](_0x17d49e=>_0x17d49e['name']==_0xd3bd66);_0x427017>-0x1&&_0x1f0706['splice'](_0x427017,0x1);}}function _0x58c6a8(_0x3918a8){const _0x42093f=_0x3918a8['split'](':');return{'group':_0x42093f[0x0],'type':_0x42093f[0x1],'subType':_0x42093f['length']>=0x5?_0x42093f[0x2]:null,'id':_0x42093f['length']<0x5?_0x42093f[0x2]:_0x42093f[0x3],'authorId':_0x42093f['length']<0x5?_0x42093f[0x3]:_0x42093f[0x4],'markerCount':0x6==_0x42093f['length']?_0x42093f[0x5]:null};}function _0x457d49(_0x1f21fc){for(let _0x111de8=0x0;_0x111de8<_0x1f0706['length'];_0x111de8++){if(_0x1f21fc['isAdded']&&'insertion'==_0x1f0706[_0x111de8]['type'])return _0x1f21fc['isAddSuggestion']=_0x1f0706[_0x111de8],void delete _0x1f21fc['isAdded'];if(!_0x1f21fc['isAdded']&&!_0x1f21fc['isRemoved']&&'deletion'==_0x1f0706[_0x111de8]['type'])return void(_0x1f21fc['isRemoveSuggestion']=_0x1f0706[_0x111de8]);}}}['_setDistance'](_0x576159,_0x4cc2ed){let _0x4caba6=0x0,_0x5243b6=!0x1;const _0x2c0dbe=new Map();for(const _0x34da24 of _0x576159)_0x34da24[_0x4cc2ed]?_0x5243b6&&(_0x4caba6++,_0x5243b6=!0x1):(_0x4caba6++,_0x5243b6=!0x0),_0x2c0dbe['set'](_0x34da24['id'],_0x4caba6);for(let _0x48174c=0x0;_0x48174c<_0x576159['length'];_0x48174c++){if('isRemoved'==_0x4cc2ed&&_0x576159[_0x48174c]['isAdded']||'isAdded'==_0x4cc2ed&&_0x576159[_0x48174c]['isRemoved'])continue;if('text'==_0x576159[_0x48174c]['type']){_0x576159[_0x48174c]['distance']=0x0;continue;}const _0x4ad56a=_0x2c0dbe['get'](_0x576159[_0x48174c]['pairId']),_0x42f8ca=_0x2c0dbe['get'](_0x576159[_0x48174c]['id']);_0x576159[_0x48174c]['distance']=_0x4ad56a-_0x42f8ca;}}['_getRevisionsRange'](_0x4fd1ab,_0x8d2ba3,_0x5b5fca=!0x1){const _0x5b23fc=[];let _0x33ade2=this['repository']['getIndex'](_0x4fd1ab),_0x2c14f1=this['repository']['getIndex'](_0x8d2ba3);for(-0x1==_0x2c14f1&&(_0x2c14f1=this['repository']['_revisions']['length'],_0x5b5fca=!0x1);_0x33ade2<_0x2c14f1;)_0x5b23fc['push'](this['repository']['getRevision'](_0x33ade2)),_0x33ade2++;return _0x5b5fca&&_0x5b23fc['push'](this['repository']['getRevision'](_0x33ade2)),_0x5b23fc;}['_threeWayMerge'](_0x4b9b83,_0x13216a,_0x1a33f5,_0x3b9294){const _0x53888c=this['editor']['model']['schema'];let _0x65b0c0=_0x13216a;for(;_0x4b9b83[_0x65b0c0]&&_0x4b9b83[_0x65b0c0]['isAdded'];)_0x65b0c0++;let _0x72c37=_0x3b9294;for(;_0x1a33f5[_0x72c37]&&_0x1a33f5[_0x72c37]['isRemoved'];)_0x72c37++;_0x75a21f(_0x4b9b83,_0x13216a,_0x65b0c0),_0x75a21f(_0x1a33f5,_0x3b9294,_0x72c37);const _0x29f406=_0x1a33f5['slice'](_0x3b9294,_0x72c37)['concat'](_0x4b9b83['slice'](_0x13216a,_0x65b0c0));return _0x29f406['sort']((_0x43af65,_0x2cec31)=>_0x43af65['side']!=_0x2cec31['side']?_0x43af65['side']-_0x2cec31['side']:_0x43af65['level']!=_0x2cec31['level']?_0x43af65['level']-_0x2cec31['level']:_0x43af65['distance']!=_0x2cec31['distance']?_0x2cec31['distance']-_0x43af65['distance']:!!_0x43af65['isAdded']!=!!_0x2cec31['isAdded']?-0x1==_0x43af65['side']||0x0==_0x43af65['side']?_0x43af65['isAdded']?-0x1:0x1:_0x43af65['isAdded']?0x1:-0x1:_0x43af65['index']-_0x2cec31['index']),{'commonTape':_0x29f406,'iEnd':_0x65b0c0,'jEnd':_0x72c37};function _0x75a21f(_0x3d66c7,_0x20dfa0,_0x58f844){let _0x465a6a=-0x1,_0x2514a8=Number['POSITIVE_INFINITY'],_0x7863bc=!0x0;for(let _0x16306b=_0x20dfa0;_0x16306b<_0x58f844;_0x16306b++)if(_0x53888c['isInline'](_0x3d66c7[_0x16306b]['item'])||(_0x7863bc=!0x1),_0x3d66c7[_0x16306b]['item']['startIndex']<_0x20dfa0&&(_0x465a6a=_0x16306b),_0x3d66c7[_0x16306b]['item']['endIndex']>=_0x58f844){_0x2514a8=_0x16306b;break;}_0x7863bc&&(_0x465a6a=_0x58f844-0x1);for(let _0x57158f=_0x20dfa0;_0x57158f<_0x58f844;_0x57158f++)_0x3d66c7[_0x57158f]['side']=_0x57158f<=_0x465a6a?-0x1:_0x57158f<_0x2514a8?0x0:0x1,_0x3d66c7[_0x57158f]['index']=_0x57158f;let _0x4ad6fb=0x0;for(let _0x20e2ae=_0x20dfa0;_0x20e2ae<=_0x465a6a;_0x20e2ae++)0x0==_0x3d66c7[_0x20e2ae]['distance']?_0x3d66c7[_0x20e2ae]['level']=_0x4ad6fb:(_0x4ad6fb++,_0x3d66c7[_0x20e2ae]['level']=_0x4ad6fb,_0x4ad6fb++);for(let _0x31f0df=_0x20dfa0;_0x31f0df<_0x58f844;_0x31f0df++)0x0==_0x3d66c7[_0x31f0df]['side']&&(_0x3d66c7[_0x31f0df]['level']=_0x4ad6fb);_0x4ad6fb=0x0;for(let _0x545d95=_0x58f844-0x1;_0x545d95>=_0x2514a8;_0x545d95--)0x0==_0x3d66c7[_0x545d95]['distance']?_0x3d66c7[_0x545d95]['level']=_0x4ad6fb:(_0x4ad6fb--,_0x3d66c7[_0x545d95]['level']=_0x4ad6fb,_0x4ad6fb--);}}['_fixObsoleteTags'](_0x32b0a2){const _0x2aeee9=new Map(),_0x2bcd77=this['editor']['model']['schema'];for(let _0x17c604=0x1;_0x17c604<_0x32b0a2['length'];_0x17c604++){let _0x5e511e,_0x11aa8d,_0x410960;const _0x460ddc=_0x32b0a2[_0x17c604],_0x113be4=_0x32b0a2[_0x17c604-0x1];if('text'==_0x460ddc['type'])continue;if(_0x460ddc['type']!=_0x113be4['type'])continue;if(!_0x2bcd77['isBlock'](_0x113be4['item'])||_0x2bcd77['isLimit'](_0x113be4['item']))continue;if(!_0x2bcd77['isBlock'](_0x460ddc['item'])||_0x2bcd77['isLimit'](_0x460ddc['item']))continue;if((_0x32b0a2[_0x17c604]['isAdded']||_0x32b0a2[_0x17c604]['isAddSuggestion'])&&_0x32b0a2[_0x17c604-0x1]['isRemoved'])_0x5e511e=_0x32b0a2[_0x17c604],_0x11aa8d=_0x32b0a2[_0x17c604-0x1],_0x410960=_0x17c604-0x1;else{if(!_0x32b0a2[_0x17c604]['isRemoved']||!_0x32b0a2[_0x17c604-0x1]['isAdded']&&!_0x32b0a2[_0x17c604-0x1]['isAddSuggestion'])continue;_0x5e511e=_0x32b0a2[_0x17c604-0x1],_0x11aa8d=_0x32b0a2[_0x17c604],_0x410960=_0x17c604;}const _0x5a422c=_0x5e511e['level']==_0x11aa8d['level'],_0x20e586=Math['abs'](_0x5e511e['level'])<Math['abs'](_0x11aa8d['level'])&&0x0==_0x11aa8d['distance'];(_0x5a422c||_0x20e586)&&(_0x2aeee9['set'](_0x11aa8d['id'],_0x5e511e['id']),_0x32b0a2['splice'](_0x410960,0x1),_0x17c604--,_0x5e511e['isAdded']=!0x1);}for(let _0x1c9e48=0x0;_0x1c9e48<_0x32b0a2['length'];_0x1c9e48++)_0x2aeee9['has'](_0x32b0a2[_0x1c9e48]['pairId'])&&(_0x32b0a2[_0x1c9e48]['pairId']=_0x2aeee9['get'](_0x32b0a2[_0x1c9e48]['pairId']));}['_removeMissingPairs'](_0x502481){const _0x133657=new Set(_0x502481['map'](_0x4819ea=>_0x4819ea['id']));for(let _0x2d1e8e=0x0;_0x2d1e8e<_0x502481['length'];_0x2d1e8e++)_0x133657['has'](_0x502481[_0x2d1e8e]['pairId'])||0x0==_0x502481[_0x2d1e8e]['distance']||(_0x502481[_0x2d1e8e]['isIncorrect']=!0x0);return _0x502481['filter'](_0x323ad8=>!_0x323ad8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2a440d){const _0x131821=new Set();for(let _0x44fe19=0x0;_0x44fe19<_0x2a440d['length'];_0x44fe19++){if(_0x131821['has'](_0x2a440d[_0x44fe19]['id'])&&_0x2a440d[_0x44fe19]['isRemoved']&&(_0x2a440d[_0x44fe19]['isIncorrect']=!0x0),_0x2a440d[_0x44fe19]['isIncorrect'])continue;if(0x0==_0x2a440d[_0x44fe19]['distance'])continue;if('elementStart'!=_0x2a440d[_0x44fe19]['type'])continue;if(null==_0x2a440d[_0x44fe19]['pairId'])continue;let _0x4ced61=_0x44fe19+0x1,_0x2ab9b0=0x0;for(;_0x2a440d[_0x4ced61]['id']!=_0x2a440d[_0x44fe19]['pairId'];)'elementStart'==_0x2a440d[_0x4ced61]['type']?_0x2ab9b0++:'elementEnd'==_0x2a440d[_0x4ced61]['type']&&_0x2ab9b0--,_0x4ced61++;if(0x0!=_0x2ab9b0){if(_0x2a440d[_0x44fe19]['isRemoved'])_0x2a440d[_0x44fe19]['isIncorrect']=!0x0;else{for(;_0x4ced61!=_0x44fe19;)_0x2a440d[_0x4ced61]['isRemoved']&&0x0!=_0x2a440d[_0x4ced61]['distance']&&(_0x2a440d[_0x4ced61]['isIncorrect']=!0x0,_0x131821['add'](_0x2a440d[_0x4ced61]['pairId'])),_0x4ced61--;}}}return _0x2a440d['filter'](_0x459a16=>!_0x459a16['isIncorrect']);}['_removeUnsupportedChanges'](_0x498fa5){const _0x4f53f1=this['editor']['model']['schema'];for(let _0xc8e4a2=0x0;_0xc8e4a2<_0x498fa5['length'];_0xc8e4a2++){if(!(_0x498fa5[_0xc8e4a2]['isAdded']||_0x498fa5[_0xc8e4a2]['isAddSuggestion']||_0x498fa5[_0xc8e4a2]['isRemoved']||_0x498fa5[_0xc8e4a2]['isRemoveSuggestion']))continue;if(0x0==_0x498fa5[_0xc8e4a2]['distance'])continue;const _0x41bf79=_0x498fa5[_0xc8e4a2]['item'];_0x4f53f1['isBlock'](_0x41bf79)||_0x4f53f1['isLimit'](_0x41bf79)||(_0x498fa5[_0xc8e4a2]['isAdded']&&delete _0x498fa5[_0xc8e4a2]['isAdded'],_0x498fa5[_0xc8e4a2]['isAddSuggestion']&&delete _0x498fa5[_0xc8e4a2]['isAddSuggestion'],_0x498fa5[_0xc8e4a2]['isRemoveSuggestion']&&delete _0x498fa5[_0xc8e4a2]['isRemoveSuggestion'],_0x498fa5[_0xc8e4a2]['isRemoved']&&(_0x498fa5[_0xc8e4a2]['isIncorrect']=!0x0));}return _0x498fa5['filter'](_0x1a24fc=>!_0x1a24fc['isIncorrect']);}['_makeModelFromTape'](_0x537955,_0x36f885,_0x108bec){const _0xa2d451=new gt(),_0x199653=[],_0x2c7579=new Map(),_0x135d01=this['editor']['model'],_0x11c630=_0x135d01['schema'],_0x1960d4=[_0xa2d451],_0x700481={},_0x3a974d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x92ebf5=null;const _0xf281cf=[0x0];for(let _0x3c9ceb=0x0;_0x3c9ceb<_0x537955['length'];_0x3c9ceb++)if('elementStart'===_0x537955[_0x3c9ceb]['type']){_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf);const _0x200e4d=new ut(_0x537955[_0x3c9ceb]['item']['name'],_0x537955[_0x3c9ceb]['item']['getAttributes']());_0x1960d4[0x0]['_appendChild'](_0x200e4d),_0xf281cf['push'](0x0),_0x1960d4['unshift'](_0x200e4d),_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf);}else'elementEnd'===_0x537955[_0x3c9ceb]['type']?(_0x1960d4['shift'](),_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf),_0xf281cf['pop'](),_0xf281cf[_0xf281cf['length']-0x1]++,_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf)):(_0x537955[_0x3c9ceb]['previousPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf),_0x92ebf5?_0x92ebf5['_data']+=_0x537955[_0x3c9ceb]['item']['data']:_0x92ebf5=new mt(_0x537955[_0x3c9ceb]['item']['data'],_0x537955[_0x3c9ceb]['item']['getAttributes']()),_0x537955[_0x3c9ceb+0x1]&&'text'===_0x537955[_0x3c9ceb+0x1]['type']&&_0x472f87(_0x92ebf5,_0x537955[_0x3c9ceb+0x1]['item'])||(_0x1960d4[0x0]['_appendChild'](_0x92ebf5),_0x92ebf5=null),_0xf281cf[_0xf281cf['length']-0x1]+=_0x537955[_0x3c9ceb]['item']['offsetSize'],_0x537955[_0x3c9ceb]['nextPosition']=_0x135d01['createPositionFromPath'](_0xa2d451,_0xf281cf));for(let _0x51aad8=0x0;_0x51aad8<_0x537955['length'];_0x51aad8++){const _0x41ab21=_0x537955[_0x51aad8]['previousPosition'],_0x40483e=_0x537955[_0x51aad8]['nextPosition'];for(const _0x13394b of _0x537955[_0x51aad8]['markersStart'])_0x2c7579['set'](_0x13394b,{'start':_0x41ab21,'end':null});_0x13fa88('isRemoveSuggestion',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isAddSuggestion',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isRemoved',_0x51aad8,_0x41ab21,_0x40483e),_0x13fa88('isAdded',_0x51aad8,_0x41ab21,_0x40483e);for(const _0xab7ae4 of _0x537955[_0x51aad8]['markersEnd']){_0x2c7579['get'](_0xab7ae4)['end']=_0x40483e;}}for(const [_0x4bd553,_0x482fe2]of _0x2c7579){const _0x11dfd1=this['editor']['model']['createRange'](_0x482fe2['start'],_0x482fe2['end']);_0xa2d451['markers']['set'](_0x4bd553,_0x11dfd1);}return _0x199653['sort']((_0x5444a9,_0x348bed)=>{const _0x1a1d35=_0xa2d451['markers']['get']('revision:'+_0x5444a9['id']),_0x22f054=_0xa2d451['markers']['get']('revision:'+_0x348bed['id']);return _0x1a1d35['start']['isBefore'](_0x22f054['start'])?-0x1:_0x1a1d35['start']['isAfter'](_0x22f054['start'])?0x1:_0x1a1d35['end']['isBefore'](_0x22f054['end'])?-0x1:_0x1a1d35['end']['isAfter'](_0x22f054['end'])?0x1:'add'===_0x5444a9['type']?-0x1:0x1;}),{'root':_0xa2d451,'changes':_0x199653};function _0x13fa88(_0x2058a4,_0x5364ea,_0x30cc06,_0xc67e8d){const _0x485638=!!_0x537955[_0x5364ea][_0x2058a4],_0x7bd1ed=_0x485638?_0x537955[_0x5364ea][_0x2058a4]['userId']:null,_0x3ec2da=_0x5364ea===_0x537955['length']-0x1,_0x169810=_0x3a974d[_0x2058a4][0x0],_0x321f12=_0x11c630['isObject'](_0x537955[_0x5364ea]['item']);!_0x700481[_0x2058a4]&&_0x485638?_0x700481[_0x2058a4]={'start':_0x30cc06,'tapeItem':_0x537955[_0x5364ea],'userId':_0x7bd1ed,'type':_0x2058a4}:_0x700481[_0x2058a4]&&!_0x485638?(_0x700481[_0x2058a4]['end']=_0x30cc06,_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]=null):_0x700481[_0x2058a4]&&_0x485638&&_0x700481[_0x2058a4]['userId']!==_0x7bd1ed&&(_0x700481[_0x2058a4]['end']=_0x30cc06,_0x169810&&_0x169810['userId']===_0x700481[_0x2058a4]['userId']||_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]={'start':_0x30cc06,'tapeItem':_0x537955[_0x5364ea],'userId':_0x7bd1ed,'type':_0x2058a4}),_0x700481[_0x2058a4]&&_0x321f12&&('elementStart'!==_0x537955[_0x5364ea]['type']||_0x169810&&_0x169810['userId']===_0x7bd1ed||_0x3a974d[_0x2058a4]['unshift']({'userId':_0x7bd1ed,'object':_0x537955[_0x5364ea]['item'],'change':_0x700481[_0x2058a4]}),'elementEnd'===_0x537955[_0x5364ea]['type']&&_0x169810&&_0x169810['object']===_0x537955[_0x5364ea]['item']&&(_0x3a974d[_0x2058a4]['shift'](),_0x700481[_0x2058a4]=_0x169810['change'])),_0x700481[_0x2058a4]&&_0x3ec2da&&(_0x700481[_0x2058a4]['end']=_0xc67e8d,_0x33543d(_0x700481[_0x2058a4]),_0x700481[_0x2058a4]=null);}function _0x33543d({start:_0x1138e8,end:_0x156be5,tapeItem:_0x1b7cf8,userId:_0x1be429,type:_0x33711e}){const _0x5dd079=_0x1b7cf8['item'],_0x796fd2=_0x135d01['schema']['isBlock'](_0x5dd079)&&!_0x135d01['schema']['isLimit'](_0x5dd079),_0x1d5c9f=_0x1138e8['nodeAfter']==_0x156be5['parent']&&_0x156be5['isAtStart'];if(_0x796fd2&&_0x1d5c9f)return;const _0x2a03b3=_0x135d01['createRange'](_0x1138e8,_0x156be5),_0x3124d3=_0x36f885['get'](_0x1be429),_0x524752=new r({'author':_0x3124d3,'type':'isAdded'==_0x33711e||'isAddSuggestion'==_0x33711e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x33711e||'isRemoveSuggestion'==_0x33711e},'createdAt':new Date(),'rootName':_0x108bec});_0x199653['push'](_0x524752),_0xa2d451['markers']['set']('revision:'+_0x524752['id'],_0x2a03b3);}function _0x472f87(_0x13ee24,_0x1d846c){const _0x246c16=_0x13ee24['getAttributes'](),_0x13915e=_0x1d846c['getAttributes']();for(const _0x4d639e of _0x246c16){if(_0x4d639e[0x1]!==_0x1d846c['getAttribute'](_0x4d639e[0x0]))return!0x1;_0x13915e['next']();}return _0x13915e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x59c9e4=>{const _0x1ad07c=_0x59c9e4['markerName']['split'](':')[0x1],_0x4c8204=this['_getChangeFromId'](_0x1ad07c);if(!_0x4c8204)return null;const _0x1ff159='add'==_0x4c8204['type']?'insertion':'deletion',_0x3acd5c=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ff159];return _0x4c8204['data']['isSuggestion']&&_0x3acd5c['push']('ck-suggestion-marker-'+_0x1ff159+'-new'),this['activeChange']==_0x4c8204&&_0x3acd5c['push']('ck-suggestion-marker--active'),{'classes':_0x3acd5c,'attributes':{'data-change-id':_0x1ad07c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x24eeb0=>{_0x24eeb0['on']('element:pre',(_0x46118f,_0xbc6084,_0x1ac4ac)=>{const _0x3b4356=_0xbc6084['viewItem']['getChild'](0x0);if(!_0x3b4356||!_0x3b4356['is']('element','code'))return;if(!_0x1ac4ac['consumable']['consume'](_0x3b4356,{'attributes':['vid_start','vid_end']}))return;const _0x1fbef8=_0xbc6084['modelRange']['start']['nodeAfter'];_0x1ac4ac['writer']['setAttribute']('vid_start',_0x3b4356['getAttribute']('vid_start'),_0x1fbef8),_0x1ac4ac['writer']['setAttribute']('vid_end',_0x3b4356['getAttribute']('vid_end'),_0x1fbef8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1d665d=>{_0x1d665d['on']('element',(_0x125cc0,_0x44958c,_0x1b31ad)=>{if(!_0x1b31ad['consumable']['consume'](_0x44958c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x44958c['modelRange']['isCollapsed'])return;const _0x1adbd1=_0x44958c['modelRange']['start']['nodeAfter'];_0x1adbd1['hasAttribute']('vid_start')||_0x1adbd1['hasAttribute']('vid')||(_0x1b31ad['writer']['setAttribute']('vid_start',_0x44958c['viewItem']['getAttribute']('vid_start'),_0x1adbd1),_0x1b31ad['writer']['setAttribute']('vid_end',_0x44958c['viewItem']['getAttribute']('vid_end'),_0x1adbd1));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43ff80=>_0x43ff80['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3e7cc8,[,_0x1d398a])=>{['vid_start','vid_end','vid']['includes'](_0x1d398a)&&(_0x3e7cc8['return']=!0x0,_0x3e7cc8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4f187f=>{_0x4f187f['on']('attribute:vid',(_0x55ebcb,_0xa27156,_0x39cca8)=>{if('\x20'!=_0xa27156['item']['data']||_0xa27156['item']['parent']['maxOffset']>0x1)return;if(!_0x39cca8['consumable']['consume'](_0xa27156['item'],_0x55ebcb['name']))return;const _0x56e617=_0x39cca8['writer'],_0x302438=_0x39cca8['mapper']['toViewRange'](_0xa27156['range']);_0x56e617['wrap'](_0x302438,_0x56e617['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x2ee7dc){const _0x3d815d=_0x2ee7dc['plugins']['get']('RevisionViewer');return(_0x73edc2,_0x5017b2,_0x3c6a99)=>{const _0x125b91=_0x5017b2['markerName']['split'](':')[0x1],_0x390b20=_0x3d815d['_getChangeFromId'](_0x125b91);if(!_0x390b20)return null;const _0x5880eb='add'==_0x390b20['type']?'split':'merge';if(!_0x3c6a99['consumable']['test'](_0x5017b2['markerRange'],_0x73edc2['name']))return;const _0xdc1fa7=_0x5017b2['markerRange']['getWalker'](),_0x55b342=_0x5017b2['markerRange']['start'],_0x3c9cd2=_0x2ee7dc['model']['schema'];let _0x3ca213=null,_0x5e7973=null,_0x2ab943=!0x1,_0x364e94=!0x1;for(const _0x2bd958 of _0xdc1fa7){const _0x4a30a6=_0x2bd958['item'];_0x2ab943=_0x2ab943||_0x3c9cd2['isContent'](_0x4a30a6);const _0x5cc97c=_0x3c6a99['mapper']['toViewElement'](_0x4a30a6);if(_0x5cc97c&&_0x5cc97c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2bd958['type']&&(_0x3c9cd2['isBlock'](_0x4a30a6)&&!_0x3c9cd2['isLimit'](_0x4a30a6)&&(_0x4a30a6['nextSibling']||_0x55b342['isAtEnd']?_0x3ca213&&_0x3ca213['parent']==_0x4a30a6||(_0x3ca213=_0x4a30a6,_0x5028e8(_0x2bd958['previousPosition']),_0x364e94=!0x0):_0x5e7973=_0x5e7973||_0x2bd958['previousPosition']));}function _0x5028e8(_0x2628a0){const _0x4ebf1b=_0x3c6a99['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5880eb}),_0x44b9d7=_0x3c6a99['mapper']['toViewPosition'](_0x2628a0);_0x390b20['data']['isSuggestion']&&_0x3c6a99['writer']['addClass']('ck-suggestion-marker-'+_0x5880eb+'-new',_0x4ebf1b),_0x3d815d['activeChange']==_0x390b20&&_0x3c6a99['writer']['addClass']('ck-suggestion-marker--active',_0x4ebf1b),_0x3c6a99['writer']['insert'](_0x44b9d7,_0x4ebf1b),_0x3c6a99['mapper']['bindElementToMarker'](_0x4ebf1b,_0x5017b2['markerName']);}_0x2ab943||_0x364e94||!_0x5e7973||_0x5028e8(_0x5e7973);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a7136,_0x2bf7bc,_0x37a526)=>{const _0x37dfe0=_0x37a526['mapper']['markerNameToElements'](_0x2bf7bc['markerName']);if(_0x37dfe0){for(const _0x145c34 of _0x37dfe0)(_0x145c34['hasClass']('ck-suggestion-marker-split')||_0x145c34['hasClass']('ck-suggestion-marker-merge'))&&(_0x37a526['mapper']['unbindElementFromMarkerName'](_0x145c34,_0x2bf7bc['markerName']),_0x37a526['writer']['remove'](_0x145c34));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4334d8,_0x3cd2e4,_0x130bf5)=>{const _0x98d2b9=_0x3cd2e4['markerName']['split'](':')[0x1],_0x133094=this['_getChangeFromId'](_0x98d2b9);if(!_0x133094)return null;const _0x4c71a9='add'==_0x133094['type']?'split':'merge';if(_0x130bf5['consumable']['test'](_0x3cd2e4['markerRange'],_0x4334d8['name']))for(const _0x169cb9 of _0x3cd2e4['markerRange']['getItems']()){if(!_0x169cb9['is']('element','softBreak'))continue;const _0x5407e9=_0x130bf5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4c71a9}),_0x293871=_0x130bf5['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x169cb9));_0x133094['data']['isSuggestion']&&_0x130bf5['writer']['addClass']('ck-suggestion-marker-'+_0x4c71a9+'-new',_0x5407e9),this['activeChange']==_0x133094&&_0x130bf5['writer']['addClass']('ck-suggestion-marker--active',_0x5407e9),_0x130bf5['writer']['insert'](_0x293871,_0x5407e9),_0x130bf5['mapper']['bindElementToMarker'](_0x5407e9,_0x3cd2e4['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4173c7=>{for(const _0x30bd9d of this['editor']['model']['document']['getRootNames']()){const _0x20472a=this['editor']['model']['document']['getRoot'](_0x30bd9d),_0x289045=this['editor']['editing']['view']['document']['getRoot'](_0x30bd9d);if(_0x289045){const _0x209c82=_0x20472a['getAttribute']('revisionHistoryAttachChange');if(_0x4173c7['removeAttribute']('data-change-id',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root-add',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root-remove',_0x289045),_0x4173c7['removeClass']('ck-revision-history-root--active',_0x289045),_0x209c82){const _0x217a85=this['_getChangeFromId'](_0x209c82);if(!_0x217a85)return null;_0x4173c7['setAttribute']('data-change-id',_0x209c82,_0x289045),_0x4173c7['addClass']('ck-revision-history-root-'+_0x217a85['type'],_0x289045),this['activeChange']==_0x217a85&&_0x4173c7['addClass']('ck-revision-history-root--active',_0x289045);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x47f700=>'revision-comment:'+_0x47f700,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x4259d2=>'revision-suggestion:'+_0x4259d2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x158b46=>({'name':'suggestion:'+_0x158b46,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x2b5347=>{const _0x4efa79=_0x2b5347['markerName']['split'](':')[0x1];return'insertion'!=_0x4efa79&&'deletion'!=_0x4efa79?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4efa79]};}}),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',(_0x4446ba,_0x9f039e,_0x30aea3)=>{const _0x5232f8=_0x30aea3['mapper']['markerNameToElements'](_0x9f039e['markerName']);if(_0x5232f8){for(const _0x3ffa9a of _0x5232f8)_0x3ffa9a['is']('uiElement')&&(_0x30aea3['mapper']['unbindElementFromMarkerName'](_0x3ffa9a,_0x9f039e['markerName']),_0x30aea3['writer']['remove'](_0x3ffa9a));}},{'priority':'high'});}['_getChangeFromId'](_0x45534d){return this['_changeIdToChange']['get'](_0x45534d);}['_getViewForChange'](_0x503475){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x503475),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1c49f5,_0x3f987a,_0x5c06e2,_0x2ac6dc)=>{_0x2ac6dc&&this['_balloon']['remove'](_0x2ac6dc),_0x5c06e2&&(this['_balloon']['add']({'view':_0x5c06e2,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2cf06d=this['editor']['editing'],_0x5a84e8=this['_getChangeFromId'](_0x5c06e2['changeId']);let _0x3da5ed;if(_0x5a84e8['data']['isOnRoot']){const _0x2fdc94=_0x2cf06d['view']['getDomRoot'](_0x5a84e8['rootName']);_0x3da5ed=Array['from'](_0x2fdc94['getClientRects']());}else{const _0xba9fa4=this['editor']['model']['markers']['get']('revision:'+_0x5c06e2['changeId']);_0x3da5ed=Array['from'](_0x2cf06d['mapper']['markerNameToElements'](_0xba9fa4['name']))['map'](_0x208ce1=>_0x2cf06d['view']['domConverter']['mapViewToDom'](_0x208ce1))['map'](_0x13e118=>Array['from'](_0x13e118['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3da5ed[0x0];return _0x3da5ed['find'](_0x56da1d=>_0x56da1d['top']-0x3<=this['_activeViewTarget']['y']&&_0x56da1d['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x56da1d['left']-0x3<=this['_activeViewTarget']['x']&&_0x56da1d['right']+0x3>=this['_activeViewTarget']['x'])||_0x3da5ed[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x52fa9b,_0x2035a4,_0x33a974,_0x4795f3)=>{this['activeView']=_0x33a974?this['_getViewForChange'](_0x33a974):null,this['editor']['model']['change'](()=>{const _0x5410e5=this['editor']['editing'];_0x4795f3&&(_0x4795f3['data']['isOnRoot']?_0x5410e5['view']['change'](_0x5089c1=>{_0x5089c1['removeClass']('ck-revision-history-root--active',_0x5410e5['view']['document']['getRoot'](_0x4795f3['rootName']));}):_0x5410e5['reconvertMarker']('revision:'+_0x4795f3['id'])),_0x33a974&&(_0x33a974['data']['isOnRoot']?_0x5410e5['view']['change'](_0x202667=>{_0x202667['addClass']('ck-revision-history-root--active',_0x5410e5['view']['document']['getRoot'](_0x33a974['rootName']));}):_0x5410e5['reconvertMarker']('revision:'+_0x33a974['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4725f6,_0x4d89f0)=>{if(this['activeChange'])return;const _0x11f49f=this['_findChangeIdFromDomTarget'](_0x4d89f0['target']),_0x2171bc=this['_changeIdToChange']['get'](_0x11f49f);_0x2171bc?(this['_activeViewTarget']={'x':_0x4d89f0['domEvent']['x'],'y':_0x4d89f0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2171bc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x16634e,_0x272932)=>{const _0x2a37e1=this['_findChangeIdFromDomTarget'](_0x272932['target']),_0x470cae=this['_changeIdToChange']['get'](_0x2a37e1);_0x470cae?(this['_activeViewTarget']={'x':_0x272932['domEvent']['x'],'y':_0x272932['domEvent']['y']},_0x470cae===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x470cae):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x52afad){do{const _0x258af0=_0x52afad['getAttribute']('data-change-id');if(_0x258af0)return _0x258af0;_0x52afad=_0x52afad['parent'];}while(_0x52afad);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x576321=>{for(const _0x13a697 of this['editor']['model']['markers'])_0x576321['removeMarker'](_0x13a697);});}}function Z(_0x1b4c6d,_0x7637e8){return(_0xfb002d,_0x3418d3,_0x33d39f)=>{if(!_0x33d39f['consumable']['test'](_0x3418d3['markerRange'],_0xfb002d['name']))return;const _0x573047=_0x3418d3['markerRange']['getWalker'](),_0x2185f4=_0x3418d3['markerRange']['start'],_0x561062=_0x1b4c6d['model']['schema'];let _0x1cf9da=null,_0x3937f0=null,_0x2f0102=!0x1,_0x52f47b=!0x1;for(const _0x591aae of _0x573047){const _0x34a2f7=_0x591aae['item'];_0x2f0102=_0x2f0102||_0x561062['isContent'](_0x34a2f7);const _0x5aed5d=_0x33d39f['mapper']['toViewElement'](_0x34a2f7);if(_0x5aed5d&&_0x5aed5d['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x591aae['type']&&(_0x561062['isBlock'](_0x34a2f7)&&!_0x561062['isLimit'](_0x34a2f7)&&(_0x34a2f7['nextSibling']||_0x2185f4['isAtEnd']?_0x1cf9da&&_0x1cf9da['parent']==_0x34a2f7||(_0x1cf9da=_0x34a2f7,_0x1c7c7c(_0x591aae['previousPosition']),_0x52f47b=!0x0):_0x3937f0=_0x3937f0||_0x591aae['previousPosition']));}function _0x1c7c7c(_0x297597){const _0x4b7f9c=_0x33d39f['mapper']['toViewPosition'](_0x297597),_0x34d856=_0x33d39f['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x7637e8});_0x33d39f['writer']['insert'](_0x4b7f9c,_0x34d856),_0x33d39f['mapper']['bindElementToMarker'](_0x34d856,_0x3418d3['markerName']);}_0x2f0102||_0x52f47b||!_0x3937f0||_0x1c7c7c(_0x3937f0);};}class wt extends _0x27c93a{constructor(_0x209c57){super(_0x209c57);const _0x239e64=_0x209c57['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x239e64,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x239e64,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x5cfc5e=this['editor'],_0x40d3ab=_0x5cfc5e['plugins']['get'](d),_0x3004fe=_0x40d3ab['isReady']?_0x40d3ab['diff']['newRevisionId']:null;_0x5cfc5e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3004fe);}['refresh'](){const {isReady:_0x496527,isEnabled:_0x1e9348,repository:_0x3fe34b,diff:_0x410989}=this['editor']['plugins']['get'](d),_0x15ff94=_0x410989&&_0x3fe34b['getLaterVisibleRevision'](_0x410989['newRevisionId']);this['isEnabled']=_0x496527&&_0x1e9348&&Boolean(_0x15ff94);}}class _t extends _0x27c93a{['_step'];constructor(_0x44b746,{direction:_0x3d7241}){super(_0x44b746);const _0x185595=_0x44b746['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x3d7241?0x1:-0x1,this['listenTo'](_0x185595,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x185595,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x185595,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1f5e1a=this['editor'],_0xa3819f=_0x1f5e1a['plugins']['get'](d),{isNavigationMode:_0x1b2b8d,currentChangeNumber:_0x1bc213}=_0xa3819f;let _0x482971;if(_0xa3819f['activeChange']=_0x1b2b8d?_0xa3819f['diff']['changes']['get'](_0x1bc213+this['_step']):_0xa3819f['diff']['changes']['first'],_0xa3819f['activeChange']['data']['isOnRoot'])_0x482971=_0x1f5e1a['editing']['view']['getDomRoot'](_0xa3819f['activeChange']['rootName']);else{const _0x1e78b6=_0x1f5e1a['model']['markers']['get']('revision:'+_0xa3819f['activeChange']['id']);_0x482971=_0x43daf5(_0x1f5e1a['editing'],_0x1e78b6);}_0x4675b1({'target':_0x482971,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xdbb9f1,currentChangeNumber:_0x447daa,numberOfChanges:_0x23fe66,isReady:_0x473b51,isEnabled:_0x1994ae}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x1994ae&&_0x473b51&&_0x23fe66)&&(!_0xdbb9f1||(0x1===this['_step']?_0x447daa<_0x23fe66-0x1:_0x447daa>0x0));}}class di extends ts{constructor(_0x2884f4){super(_0x2884f4);const _0x4aa26e=this['bindTemplate'],_0x56e7d3=new te(_0x2884f4),_0x37e11f=new te(_0x2884f4);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',(_0x3094b4,_0x599b3a)=>_0x3094b4&&_0x599b3a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5196b6,_0x46e29b,_0x1e5218,_0x118f8e)=>{if(!_0x5196b6)return m(_0x2884f4,'Loading...');if(!_0x1e5218)return m(_0x2884f4,'No\x20changes');const _0x2574ff=m(_0x2884f4,'NUMBER_OF_CHANGES',_0x1e5218);return _0x118f8e?m(_0x2884f4,'X_OF_Y_CHANGES',[_0x46e29b+0x1,_0x1e5218]):_0x2574ff;}),_0x56e7d3['set']({'label':m(_0x2884f4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x37c493}),_0x37e11f['set']({'label':m(_0x2884f4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x14e1f8}),_0x56e7d3['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x37e11f['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x56e7d3['on']('execute',()=>this['fire']('execute','backward')),_0x37e11f['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',_0x4aa26e['if']('_isStatusLabelVisible','ck-hidden',_0x2fcb7d=>!_0x2fcb7d)]},'children':[{'text':_0x4aa26e['to']('isNavigationMode',_0xc4acb1=>_0xc4acb1?m(_0x2884f4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2884f4,'Total')+':\x20')}]},{'text':_0x4aa26e['to']('_statusText')}]},new _0x332562(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x56e7d3,_0x37e11f]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x1947b9{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x99e81b=this['editor']['editing']['view'];_0x99e81b['change'](_0x2b09cc=>{for(const _0x5aa5dd of _0x99e81b['document']['roots'])_0x2b09cc['addClass'](le,_0x5aa5dd);});}['hide'](){const _0x915a88=this['editor']['editing']['view'];_0x915a88['change'](_0x3839c7=>{for(const _0x805845 of _0x915a88['document']['roots'])_0x3839c7['removeClass'](le,_0x805845);});}}class w extends _0x1947b9{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0x43c895=this['editor'],_0x37f9cc=_0x43c895['plugins']['get'](d),_0x3a282a=_0x43c895['plugins']['get'](de);_0x43c895['ui']['componentFactory']['add']('exitToEditing',_0x2d608d=>{const _0x1f2feb=new te(_0x2d608d);return _0x1f2feb['set']({'label':m(_0x2d608d,'Back\x20to\x20editing'),'icon':_0x13e63e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1f2feb,'execute',()=>{_0x43c895['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1f2feb;}),_0x43c895['ui']['componentFactory']['add']('restoreRevision',_0x2a4366=>{const _0x4ef31d=new te(_0x2a4366);return _0x4ef31d['set']({'label':m(_0x2a4366,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4ef31d['bind']('isEnabled')['to'](_0x43c895['commands']['get']('restoreRevision')),this['listenTo'](_0x4ef31d,'execute',()=>_0x43c895['execute']('restoreRevision')),_0x4ef31d;}),_0x43c895['ui']['componentFactory']['add']('changesNavigation',_0x2229eb=>{const _0x24415e=new di(_0x2229eb),_0x446caf=_0x43c895['commands']['get']('showPreviousChange'),_0x5ef780=_0x43c895['commands']['get']('showNextChange');return _0x24415e['bind']('isBackwardNavigationEnabled')['to'](_0x446caf,'isEnabled'),_0x24415e['bind']('isForwardNavigationEnabled')['to'](_0x5ef780,'isEnabled'),_0x24415e['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x37f9cc),this['listenTo'](_0x24415e,'execute',(_0x57449c,_0x511d8b)=>{_0x43c895['execute']('forward'===_0x511d8b?'showNextChange':'showPreviousChange');}),_0x24415e;}),_0x3a282a['show'](),_0x37f9cc['on']('change:isReady',(_0x200e60,_0x43b986,_0x3b2336)=>{_0x3b2336?_0x3a282a['hide']():_0x3a282a['show']();});}}class pt extends _0x3230b0{['_resizeObserver']=null;constructor(_0x367a3d,_0x1cf6a4){super(_0x367a3d,_0x1cf6a4);const _0x438a31=this['bindTemplate'];this['set']({'label':m(_0x367a3d,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x367a3d,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x438a31['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 _0x3261a0=this['fieldView']['element'];this['_tooltipString']=_0x3261a0['scrollWidth']>_0x3261a0['clientWidth']&&_0x3261a0['value']||'';}}class si extends ts{constructor(_0x28e5bf,_0x538b4b,_0x1d02c7){super(_0x28e5bf);const _0x2b4d27=new _0x33aa8f();_0x2b4d27['set']({'content':_0x48a0fb,'viewBox':'0\x200\x2011\x2010'});const _0x3e395d=['ck','ck-revision-history-sidebar__revision-author'];_0x1d02c7&&_0x3e395d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x50d1d3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x28e5bf,_0x1d02c7?'Revision\x20creator':'Revision\x20author')},'children':[_0x2b4d27,_0x538b4b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3e395d},'children':_0x50d1d3});}}function oi(_0x2b4f12,_0x590c5d){const _0x49b1e9=_0x2b4f12['bindTemplate'],_0x3cb86b=_0x2b4f12['locale'],_0x8a969b=_0x5ae326(_0x3cb86b);_0x8a969b['panelPosition']='sw';const _0x5c3b12=function(_0x1b42c0,_0x3d33fc){const _0x1598d6=function(_0x16d70d,_0x546ca1){const _0x546346=_0x16d70d['locale'],_0x2eb167={'Compare\x20against\x20selected':m(_0x546346,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x546346,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x546346,'Restore\x20this\x20revision')};return _0x546ca1['map'](_0x382fc2=>{const _0x525cc9=_0x2eb167[_0x382fc2['name']];return _0x525cc9&&_0x525cc9!==_0x382fc2['name']&&(_0x382fc2['name']=_0x525cc9),_0x382fc2;});}(_0x1b42c0,_0x3d33fc),_0x386b42=new _0x3c9798();for(const _0x42e496 of _0x1598d6){const _0x2dfd83={'type':'button','model':new to({'label':_0x42e496['name'],'class':_0x42e496['class'],'withText':!0x0,'role':'menuitem','_action':_0x42e496['action']})};_0x2dfd83['model']['bind']('isEnabled')['to'](_0x1b42c0,'isActionsDropdownOpen',_0xad660=>'function'!=typeof _0x42e496['isEnabled']||(!_0xad660||_0x42e496['isEnabled'](_0x1b42c0))),_0x386b42['add'](_0x2dfd83);}return _0x386b42;}(_0x2b4f12,_0x590c5d);return _0x2b4f12['bind']('isActionsDropdownOpen')['to'](_0x8a969b,'isOpen'),_0x8a969b['buttonView']['set']({'label':m(_0x3cb86b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x25edbc}),_0x8a969b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x49b1e9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x49b1e9['to'](_0x6010d8=>_0x6010d8['stopPropagation']())}}),_0x8a969b['on']('execute',_0xcfe028=>{_0x2b4f12['isReady']&&'function'==typeof _0xcfe028['source']['_action']&&_0xcfe028['source']['_action'](_0x2b4f12);}),_0x40c490(_0x8a969b,_0x5c3b12,{'role':'menu'}),_0x8a969b['listenTo'](_0x2b4f12,'change:isActionsDropdownOpen',(_0x597beb,_0x8c4935,_0x48ca51)=>{if(_0x48ca51)for(const _0x51a043 of _0x8a969b['listView']['items']){const _0x32f968=_0x51a043['children']['first'],_0x4faa25=_0x590c5d['find'](_0x27e3d1=>_0x27e3d1['action']===_0x32f968['_action'])['isVisible'];_0x51a043['isVisible']=void 0x0===_0x4faa25||_0x4faa25(_0x2b4f12);}}),_0x8a969b;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2c2d93,_0x45b623,_0x58ffb0,_0x2fade2){super(_0x2c2d93);const _0x1fc60d=this['bindTemplate'],_0x135100=function(_0x5a6ac1,_0xc54e2b){const _0x59d7d1=Array['from'](_0xc54e2b['authors'])['filter'](_0x80e5ed=>_0x80e5ed!=_0xc54e2b['creator']);return _0xc54e2b['creator']&&_0x59d7d1['unshift'](_0xc54e2b['creator']),_0x59d7d1['map'](_0x5a57a8=>new si(_0x5a6ac1,_0x5a57a8,_0x5a57a8==_0xc54e2b['creator']));}(_0x2c2d93,_0x45b623);this['id']=_0x45b623['id'],this['_revision']=_0x45b623,this['_requireRevisionName']=_0x2fade2,this['bind']('name','createdAt')['to'](_0x45b623),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x443da5=>{return _0x343234=_0x2c2d93['uiLanguage'],(_0x5b88e6=_0x443da5)['toLocaleDateString'](_0x343234,{'month':'long','day':'numeric'})+',\x20'+_0x5b88e6['toLocaleTimeString'](_0x343234,{'hour':'numeric','minute':'numeric'});var _0x343234,_0x5b88e6;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2c2d93,_0x30c57f),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x33e3e2=>_0x33e3e2||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2ff650,_0x33d7d1)=>_0x2ff650&&_0x33d7d1),this['revisionActionsView']=_0x58ffb0&&_0x58ffb0['length']?oi(this,_0x58ffb0):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1fc60d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1fc60d['if']('isEnabled','ck-disabled',_0x444b74=>!_0x444b74),_0x1fc60d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1fc60d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1fc60d['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':_0x1fc60d['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':_0x135100}]},this['revisionActionsView']],'on':{'click':_0x1fc60d['to'](_0x3c8f36=>{_0x3c8f36['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x32f9af=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x32f9af,'change',()=>{this['_requireRevisionName']&&!_0x32f9af['value']||this['fire']('setName',{'id':this['id'],'name':_0x32f9af['value']}),_0x32f9af['value']||(_0x32f9af['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x3a0c20,_0x379090){const _0x53de1b=_0x19df88['fromJSDate'](_0x3a0c20)['setLocale'](_0x379090),_0x15cd8f=_0x19df88['local'](),_0x12d0e6=_0x15cd8f['minus']({'days':0x1})['startOf']('day');let _0x296827,_0x23983e;return _0x53de1b['hasSame'](_0x15cd8f,'day')?(_0x296827=_0x53de1b['startOf']('day')['toJSDate'](),_0x23983e=_0x53de1b['toRelativeCalendar']()):_0x53de1b['hasSame'](_0x12d0e6,'day')?(_0x296827=_0x12d0e6['toJSDate'](),_0x23983e=_0x53de1b['toRelativeCalendar']()):_0x53de1b['hasSame'](_0x15cd8f,'week')?(_0x296827=_0x53de1b['startOf']('week')['toJSDate'](),_0x23983e=_0x53de1b['weekdayLong']||''):_0x53de1b['hasSame'](_0x15cd8f,'year')?(_0x296827=_0x53de1b['startOf']('month')['toJSDate'](),_0x23983e=_0x53de1b['monthLong']||''):(_0x296827=_0x53de1b['startOf']('year')['toJSDate'](),_0x23983e=String(_0x53de1b['year'])),{'startDate':_0x296827,'localizedPeriodName':_0x23983e};}class mi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x544e67,_0x21eefe,_0x319f1e,_0x16ecc7){super(_0x544e67);const _0x469b95=vi(_0x21eefe,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x21eefe,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x319f1e,this['_requireRevisionName']=_0x16ecc7,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':_0x469b95}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x162aa1){const _0x34400d=new hi(this['locale'],_0x162aa1,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x34400d);}['removeRevision'](_0x343200){const _0x5b8869=this['revisionViews']['find'](_0xcb605f=>_0xcb605f['id']===_0x343200['id']);this['revisionViews']['remove'](_0x5b8869);}}class as extends ts{constructor(_0x21d64d){super(_0x21d64d);const _0xd01b40=new _0x33aa8f();_0xd01b40['content']=_0x4b0f09,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0xd01b40,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x21d64d,'Revision\x20history')]}]});}}class li extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e4e32,_0x54300f,_0x4b95f8,_0x447baf){super(_0x5e4e32);const _0x21a678=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x54300f,this['_revisionActions']=_0x4b95f8,this['_requireRevisionName']=_0x447baf,this['on']('select',(_0x332aab,_0x351b5b)=>{this['fire']('revisionSelected',_0x351b5b);}),this['on']('setName',(_0x3cfcf9,_0x399200)=>{this['fire']('revisionSetName',_0x399200);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5e4e32),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x21a678['if']('isEnabled','ck-disabled',_0x5d0230=>!_0x5d0230)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x286bcb of this['_revisions'])this['_addRevision'](_0x286bcb);this['_revisions']['on']('add',(_0x2fd1dc,_0x256df4)=>{this['_addRevision'](_0x256df4);}),this['_revisions']['on']('remove',(_0x5e4961,_0xef44f7)=>{this['_removeRevision'](_0xef44f7);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5a9d6a=>_0x5a9d6a['revisionViews']['map'](_0x3840f8=>_0x3840f8))['flat']();}['selectRevision'](_0x18a35e){for(const _0x151951 of this['revisionViews'])_0x18a35e&&_0x18a35e['id']===_0x151951['id']?_0x151951['select']():_0x151951['deselect']();}['highlightRevisions'](_0x889e4c){for(const _0x51215c of this['revisionViews'])_0x889e4c['some'](({id:_0x3f17e5})=>_0x3f17e5===_0x51215c['id'])?_0x51215c['highlight']():_0x51215c['unhighlight']();}['_addRevision'](_0x3cd6c6){const _0xcadf62=vi(_0x3cd6c6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x136e20=this['timePeriodViews']['get'](0x0);_0x136e20&&_0x136e20['startDate']['getTime']()===_0xcadf62['getTime']()||(_0x136e20=new mi(this['locale'],_0xcadf62,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x136e20)),_0x136e20['addRevision'](_0x3cd6c6);}['_removeRevision'](_0x326be2){const _0x607b11=vi(_0x326be2['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x607b11)['removeRevision'](_0x326be2);}['_getTimePeriodViewByStartDate'](_0x2dfdf1){return this['timePeriodViews']['find'](_0x158b0e=>_0x158b0e['startDate']['getTime']()===_0x2dfdf1['getTime']());}}class g extends _0x1947b9{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0xd86b79,uid as _0x5b3171,Collection as _0x3d47b3,logWarning as _0x4a5a5a,FocusTracker as _0x41476a,KeystrokeHandler as _0x72e416,scrollViewportToShowTarget as _0x8cec50,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x4d9fd9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x377d2c,set as _0x560b1d,unset as _0x507038,isEqual as _0x2cbd47}from'es-toolkit/compat';import{Plugin as _0x45244f,PendingActions as _0x20fd9f,Command as _0x2748ad,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x499f02,getMarkerDomElement as _0x5b8dd5,ConfirmMixin as _0x178b02,sanitizeEditorConfig as _0x15971f}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x17d136,Element as ut,Range as ft,ViewUIElement as _0x91a45c,ViewRawElement as _0x1a03fd,ViewEmptyElement as _0x510328,ViewAttributeElement as _0x1690f0,ViewContainerElement as _0x2acc3d,Position as vt,ViewText as _0xf4d2d1,ViewElement as _0x3a93a8,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3ba4d1,IconChevronUp as _0x30dd98,IconChevronDown as _0x4e9473,IconUndo as _0x42a8bb,IconUser as _0x274ce6,IconThreeVerticalDots as _0x2b00bd}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x1119f9,injectCssTransitionDisabler as ts,submitHandler as _0x582dad,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x369c57,ListView as _0x1cc131,ListItemView as te,ButtonView as _0x521e80,MenuBarMenuView as _0xfe8b5f,MenuBarMenuListView as _0x2382a3,MenuBarMenuListItemView as _0x5675cc,MenuBarMenuListItemButtonView as _0x5c7168,ContextualBalloon as _0x367829,ToolbarSeparatorView as _0x51cb7a,IconView as _0x4acca1,addListToDropdown as _0x37b5c7,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x95a3cb}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0xd86b79(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x1781ec){super(),this['id']=_0x1781ec['id']||_0x5b3171(),this['creator']=_0x1781ec['creator']||null,this['authors']=_0x1781ec['authors']||[],this['diffData']=_0x1781ec['diffData']||null,this['toVersion']=_0x1781ec['toVersion']||0x0,this['fromVersion']=_0x1781ec['fromVersion']||0x0,this['set']('name',_0x1781ec['name']||''),this['set']('createdAt',_0x1781ec['createdAt']||new Date()),this['set']('attributes',_0x1781ec['attributes']||{});}['setName'](_0x2e7af6){this['_update']({'name':_0x2e7af6});}['setAttribute'](_0x131980,_0x479a09){const _0x429dfa=_0x377d2c(this['attributes']);_0x560b1d(_0x429dfa,_0x131980,_0x479a09),this['_update']({'attributes':_0x429dfa});}['removeAttribute'](_0x44c4c0){const _0x3ce885=_0x377d2c(this['attributes']);_0x507038(_0x3ce885,_0x44c4c0),this['_update']({'attributes':_0x3ce885});}['_update'](_0x4500d2,_0x3e1e96=!0x1){let _0x4ff6eb=!0x1;const _0x25db6f={'id':this['id']},_0x1ee516=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x12fd30 of _0x1ee516){const _0x930dc8=_0x4500d2[_0x12fd30];void 0x0!==_0x930dc8&&_0x930dc8!==this[_0x12fd30]&&(this[_0x12fd30]=_0x930dc8,_0x25db6f[_0x12fd30]=_0x930dc8,_0x4ff6eb=!0x0);}_0x4ff6eb&&(_0x25db6f['authors']&&(_0x25db6f['authorsIds']=_0x25db6f['authors']['map'](_0x157b9a=>_0x157b9a['id']),delete _0x25db6f['authors']),this['fire']('_update',_0x25db6f,_0x3e1e96));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x59e40f=>_0x59e40f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x45244f{['_revisions'];static get['requires'](){return[_0x499f02];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4a92d4){super(_0x4a92d4),this['_revisions']=new _0x3d47b3();}['afterInit'](){!async function(_0x3aa978){const _0x5b9fc1=_0xaa6223([0x5a,0x4f,0x50,0x6c,0x42,0x77,0x44,0x68,0x47,0x61,0x69,0x46,0x6d,0x4d,0x78,0x30,0x73,0x52,0x75,0x36,0x56,0x4e,0x31,0x32,0x6b,0x65,0x57,0x64,0x66,0x72,0x76,0x6e,0x58,0x4a,0x43,0x49,0x41,0x33,0x45,0x54,0x7a,0x6f,0x37,0x51,0x35,0x67,0x79,0x63,0x53,0x70,0x34,0x71,0x48,0x6a,0x39,0x38,0x4c,0x62,0x55,0x4b,0x59,0x74]),_0x8e1f08=0xeb829,_0xef59f5=0x346e6546,_0x1cb203=0x34690496^_0xef59f5,_0x45291b=window[_0xaa6223([0x44,0x61,0x74,0x65])][_0xaa6223([0x6e,0x6f,0x77])](),_0x21d086=_0x3aa978[_0xaa6223([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x485227=new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e9416=>{_0x21d086[_0xaa6223([0x6f,0x6e,0x63,0x65])](_0xaa6223([0x72,0x65,0x61,0x64,0x79]),_0x2e9416);}),_0x1325de={[_0xaa6223([0x6b,0x74,0x79])]:_0xaa6223([0x45,0x43]),[_0xaa6223([0x75,0x73,0x65])]:_0xaa6223([0x73,0x69,0x67]),[_0xaa6223([0x63,0x72,0x76])]:_0xaa6223([0x50,0x2d,0x32,0x35,0x36]),[_0xaa6223([0x78])]:_0xaa6223([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]),[_0xaa6223([0x79])]:_0xaa6223([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]),[_0xaa6223([0x61,0x6c,0x67])]:_0xaa6223([0x45,0x53,0x32,0x35,0x36])},_0x5864e6=_0x21d086[_0xaa6223([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xaa6223([0x67,0x65,0x74])](_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x48a356(){let _0x16bab7,_0x2f79ef=null,_0x2909d7=null;try{if(_0x5864e6==_0xaa6223([0x47,0x50,0x4c]))return _0xaa6223([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x16bab7=_0x12d15e(),!_0x16bab7)return _0xaa6223([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x16bab7[_0xaa6223([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2909d7=_0x126720(_0x16bab7[_0xaa6223([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x16bab7[_0xaa6223([0x6a,0x74,0x69])])),await _0x55b001()?_0x376b84()?_0x1748d3()?_0xaa6223([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4fca2e()?(_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa6223([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2f79ef=_0xc52c2(_0xaa6223([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xaa6223([0x74,0x72,0x69,0x61,0x6c])&&(_0x2f79ef=_0xc52c2(_0xaa6223([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x15a0fe()):_0xaa6223([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xaa6223([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xaa6223([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x31652b){return _0xaa6223([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1748d3(){const _0x5a1fd5=[_0xaa6223([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xaa6223([0x74,0x72,0x69,0x61,0x6c])][_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45291b/0x3e8:0xe10*_0x1cb203;return _0x16bab7[_0xaa6223([0x65,0x78,0x70])]<_0x5a1fd5;}function _0x376b84(){const _0x4ca809=_0x16bab7[_0xaa6223([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4ca809)return!0x1;if(_0x4ca809[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x2a])))return!0x0;if(_0x4ca809[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x52,0x48])))return!0x0;if(_0x4ca809[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x52,0x52,0x48]))){if(_0x55a92f())return!0x0;if(_0x3762d8()||_0x4e648a())return!0x0;}return!0x1;}function _0x4fca2e(){const _0x5b5f5b=_0x16bab7[_0xaa6223([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5b5f5b||0x0==_0x5b5f5b[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4544a4}=new URL(window[_0xaa6223([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5b5f5b[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4544a4))return!0x0;const _0x29c6f9=_0x4544a4[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e]));return _0x5b5f5b[_0xaa6223([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18ba3a=>_0x18ba3a[_0xaa6223([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaa6223([0x2a])))[_0xaa6223([0x6d,0x61,0x70])](_0x4bab4f=>_0x4bab4f[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e])))[_0xaa6223([0x73,0x6f,0x6d,0x65])](_0x31ad31=>_0x29c6f9[_0xaa6223([0x65,0x76,0x65,0x72,0x79])]((_0x47fa98,_0x1969a0)=>_0x31ad31[_0x1969a0]===_0x47fa98||_0x31ad31[_0x1969a0]===_0xaa6223([0x2a])));}function _0x15a0fe(){return _0x2f79ef&&_0x2909d7?new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2a87cd,_0x5247df)=>{_0x2f79ef[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x2a87cd,_0x5247df),_0x2909d7[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x2efdcd=>{_0x2efdcd!=_0xaa6223([0x56,0x61,0x6c,0x69,0x64])&&_0x2a87cd(_0x2efdcd);},_0x5247df);}):_0x2f79ef||_0x2909d7||_0xaa6223([0x56,0x61,0x6c,0x69,0x64]);}}function _0x126720(_0x4a6f88,_0x5ac058){return new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17a7f4=>{if(_0x4b7aab())return _0x17a7f4(_0xaa6223([0x56,0x61,0x6c,0x69,0x64]));_0x19ddf7(),_0x21d086[_0xaa6223([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xaa6223([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x10bf59=!0x1;const _0x37d090=_0x5b3171();function _0x2412e4(_0x36d6fa){return!!_0x36d6fa&&(typeof _0x36d6fa===_0xaa6223([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x36d6fa===_0xaa6223([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x36d6fa[_0xaa6223([0x74,0x68,0x65,0x6e])]===_0xaa6223([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x36d6fa[_0xaa6223([0x63,0x61,0x74,0x63,0x68])]===_0xaa6223([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2198dc(_0x502c19){_0x3e8446(_0x502c19)[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x44ba79=>{if(!_0x44ba79||_0x44ba79[_0xaa6223([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xaa6223([0x6f,0x6b]))return _0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x27ed2a(_0x3e9dd3(_0x37d090+_0x5ac058))!=_0x44ba79[_0xaa6223([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xaa6223([0x56,0x61,0x6c,0x69,0x64]);})[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x582187=>(_0x55d94e(),_0x582187),()=>{const _0x5b1ab9=_0x59c4c6();return null==_0x5b1ab9?(_0x55d94e(),_0xaa6223([0x56,0x61,0x6c,0x69,0x64])):_0xaa6223(_0x45291b-_0x5b1ab9>(0x1062e146^_0xef59f5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x17a7f4)[_0xaa6223([0x63,0x61,0x74,0x63,0x68])](()=>{_0x17a7f4(_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x26f2ad=0x34588bc6^_0xef59f5;function _0x55d94e(){const _0x2f5e97=_0xaa6223([0x6c,0x6c,0x63,0x74,0x2d])+_0x27ed2a(_0x3e9dd3(_0x4a6f88)),_0x580fad=_0x4d0d48(_0x27ed2a(window[_0xaa6223([0x4d,0x61,0x74,0x68])][_0xaa6223([0x63,0x65,0x69,0x6c])](_0x45291b/_0x26f2ad)));window[_0xaa6223([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa6223([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f5e97,_0x580fad);}function _0x59c4c6(){const _0x1e7618=_0xaa6223([0x6c,0x6c,0x63,0x74,0x2d])+_0x27ed2a(_0x3e9dd3(_0x4a6f88)),_0x558599=window[_0xaa6223([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xaa6223([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e7618);return _0x558599?window[_0xaa6223([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4d0d48(_0x558599),0x10)*_0x26f2ad:null;}function _0x3e8446(_0x1d0f31){return new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x247066,_0x5b45f0)=>{_0x1d0f31[_0xaa6223([0x74,0x68,0x65,0x6e])](_0x247066,_0x5b45f0),window[_0xaa6223([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b45f0,0x346fb186^_0xef59f5);});}}_0x21d086[_0xaa6223([0x6f,0x6e])](_0xaa6223([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x411560,_0x1dd07f)=>{if(_0x1dd07f[0x0]!=_0x4a6f88)return _0x17a7f4(_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1dd07f[0x1]={..._0x1dd07f[0x1],[_0xaa6223([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x37d090};},{[_0xaa6223([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa6223([0x68,0x69,0x67,0x68])}),_0x21d086[_0xaa6223([0x6f,0x6e])](_0xaa6223([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x346d50=>{_0x2412e4(_0x346d50[_0xaa6223([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x10bf59=!0x0,_0x2198dc(_0x346d50[_0xaa6223([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xaa6223([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xaa6223([0x6c,0x6f,0x77])}),_0x485227[_0xaa6223([0x74,0x68,0x65,0x6e])](()=>{_0x10bf59||_0x17a7f4(_0xaa6223([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b7aab(){return _0x21d086[_0xaa6223([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa6223([0x76,0x69,0x65,0x77])][_0xaa6223([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xaa6223([0x61,0x75,0x74,0x6f]);}function _0x19ddf7(){_0x21d086[_0xaa6223([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xaa6223([0x76,0x69,0x65,0x77])][_0xaa6223([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xaa6223([0x61,0x75,0x74,0x6f]);}}function _0xc52c2(_0x3aa4d0){const _0x5d440d=[new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37ee09=>setTimeout(_0x37ee09,0x34675b8a^_0xef59f5)),_0x485227[_0xaa6223([0x74,0x68,0x65,0x6e])](()=>new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x405de4=>{const _0x49d0d=0x346e6541^_0xef59f5,_0x3f8224=_0x3aa978[_0xaa6223([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x13911b(){_0x3f8224[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x49d0d&&_0x405de4();}_0x13911b(),_0x3f8224[_0xaa6223([0x6f,0x6e])](_0xaa6223([0x61,0x64,0x64]),_0x13911b);})),new window[(_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c61f5=>{function _0x19e3d6(){for(const _0x66fb64 in window)if(window[_0xaa6223([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xaa6223([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x66fb64))&&window[_0x66fb64]==_0x8e1f08)return _0x4c61f5();_0x21d086[_0xaa6223([0x73,0x74,0x61,0x74,0x65])]!=_0xaa6223([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xaa6223([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x19e3d6,0x346e76ce^_0xef59f5);}_0x506d94(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x19e3d6();})];return window[_0xaa6223([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xaa6223([0x72,0x61,0x63,0x65])](_0x5d440d)[_0xaa6223([0x74,0x68,0x65,0x6e])](()=>_0x3aa4d0);}async function _0x14d7e9(){if(await _0x485227,_0x506d94(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x598815=_0x3aa978[_0xaa6223([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x167c61=_0x3aa978[_0xaa6223([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])](_0x598815[_0xaa6223([0x69,0x64])]),_0x50e847=_0x55d5fd(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x50e847[_0xaa6223([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x598815['id'],_0x167c61?_0x167c61['id']:null,!0x0),_0x50e847[_0xaa6223([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50e847[_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50e847[_0xaa6223([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x155213,void(_0x50e847[_0xaa6223([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x155213);}if(_0x506d94(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x43018c=_0x55d5fd(_0xaa6223([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x43018c[_0xaa6223([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x43018c[_0xaa6223([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x43018c[_0xaa6223([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x155213,_0x43018c[_0xaa6223([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x155213;}_0x21d086[_0xaa6223([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa6223([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x155213,_0x21d086[_0xaa6223([0x6d,0x6f,0x64,0x65,0x6c])][_0xaa6223([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x155213,_0x21d086[_0xaa6223([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xaa6223([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x55a92f(){return _0x506d94(_0xaa6223([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x55d5fd(_0xaa6223([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xaa6223([0x73,0x74,0x61,0x74,0x65])]==_0xaa6223([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3762d8(){return _0x506d94(_0xaa6223([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 _0x4e648a(){return _0x506d94(_0xaa6223([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x345299(_0x4fcdd6){const _0x3f25f9=_0x36369f();_0x21d086[_0x3f25f9]=_0xaa6223([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])+_0x4fcdd6,_0x4fcdd6[_0xaa6223([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xaa6223([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x36369f()]=_0x8e1f08),_0x4fcdd6!=_0xaa6223([0x56,0x61,0x6c,0x69,0x64])&&_0x14d7e9();}function _0x36369f(){const _0x292270=window[_0xaa6223([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xaa6223([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xaa6223([0x6e,0x6f,0x77])]())[_0xaa6223([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xaa6223([0x2e]),'');let _0x5a209d=_0xaa6223([0x5a]);for(let _0x29bd85=0x0;_0x29bd85<_0x292270[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29bd85+=0x2){let _0x4bf1c1=window[_0xaa6223([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x292270[_0xaa6223([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29bd85,_0x29bd85+0x2));_0x4bf1c1>=_0x5b9fc1[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4bf1c1-=_0x5b9fc1[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a209d+=_0x5b9fc1[_0x4bf1c1];}return _0x5a209d;}function _0x12d15e(){const _0x9fdab5=_0x5864e6[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e]));if(0x3!=_0x9fdab5[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x51c14d(_0x9fdab5[0x1]);function _0x51c14d(_0x1fe582){const _0xcc2b02=_0x3a3494(_0x1fe582);return _0xcc2b02&&_0x58ae03()?_0xcc2b02:null;function _0x58ae03(){const _0x3bd9ba=_0xcc2b02[_0xaa6223([0x6a,0x74,0x69])],_0xc27b23=window[_0xaa6223([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd9ba[_0xaa6223([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3bd9ba[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x44b8f0={..._0xcc2b02,[_0xaa6223([0x6a,0x74,0x69])]:_0x3bd9ba[_0xaa6223([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3bd9ba[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x44b8f0[_0xaa6223([0x76,0x63])],_0x3e9dd3(_0x44b8f0)==_0xc27b23;}}}async function _0x55b001(){let _0x33d17e=!0x0;try{const _0x450d00=_0x5864e6[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])](_0xaa6223([0x2e])),[_0x2bea57,_0x570e66,_0x3efbc9]=_0x450d00;return _0x4b928b(_0x2bea57),await _0x2023fa(_0x2bea57,_0x570e66,_0x3efbc9),_0x33d17e;}catch(_0x11972a){return!0x1;}function _0x4b928b(_0x433089){const _0x2013b6=_0x3a3494(_0x433089);_0x2013b6&&_0x2013b6[_0xaa6223([0x61,0x6c,0x67])]==_0xaa6223([0x45,0x53,0x32,0x35,0x36])||(_0x33d17e=!0x1);}async function _0x2023fa(_0x45de4c,_0x43bd0c,_0x36e579){const _0x35f890=window[_0xaa6223([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xaa6223([0x66,0x72,0x6f,0x6d])](_0x47e2cb(_0x36e579),_0x23e86b=>_0x23e86b[_0xaa6223([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x26d4eb=new window[(_0xaa6223([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xaa6223([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x45de4c+_0xaa6223([0x2e])+_0x43bd0c),_0xb7769c=window[_0xaa6223([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xaa6223([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb7769c)return;const _0xcf164d=await _0xb7769c[_0xaa6223([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xaa6223([0x6a,0x77,0x6b]),_0x1325de,{[_0xaa6223([0x6e,0x61,0x6d,0x65])]:_0xaa6223([0x45,0x43,0x44,0x53,0x41]),[_0xaa6223([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xaa6223([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xaa6223([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb7769c[_0xaa6223([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xaa6223([0x6e,0x61,0x6d,0x65])]:_0xaa6223([0x45,0x43,0x44,0x53,0x41]),[_0xaa6223([0x68,0x61,0x73,0x68])]:{[_0xaa6223([0x6e,0x61,0x6d,0x65])]:_0xaa6223([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xcf164d,_0x35f890,_0x26d4eb)||(_0x33d17e=!0x1);}}function _0x3a3494(_0x21fb7b){return _0x21fb7b[_0xaa6223([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xaa6223([0x65,0x79]))?JSON[_0xaa6223([0x70,0x61,0x72,0x73,0x65])](_0x47e2cb(_0x21fb7b)):null;}function _0x47e2cb(_0x45f8bb){return window[_0xaa6223([0x61,0x74,0x6f,0x62])](_0x45f8bb[_0xaa6223([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xaa6223([0x2b]))[_0xaa6223([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xaa6223([0x2f])));}function _0x3e9dd3(_0x1703ec){let _0x27da5e=0x1505;function _0x3ddee5(_0x4930ed){for(let _0xfad3b6=0x0;_0xfad3b6<_0x4930ed[_0xaa6223([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfad3b6++){const _0x5613cd=_0x4930ed[_0xaa6223([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xfad3b6);_0x27da5e=(_0x27da5e<<0x5)+_0x27da5e+_0x5613cd,_0x27da5e&=_0x27da5e;}}function _0x2771c0(_0x3d674c){Array[_0xaa6223([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3d674c)?_0x3d674c[_0xaa6223([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2771c0):_0x3d674c&&typeof _0x3d674c==_0xaa6223([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xaa6223([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3d674c)[_0xaa6223([0x73,0x6f,0x72,0x74])]()[_0xaa6223([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x24f8b2,_0x14beed])=>{_0x3ddee5(_0x24f8b2),_0x2771c0(_0x14beed);}):_0x3ddee5(window[_0xaa6223([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3d674c));}return _0x2771c0(_0x1703ec),_0x27da5e>>>0x0;}function _0x27ed2a(_0x4875de){return _0x4875de[_0xaa6223([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xaa6223([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xaa6223([0x30]));}function _0x4d0d48(_0x4e1fa7){return _0x4e1fa7[_0xaa6223([0x73,0x70,0x6c,0x69,0x74])]('')[_0xaa6223([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xaa6223([0x6a,0x6f,0x69,0x6e])]('');}function _0x506d94(_0x59cf25){return _0x21d086[_0xaa6223([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xaa6223([0x68,0x61,0x73])](_0x59cf25);}function _0x55d5fd(_0x42ca55){return _0x21d086[_0xaa6223([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xaa6223([0x67,0x65,0x74])](_0x42ca55);}function _0x155213(){}function _0xaa6223(_0x5f1c56){return _0x5f1c56['map'](_0x2ca1da=>String['fromCharCode'](_0x2ca1da))['join']('');}_0x345299(await _0x48a356());}(this);}['createRevision'](_0x4503d1){const _0x597f3c=this['editor']['plugins']['get']('Users');return new h({'id':_0x4503d1['id'],'name':_0x4503d1['name'],'creator':_0x4503d1['creatorId']?_0x597f3c['getUser'](_0x4503d1['creatorId']):null,'diffData':_0x4503d1['diffData']||_0x4503d1['data'],'authors':_0x4503d1['authorsIds']['map'](_0x309b13=>_0x597f3c['getUser'](_0x309b13)),'createdAt':new Date(_0x4503d1['createdAt']),'attributes':_0x4503d1['attributes'],'fromVersion':_0x4503d1['fromVersion'],'toVersion':_0x4503d1['toVersion']});}['addRevision'](_0x42c687,_0x45b82b=0x0){this['_revisions']['add'](_0x42c687,_0x45b82b);}['getRevision'](_0x2f35d8){return this['_revisions']['get'](_0x2f35d8);}['getRevisions'](_0x670687={'toJSON':!0x1}){const _0x5b000e=Array['from'](this['_revisions']);return _0x5b000e['reverse'](),_0x670687['toJSON']?_0x5b000e['map'](_0x3df4f5=>_0x3df4f5['toJSON']()):_0x5b000e;}['getIndex'](_0x44e1f6){return this['_revisions']['getIndex'](_0x44e1f6);}['getEarlierVisibleRevision'](_0x1af0ce){const [,_0xc3d884]=this['getRevisionsIterator'](_0x1af0ce,{'direction':'earlier'});return _0xc3d884;}['getLaterVisibleRevision'](_0x1404f1){const [,_0x485959]=this['getRevisionsIterator'](_0x1404f1,{'direction':'later'});return _0x485959;}['getRevisionsInDiff'](_0x46a783){const _0x6fde64=[];for(const _0x1f8227 of this['getRevisionsIterator'](_0x46a783['newRevisionId']))if(_0x6fde64['push'](_0x1f8227),_0x1f8227['id']===_0x46a783['oldRevisionId'])break;return _0x6fde64;}*['getRevisionsIterator'](_0x26d4ca,{direction:_0x367bcb='earlier',filter:_0x1aa924=()=>!0x0}={}){const _0x6ca925='earlier'===_0x367bcb?0x1:-0x1;let _0x23db92=this['_revisions']['get'](_0x26d4ca),_0x5bb9e7=this['getIndex'](_0x23db92);for(yield _0x23db92;_0x23db92;){if(_0x5bb9e7+=_0x6ca925,_0x23db92=this['getRevision'](_0x5bb9e7),!_0x23db92)return;_0x1aa924(_0x23db92)&&(yield _0x23db92);}}}function m(_0x579584,_0x174393,_0x4d919a){const t=_0x579584['t'];switch(_0x174393){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'},_0x4d919a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4d919a);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 E={'c':_0x2acc3d,'a':_0x1690f0,'e':_0x510328,'r':_0x1a03fd,'u':_0x91a45c};class u extends _0x45244f{['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[_0x499f02,j,_0x20fd9f];}constructor(_0xfd71f1){super(_0xfd71f1),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 _0x39c73a=_0x5b3171();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x39c73a},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 _0x4edb70=this['repository']['getRevision'](0x0),_0x52e006=_0x4edb70&&null===_0x4edb70['creator']?_0x4edb70:null;if(this['_continueCurrentRevision']=!!_0x52e006&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xa9774f=this['_source']['getCurrentRevisionId'](),_0x107c7f=this['repository']['getRevision'](_0xa9774f);if(_0x107c7f)this['_startingVersion']=_0x107c7f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x54cb27=this['_source']['history']['_operations']['find'](_0x4bf0c4=>!_0x4bf0c4['_isInit']),_0x2a3594=_0x54cb27?_0x54cb27['baseVersion']:this['_source']['history']['version'];_0x4edb70?(_0x4edb70['toVersion']<_0x2a3594&&_0x4edb70['_update']({'toVersion':_0x2a3594}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x52e006['id'],this['_startingVersion']=_0x52e006['fromVersion']):(this['_startingVersion']=_0x4edb70['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2a3594,this['_continueCurrentRevision']=!0x1);}}else _0x52e006&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x52e006['toVersion'],this['editor']['model']['document']['history']['version']),_0x52e006['fromVersion']===_0x52e006['toVersion']?(0x0!==_0x52e006['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x52e006['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x52e006['id'],this['_startingVersion']=_0x52e006['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',_0x3664c5=>!_0x3664c5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x37bb29=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d5b4c;for(const _0x5bcdb2 in _0x37bb29){const _0x58e91f=_0x5bcdb2,_0x32f1a0=_0x37bb29[_0x58e91f];if('revisionHistoryLicenseKeyValid'==_0x32f1a0||'revisionHistoryLicenseKeyInvalid'==_0x32f1a0||'revisionHistoryLicenseKeyExpired'==_0x32f1a0||'revisionHistoryLicenseKeyDomainLimit'==_0x32f1a0||'revisionHistoryLicenseKeyNotAllowed'==_0x32f1a0||'revisionHistoryLicenseKeyEvaluationLimit'==_0x32f1a0||'revisionHistoryLicenseKeyTrialLimit'==_0x32f1a0||'revisionHistoryLicenseKeyUsageLimit'==_0x32f1a0){delete _0x37bb29[_0x58e91f],_0x1d5b4c=_0x32f1a0,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1d5b4c&&_0x37bb29['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2fe145=this['repository']['getRevision'](0x0),_0x5b96c2=await this['getRevisionDocumentData'](_0x2fe145),_0x1ab4d5=await this['getRevisionRootsAttributes'](_0x2fe145);this['_replaceEditorDataWithRevisionData'](_0x5b96c2,_0x1ab4d5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x190def){this['_source']=_0x190def;}async['update'](){const _0x362e88=await this['_source']['getLatestVersion']();if(_0x362e88>this['currentRevision']['toVersion']){await this['_loadState']();const _0x39b196=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x362e88});_0x39b196['authors']=_0x39b196['authorsIds']['map'](_0x1699d7=>this['editor']['plugins']['get']('Users')['getUser'](_0x1699d7)),this['currentRevision']['_update'](_0x39b196);}}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'](_0x172c0b={},_0x426ba8=null){const _0x3b3836=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x426ba8>this['currentRevision']['toVersion']&&(_0x426ba8=null),null===_0x426ba8&&(_0x426ba8=await this['_source']['getLatestVersion']());const _0x1fcd0d=this['_getFromVersion'](_0x426ba8),_0xfb9ffb=this['buildRevisionData']({'from':_0x1fcd0d,'to':_0x426ba8});if(this['currentRevision']['toVersion']<_0x426ba8){const _0x4ed1b8=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x426ba8,'to':_0x426ba8});_0x4ed1b8['authors']=[],_0x4ed1b8['authorsIds']=[],_0x4ed1b8['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x4ed1b8,!0x0),delete _0x4ed1b8['authors'],_0x3b3836['push'](_0x4ed1b8);}_0x172c0b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x172c0b['name']=_0x172c0b['name']||null,_0x172c0b['id']=_0x172c0b['id']||_0x5b3171(),_0x172c0b={..._0x172c0b,..._0xfb9ffb};const _0x2c1261=this['addRevisionData'](_0x172c0b);_0x3b3836['push'](_0x172c0b);const _0x372fd6=this['repository']['getIndex'](_0x2c1261);if(0x0!==_0x372fd6){const _0x14ee4c=this['repository']['getRevision'](_0x372fd6-0x1);if(_0x14ee4c['fromVersion']!==_0x426ba8){const _0x3830f9=this['_revisionDataBuilder']['getData'](_0x426ba8,_0x14ee4c['toVersion']),_0x2c373d={'id':_0x14ee4c['id'],'diffData':_0x3830f9['diffData'],'authorsIds':_0x3830f9['authorsIds'],'authors':_0x3830f9['authorsIds']['map'](_0x721216=>this['editor']['plugins']['get']('Users')['getUser'](_0x721216)),'fromVersion':_0x426ba8};_0x14ee4c===this['currentRevision']&&(_0x2c373d['createdAt']=new Date(_0x172c0b['createdAt']['getTime']()+0xa)),_0x14ee4c['_update'](_0x2c373d,!0x0),delete _0x2c373d['authors'],_0x3b3836['push'](_0x2c373d);}}if(this['adapter']){for(const _0x496698 of _0x3b3836)this['_bufferUpdate'](_0x496698['id'],_0x496698,!0x0);this['sendBufferedUpdates']();}return _0x2c1261;}['addRevisionData'](_0x185253){const _0xed68a4=this['repository']['createRevision'](_0x185253);return this['adapter']&&_0xed68a4['on']('_update',(_0x583510,_0x4e1e35,_0x2b88f6)=>{_0x2b88f6||(this['_bufferUpdate'](_0x4e1e35['id'],_0x4e1e35,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xed68a4,this['_findInsertionIndex'](_0xed68a4)),_0xed68a4;}async['getRevisionDocumentData'](_0x13261f){await this['_loadRevisionData'](_0x13261f);const _0x22d80e={};for(const _0x254276 in _0x13261f['diffData']){if(_0x13261f['diffData'][_0x254276]['attachChange']&&!_0x13261f['diffData'][_0x254276]['attachChange']['isAttached'])continue;const _0x27555a=this['_removeRevisionMarkers'](JSON['parse'](_0x13261f['diffData'][_0x254276]['insertions'])),_0x4cfa8a=this['editor']['editing']['view']['document'],_0x57b541=new _0x17d136(_0x4cfa8a,_0x27555a['map'](_0x2b081c=>P(_0x2b081c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x22d80e[_0x254276]=this['editor']['data']['processor']['toData'](_0x57b541),this['editor']['data']['processor']['useFillerType']('default');}return _0x22d80e;}async['getRevisionRootsAttributes'](_0x4f4cfe){await this['_loadRevisionData'](_0x4f4cfe);const _0x2db3f6={};for(const _0x42fde4 in _0x4f4cfe['diffData'])_0x4f4cfe['diffData'][_0x42fde4]['attachChange']&&!_0x4f4cfe['diffData'][_0x42fde4]['attachChange']['isAttached']||(_0x2db3f6[_0x42fde4]=_0x4f4cfe['diffData'][_0x42fde4]['attributesAfter']||{});return _0x2db3f6;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5153f5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x533a14=0x0;_0x533a14<_0x5153f5['length'];_0x533a14++){const _0x4eb919=_0x5153f5[_0x533a14];let _0x36a72f=!0x1;for(const _0x10e821 of Object['keys'](_0x4eb919))void 0x0===_0x4eb919[_0x10e821]?delete _0x4eb919[_0x10e821]:'id'!==_0x10e821&&(_0x36a72f=!0x0);_0x36a72f||(_0x5153f5[_0x533a14]=null);}if(_0x5153f5=_0x5153f5['filter'](_0x48517f=>null!==_0x48517f),!_0x5153f5['length'])return;for(let _0x3547f4=0x0;_0x3547f4<_0x5153f5['length'];_0x3547f4++){const _0xbd1786=_0x5153f5[_0x3547f4];void 0x0!==_0xbd1786['fromVersion']&&void 0x0===_0xbd1786['toVersion']&&(_0xbd1786['toVersion']=this['repository']['getRevision'](_0xbd1786['id'])['toVersion']),void 0x0!==_0xbd1786['toVersion']&&void 0x0===_0xbd1786['fromVersion']&&(_0xbd1786['fromVersion']=this['repository']['getRevision'](_0xbd1786['id'])['fromVersion']);}const _0x2e7531=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5153f5,_0x2e7531)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x54a6f7=>{if(_0x54a6f7){for(const _0x585e83 of _0x54a6f7)this['setRevisionData']({'id':_0x585e83['id'],'createdAt':_0x585e83['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4541a9,_0x5cc550){let _0x3266db=this['editor']['config']['get']('initialData'),_0x307e40=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3266db){_0x3266db={};for(const _0x131f89 of this['editor']['model']['document']['getRootNames']())_0x3266db[_0x131f89]='';}if('string'==typeof _0x3266db&&(_0x3266db={'main':_0x3266db}),void 0x0===_0x307e40){_0x307e40={};for(const _0x789433 of this['editor']['model']['document']['getRootNames']())_0x307e40[_0x789433]={};}let _0x1fb8ee=!0x1;const _0x300754=Object['keys'](_0x3266db),_0x2ea202=Object['keys'](_0x4541a9);for(const _0x81b6b4 of _0x300754){if(_0x3266db[_0x81b6b4]!==_0x4541a9[_0x81b6b4]&&''!==_0x3266db[_0x81b6b4]['trim']()){_0x1fb8ee=!0x0;break;}if(!_0x2cbd47(_0x307e40[_0x81b6b4],_0x5cc550[_0x81b6b4])&&Object['keys'](_0x307e40[_0x81b6b4])['length']>0x0){_0x1fb8ee=!0x0;break;}}_0x1fb8ee||(_0x1fb8ee=_0x2ea202['some'](_0x2ce029=>!this['editor']['model']['document']['getRoot'](_0x2ce029))),_0x1fb8ee&&_0x4a5a5a('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3266db,'editorRootsAttributes':_0x307e40,'revisionData':_0x4541a9,'revisionRootsAttributes':_0x5cc550}),this['editor']['config']['set']('initialData',_0x4541a9),this['editor']['config']['set']('rootsAttributes',_0x5cc550);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x131f2d=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x131f2d['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x23dd86){const _0x58ce13=this['repository']['getRevisions']();_0x58ce13['reverse']();let _0x4f7531=0x0;for(;_0x4f7531<_0x58ce13['length'];){const _0x4df3d8=_0x58ce13[_0x4f7531];if(_0x4df3d8===this['currentRevision']){_0x4f7531++;continue;}if(_0x4df3d8['id']===this['_initialRevisionId'])break;const _0x14156f=_0x23dd86['toVersion']-_0x4df3d8['toVersion']||_0x23dd86['fromVersion']-_0x4df3d8['fromVersion'];if(_0x14156f>0x0)break;if(_0x14156f<0x0)_0x4f7531++;else{if(!_0x23dd86['creator']&&_0x4df3d8['creator'])break;if(_0x4df3d8['creator']||!_0x23dd86['creator']){if(_0x23dd86['createdAt']>_0x4df3d8['createdAt'])break;_0x4f7531++;}else _0x4f7531++;}}return _0x4f7531;}['setRevisionData'](_0x2d18f0){const _0x4d2987=this['repository']['getRevision'](_0x2d18f0['id']);if(_0x2d18f0['createdAt']&&(_0x2d18f0['createdAt']=new Date(_0x2d18f0['createdAt'])),_0x2d18f0['authorsIds']){const _0x4999bc=this['editor']['plugins']['get']('Users');_0x2d18f0['authors']=_0x2d18f0['authorsIds']['map'](_0x1dd2a0=>_0x4999bc['getUser'](_0x1dd2a0));}_0x4d2987['_update'](_0x2d18f0,!0x0);}['buildRevisionData']({revision:_0x4bbf5a=null,from:_0x5c4908=null,to:_0x38cd66=null}){_0x5c4908=null!==_0x5c4908?_0x5c4908:_0x4bbf5a['fromVersion'],_0x38cd66=null!==_0x38cd66?_0x38cd66:_0x4bbf5a['toVersion'];const _0x2b633f=this['_revisionDataBuilder']['getData'](_0x5c4908,_0x38cd66),_0x3f3fa8={'diffData':_0x2b633f['diffData'],'authorsIds':_0x2b633f['authorsIds'],'fromVersion':_0x5c4908,'toVersion':_0x38cd66};if(!_0x4bbf5a||_0x38cd66!==_0x4bbf5a['toVersion']){const _0x100525=_0x38cd66-0x1,_0x5702d8=this['_source']['history']['getOperation'](_0x100525);_0x3f3fa8['createdAt']=_0x5702d8&&_0x5702d8['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5c4908===this['_loadedStateData']['fromVersion']){for(const _0x16fb10 of this['_loadedStateData']['authors'])_0x3f3fa8['authorsIds']['includes'](_0x16fb10['id'])||_0x3f3fa8['authorsIds']['push'](_0x16fb10['id']);}return _0x3f3fa8;}['_loadRevisionData'](_0x49fbba){if(!_0x49fbba||_0x49fbba['diffData'])return Promise['resolve']();{const _0x176481=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x176481,'revisionId':_0x49fbba['id']})['then'](_0x2d4013=>{_0x49fbba['diffData']=_0x2d4013['diffData'];});}}['_bufferUpdate'](_0x2657d0,_0x380e91,_0x5169e9){if(this['_bufferedUpdates']['has'](_0x2657d0)){const _0x53ee0b=this['_bufferedUpdates']['get'](_0x2657d0);_0x380e91=_0x5169e9?{..._0x53ee0b,..._0x380e91}:{..._0x380e91,..._0x53ee0b};}this['_bufferedUpdates']['set'](_0x2657d0,_0x380e91);}['_getFromVersion'](_0x275da0){const _0x710078=this['repository']['getRevisions']();_0x710078['reverse'](),_0x710078['shift']();const _0xeb35bf=_0x710078['find'](_0xdd05ef=>_0xdd05ef['toVersion']<=_0x275da0)['toVersion'];return _0xeb35bf<this['_startingVersion']?this['_startingVersion']:_0xeb35bf;}['_createInitialRevision'](_0x36f9cf){const _0x3eac78=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3eac78)this['_initialRevisionId']=_0x3eac78['id'];else{const _0x4c5949=!this['editor']['model']['document']['roots']['find'](_0xfa6360=>this['editor']['model']['hasContent'](_0xfa6360)),_0x315bb0=this['editor']['plugins']['get']('Users')['me']['id'],_0x3622d8=m(this['editor']['locale'],_0x4c5949?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x36f9cf,'to':_0x36f9cf,'id':this['_initialRevisionId'],'name':_0x3622d8,'creatorId':_0x315bb0});}}['_createCurrentRevision'](_0x2bcfcd){const _0x20b445=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x20b445),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2bcfcd,'to':_0x2bcfcd,'id':_0x20b445,'name':'','creatorId':null}));}['_makeRevision']({name:_0x298910,from:_0x172492,to:_0x27ebd5,creatorId:_0x4cb08c,id:_0x3b3cee}){const _0x3d60fc=this['buildRevisionData']({'from':_0x172492,'to':_0x27ebd5});_0x3d60fc['name']=_0x298910,_0x3d60fc['creatorId']=_0x4cb08c,_0x3d60fc['id']=_0x3b3cee;const _0x1e5e94=this['addRevisionData'](_0x3d60fc);return this['adapter']&&this['_bufferUpdate'](_0x3d60fc['id'],_0x3d60fc,!0x0),_0x1e5e94;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x54fe1c){return(_0x54fe1c=_0x54fe1c['filter'](_0x39ea99=>!_0x39ea99['name']||'revision-start'!==_0x39ea99['name']&&'revision-end'!==_0x39ea99['name']))['forEach'](_0x1eef48=>{'string'!=typeof _0x1eef48&&(_0x1eef48['children']=this['_removeRevisionMarkers'](_0x1eef48['children']),_0x1eef48['attributes']=_0x1eef48['attributes']['filter'](_0x39f718=>!_0x39f718[0x0]['startsWith']('data-revision-')));}),_0x54fe1c;}}function P(_0x23508c,_0x5a1ab0){const _0x29b580=_0x5a1ab0['editing']['view']['document'];if('string'==typeof _0x23508c)return new _0xf4d2d1(_0x29b580,_0x23508c);{const _0x18a9bb=_0x23508c['children']['map'](_0x20e004=>P(_0x20e004,_0x5a1ab0));return new(E[_0x23508c['type']]||_0x3a93a8)(_0x29b580,_0x23508c['name'],_0x23508c['attributes'],_0x18a9bb);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3f9e2b){this['editor']=_0x3f9e2b,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'](_0x29fd28){this['source']=_0x29fd28;const _0x103879=new Map(),_0x389846=new Map(),_0x2dde48=this['editor']['model']['document']['roots']['map'](_0x127185=>_0x127185['rootName']);for(const _0x191b84 of _0x2dde48){const _0x25add5=this['editor']['model']['document']['getRoot'](_0x191b84),_0x40f50d=T(_0x25add5);_0x103879['set'](_0x191b84,_0x40f50d),_0x389846['set'](_0x191b84,Object['fromEntries'](_0x25add5['getAttributes']()));}const _0x347742=Array['from'](this['editor']['model']['markers'])['map'](_0x1fe913=>[_0x1fe913['name'],_0x1fe913['getRange']()]),_0x24d3cf=this['source']['version'];this['_saveMetaData'](_0x24d3cf,_0x103879,_0x347742,_0x389846),this['_startingRevisionId']=this['_revisionId'];const _0x4b5fe8=new Map(),_0x4925c0=new Map();for(const _0x459de6 of _0x2dde48){const _0x1d44fe=F(_0x459de6);_0x4b5fe8['set'](_0x459de6,_0x1d44fe),_0x4925c0['set'](_0x459de6,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b5fe8,[],_0x4925c0);}['getData'](_0x35ae3b,_0x34b54a){if(this['_lastFrom']===_0x35ae3b&&this['_lastTo']<=_0x34b54a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x34b54a,!0x0);else{if(!this['_savedMetaData']['has'](_0x35ae3b)){const _0xe41c06=this['_getPreviousFrom'](_0x35ae3b);this['_calculateMetaData'](_0xe41c06,_0x35ae3b,!0x1);}this['_calculateMetaData'](_0x35ae3b,_0x34b54a,!0x0);}return this['_lastFrom']=_0x35ae3b,this['_lastTo']=_0x34b54a,this['_getState']();}['loadState'](_0x3b9055){this['_reset'](),this['_lastFrom']=_0x3b9055['fromVersion'],this['_lastTo']=_0x3b9055['toVersion'];for(const _0x513b38 in _0x3b9055['diffData']){const _0x3797ee=_0x3b9055['diffData'][_0x513b38]['attachChange'],_0x25a5b4=_0x377d2c(_0x3b9055['diffData'][_0x513b38]['attributesBefore'])||{},_0x59ea78=this['_makeModelFromViewString'](_0x3b9055['diffData'][_0x513b38]['deletions']);_0x59ea78['rootName']=_0x513b38,_0x59ea78['_isAttached']=!_0x3797ee||!_0x3797ee['isAttached'],_0x59ea78['isAttached']=()=>_0x59ea78['_isAttached'],this['_baseRoots']['set'](_0x513b38,_0x59ea78),this['_baseRootsAttributes']['set'](_0x513b38,_0x25a5b4),_0x3797ee&&this['_touchedRoots']['set'](_0x513b38,_0x3797ee);const _0x1f196e=this['_makeIdsRoot'](_0x59ea78);this['_baseIdsRoots']['set'](_0x513b38,_0x1f196e);for(const [_0x13f17f,_0x58e46c]of _0x59ea78['markers']){if(!_0x13f17f['startsWith']('revision:'))continue;const _0x15653f=_0x13f17f['split'](':')[0x2];for(const _0x2ce5c6 of _0x58e46c['getWalker']({'singleCharacters':!0x0})){const _0x5d6d9c=this['_getVidAttributeName'](_0x2ce5c6),_0x1b2d06='elementEnd'==_0x2ce5c6['type']?_0x2ce5c6['previousPosition']['path']['slice'](0x0,-0x1):_0x2ce5c6['previousPosition']['path'],_0x340901=_0x1f196e['getNodeByPath'](_0x1b2d06)['getAttribute'](_0x5d6d9c);this['_touched']['set'](_0x340901,{'userId':_0x15653f});}}}this['_startingRevisionId']=this['_revisionId'];const _0x23e1a9=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2c9a3c=>!this['_touched']['has'](_0x2c9a3c));let _0x22ea54=0x0;const _0xb3ab55=new Map();for(const _0x501b19 in _0x3b9055['diffData']){const _0x39ca72=_0x3b9055['diffData'][_0x501b19]['attachChange'],_0x5128b=_0x377d2c(_0x3b9055['diffData'][_0x501b19]['attributesAfter'])||{},_0x1fd786=this['_makeModelFromViewString'](_0x3b9055['diffData'][_0x501b19]['insertions']);_0x1fd786['rootName']=_0x501b19,_0x1fd786['_isAttached']=!_0x39ca72||_0x39ca72['isAttached'],_0x1fd786['isAttached']=()=>_0x1fd786['_isAttached'],this['_diffRoots']['set'](_0x501b19,_0x1fd786),this['_diffRootsAttributes']['set'](_0x501b19,_0x5128b);const _0x4d6860=this['_makeIdsRoot'](_0x1fd786,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x501b19,_0x4d6860),_0xb3ab55['set'](_0x501b19,_0x1fd786['isAttached']()?_0x5128b:{});for(const [_0x53274f,_0x1b9537]of _0x1fd786['markers']){if(!_0x53274f['startsWith']('revision:'))continue;const _0x604b6d=_0x53274f['split'](':')[0x2];for(const _0xa7c263 of _0x1b9537['getWalker']({'singleCharacters':!0x0})){const _0x1efe1f=this['_getVidAttributeName'](_0xa7c263),_0x2de0c7=this['_revisionId']++,_0x46dc9f='elementEnd'==_0xa7c263['type']?_0xa7c263['previousPosition']['path']['slice'](0x0,-0x1):_0xa7c263['previousPosition']['path'];_0x4d6860['getNodeByPath'](_0x46dc9f)['_setAttribute'](_0x1efe1f,_0x2de0c7),this['_touched']['set'](_0x2de0c7,{'userId':_0x604b6d});}}for(const _0x35a508 of this['editor']['model']['createRangeIn'](_0x1fd786)['getWalker']({'singleCharacters':!0x0})){const _0x25c8b8=this['_getVidAttributeName'](_0x35a508),_0x26ed14='elementEnd'==_0x35a508['type']?_0x35a508['previousPosition']['path']['slice'](0x0,-0x1):_0x35a508['previousPosition']['path'],_0x542698=_0x4d6860['getNodeByPath'](_0x26ed14);_0x542698['getAttribute'](_0x25c8b8)>0x0||_0x542698['_setAttribute'](_0x25c8b8,_0x23e1a9[_0x22ea54++]);}for(const [_0x212807,_0x3484f9]of _0x1fd786['markers'])_0x212807['startsWith']('revision:')||this['_markers']['set'](_0x212807,_0x3484f9);}const _0x5b1023=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x5b1023),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5b1023,0x1));const _0x4ae1a5=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4ae1a5),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4ae1a5,0x1));const _0x129e9a=Array['from'](this['_diffRoots'])['map'](([_0x48a6a1,_0xdd8132])=>[_0x48a6a1,T(_0xdd8132)]);this['_saveMetaData'](this['_lastTo'],_0x129e9a,this['_markers'],_0xb3ab55);}['_makeModelFromViewString'](_0x282df9){const _0x202637=JSON['parse'](_0x282df9),_0x41aa0e=this['editor']['editing']['view']['document'],_0x1aea55=new _0x17d136(_0x41aa0e,_0x202637['map'](_0x45b14c=>P(_0x45b14c,this['editor'])));return this['editor']['data']['toModel'](_0x1aea55);}['_saveMetaData'](_0x579ba4,_0x441761,_0x5f12c7,_0x5556e4){const _0x5ecd04=new Map(_0x441761),_0xde542f=new Map(_0x377d2c(_0x5556e4)),_0x4e09b5=new Map();for(const [_0x1860ae,_0x164adf]of _0x5f12c7)_0x4e09b5['set'](_0x1860ae,{'start':_0x164adf['start']['clone'](),'end':_0x164adf['end']['clone'](),'rootName':_0x164adf['root']['rootName']});this['_savedMetaData']['set'](_0x579ba4,{'roots':_0x5ecd04,'markers':_0x4e09b5,'rootsAttributes':_0xde542f});}['_removeMetaData'](_0x2db92a){this['_savedMetaData']['delete'](_0x2db92a);}['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'](_0x5ba0f4,_0x28ca46=null){let _0x113424=null;_0x5ba0f4['is']('documentFragment')||(_0x113424=new ut(_0x5ba0f4['name'],{'vid_start':null===_0x28ca46?this['_revisionId']++:_0x28ca46++}));const _0x5d188f=[];for(const _0x3f199c of _0x5ba0f4['getChildren']())if(_0x3f199c['is']('element')){_0x5d188f['push'](this['_makeIdsRoot'](_0x3f199c,_0x28ca46));const _0x4fec5e=_0x5d188f[_0x5d188f['length']-0x1];null!==_0x28ca46&&(_0x28ca46=_0x4fec5e['is']('element','$text')?_0x4fec5e['getAttribute']('vid')+0x1:_0x4fec5e['getAttribute']('vid_end')+0x1);}else{for(let _0x311389=0x0;_0x311389<_0x3f199c['offsetSize'];_0x311389++)_0x5d188f['push'](new ut('$text',{'vid':null===_0x28ca46?this['_revisionId']++:_0x28ca46++}));}if(_0x5ba0f4['is']('documentFragment')){const _0x4359a0=F(_0x5ba0f4['rootName']);return _0x4359a0['_insertChild'](0x0,_0x5d188f),_0x4359a0;}return _0x113424['_setAttribute']('vid_end',null===_0x28ca46?this['_revisionId']++:_0x28ca46++),_0x113424['_insertChild'](0x0,_0x5d188f),_0x113424;}['_calculateMetaData'](_0x1bb3c5,_0x268e58,_0x24b5e6){this['_reset']();const {roots:_0x4b5a79,markers:_0x66e1a9,rootsAttributes:_0x4e6327}=this['_savedMetaData']['get'](_0x1bb3c5);this['_baseRoots']=new Map(_0x4b5a79),this['_baseRootsAttributes']=new Map(_0x377d2c(_0x4e6327));for(const [_0x1d0600,_0x45c5bd]of this['_baseRoots'])if('$graveyard'!==_0x1d0600&&(this['_diffRoots']['set'](_0x1d0600,T(_0x45c5bd)),this['_diffRootsAttributes']=new Map(_0x377d2c(_0x4e6327)),_0x24b5e6)){const _0x21113c=this['_revisionId'];this['_idsRoots']['set'](_0x1d0600,this['_makeIdsRoot'](_0x45c5bd)),this['_baseIdsRoots']['set'](_0x1d0600,this['_makeIdsRoot'](_0x45c5bd,_0x21113c));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x24b5e6&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x34432a,_0x220fdc]of _0x66e1a9){const _0x1fb4f5=this['_baseRoots']['get'](_0x220fdc['rootName']),_0x18a00a=this['_diffRoots']['get'](_0x220fdc['rootName']),_0x14182c=new ft(this['_fixPosition'](_0x220fdc['start'],_0x1fb4f5),this['_fixPosition'](_0x220fdc['end'],_0x1fb4f5)),_0x42a4e2=this['_fixRange'](_0x14182c,_0x18a00a);_0x1fb4f5['markers']['set'](_0x34432a,_0x14182c),this['_markers']['set'](_0x34432a,_0x42a4e2);}this['_applyOperations'](_0x1bb3c5,_0x268e58,_0x24b5e6);}['_applyOperations'](_0x391e59,_0x523154,_0x3dd83e){for(const _0x1942a3 of this['source']['getOperations'](_0x391e59,_0x523154))this['_handleOperation'](_0x1942a3,_0x3dd83e);for(const _0xb36939 of this['_diffRoots']['values']())_0xb36939['markers']['clear']();for(const [_0xad3747,_0x2f99f8]of this['_markers']){this['_diffRoots']['get'](_0x2f99f8['root']['rootName'])['markers']['set'](_0xad3747,_0x2f99f8['clone']());}const _0x3dd16a=new Map(),_0x469b79=new Map();for(const [_0x4dc0b1,_0xb7f34b]of this['_diffRoots'])_0x3dd16a['set'](_0x4dc0b1,T(_0xb7f34b)),_0x469b79['set'](_0x4dc0b1,this['_diffRootsAttributes']['get'](_0x4dc0b1));this['_saveMetaData'](_0x523154,_0x3dd16a,this['_markers'],_0x469b79);}['_getPreviousFrom'](_0xb75fa0){const _0x120aa2=Array['from'](this['_savedMetaData']['keys']());_0x120aa2['sort']((_0x4613c9,_0x479506)=>_0x4613c9-_0x479506),_0x120aa2['reverse']();for(const _0x28a011 of _0x120aa2)if(_0x28a011<_0xb75fa0)return _0x28a011;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4d143c,_0x4c7fc7){const _0x7cf703=Array['from'](_0x4c7fc7['markers'])['map'](([_0x21305,_0x38a5e6])=>[_0x21305,this['_fixRange'](_0x38a5e6,_0x4d143c)]);_0x4d143c['markers']=new Map(_0x7cf703);}['_transformMarkers'](_0x45595a){for(const _0x16b8f0 of this['_markers']['values']()){const _0x5b75b5=_0x16b8f0['getTransformedByOperation'](_0x45595a),_0x54f99e=ft['_createFromRanges'](_0x5b75b5);_0x16b8f0['start']=_0x54f99e['start'],_0x16b8f0['end']=_0x54f99e['end'];}}['_handleOperation'](_0x3ef87f,_0x42713c){if('addRoot'!=_0x3ef87f['type']&&'detachRoot'!=_0x3ef87f['type']){if('insert'==_0x3ef87f['type']){const _0x2c4550=_0x3ef87f['position']['root']['rootName'];this['_diffRoots']['has'](_0x2c4550)||(this['_diffRoots']['set'](_0x2c4550,F(_0x2c4550,!0x0)),this['_diffRootsAttributes']['set'](_0x2c4550,{}),_0x42713c&&this['_idsRoots']['set'](_0x2c4550,F(_0x2c4550,!0x0)));}else{if('addRootAttribute'==_0x3ef87f['type']||'removeRootAttribute'==_0x3ef87f['type']||'changeRootAttribute'==_0x3ef87f['type'])return void this['_handleRootAttributeOperation'](_0x3ef87f);'marker'==_0x3ef87f['type']&&this['_handleMarkerOperation'](_0x3ef87f);}if('marker'!==_0x3ef87f['type']){const _0x4940fd=this['_cloneOperation'](_0x3ef87f,this['_diffRoots']);_0x4940fd['_execute'](),this['_transformMarkers'](_0x4940fd);}if(_0x42713c)switch(_0x3ef87f['type']){case'insert':this['_handleInsertOperation'](_0x3ef87f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3ef87f);break;case'merge':this['_handleMergeOperation'](_0x3ef87f);break;case'split':this['_handleSplitOperation'](_0x3ef87f);}}else this['_handleRootOperation'](_0x3ef87f,_0x42713c);}['_cloneOperation'](_0x43b60d,_0x2ea5cf){const _0x20d9d7=_0x43b60d['clone']();return _0x20d9d7['_authorId']=_0x43b60d['_authorId'],this['_fixOperation'](_0x20d9d7,_0x2ea5cf),_0x20d9d7;}['_getBaseVids'](_0x5e4f66){return _0x5e4f66['map'](_0x5bf166=>{const _0x30ece6=this['_getVidAttributeName'](_0x5bf166);return Number(_0x5bf166['item']['getAttribute'](_0x30ece6));});}['_generateTape'](_0x1e949e,_0x56fa25){if(_0x1e949e['is']('element','$text'))_0x56fa25['push']({'item':_0x1e949e,'type':'text'});else{_0x1e949e['is']('element')&&_0x56fa25['push']({'item':_0x1e949e,'type':'elementStart'});for(const _0x50ca9a of _0x1e949e['getChildren']())this['_generateTape'](_0x50ca9a,_0x56fa25);_0x1e949e['is']('element')&&_0x56fa25['push']({'item':_0x1e949e,'type':'elementEnd'});}return _0x56fa25;}['_getState'](){const _0x39f802=new Map(this['_touched']),_0x3598c5=new Map(_0x39f802),_0x225f36=new Map(),_0x4fe0ba={'insertions':{},'deletions':{}},_0x5c12c8={'insertions':{},'deletions':{}},_0x310f20=new Map(),_0x123a20=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x123a20['delete']('$graveyard');for(const _0x33fd6f of _0x123a20){const _0x2066cc=this['_diffRoots']['get'](_0x33fd6f)||F(_0x33fd6f,!0x1),_0x4674c7=this['_baseRoots']['get'](_0x33fd6f)||F(_0x33fd6f,!0x1);_0x2066cc['isAttached']()||_0x4674c7['isAttached']()?(_0x4fe0ba['insertions'][_0x33fd6f]=T(_0x2066cc),_0x4fe0ba['deletions'][_0x33fd6f]=T(_0x4674c7),this['_copyMarkers'](_0x4fe0ba['deletions'][_0x33fd6f],_0x4674c7),this['_copyMarkers'](_0x4fe0ba['insertions'][_0x33fd6f],_0x2066cc),_0x5c12c8['insertions'][_0x33fd6f]=this['_generateTape'](this['_idsRoots']['get'](_0x33fd6f),[]),_0x5c12c8['deletions'][_0x33fd6f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x33fd6f)||F(_0x33fd6f,!0x1),[])):_0x123a20['delete'](_0x33fd6f);}for(const _0x41ff51 of _0x123a20){const _0x35070c=_0x5c12c8['insertions'][_0x41ff51];for(const _0xb2901c of _0x35070c){const _0x4fa5a8=this['_getVidAttributeName'](_0xb2901c),_0x43f00b=_0xb2901c['item']['getAttribute'](_0x4fa5a8);_0x3598c5['delete'](_0x43f00b),_0x43f00b>=this['_startingRevisionId']&&_0x225f36['set'](_0x43f00b,_0x39f802['get'](_0x43f00b));}}for(const _0x15f79e of _0x123a20){const _0x5cf01b=_0x5c12c8['insertions'][_0x15f79e],_0x57f430=this['_getBaseVids'](_0x5c12c8['deletions'][_0x15f79e]);let _0x5d61ef=0x0;for(const _0x152412 of _0x5cf01b){const _0x5d629e=this['_getVidAttributeName'](_0x152412),_0x568367=_0x152412['item']['getAttribute'](_0x5d629e);if(!_0x225f36['has'](_0x568367)&&!_0x310f20['has'](_0x568367)){if(_0x3598c5['has'](_0x568367))_0x5d61ef++;else{if(_0x568367!=_0x57f430[_0x5d61ef]){const _0x570bf7=_0x39f802['get'](_0x568367)||_0x39f802['get'](_0x57f430[_0x5d61ef]);for(;_0x568367!=_0x57f430[_0x5d61ef];)_0x3598c5['has'](_0x57f430[_0x5d61ef])||(_0x310f20['set'](_0x57f430[_0x5d61ef],_0x570bf7),_0x39f802['set'](_0x57f430[_0x5d61ef],_0x570bf7)),_0x5d61ef++;}_0x5d61ef++;}}}}for(const _0x138e64 of _0x123a20){const _0x542348=_0x5c12c8['insertions'][_0x138e64];for(const _0x515155 of _0x542348){const _0xd0806=this['_getVidAttributeName'](_0x515155),_0x5c0ee1=_0x515155['item']['getAttribute'](_0xd0806);if(_0x310f20['has'](_0x5c0ee1)){const _0x6c2524=_0x310f20['get'](_0x5c0ee1);_0x3598c5['has'](_0x5c0ee1)||_0x3598c5['set'](_0x5c0ee1,{..._0x6c2524}),_0x225f36['set'](_0x5c0ee1,{..._0x6c2524});}}}for(const _0x54dee0 of _0x3598c5['keys']())_0x54dee0>=this['_startingRevisionId']&&_0x3598c5['delete'](_0x54dee0);const _0x7b50e0=new Map();for(const _0x1c1d54 of _0x123a20){let _0x1e59ad=_0x5c12c8['insertions'][_0x1c1d54];for(const _0x4f5668 of _0x1e59ad)if(_0x4f5668['item']['is']('element','tableCell')){const _0x20f1cc=this['_getVidAttributeName'](_0x4f5668),_0x30d429=_0x4f5668['item']['getAttribute'](_0x20f1cc);if(_0x225f36['has'](_0x30d429)){const _0x2268a5=_0x4f5668['item']['parent']['parent']['getAttribute']('vid_start'),_0x2908b2=_0x7b50e0['get'](_0x2268a5)||new Set();_0x2908b2['add'](_0x225f36['get'](_0x30d429)['userId']),_0x7b50e0['set'](_0x2268a5,_0x2908b2);}}_0x1e59ad=_0x5c12c8['deletions'][_0x1c1d54];for(const _0x37b278 of _0x1e59ad)if(_0x37b278['item']['is']('element','tableCell')){const _0x351b34=this['_getVidAttributeName'](_0x37b278),_0x3e8c85=_0x37b278['item']['getAttribute'](_0x351b34);if(_0x3598c5['has'](_0x3e8c85)){const _0x5d5c9b=_0x37b278['item']['parent']['parent']['getAttribute']('vid_start'),_0x5820af=_0x7b50e0['get'](_0x5d5c9b)||new Set();_0x5820af['add'](_0x3598c5['get'](_0x3e8c85)['userId']),_0x7b50e0['set'](_0x5d5c9b,_0x5820af);}}for(const _0x4868d4 of _0x7b50e0['keys']())(_0x225f36['has'](_0x4868d4)||_0x3598c5['has'](_0x4868d4))&&_0x7b50e0['delete'](_0x4868d4);}for(const _0x1d87b5 of _0x123a20){const _0x57df28=_0x5c12c8['insertions'][_0x1d87b5];let _0x5b6365=null,_0x4cf3db=null;for(const _0x138208 of _0x57df28){const _0x4b7424=this['_getVidAttributeName'](_0x138208),_0xfba688=_0x138208['item']['getAttribute'](_0x4b7424),_0x1059dd=_0x7b50e0['get'](_0xfba688);_0x1059dd&&'elementStart'==_0x138208['type']&&(_0x5b6365=Array['from'](_0x1059dd)[0x0],_0x4cf3db=_0x138208['item']['getAttribute']('vid_end')),_0x5b6365&&(_0x3598c5['set'](_0xfba688,{'userId':_0x5b6365}),_0x225f36['set'](_0xfba688,{'userId':_0x5b6365})),_0xfba688==_0x4cf3db&&(_0x5b6365=null,_0x4cf3db=null);}}const _0x13003d={},_0x2ca2fd=new Set();for(const _0x3dde8e of _0x123a20){const _0x40321e=_0x4fe0ba['deletions'][_0x3dde8e],_0x1fd578=_0x4fe0ba['insertions'][_0x3dde8e];for(const {userId:_0x256e44}of this['_touchedMarkers']['values']())null!==_0x256e44&&_0x2ca2fd['add'](_0x256e44);for(const {userId:_0x4638c7}of this['_touchedRoots']['values']())null!==_0x4638c7&&_0x2ca2fd['add'](_0x4638c7);this['_markChanges'](_0x1fd578,_0x5c12c8['insertions'][_0x3dde8e],_0x225f36,'insertion',_0x2ca2fd),this['_markChanges'](_0x40321e,_0x5c12c8['deletions'][_0x3dde8e],_0x3598c5,'deletion',_0x2ca2fd),_0x13003d[_0x3dde8e]={'insertions':this['_prepareViewToSave'](_0x1fd578),'deletions':this['_prepareViewToSave'](_0x40321e),'attachChange':this['_touchedRoots']['get'](_0x3dde8e)||null,'attributesBefore':_0x377d2c(this['_baseRootsAttributes']['get'](_0x3dde8e))||{},'attributesAfter':_0x377d2c(this['_diffRootsAttributes']['get'](_0x3dde8e))};}return{'diffData':_0x13003d,'authorsIds':Array['from'](_0x2ca2fd)};}['_processRootBeforeSave'](_0x270b19){for(const [,_0x1fda07]of _0x270b19['markers']){const _0x47aefb=_0x1fda07['start']['getAncestors']()['filter'](_0x3fad35=>'tableCell'==_0x3fad35['name']);for(const _0x1a484d of _0x47aefb)0x1==_0x1a484d['childCount']&&_0x1a484d['getChild'](0x0)['is']('element','paragraph')&&_0x1a484d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x284474){this['_processRootBeforeSave'](_0x284474);const _0x21cc8c=this['editor']['data']['toView'](_0x284474,{}),_0x1aca4c=Array['from'](_0x21cc8c['getChildren']())['map'](_0xea4e3=>this['_getViewJson'](_0xea4e3));return JSON['stringify'](_0x1aca4c);}['_getViewJson'](_0x3b502b){if(_0x3b502b['is']('$text'))return _0x3b502b['data'];{const _0x3618b2=_0x3b502b;return{'type':Object['keys'](E)['find'](_0x8cfa3a=>_0x3b502b instanceof E[_0x8cfa3a]),'name':_0x3618b2['name'],'attributes':Array['from'](_0x3618b2['getAttributes']()),'children':Array['from'](_0x3618b2['getChildren']())['map'](_0x787ced=>this['_getViewJson'](_0x787ced))};}}['_markChanges'](_0x2422f5,_0x66a1fc,_0x25e155,_0x3c4f42,_0x577516){let _0x167dea=null,_0x6f16a9=null,_0x34f1b7=0x0;const _0x4737ff=this['editor']['model'];for(let _0x5dec10=0x0;_0x5dec10<_0x66a1fc['length'];_0x5dec10++){const _0x51801f=this['_getVidAttributeName'](_0x66a1fc[_0x5dec10]),_0x4d6580=_0x66a1fc[_0x5dec10]['item']['getAttribute'](_0x51801f),_0x45f659=_0x25e155['get'](_0x4d6580),_0x4c419a=_0x5dec10==_0x66a1fc['length']-0x1;(!_0x167dea&&_0x45f659&&(_0x167dea=_0x45f659,_0x6f16a9=_0x66a1fc[_0x5dec10]),_0x167dea&&(!_0x45f659||_0x45f659['userId']!=_0x167dea['userId']))&&(_0x338953(_0x45f659,B(_0x6f16a9,_0x2422f5,_0x4737ff),B(_0x66a1fc[_0x5dec10],_0x2422f5,_0x4737ff)),_0x167dea=_0x45f659||null,_0x6f16a9=_0x45f659?_0x66a1fc[_0x5dec10]:null),_0x167dea&&_0x4c419a&&_0x338953(_0x45f659,B(_0x6f16a9,_0x2422f5,_0x4737ff),J(_0x66a1fc[_0x5dec10],_0x2422f5,_0x4737ff));}function _0x338953(_0x2c609b,_0x506d24,_0x2172c3){const _0x1f220e=_0x167dea['userId'],_0x54c1f8='revision:'+_0x3c4f42+':'+_0x1f220e+':'+_0x34f1b7++,_0x5bd36c=_0x4737ff['createRange'](_0x506d24,_0x2172c3);_0x2422f5['markers']['set'](_0x54c1f8,_0x5bd36c),null!==_0x1f220e&&_0x577516['add'](_0x1f220e);}}['_getVidAttributeName'](_0x14be62){switch(_0x14be62['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x59e7a9,_0xbc15b6){_0x59e7a9['baseVersion']=null;for(const _0x44155e in _0x59e7a9){const _0x41b78e=_0x59e7a9[_0x44155e];if(_0x41b78e instanceof vt){const _0xa4dbd6=_0xbc15b6['get'](_0x41b78e['root']['rootName']);_0x59e7a9[_0x44155e]=this['_fixPosition'](_0x41b78e,_0xa4dbd6);}if(_0x41b78e instanceof ft){const _0x425cbf=_0xbc15b6['get'](_0x41b78e['root']['rootName']);_0x59e7a9[_0x44155e]=this['_fixRange'](_0x41b78e,_0x425cbf);}'root'===_0x44155e&&(_0x59e7a9['root']=_0xbc15b6['get'](_0x59e7a9['root']['rootName']));}}['_fixRange'](_0x5f4313,_0x59b7f3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5f4313['start'],_0x59b7f3),this['_fixPosition'](_0x5f4313['end'],_0x59b7f3));}['_fixPosition'](_0xed2a44,_0x1f9163){return this['editor']['model']['createPositionFromPath'](_0x1f9163,_0xed2a44['path'],_0xed2a44['stickiness']);}['_handleInsertOperation'](_0x31edb0){const _0x25ebd4=this['_idsRoots']['get'](_0x31edb0['position']['root']['rootName']),_0x138e76=this['_fixPosition'](_0x31edb0['position'],_0x25ebd4),_0x29cf5e=null===_0x31edb0['_authorId']?null:_0x31edb0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x500b0e=_0x138e76['parent'],_0x3bcccc=this['_revisionId'],_0x1577fa=[];for(const _0x2beded of _0x31edb0['nodes'])if(_0x2beded['is']('element'))_0x1577fa['push'](this['_makeIdsRoot'](_0x2beded));else{for(let _0x59d1a1=0x0;_0x59d1a1<_0x2beded['offsetSize'];_0x59d1a1++)_0x1577fa['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x290f5b=this['_revisionId'];for(let _0x1c6971=_0x3bcccc;_0x1c6971<_0x290f5b;_0x1c6971++)this['_touched']['set'](_0x1c6971,{'userId':_0x29cf5e});_0x500b0e['_insertChild'](_0x138e76['offset'],_0x1577fa);}['_handleMoveOperation'](_0x1549f1){(_0x1549f1=this['_cloneOperation'](_0x1549f1,this['_idsRoots']))['_execute']();const _0x440698=null===_0x1549f1['_authorId']?null:_0x1549f1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5dee84=_0x1549f1['getMovedRangeStart'](),_0xd14ab4=_0x5dee84['parent'],_0x3ea7da=_0x5dee84['offset'];!function _0x1902c9(_0x4f2165,_0x199d24,_0x104951,_0x303209){for(let _0x2ac40e=_0x104951;_0x2ac40e<_0x303209;_0x2ac40e++){const _0x18139c=_0x199d24['getChild'](_0x2ac40e);_0x18139c['is']('element','$text')?_0x4f2165['set'](_0x18139c['getAttribute']('vid'),{'userId':_0x440698}):(_0x4f2165['set'](_0x18139c['getAttribute']('vid_start'),{'userId':_0x440698}),_0x1902c9(_0x4f2165,_0x18139c,0x0,_0x18139c['childCount']),_0x4f2165['set'](_0x18139c['getAttribute']('vid_end'),{'userId':_0x440698}));}}(this['_touched'],_0xd14ab4,_0x3ea7da,_0x3ea7da+_0x1549f1['howMany']);}['_handleMergeOperation'](_0x551ad7){const _0x2af88e=null===(_0x551ad7=this['_cloneOperation'](_0x551ad7,this['_idsRoots']))['_authorId']?null:_0x551ad7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47567f=_0x551ad7['targetPosition']['parent'],_0x1e2286=_0x551ad7['sourcePosition']['parent'],_0x5595da=_0x47567f['getAttribute']('vid_end'),_0x18c461=_0x1e2286['getAttribute']('vid_start');_0x47567f['_setAttribute']('vid_end',_0x1e2286['getAttribute']('vid_end')),_0x1e2286['_setAttribute']('vid_end',_0x5595da),this['_touched']['set'](_0x18c461,{'userId':_0x2af88e}),this['_touched']['set'](_0x5595da,{'userId':_0x2af88e}),_0x551ad7['_execute']();}['_handleSplitOperation'](_0x548ea2){const _0x33134b=null===(_0x548ea2=this['_cloneOperation'](_0x548ea2,this['_idsRoots']))['_authorId']?null:_0x548ea2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e3d67=_0x548ea2['graveyardPosition'],_0x9fbdc9=_0x548ea2['splitPosition']['parent'];_0x548ea2['_execute']();const _0x106aac=_0x9fbdc9['getAttribute']('vid_end'),_0xee16ac=_0x548ea2['insertionPosition']['nodeAfter'];if(_0x1e3d67){const _0x45c9d9=_0xee16ac['getAttribute']('vid_end'),_0x43a425=_0x9fbdc9['getAttribute']('vid_end');_0x9fbdc9['_setAttribute']('vid_end',_0x45c9d9),_0xee16ac['_setAttribute']('vid_end',_0x43a425),this['_touched']['set'](_0x9fbdc9['getAttribute']('vid_end'),{'userId':_0x33134b}),this['_touched']['set'](_0xee16ac['getAttribute']('vid_start'),{'userId':_0x33134b});}else{const _0x1e02ab=this['_revisionId']++,_0x31fd7e=this['_revisionId']++;_0x9fbdc9['_setAttribute']('vid_end',_0x1e02ab),_0xee16ac['_setAttribute']('vid_start',_0x31fd7e),_0xee16ac['_setAttribute']('vid_end',_0x106aac),this['_touched']['set'](_0x1e02ab,{'userId':_0x33134b}),this['_touched']['set'](_0x31fd7e,{'userId':_0x33134b});}}['_handleMarkerOperation'](_0x360e1b){if(!_0x360e1b['affectsData'])return;const _0x355187=(_0x360e1b=this['_cloneOperation'](_0x360e1b,this['_diffRoots']))['oldRange']?_0x360e1b['oldRange']['root']:null,_0x2ea7dc=_0x360e1b['newRange']?_0x360e1b['newRange']['root']:null;_0x355187&&this['_markers']['delete'](_0x360e1b['name']),_0x2ea7dc&&this['_markers']['set'](_0x360e1b['name'],_0x360e1b['newRange']['clone']());const _0x352090=null===_0x360e1b['_authorId']?null:_0x360e1b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e4f83=_0x360e1b['name'];if(!this['_touchedMarkers']['has'](_0x1e4f83))return void this['_touchedMarkers']['set'](_0x1e4f83,{'range':_0x360e1b['oldRange'],'userId':_0x352090});const _0x58b36b=this['_touchedMarkers']['get'](_0x1e4f83),_0x395929=_0x58b36b['range'],_0x7a486a=_0x360e1b['newRange'];null==_0x395929&&null==_0x7a486a||_0x395929&&_0x7a486a&&_0x395929['isEqual'](_0x7a486a)?this['_touchedMarkers']['delete'](_0x360e1b['name']):_0x58b36b['userId']=_0x352090;}['_handleRootOperation'](_0xaf49b8,_0x3ced84){this['_diffRoots']['has'](_0xaf49b8['rootName'])?this['_diffRoots']['get'](_0xaf49b8['rootName'])['_isAttached']=_0xaf49b8['isAdd']:(this['_diffRoots']['set'](_0xaf49b8['rootName'],F(_0xaf49b8['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xaf49b8['rootName'],{}),_0x3ced84&&this['_idsRoots']['set'](_0xaf49b8['rootName'],F(_0xaf49b8['rootName'],!0x0)));const _0x4a34dc=null===_0xaf49b8['_authorId']?null:_0xaf49b8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x100880=this['_touchedRoots']['get'](_0xaf49b8['rootName']);_0x100880&&_0x100880['userId']===_0x4a34dc?this['_touchedRoots']['delete'](_0xaf49b8['rootName']):this['_touchedRoots']['set'](_0xaf49b8['rootName'],{'userId':_0x4a34dc,'isAttached':_0xaf49b8['isAdd']});}['_handleRootAttributeOperation'](_0x2dd743){const _0x3bcdd4=this['_diffRootsAttributes']['get'](_0x2dd743['root']['rootName']);null===_0x2dd743['newValue']?delete _0x3bcdd4[_0x2dd743['key']]:_0x3bcdd4[_0x2dd743['key']]=_0x2dd743['newValue'];}}function T(_0x2ed531){const _0x427821=F(_0x2ed531['rootName'],_0x2ed531['isAttached']());for(const _0x5014ae of _0x2ed531['getChildren']()){const _0x1f580f=_0x5014ae['_clone'](!0x0);_0x427821['_appendChild'](_0x1f580f);}return _0x427821;}function F(_0x4ff572,_0x4d0186=!0x0){const _0x26a28f=new gt();return _0x26a28f['rootName']=_0x4ff572,_0x26a28f['_isAttached']=_0x4d0186,_0x26a28f['isAttached']=()=>_0x26a28f['_isAttached'],_0x26a28f;}function B(_0x4878dc,_0x46b191,_0xd4cca2){const _0x507336='elementEnd'==_0x4878dc['type']?_0xd4cca2['createPositionAt'](_0x4878dc['item'],'end'):_0xd4cca2['createPositionBefore'](_0x4878dc['item']);return _0xd4cca2['createPositionFromPath'](_0x46b191,_0x507336['path'],_0x507336['stickiness']);}function J(_0x49c7b9,_0x29e958,_0x31f5d0){const _0x4bc755='elementStart'==_0x49c7b9['type']?_0x31f5d0['createPositionAt'](_0x49c7b9['item'],0x0):_0x31f5d0['createPositionAfter'](_0x49c7b9['item']);return _0x31f5d0['createPositionFromPath'](_0x29e958,_0x4bc755['path'],_0x4bc755['stickiness']);}class os extends _0x1119f9{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x23d698,_0x1a66ee){super(_0x23d698),this['focusTracker']=new _0x41476a(),this['keystrokes']=new _0x72e416(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x1a66ee),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'](),_0x582dad({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2828a4=_0x53dabd=>_0x53dabd['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2828a4),this['keystrokes']['set']('arrowleft',_0x2828a4),this['keystrokes']['set']('arrowup',_0x2828a4),this['keystrokes']['set']('arrowdown',_0x2828a4);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xfca1ce){this['revisionNameInputView']['fieldView']['element']['value']=_0xfca1ce['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x3750b7){const _0x11d4ee=new at(this['locale'],ti),_0x5ef0b4=_0x11d4ee['fieldView'];_0x5ef0b4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x17d8a0=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x3750b7&&(_0x17d8a0+='\x20('+m(this['locale'],'optional')+')'),(_0x11d4ee['label']=_0x17d8a0,_0x5ef0b4['on']('input',()=>{this['revisionNameInputValue']=_0x5ef0b4['element']['value']['trim']();}),_0x11d4ee);}}class f extends _0x45244f{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5617dd=this['editor'],_0x59d84c=_0x5617dd['plugins']['get']('RevisionTracker');_0x5617dd['ui']['componentFactory']['add']('revisionHistory',_0x2baa45=>{const _0x23005b=_0x369c57(_0x2baa45),_0x1f2102=_0x23005b['panelView']['children'],_0xfa8202=new _0x1cc131(_0x2baa45),_0x4858bc=new te(_0x2baa45),_0x1ce870=new _0x521e80(_0x2baa45),_0x131e82=new te(_0x2baa45),_0x3ab9b1=new _0x521e80(_0x2baa45);return _0x23005b['bind']('isEnabled')['to'](_0x59d84c,'isReady',_0x59d84c,'isEnabled',_0x5617dd,'isReadOnly',(_0x583fcd,_0xa852ff,_0x51091e)=>_0x583fcd&&_0xa852ff&&!_0x51091e),_0x23005b['buttonView']['set']({'icon':_0x3ba4d1,'label':m(_0x2baa45,'Revision\x20history'),'tooltip':!0x0}),_0x1ce870['set']({'label':m(_0x2baa45,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1ce870['bind']('isEnabled')['to'](_0x59d84c,'isReady',_0x59d84c,'isEnabled',_0x5617dd,'isReadOnly',(_0x5383b1,_0xefaa6,_0x42419d)=>_0x5383b1&&_0xefaa6&&!_0x42419d),_0x1ce870['on']('execute',()=>this['_showDialog']()),_0x3ab9b1['set']({'label':m(_0x2baa45,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3ab9b1['bind']('isEnabled')['to'](_0x59d84c,'isReady',_0x5617dd,'isReadOnly',(_0x5f5dbd,_0xffb3e9)=>_0x5f5dbd&&!_0xffb3e9),_0x3ab9b1['on']('execute',()=>{_0x5617dd['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x23005b['isOpen']=!0x1,_0x5617dd['editing']['view']['focus']();}),_0x4858bc['children']['add'](_0x1ce870),_0x131e82['children']['add'](_0x3ab9b1),_0xfa8202['role']='menu',_0xfa8202['items']['addMany']([_0x4858bc,_0x131e82]),_0x1f2102['add'](_0xfa8202),_0x23005b;}),_0x5617dd['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x885d3c=this['editor'],_0x27efe6=_0x885d3c['locale'],_0x1bac39=new _0xfe8b5f(_0x27efe6),_0x311bfb=new _0x2382a3(_0x27efe6);_0x1bac39['buttonView']['set']({'icon':_0x3ba4d1,'label':m(_0x27efe6,'Revision\x20history')});const _0x2be497=new _0x5675cc(_0x27efe6,_0x1bac39),_0x3e2b5b=new _0x5c7168(_0x27efe6);_0x3e2b5b['set']({'label':m(_0x27efe6,'Save\x20current\x20revision')}),_0x3e2b5b['delegate']('execute')['to'](_0x1bac39),_0x3e2b5b['on']('execute',()=>{this['_showDialog']();}),_0x2be497['children']['add'](_0x3e2b5b),_0x311bfb['items']['add'](_0x2be497);const _0x46e8ec=new _0x5675cc(_0x27efe6,_0x1bac39),_0x188e02=new _0x5c7168(_0x27efe6);return _0x188e02['set']({'label':m(_0x27efe6,'Open\x20revision\x20history')}),_0x188e02['delegate']('execute')['to'](_0x1bac39),_0x188e02['on']('execute',()=>{_0x885d3c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x46e8ec['children']['add'](_0x188e02),_0x311bfb['items']['add'](_0x46e8ec),_0x1bac39['panelView']['children']['add'](_0x311bfb),_0x1bac39;}['_showDialog'](){const _0x29da67=this['editor'],_0x6e843f=_0x29da67['locale'],_0x4edad9=_0x29da67['plugins']['get']('Dialog'),_0x3483df=_0x29da67['plugins']['get']('RevisionTracker');function _0x3c085e(_0x2730ac){_0x29da67['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2730ac['revisionName']?_0x2730ac['revisionNameInputView']['errorText']=m(_0x6e843f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x29da67['plugins']['get'](u)['saveRevision']({'name':_0x2730ac['revisionName']}),_0x4edad9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3c085e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4edad9['show']({'id':'revisionSave','title':m(_0x6e843f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x29da67['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4edad9['hide']()},{'label':m(_0x29da67['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2ade83){_0x2ade83['bind']('isEnabled')['to'](_0x3483df,'isReady',_0x3483df,'isEnabled',_0x29da67,'isReadOnly',(_0x129739,_0x5926ce,_0x22486a)=>_0x129739&&_0x5926ce&&!_0x22486a);},'onExecute':()=>_0x3c085e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x361e9a=this['editor'],_0x2c95f7=_0x361e9a['locale'];this['_saveRevisionFormView']=new os(_0x2c95f7,_0x361e9a['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x1119f9{['changeId'];['_model'];constructor(_0x256376,_0x2a07e2){super(_0x256376),this['_model']=_0x2a07e2,this['changeId']=_0x2a07e2['id'];const _0x5f4d40=this['bindTemplate'],_0x3ac8f0=m(_0x256376,_0x2a07e2['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2a07e2['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2a07e2['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x5f4d40['to']('type',_0x5ed35c=>'ck-revision-change__'+_0x5ed35c)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x3ac8f0}]},{'text':'\x20'+_0x2a07e2['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0xd86b79(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x5889c3){super(),this['id']=_0x5889c3['id']||_0x5b3171(),this['author']=_0x5889c3['author'],this['type']=_0x5889c3['type'],this['data']=_0x5889c3['data']||{},this['rootName']=_0x5889c3['rootName'],this['set']('createdAt',_0x5889c3['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x1f0061,_0x32e76a){this['newRevisionId']=_0x1f0061,this['oldRevisionId']=_0x32e76a,this['changes']=new _0x3d47b3();}['_setChanges'](_0x88ae50){for(const _0x53380d of _0x88ae50)this['changes']['add'](_0x53380d);}}const Y={'c':_0x2acc3d,'a':_0x1690f0,'e':_0x510328,'r':_0x1a03fd,'u':_0x91a45c};class d extends _0x45244f{['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[_0x499f02,_0x367829,j];}constructor(_0x1cb210){super(_0x1cb210),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',(_0x5e3171,_0x233d74,_0xf912b2)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x22518f=>{for(const _0x5bc0b9 of this['editor']['editing']['view']['document']['roots'])_0xf912b2?_0x22518f['removeClass']('ck-editor__editable__overlay',_0x5bc0b9):_0x22518f['addClass']('ck-editor__editable__overlay',_0x5bc0b9);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xee288a=>null!==_0xee288a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x644fcd,_0x268ffd,_0x3620f7)=>_0x644fcd&&_0x3620f7?_0x268ffd['changes']['getIndex'](_0x3620f7):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x20ded5,_0x5a46cd)=>_0x20ded5?_0x5a46cd['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x367829);}['init'](){const _0x1f7812=this['editor'],_0x4c327c=new yt(_0x1f7812,{'direction':'backward'}),_0xa26441=new yt(_0x1f7812,{'direction':'forward'});(_0x1f7812['commands']['add']('showPreviousChange',_0x4c327c),_0x1f7812['commands']['add']('showNextChange',_0xa26441),_0x1f7812['commands']['add']('restoreRevision',new _t(_0x1f7812)),this['on']('change:numberOfChanges',()=>{_0x4c327c['refresh'](),_0xa26441['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f7812['enableReadOnlyMode']('revision-viewer'),_0x1f7812['plugins']['has']('WidgetToolbarRepository'))&&_0x1f7812['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4a66f0){await this['loadRevisionData'](_0x4a66f0);const _0x2afe06={};for(const _0x340ace in _0x4a66f0['diffData']){if(_0x4a66f0['diffData'][_0x340ace]['attachChange']&&!_0x4a66f0['diffData'][_0x340ace]['attachChange']['isAttached'])continue;const _0x2c05e0=this['_removeRevisionMarkers'](JSON['parse'](_0x4a66f0['diffData'][_0x340ace]['insertions'])),_0x179317=this['editor']['editing']['view']['document'],_0x857eb9=new _0x17d136(_0x179317,_0x2c05e0['map'](_0x5f378a=>this['_getViewObj'](_0x5f378a)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2afe06[_0x340ace]=this['editor']['data']['processor']['toData'](_0x857eb9),this['editor']['data']['processor']['useFillerType']('default');}return _0x2afe06;}async['getRevisionRootsAttributes'](_0x2bcbb4){await this['loadRevisionData'](_0x2bcbb4);const _0x4a8506={};for(const _0x427543 in _0x2bcbb4['diffData'])_0x2bcbb4['diffData'][_0x427543]['attachChange']&&!_0x2bcbb4['diffData'][_0x427543]['attachChange']['isAttached']||(_0x4a8506[_0x427543]=_0x2bcbb4['diffData'][_0x427543]['attributesAfter']||{});return _0x4a8506;}['_removeRevisionMarkers'](_0x4e57e7){return(_0x4e57e7=_0x4e57e7['filter'](_0xdc53af=>!_0xdc53af['name']||'revision-start'!==_0xdc53af['name']&&'revision-end'!==_0xdc53af['name']))['forEach'](_0x406ca0=>{'string'!=typeof _0x406ca0&&(_0x406ca0['children']=this['_removeRevisionMarkers'](_0x406ca0['children']),_0x406ca0['attributes']=_0x406ca0['attributes']['filter'](_0x230242=>!_0x230242[0x0]['startsWith']('data-revision-')));}),_0x4e57e7;}async['compare'](_0xc6f59a,_0x1ddf31,_0x5e408d=!0x1){if(!this['isEnabled'])return;const _0x5eb786=this['diff'],_0x43b0be=this['repository'],_0x227f45='string'==typeof _0xc6f59a?_0x43b0be['getRevision'](_0xc6f59a):_0xc6f59a,_0xdc14d='string'==typeof _0x1ddf31?_0x43b0be['getRevision'](_0x1ddf31):_0x1ddf31,_0x48b813=_0x227f45['id'],_0x5052f9=_0xdc14d?_0xdc14d['id']:null;if(!_0x5e408d&&this['diff']&&this['diff']['newRevisionId']===_0x48b813&&this['diff']['oldRevisionId']===_0x5052f9)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x48b813,_0x5052f9);const _0x22e7c9=this['_getRevisionsRange'](_0x227f45,_0xdc14d,!0x0)['map'](_0x2a7169=>this['loadRevisionData'](_0x2a7169));return _0x22e7c9['push'](new Promise(_0x18af09=>{setTimeout(_0x18af09,0x14);})),Promise['all'](_0x22e7c9)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x4abe12=this['_getDiff'](_0x48b813,_0x5052f9);for(const _0x3d7077 of _0x4abe12['changes'])this['_changeIdToChange']['set'](_0x3d7077['id'],_0x3d7077);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x31086f=>{for(const _0x4fbe5b of this['editor']['model']['document']['getRootNames']())_0x31086f['detachRoot'](_0x4fbe5b);for(const _0x250aaa of Object['keys'](_0x4abe12['model'])){const _0x5dba75=_0x31086f['addRoot'](_0x250aaa);for(const _0x1a0f62 of Object['keys'](_0x4abe12['attributes'][_0x250aaa]))_0x31086f['setAttribute'](_0x1a0f62,_0x4abe12['attributes'][_0x250aaa][_0x1a0f62],_0x5dba75);_0x31086f['insert'](_0x4abe12['model'][_0x250aaa],_0x5dba75,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x4abe12['changes'])),this['isReady']=!0x0;})['catch'](_0x41468d=>{console['error'](_0x41468d),this['_cleanUp'](),_0x5eb786&&(this['diff']=_0x5eb786),this['isReady']=!0x0;});}['addRevisionData'](_0x3bf7b9,_0x40d2d2){const _0x3ffda7=this['repository']['createRevision'](_0x3bf7b9);return _0x3ffda7['on']('_update',(_0x48ccca,_0x287118,_0x164391)=>_0x40d2d2(_0x287118,_0x164391,_0x3ffda7)),this['repository']['addRevision'](_0x3ffda7),_0x3ffda7;}['loadRevisionData'](_0x1ef334){if(!_0x1ef334||_0x1ef334['diffData'])return Promise['resolve']();{const _0x39edfd=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x39edfd,'revisionId':_0x1ef334['id']})['then'](_0xa9b441=>{_0x1ef334['_update']({'diffData':_0xa9b441['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},_0x1d38de=>{for(const _0x5b2d34 of this['editor']['model']['document']['getRootNames']())_0x1d38de['detachRoot'](_0x5b2d34);});}['_sortAndFilterDiffChanges'](_0x2e543c){const _0x1dcfd0=[],_0xfe1a1b=new Map();for(const _0xefee5f of this['editor']['model']['document']['getRootNames']()){const _0x480d79=this['editor']['editing']['view']['getDomRoot'](_0xefee5f);if(!_0x480d79)continue;const _0xbea575=_0x480d79['getClientRects']()['item'](0x0);_0xbea575&&(_0x1dcfd0['push'](_0xefee5f),_0xfe1a1b['set'](_0xefee5f,_0xbea575));}return _0x1dcfd0['sort']((_0x4b20f8,_0x2a704d)=>{const _0x4547dc=_0xfe1a1b['get'](_0x4b20f8),_0x1c8959=_0xfe1a1b['get'](_0x2a704d);return _0x4547dc['y']-_0x1c8959['y']||_0x4547dc['x']-_0x1c8959['x'];}),(_0x2e543c=_0x2e543c['filter'](_0x28801f=>_0x1dcfd0['includes'](_0x28801f['rootName'])))['sort']((_0x59ed49,_0x3519a8)=>_0x1dcfd0['indexOf'](_0x59ed49['rootName'])-_0x1dcfd0['indexOf'](_0x3519a8['rootName'])),_0x2e543c;}['_makeTape'](_0x3c3d04){const _0x30f312=Array['from'](_0x3c3d04['markers'])['filter'](([_0x252f55,_0xae688e])=>_0x252f55['startsWith']('revision:')&&!_0xae688e['isCollapsed']),_0x427c1a=Array['from'](this['editor']['model']['createRangeIn'](_0x3c3d04)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x30f312['length'])for(const _0x2e7e7c of _0x427c1a){const [_0x34c75e,_0xee9e6f]=_0x30f312[0x0],[,_0x5455cf,_0x3339dc]=_0x34c75e['split'](':');if(_0xee9e6f['end']['isEqual'](_0x2e7e7c['nextPosition'])&&_0x30f312['shift'](),(_0x2e7e7c['previousPosition']['isEqual'](_0xee9e6f['start'])||_0x2e7e7c['previousPosition']['isAfter'](_0xee9e6f['start']))&&('insertion'==_0x5455cf?_0x2e7e7c['isAdded']={'userId':_0x3339dc}:'deletion'==_0x5455cf&&(_0x2e7e7c['isRemoved']={'userId':_0x3339dc})),0x0==_0x30f312['length'])break;}return _0x427c1a;}['_refreshStartEndIndex'](_0x2fd048){const _0x2e5d58=new Map();for(let _0x4a7992=0x0;_0x4a7992<_0x2fd048['length'];_0x4a7992++)'text'===_0x2fd048[_0x4a7992]['type']?(_0x2fd048[_0x4a7992]['item']['startIndex']=_0x4a7992,_0x2fd048[_0x4a7992]['item']['endIndex']=_0x4a7992):('elementStart'===_0x2fd048[_0x4a7992]['type']?_0x2fd048[_0x4a7992]['item']['startIndex']=_0x4a7992:'elementEnd'===_0x2fd048[_0x4a7992]['type']&&(_0x2fd048[_0x4a7992]['item']['endIndex']=_0x4a7992),_0x2e5d58['set'](_0x2fd048[_0x4a7992]['id'],_0x4a7992));for(const _0x5cafa4 of _0x2e5d58['values']())'elementStart'===_0x2fd048[_0x5cafa4]['type']?_0x2fd048[_0x5cafa4]['item']['endIndex']=_0x2e5d58['get'](_0x2fd048[_0x5cafa4]['pairId']):'elementEnd'===_0x2fd048[_0x5cafa4]['type']&&(_0x2fd048[_0x5cafa4]['item']['startIndex']=_0x2e5d58['get'](_0x2fd048[_0x5cafa4]['pairId']));}['_processTape'](_0x53b58b){for(let _0x49c2b4=0x0;_0x49c2b4<_0x53b58b['length'];_0x49c2b4++){if('elementStart'===_0x53b58b[_0x49c2b4]['type'])_0x53b58b[_0x49c2b4]['item']['startIndex']=_0x49c2b4;else{if('elementEnd'===_0x53b58b[_0x49c2b4]['type']){_0x53b58b[_0x49c2b4]['item']['endIndex']=_0x49c2b4;const _0x63e5f=_0x53b58b[_0x49c2b4]['item']['startIndex'];_0x53b58b[_0x63e5f]['pairId']=_0x53b58b[_0x49c2b4]['id'],_0x53b58b[_0x49c2b4]['pairId']=_0x53b58b[_0x63e5f]['id'];}else _0x53b58b[_0x49c2b4]['item']['startIndex']=_0x49c2b4,_0x53b58b[_0x49c2b4]['item']['endIndex']=_0x49c2b4,_0x53b58b[_0x49c2b4]['pairId']=null;}_0x53b58b[_0x49c2b4]['markersStart']||(_0x53b58b[_0x49c2b4]['markersStart']=[],_0x53b58b[_0x49c2b4]['markersEnd']=[]);}}['_markInsertions'](_0xcb521f,_0x19e1c1){const _0x3fcca2=_0xcb521f['filter'](_0x4be195=>!_0x4be195['isAdded']);for(let _0x49729d=0x0;_0x49729d<_0x19e1c1['length'];_0x49729d++)_0x19e1c1[_0x49729d]['isAdded']&&(_0x3fcca2[_0x49729d]['isAdded']=_0x19e1c1[_0x49729d]['isAdded']);}['_makeModelFromViewString'](_0x3c31aa){const _0x5b0e1c=JSON['parse'](_0x3c31aa),_0x63852d=this['editor']['editing']['view']['document'],_0x1be2b3=new _0x17d136(_0x63852d,_0x5b0e1c['map'](_0x2a326b=>this['_getViewObj'](_0x2a326b)));return this['editor']['data']['toModel'](_0x1be2b3);}['_getViewObj'](_0x345ffd){const _0x2cf872=this['editor']['editing']['view']['document'];if('string'==typeof _0x345ffd)return new _0xf4d2d1(_0x2cf872,_0x345ffd);{const _0xeec1c8=_0x345ffd['children']['map'](_0xe25e94=>this['_getViewObj'](_0xe25e94));return new(Y[_0x345ffd['type']]||_0x3a93a8)(_0x2cf872,_0x345ffd['name'],_0x345ffd['attributes'],_0xeec1c8);}}['_getDiff'](_0x162418,_0x503da4=null){const _0x408d4a=this['repository']['getRevision'](_0x162418),_0x3ad950=_0x503da4?this['repository']['getRevision'](_0x503da4):null,_0x533ac5=this['_getRevisionsRange'](_0x408d4a,_0x3ad950),_0x23d804=_0x533ac5[_0x533ac5['length']-0x1],_0x1224da=new Map(),_0x16c077={'model':{},'attributes':{},'changes':[]},_0x108c63=new Set(),_0xdee3bc=new Map();for(let _0x73d3c5=_0x533ac5['length']-0x1;_0x73d3c5>=0x0;_0x73d3c5--){const _0x1c62fe=_0x533ac5[_0x73d3c5];for(const _0x528f76 of Object['keys'](_0x1c62fe['diffData']))if(_0x1c62fe['diffData'][_0x528f76]['attachChange']){const _0x5d94e4=_0x1c62fe['diffData'][_0x528f76]['attachChange'];_0x5d94e4['isAttached']?(_0x108c63['add'](_0x528f76),_0xdee3bc['has'](_0x528f76)&&_0xdee3bc['get'](_0x528f76)['userId']==_0x5d94e4['userId']?_0xdee3bc['delete'](_0x528f76):_0xdee3bc['set'](_0x528f76,_0x5d94e4)):_0xdee3bc['has'](_0x528f76)?(_0x108c63['delete'](_0x528f76),_0xdee3bc['delete'](_0x528f76)):(_0x108c63['add'](_0x528f76),_0xdee3bc['set'](_0x528f76,_0x5d94e4));}else _0x108c63['add'](_0x528f76);}for(const _0x2848af of _0x108c63){const _0x428dea=_0xdee3bc['has'](_0x2848af)&&!_0xdee3bc['get'](_0x2848af)['isAttached'];let _0x4509c6=_0x428dea?_0x533ac5['length']-0x1:0x0;const _0x296aa4=_0x428dea?-0x1:0x1;for(;_0x533ac5[_0x4509c6];){const _0x246168=_0x533ac5[_0x4509c6];if(_0x246168['diffData'][_0x2848af]){const _0x13ecf5=_0x428dea?_0x246168['diffData'][_0x2848af]['attributesBefore']:_0x246168['diffData'][_0x2848af]['attributesAfter'];_0x16c077['attributes'][_0x2848af]=_0x13ecf5?_0x377d2c(_0x13ecf5):{};break;}_0x4509c6+=_0x296aa4;}}for(const _0x15a5b3 of _0x533ac5){_0x15a5b3['model']={};for(const _0x4a4bdf of _0x15a5b3['authors'])_0x1224da['set'](_0x4a4bdf['id'],_0x4a4bdf);for(const _0x277e86 of _0x108c63){const _0x2a062b=_0x15a5b3['diffData'][_0x277e86]?_0x15a5b3['diffData'][_0x277e86]['insertions']:'[]',_0x18cf54=_0x15a5b3['diffData'][_0x277e86]?_0x15a5b3['diffData'][_0x277e86]['deletions']:'[]';_0x15a5b3['model'][_0x277e86]={'insertions':this['_makeModelFromViewString'](_0x2a062b),'deletions':this['_makeModelFromViewString'](_0x18cf54)};}}for(const _0x75f4e of _0x108c63){let _0x589916=null,_0x4d6b51=0x0;const _0x4ab496=new Map(Array['from'](_0x408d4a['model'][_0x75f4e]['insertions']['markers'])['filter'](([_0x20c449])=>!_0x20c449['startsWith']('revision:')));let _0x592b6d=0x0;for(const _0x149ebe of _0x533ac5){const _0x4b73a5=this['_makeTape'](_0x149ebe['model'][_0x75f4e]['insertions']);_0x149ebe==_0x408d4a?(_0x589916=_0x4b73a5,_0x4d6b51=_0x589916['length'],_0x589916['forEach'](_0x440bbd=>{_0x440bbd['id']=_0x592b6d++;}),this['_processTape'](_0x589916)):this['_markInsertions'](_0x589916,_0x4b73a5);const _0x3acc21=_0x589916['filter'](_0x5cc7bd=>!_0x5cc7bd['isAdded'])['map'](_0x5af4a6=>_0x5af4a6['id']);let _0xa388b2=0x0;const _0x5502b9=this['_makeTape'](_0x149ebe['model'][_0x75f4e]['deletions']);_0x5502b9['forEach'](_0x3a5fcd=>{_0x3a5fcd['isRemoved']?_0x3a5fcd['id']=_0x4d6b51++:_0x3a5fcd['id']=_0x3acc21[_0xa388b2++];}),this['_processTape'](_0x5502b9),this['_setDistance'](_0x589916,'isAdded'),this['_setDistance'](_0x5502b9,'isRemoved'),_0x149ebe==_0x408d4a&&this['_markMarkers'](_0x589916,_0x4ab496),_0x589916=this['_joinTapes'](_0x589916,_0x5502b9),this['_refreshStartEndIndex'](_0x589916),this['_setDistance'](_0x589916,'isRemoved');}_0x589916=_0x589916['filter'](_0x54ea8c=>!(_0x54ea8c['isAdded']&&_0x54ea8c['isRemoved']));const _0x4d7c62=new Map(_0x23d804['model'][_0x75f4e]['deletions']['markers']),_0x1ed129=new Set(_0x4ab496['keys']());for(const _0x1001ae of _0x4d7c62['keys']())_0x1ed129['delete'](_0x1001ae);this['_markSuggestions'](_0x589916,_0x1ed129),this['_fixObsoleteTags'](_0x589916),_0x589916=this['_removeMissingPairs'](_0x589916),_0x589916=this['_markMismatchedRemovedTags'](_0x589916),_0x589916=this['_removeUnsupportedChanges'](_0x589916);const {root:_0x1a2a5c,changes:_0x379713}=this['_makeModelFromTape'](_0x589916,_0x1224da,_0x75f4e);_0x16c077['model'][_0x75f4e]=_0x1a2a5c;const _0x4a28f8=_0xdee3bc['get'](_0x75f4e);if(_0x4a28f8){const _0xa10b9f=_0x1224da['get'](_0x4a28f8['userId']),_0x3ab134=new r({'author':_0xa10b9f,'type':_0x4a28f8['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x75f4e});_0x379713['unshift'](_0x3ab134),_0x16c077['attributes'][_0x75f4e]['revisionHistoryAttachChange']=_0x3ab134['id'];}_0x16c077['changes']=_0x16c077['changes']['concat'](_0x379713);}return _0x16c077;}['_markMarkers'](_0x41bc01,_0x282c6){for(let _0x351c36=0x0;_0x351c36<_0x41bc01['length'];_0x351c36++)for(const [_0x3f47e8,_0x1495da]of _0x282c6)_0x1495da['start']['isEqual'](_0x41bc01[_0x351c36]['previousPosition'])&&_0x41bc01[_0x351c36]['markersStart']['push'](_0x3f47e8),_0x1495da['end']['isEqual'](_0x41bc01[_0x351c36]['nextPosition'])&&_0x41bc01[_0x351c36]['markersEnd']['push'](_0x3f47e8);}['_joinTapes'](_0x56a174,_0x40179a){let _0x5e087c=[],_0x420b14=0x0,_0x5d36f7=0x0;for(;_0x420b14<_0x56a174['length']||_0x5d36f7<_0x40179a['length'];){const _0x4a26b5=_0x56a174[_0x420b14]||{},_0xe05cfc=_0x40179a[_0x5d36f7]||{};if(_0x4a26b5['id']==_0xe05cfc['id'])_0x420b14++,_0x5d36f7++,_0x5e087c['push'](_0x4a26b5);else{if(_0xe05cfc['isRemoved']&&_0x4a26b5['isAdded']){const {commonTape:_0x3c85c4,iEnd:_0x3b81cf,jEnd:_0x3b92ec}=this['_threeWayMerge'](_0x56a174,_0x420b14,_0x40179a,_0x5d36f7);_0x5e087c=_0x5e087c['concat'](_0x3c85c4),_0x420b14=_0x3b81cf,_0x5d36f7=_0x3b92ec;}else _0xe05cfc['isRemoved']?(_0x5d36f7++,_0x5e087c['push'](_0xe05cfc)):(_0x420b14++,_0x5e087c['push'](_0x4a26b5));}}return _0x5e087c;}['_markSuggestions'](_0x261c71,_0x5c170a){const _0x566a73=[];for(let _0x4ed555=0x0;_0x4ed555<_0x261c71['length'];_0x4ed555++){for(let _0x2ae753=0x0;_0x2ae753<_0x261c71[_0x4ed555]['markersStart']['length'];_0x2ae753++){const _0x59d3a9=_0x261c71[_0x4ed555]['markersStart'][_0x2ae753];if(!_0x5c170a['has'](_0x59d3a9))continue;const {group:_0x224e9b,type:_0xfe4adf,authorId:_0x2d8559}=_0x36a69e(_0x59d3a9);'revision-suggestion'!=_0x224e9b||'insertion'!=_0xfe4adf&&'deletion'!=_0xfe4adf||(_0x566a73['unshift']({'type':_0xfe4adf,'name':_0x59d3a9,'userId':_0x2d8559}),_0x261c71[_0x4ed555]['markersStart']['splice'](_0x2ae753,0x1),_0x2ae753--);}_0x2b467b(_0x261c71[_0x4ed555]);for(let _0x5e8136=0x0;_0x5e8136<_0x261c71[_0x4ed555]['markersEnd']['length'];_0x5e8136++){const _0x215c4f=_0x261c71[_0x4ed555]['markersEnd'][_0x5e8136];if(!_0x5c170a['has'](_0x215c4f))continue;const {group:_0x1cb704,type:_0x3be342}=_0x36a69e(_0x215c4f);if('revision-suggestion'!=_0x1cb704||'insertion'!=_0x3be342&&'deletion'!=_0x3be342)continue;_0x261c71[_0x4ed555]['markersEnd']['splice'](_0x5e8136,0x1),_0x5e8136--;const _0x1a116a=_0x566a73['findIndex'](_0x4c376f=>_0x4c376f['name']==_0x215c4f);_0x1a116a>-0x1&&_0x566a73['splice'](_0x1a116a,0x1);}}function _0x36a69e(_0x29491e){const _0x59e9d1=_0x29491e['split'](':');return{'group':_0x59e9d1[0x0],'type':_0x59e9d1[0x1],'subType':_0x59e9d1['length']>=0x5?_0x59e9d1[0x2]:null,'id':_0x59e9d1['length']<0x5?_0x59e9d1[0x2]:_0x59e9d1[0x3],'authorId':_0x59e9d1['length']<0x5?_0x59e9d1[0x3]:_0x59e9d1[0x4],'markerCount':0x6==_0x59e9d1['length']?_0x59e9d1[0x5]:null};}function _0x2b467b(_0x3b7441){for(let _0x37a592=0x0;_0x37a592<_0x566a73['length'];_0x37a592++){if(_0x3b7441['isAdded']&&'insertion'==_0x566a73[_0x37a592]['type'])return _0x3b7441['isAddSuggestion']=_0x566a73[_0x37a592],void delete _0x3b7441['isAdded'];if(!_0x3b7441['isAdded']&&!_0x3b7441['isRemoved']&&'deletion'==_0x566a73[_0x37a592]['type'])return void(_0x3b7441['isRemoveSuggestion']=_0x566a73[_0x37a592]);}}}['_setDistance'](_0x2231ea,_0x366d42){let _0x4fae10=0x0,_0x427a45=!0x1;const _0x56adc3=new Map();for(const _0x3f5d28 of _0x2231ea)_0x3f5d28[_0x366d42]?_0x427a45&&(_0x4fae10++,_0x427a45=!0x1):(_0x4fae10++,_0x427a45=!0x0),_0x56adc3['set'](_0x3f5d28['id'],_0x4fae10);for(let _0x2408bf=0x0;_0x2408bf<_0x2231ea['length'];_0x2408bf++){if('isRemoved'==_0x366d42&&_0x2231ea[_0x2408bf]['isAdded']||'isAdded'==_0x366d42&&_0x2231ea[_0x2408bf]['isRemoved'])continue;if('text'==_0x2231ea[_0x2408bf]['type']){_0x2231ea[_0x2408bf]['distance']=0x0;continue;}const _0x2665c0=_0x56adc3['get'](_0x2231ea[_0x2408bf]['pairId']),_0x230214=_0x56adc3['get'](_0x2231ea[_0x2408bf]['id']);_0x2231ea[_0x2408bf]['distance']=_0x2665c0-_0x230214;}}['_getRevisionsRange'](_0x228df8,_0xd8bea4,_0x40e2d5=!0x1){const _0x1637ab=[];let _0x80056b=this['repository']['getIndex'](_0x228df8),_0xae6f8=this['repository']['getIndex'](_0xd8bea4);for(-0x1==_0xae6f8&&(_0xae6f8=this['repository']['_revisions']['length'],_0x40e2d5=!0x1);_0x80056b<_0xae6f8;)_0x1637ab['push'](this['repository']['getRevision'](_0x80056b)),_0x80056b++;return _0x40e2d5&&_0x1637ab['push'](this['repository']['getRevision'](_0x80056b)),_0x1637ab;}['_threeWayMerge'](_0x1de72b,_0xa1110d,_0xdb3535,_0x36faed){const _0x448d83=this['editor']['model']['schema'];let _0x1d7366=_0xa1110d;for(;_0x1de72b[_0x1d7366]&&_0x1de72b[_0x1d7366]['isAdded'];)_0x1d7366++;let _0x4b9a4f=_0x36faed;for(;_0xdb3535[_0x4b9a4f]&&_0xdb3535[_0x4b9a4f]['isRemoved'];)_0x4b9a4f++;_0x416208(_0x1de72b,_0xa1110d,_0x1d7366),_0x416208(_0xdb3535,_0x36faed,_0x4b9a4f);const _0x59d71c=_0xdb3535['slice'](_0x36faed,_0x4b9a4f)['concat'](_0x1de72b['slice'](_0xa1110d,_0x1d7366));return _0x59d71c['sort']((_0x42f3d7,_0x26ecdc)=>_0x42f3d7['side']!=_0x26ecdc['side']?_0x42f3d7['side']-_0x26ecdc['side']:_0x42f3d7['level']!=_0x26ecdc['level']?_0x42f3d7['level']-_0x26ecdc['level']:_0x42f3d7['distance']!=_0x26ecdc['distance']?_0x26ecdc['distance']-_0x42f3d7['distance']:!!_0x42f3d7['isAdded']!=!!_0x26ecdc['isAdded']?-0x1==_0x42f3d7['side']||0x0==_0x42f3d7['side']?_0x42f3d7['isAdded']?-0x1:0x1:_0x42f3d7['isAdded']?0x1:-0x1:_0x42f3d7['index']-_0x26ecdc['index']),{'commonTape':_0x59d71c,'iEnd':_0x1d7366,'jEnd':_0x4b9a4f};function _0x416208(_0x1fd7f9,_0x3c28bc,_0xe0925b){let _0x5d37a2=-0x1,_0x34711f=Number['POSITIVE_INFINITY'],_0x558b2e=!0x0;for(let _0x686754=_0x3c28bc;_0x686754<_0xe0925b;_0x686754++)if(_0x448d83['isInline'](_0x1fd7f9[_0x686754]['item'])||(_0x558b2e=!0x1),_0x1fd7f9[_0x686754]['item']['startIndex']<_0x3c28bc&&(_0x5d37a2=_0x686754),_0x1fd7f9[_0x686754]['item']['endIndex']>=_0xe0925b){_0x34711f=_0x686754;break;}_0x558b2e&&(_0x5d37a2=_0xe0925b-0x1);for(let _0x14ec10=_0x3c28bc;_0x14ec10<_0xe0925b;_0x14ec10++)_0x1fd7f9[_0x14ec10]['side']=_0x14ec10<=_0x5d37a2?-0x1:_0x14ec10<_0x34711f?0x0:0x1,_0x1fd7f9[_0x14ec10]['index']=_0x14ec10;let _0x1bcc42=0x0;for(let _0x418988=_0x3c28bc;_0x418988<=_0x5d37a2;_0x418988++)0x0==_0x1fd7f9[_0x418988]['distance']?_0x1fd7f9[_0x418988]['level']=_0x1bcc42:(_0x1bcc42++,_0x1fd7f9[_0x418988]['level']=_0x1bcc42,_0x1bcc42++);for(let _0x1b8fec=_0x3c28bc;_0x1b8fec<_0xe0925b;_0x1b8fec++)0x0==_0x1fd7f9[_0x1b8fec]['side']&&(_0x1fd7f9[_0x1b8fec]['level']=_0x1bcc42);_0x1bcc42=0x0;for(let _0x5716f9=_0xe0925b-0x1;_0x5716f9>=_0x34711f;_0x5716f9--)0x0==_0x1fd7f9[_0x5716f9]['distance']?_0x1fd7f9[_0x5716f9]['level']=_0x1bcc42:(_0x1bcc42--,_0x1fd7f9[_0x5716f9]['level']=_0x1bcc42,_0x1bcc42--);}}['_fixObsoleteTags'](_0x77280e){const _0x9c3b7b=new Map(),_0x2002cb=this['editor']['model']['schema'];for(let _0x527199=0x1;_0x527199<_0x77280e['length'];_0x527199++){let _0x268fe6,_0x2ad5c4,_0x544349;const _0x25dea1=_0x77280e[_0x527199],_0x3201be=_0x77280e[_0x527199-0x1];if('text'==_0x25dea1['type'])continue;if(_0x25dea1['type']!=_0x3201be['type'])continue;if(!_0x2002cb['isBlock'](_0x3201be['item'])||_0x2002cb['isLimit'](_0x3201be['item']))continue;if(!_0x2002cb['isBlock'](_0x25dea1['item'])||_0x2002cb['isLimit'](_0x25dea1['item']))continue;if((_0x77280e[_0x527199]['isAdded']||_0x77280e[_0x527199]['isAddSuggestion'])&&_0x77280e[_0x527199-0x1]['isRemoved'])_0x268fe6=_0x77280e[_0x527199],_0x2ad5c4=_0x77280e[_0x527199-0x1],_0x544349=_0x527199-0x1;else{if(!_0x77280e[_0x527199]['isRemoved']||!_0x77280e[_0x527199-0x1]['isAdded']&&!_0x77280e[_0x527199-0x1]['isAddSuggestion'])continue;_0x268fe6=_0x77280e[_0x527199-0x1],_0x2ad5c4=_0x77280e[_0x527199],_0x544349=_0x527199;}const _0x41e5fd=_0x268fe6['level']==_0x2ad5c4['level'],_0x4a3d12=Math['abs'](_0x268fe6['level'])<Math['abs'](_0x2ad5c4['level'])&&0x0==_0x2ad5c4['distance'];(_0x41e5fd||_0x4a3d12)&&(_0x9c3b7b['set'](_0x2ad5c4['id'],_0x268fe6['id']),_0x77280e['splice'](_0x544349,0x1),_0x527199--,_0x268fe6['isAdded']=!0x1);}for(let _0x3def77=0x0;_0x3def77<_0x77280e['length'];_0x3def77++)_0x9c3b7b['has'](_0x77280e[_0x3def77]['pairId'])&&(_0x77280e[_0x3def77]['pairId']=_0x9c3b7b['get'](_0x77280e[_0x3def77]['pairId']));}['_removeMissingPairs'](_0x58a62a){const _0x508788=new Set(_0x58a62a['map'](_0x34a1ba=>_0x34a1ba['id']));for(let _0x5d07e8=0x0;_0x5d07e8<_0x58a62a['length'];_0x5d07e8++)_0x508788['has'](_0x58a62a[_0x5d07e8]['pairId'])||0x0==_0x58a62a[_0x5d07e8]['distance']||(_0x58a62a[_0x5d07e8]['isIncorrect']=!0x0);return _0x58a62a['filter'](_0xed8607=>!_0xed8607['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4793f4){const _0xa37003=new Set();for(let _0x483a1d=0x0;_0x483a1d<_0x4793f4['length'];_0x483a1d++){if(_0xa37003['has'](_0x4793f4[_0x483a1d]['id'])&&_0x4793f4[_0x483a1d]['isRemoved']&&(_0x4793f4[_0x483a1d]['isIncorrect']=!0x0),_0x4793f4[_0x483a1d]['isIncorrect'])continue;if(0x0==_0x4793f4[_0x483a1d]['distance'])continue;if('elementStart'!=_0x4793f4[_0x483a1d]['type'])continue;if(null==_0x4793f4[_0x483a1d]['pairId'])continue;let _0xad6848=_0x483a1d+0x1,_0x1f2b8e=0x0;for(;_0x4793f4[_0xad6848]['id']!=_0x4793f4[_0x483a1d]['pairId'];)'elementStart'==_0x4793f4[_0xad6848]['type']?_0x1f2b8e++:'elementEnd'==_0x4793f4[_0xad6848]['type']&&_0x1f2b8e--,_0xad6848++;if(0x0!=_0x1f2b8e){if(_0x4793f4[_0x483a1d]['isRemoved'])_0x4793f4[_0x483a1d]['isIncorrect']=!0x0;else{for(;_0xad6848!=_0x483a1d;)_0x4793f4[_0xad6848]['isRemoved']&&0x0!=_0x4793f4[_0xad6848]['distance']&&(_0x4793f4[_0xad6848]['isIncorrect']=!0x0,_0xa37003['add'](_0x4793f4[_0xad6848]['pairId'])),_0xad6848--;}}}return _0x4793f4['filter'](_0xaabf6b=>!_0xaabf6b['isIncorrect']);}['_removeUnsupportedChanges'](_0x1fb50c){const _0x5d70f8=this['editor']['model']['schema'];for(let _0x135c48=0x0;_0x135c48<_0x1fb50c['length'];_0x135c48++){if(!(_0x1fb50c[_0x135c48]['isAdded']||_0x1fb50c[_0x135c48]['isAddSuggestion']||_0x1fb50c[_0x135c48]['isRemoved']||_0x1fb50c[_0x135c48]['isRemoveSuggestion']))continue;if(0x0==_0x1fb50c[_0x135c48]['distance'])continue;const _0x215231=_0x1fb50c[_0x135c48]['item'];_0x5d70f8['isBlock'](_0x215231)||_0x5d70f8['isLimit'](_0x215231)||(_0x1fb50c[_0x135c48]['isAdded']&&delete _0x1fb50c[_0x135c48]['isAdded'],_0x1fb50c[_0x135c48]['isAddSuggestion']&&delete _0x1fb50c[_0x135c48]['isAddSuggestion'],_0x1fb50c[_0x135c48]['isRemoveSuggestion']&&delete _0x1fb50c[_0x135c48]['isRemoveSuggestion'],_0x1fb50c[_0x135c48]['isRemoved']&&(_0x1fb50c[_0x135c48]['isIncorrect']=!0x0));}return _0x1fb50c['filter'](_0x4ad0db=>!_0x4ad0db['isIncorrect']);}['_makeModelFromTape'](_0x1f61c3,_0x44fad0,_0x3c602f){const _0x465f2e=new gt(),_0x540d77=[],_0x311b95=new Map(),_0x5238a0=this['editor']['model'],_0x2810a7=_0x5238a0['schema'],_0x5ee14e=[_0x465f2e],_0x3c066c={},_0x47c484={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x251c37=null;const _0x2d7421=[0x0];for(let _0x112349=0x0;_0x112349<_0x1f61c3['length'];_0x112349++)if('elementStart'===_0x1f61c3[_0x112349]['type']){_0x1f61c3[_0x112349]['previousPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421);const _0x28c3f7=new ut(_0x1f61c3[_0x112349]['item']['name'],_0x1f61c3[_0x112349]['item']['getAttributes']());_0x5ee14e[0x0]['_appendChild'](_0x28c3f7),_0x2d7421['push'](0x0),_0x5ee14e['unshift'](_0x28c3f7),_0x1f61c3[_0x112349]['nextPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421);}else'elementEnd'===_0x1f61c3[_0x112349]['type']?(_0x5ee14e['shift'](),_0x1f61c3[_0x112349]['previousPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421),_0x2d7421['pop'](),_0x2d7421[_0x2d7421['length']-0x1]++,_0x1f61c3[_0x112349]['nextPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421)):(_0x1f61c3[_0x112349]['previousPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421),_0x251c37?_0x251c37['_data']+=_0x1f61c3[_0x112349]['item']['data']:_0x251c37=new wt(_0x1f61c3[_0x112349]['item']['data'],_0x1f61c3[_0x112349]['item']['getAttributes']()),_0x1f61c3[_0x112349+0x1]&&'text'===_0x1f61c3[_0x112349+0x1]['type']&&_0x184a4a(_0x251c37,_0x1f61c3[_0x112349+0x1]['item'])||(_0x5ee14e[0x0]['_appendChild'](_0x251c37),_0x251c37=null),_0x2d7421[_0x2d7421['length']-0x1]+=_0x1f61c3[_0x112349]['item']['offsetSize'],_0x1f61c3[_0x112349]['nextPosition']=_0x5238a0['createPositionFromPath'](_0x465f2e,_0x2d7421));for(let _0x48dea8=0x0;_0x48dea8<_0x1f61c3['length'];_0x48dea8++){const _0x276c23=_0x1f61c3[_0x48dea8]['previousPosition'],_0x9184ae=_0x1f61c3[_0x48dea8]['nextPosition'];for(const _0x1686b4 of _0x1f61c3[_0x48dea8]['markersStart'])_0x311b95['set'](_0x1686b4,{'start':_0x276c23,'end':null});_0x412789('isRemoveSuggestion',_0x48dea8,_0x276c23,_0x9184ae),_0x412789('isAddSuggestion',_0x48dea8,_0x276c23,_0x9184ae),_0x412789('isRemoved',_0x48dea8,_0x276c23,_0x9184ae),_0x412789('isAdded',_0x48dea8,_0x276c23,_0x9184ae);for(const _0x39c2c0 of _0x1f61c3[_0x48dea8]['markersEnd']){_0x311b95['get'](_0x39c2c0)['end']=_0x9184ae;}}for(const [_0x397881,_0x5c0776]of _0x311b95){const _0x5ee2ae=this['editor']['model']['createRange'](_0x5c0776['start'],_0x5c0776['end']);_0x465f2e['markers']['set'](_0x397881,_0x5ee2ae);}return _0x540d77['sort']((_0x22b4b7,_0x342f8e)=>{const _0x164779=_0x465f2e['markers']['get']('revision:'+_0x22b4b7['id']),_0x5ad109=_0x465f2e['markers']['get']('revision:'+_0x342f8e['id']);return _0x164779['start']['isBefore'](_0x5ad109['start'])?-0x1:_0x164779['start']['isAfter'](_0x5ad109['start'])?0x1:_0x164779['end']['isBefore'](_0x5ad109['end'])?-0x1:_0x164779['end']['isAfter'](_0x5ad109['end'])?0x1:'add'===_0x22b4b7['type']?-0x1:0x1;}),{'root':_0x465f2e,'changes':_0x540d77};function _0x412789(_0x4cf872,_0x184196,_0x59546c,_0x55c9ec){const _0x23a1ed=!!_0x1f61c3[_0x184196][_0x4cf872],_0x2f7b3e=_0x23a1ed?_0x1f61c3[_0x184196][_0x4cf872]['userId']:null,_0x2c231e=_0x184196===_0x1f61c3['length']-0x1,_0x2a7c30=_0x47c484[_0x4cf872][0x0],_0x1a25c7=_0x2810a7['isObject'](_0x1f61c3[_0x184196]['item']);!_0x3c066c[_0x4cf872]&&_0x23a1ed?_0x3c066c[_0x4cf872]={'start':_0x59546c,'tapeItem':_0x1f61c3[_0x184196],'userId':_0x2f7b3e,'type':_0x4cf872}:_0x3c066c[_0x4cf872]&&!_0x23a1ed?(_0x3c066c[_0x4cf872]['end']=_0x59546c,_0x53107d(_0x3c066c[_0x4cf872]),_0x3c066c[_0x4cf872]=null):_0x3c066c[_0x4cf872]&&_0x23a1ed&&_0x3c066c[_0x4cf872]['userId']!==_0x2f7b3e&&(_0x3c066c[_0x4cf872]['end']=_0x59546c,_0x2a7c30&&_0x2a7c30['userId']===_0x3c066c[_0x4cf872]['userId']||_0x53107d(_0x3c066c[_0x4cf872]),_0x3c066c[_0x4cf872]={'start':_0x59546c,'tapeItem':_0x1f61c3[_0x184196],'userId':_0x2f7b3e,'type':_0x4cf872}),_0x3c066c[_0x4cf872]&&_0x1a25c7&&('elementStart'!==_0x1f61c3[_0x184196]['type']||_0x2a7c30&&_0x2a7c30['userId']===_0x2f7b3e||_0x47c484[_0x4cf872]['unshift']({'userId':_0x2f7b3e,'object':_0x1f61c3[_0x184196]['item'],'change':_0x3c066c[_0x4cf872]}),'elementEnd'===_0x1f61c3[_0x184196]['type']&&_0x2a7c30&&_0x2a7c30['object']===_0x1f61c3[_0x184196]['item']&&(_0x47c484[_0x4cf872]['shift'](),_0x3c066c[_0x4cf872]=_0x2a7c30['change'])),_0x3c066c[_0x4cf872]&&_0x2c231e&&(_0x3c066c[_0x4cf872]['end']=_0x55c9ec,_0x53107d(_0x3c066c[_0x4cf872]),_0x3c066c[_0x4cf872]=null);}function _0x53107d({start:_0x3a5e60,end:_0x4991a4,tapeItem:_0x189c04,userId:_0x4dba1a,type:_0x14fb33}){const _0x29717c=_0x189c04['item'],_0x3f3a2a=_0x5238a0['schema']['isBlock'](_0x29717c)&&!_0x5238a0['schema']['isLimit'](_0x29717c),_0x8cea51=_0x3a5e60['nodeAfter']==_0x4991a4['parent']&&_0x4991a4['isAtStart'];if(_0x3f3a2a&&_0x8cea51)return;const _0x1d1396=_0x5238a0['createRange'](_0x3a5e60,_0x4991a4),_0x496ea5=_0x44fad0['get'](_0x4dba1a),_0xc60b93=new r({'author':_0x496ea5,'type':'isAdded'==_0x14fb33||'isAddSuggestion'==_0x14fb33?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x14fb33||'isRemoveSuggestion'==_0x14fb33},'createdAt':new Date(),'rootName':_0x3c602f});_0x540d77['push'](_0xc60b93),_0x465f2e['markers']['set']('revision:'+_0xc60b93['id'],_0x1d1396);}function _0x184a4a(_0x569f03,_0x34a256){const _0x20e017=_0x569f03['getAttributes'](),_0x277d3d=_0x34a256['getAttributes']();for(const _0xe96ce6 of _0x20e017){if(_0xe96ce6[0x1]!==_0x34a256['getAttribute'](_0xe96ce6[0x0]))return!0x1;_0x277d3d['next']();}return _0x277d3d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x589c35=>{const _0x50a5f0=_0x589c35['markerName']['split'](':')[0x1],_0x2abfe8=this['_getChangeFromId'](_0x50a5f0);if(!_0x2abfe8)return null;const _0x2b64dc='add'==_0x2abfe8['type']?'insertion':'deletion',_0x1bded8=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2b64dc];return _0x2abfe8['data']['isSuggestion']&&_0x1bded8['push']('ck-suggestion-marker-'+_0x2b64dc+'-new'),this['activeChange']==_0x2abfe8&&_0x1bded8['push']('ck-suggestion-marker--active'),{'classes':_0x1bded8,'attributes':{'data-change-id':_0x50a5f0}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x2bcf9c=>{_0x2bcf9c['on']('element:pre',(_0x145af5,_0x36bb11,_0x45f0cf)=>{const _0x1d5e80=_0x36bb11['viewItem']['getChild'](0x0);if(!_0x1d5e80||!_0x1d5e80['is']('element','code'))return;if(!_0x45f0cf['consumable']['consume'](_0x1d5e80,{'attributes':['vid_start','vid_end']}))return;const _0x4dcf57=_0x36bb11['modelRange']['start']['nodeAfter'];_0x45f0cf['writer']['setAttribute']('vid_start',_0x1d5e80['getAttribute']('vid_start'),_0x4dcf57),_0x45f0cf['writer']['setAttribute']('vid_end',_0x1d5e80['getAttribute']('vid_end'),_0x4dcf57);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4306fc=>{_0x4306fc['on']('element',(_0x95bbd3,_0x2120e7,_0xc74236)=>{if(!_0xc74236['consumable']['consume'](_0x2120e7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2120e7['modelRange']['isCollapsed'])return;const _0x3a818d=_0x2120e7['modelRange']['start']['nodeAfter'];_0x3a818d['hasAttribute']('vid_start')||_0x3a818d['hasAttribute']('vid')||(_0xc74236['writer']['setAttribute']('vid_start',_0x2120e7['viewItem']['getAttribute']('vid_start'),_0x3a818d),_0xc74236['writer']['setAttribute']('vid_end',_0x2120e7['viewItem']['getAttribute']('vid_end'),_0x3a818d));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x420d7b=>_0x420d7b['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x15d3a2,[,_0x173cf9])=>{['vid_start','vid_end','vid']['includes'](_0x173cf9)&&(_0x15d3a2['return']=!0x0,_0x15d3a2['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c38ef=>{_0x1c38ef['on']('attribute:vid',(_0xf0efb5,_0x2dce1d,_0x290441)=>{if('\x20'!=_0x2dce1d['item']['data']||_0x2dce1d['item']['parent']['maxOffset']>0x1)return;if(!_0x290441['consumable']['consume'](_0x2dce1d['item'],_0xf0efb5['name']))return;const _0x2c8478=_0x290441['writer'],_0x138a19=_0x290441['mapper']['toViewRange'](_0x2dce1d['range']);_0x2c8478['wrap'](_0x138a19,_0x2c8478['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4baecd){const _0x4778ad=_0x4baecd['plugins']['get']('RevisionViewer');return(_0x20f2fc,_0x583aef,_0x3bf5a4)=>{const _0x458326=_0x583aef['markerName']['split'](':')[0x1],_0x5489b1=_0x4778ad['_getChangeFromId'](_0x458326);if(!_0x5489b1)return null;const _0x18cfd1='add'==_0x5489b1['type']?'split':'merge';if(!_0x3bf5a4['consumable']['test'](_0x583aef['markerRange'],_0x20f2fc['name']))return;const _0x40fd6e=_0x583aef['markerRange']['getWalker'](),_0x4f0e25=_0x583aef['markerRange']['start'],_0x143251=_0x4baecd['model']['schema'];let _0xc05ed2=null,_0xee717d=null,_0x232f6d=!0x1,_0x12ba93=!0x1;for(const _0x5b64b4 of _0x40fd6e){const _0x472bef=_0x5b64b4['item'];_0x232f6d=_0x232f6d||_0x143251['isContent'](_0x472bef);const _0x2dc8ab=_0x3bf5a4['mapper']['toViewElement'](_0x472bef);if(_0x2dc8ab&&_0x2dc8ab['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5b64b4['type']&&(_0x143251['isBlock'](_0x472bef)&&!_0x143251['isLimit'](_0x472bef)&&(_0x472bef['nextSibling']||_0x4f0e25['isAtEnd']?_0xc05ed2&&_0xc05ed2['parent']==_0x472bef||(_0xc05ed2=_0x472bef,_0x5f11eb(_0x5b64b4['previousPosition']),_0x12ba93=!0x0):_0xee717d=_0xee717d||_0x5b64b4['previousPosition']));}function _0x5f11eb(_0x11c3ea){const _0x19709a=_0x3bf5a4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18cfd1}),_0x3364c7=_0x3bf5a4['mapper']['toViewPosition'](_0x11c3ea);_0x5489b1['data']['isSuggestion']&&_0x3bf5a4['writer']['addClass']('ck-suggestion-marker-'+_0x18cfd1+'-new',_0x19709a),_0x4778ad['activeChange']==_0x5489b1&&_0x3bf5a4['writer']['addClass']('ck-suggestion-marker--active',_0x19709a),_0x3bf5a4['writer']['insert'](_0x3364c7,_0x19709a),_0x3bf5a4['mapper']['bindElementToMarker'](_0x19709a,_0x583aef['markerName']);}_0x232f6d||_0x12ba93||!_0xee717d||_0x5f11eb(_0xee717d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4e25a5,_0x58f566,_0x50b574)=>{const _0x39762d=_0x50b574['mapper']['markerNameToElements'](_0x58f566['markerName']);if(_0x39762d){for(const _0x186160 of _0x39762d)(_0x186160['hasClass']('ck-suggestion-marker-split')||_0x186160['hasClass']('ck-suggestion-marker-merge'))&&(_0x50b574['mapper']['unbindElementFromMarkerName'](_0x186160,_0x58f566['markerName']),_0x50b574['writer']['remove'](_0x186160));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4035ad,_0x59798a,_0x2976cf)=>{const _0xd3981a=_0x59798a['markerName']['split'](':')[0x1],_0x3ef698=this['_getChangeFromId'](_0xd3981a);if(!_0x3ef698)return null;const _0x3f35eb='add'==_0x3ef698['type']?'split':'merge';if(_0x2976cf['consumable']['test'](_0x59798a['markerRange'],_0x4035ad['name']))for(const _0x3ea645 of _0x59798a['markerRange']['getItems']()){if(!_0x3ea645['is']('element','softBreak'))continue;const _0x462df8=_0x2976cf['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3f35eb}),_0x33225f=_0x2976cf['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x3ea645));_0x3ef698['data']['isSuggestion']&&_0x2976cf['writer']['addClass']('ck-suggestion-marker-'+_0x3f35eb+'-new',_0x462df8),this['activeChange']==_0x3ef698&&_0x2976cf['writer']['addClass']('ck-suggestion-marker--active',_0x462df8),_0x2976cf['writer']['insert'](_0x33225f,_0x462df8),_0x2976cf['mapper']['bindElementToMarker'](_0x462df8,_0x59798a['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3244fc=>{for(const _0x4c000f of this['editor']['model']['document']['getRootNames']()){const _0x50d4af=this['editor']['model']['document']['getRoot'](_0x4c000f),_0xc564f6=this['editor']['editing']['view']['document']['getRoot'](_0x4c000f);if(_0xc564f6){const _0xf1ab8=_0x50d4af['getAttribute']('revisionHistoryAttachChange');if(_0x3244fc['removeAttribute']('data-change-id',_0xc564f6),_0x3244fc['removeClass']('ck-revision-history-root-add',_0xc564f6),_0x3244fc['removeClass']('ck-revision-history-root-remove',_0xc564f6),_0x3244fc['removeClass']('ck-revision-history-root--active',_0xc564f6),_0xf1ab8){const _0x21cd27=this['_getChangeFromId'](_0xf1ab8);if(!_0x21cd27)return null;_0x3244fc['setAttribute']('data-change-id',_0xf1ab8,_0xc564f6),_0x3244fc['addClass']('ck-revision-history-root-'+_0x21cd27['type'],_0xc564f6),this['activeChange']==_0x21cd27&&_0x3244fc['addClass']('ck-revision-history-root--active',_0xc564f6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x349afd=>'revision-comment:'+_0x349afd,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x251169=>'revision-suggestion:'+_0x251169,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1dceca=>({'name':'suggestion:'+_0x1dceca,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1830e1=>{const _0x290308=_0x1830e1['markerName']['split'](':')[0x1];return'insertion'!=_0x290308&&'deletion'!=_0x290308?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x290308]};}}),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',(_0x576e1f,_0x280beb,_0x15320d)=>{const _0x2cb1ce=_0x15320d['mapper']['markerNameToElements'](_0x280beb['markerName']);if(_0x2cb1ce){for(const _0x55df08 of _0x2cb1ce)_0x55df08['is']('uiElement')&&(_0x15320d['mapper']['unbindElementFromMarkerName'](_0x55df08,_0x280beb['markerName']),_0x15320d['writer']['remove'](_0x55df08));}},{'priority':'high'});}['_getChangeFromId'](_0x368ecc){return this['_changeIdToChange']['get'](_0x368ecc);}['_getViewForChange'](_0x2642b0){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2642b0),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x22a1ca,_0x488c05,_0x3058a0,_0x10acdf)=>{_0x10acdf&&this['_balloon']['remove'](_0x10acdf),_0x3058a0&&(this['_balloon']['add']({'view':_0x3058a0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2deabe=this['editor']['editing'],_0x588589=this['_getChangeFromId'](_0x3058a0['changeId']);let _0x1bad28;if(_0x588589['data']['isOnRoot']){const _0x5496a3=_0x2deabe['view']['getDomRoot'](_0x588589['rootName']);_0x1bad28=Array['from'](_0x5496a3['getClientRects']());}else{const _0x5ad768=this['editor']['model']['markers']['get']('revision:'+_0x3058a0['changeId']);_0x1bad28=Array['from'](_0x2deabe['mapper']['markerNameToElements'](_0x5ad768['name']))['map'](_0xb884a1=>_0x2deabe['view']['domConverter']['mapViewToDom'](_0xb884a1))['map'](_0x58f956=>Array['from'](_0x58f956['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1bad28[0x0];return _0x1bad28['find'](_0x3ee751=>_0x3ee751['top']-0x3<=this['_activeViewTarget']['y']&&_0x3ee751['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3ee751['left']-0x3<=this['_activeViewTarget']['x']&&_0x3ee751['right']+0x3>=this['_activeViewTarget']['x'])||_0x1bad28[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3d976a,_0x9324d9,_0x4765d6,_0x47ca78)=>{this['activeView']=_0x4765d6?this['_getViewForChange'](_0x4765d6):null,this['editor']['model']['change'](()=>{const _0x305020=this['editor']['editing'];_0x47ca78&&(_0x47ca78['data']['isOnRoot']?_0x305020['view']['change'](_0x359409=>{_0x359409['removeClass']('ck-revision-history-root--active',_0x305020['view']['document']['getRoot'](_0x47ca78['rootName']));}):_0x305020['reconvertMarker']('revision:'+_0x47ca78['id'])),_0x4765d6&&(_0x4765d6['data']['isOnRoot']?_0x305020['view']['change'](_0x11930f=>{_0x11930f['addClass']('ck-revision-history-root--active',_0x305020['view']['document']['getRoot'](_0x4765d6['rootName']));}):_0x305020['reconvertMarker']('revision:'+_0x4765d6['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2e3cd5,_0x3dd89c)=>{if(this['activeChange'])return;const _0x24372e=this['_findChangeIdFromDomTarget'](_0x3dd89c['target']),_0x2f2f1d=this['_changeIdToChange']['get'](_0x24372e);_0x2f2f1d?(this['_activeViewTarget']={'x':_0x3dd89c['domEvent']['x'],'y':_0x3dd89c['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2f2f1d)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1b96eb,_0x58a887)=>{const _0x76ee92=this['_findChangeIdFromDomTarget'](_0x58a887['target']),_0x5ba338=this['_changeIdToChange']['get'](_0x76ee92);_0x5ba338?(this['_activeViewTarget']={'x':_0x58a887['domEvent']['x'],'y':_0x58a887['domEvent']['y']},_0x5ba338===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x5ba338):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4d77ed){do{const _0x50388=_0x4d77ed['getAttribute']('data-change-id');if(_0x50388)return _0x50388;_0x4d77ed=_0x4d77ed['parent'];}while(_0x4d77ed);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x25b5ae=>{for(const _0x13bc9f of this['editor']['model']['markers'])_0x25b5ae['removeMarker'](_0x13bc9f);});}}function Z(_0x39e879,_0x11df1e){return(_0x578d3b,_0x134fc8,_0x99b1b2)=>{if(!_0x99b1b2['consumable']['test'](_0x134fc8['markerRange'],_0x578d3b['name']))return;const _0x1058d7=_0x134fc8['markerRange']['getWalker'](),_0x3a3097=_0x134fc8['markerRange']['start'],_0x1ed8b8=_0x39e879['model']['schema'];let _0x216848=null,_0x31018f=null,_0x489a60=!0x1,_0x5c3843=!0x1;for(const _0x56eca6 of _0x1058d7){const _0x422db6=_0x56eca6['item'];_0x489a60=_0x489a60||_0x1ed8b8['isContent'](_0x422db6);const _0x42f2b3=_0x99b1b2['mapper']['toViewElement'](_0x422db6);if(_0x42f2b3&&_0x42f2b3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x56eca6['type']&&(_0x1ed8b8['isBlock'](_0x422db6)&&!_0x1ed8b8['isLimit'](_0x422db6)&&(_0x422db6['nextSibling']||_0x3a3097['isAtEnd']?_0x216848&&_0x216848['parent']==_0x422db6||(_0x216848=_0x422db6,_0x5ab07f(_0x56eca6['previousPosition']),_0x5c3843=!0x0):_0x31018f=_0x31018f||_0x56eca6['previousPosition']));}function _0x5ab07f(_0x49c400){const _0x27ae67=_0x99b1b2['mapper']['toViewPosition'](_0x49c400),_0x2ea358=_0x99b1b2['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x11df1e});_0x99b1b2['writer']['insert'](_0x27ae67,_0x2ea358),_0x99b1b2['mapper']['bindElementToMarker'](_0x2ea358,_0x134fc8['markerName']);}_0x489a60||_0x5c3843||!_0x31018f||_0x5ab07f(_0x31018f);};}class _t extends _0x2748ad{constructor(_0x305d89){super(_0x305d89);const _0x446b0a=_0x305d89['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x446b0a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x446b0a,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4db362=this['editor'],_0xaad6da=_0x4db362['plugins']['get'](d),_0xf9a2b0=_0xaad6da['isReady']?_0xaad6da['diff']['newRevisionId']:null;_0x4db362['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xf9a2b0);}['refresh'](){const {isReady:_0x47efde,isEnabled:_0xaf4e8e,repository:_0x40fcbd,diff:_0x591d07}=this['editor']['plugins']['get'](d),_0x1388d4=_0x591d07&&_0x40fcbd['getLaterVisibleRevision'](_0x591d07['newRevisionId']);this['isEnabled']=_0x47efde&&_0xaf4e8e&&Boolean(_0x1388d4);}}class yt extends _0x2748ad{['_step'];constructor(_0x4295fa,{direction:_0x2f49fb}){super(_0x4295fa);const _0x104864=_0x4295fa['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2f49fb?0x1:-0x1,this['listenTo'](_0x104864,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x104864,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x104864,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x232963=this['editor'],_0x5a14b4=_0x232963['plugins']['get'](d),{isNavigationMode:_0x3e71db,currentChangeNumber:_0x3ac35d}=_0x5a14b4;let _0x471122;if(_0x5a14b4['activeChange']=_0x3e71db?_0x5a14b4['diff']['changes']['get'](_0x3ac35d+this['_step']):_0x5a14b4['diff']['changes']['first'],_0x5a14b4['activeChange']['data']['isOnRoot'])_0x471122=_0x232963['editing']['view']['getDomRoot'](_0x5a14b4['activeChange']['rootName']);else{const _0x271b2a=_0x232963['model']['markers']['get']('revision:'+_0x5a14b4['activeChange']['id']);_0x471122=_0x5b8dd5(_0x232963['editing'],_0x271b2a);}_0x8cec50({'target':_0x471122,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xd3729d,currentChangeNumber:_0x27c9d0,numberOfChanges:_0x23ec17,isReady:_0x139ae8,isEnabled:_0x136ee1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x136ee1&&_0x139ae8&&_0x23ec17)&&(!_0xd3729d||(0x1===this['_step']?_0x27c9d0<_0x23ec17-0x1:_0x27c9d0>0x0));}}class _i extends _0x1119f9{constructor(_0x366ff3){super(_0x366ff3);const _0xd8506=this['bindTemplate'],_0x6be257=new _0x521e80(_0x366ff3),_0x70dfca=new _0x521e80(_0x366ff3);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',(_0x16c57d,_0x13c5e9)=>_0x16c57d&&_0x13c5e9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3c3d60,_0x41c0fd,_0x41a8c0,_0x24e5a0)=>{if(!_0x3c3d60)return m(_0x366ff3,'Loading...');if(!_0x41a8c0)return m(_0x366ff3,'No\x20changes');const _0x2831f1=m(_0x366ff3,'NUMBER_OF_CHANGES',_0x41a8c0);return _0x24e5a0?m(_0x366ff3,'X_OF_Y_CHANGES',[_0x41c0fd+0x1,_0x41a8c0]):_0x2831f1;}),_0x6be257['set']({'label':m(_0x366ff3,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x30dd98}),_0x70dfca['set']({'label':m(_0x366ff3,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4e9473}),_0x6be257['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x70dfca['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x6be257['on']('execute',()=>this['fire']('execute','backward')),_0x70dfca['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',_0xd8506['if']('_isStatusLabelVisible','ck-hidden',_0x5f051d=>!_0x5f051d)]},'children':[{'text':_0xd8506['to']('isNavigationMode',_0x1b7394=>_0x1b7394?m(_0x366ff3,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x366ff3,'Total')+':\x20')}]},{'text':_0xd8506['to']('_statusText')}]},new _0x51cb7a(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x6be257,_0x70dfca]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x45244f{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1b44ea=this['editor']['editing']['view'];_0x1b44ea['change'](_0x2dc5fb=>{for(const _0x1f5102 of _0x1b44ea['document']['roots'])_0x2dc5fb['addClass'](ce,_0x1f5102);});}['hide'](){const _0x44c65a=this['editor']['editing']['view'];_0x44c65a['change'](_0x1e14b8=>{for(const _0x28a6ba of _0x44c65a['document']['roots'])_0x1e14b8['removeClass'](ce,_0x28a6ba);});}}class w extends _0x45244f{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x58614d=this['editor'],_0x15a022=_0x58614d['plugins']['get'](d),_0x5f3675=_0x58614d['plugins']['get'](le);_0x58614d['ui']['componentFactory']['add']('exitToEditing',_0x1c6e71=>{const _0x45d315=new _0x521e80(_0x1c6e71);return _0x45d315['set']({'label':m(_0x1c6e71,'Back\x20to\x20editing'),'icon':_0x42a8bb,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x45d315,'execute',()=>{_0x58614d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x45d315;}),_0x58614d['ui']['componentFactory']['add']('restoreRevision',_0x8d66ea=>{const _0x4e3ed6=new _0x521e80(_0x8d66ea);return _0x4e3ed6['set']({'label':m(_0x8d66ea,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e3ed6['bind']('isEnabled')['to'](_0x58614d['commands']['get']('restoreRevision')),this['listenTo'](_0x4e3ed6,'execute',()=>_0x58614d['execute']('restoreRevision')),_0x4e3ed6;}),_0x58614d['ui']['componentFactory']['add']('changesNavigation',_0x57555c=>{const _0x1a84c3=new _i(_0x57555c),_0x44e654=_0x58614d['commands']['get']('showPreviousChange'),_0x20a616=_0x58614d['commands']['get']('showNextChange');return _0x1a84c3['bind']('isBackwardNavigationEnabled')['to'](_0x44e654,'isEnabled'),_0x1a84c3['bind']('isForwardNavigationEnabled')['to'](_0x20a616,'isEnabled'),_0x1a84c3['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x15a022),this['listenTo'](_0x1a84c3,'execute',(_0xa98fe3,_0x19ec54)=>{_0x58614d['execute']('forward'===_0x19ec54?'showNextChange':'showPreviousChange');}),_0x1a84c3;}),_0x5f3675['show'](),_0x15a022['on']('change:isReady',(_0x37ff8a,_0x2c239b,_0x10d96f)=>{_0x10d96f?_0x5f3675['hide']():_0x5f3675['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x58068a,_0x18f5d6){super(_0x58068a,_0x18f5d6);const _0x1587d3=this['bindTemplate'];this['set']({'label':m(_0x58068a,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x58068a,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1587d3['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x2ae2dd=this['fieldView']['element'];this['_tooltipString']=_0x2ae2dd['scrollWidth']>_0x2ae2dd['clientWidth']&&_0x2ae2dd['value']||'';}}class oi extends _0x1119f9{constructor(_0x5bd1f7,_0x172554,_0x2bf17f){super(_0x5bd1f7);const _0x5ebad5=new _0x4acca1();_0x5ebad5['set']({'content':_0x274ce6,'viewBox':'0\x200\x2011\x2010'});const _0x253d35=['ck','ck-revision-history-sidebar__revision-author'];_0x2bf17f&&_0x253d35['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4428c5=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x5bd1f7,_0x2bf17f?'Revision\x20creator':'Revision\x20author')},'children':[_0x5ebad5,_0x172554['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x253d35},'children':_0x4428c5});}}function ni(_0x22c1c0,_0x6de618){const _0x32e1de=_0x22c1c0['bindTemplate'],_0x213de9=_0x22c1c0['locale'],_0x381eca=_0x369c57(_0x213de9);_0x381eca['panelPosition']='sw';const _0x2d09c5=function(_0x4dfaca,_0x511eac){const _0xead5e=function(_0x376d8a,_0x17f291){const _0x334819=_0x376d8a['locale'],_0x4650db={'Compare\x20against\x20selected':m(_0x334819,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x334819,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x334819,'Restore\x20this\x20revision')};return _0x17f291['map'](_0x3a0386=>{const _0x5256fb=_0x4650db[_0x3a0386['name']];return _0x5256fb&&_0x5256fb!==_0x3a0386['name']&&(_0x3a0386['name']=_0x5256fb),_0x3a0386;});}(_0x4dfaca,_0x511eac),_0x112b6e=new _0x3d47b3();for(const _0x5ba2ba of _0xead5e){const _0x1cd6fe={'type':'button','model':new to({'label':_0x5ba2ba['name'],'class':_0x5ba2ba['class'],'withText':!0x0,'role':'menuitem','_action':_0x5ba2ba['action']})};_0x1cd6fe['model']['bind']('isEnabled')['to'](_0x4dfaca,'isActionsDropdownOpen',_0x312d8e=>'function'!=typeof _0x5ba2ba['isEnabled']||(!_0x312d8e||_0x5ba2ba['isEnabled'](_0x4dfaca))),_0x112b6e['add'](_0x1cd6fe);}return _0x112b6e;}(_0x22c1c0,_0x6de618);return _0x22c1c0['bind']('isActionsDropdownOpen')['to'](_0x381eca,'isOpen'),_0x381eca['buttonView']['set']({'label':m(_0x213de9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2b00bd}),_0x381eca['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x32e1de['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x32e1de['to'](_0x3f9dc3=>_0x3f9dc3['stopPropagation']())}}),_0x381eca['on']('execute',_0x25adff=>{_0x22c1c0['isReady']&&'function'==typeof _0x25adff['source']['_action']&&_0x25adff['source']['_action'](_0x22c1c0);}),_0x37b5c7(_0x381eca,_0x2d09c5,{'role':'menu'}),_0x381eca['listenTo'](_0x22c1c0,'change:isActionsDropdownOpen',(_0x9e4fb9,_0x1988aa,_0x38b6e7)=>{if(_0x38b6e7)for(const _0x40da20 of _0x381eca['listView']['items']){const _0x33d6fb=_0x40da20['children']['first'],_0x1a7f22=_0x6de618['find'](_0x1ad37e=>_0x1ad37e['action']===_0x33d6fb['_action'])['isVisible'];_0x40da20['isVisible']=void 0x0===_0x1a7f22||_0x1a7f22(_0x22c1c0);}}),_0x381eca;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x178b02(_0x1119f9){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x49f87c,_0x35d681,_0x5a288e,_0x1977fc){super(_0x49f87c);const _0x4f1e76=this['bindTemplate'],_0xdc1cc4=function(_0x1e1490,_0xb8f40){const _0xff33de=Array['from'](_0xb8f40['authors'])['filter'](_0x569256=>_0x569256!=_0xb8f40['creator']);return _0xb8f40['creator']&&_0xff33de['unshift'](_0xb8f40['creator']),_0xff33de['map'](_0x2669c8=>new oi(_0x1e1490,_0x2669c8,_0x2669c8==_0xb8f40['creator']));}(_0x49f87c,_0x35d681);this['id']=_0x35d681['id'],this['_revision']=_0x35d681,this['_requireRevisionName']=_0x1977fc,this['bind']('name','createdAt')['to'](_0x35d681),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x2fe046=>{return _0xe1021d=_0x49f87c['uiLanguage'],(_0x474e2d=_0x2fe046)['toLocaleDateString'](_0xe1021d,{'month':'long','day':'numeric'})+',\x20'+_0x474e2d['toLocaleTimeString'](_0xe1021d,{'hour':'numeric','minute':'numeric'});var _0xe1021d,_0x474e2d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x49f87c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x323367=>_0x323367||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x27c48b,_0x568d17)=>_0x27c48b&&_0x568d17),this['revisionActionsView']=_0x5a288e&&_0x5a288e['length']?ni(this,_0x5a288e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x4f1e76['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4f1e76['if']('isEnabled','ck-disabled',_0x48a123=>!_0x48a123),_0x4f1e76['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x4f1e76['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x4f1e76['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':_0x4f1e76['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':_0xdc1cc4}]},this['revisionActionsView']],'on':{'click':_0x4f1e76['to'](_0x544560=>{_0x544560['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x21bce1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x21bce1,'change',()=>{this['_requireRevisionName']&&!_0x21bce1['value']||this['fire']('setName',{'id':this['id'],'name':_0x21bce1['value']}),_0x21bce1['value']||(_0x21bce1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x2da153,_0x42a4b6){const _0xaed0e9=_0x95a3cb['fromJSDate'](_0x2da153)['setLocale'](_0x42a4b6),_0x392d78=_0x95a3cb['local'](),_0x14d89c=_0x392d78['minus']({'days':0x1})['startOf']('day');let _0x5bf3e5,_0x221126;return _0xaed0e9['hasSame'](_0x392d78,'day')?(_0x5bf3e5=_0xaed0e9['startOf']('day')['toJSDate'](),_0x221126=_0xaed0e9['toRelativeCalendar']()):_0xaed0e9['hasSame'](_0x14d89c,'day')?(_0x5bf3e5=_0x14d89c['toJSDate'](),_0x221126=_0xaed0e9['toRelativeCalendar']()):_0xaed0e9['hasSame'](_0x392d78,'week')?(_0x5bf3e5=_0xaed0e9['startOf']('week')['toJSDate'](),_0x221126=_0xaed0e9['weekdayLong']||''):_0xaed0e9['hasSame'](_0x392d78,'year')?(_0x5bf3e5=_0xaed0e9['startOf']('month')['toJSDate'](),_0x221126=_0xaed0e9['monthLong']||''):(_0x5bf3e5=_0xaed0e9['startOf']('year')['toJSDate'](),_0x221126=String(_0xaed0e9['year'])),{'startDate':_0x5bf3e5,'localizedPeriodName':_0x221126};}class mi extends _0x1119f9{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x2ac158,_0x184d05,_0x16bf6c,_0x56d029){super(_0x2ac158);const _0x226f30=vi(_0x184d05,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x184d05,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x16bf6c,this['_requireRevisionName']=_0x56d029,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':_0x226f30}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1dcd3b){const _0x5e412a=new ai(this['locale'],_0x1dcd3b,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5e412a);}['removeRevision'](_0x2b4bfe){const _0x59cdd9=this['revisionViews']['find'](_0x5bc42e=>_0x5bc42e['id']===_0x2b4bfe['id']);this['revisionViews']['remove'](_0x59cdd9);}}class as extends _0x1119f9{constructor(_0x4f3806){super(_0x4f3806);const _0x5e338a=new _0x4acca1();_0x5e338a['content']=_0x3ba4d1,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5e338a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x4f3806,'Revision\x20history')]}]});}}class di extends _0x1119f9{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x480e90,_0xc0277f,_0x731640,_0x4c3012){super(_0x480e90);const _0xeff671=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xc0277f,this['_revisionActions']=_0x731640,this['_requireRevisionName']=_0x4c3012,this['on']('select',(_0x1852dd,_0x44b889)=>{this['fire']('revisionSelected',_0x44b889);}),this['on']('setName',(_0x4b1b37,_0xdbcfda)=>{this['fire']('revisionSetName',_0xdbcfda);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x480e90),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xeff671['if']('isEnabled','ck-disabled',_0x519a30=>!_0x519a30)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x181266 of this['_revisions'])this['_addRevision'](_0x181266);this['_revisions']['on']('add',(_0x5ba1b2,_0x2028fc)=>{this['_addRevision'](_0x2028fc);}),this['_revisions']['on']('remove',(_0x154dcb,_0x14589b)=>{this['_removeRevision'](_0x14589b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0xd83890=>_0xd83890['revisionViews']['map'](_0x18cf3b=>_0x18cf3b))['flat']();}['selectRevision'](_0x2ac7ad){for(const _0x94a308 of this['revisionViews'])_0x2ac7ad&&_0x2ac7ad['id']===_0x94a308['id']?_0x94a308['select']():_0x94a308['deselect']();}['highlightRevisions'](_0x4dce24){for(const _0x1b9e38 of this['revisionViews'])_0x4dce24['some'](({id:_0x1dfde3})=>_0x1dfde3===_0x1b9e38['id'])?_0x1b9e38['highlight']():_0x1b9e38['unhighlight']();}['_addRevision'](_0x42a2e6){const _0x3bcf00=vi(_0x42a2e6['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x27250d=this['timePeriodViews']['get'](0x0);_0x27250d&&_0x27250d['startDate']['getTime']()===_0x3bcf00['getTime']()||(_0x27250d=new mi(this['locale'],_0x3bcf00,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x27250d)),_0x27250d['addRevision'](_0x42a2e6);}['_removeRevision'](_0x3a32f1){const _0x144a27=vi(_0x3a32f1['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x144a27)['removeRevision'](_0x3a32f1);}['_getTimePeriodViewByStartDate'](_0x4074bf){return this['timePeriodViews']['find'](_0x451304=>_0x451304['startDate']['getTime']()===_0x4074bf['getTime']());}}class g extends _0x45244f{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x424287){super(_0x424287),this['_revisionViewer']=_0x424287['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5860e3=this['_revisionsRepository']['_revisions'],_0x37dcf2=this['_createRevisionActions'](),_0x527808=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x5860e3,_0x37dcf2,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',(_0x596c53,_0x4402ae)=>{_0x4402ae['revisionViews']['on']('add',(_0x52cb18,_0x2ff156)=>{_0x2ff156['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)),_0x527808['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2c0c02=this['_revisionsRepository']['getRevision'](0x0);if(_0x2c0c02){const _0x17d3e2=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2c0c02['id']);this['_revisionViewer']['compare'](_0x2c0c02,_0x17d3e2);}}['_handleRevisionSelected'](_0x38c1f6,_0x2886f5){const _0x4e5684=this['_revisionsRepository']['getRevision'](_0x2886f5['id']),_0x1bcb17=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4e5684['id']);this['_revisionViewer']['compare'](_0x4e5684,_0x1bcb17);}['_handleRevisionSetName'](_0x47f097,_0x352edb){this['_revisionsRepository']['getRevision'](_0x352edb['id'])['setName'](_0x352edb['name']);}['_handleDiffChange'](_0x409e87,_0x6b7c64,_0x8909a1){const _0x2a0c80=this['_revisionsRepository']['getRevisionsInDiff'](_0x8909a1);_0x2a0c80['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2a0c80),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2a0c80[0x0]));}['_createRevisionActions'](){const _0x3e4633=this['editor'],_0x211369=g['availableRevisionActions'],_0x40ea64=_0x3e4633['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x40ea64['length'])return _0x40ea64['map'](_0x4f510b=>{const _0x1ff445='string'==typeof _0x4f510b?Object['assign']({},_0x211369[_0x4f510b]):_0x4f510b;return _0x1ff445['action']=_0x1ff445['action']['bind'](this,_0x3e4633),_0x1ff445['isVisible']&&(_0x1ff445['isVisible']=_0x1ff445['isVisible']['bind'](this,_0x3e4633)),_0x1ff445;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x2ff45c},_0x6cfa32)=>{const _0x5b6c0a=_0x2ff45c['get'](d),_0x40fee7=_0x5b6c0a['repository'];let _0x2f80c0=_0x5b6c0a['diff']['newRevisionId'],_0x12f11a=_0x6cfa32['id'];_0x40fee7['getIndex'](_0x2f80c0)>_0x40fee7['getIndex'](_0x12f11a)&&([_0x2f80c0,_0x12f11a]=[_0x12f11a,_0x2f80c0]),_0x5b6c0a['compare'](_0x2f80c0,_0x12f11a);},'isVisible':({plugins:_0xf35c57},_0x358bde)=>{const _0x2efb74=_0xf35c57['get'](d);return!(_0x2efb74['repository']['getRevisionsInDiff'](_0x2efb74['diff'])['length']>0x2)&&!_0x358bde['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x3d9656,{id:_0x2bc4c6})=>{_0x3d9656['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2bc4c6);},'isVisible':({plugins:_0x4e73a4},_0x1214ee)=>!!_0x4e73a4['get'](d)['repository']['getLaterVisibleRevision'](_0x1214ee['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x143fbc},{id:_0x557d82,revisionNameView:_0x30cea4})=>{const _0x5afcf1=_0x143fbc['get'](d),_0x3610cc=_0x5afcf1['repository']['getEarlierVisibleRevision'](_0x557d82);_0x5afcf1['compare'](_0x557d82,_0x3610cc),_0x30cea4['focus'](),_0x30cea4['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x1eae1f,_0x3cc7ff){super(_0x1eae1f),this['_view']=_0x3cc7ff,this['_toolbarConfig']=ot(_0x1eae1f['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x432ef3){const _0x5f153a=this['editor'],_0x415fc3=this['view'],_0x5e8433=_0x5f153a['editing']['view'],_0x2242d6=_0x415fc3['editable'],_0x2ce343=_0x5e8433['document']['getRoot']();_0x2242d6['name']=_0x2ce343['rootName'],_0x415fc3['render']();const _0x3e80ea=_0x2242d6['element'];this['setEditableElement'](_0x2242d6['name'],_0x3e80ea),_0x415fc3['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5e8433['attachDomRoot'](_0x3e80ea),this['_elementReplacer']['replace'](_0x432ef3,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3e757c=this['view'],_0x191f20=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x191f20['detachDomRoot'](_0x3e757c['editable']['name']),_0x3e757c['destroy']();}['_initToolbar'](){const _0x3b9e4e=this['view'];_0x3b9e4e['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b9e4e['stickyPanel']['limiterElement']=_0x3b9e4e['element'],_0x3b9e4e['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x51e80f})=>_0x51e80f),_0x3b9e4e['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b9e4e['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x46dd48,_0x2e0eb9,_0x4150b8={}){super(_0x46dd48),this['stickyPanel']=new lt(_0x46dd48),this['toolbar']=new nt(_0x46dd48,{'shouldGroupWhenFull':_0x4150b8['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x46dd48,_0x2e0eb9);}['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(_0x3e917a,_0x3332b4){super(_0x3332b4),this['sourceElement']=_0x3e917a,this['model']['document']['createRoot']();const _0x473bfc=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x473bfc);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0xc63914,_0x54e735){const _0x12fbc3=new this(_0xc63914,_0x54e735);return await _0x12fbc3['initPlugins'](),await _0x12fbc3['ui']['init'](_0xc63914),await _0x12fbc3['data']['init'](_0x12fbc3['config']['get']('initialData')||''),_0x12fbc3['fire']('ready'),_0x12fbc3;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x1947b9{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36519f){function _0x335dd8(_0x10a19e){return _0x10a19e['map'](_0x919151=>String['fromCharCode'](_0x919151))['join']('');}super(_0x36519f),this['result']='end',_0x36519f[_0x335dd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x335dd8([0x76,0x69,0x65,0x77])][_0x335dd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x335dd8([0x61,0x75,0x74,0x6f]),_0x36519f[_0x335dd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x335dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x335dd8([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x335dd8([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x335dd8([0x6f,0x6b])});}}class k extends _0x1947b9{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x59153a){if(super(_0x59153a),!this['editor']['config']['get']('revisionHistory'))throw new _0x2fa8d8('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5cfea3=>this['_showRevisionViewer']({..._0x5cfea3,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x18b20b=>this['_closeRevisionViewer'](_0x18b20b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2ecaa9=>this['_restoreRevision'](_0x2ecaa9)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x335e8f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x335e8f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x57d2c6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x57d2c6);}['getRevision'](_0x3b0cae){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x3b0cae);}['getRevisions'](_0x349f2c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x349f2c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5d373e=this['editor'],_0x3524b2=_0xd0e0b6(_0x5d373e,p),_0x206100=_0x5d373e['plugins']['get']('RevisionTracker'),_0xb115c9=_0x5d373e['plugins']['get']('Users')['users'];return _0x3524b2['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x3524b2['lazyRoots'],(_0x3524b2['plugins']['push'](bt,d,w,class extends _0x1947b9{static get['requires'](){return[d,'Users'];}['init'](){const _0x594707=this['editor']['plugins']['get']('Users');for(const _0x3999d8 of _0xb115c9)_0x3999d8['isAnonymous']||_0x594707['getUser'](_0x3999d8['id'])||_0x594707['addUser'](_0x3999d8);const _0x2773db=_0x206100['repository']['getRevisions']();let _0x475df8=null;const _0x126d19=this['editor']['plugins']['get']('RevisionViewer');_0x126d19['adapter']=_0x206100['adapter'],_0x126d19['bind']('isEnabled')['to'](_0x206100),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5d373e,'isReadOnly',_0x355367=>!_0x355367);for(const _0x42c512 of _0x2773db){const _0xc6b98d=null===_0x42c512['creator'];if(_0xc6b98d&&_0x42c512['toVersion']===_0x42c512['fromVersion'])continue;const _0x2cd272=_0x42c512['toJSON']();_0x126d19['addRevisionData'](_0x2cd272,(_0x43b813,_0x14748d,_0x162a4c)=>{if(_0xc6b98d){if(_0x475df8)_0x475df8['_update'](_0x43b813,_0x14748d);else{if(!_0x14748d){const _0x4f3e39=_0x162a4c['toJSON']();_0x4f3e39['id']=_0x11cac6(),_0x206100['saveRevision'](_0x4f3e39,_0x162a4c['toVersion'])['then'](_0x3155df=>{_0x475df8=_0x3155df;});}}}else _0x42c512['_update'](_0x43b813,_0x14748d);});}}},g),_0x3524b2);}['_enhanceShowRevisionViewerCallback'](){const _0x56d331=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5ba0fd=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4eec07=this['editor']['plugins']['get']('Autosave');await _0x4eec07['save']();}else await _0x5ba0fd['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x96622c=this['editor']['plugins']['get']('Dialog');_0x96622c['isOpen']&&_0x96622c['hide']();}const _0x49a400=this['_getRevisionViewerEditorConfig']();return _0x56d331(_0x49a400)['then'](_0x55dbeb=>{return(this['_viewerEditor']=_0x55dbeb,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x55dbeb;})['catch'](_0x1b5f0f=>(console['error'](_0x1b5f0f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2445b0=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'](),_0x2445b0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3b3b86=this['editor']['plugins']['get']('Annotations');_0x3b3b86['refreshVisibility'](),_0x3b3b86['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3ea387){const _0x59c0da=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x22c341=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x1a1346=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x1a1346,_0x3ea387)['then'](_0x445afa=>(_0x22c341['style']['display']='block',_0x59c0da['style']['display']='none',_0x445afa));}['_closeRevisionViewer'](_0x47ef65){const _0x372d1b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x372d1b['style']['display']='',_0x47ef65['destroy']();}async['_restoreRevision'](_0x140e7f){const _0x730ef3=this['editor'],_0x42fa72=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f98c6=_0x730ef3['plugins']['get']('RevisionTracker'),_0x25b317=_0x42fa72['repository']['getRevision'](_0x140e7f);let _0x201d6e,_0x4e7e39,_0x4a14bc;try{_0x201d6e=await _0x42fa72['getRevisionData'](_0x25b317),_0x4e7e39=await _0x42fa72['getRevisionRootsAttributes'](_0x25b317);}catch(_0x4ed590){return void console['error'](_0x4ed590);}_0x730ef3['model']['change'](_0x34630e=>{for(const _0x5390c8 of Array['from'](_0x730ef3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x34630e['removeMarker'](_0x5390c8);}),_0x42fa72['isReady']=!0x1,_0x730ef3['model']['enqueueChange'](_0xb0218a=>{_0xb0218a['setSelection'](null),_0xb0218a['removeSelectionAttribute'](_0x730ef3['model']['document']['selection']['getAttributeKeys']());const _0x4d1f6f=Object['keys'](_0x201d6e);for(const _0x5931a0 of _0x730ef3['model']['document']['roots'])'$graveyard'!=_0x5931a0['rootName']&&_0x5931a0['isAttached']()&&!_0x4d1f6f['includes'](_0x5931a0['rootName'])&&_0xb0218a['detachRoot'](_0x5931a0);for(const _0x3c4b85 of _0x4d1f6f){let _0xa76f0b=_0x730ef3['model']['document']['getRoot'](_0x3c4b85);_0xa76f0b&&_0xa76f0b['isAttached']()||(_0xa76f0b=_0xb0218a['addRoot'](_0x3c4b85));const _0xbbc4cf=_0x4e7e39[_0x3c4b85],_0x24cfd4=Object['keys'](_0xbbc4cf),_0x2d9bb=_0x201d6e[_0x3c4b85];for(const _0x367be4 of _0xa76f0b['getAttributeKeys']())_0x24cfd4['includes'](_0x367be4)||_0xb0218a['removeAttribute'](_0x367be4,_0xa76f0b);for(const _0x121daf of _0x24cfd4)_0xb0218a['setAttribute'](_0x121daf,_0x4e7e39[_0x3c4b85][_0x121daf],_0xa76f0b);_0xb0218a['remove'](_0xb0218a['createRangeIn'](_0xa76f0b)),_0xb0218a['insert'](_0x730ef3['data']['parse'](_0x2d9bb,_0xa76f0b),_0xa76f0b,0x0);}});const _0x4c8bd8=m(_0x730ef3['locale'],'Restored');if(_0x25b317['name'])_0x4a14bc=-0x1==_0x25b317['name']['indexOf'](_0x4c8bd8)?_0x4c8bd8+':\x20'+_0x25b317['name']:_0x25b317['name'];else _0x4a14bc=_0x4c8bd8+':\x20'+(_0x25b317['createdAt']['toLocaleDateString'](_0x730ef3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x25b317['createdAt']['toLocaleTimeString'](_0x730ef3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f98c6['saveRevision']({'name':_0x4a14bc}),_0x42fa72['isReady']=!0x0,_0x730ef3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x148087){super(_0x148087),this['_revisionViewer']=_0x148087['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x11e3b6=this['_revisionsRepository']['_revisions'],_0x1f8b01=this['_createRevisionActions'](),_0x4a71cb=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x11e3b6,_0x1f8b01,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',(_0x35944d,_0x204171)=>{_0x204171['revisionViews']['on']('add',(_0x578c05,_0x59a48e)=>{_0x59a48e['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)),_0x4a71cb['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3626de=this['_revisionsRepository']['getRevision'](0x0);if(_0x3626de){const _0x50a9ad=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3626de['id']);this['_revisionViewer']['compare'](_0x3626de,_0x50a9ad);}}['_handleRevisionSelected'](_0x3103db,_0xc9b49a){const _0x9f3f3d=this['_revisionsRepository']['getRevision'](_0xc9b49a['id']),_0x464a2f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x9f3f3d['id']);this['_revisionViewer']['compare'](_0x9f3f3d,_0x464a2f);}['_handleRevisionSetName'](_0x563f5e,_0x49d32d){this['_revisionsRepository']['getRevision'](_0x49d32d['id'])['setName'](_0x49d32d['name']);}['_handleDiffChange'](_0x2081c2,_0x5d95a6,_0x2056cd){const _0x5e7263=this['_revisionsRepository']['getRevisionsInDiff'](_0x2056cd);_0x5e7263['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5e7263),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5e7263[0x0]));}['_createRevisionActions'](){const _0x41ae1b=this['editor'],_0x4cfba9=g['availableRevisionActions'],_0x5cc47c=_0x41ae1b['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x5cc47c['length'])return _0x5cc47c['map'](_0x538543=>{const _0x56ab33='string'==typeof _0x538543?Object['assign']({},_0x4cfba9[_0x538543]):_0x538543;return _0x56ab33['action']=_0x56ab33['action']['bind'](this,_0x41ae1b),_0x56ab33['isVisible']&&(_0x56ab33['isVisible']=_0x56ab33['isVisible']['bind'](this,_0x41ae1b)),_0x56ab33;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4e423f},_0x397160)=>{const _0x1b9464=_0x4e423f['get'](d),_0xaa2680=_0x1b9464['repository'];let _0x154097=_0x1b9464['diff']['newRevisionId'],_0x31acca=_0x397160['id'];_0xaa2680['getIndex'](_0x154097)>_0xaa2680['getIndex'](_0x31acca)&&([_0x154097,_0x31acca]=[_0x31acca,_0x154097]),_0x1b9464['compare'](_0x154097,_0x31acca);},'isVisible':({plugins:_0x13b6da},_0x414af8)=>{const _0x1fb69e=_0x13b6da['get'](d);return!(_0x1fb69e['repository']['getRevisionsInDiff'](_0x1fb69e['diff'])['length']>0x2)&&!_0x414af8['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x1f3b4a,{id:_0x4de37d})=>{_0x1f3b4a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4de37d);},'isVisible':({plugins:_0x1b226a},_0x1d566b)=>!!_0x1b226a['get'](d)['repository']['getLaterVisibleRevision'](_0x1d566b['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x101779},{id:_0x3bb568,revisionNameView:_0x43b5d3})=>{const _0x74afd9=_0x101779['get'](d),_0x2e7674=_0x74afd9['repository']['getEarlierVisibleRevision'](_0x3bb568);_0x74afd9['compare'](_0x3bb568,_0x2e7674),_0x43b5d3['focus'](),_0x43b5d3['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3ccfa5,_0x7b232c){super(_0x3ccfa5),this['_view']=_0x7b232c,this['_toolbarConfig']=ot(_0x3ccfa5['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x54d520){const _0x17b97f=this['editor'],_0x5b1260=this['view'],_0x5834a4=_0x17b97f['editing']['view'],_0x106ced=_0x5b1260['editable'],_0x3f0dc2=_0x5834a4['document']['getRoot']();_0x106ced['name']=_0x3f0dc2['rootName'],_0x5b1260['render']();const _0xf84391=_0x106ced['element'];this['setEditableElement'](_0x106ced['name'],_0xf84391),_0x5b1260['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5834a4['attachDomRoot'](_0xf84391),this['_elementReplacer']['replace'](_0x54d520,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5a2be7=this['view'],_0x3a17a2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3a17a2['detachDomRoot'](_0x5a2be7['editable']['name']),_0x5a2be7['destroy']();}['_initToolbar'](){const _0x223f18=this['view'];_0x223f18['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x223f18['stickyPanel']['limiterElement']=_0x223f18['element'],_0x223f18['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1b0066})=>_0x1b0066),_0x223f18['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x223f18['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x3b2886,_0x22934e,_0x34209f={}){super(_0x3b2886),this['stickyPanel']=new lt(_0x3b2886),this['toolbar']=new nt(_0x3b2886,{'shouldGroupWhenFull':_0x34209f['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x3b2886,_0x22934e);}['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(_0x323555,_0x299885){super(_0x299885),this['sourceElement']=_0x323555,this['model']['document']['createRoot']();const _0x128027=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x128027);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x386c08,_0x17338a){const _0x1aa185=new this(_0x386c08,_0x17338a);return await _0x1aa185['initPlugins'](),await _0x1aa185['ui']['init'](_0x386c08),await _0x1aa185['data']['init'](_0x1aa185['config']['get']('initialData')||''),_0x1aa185['fire']('ready'),_0x1aa185;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x45244f{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x55abb8){function _0x18fb36(_0x408610){return _0x408610['map'](_0x38eb5d=>String['fromCharCode'](_0x38eb5d))['join']('');}super(_0x55abb8),this['result']='end',_0x55abb8[_0x18fb36([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x18fb36([0x76,0x69,0x65,0x77])][_0x18fb36([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x18fb36([0x61,0x75,0x74,0x6f]),_0x55abb8[_0x18fb36([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x18fb36([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x18fb36([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x18fb36([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x18fb36([0x6f,0x6b])});}}class k extends _0x45244f{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x5656e1){if(super(_0x5656e1),!this['editor']['config']['get']('revisionHistory'))throw new _0x4d9fd9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x169dce=>this['_showRevisionViewer']({..._0x169dce,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x193386=>this['_closeRevisionViewer'](_0x193386)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x8c2d12=>this['_restoreRevision'](_0x8c2d12)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2c0fe7){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2c0fe7;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x439277){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x439277);}['getRevision'](_0x53b0d3){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x53b0d3);}['getRevisions'](_0x431107){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x431107||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x21689e=this['editor'],_0x2b1fd8=_0x15971f(_0x21689e,p),_0x458caf=_0x21689e['plugins']['get']('RevisionTracker'),_0x31d42e=_0x21689e['plugins']['get']('Users')['users'];return _0x2b1fd8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2b1fd8['lazyRoots'],(_0x2b1fd8['plugins']['push'](Rt,d,w,class extends _0x45244f{static get['requires'](){return[d,'Users'];}['init'](){const _0x3bfc8c=this['editor']['plugins']['get']('Users');for(const _0x511787 of _0x31d42e)_0x511787['isAnonymous']||_0x3bfc8c['getUser'](_0x511787['id'])||_0x3bfc8c['addUser'](_0x511787);const _0x1a717b=_0x458caf['repository']['getRevisions']();let _0x5695a1=null;const _0x2e8772=this['editor']['plugins']['get']('RevisionViewer');_0x2e8772['adapter']=_0x458caf['adapter'],_0x2e8772['bind']('isEnabled')['to'](_0x458caf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x21689e,'isReadOnly',_0x5a7552=>!_0x5a7552);for(const _0x122781 of _0x1a717b){const _0x2a65ef=null===_0x122781['creator'];if(_0x2a65ef&&_0x122781['toVersion']===_0x122781['fromVersion'])continue;const _0xd207e7=_0x122781['toJSON']();_0x2e8772['addRevisionData'](_0xd207e7,(_0x1359c1,_0x3f65fc,_0x1fd82)=>{if(_0x2a65ef){if(_0x5695a1)_0x5695a1['_update'](_0x1359c1,_0x3f65fc);else{if(!_0x3f65fc){const _0x493f25=_0x1fd82['toJSON']();_0x493f25['id']=_0x5b3171(),_0x458caf['saveRevision'](_0x493f25,_0x1fd82['toVersion'])['then'](_0xeead56=>{_0x5695a1=_0xeead56;});}}}else _0x122781['_update'](_0x1359c1,_0x3f65fc);});}}},g),_0x2b1fd8);}['_enhanceShowRevisionViewerCallback'](){const _0x4c9a04=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4979a2=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x45febc=this['editor']['plugins']['get']('Autosave');await _0x45febc['save']();}else await _0x4979a2['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2eb7f0=this['editor']['plugins']['get']('Dialog');_0x2eb7f0['isOpen']&&_0x2eb7f0['hide']();}const _0x2ad70f=this['_getRevisionViewerEditorConfig']();return _0x4c9a04(_0x2ad70f)['then'](_0x384a4d=>{return(this['_viewerEditor']=_0x384a4d,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x384a4d;})['catch'](_0x2e33af=>(console['error'](_0x2e33af),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2bcc9d=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'](),_0x2bcc9d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5a808c=this['editor']['plugins']['get']('Annotations');_0x5a808c['refreshVisibility'](),_0x5a808c['refreshPositioning']();}})));}['_showRevisionViewer'](_0x597666){const _0x2fb59d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x33cd1c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x10d1a2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x10d1a2,_0x597666)['then'](_0x3d789e=>(_0x33cd1c['style']['display']='block',_0x2fb59d['style']['display']='none',_0x3d789e));}['_closeRevisionViewer'](_0x12ca69){const _0x2da433=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2da433['style']['display']='',_0x12ca69['destroy']();}async['_restoreRevision'](_0x14efcd){const _0x84dc19=this['editor'],_0x548915=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4f1537=_0x84dc19['plugins']['get']('RevisionTracker'),_0x12d2ae=_0x548915['repository']['getRevision'](_0x14efcd);let _0x24ffd3,_0x116786,_0x38ccbf;try{_0x24ffd3=await _0x548915['getRevisionData'](_0x12d2ae),_0x116786=await _0x548915['getRevisionRootsAttributes'](_0x12d2ae);}catch(_0x7074e1){return void console['error'](_0x7074e1);}_0x84dc19['model']['change'](_0x29ae43=>{for(const _0x557a9f of Array['from'](_0x84dc19['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x29ae43['removeMarker'](_0x557a9f);}),_0x548915['isReady']=!0x1,_0x84dc19['model']['enqueueChange'](_0x529675=>{_0x529675['setSelection'](null),_0x529675['removeSelectionAttribute'](_0x84dc19['model']['document']['selection']['getAttributeKeys']());const _0x15c9a8=Object['keys'](_0x24ffd3);for(const _0x1af8c5 of _0x84dc19['model']['document']['roots'])'$graveyard'!=_0x1af8c5['rootName']&&_0x1af8c5['isAttached']()&&!_0x15c9a8['includes'](_0x1af8c5['rootName'])&&_0x529675['detachRoot'](_0x1af8c5);for(const _0x554080 of _0x15c9a8){let _0x7cc0fb=_0x84dc19['model']['document']['getRoot'](_0x554080);_0x7cc0fb&&_0x7cc0fb['isAttached']()||(_0x7cc0fb=_0x529675['addRoot'](_0x554080));const _0x3f612f=_0x116786[_0x554080],_0x19950b=Object['keys'](_0x3f612f),_0x32237e=_0x24ffd3[_0x554080];for(const _0x1ef992 of _0x7cc0fb['getAttributeKeys']())_0x19950b['includes'](_0x1ef992)||_0x529675['removeAttribute'](_0x1ef992,_0x7cc0fb);for(const _0x5379ff of _0x19950b)_0x529675['setAttribute'](_0x5379ff,_0x116786[_0x554080][_0x5379ff],_0x7cc0fb);_0x529675['remove'](_0x529675['createRangeIn'](_0x7cc0fb)),_0x529675['insert'](_0x84dc19['data']['parse'](_0x32237e,_0x7cc0fb),_0x7cc0fb,0x0);}});const _0x44fd21=m(_0x84dc19['locale'],'Restored');if(_0x12d2ae['name'])_0x38ccbf=-0x1==_0x12d2ae['name']['indexOf'](_0x44fd21)?_0x44fd21+':\x20'+_0x12d2ae['name']:_0x12d2ae['name'];else _0x38ccbf=_0x44fd21+':\x20'+(_0x12d2ae['createdAt']['toLocaleDateString'](_0x84dc19['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x12d2ae['createdAt']['toLocaleTimeString'](_0x84dc19['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4f1537['saveRevision']({'name':_0x38ccbf}),_0x548915['isReady']=!0x0,_0x84dc19['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};