@ckeditor/ckeditor5-revision-history 46.0.0-alpha.1 → 46.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +7 -7
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +11 -11
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionhistoryutils.js +1 -1
  159. package/src/revisionsrepository.js +1 -1
  160. package/src/revisiontracker.js +1 -1
  161. package/src/revisionviewer.js +1 -1
  162. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  163. package/src/ui/revision/revisionauthorview.js +1 -1
  164. package/src/ui/revision/revisionnameview.js +1 -1
  165. package/src/ui/revision/revisionview.js +2 -2
  166. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  167. package/src/ui/revision/subrevisionview.js +1 -1
  168. package/src/ui/revision/utils.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +2 -2
  170. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  174. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  175. package/src/ui/revisionssidebar/utils.js +1 -1
  176. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  177. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  179. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  180. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,11 +20,11 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x2bafdc,uid as _0x29d31e,Collection as _0x2d4b38,logWarning as _0x175045,FocusTracker as _0x484765,KeystrokeHandler as _0x3a99cb,scrollViewportToShowTarget as _0x52ec3f,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x4303f6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3153c8,set as _0xda55da,unset as _0x29b43e,isEqual as _0x2e0e8d}from'es-toolkit/compat';import{Plugin as _0x594d24,PendingActions as _0x5b04d4,Command as _0x31431b,ElementApiMixin as _0x2cebf3,Editor as _0x5d886f}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x488749,getMarkerDomElement as _0x291ee7,ConfirmMixin as _0x424bb4,sanitizeEditorConfig as _0x2648be}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x50edb0,ViewAttributeElement as _0x4b0dec,ViewEmptyElement as _0x3d6b41,ViewRawElement as _0x20b61f,ViewUIElement as _0x5ba7b6,ViewDocumentFragment as _0x496fe7,ViewText as _0x299fd1,ViewElement as _0x5b2765,ModelElement as _0x14dfc7,ModelRange as _0x1f3523,ModelPosition as _0x1aa988,ModelDocumentFragment as _0x367b4a,ModelText as _0x30226a}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x1c60bc,IconChevronUp as _0x5a82ac,IconChevronDown as _0x38eb4d,IconUndo as _0x1995d5,IconUser as _0x14b518,IconThreeVerticalDots as _0xf8bf85}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x4f7ea1,View as _0x47987e,submitHandler as _0x2460a9,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x514a35,ListView as _0x17c088,ListItemView as _0x392bd3,ButtonView as _0x18e75a,MenuBarMenuView as _0x15bdb6,MenuBarMenuListView as _0x275466,MenuBarMenuListItemView as _0x4c4991,MenuBarMenuListItemButtonView as _0x303dce,ContextualBalloon as _0x1dace3,ToolbarSeparatorView as _0x28081e,IconView as _0x26b0bd,addListToDropdown as _0x1e3dad,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x5c6dee,StickyPanelView as _0x4a5029,ToolbarView as _0x443442,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x26b2ca}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
- _0x2bafdc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x4cbaeb){super(),this['id']=_0x4cbaeb['id']||_0x29d31e(),this['creator']=_0x4cbaeb['creator']||null,this['authors']=_0x4cbaeb['authors']||[],this['diffData']=_0x4cbaeb['diffData']||null,this['toVersion']=_0x4cbaeb['toVersion']||0x0,this['fromVersion']=_0x4cbaeb['fromVersion']||0x0,this['set']('name',_0x4cbaeb['name']||''),this['set']('createdAt',_0x4cbaeb['createdAt']||new Date()),this['set']('attributes',_0x4cbaeb['attributes']||{});}['setName'](_0x4957f0){this['_update']({'name':_0x4957f0});}['setAttribute'](_0x2b811d,_0x2040d1){const _0x2cec10=_0x3153c8(this['attributes']);_0xda55da(_0x2cec10,_0x2b811d,_0x2040d1),this['_update']({'attributes':_0x2cec10});}['removeAttribute'](_0x2cbcc0){const _0x4a99f9=_0x3153c8(this['attributes']);_0x29b43e(_0x4a99f9,_0x2cbcc0),this['_update']({'attributes':_0x4a99f9});}['_update'](_0x4f9286,_0x4060f5=!0x1){let _0x4db9a8=!0x1;const _0x126d69={'id':this['id']},_0x53ac6b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x10a187 of _0x53ac6b){const _0x339a1d=_0x4f9286[_0x10a187];void 0x0!==_0x339a1d&&_0x339a1d!==this[_0x10a187]&&(this[_0x10a187]=_0x339a1d,_0x126d69[_0x10a187]=_0x339a1d,_0x4db9a8=!0x0);}_0x4db9a8&&(_0x126d69['authors']&&(_0x126d69['authorsIds']=_0x126d69['authors']['map'](_0x381384=>_0x381384['id']),delete _0x126d69['authors']),this['fire']('_update',_0x126d69,_0x4060f5));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x406a43=>_0x406a43['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x594d24{['_revisions'];static get['requires'](){return[_0x488749];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4ae62c){super(_0x4ae62c),this['_revisions']=new _0x2d4b38();}['afterInit'](){!async function(_0x4633b4){const _0x5fc0eb=_0x27ba33([0x66,0x4b,0x46,0x31,0x70,0x41,0x45,0x62,0x39,0x67,0x58,0x73,0x68,0x4d,0x76,0x52,0x48,0x6f,0x43,0x4a,0x30,0x56,0x7a,0x57,0x6b,0x55,0x42,0x33,0x69,0x75,0x37,0x65,0x4f,0x72,0x74,0x38,0x53,0x51,0x77,0x35,0x5a,0x61,0x64,0x47,0x71,0x6c,0x6d,0x6e,0x36,0x54,0x50,0x4e,0x63,0x49,0x44,0x59,0x32,0x4c,0x78,0x34,0x79,0x6a]),_0x115df5=0xeb829,_0x43eee6=0x2c1db993,_0x1d31c3=0x2c1ad5fb^_0x43eee6,_0xfe33cc=window[_0x27ba33([0x44,0x61,0x74,0x65])][_0x27ba33([0x6e,0x6f,0x77])](),_0x30afa1=_0x4633b4[_0x27ba33([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x201224=new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x325218=>{_0x30afa1[_0x27ba33([0x6f,0x6e,0x63,0x65])](_0x27ba33([0x72,0x65,0x61,0x64,0x79]),_0x325218);}),_0xaf2024={[_0x27ba33([0x6b,0x74,0x79])]:_0x27ba33([0x45,0x43]),[_0x27ba33([0x75,0x73,0x65])]:_0x27ba33([0x73,0x69,0x67]),[_0x27ba33([0x63,0x72,0x76])]:_0x27ba33([0x50,0x2d,0x32,0x35,0x36]),[_0x27ba33([0x78])]:_0x27ba33([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]),[_0x27ba33([0x79])]:_0x27ba33([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]),[_0x27ba33([0x61,0x6c,0x67])]:_0x27ba33([0x45,0x53,0x32,0x35,0x36])},_0x480a95=_0x30afa1[_0x27ba33([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x27ba33([0x67,0x65,0x74])](_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2af024(){let _0x1992d9,_0x11ff90=null,_0x4457dd=null;try{if(_0x480a95==_0x27ba33([0x47,0x50,0x4c]))return _0x27ba33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1992d9=_0x548469(),!_0x1992d9)return _0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1992d9[_0x27ba33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4457dd=_0x496880(_0x1992d9[_0x27ba33([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1992d9[_0x27ba33([0x6a,0x74,0x69])])),await _0x3bfef3()?_0x3646a5()?_0x329774()?_0x27ba33([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xc28854()?(_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27ba33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x11ff90=_0x21b68a(_0x27ba33([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x27ba33([0x74,0x72,0x69,0x61,0x6c])&&(_0x11ff90=_0x21b68a(_0x27ba33([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3309f9()):_0x27ba33([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x27ba33([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x27ba33([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x329774(){const _0x5724e5=[_0x27ba33([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x27ba33([0x74,0x72,0x69,0x61,0x6c])][_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfe33cc/0x3e8:0xe10*_0x1d31c3;return _0x1992d9[_0x27ba33([0x65,0x78,0x70])]<_0x5724e5;}function _0x3646a5(){const _0x16e62e=_0x1992d9[_0x27ba33([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x16e62e)return!0x1;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x2a])))return!0x0;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x52,0x48])))return!0x0;if(_0x16e62e[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x52,0x52,0x48]))){if(_0x3c4374())return!0x0;if(_0x4a2299()||_0x38960c())return!0x0;}return!0x1;}function _0xc28854(){const _0x20901f=_0x1992d9[_0x27ba33([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x20901f||0x0==_0x20901f[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3ed77f}=new URL(window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x20901f[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3ed77f))return!0x0;const _0x3521d2=_0x3ed77f[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e]));return _0x20901f[_0x27ba33([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x7de8e1=>_0x7de8e1[_0x27ba33([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x27ba33([0x2a])))[_0x27ba33([0x6d,0x61,0x70])](_0x4ec28a=>_0x4ec28a[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e])))[_0x27ba33([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x59ec58=>_0x59ec58[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3521d2[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27ba33([0x6d,0x61,0x70])](_0x448e12=>Array(_0x3521d2[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x448e12[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x27ba33([0x66,0x69,0x6c,0x6c])](_0x448e12[0x0]===_0x27ba33([0x2a])?_0x27ba33([0x2a]):'')[_0x27ba33([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x448e12))[_0x27ba33([0x73,0x6f,0x6d,0x65])](_0x216bd3=>_0x3521d2[_0x27ba33([0x65,0x76,0x65,0x72,0x79])]((_0x40d4bb,_0xc09760)=>_0x216bd3[_0xc09760]===_0x40d4bb||_0x216bd3[_0xc09760]===_0x27ba33([0x2a])));}function _0x3309f9(){return _0x11ff90&&_0x4457dd?new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3116a4,_0x145da4)=>{_0x11ff90[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x3116a4,_0x145da4),_0x4457dd[_0x27ba33([0x74,0x68,0x65,0x6e])](_0xddd42=>{_0xddd42!=_0x27ba33([0x56,0x61,0x6c,0x69,0x64])&&_0x3116a4(_0xddd42);},_0x145da4);}):_0x11ff90||_0x4457dd||_0x27ba33([0x56,0x61,0x6c,0x69,0x64]);}}function _0x496880(_0x366d29,_0x42ff88){return new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x431950=>{if(_0x4a5ce6())return _0x431950(_0x27ba33([0x56,0x61,0x6c,0x69,0x64]));_0x270931(),_0x30afa1[_0x27ba33([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x12aae9=!0x1;const _0x51d35b=_0x29d31e();function _0x4c03ef(_0x13a5cd){return!!_0x13a5cd&&(typeof _0x13a5cd===_0x27ba33([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13a5cd===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13a5cd[_0x27ba33([0x74,0x68,0x65,0x6e])]===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13a5cd[_0x27ba33([0x63,0x61,0x74,0x63,0x68])]===_0x27ba33([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x25ab7c(_0x38d590){_0x380de0(_0x38d590)[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x24e62b=>{if(!_0x24e62b||_0x24e62b[_0x27ba33([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x27ba33([0x6f,0x6b]))return _0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d118b(_0x499887(_0x51d35b+_0x42ff88))!=_0x24e62b[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x27ba33([0x56,0x61,0x6c,0x69,0x64]);})[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x5a9452=>(_0x7020b4(),_0x5a9452),()=>{const _0x609832=_0x3d7f07();return null==_0x609832?(_0x7020b4(),_0x27ba33([0x56,0x61,0x6c,0x69,0x64])):_0x27ba33(_0xfe33cc-_0x609832>(0x8113d93^_0x43eee6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x431950)[_0x27ba33([0x63,0x61,0x74,0x63,0x68])](()=>{_0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x223868=0x2c2b5713^_0x43eee6;function _0x7020b4(){const _0x2256c7=_0x27ba33([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d118b(_0x499887(_0x366d29)),_0x52f9d2=_0x2d8c49(_0x5d118b(window[_0x27ba33([0x4d,0x61,0x74,0x68])][_0x27ba33([0x63,0x65,0x69,0x6c])](_0xfe33cc/_0x223868)));window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27ba33([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2256c7,_0x52f9d2);}function _0x3d7f07(){const _0x5be339=_0x27ba33([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d118b(_0x499887(_0x366d29)),_0x3574a4=window[_0x27ba33([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x27ba33([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5be339);return _0x3574a4?window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d8c49(_0x3574a4),0x10)*_0x223868:null;}function _0x380de0(_0x425cd5){return new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x592bd9,_0x561164)=>{_0x425cd5[_0x27ba33([0x74,0x68,0x65,0x6e])](_0x592bd9,_0x561164),window[_0x27ba33([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x561164,0x2c1c6d53^_0x43eee6);});}}_0x30afa1[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1c98b1,_0x2f68f)=>{if(_0x2f68f[0x0]!=_0x366d29)return _0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f68f[0x1]={..._0x2f68f[0x1],[_0x27ba33([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x51d35b};},{[_0x27ba33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27ba33([0x68,0x69,0x67,0x68])}),_0x30afa1[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c4f50=>{_0x4c03ef(_0x2c4f50[_0x27ba33([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x12aae9=!0x0,_0x25ab7c(_0x2c4f50[_0x27ba33([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x27ba33([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x27ba33([0x6c,0x6f,0x77])}),_0x201224[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>{_0x12aae9||_0x431950(_0x27ba33([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a5ce6(){return _0x30afa1[_0x27ba33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27ba33([0x76,0x69,0x65,0x77])][_0x27ba33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x27ba33([0x61,0x75,0x74,0x6f]);}function _0x270931(){_0x30afa1[_0x27ba33([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x27ba33([0x76,0x69,0x65,0x77])][_0x27ba33([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x27ba33([0x61,0x75,0x74,0x6f]);}}function _0x21b68a(_0x1fe0b5){const _0x1ff5b5=[new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x391825=>setTimeout(_0x391825,0x2c14875f^_0x43eee6)),_0x201224[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x264446=>{const _0x40eb0b=0x2c1db994^_0x43eee6,_0x923b29=_0x4633b4[_0x27ba33([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1ebb58(){_0x923b29[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x40eb0b&&_0x264446();}_0x1ebb58(),_0x923b29[_0x27ba33([0x6f,0x6e])](_0x27ba33([0x61,0x64,0x64]),_0x1ebb58);})),new window[(_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4afce3=>{function _0x381ac3(){for(const _0xd9cccc in window)if(window[_0x27ba33([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x27ba33([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xd9cccc))&&window[_0xd9cccc]==_0x115df5)return _0x4afce3();_0x30afa1[_0x27ba33([0x73,0x74,0x61,0x74,0x65])]!=_0x27ba33([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x27ba33([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x381ac3,0x2c1daa1b^_0x43eee6);}_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x381ac3();})];return window[_0x27ba33([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x27ba33([0x72,0x61,0x63,0x65])](_0x1ff5b5)[_0x27ba33([0x74,0x68,0x65,0x6e])](()=>_0x1fe0b5);}async function _0x119213(){if(await _0x201224,_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x123ca1=_0x4633b4[_0x27ba33([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x5d5966=_0x4633b4[_0x27ba33([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])](_0x123ca1[_0x27ba33([0x69,0x64])]),_0x32b3b4=_0x4d36ba(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x32b3b4[_0x27ba33([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x123ca1['id'],_0x5d5966?_0x5d5966['id']:null,!0x0),_0x32b3b4[_0x27ba33([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x32b3b4[_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x32b3b4[_0x27ba33([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2408e3,void(_0x32b3b4[_0x27ba33([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2408e3);}if(_0x10f0b1(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x146b85=_0x4d36ba(_0x27ba33([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x146b85[_0x27ba33([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x146b85[_0x27ba33([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x146b85[_0x27ba33([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2408e3,_0x146b85[_0x27ba33([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2408e3;}_0x30afa1[_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c])][_0x27ba33([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2408e3,_0x30afa1[_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c])][_0x27ba33([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2408e3,_0x30afa1[_0x27ba33([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x27ba33([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c4374(){return _0x10f0b1(_0x27ba33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4d36ba(_0x27ba33([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x27ba33([0x73,0x74,0x61,0x74,0x65])]==_0x27ba33([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4a2299(){return _0x10f0b1(_0x27ba33([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 _0x38960c(){return _0x10f0b1(_0x27ba33([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3ab8f(_0x404d69){const _0x1df16f=_0x49d574();_0x30afa1[_0x1df16f]=_0x27ba33([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])+_0x404d69,_0x404d69[_0x27ba33([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x27ba33([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x49d574()]=_0x115df5),_0x404d69!=_0x27ba33([0x56,0x61,0x6c,0x69,0x64])&&_0x119213();}function _0x49d574(){const _0x2fb76f=window[_0x27ba33([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x27ba33([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x27ba33([0x6e,0x6f,0x77])]())[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x27ba33([0x2e]),'');let _0x3ddf26=_0x27ba33([0x66]);for(let _0x30416b=0x0;_0x30416b<_0x2fb76f[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x30416b+=0x2){let _0x31c586=window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2fb76f[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30416b,_0x30416b+0x2));_0x31c586>=_0x5fc0eb[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31c586-=_0x5fc0eb[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ddf26+=_0x5fc0eb[_0x31c586];}return _0x3ddf26;}function _0x548469(){const _0x10b87e=_0x480a95[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e]));if(0x3!=_0x10b87e[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f4600(_0x10b87e[0x1]);function _0x2f4600(_0xa3e854){const _0x22ba96=_0x4ff06e(_0xa3e854);return _0x22ba96&&_0x4f1f30()?_0x22ba96:null;function _0x4f1f30(){const _0x362242=_0x22ba96[_0x27ba33([0x6a,0x74,0x69])],_0x30afab=window[_0x27ba33([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x362242[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x362242[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2188e1={..._0x22ba96,[_0x27ba33([0x6a,0x74,0x69])]:_0x362242[_0x27ba33([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x362242[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2188e1[_0x27ba33([0x76,0x63])],_0x499887(_0x2188e1)==_0x30afab;}}}async function _0x3bfef3(){let _0x34b7d9=!0x0;try{const _0x4cf693=_0x480a95[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])](_0x27ba33([0x2e])),[_0x867161,_0x4b9a3f,_0x1148fa]=_0x4cf693;return _0x3951dd(_0x867161),await _0x40c849(_0x867161,_0x4b9a3f,_0x1148fa),_0x34b7d9;}catch{return!0x1;}function _0x3951dd(_0x2f5812){const _0x342089=_0x4ff06e(_0x2f5812);_0x342089&&_0x342089[_0x27ba33([0x61,0x6c,0x67])]==_0x27ba33([0x45,0x53,0x32,0x35,0x36])||(_0x34b7d9=!0x1);}async function _0x40c849(_0x496566,_0x3a0b7e,_0x90cbd4){const _0xe81486=window[_0x27ba33([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x27ba33([0x66,0x72,0x6f,0x6d])](_0x55b99c(_0x90cbd4),_0x38be8d=>_0x38be8d[_0x27ba33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1ab921=new window[(_0x27ba33([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x27ba33([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x496566+_0x27ba33([0x2e])+_0x3a0b7e),_0x5f088f=window[_0x27ba33([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x27ba33([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5f088f)return;const _0x368e14=await _0x5f088f[_0x27ba33([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x27ba33([0x6a,0x77,0x6b]),_0xaf2024,{[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x45,0x43,0x44,0x53,0x41]),[_0x27ba33([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x27ba33([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5f088f[_0x27ba33([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x45,0x43,0x44,0x53,0x41]),[_0x27ba33([0x68,0x61,0x73,0x68])]:{[_0x27ba33([0x6e,0x61,0x6d,0x65])]:_0x27ba33([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x368e14,_0xe81486,_0x1ab921)||(_0x34b7d9=!0x1);}}function _0x4ff06e(_0x35db76){return _0x35db76[_0x27ba33([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x27ba33([0x65,0x79]))?JSON[_0x27ba33([0x70,0x61,0x72,0x73,0x65])](_0x55b99c(_0x35db76)):null;}function _0x55b99c(_0x5e3fdc){return window[_0x27ba33([0x61,0x74,0x6f,0x62])](_0x5e3fdc[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x27ba33([0x2b]))[_0x27ba33([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x27ba33([0x2f])));}function _0x499887(_0x3ff2eb){let _0x4155ca=0x1505;function _0x5d1ab2(_0x38a270){for(let _0x3460f2=0x0;_0x3460f2<_0x38a270[_0x27ba33([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3460f2++){const _0xef2c6e=_0x38a270[_0x27ba33([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3460f2);_0x4155ca=(_0x4155ca<<0x5)+_0x4155ca+_0xef2c6e,_0x4155ca&=_0x4155ca;}}function _0x4e1ce5(_0x498425){Array[_0x27ba33([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x498425)?_0x498425[_0x27ba33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4e1ce5):_0x498425&&typeof _0x498425==_0x27ba33([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x27ba33([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x498425)[_0x27ba33([0x73,0x6f,0x72,0x74])]()[_0x27ba33([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5a82af,_0x311fd2])=>{_0x5d1ab2(_0x5a82af),_0x4e1ce5(_0x311fd2);}):_0x5d1ab2(window[_0x27ba33([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x498425));}return _0x4e1ce5(_0x3ff2eb),_0x4155ca>>>0x0;}function _0x5d118b(_0x267597){return _0x267597[_0x27ba33([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x27ba33([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x27ba33([0x30]));}function _0x2d8c49(_0x54a6f6){return _0x54a6f6[_0x27ba33([0x73,0x70,0x6c,0x69,0x74])]('')[_0x27ba33([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x27ba33([0x6a,0x6f,0x69,0x6e])]('');}function _0x10f0b1(_0x51bbc7){return _0x30afa1[_0x27ba33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27ba33([0x68,0x61,0x73])](_0x51bbc7);}function _0x4d36ba(_0x591653){return _0x30afa1[_0x27ba33([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x27ba33([0x67,0x65,0x74])](_0x591653);}function _0x2408e3(){}function _0x27ba33(_0x50b771){return _0x50b771['map'](_0x40208c=>String['fromCharCode'](_0x40208c))['join']('');}_0x3ab8f(await _0x2af024());}(this);}['createRevision'](_0x4c737f){const _0x1ee1e0=this['editor']['plugins']['get']('Users');return new I({'id':_0x4c737f['id'],'name':_0x4c737f['name'],'creator':_0x4c737f['creatorId']?_0x1ee1e0['getUser'](_0x4c737f['creatorId']):null,'diffData':_0x4c737f['diffData']||_0x4c737f['data'],'authors':_0x4c737f['authorsIds']['map'](_0x50553f=>_0x1ee1e0['getUser'](_0x50553f)),'createdAt':new Date(_0x4c737f['createdAt']),'attributes':_0x4c737f['attributes'],'fromVersion':_0x4c737f['fromVersion'],'toVersion':_0x4c737f['toVersion']});}['addRevision'](_0x2ed490,_0x4ddfeb=0x0){this['_revisions']['add'](_0x2ed490,_0x4ddfeb);}['getRevision'](_0xb03fbd){return this['_revisions']['get'](_0xb03fbd);}['getRevisions'](_0x23c073={'toJSON':!0x1}){const _0x56c34f=Array['from'](this['_revisions']);return _0x56c34f['reverse'](),_0x23c073['toJSON']?_0x56c34f['map'](_0x2ca21f=>_0x2ca21f['toJSON']()):_0x56c34f;}['getIndex'](_0x543508){return this['_revisions']['getIndex'](_0x543508);}['getEarlierVisibleRevision'](_0x4dece5){const [,_0x2e6abf]=this['getRevisionsIterator'](_0x4dece5,{'direction':'earlier'});return _0x2e6abf;}['getLaterVisibleRevision'](_0x1bf235){const [,_0x1c4768]=this['getRevisionsIterator'](_0x1bf235,{'direction':'later'});return _0x1c4768;}['getRevisionsInDiff'](_0x4ced9b){const _0x41646d=[];for(const _0x17dc2d of this['getRevisionsIterator'](_0x4ced9b['newRevisionId']))if(_0x41646d['push'](_0x17dc2d),_0x17dc2d['id']===_0x4ced9b['oldRevisionId'])break;return _0x41646d;}*['getRevisionsIterator'](_0x1b1693,{direction:_0x26f015='earlier',filter:_0x464224=()=>!0x0}={}){const _0x38cbb0='earlier'===_0x26f015?0x1:-0x1;let _0x169232=this['_revisions']['get'](_0x1b1693),_0x20bdbe=this['getIndex'](_0x169232);for(yield _0x169232;_0x169232;){if(_0x20bdbe+=_0x38cbb0,_0x169232=this['getRevision'](_0x20bdbe),!_0x169232)return;_0x464224(_0x169232)&&(yield _0x169232);}}}class $ extends _0x594d24{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x50edb0,'c'],[_0x4b0dec,'a'],[_0x3d6b41,'e'],[_0x20b61f,'r'],[_0x5ba7b6,'u']]);['_typeCharToViewClass']=new Map([['c',_0x50edb0],['a',_0x4b0dec],['e',_0x3d6b41],['r',_0x20b61f],['u',_0x5ba7b6]]);async['loadRevisionData'](_0x51a6b7,_0x29391c){if(_0x51a6b7['diffData']||!_0x29391c)return;const _0x42b47f=this['editor']['config']['get']('collaboration.channelId'),_0x25f01b=await _0x29391c['getRevision']({'channelId':_0x42b47f,'revisionId':_0x51a6b7['id']});_0x51a6b7['diffData']=_0x25f01b['diffData'];}['getRevisionDocumentData'](_0x475633){const _0x5e7d6b={};for(const _0x4ac3fd in _0x475633['diffData']){if(_0x475633['diffData'][_0x4ac3fd]['attachChange']&&!_0x475633['diffData'][_0x4ac3fd]['attachChange']['isAttached'])continue;const _0x2efc0a=this['_removeRevisionMarkers'](JSON['parse'](_0x475633['diffData'][_0x4ac3fd]['insertions'])),_0x11e7ed=this['editor']['editing']['view']['document'],_0x59003a=new _0x496fe7(_0x11e7ed,_0x2efc0a['map'](_0x3d1a69=>this['_getViewFromDiffObj'](_0x3d1a69,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5e7d6b[_0x4ac3fd]=this['editor']['data']['processor']['toData'](_0x59003a),this['editor']['data']['processor']['useFillerType']('default');}return _0x5e7d6b;}['getRevisionRootsAttributes'](_0x260a1c){const _0x134924={};for(const _0x3dab46 in _0x260a1c['diffData'])_0x260a1c['diffData'][_0x3dab46]['attachChange']&&!_0x260a1c['diffData'][_0x3dab46]['attachChange']['isAttached']||(_0x134924[_0x3dab46]=_0x260a1c['diffData'][_0x3dab46]['attributesAfter']||{});return _0x134924;}['_getTypeCharForViewElement'](_0x84353){return this['_viewClassToTypeChar']['get'](_0x84353['constructor']);}['_getViewFromDiffObj'](_0x3995e4,_0x4ffe0a){const _0x29d890=this['editor']['editing']['view']['document'];if('string'==typeof _0x3995e4)return new _0x299fd1(_0x29d890,_0x3995e4);{let _0x1edbf3,_0x3574f8;_0x3574f8='u'==_0x3995e4['type']||'r'==_0x3995e4['type']?[]:_0x3995e4['children']['map'](_0x1f78a7=>this['_getViewFromDiffObj'](_0x1f78a7,_0x4ffe0a));const _0x22a530=this['_typeCharToViewClass']['get'](_0x3995e4['type'])||_0x5b2765,_0x4d8449=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1edbf3=new _0x22a530(_0x29d890,_0x3995e4['name'],_0x3995e4['attributes'],_0x3574f8),'u'==_0x3995e4['type']&&_0x3995e4['children'][0x0]){const _0x33919b=_0x3995e4['children'][0x0];if(_0x1edbf3['render']=function(_0x51afb1){const _0x5f00ed=_0x51afb1['createElement']('div');return _0x5f00ed['innerHTML']=_0x33919b,_0x5f00ed['childNodes'][0x0];},_0x4ffe0a){const _0x1f9190=new _0x496fe7(_0x29d890);_0x1f9190['_appendChild'](_0x1edbf3);const _0x2a429f=Array['from'](_0x4d8449['viewChildrenToDom'](_0x1f9190,{'bind':!0x1})),_0x217564=_0x4d8449['domDocument']['createElement']('div');_0x217564['append'](..._0x2a429f),_0x1edbf3=Array['from'](_0x4d8449['domChildrenToView'](_0x217564))[0x0];}}else{if('r'==_0x3995e4['type']&&_0x3995e4['children'][0x0]){const _0xd07e99=_0x3995e4['children'][0x0];if(_0x1edbf3['render']=function(_0x3a32cc){_0x3a32cc['innerHTML']=_0xd07e99;},_0x4ffe0a){const _0x3df1c3=new _0x496fe7(_0x29d890);_0x3df1c3['_appendChild'](_0x1edbf3);const _0x2cdc76=Array['from'](_0x4d8449['viewChildrenToDom'](_0x3df1c3,{'bind':!0x1})),_0x5ca5e8=_0x4d8449['domDocument']['createElement']('div');_0x5ca5e8['append'](..._0x2cdc76);const _0x3f22aa=Array['from'](_0x4d8449['domChildrenToView'](_0x5ca5e8));_0x3f22aa['length']>0x1?_0x1edbf3['_appendChild'](_0x3f22aa):_0x1edbf3=_0x3f22aa[0x0];}}}if(_0x3995e4['customProperties']){for(const [_0xb1a9c5,_0x330faa]of _0x3995e4['customProperties'])_0x1edbf3['_setCustomProperty'](_0xb1a9c5,_0x330faa);}const _0x320bcc=void 0x0===_0x3995e4['fillerOffset']?null:_0x3995e4['fillerOffset'];return null!==_0x320bcc&&(_0x1edbf3['getFillerOffset']=()=>_0x320bcc),_0x1edbf3;}}['_makeModelFromViewString'](_0x118832){const _0x40402a=JSON['parse'](_0x118832),_0x2aec8e=this['editor']['editing']['view']['document'],_0x15d7a8=new _0x496fe7(_0x2aec8e,_0x40402a['map'](_0x1cedbb=>this['_getViewFromDiffObj'](_0x1cedbb,!0x0)));return this['editor']['data']['toModel'](_0x15d7a8);}['_removeRevisionMarkers'](_0x4e9ea9){return(_0x4e9ea9=_0x4e9ea9['filter'](_0x580d52=>!_0x580d52['name']||'revision-start'!==_0x580d52['name']&&'revision-end'!==_0x580d52['name']))['forEach'](_0x4a2a31=>{'string'!=typeof _0x4a2a31&&(_0x4a2a31['children']=this['_removeRevisionMarkers'](_0x4a2a31['children']),_0x4a2a31['attributes']=_0x4a2a31['attributes']['filter'](_0x2c9ab3=>!_0x2c9ab3[0x0]['startsWith']('data-revision-')));}),_0x4e9ea9;}}function R(_0x287d55,_0x56b968,_0x5a1a0a){const t=_0x287d55['t'];switch(_0x56b968){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'},_0x5a1a0a);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5a1a0a);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x594d24{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x488749,S,$,_0x5b04d4];}constructor(_0x22950e){super(_0x22950e),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x52d177=_0x29d31e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x52d177},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x585d93=this['repository']['getRevision'](0x0),_0x1392ca=_0x585d93&&null===_0x585d93['creator']?_0x585d93:null;if(this['_continueCurrentRevision']=!!_0x1392ca&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x31765b=this['_source']['getCurrentRevisionId'](),_0x65fbb0=this['repository']['getRevision'](_0x31765b);if(_0x65fbb0)this['_startingVersion']=_0x65fbb0['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5c869c=this['_source']['history']['_operations']['find'](_0x234dc8=>!_0x234dc8['_isInit']),_0x4087a5=_0x5c869c?_0x5c869c['baseVersion']:this['_source']['history']['version'];_0x585d93?(_0x585d93['toVersion']<_0x4087a5&&_0x585d93['_update']({'toVersion':_0x4087a5}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id'],this['_startingVersion']=_0x1392ca['fromVersion']):(this['_startingVersion']=_0x585d93['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4087a5,this['_continueCurrentRevision']=!0x1);}}else _0x1392ca&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1392ca['toVersion'],this['editor']['model']['document']['history']['version']),_0x1392ca['fromVersion']===_0x1392ca['toVersion']?(0x0!==_0x1392ca['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1392ca['id'],this['_startingVersion']=_0x1392ca['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',_0x3c9e24=>!_0x3c9e24),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1a35db=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x19822b;for(const _0x545d2b in _0x1a35db){const _0x585b30=_0x545d2b,_0x4022c9=_0x1a35db[_0x585b30];if('revisionHistoryLicenseKeyValid'==_0x4022c9||'revisionHistoryLicenseKeyInvalid'==_0x4022c9||'revisionHistoryLicenseKeyExpired'==_0x4022c9||'revisionHistoryLicenseKeyDomainLimit'==_0x4022c9||'revisionHistoryLicenseKeyNotAllowed'==_0x4022c9||'revisionHistoryLicenseKeyEvaluationLimit'==_0x4022c9||'revisionHistoryLicenseKeyTrialLimit'==_0x4022c9||'revisionHistoryLicenseKeyUsageLimit'==_0x4022c9){delete _0x1a35db[_0x585b30],_0x19822b=_0x4022c9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x19822b&&_0x1a35db['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x19822b&&_0x1a35db['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x19822b&&_0x1a35db['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x19822b&&_0x1a35db['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1878c1=this['repository']['getRevision'](0x0),_0x100df6=await this['getRevisionDocumentData'](_0x1878c1),_0x5cf720=await this['getRevisionRootsAttributes'](_0x1878c1);this['_replaceEditorDataWithRevisionData'](_0x100df6,_0x5cf720);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3d6508){this['_source']=_0x3d6508;}async['update'](){const _0x39d554=await this['_source']['getLatestVersion']();if(_0x39d554>this['currentRevision']['toVersion']){await this['_loadState']();const _0xa690d8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x39d554});_0xa690d8['authors']=_0xa690d8['authorsIds']['map'](_0x2f205b=>this['editor']['plugins']['get']('Users')['getUser'](_0x2f205b)),this['currentRevision']['_update'](_0xa690d8);}}async['saveRevision'](_0x1ef7a6={},_0x487e90=null){const _0x169b3b=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x487e90>this['currentRevision']['toVersion']&&(_0x487e90=null),null===_0x487e90&&(_0x487e90=await this['_source']['getLatestVersion']());const _0x2c3edd=this['_getFromVersion'](_0x487e90),_0x29f002=this['buildRevisionData']({'from':_0x2c3edd,'to':_0x487e90});if(this['currentRevision']['toVersion']<_0x487e90){const _0x305329=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x487e90,'to':_0x487e90});_0x305329['authors']=[],_0x305329['authorsIds']=[],_0x305329['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x305329,!0x0),delete _0x305329['authors'],_0x169b3b['push'](_0x305329);}_0x1ef7a6['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x1ef7a6['name']=_0x1ef7a6['name']||null,_0x1ef7a6['id']=_0x1ef7a6['id']||_0x29d31e(),_0x1ef7a6={..._0x1ef7a6,..._0x29f002};const _0x35034f=this['addRevisionData'](_0x1ef7a6);_0x169b3b['push'](_0x1ef7a6);const _0x54c7ed=this['repository']['getIndex'](_0x35034f);if(0x0!==_0x54c7ed){const _0xf10d3e=this['repository']['getRevision'](_0x54c7ed-0x1);if(_0xf10d3e['fromVersion']!==_0x487e90){const _0x2d1f62=this['_revisionDataBuilder']['getData'](_0x487e90,_0xf10d3e['toVersion']),_0x585c19={'id':_0xf10d3e['id'],'diffData':_0x2d1f62['diffData'],'authorsIds':_0x2d1f62['authorsIds'],'authors':_0x2d1f62['authorsIds']['map'](_0x1a11be=>this['editor']['plugins']['get']('Users')['getUser'](_0x1a11be)),'fromVersion':_0x487e90};_0xf10d3e===this['currentRevision']&&(_0x585c19['createdAt']=new Date(_0x1ef7a6['createdAt']['getTime']()+0xa)),_0xf10d3e['_update'](_0x585c19,!0x0),delete _0x585c19['authors'],_0x169b3b['push'](_0x585c19);}}if(this['adapter']){for(const _0x39225f of _0x169b3b)this['_bufferUpdate'](_0x39225f['id'],_0x39225f,!0x0);this['sendBufferedUpdates']();}return _0x35034f;}['addRevisionData'](_0x395841){const _0x4b6923=this['repository']['createRevision'](_0x395841);return this['adapter']&&_0x4b6923['on']('_update',(_0x124f12,_0x5b6319,_0x364625)=>{_0x364625||(this['_bufferUpdate'](_0x5b6319['id'],_0x5b6319,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4b6923,this['_findInsertionIndex'](_0x4b6923)),_0x4b6923;}async['getRevisionDocumentData'](_0x2de518){return await this['_utils']['loadRevisionData'](_0x2de518,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2de518);}async['getRevisionRootsAttributes'](_0x3eaf70){return await this['_utils']['loadRevisionData'](_0x3eaf70,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3eaf70);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x17e191=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3cb976=0x0;_0x3cb976<_0x17e191['length'];_0x3cb976++){const _0x12b6fb=_0x17e191[_0x3cb976];let _0x45a663=!0x1;for(const _0x26cd78 of Object['keys'](_0x12b6fb))void 0x0===_0x12b6fb[_0x26cd78]?delete _0x12b6fb[_0x26cd78]:'id'!==_0x26cd78&&(_0x45a663=!0x0);_0x45a663||(_0x17e191[_0x3cb976]=null);}if(_0x17e191=_0x17e191['filter'](_0x3d6916=>null!==_0x3d6916),!_0x17e191['length'])return;for(let _0x3df441=0x0;_0x3df441<_0x17e191['length'];_0x3df441++){const _0x5182c5=_0x17e191[_0x3df441];void 0x0!==_0x5182c5['fromVersion']&&void 0x0===_0x5182c5['toVersion']&&(_0x5182c5['toVersion']=this['repository']['getRevision'](_0x5182c5['id'])['toVersion']),void 0x0!==_0x5182c5['toVersion']&&void 0x0===_0x5182c5['fromVersion']&&(_0x5182c5['fromVersion']=this['repository']['getRevision'](_0x5182c5['id'])['fromVersion']);}const _0x3d60db=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x17e191,_0x3d60db)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x27ac0e=>{if(_0x27ac0e){for(const _0x4e5587 of _0x27ac0e)this['setRevisionData']({'id':_0x4e5587['id'],'createdAt':_0x4e5587['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x25093c=null,from:_0xbe4f4e=null,to:_0x2cbac2=null}){_0xbe4f4e=null!==_0xbe4f4e?_0xbe4f4e:_0x25093c['fromVersion'],_0x2cbac2=null!==_0x2cbac2?_0x2cbac2:_0x25093c['toVersion'];const _0x5a0569=this['_revisionDataBuilder']['getData'](_0xbe4f4e,_0x2cbac2),_0x319d18={'diffData':_0x5a0569['diffData'],'authorsIds':_0x5a0569['authorsIds'],'fromVersion':_0xbe4f4e,'toVersion':_0x2cbac2};if(!_0x25093c||_0x2cbac2!==_0x25093c['toVersion']){const _0x2540fa=_0x2cbac2-0x1,_0x21c032=this['_source']['history']['getOperation'](_0x2540fa);_0x319d18['createdAt']=_0x21c032&&_0x21c032['createdAt']||new Date();}if(this['_loadedStateData']&&_0xbe4f4e===this['_loadedStateData']['fromVersion']){for(const _0x1afffb of this['_loadedStateData']['authors'])_0x319d18['authorsIds']['includes'](_0x1afffb['id'])||_0x319d18['authorsIds']['push'](_0x1afffb['id']);}return _0x319d18;}['_bufferUpdate'](_0x54e5ab,_0x5ac519,_0x32890e){if(this['_bufferedUpdates']['has'](_0x54e5ab)){const _0x292615=this['_bufferedUpdates']['get'](_0x54e5ab);_0x5ac519=_0x32890e?{..._0x292615,..._0x5ac519}:{..._0x5ac519,..._0x292615};}this['_bufferedUpdates']['set'](_0x54e5ab,_0x5ac519);}['setRevisionData'](_0x231c1b){const _0x25e2f1=this['repository']['getRevision'](_0x231c1b['id']);if(_0x231c1b['createdAt']&&(_0x231c1b['createdAt']=new Date(_0x231c1b['createdAt'])),_0x231c1b['authorsIds']){const _0x4a0374=this['editor']['plugins']['get']('Users');_0x231c1b['authors']=_0x231c1b['authorsIds']['map'](_0x408bda=>_0x4a0374['getUser'](_0x408bda));}_0x25e2f1['_update'](_0x231c1b,!0x0);}['_createInitialRevision'](_0x247385){const _0x1da928=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1da928)this['_initialRevisionId']=_0x1da928['id'];else{const _0x1f30b7=!this['editor']['model']['document']['roots']['find'](_0x19d053=>this['editor']['model']['hasContent'](_0x19d053)),_0x46a32e=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c7c11=R(this['editor']['locale'],_0x1f30b7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x247385,'to':_0x247385,'id':this['_initialRevisionId'],'name':_0x4c7c11,'creatorId':_0x46a32e});}}['_createCurrentRevision'](_0x3f7a47){const _0x460256=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x460256),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3f7a47,'to':_0x3f7a47,'id':_0x460256,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x201e38,_0x5690d1){let _0x2a38a0=this['editor']['config']['get']('initialData'),_0x5f2413=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2a38a0){_0x2a38a0={};for(const _0x216a27 of this['editor']['model']['document']['getRootNames']())_0x2a38a0[_0x216a27]='';}if('string'==typeof _0x2a38a0&&(_0x2a38a0={'main':_0x2a38a0}),void 0x0===_0x5f2413){_0x5f2413={};for(const _0x4d3314 of this['editor']['model']['document']['getRootNames']())_0x5f2413[_0x4d3314]={};}let _0x21ffa7=!0x1;const _0x3b3201=Object['keys'](_0x2a38a0),_0x5ef1b3=Object['keys'](_0x201e38);for(const _0x533ede of _0x3b3201){if(_0x2a38a0[_0x533ede]!==_0x201e38[_0x533ede]&&''!==_0x2a38a0[_0x533ede]['trim']()){_0x21ffa7=!0x0;break;}if(!_0x2e0e8d(_0x5f2413[_0x533ede],_0x5690d1[_0x533ede])&&Object['keys'](_0x5f2413[_0x533ede])['length']>0x0){_0x21ffa7=!0x0;break;}}_0x21ffa7||(_0x21ffa7=_0x5ef1b3['some'](_0x2c35ba=>!this['editor']['model']['document']['getRoot'](_0x2c35ba))),_0x21ffa7&&_0x175045('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2a38a0,'editorRootsAttributes':_0x5f2413,'revisionData':_0x201e38,'revisionRootsAttributes':_0x5690d1}),this['editor']['config']['set']('initialData',_0x201e38),this['editor']['config']['set']('rootsAttributes',_0x5690d1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5de552=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5de552['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x549a2d){const _0x1ff355=this['repository']['getRevisions']();_0x1ff355['reverse']();let _0x398f3b=0x0;for(;_0x398f3b<_0x1ff355['length'];){const _0xc9cb15=_0x1ff355[_0x398f3b];if(_0xc9cb15===this['currentRevision']){_0x398f3b++;continue;}if(_0xc9cb15['id']===this['_initialRevisionId'])break;const _0x48cdea=_0x549a2d['toVersion']-_0xc9cb15['toVersion']||_0x549a2d['fromVersion']-_0xc9cb15['fromVersion'];if(_0x48cdea>0x0)break;if(_0x48cdea<0x0)_0x398f3b++;else{if(!_0x549a2d['creator']&&_0xc9cb15['creator'])break;if(_0xc9cb15['creator']||!_0x549a2d['creator']){if(_0x549a2d['createdAt']>_0xc9cb15['createdAt'])break;_0x398f3b++;}else _0x398f3b++;}}return _0x398f3b;}['_getFromVersion'](_0x41398b){const _0x44399c=this['repository']['getRevisions']();_0x44399c['reverse'](),_0x44399c['shift']();const _0xccd1ed=_0x44399c['find'](_0x35c7ba=>_0x35c7ba['toVersion']<=_0x41398b)['toVersion'];return _0xccd1ed<this['_startingVersion']?this['_startingVersion']:_0xccd1ed;}['_makeRevision']({name:_0x40aaf0,from:_0x318337,to:_0x56d2ed,creatorId:_0x451e6a,id:_0x2a167b}){const _0x1cb63c=this['buildRevisionData']({'from':_0x318337,'to':_0x56d2ed});_0x1cb63c['name']=_0x40aaf0,_0x1cb63c['creatorId']=_0x451e6a,_0x1cb63c['id']=_0x2a167b;const _0x2deedf=this['addRevisionData'](_0x1cb63c);return this['adapter']&&this['_bufferUpdate'](_0x1cb63c['id'],_0x1cb63c,!0x0),_0x2deedf;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x14a7fc){this['editor']=_0x14a7fc,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'](_0x4a29a6){this['source']=_0x4a29a6;const _0xfdb12e=new Map(),_0x1c1f3d=new Map(),_0x83ab60=this['editor']['model']['document']['roots']['map'](_0x1090da=>_0x1090da['rootName']);for(const _0x527b78 of _0x83ab60){const _0x1ce999=this['editor']['model']['document']['getRoot'](_0x527b78),_0x413005=x(_0x1ce999);_0xfdb12e['set'](_0x527b78,_0x413005),_0x1c1f3d['set'](_0x527b78,Object['fromEntries'](_0x1ce999['getAttributes']()));}const _0x510cd3=Array['from'](this['editor']['model']['markers'])['map'](_0x11a652=>[_0x11a652['name'],_0x11a652['getRange']()]),_0x2ac2e5=this['source']['version'];this['_saveMetaData'](_0x2ac2e5,_0xfdb12e,_0x510cd3,_0x1c1f3d),this['_startingRevisionId']=this['_revisionId'];const _0x22d21c=new Map(),_0x2aa6e9=new Map();for(const _0x307946 of _0x83ab60){const _0x200036=N(_0x307946);_0x22d21c['set'](_0x307946,_0x200036),_0x2aa6e9['set'](_0x307946,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x22d21c,[],_0x2aa6e9);}['getData'](_0x13185b,_0x154075){if(this['_lastFrom']===_0x13185b&&this['_lastTo']<=_0x154075)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x154075,!0x0);else{if(!this['_savedMetaData']['has'](_0x13185b)){const _0x517e8c=this['_getPreviousFrom'](_0x13185b);this['_calculateMetaData'](_0x517e8c,_0x13185b,!0x1);}this['_calculateMetaData'](_0x13185b,_0x154075,!0x0);}return this['_lastFrom']=_0x13185b,this['_lastTo']=_0x154075,this['_getState']();}['loadState'](_0x8897ab){const _0x1315de=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x8897ab['fromVersion'],this['_lastTo']=_0x8897ab['toVersion'];for(const _0x2a4aae in _0x8897ab['diffData']){const _0x2d2c47=_0x8897ab['diffData'][_0x2a4aae]['attachChange'],_0x226ac0=_0x3153c8(_0x8897ab['diffData'][_0x2a4aae]['attributesBefore'])||{},_0x157aba=_0x1315de['_makeModelFromViewString'](_0x8897ab['diffData'][_0x2a4aae]['deletions']);_0x157aba['rootName']=_0x2a4aae,_0x157aba['_isAttached']=!_0x2d2c47||!_0x2d2c47['isAttached'],_0x157aba['isAttached']=()=>_0x157aba['_isAttached'],this['_baseRoots']['set'](_0x2a4aae,_0x157aba),this['_baseRootsAttributes']['set'](_0x2a4aae,_0x226ac0),_0x2d2c47&&this['_touchedRoots']['set'](_0x2a4aae,_0x2d2c47);const _0x52d83e=this['_makeIdsRoot'](_0x157aba);this['_baseIdsRoots']['set'](_0x2a4aae,_0x52d83e);for(const [_0x98d266,_0x5a5d9f]of _0x157aba['markers']){if(!_0x98d266['startsWith']('revision:'))continue;const _0x4faa31=_0x98d266['split'](':')[0x2];for(const _0x7d74dd of _0x5a5d9f['getWalker']({'singleCharacters':!0x0})){const _0x1b29fd=this['_getVidAttributeName'](_0x7d74dd),_0x2343ce='elementEnd'==_0x7d74dd['type']?_0x7d74dd['previousPosition']['path']['slice'](0x0,-0x1):_0x7d74dd['previousPosition']['path'],_0x554f58=_0x52d83e['getNodeByPath'](_0x2343ce)['getAttribute'](_0x1b29fd);this['_touched']['set'](_0x554f58,{'userId':_0x4faa31});}}}this['_startingRevisionId']=this['_revisionId'];const _0x26737b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3e787=>!this['_touched']['has'](_0x3e787));let _0x2d5107=0x0;const _0x27f1bc=new Map();for(const _0x2623bc in _0x8897ab['diffData']){const _0x15baf5=_0x8897ab['diffData'][_0x2623bc]['attachChange'],_0x52a996=_0x3153c8(_0x8897ab['diffData'][_0x2623bc]['attributesAfter'])||{},_0x41ca93=_0x1315de['_makeModelFromViewString'](_0x8897ab['diffData'][_0x2623bc]['insertions']);_0x41ca93['rootName']=_0x2623bc,_0x41ca93['_isAttached']=!_0x15baf5||_0x15baf5['isAttached'],_0x41ca93['isAttached']=()=>_0x41ca93['_isAttached'],this['_diffRoots']['set'](_0x2623bc,_0x41ca93),this['_diffRootsAttributes']['set'](_0x2623bc,_0x52a996);const _0x310c32=this['_makeIdsRoot'](_0x41ca93,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2623bc,_0x310c32),_0x27f1bc['set'](_0x2623bc,_0x41ca93['isAttached']()?_0x52a996:{});for(const [_0x1d4c78,_0x31faa8]of _0x41ca93['markers']){if(!_0x1d4c78['startsWith']('revision:'))continue;const _0x46588c=_0x1d4c78['split'](':')[0x2];for(const _0x586e56 of _0x31faa8['getWalker']({'singleCharacters':!0x0})){const _0x474fe3=this['_getVidAttributeName'](_0x586e56),_0x3e748d=this['_revisionId']++,_0x424981='elementEnd'==_0x586e56['type']?_0x586e56['previousPosition']['path']['slice'](0x0,-0x1):_0x586e56['previousPosition']['path'];_0x310c32['getNodeByPath'](_0x424981)['_setAttribute'](_0x474fe3,_0x3e748d),this['_touched']['set'](_0x3e748d,{'userId':_0x46588c});}}for(const _0x4043ce of this['editor']['model']['createRangeIn'](_0x41ca93)['getWalker']({'singleCharacters':!0x0})){const _0x1ee66a=this['_getVidAttributeName'](_0x4043ce),_0x5a1775='elementEnd'==_0x4043ce['type']?_0x4043ce['previousPosition']['path']['slice'](0x0,-0x1):_0x4043ce['previousPosition']['path'],_0x207fba=_0x310c32['getNodeByPath'](_0x5a1775);_0x207fba['getAttribute'](_0x1ee66a)>0x0||_0x207fba['_setAttribute'](_0x1ee66a,_0x26737b[_0x2d5107++]);}for(const [_0x97864a,_0x34599f]of _0x41ca93['markers'])_0x97864a['startsWith']('revision:')||this['_markers']['set'](_0x97864a,_0x34599f);}const _0x3214da=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3214da),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3214da,0x1));const _0x3f96eb=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x3f96eb),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f96eb,0x1));const _0x39b46a=Array['from'](this['_diffRoots'])['map'](([_0x420c0b,_0x5e32ea])=>[_0x420c0b,x(_0x5e32ea)]);this['_saveMetaData'](this['_lastTo'],_0x39b46a,this['_markers'],_0x27f1bc);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x35d0eb,_0x3c5b81,_0x330444,_0x24cba2){const _0x464fe5=new Map(_0x3c5b81),_0xa5c9f4=new Map(_0x3153c8(_0x24cba2)),_0x37aab1=new Map();for(const [_0x5aacaf,_0x166788]of _0x330444)_0x37aab1['set'](_0x5aacaf,{'start':_0x166788['start']['clone'](),'end':_0x166788['end']['clone'](),'rootName':_0x166788['root']['rootName']});this['_savedMetaData']['set'](_0x35d0eb,{'roots':_0x464fe5,'markers':_0x37aab1,'rootsAttributes':_0xa5c9f4});}['_removeMetaData'](_0x43bb51){this['_savedMetaData']['delete'](_0x43bb51);}['_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'](_0x586762,_0x2143d4=null){let _0x193c82=null;_0x586762['is']('documentFragment')||(_0x193c82=new _0x14dfc7(_0x586762['name'],{'vid_start':null===_0x2143d4?this['_revisionId']++:_0x2143d4++}));const _0x582c52=[];for(const _0x334f37 of _0x586762['getChildren']())if(_0x334f37['is']('element')){_0x582c52['push'](this['_makeIdsRoot'](_0x334f37,_0x2143d4));const _0x57103e=_0x582c52[_0x582c52['length']-0x1];null!==_0x2143d4&&(_0x2143d4=_0x57103e['is']('element','$text')?_0x57103e['getAttribute']('vid')+0x1:_0x57103e['getAttribute']('vid_end')+0x1);}else{for(let _0x5c4c6d=0x0;_0x5c4c6d<_0x334f37['offsetSize'];_0x5c4c6d++)_0x582c52['push'](new _0x14dfc7('$text',{'vid':null===_0x2143d4?this['_revisionId']++:_0x2143d4++}));}if(_0x586762['is']('documentFragment')){const _0x5968de=N(_0x586762['rootName']);return _0x5968de['_insertChild'](0x0,_0x582c52),_0x5968de;}return _0x193c82['_setAttribute']('vid_end',null===_0x2143d4?this['_revisionId']++:_0x2143d4++),_0x193c82['_insertChild'](0x0,_0x582c52),_0x193c82;}['_calculateMetaData'](_0x50a216,_0x411d36,_0x2d4d56){this['_reset']();const {roots:_0x2b90b8,markers:_0x2a3184,rootsAttributes:_0x42951a}=this['_savedMetaData']['get'](_0x50a216);this['_baseRoots']=new Map(_0x2b90b8),this['_baseRootsAttributes']=new Map(_0x3153c8(_0x42951a));for(const [_0x446fe8,_0x7b01af]of this['_baseRoots'])if('$graveyard'!==_0x446fe8&&(this['_diffRoots']['set'](_0x446fe8,x(_0x7b01af)),this['_diffRootsAttributes']=new Map(_0x3153c8(_0x42951a)),_0x2d4d56)){const _0x10c1e5=this['_revisionId'];this['_idsRoots']['set'](_0x446fe8,this['_makeIdsRoot'](_0x7b01af)),this['_baseIdsRoots']['set'](_0x446fe8,this['_makeIdsRoot'](_0x7b01af,_0x10c1e5));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x2d4d56&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x5b983a,_0x5e3ffe]of _0x2a3184){const _0x1600ad=this['_baseRoots']['get'](_0x5e3ffe['rootName']),_0x10fafa=this['_diffRoots']['get'](_0x5e3ffe['rootName']),_0x38dc93=new _0x1f3523(this['_fixPosition'](_0x5e3ffe['start'],_0x1600ad),this['_fixPosition'](_0x5e3ffe['end'],_0x1600ad)),_0x163eac=this['_fixRange'](_0x38dc93,_0x10fafa);_0x1600ad['markers']['set'](_0x5b983a,_0x38dc93),this['_markers']['set'](_0x5b983a,_0x163eac);}this['_applyOperations'](_0x50a216,_0x411d36,_0x2d4d56);}['_applyOperations'](_0x578605,_0x1fbf7d,_0x473f3e){for(const _0x3b5a7a of this['source']['getOperations'](_0x578605,_0x1fbf7d))this['_handleOperation'](_0x3b5a7a,_0x473f3e);for(const _0x555ca8 of this['_diffRoots']['values']())_0x555ca8['markers']['clear']();for(const [_0x50618d,_0x54152e]of this['_markers']){this['_diffRoots']['get'](_0x54152e['root']['rootName'])['markers']['set'](_0x50618d,_0x54152e['clone']());}const _0x150f1c=new Map(),_0xeb61dd=new Map();for(const [_0x29299b,_0x2f798c]of this['_diffRoots'])_0x150f1c['set'](_0x29299b,x(_0x2f798c)),_0xeb61dd['set'](_0x29299b,this['_diffRootsAttributes']['get'](_0x29299b));this['_saveMetaData'](_0x1fbf7d,_0x150f1c,this['_markers'],_0xeb61dd);}['_getPreviousFrom'](_0xb0193){const _0x4cc7c3=Array['from'](this['_savedMetaData']['keys']());_0x4cc7c3['sort']((_0x130f3e,_0x3aff43)=>_0x130f3e-_0x3aff43),_0x4cc7c3['reverse']();for(const _0x142dff of _0x4cc7c3)if(_0x142dff<_0xb0193)return _0x142dff;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3afd27,_0x21c859){const _0x222fde=Array['from'](_0x21c859['markers'])['map'](([_0x2c352b,_0x26c2b2])=>[_0x2c352b,this['_fixRange'](_0x26c2b2,_0x3afd27)]);_0x3afd27['markers']=new Map(_0x222fde);}['_transformMarkers'](_0x221dd9){for(const _0x3c4e4d of this['_markers']['values']()){const _0x2beea8=_0x3c4e4d['getTransformedByOperation'](_0x221dd9),_0x2fecfc=_0x1f3523['_createFromRanges'](_0x2beea8);_0x3c4e4d['start']=_0x2fecfc['start'],_0x3c4e4d['end']=_0x2fecfc['end'];}}['_handleOperation'](_0x446793,_0x367407){if('addRoot'!=_0x446793['type']&&'detachRoot'!=_0x446793['type']){if('insert'==_0x446793['type']){const _0x51a7df=_0x446793['position']['root']['rootName'];this['_diffRoots']['has'](_0x51a7df)||(this['_diffRoots']['set'](_0x51a7df,N(_0x51a7df,!0x0)),this['_diffRootsAttributes']['set'](_0x51a7df,{}),_0x367407&&this['_idsRoots']['set'](_0x51a7df,N(_0x51a7df,!0x0)));}else{if('addRootAttribute'==_0x446793['type']||'removeRootAttribute'==_0x446793['type']||'changeRootAttribute'==_0x446793['type'])return void this['_handleRootAttributeOperation'](_0x446793);'marker'==_0x446793['type']&&this['_handleMarkerOperation'](_0x446793);}if('marker'!==_0x446793['type']){const _0x359d31=this['_cloneOperation'](_0x446793,this['_diffRoots']);_0x359d31['_execute'](),this['_transformMarkers'](_0x359d31);}if(_0x367407)switch(_0x446793['type']){case'insert':this['_handleInsertOperation'](_0x446793);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x446793);break;case'merge':this['_handleMergeOperation'](_0x446793);break;case'split':this['_handleSplitOperation'](_0x446793);}}else this['_handleRootOperation'](_0x446793,_0x367407);}['_cloneOperation'](_0x264d25,_0x952975){const _0x1fffd5=_0x264d25['clone']();return _0x1fffd5['_authorId']=_0x264d25['_authorId'],this['_fixOperation'](_0x1fffd5,_0x952975),_0x1fffd5;}['_getBaseVids'](_0x3addb2){return _0x3addb2['map'](_0x523676=>{const _0x3dff0c=this['_getVidAttributeName'](_0x523676);return Number(_0x523676['item']['getAttribute'](_0x3dff0c));});}['_generateTape'](_0x132d8e,_0x201480){if(_0x132d8e['is']('element','$text'))_0x201480['push']({'item':_0x132d8e,'type':'text'});else{_0x132d8e['is']('element')&&_0x201480['push']({'item':_0x132d8e,'type':'elementStart'});for(const _0x4efc22 of _0x132d8e['getChildren']())this['_generateTape'](_0x4efc22,_0x201480);_0x132d8e['is']('element')&&_0x201480['push']({'item':_0x132d8e,'type':'elementEnd'});}return _0x201480;}['_getState'](){const _0x5bbd69=new Map(this['_touched']),_0x37c6d1=new Map(_0x5bbd69),_0x493fec=new Map(),_0x4c6729={'insertions':{},'deletions':{}},_0x18ecfa={'insertions':{},'deletions':{}},_0x31b5f3=new Map(),_0x36dcdb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x36dcdb['delete']('$graveyard');for(const _0x58b984 of _0x36dcdb){const _0x9cf76=this['_diffRoots']['get'](_0x58b984)||N(_0x58b984,!0x1),_0x47d1d8=this['_baseRoots']['get'](_0x58b984)||N(_0x58b984,!0x1);_0x9cf76['isAttached']()||_0x47d1d8['isAttached']()?(_0x4c6729['insertions'][_0x58b984]=x(_0x9cf76),_0x4c6729['deletions'][_0x58b984]=x(_0x47d1d8),this['_copyMarkers'](_0x4c6729['deletions'][_0x58b984],_0x47d1d8),this['_copyMarkers'](_0x4c6729['insertions'][_0x58b984],_0x9cf76),_0x18ecfa['insertions'][_0x58b984]=this['_generateTape'](this['_idsRoots']['get'](_0x58b984),[]),_0x18ecfa['deletions'][_0x58b984]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x58b984)||N(_0x58b984,!0x1),[])):_0x36dcdb['delete'](_0x58b984);}for(const _0x209d84 of _0x36dcdb){const _0x171785=_0x18ecfa['insertions'][_0x209d84];for(const _0x51c78c of _0x171785){const _0xbe70fc=this['_getVidAttributeName'](_0x51c78c),_0x3b72be=_0x51c78c['item']['getAttribute'](_0xbe70fc);_0x37c6d1['delete'](_0x3b72be),_0x3b72be>=this['_startingRevisionId']&&_0x493fec['set'](_0x3b72be,_0x5bbd69['get'](_0x3b72be));}}for(const _0x14225c of _0x36dcdb){const _0x2b66a4=_0x18ecfa['insertions'][_0x14225c],_0x4700dd=this['_getBaseVids'](_0x18ecfa['deletions'][_0x14225c]);let _0x412ee8=0x0;for(const _0x551d55 of _0x2b66a4){const _0x1c086f=this['_getVidAttributeName'](_0x551d55),_0xf31195=_0x551d55['item']['getAttribute'](_0x1c086f);if(!_0x493fec['has'](_0xf31195)&&!_0x31b5f3['has'](_0xf31195)){if(_0x37c6d1['has'](_0xf31195))_0x412ee8++;else{if(_0xf31195!=_0x4700dd[_0x412ee8]){const _0x1034b6=_0x5bbd69['get'](_0xf31195)||_0x5bbd69['get'](_0x4700dd[_0x412ee8]);for(;_0xf31195!=_0x4700dd[_0x412ee8];)_0x37c6d1['has'](_0x4700dd[_0x412ee8])||(_0x31b5f3['set'](_0x4700dd[_0x412ee8],_0x1034b6),_0x5bbd69['set'](_0x4700dd[_0x412ee8],_0x1034b6)),_0x412ee8++;}_0x412ee8++;}}}}for(const _0x2b32bb of _0x36dcdb){const _0x37b153=_0x18ecfa['insertions'][_0x2b32bb];for(const _0x501870 of _0x37b153){const _0x17c529=this['_getVidAttributeName'](_0x501870),_0x2a81fe=_0x501870['item']['getAttribute'](_0x17c529);if(_0x31b5f3['has'](_0x2a81fe)){const _0x733bd6=_0x31b5f3['get'](_0x2a81fe);_0x37c6d1['has'](_0x2a81fe)||_0x37c6d1['set'](_0x2a81fe,{..._0x733bd6}),_0x493fec['set'](_0x2a81fe,{..._0x733bd6});}}}for(const _0x3cf0c8 of _0x37c6d1['keys']())_0x3cf0c8>=this['_startingRevisionId']&&_0x37c6d1['delete'](_0x3cf0c8);const _0x42891c=new Map();for(const _0x3881db of _0x36dcdb){let _0x47169e=_0x18ecfa['insertions'][_0x3881db];for(const _0x317d60 of _0x47169e)if(_0x317d60['item']['is']('element','tableCell')){const _0x471668=this['_getVidAttributeName'](_0x317d60),_0x2fd188=_0x317d60['item']['getAttribute'](_0x471668);if(_0x493fec['has'](_0x2fd188)){const _0x3b8240=_0x317d60['item']['parent']['parent']['getAttribute']('vid_start'),_0x55ed86=_0x42891c['get'](_0x3b8240)||new Set();_0x55ed86['add'](_0x493fec['get'](_0x2fd188)['userId']),_0x42891c['set'](_0x3b8240,_0x55ed86);}}_0x47169e=_0x18ecfa['deletions'][_0x3881db];for(const _0x38fbe1 of _0x47169e)if(_0x38fbe1['item']['is']('element','tableCell')){const _0x16e07f=this['_getVidAttributeName'](_0x38fbe1),_0x32df08=_0x38fbe1['item']['getAttribute'](_0x16e07f);if(_0x37c6d1['has'](_0x32df08)){const _0x2332bb=_0x38fbe1['item']['parent']['parent']['getAttribute']('vid_start'),_0x2d042b=_0x42891c['get'](_0x2332bb)||new Set();_0x2d042b['add'](_0x37c6d1['get'](_0x32df08)['userId']),_0x42891c['set'](_0x2332bb,_0x2d042b);}}for(const _0x20ac27 of _0x42891c['keys']())(_0x493fec['has'](_0x20ac27)||_0x37c6d1['has'](_0x20ac27))&&_0x42891c['delete'](_0x20ac27);}for(const _0x33d0ef of _0x36dcdb){const _0x3e94f0=_0x18ecfa['insertions'][_0x33d0ef];let _0xd66b59=null,_0xcf7d40=null;for(const _0x16e7c3 of _0x3e94f0){const _0x2a5072=this['_getVidAttributeName'](_0x16e7c3),_0x495315=_0x16e7c3['item']['getAttribute'](_0x2a5072),_0x11cf49=_0x42891c['get'](_0x495315);_0x11cf49&&'elementStart'==_0x16e7c3['type']&&(_0xd66b59=Array['from'](_0x11cf49)[0x0],_0xcf7d40=_0x16e7c3['item']['getAttribute']('vid_end')),_0xd66b59&&(_0x37c6d1['set'](_0x495315,{'userId':_0xd66b59}),_0x493fec['set'](_0x495315,{'userId':_0xd66b59})),_0x495315==_0xcf7d40&&(_0xd66b59=null,_0xcf7d40=null);}}const _0x559b7d={},_0x1412b8=new Set();for(const _0x4b3872 of _0x36dcdb){const _0x37ac0f=_0x4c6729['deletions'][_0x4b3872],_0x486525=_0x4c6729['insertions'][_0x4b3872];for(const {userId:_0x2a8bbb}of this['_touchedMarkers']['values']())null!==_0x2a8bbb&&_0x1412b8['add'](_0x2a8bbb);for(const {userId:_0x4e942e}of this['_touchedRoots']['values']())null!==_0x4e942e&&_0x1412b8['add'](_0x4e942e);this['_markChanges'](_0x486525,_0x18ecfa['insertions'][_0x4b3872],_0x493fec,'insertion',_0x1412b8),this['_markChanges'](_0x37ac0f,_0x18ecfa['deletions'][_0x4b3872],_0x37c6d1,'deletion',_0x1412b8),_0x559b7d[_0x4b3872]={'insertions':this['_prepareViewToSave'](_0x486525),'deletions':this['_prepareViewToSave'](_0x37ac0f),'attachChange':this['_touchedRoots']['get'](_0x4b3872)||null,'attributesBefore':_0x3153c8(this['_baseRootsAttributes']['get'](_0x4b3872))||{},'attributesAfter':_0x3153c8(this['_diffRootsAttributes']['get'](_0x4b3872))};}return{'diffData':_0x559b7d,'authorsIds':Array['from'](_0x1412b8)};}['_processRootBeforeSave'](_0x39d924){for(const [,_0x59c83e]of _0x39d924['markers']){const _0x27ae40=_0x59c83e['start']['getAncestors']()['filter'](_0x508c16=>'tableCell'==_0x508c16['name']);for(const _0x5165cc of _0x27ae40)0x1==_0x5165cc['childCount']&&_0x5165cc['getChild'](0x0)['is']('element','paragraph')&&_0x5165cc['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x316c70){this['_processRootBeforeSave'](_0x316c70);const _0x581599=this['editor']['data']['toView'](_0x316c70,{}),_0x560aac=Array['from'](_0x581599['getChildren']())['map'](_0x1b27b6=>this['_getViewJson'](_0x1b27b6));return JSON['stringify'](_0x560aac);}['_getViewJson'](_0x43f7b7){if(_0x43f7b7['is']('$text'))return _0x43f7b7['data'];{const _0x1efa86=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x393d4b=_0x43f7b7,_0x28e2de=this['editor']['data']['htmlProcessor']['domConverter'],_0x6f2a37={'type':_0x1efa86['_getTypeCharForViewElement'](_0x393d4b),'name':_0x393d4b['name'],'attributes':Array['from'](_0x393d4b['getAttributes']()),'children':Array['from'](_0x393d4b['getChildren']())['map'](_0x68527f=>this['_getViewJson'](_0x68527f))};if(_0x43f7b7['is']('uiElement')&&'$comment'!=_0x43f7b7['name']){const _0xd26e88=_0x43f7b7['render'](_0x28e2de['domDocument'],_0x28e2de);_0x6f2a37['children']['push'](_0xd26e88['outerHTML']);}else{if(_0x43f7b7['is']('rawElement')){const _0xb6eeef=_0x28e2de['domDocument']['createElement'](_0x393d4b['name']);_0x43f7b7['render'](_0xb6eeef,_0x28e2de),_0x6f2a37['children']['push'](_0xb6eeef['innerHTML']);}}const _0x1d352f=Array['from'](_0x393d4b['getCustomProperties']());_0x1d352f['length']>0x0&&(_0x6f2a37['customProperties']=_0x1d352f);const _0xae7ceb=_0x393d4b['getFillerOffset']();return null!==_0xae7ceb&&(_0x6f2a37['fillerOffset']=_0xae7ceb),_0x6f2a37;}}['_markChanges'](_0x5ecc2f,_0xf6f58a,_0x5c50a1,_0x1bfbb5,_0x171599){let _0x236018=null,_0x28fe21=null,_0x12930d=0x0;const _0x3d6d07=this['editor']['model'];for(let _0x2f68d2=0x0;_0x2f68d2<_0xf6f58a['length'];_0x2f68d2++){const _0x4c90e2=this['_getVidAttributeName'](_0xf6f58a[_0x2f68d2]),_0x5bd40e=_0xf6f58a[_0x2f68d2]['item']['getAttribute'](_0x4c90e2),_0xbd369b=_0x5c50a1['get'](_0x5bd40e),_0x117dfd=_0x2f68d2==_0xf6f58a['length']-0x1;(!_0x236018&&_0xbd369b&&(_0x236018=_0xbd369b,_0x28fe21=_0xf6f58a[_0x2f68d2]),_0x236018&&(!_0xbd369b||_0xbd369b['userId']!=_0x236018['userId']))&&(_0x1e33c0(_0xbd369b,P(_0x28fe21,_0x5ecc2f,_0x3d6d07),P(_0xf6f58a[_0x2f68d2],_0x5ecc2f,_0x3d6d07)),_0x236018=_0xbd369b||null,_0x28fe21=_0xbd369b?_0xf6f58a[_0x2f68d2]:null),_0x236018&&_0x117dfd&&_0x1e33c0(_0xbd369b,P(_0x28fe21,_0x5ecc2f,_0x3d6d07),V(_0xf6f58a[_0x2f68d2],_0x5ecc2f,_0x3d6d07));}function _0x1e33c0(_0x199864,_0x37c6e2,_0x19fefd){const _0xdb5900=_0x236018['userId'],_0x15927b='revision:'+_0x1bfbb5+':'+_0xdb5900+':'+_0x12930d++,_0x5edd2d=_0x3d6d07['createRange'](_0x37c6e2,_0x19fefd);_0x5ecc2f['markers']['set'](_0x15927b,_0x5edd2d),null!==_0xdb5900&&_0x171599['add'](_0xdb5900);}}['_getVidAttributeName'](_0x2ccc87){switch(_0x2ccc87['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13aead,_0x562322){_0x13aead['baseVersion']=null;for(const _0xfc945f in _0x13aead){const _0x54166e=_0x13aead[_0xfc945f];if(_0x54166e instanceof _0x1aa988){const _0x5953c2=_0x562322['get'](_0x54166e['root']['rootName']);_0x13aead[_0xfc945f]=this['_fixPosition'](_0x54166e,_0x5953c2);}if(_0x54166e instanceof _0x1f3523){const _0x2806f6=_0x562322['get'](_0x54166e['root']['rootName']);_0x13aead[_0xfc945f]=this['_fixRange'](_0x54166e,_0x2806f6);}'root'===_0xfc945f&&(_0x13aead['root']=_0x562322['get'](_0x13aead['root']['rootName']));}}['_fixRange'](_0x261147,_0x5af652){return this['editor']['model']['createRange'](this['_fixPosition'](_0x261147['start'],_0x5af652),this['_fixPosition'](_0x261147['end'],_0x5af652));}['_fixPosition'](_0x16b22c,_0x43c456){return this['editor']['model']['createPositionFromPath'](_0x43c456,_0x16b22c['path'],_0x16b22c['stickiness']);}['_handleInsertOperation'](_0x2fc36c){const _0x2adb10=this['_idsRoots']['get'](_0x2fc36c['position']['root']['rootName']),_0x3d6d8b=this['_fixPosition'](_0x2fc36c['position'],_0x2adb10),_0x1018f7=null===_0x2fc36c['_authorId']?null:_0x2fc36c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x25b57f=_0x3d6d8b['parent'],_0x995d49=this['_revisionId'],_0x359970=[];for(const _0x6b1e95 of _0x2fc36c['nodes'])if(_0x6b1e95['is']('element'))_0x359970['push'](this['_makeIdsRoot'](_0x6b1e95));else{for(let _0x10cf1b=0x0;_0x10cf1b<_0x6b1e95['offsetSize'];_0x10cf1b++)_0x359970['push'](new _0x14dfc7('$text',{'vid':this['_revisionId']++}));}const _0x431499=this['_revisionId'];for(let _0x1e9a3d=_0x995d49;_0x1e9a3d<_0x431499;_0x1e9a3d++)this['_touched']['set'](_0x1e9a3d,{'userId':_0x1018f7});_0x25b57f['_insertChild'](_0x3d6d8b['offset'],_0x359970);}['_handleMoveOperation'](_0x26b3ae){(_0x26b3ae=this['_cloneOperation'](_0x26b3ae,this['_idsRoots']))['_execute']();const _0x376fa4=null===_0x26b3ae['_authorId']?null:_0x26b3ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46e910=_0x26b3ae['getMovedRangeStart'](),_0x2f8a9e=_0x46e910['parent'],_0x3b3ab8=_0x46e910['offset'];!function _0x1daf88(_0x576203,_0x17e628,_0x4141fa,_0x1baaaf){for(let _0x7845cf=_0x4141fa;_0x7845cf<_0x1baaaf;_0x7845cf++){const _0x209d1c=_0x17e628['getChild'](_0x7845cf);_0x209d1c['is']('element','$text')?_0x576203['set'](_0x209d1c['getAttribute']('vid'),{'userId':_0x376fa4}):(_0x576203['set'](_0x209d1c['getAttribute']('vid_start'),{'userId':_0x376fa4}),_0x1daf88(_0x576203,_0x209d1c,0x0,_0x209d1c['childCount']),_0x576203['set'](_0x209d1c['getAttribute']('vid_end'),{'userId':_0x376fa4}));}}(this['_touched'],_0x2f8a9e,_0x3b3ab8,_0x3b3ab8+_0x26b3ae['howMany']);}['_handleMergeOperation'](_0x2f06e3){const _0x2c6b20=null===(_0x2f06e3=this['_cloneOperation'](_0x2f06e3,this['_idsRoots']))['_authorId']?null:_0x2f06e3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54119d=_0x2f06e3['targetPosition']['parent'],_0x352d32=_0x2f06e3['sourcePosition']['parent'],_0x46738c=_0x54119d['getAttribute']('vid_end'),_0xf8c4f6=_0x352d32['getAttribute']('vid_start');_0x54119d['_setAttribute']('vid_end',_0x352d32['getAttribute']('vid_end')),_0x352d32['_setAttribute']('vid_end',_0x46738c),this['_touched']['set'](_0xf8c4f6,{'userId':_0x2c6b20}),this['_touched']['set'](_0x46738c,{'userId':_0x2c6b20}),_0x2f06e3['_execute']();}['_handleSplitOperation'](_0x5939e4){const _0x27fdc2=null===(_0x5939e4=this['_cloneOperation'](_0x5939e4,this['_idsRoots']))['_authorId']?null:_0x5939e4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x450038=_0x5939e4['graveyardPosition'],_0x103554=_0x5939e4['splitPosition']['parent'];_0x5939e4['_execute']();const _0x177def=_0x103554['getAttribute']('vid_end'),_0x4656d8=_0x5939e4['insertionPosition']['nodeAfter'];if(_0x450038){const _0x2ab7c5=_0x4656d8['getAttribute']('vid_end'),_0x106f2a=_0x103554['getAttribute']('vid_end');_0x103554['_setAttribute']('vid_end',_0x2ab7c5),_0x4656d8['_setAttribute']('vid_end',_0x106f2a),this['_touched']['set'](_0x103554['getAttribute']('vid_end'),{'userId':_0x27fdc2}),this['_touched']['set'](_0x4656d8['getAttribute']('vid_start'),{'userId':_0x27fdc2});}else{const _0x5d8df2=this['_revisionId']++,_0xde9c54=this['_revisionId']++;_0x103554['_setAttribute']('vid_end',_0x5d8df2),_0x4656d8['_setAttribute']('vid_start',_0xde9c54),_0x4656d8['_setAttribute']('vid_end',_0x177def),this['_touched']['set'](_0x5d8df2,{'userId':_0x27fdc2}),this['_touched']['set'](_0xde9c54,{'userId':_0x27fdc2});}}['_handleMarkerOperation'](_0x2b639f){if(!_0x2b639f['affectsData'])return;const _0x10e401=(_0x2b639f=this['_cloneOperation'](_0x2b639f,this['_diffRoots']))['oldRange']?_0x2b639f['oldRange']['root']:null,_0x29035a=_0x2b639f['newRange']?_0x2b639f['newRange']['root']:null;_0x10e401&&this['_markers']['delete'](_0x2b639f['name']),_0x29035a&&this['_markers']['set'](_0x2b639f['name'],_0x2b639f['newRange']['clone']());const _0x317db6=null===_0x2b639f['_authorId']?null:_0x2b639f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38177b=_0x2b639f['name'];if(!this['_touchedMarkers']['has'](_0x38177b))return void this['_touchedMarkers']['set'](_0x38177b,{'range':_0x2b639f['oldRange'],'userId':_0x317db6});const _0x3b055a=this['_touchedMarkers']['get'](_0x38177b),_0x3b4aa8=_0x3b055a['range'],_0x321166=_0x2b639f['newRange'];null==_0x3b4aa8&&null==_0x321166||_0x3b4aa8&&_0x321166&&_0x3b4aa8['isEqual'](_0x321166)?this['_touchedMarkers']['delete'](_0x2b639f['name']):_0x3b055a['userId']=_0x317db6;}['_handleRootOperation'](_0x5ed66d,_0x4af396){this['_diffRoots']['has'](_0x5ed66d['rootName'])?this['_diffRoots']['get'](_0x5ed66d['rootName'])['_isAttached']=_0x5ed66d['isAdd']:(this['_diffRoots']['set'](_0x5ed66d['rootName'],N(_0x5ed66d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x5ed66d['rootName'],{}),_0x4af396&&this['_idsRoots']['set'](_0x5ed66d['rootName'],N(_0x5ed66d['rootName'],!0x0)));const _0x4776b7=null===_0x5ed66d['_authorId']?null:_0x5ed66d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c87a6=this['_touchedRoots']['get'](_0x5ed66d['rootName']);_0x3c87a6&&_0x3c87a6['userId']===_0x4776b7?this['_touchedRoots']['delete'](_0x5ed66d['rootName']):this['_touchedRoots']['set'](_0x5ed66d['rootName'],{'userId':_0x4776b7,'isAttached':_0x5ed66d['isAdd']});}['_handleRootAttributeOperation'](_0x580002){const _0x24d01c=this['_diffRootsAttributes']['get'](_0x580002['root']['rootName']);null===_0x580002['newValue']?delete _0x24d01c[_0x580002['key']]:_0x24d01c[_0x580002['key']]=_0x580002['newValue'];}}function x(_0x5dfc44){const _0x1d206e=N(_0x5dfc44['rootName'],_0x5dfc44['isAttached']());for(const _0x383fe3 of _0x5dfc44['getChildren']()){const _0x3a7694=_0x383fe3['_clone'](!0x0);_0x1d206e['_appendChild'](_0x3a7694);}return _0x1d206e;}function N(_0x31e4ae,_0x5b9e55=!0x0){const _0x20474b=new _0x367b4a();return _0x20474b['rootName']=_0x31e4ae,_0x20474b['_isAttached']=_0x5b9e55,_0x20474b['isAttached']=()=>_0x20474b['_isAttached'],_0x20474b;}function P(_0x4a0350,_0x4f7e09,_0x419340){const _0xc2ebd7='elementEnd'==_0x4a0350['type']?_0x419340['createPositionAt'](_0x4a0350['item'],'end'):_0x419340['createPositionBefore'](_0x4a0350['item']);return _0x419340['createPositionFromPath'](_0x4f7e09,_0xc2ebd7['path'],_0xc2ebd7['stickiness']);}function V(_0x35152a,_0x4d6b42,_0x3463ef){const _0x250c5b='elementStart'==_0x35152a['type']?_0x3463ef['createPositionAt'](_0x35152a['item'],0x0):_0x3463ef['createPositionAfter'](_0x35152a['item']);return _0x3463ef['createPositionFromPath'](_0x4d6b42,_0x250c5b['path'],_0x250c5b['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
- _0x4f7ea1(_0x47987e){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x49c583,_0x3b1298){super(_0x49c583),this['focusTracker']=new _0x484765(),this['keystrokes']=new _0x3a99cb(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3b1298),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x2460a9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x500be0=_0x2aa6b1=>_0x2aa6b1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x500be0),this['keystrokes']['set']('arrowleft',_0x500be0),this['keystrokes']['set']('arrowup',_0x500be0),this['keystrokes']['set']('arrowdown',_0x500be0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ed263){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ed263['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2f4092){const _0x9b6c5e=new et(this['locale'],ti),_0x9e7ae3=_0x9b6c5e['fieldView'];_0x9e7ae3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4142ee=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2f4092&&(_0x4142ee+='\x20('+R(this['locale'],'optional')+')'),(_0x9b6c5e['label']=_0x4142ee,_0x9e7ae3['on']('input',()=>{this['revisionNameInputValue']=_0x9e7ae3['element']['value']['trim']();}),_0x9b6c5e);}}class v extends _0x594d24{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0xe8a63b=this['editor'],_0x3b8c82=_0xe8a63b['plugins']['get']('RevisionTracker');_0xe8a63b['ui']['componentFactory']['add']('revisionHistory',_0x5e4ed0=>{const _0x1330f4=_0x514a35(_0x5e4ed0),_0x56a050=_0x1330f4['panelView']['children'],_0x22508a=new _0x17c088(_0x5e4ed0),_0x40b41a=new _0x392bd3(_0x5e4ed0),_0x3cca51=new _0x18e75a(_0x5e4ed0),_0x3eebec=new _0x392bd3(_0x5e4ed0),_0x25181b=new _0x18e75a(_0x5e4ed0);return _0x1330f4['bind']('isEnabled')['to'](_0x3b8c82,'isReady',_0x3b8c82,'isEnabled',_0xe8a63b,'isReadOnly',(_0x5d0591,_0x414ebc,_0xb4433f)=>_0x5d0591&&_0x414ebc&&!_0xb4433f),_0x1330f4['buttonView']['set']({'icon':_0x1c60bc,'label':R(_0x5e4ed0,'Revision\x20history'),'tooltip':!0x0}),_0x3cca51['set']({'label':R(_0x5e4ed0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3cca51['bind']('isEnabled')['to'](_0x3b8c82,'isReady',_0x3b8c82,'isEnabled',_0xe8a63b,'isReadOnly',(_0x624c19,_0x1c6862,_0x255ea6)=>_0x624c19&&_0x1c6862&&!_0x255ea6),_0x3cca51['on']('execute',()=>this['_showDialog']()),_0x25181b['set']({'label':R(_0x5e4ed0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x25181b['bind']('isEnabled')['to'](_0x3b8c82,'isReady',_0xe8a63b,'isReadOnly',(_0x55b86e,_0xa7c92d)=>_0x55b86e&&!_0xa7c92d),_0x25181b['on']('execute',()=>{_0xe8a63b['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x1330f4['isOpen']=!0x1,_0xe8a63b['editing']['view']['focus']();}),_0x40b41a['children']['add'](_0x3cca51),_0x3eebec['children']['add'](_0x25181b),_0x22508a['role']='menu',_0x22508a['items']['addMany']([_0x40b41a,_0x3eebec]),_0x56a050['add'](_0x22508a),_0x1330f4;}),_0xe8a63b['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5615cc=this['editor'],_0x84f8ee=_0x5615cc['locale'],_0x2942b0=new _0x15bdb6(_0x84f8ee),_0x432103=new _0x275466(_0x84f8ee);_0x2942b0['buttonView']['set']({'icon':_0x1c60bc,'label':R(_0x84f8ee,'Revision\x20history')});const _0x40e721=new _0x4c4991(_0x84f8ee,_0x2942b0),_0x3741d0=new _0x303dce(_0x84f8ee);_0x3741d0['set']({'label':R(_0x84f8ee,'Save\x20current\x20revision')}),_0x3741d0['delegate']('execute')['to'](_0x2942b0),_0x3741d0['on']('execute',()=>{this['_showDialog']();}),_0x40e721['children']['add'](_0x3741d0),_0x432103['items']['add'](_0x40e721);const _0x464073=new _0x4c4991(_0x84f8ee,_0x2942b0),_0x3435ab=new _0x303dce(_0x84f8ee);return _0x3435ab['set']({'label':R(_0x84f8ee,'Open\x20revision\x20history')}),_0x3435ab['delegate']('execute')['to'](_0x2942b0),_0x3435ab['on']('execute',()=>{_0x5615cc['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x464073['children']['add'](_0x3435ab),_0x432103['items']['add'](_0x464073),_0x2942b0['panelView']['children']['add'](_0x432103),_0x2942b0;}['_showDialog'](){const _0x495705=this['editor'],_0x366a96=_0x495705['locale'],_0x5b307d=_0x495705['plugins']['get']('Dialog'),_0x4f9f2d=_0x495705['plugins']['get']('RevisionTracker');function _0x5d01e4(_0x10587c){_0x495705['config']['get']('revisionHistory.requireRevisionName')&&''===_0x10587c['revisionName']?_0x10587c['revisionNameInputView']['errorText']=R(_0x366a96,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x495705['plugins']['get'](h)['saveRevision']({'name':_0x10587c['revisionName']}),_0x5b307d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5d01e4(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5b307d['show']({'id':'revisionSave','title':R(_0x366a96,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x495705['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5b307d['hide']()},{'label':R(_0x495705['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x531528){_0x531528['bind']('isEnabled')['to'](_0x4f9f2d,'isReady',_0x4f9f2d,'isEnabled',_0x495705,'isReadOnly',(_0x124ecc,_0x8fb088,_0x54bdb2)=>_0x124ecc&&_0x8fb088&&!_0x54bdb2);},'onExecute':()=>_0x5d01e4(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x33ff3b=this['editor'],_0x25297c=_0x33ff3b['locale'];this['_saveRevisionFormView']=new me(_0x25297c,_0x33ff3b['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x47987e{['changeId'];['_model'];constructor(_0x3d4bcb,_0x38c202){super(_0x3d4bcb),this['_model']=_0x38c202,this['changeId']=_0x38c202['id'];const _0x440295=this['bindTemplate'],_0xe5b71=R(_0x3d4bcb,_0x38c202['data']['isSuggestion']?'Suggested\x20by':'add'==_0x38c202['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x38c202['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x440295['to']('type',_0xf6525f=>'ck-revision-change__'+_0xf6525f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xe5b71}]},{'text':'\x20'+_0x38c202['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
- _0x2bafdc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1765d2){super(),this['id']=_0x1765d2['id']||_0x29d31e(),this['author']=_0x1765d2['author'],this['type']=_0x1765d2['type'],this['data']=_0x1765d2['data']||{},this['rootName']=_0x1765d2['rootName'],this['set']('createdAt',_0x1765d2['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x2ab3f4,_0x385ec6){this['newRevisionId']=_0x2ab3f4,this['oldRevisionId']=_0x385ec6,this['changes']=new _0x2d4b38();}['_setChanges'](_0x4db7ab){for(const _0xd1e26 of _0x4db7ab)this['changes']['add'](_0xd1e26);}}class l extends _0x594d24{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x488749,_0x1dace3,S,$];}constructor(_0x3c6901){super(_0x3c6901),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x383ffc,_0x4cb30d,_0x11fcd6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5365a9=>{for(const _0x4fd065 of this['editor']['editing']['view']['document']['roots'])_0x11fcd6?_0x5365a9['removeClass']('ck-editor__editable__overlay',_0x4fd065):_0x5365a9['addClass']('ck-editor__editable__overlay',_0x4fd065);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xb444f3=>null!==_0xb444f3),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x504c,_0xfbb42e,_0x45681f)=>_0x504c&&_0x45681f?_0xfbb42e['changes']['getIndex'](_0x45681f):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x2fc1c4,_0x3fda0f)=>_0x2fc1c4?_0x3fda0f['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x1dace3);}['init'](){const _0x314944=this['editor'],_0x1204a1=new rt(_0x314944,{'direction':'backward'}),_0x51a788=new rt(_0x314944,{'direction':'forward'});(_0x314944['commands']['add']('showPreviousChange',_0x1204a1),_0x314944['commands']['add']('showNextChange',_0x51a788),_0x314944['commands']['add']('restoreRevision',new nt(_0x314944)),this['on']('change:numberOfChanges',()=>{_0x1204a1['refresh'](),_0x51a788['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x314944['enableReadOnlyMode']('revision-viewer'),_0x314944['plugins']['has']('WidgetToolbarRepository'))&&_0x314944['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1b8526){return await this['_utils']['loadRevisionData'](_0x1b8526,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1b8526);}async['getRevisionRootsAttributes'](_0x318e65){return await this['_utils']['loadRevisionData'](_0x318e65,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x318e65);}async['compare'](_0xbea01e,_0x30ba6c,_0x1f8d75=!0x1){if(!this['isEnabled'])return;const _0x2a8340=this['diff'],_0x53eb92=this['repository'],_0x117736='string'==typeof _0xbea01e?_0x53eb92['getRevision'](_0xbea01e):_0xbea01e,_0xbde112='string'==typeof _0x30ba6c?_0x53eb92['getRevision'](_0x30ba6c):_0x30ba6c,_0x338e7f=_0x117736['id'],_0x11f248=_0xbde112?_0xbde112['id']:null;if(!_0x1f8d75&&this['diff']&&this['diff']['newRevisionId']===_0x338e7f&&this['diff']['oldRevisionId']===_0x11f248)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x338e7f,_0x11f248);const _0x2ceed4=this['_getRevisionsRange'](_0x117736,_0xbde112,!0x0)['map'](_0x40b6af=>this['_utils']['loadRevisionData'](_0x40b6af,this['adapter']));return _0x2ceed4['push'](new Promise(_0x3f618e=>{setTimeout(_0x3f618e,0x14);})),Promise['all'](_0x2ceed4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x406629=this['_getDiff'](_0x338e7f,_0x11f248);for(const _0x29bada of _0x406629['changes'])this['_changeIdToChange']['set'](_0x29bada['id'],_0x29bada);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1112a2=>{for(const _0x4d4b52 of this['editor']['model']['document']['getRootNames']())_0x1112a2['detachRoot'](_0x4d4b52);for(const _0x2ba1a5 of Object['keys'](_0x406629['model'])){const _0x41d685=_0x1112a2['addRoot'](_0x2ba1a5);for(const _0x53bcb2 of Object['keys'](_0x406629['attributes'][_0x2ba1a5]))_0x1112a2['setAttribute'](_0x53bcb2,_0x406629['attributes'][_0x2ba1a5][_0x53bcb2],_0x41d685);_0x1112a2['insert'](_0x406629['model'][_0x2ba1a5],_0x41d685,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x406629['changes'])),this['isReady']=!0x0;})['catch'](_0x6ad739=>{console['error'](_0x6ad739),this['_cleanUp'](),_0x2a8340&&(this['diff']=_0x2a8340),this['isReady']=!0x0;});}['addRevisionData'](_0x4146ad,_0x5a4705){const _0x31addb=this['repository']['createRevision'](_0x4146ad);return _0x31addb['on']('_update',(_0x2c3ae2,_0x36c2e1,_0x5e5c7e)=>_0x5a4705(_0x36c2e1,_0x5e5c7e,_0x31addb)),this['repository']['addRevision'](_0x31addb),_0x31addb;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xdff54d=>{for(const _0xff506e of this['editor']['model']['document']['getRootNames']())_0xdff54d['detachRoot'](_0xff506e);});}['_sortAndFilterDiffChanges'](_0x43cf35){const _0x1de125=[],_0x27d791=new Map();for(const _0x31416b of this['editor']['model']['document']['getRootNames']()){const _0x188f23=this['editor']['editing']['view']['getDomRoot'](_0x31416b);if(!_0x188f23)continue;const _0x66d877=_0x188f23['getClientRects']()['item'](0x0);_0x66d877&&(_0x1de125['push'](_0x31416b),_0x27d791['set'](_0x31416b,_0x66d877));}return _0x1de125['sort']((_0x30cf16,_0x4d89f1)=>{const _0x5023ef=_0x27d791['get'](_0x30cf16),_0x5a7085=_0x27d791['get'](_0x4d89f1);return _0x5023ef['y']-_0x5a7085['y']||_0x5023ef['x']-_0x5a7085['x'];}),(_0x43cf35=_0x43cf35['filter'](_0x4dbcec=>_0x1de125['includes'](_0x4dbcec['rootName'])))['sort']((_0x490fec,_0x14356a)=>_0x1de125['indexOf'](_0x490fec['rootName'])-_0x1de125['indexOf'](_0x14356a['rootName'])),_0x43cf35;}['_makeTape'](_0x56b40f){const _0x5d3616=Array['from'](_0x56b40f['markers'])['filter'](([_0x1765ac,_0xbc9cac])=>_0x1765ac['startsWith']('revision:')&&!_0xbc9cac['isCollapsed']),_0x652e71=Array['from'](this['editor']['model']['createRangeIn'](_0x56b40f)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d3616['length'])for(const _0x2d37c6 of _0x652e71){const [_0x25e6cf,_0x264981]=_0x5d3616[0x0],[,_0x1c42b2,_0x28683f]=_0x25e6cf['split'](':');if(_0x264981['end']['isEqual'](_0x2d37c6['nextPosition'])&&_0x5d3616['shift'](),(_0x2d37c6['previousPosition']['isEqual'](_0x264981['start'])||_0x2d37c6['previousPosition']['isAfter'](_0x264981['start']))&&('insertion'==_0x1c42b2?_0x2d37c6['isAdded']={'userId':_0x28683f}:'deletion'==_0x1c42b2&&(_0x2d37c6['isRemoved']={'userId':_0x28683f})),0x0==_0x5d3616['length'])break;}return _0x652e71;}['_refreshStartEndIndex'](_0x42e462){const _0x379e14=new Map();for(let _0x53a010=0x0;_0x53a010<_0x42e462['length'];_0x53a010++)'text'===_0x42e462[_0x53a010]['type']?(_0x42e462[_0x53a010]['item']['startIndex']=_0x53a010,_0x42e462[_0x53a010]['item']['endIndex']=_0x53a010):('elementStart'===_0x42e462[_0x53a010]['type']?_0x42e462[_0x53a010]['item']['startIndex']=_0x53a010:'elementEnd'===_0x42e462[_0x53a010]['type']&&(_0x42e462[_0x53a010]['item']['endIndex']=_0x53a010),_0x379e14['set'](_0x42e462[_0x53a010]['id'],_0x53a010));for(const _0x45cd92 of _0x379e14['values']())'elementStart'===_0x42e462[_0x45cd92]['type']?_0x42e462[_0x45cd92]['item']['endIndex']=_0x379e14['get'](_0x42e462[_0x45cd92]['pairId']):'elementEnd'===_0x42e462[_0x45cd92]['type']&&(_0x42e462[_0x45cd92]['item']['startIndex']=_0x379e14['get'](_0x42e462[_0x45cd92]['pairId']));}['_processTape'](_0x44c6e3){for(let _0x560dad=0x0;_0x560dad<_0x44c6e3['length'];_0x560dad++){if('elementStart'===_0x44c6e3[_0x560dad]['type'])_0x44c6e3[_0x560dad]['item']['startIndex']=_0x560dad;else{if('elementEnd'===_0x44c6e3[_0x560dad]['type']){_0x44c6e3[_0x560dad]['item']['endIndex']=_0x560dad;const _0x3064bf=_0x44c6e3[_0x560dad]['item']['startIndex'];_0x44c6e3[_0x3064bf]['pairId']=_0x44c6e3[_0x560dad]['id'],_0x44c6e3[_0x560dad]['pairId']=_0x44c6e3[_0x3064bf]['id'];}else _0x44c6e3[_0x560dad]['item']['startIndex']=_0x560dad,_0x44c6e3[_0x560dad]['item']['endIndex']=_0x560dad,_0x44c6e3[_0x560dad]['pairId']=null;}_0x44c6e3[_0x560dad]['markersStart']||(_0x44c6e3[_0x560dad]['markersStart']=[],_0x44c6e3[_0x560dad]['markersEnd']=[]);}}['_markInsertions'](_0x3b8e80,_0x1240c7){const _0x369e16=_0x3b8e80['filter'](_0x3ee3d0=>!_0x3ee3d0['isAdded']);for(let _0x3871b3=0x0;_0x3871b3<_0x1240c7['length'];_0x3871b3++)_0x1240c7[_0x3871b3]['isAdded']&&(_0x369e16[_0x3871b3]['isAdded']=_0x1240c7[_0x3871b3]['isAdded']);}['_getDiff'](_0x2e6bcf,_0x1ef972=null){const _0x22ab09=this['repository']['getRevision'](_0x2e6bcf),_0x17f810=_0x1ef972?this['repository']['getRevision'](_0x1ef972):null,_0x1dc082=this['_getRevisionsRange'](_0x22ab09,_0x17f810),_0x428071=_0x1dc082[_0x1dc082['length']-0x1],_0x4eb24a=new Map(),_0x1d323c={'model':{},'attributes':{},'changes':[]},_0x1b4e11=new Set(),_0xc27da0=new Map();for(let _0x58c089=_0x1dc082['length']-0x1;_0x58c089>=0x0;_0x58c089--){const _0x30e3aa=_0x1dc082[_0x58c089];for(const _0x53b3c9 of Object['keys'](_0x30e3aa['diffData']))if(_0x30e3aa['diffData'][_0x53b3c9]['attachChange']){const _0x3a3ed7=_0x30e3aa['diffData'][_0x53b3c9]['attachChange'];_0x3a3ed7['isAttached']?(_0x1b4e11['add'](_0x53b3c9),_0xc27da0['has'](_0x53b3c9)&&_0xc27da0['get'](_0x53b3c9)['userId']==_0x3a3ed7['userId']?_0xc27da0['delete'](_0x53b3c9):_0xc27da0['set'](_0x53b3c9,_0x3a3ed7)):_0xc27da0['has'](_0x53b3c9)?(_0x1b4e11['delete'](_0x53b3c9),_0xc27da0['delete'](_0x53b3c9)):(_0x1b4e11['add'](_0x53b3c9),_0xc27da0['set'](_0x53b3c9,_0x3a3ed7));}else _0x1b4e11['add'](_0x53b3c9);}for(const _0x2fea52 of _0x1b4e11){const _0x51c797=_0xc27da0['has'](_0x2fea52)&&!_0xc27da0['get'](_0x2fea52)['isAttached'];let _0x214ff6=_0x51c797?_0x1dc082['length']-0x1:0x0;const _0x18bb93=_0x51c797?-0x1:0x1;for(;_0x1dc082[_0x214ff6];){const _0x4581e0=_0x1dc082[_0x214ff6];if(_0x4581e0['diffData'][_0x2fea52]){const _0x405a4d=_0x51c797?_0x4581e0['diffData'][_0x2fea52]['attributesBefore']:_0x4581e0['diffData'][_0x2fea52]['attributesAfter'];_0x1d323c['attributes'][_0x2fea52]=_0x405a4d?_0x3153c8(_0x405a4d):{};break;}_0x214ff6+=_0x18bb93;}}for(const _0xebcefd of _0x1dc082){_0xebcefd['model']={};for(const _0x106899 of _0xebcefd['authors'])_0x4eb24a['set'](_0x106899['id'],_0x106899);for(const _0x5d3a39 of _0x1b4e11){const _0x480b55=_0xebcefd['diffData'][_0x5d3a39]?_0xebcefd['diffData'][_0x5d3a39]['insertions']:'[]',_0x262c90=_0xebcefd['diffData'][_0x5d3a39]?_0xebcefd['diffData'][_0x5d3a39]['deletions']:'[]';_0xebcefd['model'][_0x5d3a39]={'insertions':this['_utils']['_makeModelFromViewString'](_0x480b55),'deletions':this['_utils']['_makeModelFromViewString'](_0x262c90)};}}for(const _0x4a687c of _0x1b4e11){let _0x5a1232=null,_0x4d4c79=0x0;const _0xf7321f=new Map(Array['from'](_0x22ab09['model'][_0x4a687c]['insertions']['markers'])['filter'](([_0x193b30])=>!_0x193b30['startsWith']('revision:')));let _0x5ecb54=0x0;for(const _0x134b3e of _0x1dc082){const _0x160562=this['_makeTape'](_0x134b3e['model'][_0x4a687c]['insertions']);_0x134b3e==_0x22ab09?(_0x5a1232=_0x160562,_0x4d4c79=_0x5a1232['length'],_0x5a1232['forEach'](_0x292655=>{_0x292655['id']=_0x5ecb54++;}),this['_processTape'](_0x5a1232)):this['_markInsertions'](_0x5a1232,_0x160562);const _0x11e3ba=_0x5a1232['filter'](_0x4d3f6b=>!_0x4d3f6b['isAdded'])['map'](_0x47089c=>_0x47089c['id']);let _0x44f4e7=0x0;const _0xa9ca1=this['_makeTape'](_0x134b3e['model'][_0x4a687c]['deletions']);_0xa9ca1['forEach'](_0x5c46d9=>{_0x5c46d9['isRemoved']?_0x5c46d9['id']=_0x4d4c79++:_0x5c46d9['id']=_0x11e3ba[_0x44f4e7++];}),this['_processTape'](_0xa9ca1),this['_setDistance'](_0x5a1232,'isAdded'),this['_setDistance'](_0xa9ca1,'isRemoved'),_0x134b3e==_0x22ab09&&this['_markMarkers'](_0x5a1232,_0xf7321f),_0x5a1232=this['_joinTapes'](_0x5a1232,_0xa9ca1),this['_refreshStartEndIndex'](_0x5a1232),this['_setDistance'](_0x5a1232,'isRemoved');}_0x5a1232=_0x5a1232['filter'](_0x18ddcc=>!(_0x18ddcc['isAdded']&&_0x18ddcc['isRemoved']));const _0x8e1216=new Map(_0x428071['model'][_0x4a687c]['deletions']['markers']),_0x3e74c0=new Set(_0xf7321f['keys']());for(const _0x3538b7 of _0x8e1216['keys']())_0x3e74c0['delete'](_0x3538b7);this['_markSuggestions'](_0x5a1232,_0x3e74c0),this['_fixObsoleteTags'](_0x5a1232),_0x5a1232=this['_removeMissingPairs'](_0x5a1232),_0x5a1232=this['_markMismatchedRemovedTags'](_0x5a1232),_0x5a1232=this['_removeUnsupportedChanges'](_0x5a1232);const {root:_0x45c8ee,changes:_0x104081}=this['_makeModelFromTape'](_0x5a1232,_0x4eb24a,_0x4a687c);_0x1d323c['model'][_0x4a687c]=_0x45c8ee;const _0x3c2a38=_0xc27da0['get'](_0x4a687c);if(_0x3c2a38){const _0x27bf6a=_0x4eb24a['get'](_0x3c2a38['userId']),_0x225606=new G({'author':_0x27bf6a,'type':_0x3c2a38['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4a687c});_0x104081['unshift'](_0x225606),_0x1d323c['attributes'][_0x4a687c]['revisionHistoryAttachChange']=_0x225606['id'];}_0x1d323c['changes']=_0x1d323c['changes']['concat'](_0x104081);}return _0x1d323c;}['_markMarkers'](_0x4fe47b,_0x3ce260){for(let _0x4dfb54=0x0;_0x4dfb54<_0x4fe47b['length'];_0x4dfb54++)for(const [_0x23c274,_0x3348da]of _0x3ce260)!_0x3348da['isCollapsed']&&_0x3348da['start']['isEqual'](_0x4fe47b[_0x4dfb54]['previousPosition'])&&_0x4fe47b[_0x4dfb54]['markersStart']['push'](_0x23c274),_0x3348da['end']['isEqual'](_0x4fe47b[_0x4dfb54]['nextPosition'])&&_0x4fe47b[_0x4dfb54]['markersEnd']['push'](_0x23c274);}['_joinTapes'](_0x27b9d9,_0x2d482d){let _0x3a4429=[],_0x1d357b=0x0,_0x53805d=0x0;for(;_0x1d357b<_0x27b9d9['length']||_0x53805d<_0x2d482d['length'];){const _0x1323bb=_0x27b9d9[_0x1d357b]||{},_0x3fce67=_0x2d482d[_0x53805d]||{};if(_0x1323bb['id']==_0x3fce67['id'])_0x1d357b++,_0x53805d++,_0x3a4429['push'](_0x1323bb);else{if(_0x3fce67['isRemoved']&&_0x1323bb['isAdded']){const {commonTape:_0x519240,iEnd:_0x589ad0,jEnd:_0x48701c}=this['_threeWayMerge'](_0x27b9d9,_0x1d357b,_0x2d482d,_0x53805d);_0x3a4429=_0x3a4429['concat'](_0x519240),_0x1d357b=_0x589ad0,_0x53805d=_0x48701c;}else _0x3fce67['isRemoved']?(_0x53805d++,_0x3a4429['push'](_0x3fce67)):(_0x1d357b++,_0x3a4429['push'](_0x1323bb));}}return _0x3a4429;}['_markSuggestions'](_0x4161aa,_0xb96f8c){const _0x5e6bb8=[];for(let _0x8b7f14=0x0;_0x8b7f14<_0x4161aa['length'];_0x8b7f14++){for(let _0x59a9c2=0x0;_0x59a9c2<_0x4161aa[_0x8b7f14]['markersStart']['length'];_0x59a9c2++){const _0x140e7a=_0x4161aa[_0x8b7f14]['markersStart'][_0x59a9c2];if(!_0xb96f8c['has'](_0x140e7a))continue;const {group:_0x4db208,type:_0x20685d,authorId:_0x3aa747}=_0xe5fe4e(_0x140e7a);'revision-suggestion'!=_0x4db208||'insertion'!=_0x20685d&&'deletion'!=_0x20685d||(_0x5e6bb8['unshift']({'type':_0x20685d,'name':_0x140e7a,'userId':_0x3aa747}),_0x4161aa[_0x8b7f14]['markersStart']['splice'](_0x59a9c2,0x1),_0x59a9c2--);}_0xea3134(_0x4161aa[_0x8b7f14]);for(let _0x7d1864=0x0;_0x7d1864<_0x4161aa[_0x8b7f14]['markersEnd']['length'];_0x7d1864++){const _0x1ee212=_0x4161aa[_0x8b7f14]['markersEnd'][_0x7d1864];if(!_0xb96f8c['has'](_0x1ee212))continue;const {group:_0x411759,type:_0x460a6e}=_0xe5fe4e(_0x1ee212);if('revision-suggestion'!=_0x411759||'insertion'!=_0x460a6e&&'deletion'!=_0x460a6e)continue;_0x4161aa[_0x8b7f14]['markersEnd']['splice'](_0x7d1864,0x1),_0x7d1864--;const _0x2f1f99=_0x5e6bb8['findIndex'](_0x2a93a3=>_0x2a93a3['name']==_0x1ee212);_0x2f1f99>-0x1&&_0x5e6bb8['splice'](_0x2f1f99,0x1);}}function _0xe5fe4e(_0x1bb449){const _0xa72f7b=_0x1bb449['split'](':');return{'group':_0xa72f7b[0x0],'type':_0xa72f7b[0x1],'subType':_0xa72f7b['length']>=0x5?_0xa72f7b[0x2]:null,'id':_0xa72f7b['length']<0x5?_0xa72f7b[0x2]:_0xa72f7b[0x3],'authorId':_0xa72f7b['length']<0x5?_0xa72f7b[0x3]:_0xa72f7b[0x4],'markerCount':0x6==_0xa72f7b['length']?_0xa72f7b[0x5]:null};}function _0xea3134(_0x218c4c){for(let _0x4cf81b=0x0;_0x4cf81b<_0x5e6bb8['length'];_0x4cf81b++){if(_0x218c4c['isAdded']&&'insertion'==_0x5e6bb8[_0x4cf81b]['type']&&_0x218c4c['isAdded']['userId']==_0x5e6bb8[_0x4cf81b]['userId'])return _0x218c4c['isAddSuggestion']=_0x5e6bb8[_0x4cf81b],void delete _0x218c4c['isAdded'];if(!_0x218c4c['isAdded']&&!_0x218c4c['isRemoved']&&'deletion'==_0x5e6bb8[_0x4cf81b]['type'])return void(_0x218c4c['isRemoveSuggestion']=_0x5e6bb8[_0x4cf81b]);}}}['_setDistance'](_0x2fc7fb,_0x3ef14d){let _0x2d94ce=0x0,_0x572d5e=!0x1;const _0x53e447=new Map();for(const _0x15c8b3 of _0x2fc7fb)_0x15c8b3[_0x3ef14d]?_0x572d5e&&(_0x2d94ce++,_0x572d5e=!0x1):(_0x2d94ce++,_0x572d5e=!0x0),_0x53e447['set'](_0x15c8b3['id'],_0x2d94ce);for(let _0x49b07a=0x0;_0x49b07a<_0x2fc7fb['length'];_0x49b07a++){if('isRemoved'==_0x3ef14d&&_0x2fc7fb[_0x49b07a]['isAdded']||'isAdded'==_0x3ef14d&&_0x2fc7fb[_0x49b07a]['isRemoved'])continue;if('text'==_0x2fc7fb[_0x49b07a]['type']){_0x2fc7fb[_0x49b07a]['distance']=0x0;continue;}const _0x3c6a20=_0x53e447['get'](_0x2fc7fb[_0x49b07a]['pairId']),_0x272471=_0x53e447['get'](_0x2fc7fb[_0x49b07a]['id']);_0x2fc7fb[_0x49b07a]['distance']=_0x3c6a20-_0x272471;}}['_getRevisionsRange'](_0x1d6d06,_0x24465e,_0x11f337=!0x1){const _0x5a0ad5=[];let _0x46de8c=this['repository']['getIndex'](_0x1d6d06),_0x3c6331=this['repository']['getIndex'](_0x24465e);for(-0x1==_0x3c6331&&(_0x3c6331=this['repository']['_revisions']['length'],_0x11f337=!0x1);_0x46de8c<_0x3c6331;)_0x5a0ad5['push'](this['repository']['getRevision'](_0x46de8c)),_0x46de8c++;return _0x11f337&&_0x5a0ad5['push'](this['repository']['getRevision'](_0x46de8c)),_0x5a0ad5;}['_threeWayMerge'](_0x13fcf4,_0x34f256,_0x40e006,_0x4e87cd){const _0x483b41=this['editor']['model']['schema'];let _0xad4b01=_0x34f256;for(;_0x13fcf4[_0xad4b01]&&_0x13fcf4[_0xad4b01]['isAdded'];)_0xad4b01++;let _0x1b11d7=_0x4e87cd;for(;_0x40e006[_0x1b11d7]&&_0x40e006[_0x1b11d7]['isRemoved'];)_0x1b11d7++;_0x22f12c(_0x13fcf4,_0x34f256,_0xad4b01),_0x22f12c(_0x40e006,_0x4e87cd,_0x1b11d7);const _0x5b7307=_0x40e006['slice'](_0x4e87cd,_0x1b11d7)['concat'](_0x13fcf4['slice'](_0x34f256,_0xad4b01));return _0x5b7307['sort']((_0x54e9cd,_0x22c002)=>_0x54e9cd['side']!=_0x22c002['side']?_0x54e9cd['side']-_0x22c002['side']:_0x54e9cd['level']!=_0x22c002['level']?_0x54e9cd['level']-_0x22c002['level']:_0x54e9cd['distance']!=_0x22c002['distance']?_0x22c002['distance']-_0x54e9cd['distance']:!!_0x54e9cd['isAdded']!=!!_0x22c002['isAdded']?-0x1==_0x54e9cd['side']||0x0==_0x54e9cd['side']?_0x54e9cd['isAdded']?-0x1:0x1:_0x54e9cd['isAdded']?0x1:-0x1:_0x54e9cd['index']-_0x22c002['index']),{'commonTape':_0x5b7307,'iEnd':_0xad4b01,'jEnd':_0x1b11d7};function _0x22f12c(_0x3a15e4,_0x506223,_0x417db8){let _0x24cd46=-0x1,_0x2b0119=Number['POSITIVE_INFINITY'],_0x347e3d=!0x0;for(let _0x3a1e87=_0x506223;_0x3a1e87<_0x417db8;_0x3a1e87++)if(_0x483b41['isInline'](_0x3a15e4[_0x3a1e87]['item'])||(_0x347e3d=!0x1),_0x3a15e4[_0x3a1e87]['item']['startIndex']<_0x506223&&(_0x24cd46=_0x3a1e87),_0x3a15e4[_0x3a1e87]['item']['endIndex']>=_0x417db8){_0x2b0119=_0x3a1e87;break;}_0x347e3d&&(_0x24cd46=_0x417db8-0x1);for(let _0x224eed=_0x506223;_0x224eed<_0x417db8;_0x224eed++)_0x3a15e4[_0x224eed]['side']=_0x224eed<=_0x24cd46?-0x1:_0x224eed<_0x2b0119?0x0:0x1,_0x3a15e4[_0x224eed]['index']=_0x224eed;let _0x551d60=0x0;for(let _0x9ba607=_0x506223;_0x9ba607<=_0x24cd46;_0x9ba607++)0x0==_0x3a15e4[_0x9ba607]['distance']?_0x3a15e4[_0x9ba607]['level']=_0x551d60:(_0x551d60++,_0x3a15e4[_0x9ba607]['level']=_0x551d60,_0x551d60++);for(let _0x3e809f=_0x506223;_0x3e809f<_0x417db8;_0x3e809f++)0x0==_0x3a15e4[_0x3e809f]['side']&&(_0x3a15e4[_0x3e809f]['level']=_0x551d60);_0x551d60=0x0;for(let _0x1f2b70=_0x417db8-0x1;_0x1f2b70>=_0x2b0119;_0x1f2b70--)0x0==_0x3a15e4[_0x1f2b70]['distance']?_0x3a15e4[_0x1f2b70]['level']=_0x551d60:(_0x551d60--,_0x3a15e4[_0x1f2b70]['level']=_0x551d60,_0x551d60--);}}['_fixObsoleteTags'](_0x1847cc){const _0x87dc93=new Map(),_0x5d924d=this['editor']['model']['schema'];for(let _0x30677d=0x1;_0x30677d<_0x1847cc['length'];_0x30677d++){let _0x59353a,_0x3f94f4,_0x33da73;const _0x379602=_0x1847cc[_0x30677d],_0x5f58de=_0x1847cc[_0x30677d-0x1];if('text'==_0x379602['type'])continue;if(_0x379602['type']!=_0x5f58de['type'])continue;if(!_0x5d924d['isBlock'](_0x5f58de['item'])||_0x5d924d['isLimit'](_0x5f58de['item']))continue;if(!_0x5d924d['isBlock'](_0x379602['item'])||_0x5d924d['isLimit'](_0x379602['item']))continue;if((_0x1847cc[_0x30677d]['isAdded']||_0x1847cc[_0x30677d]['isAddSuggestion'])&&_0x1847cc[_0x30677d-0x1]['isRemoved'])_0x59353a=_0x1847cc[_0x30677d],_0x3f94f4=_0x1847cc[_0x30677d-0x1],_0x33da73=_0x30677d-0x1;else{if(!_0x1847cc[_0x30677d]['isRemoved']||!_0x1847cc[_0x30677d-0x1]['isAdded']&&!_0x1847cc[_0x30677d-0x1]['isAddSuggestion'])continue;_0x59353a=_0x1847cc[_0x30677d-0x1],_0x3f94f4=_0x1847cc[_0x30677d],_0x33da73=_0x30677d;}const _0xa643=_0x59353a['level']==_0x3f94f4['level'],_0x4e3431=Math['abs'](_0x59353a['level'])<Math['abs'](_0x3f94f4['level'])&&0x0==_0x3f94f4['distance'];(_0xa643||_0x4e3431)&&(_0x87dc93['set'](_0x3f94f4['id'],_0x59353a['id']),_0x1847cc['splice'](_0x33da73,0x1),_0x30677d--,_0x59353a['isAdded']=!0x1);}for(let _0x12c3d6=0x0;_0x12c3d6<_0x1847cc['length'];_0x12c3d6++)_0x87dc93['has'](_0x1847cc[_0x12c3d6]['pairId'])&&(_0x1847cc[_0x12c3d6]['pairId']=_0x87dc93['get'](_0x1847cc[_0x12c3d6]['pairId']));}['_removeMissingPairs'](_0x16d27f){const _0x5d0bb6=new Set(_0x16d27f['map'](_0x7062f7=>_0x7062f7['id']));for(let _0x140024=0x0;_0x140024<_0x16d27f['length'];_0x140024++)_0x5d0bb6['has'](_0x16d27f[_0x140024]['pairId'])||0x0==_0x16d27f[_0x140024]['distance']||(_0x16d27f[_0x140024]['isIncorrect']=!0x0);return _0x16d27f['filter'](_0x2b255d=>!_0x2b255d['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4cd3e0){const _0x267979=new Set();for(let _0x5a10f7=0x0;_0x5a10f7<_0x4cd3e0['length'];_0x5a10f7++){if(_0x267979['has'](_0x4cd3e0[_0x5a10f7]['id'])&&_0x4cd3e0[_0x5a10f7]['isRemoved']&&(_0x4cd3e0[_0x5a10f7]['isIncorrect']=!0x0),_0x4cd3e0[_0x5a10f7]['isIncorrect'])continue;if(0x0==_0x4cd3e0[_0x5a10f7]['distance'])continue;if('elementStart'!=_0x4cd3e0[_0x5a10f7]['type'])continue;if(null==_0x4cd3e0[_0x5a10f7]['pairId'])continue;let _0x3b6732=_0x5a10f7+0x1,_0x1087c4=0x0;for(;_0x4cd3e0[_0x3b6732]['id']!=_0x4cd3e0[_0x5a10f7]['pairId'];)'elementStart'==_0x4cd3e0[_0x3b6732]['type']?_0x1087c4++:'elementEnd'==_0x4cd3e0[_0x3b6732]['type']&&_0x1087c4--,_0x3b6732++;if(0x0!=_0x1087c4){if(_0x4cd3e0[_0x5a10f7]['isRemoved'])_0x4cd3e0[_0x5a10f7]['isIncorrect']=!0x0;else{for(;_0x3b6732!=_0x5a10f7;)_0x4cd3e0[_0x3b6732]['isRemoved']&&0x0!=_0x4cd3e0[_0x3b6732]['distance']&&(_0x4cd3e0[_0x3b6732]['isIncorrect']=!0x0,_0x267979['add'](_0x4cd3e0[_0x3b6732]['pairId'])),_0x3b6732--;}}}return _0x4cd3e0['filter'](_0x5f58ab=>!_0x5f58ab['isIncorrect']);}['_removeUnsupportedChanges'](_0x2d089d){const _0x4a0232=this['editor']['model']['schema'];for(let _0x2b02ca=0x0;_0x2b02ca<_0x2d089d['length'];_0x2b02ca++){if(!(_0x2d089d[_0x2b02ca]['isAdded']||_0x2d089d[_0x2b02ca]['isAddSuggestion']||_0x2d089d[_0x2b02ca]['isRemoved']||_0x2d089d[_0x2b02ca]['isRemoveSuggestion']))continue;if(0x0==_0x2d089d[_0x2b02ca]['distance'])continue;const _0x5c8205=_0x2d089d[_0x2b02ca]['item'];_0x4a0232['isBlock'](_0x5c8205)||_0x4a0232['isLimit'](_0x5c8205)||(_0x2d089d[_0x2b02ca]['isAdded']&&delete _0x2d089d[_0x2b02ca]['isAdded'],_0x2d089d[_0x2b02ca]['isAddSuggestion']&&delete _0x2d089d[_0x2b02ca]['isAddSuggestion'],_0x2d089d[_0x2b02ca]['isRemoveSuggestion']&&delete _0x2d089d[_0x2b02ca]['isRemoveSuggestion'],_0x2d089d[_0x2b02ca]['isRemoved']&&(_0x2d089d[_0x2b02ca]['isIncorrect']=!0x0));}return _0x2d089d['filter'](_0x370b91=>!_0x370b91['isIncorrect']);}['_makeModelFromTape'](_0x5e891c,_0x2c3c8f,_0x4e32a2){const _0x5dd34a=new _0x367b4a(),_0x166f94=[],_0x2d12b8=new Map(),_0x443ca=this['editor']['model'],_0x24e075=_0x443ca['schema'],_0x2ede9c=[_0x5dd34a],_0xb16654={},_0x587cb9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x52578f=null;const _0x5bc39d=[0x0];for(let _0x413866=0x0;_0x413866<_0x5e891c['length'];_0x413866++)if('elementStart'===_0x5e891c[_0x413866]['type']){_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d);const _0x427367=new _0x14dfc7(_0x5e891c[_0x413866]['item']['name'],_0x5e891c[_0x413866]['item']['getAttributes']());_0x2ede9c[0x0]['_appendChild'](_0x427367),_0x5bc39d['push'](0x0),_0x2ede9c['unshift'](_0x427367),_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d);}else'elementEnd'===_0x5e891c[_0x413866]['type']?(_0x2ede9c['shift'](),_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d),_0x5bc39d['pop'](),_0x5bc39d[_0x5bc39d['length']-0x1]++,_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d)):(_0x5e891c[_0x413866]['previousPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d),_0x52578f?_0x52578f['_data']+=_0x5e891c[_0x413866]['item']['data']:_0x52578f=new _0x30226a(_0x5e891c[_0x413866]['item']['data'],_0x5e891c[_0x413866]['item']['getAttributes']()),_0x5e891c[_0x413866+0x1]&&'text'===_0x5e891c[_0x413866+0x1]['type']&&_0x129764(_0x52578f,_0x5e891c[_0x413866+0x1]['item'])||(_0x2ede9c[0x0]['_appendChild'](_0x52578f),_0x52578f=null),_0x5bc39d[_0x5bc39d['length']-0x1]+=_0x5e891c[_0x413866]['item']['offsetSize'],_0x5e891c[_0x413866]['nextPosition']=_0x443ca['createPositionFromPath'](_0x5dd34a,_0x5bc39d));for(let _0x16b730=0x0;_0x16b730<_0x5e891c['length'];_0x16b730++){const _0x9e5fb=_0x5e891c[_0x16b730]['previousPosition'],_0xb9b10d=_0x5e891c[_0x16b730]['nextPosition'];for(const _0x20c4dc of _0x5e891c[_0x16b730]['markersStart'])_0x2d12b8['set'](_0x20c4dc,{'start':_0x9e5fb,'end':null});_0x8a41e2('isRemoveSuggestion',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isAddSuggestion',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isRemoved',_0x16b730,_0x9e5fb,_0xb9b10d),_0x8a41e2('isAdded',_0x16b730,_0x9e5fb,_0xb9b10d);for(const _0x3cc683 of _0x5e891c[_0x16b730]['markersEnd']){const _0x237449=_0x2d12b8['get'](_0x3cc683);_0x237449?_0x237449['end']=_0xb9b10d:_0x2d12b8['set'](_0x3cc683,{'start':_0xb9b10d,'end':_0xb9b10d});}}for(const [_0xe999f2,_0x51d0a8]of _0x2d12b8){const _0x28372f=this['editor']['model']['createRange'](_0x51d0a8['start'],_0x51d0a8['end']);_0x5dd34a['markers']['set'](_0xe999f2,_0x28372f);}return _0x166f94['sort']((_0x1ead89,_0x237400)=>{const _0x495804=_0x5dd34a['markers']['get']('revision:'+_0x1ead89['id']),_0x2a6e6c=_0x5dd34a['markers']['get']('revision:'+_0x237400['id']);return _0x495804['start']['isBefore'](_0x2a6e6c['start'])?-0x1:_0x495804['start']['isAfter'](_0x2a6e6c['start'])?0x1:_0x495804['end']['isBefore'](_0x2a6e6c['end'])?-0x1:_0x495804['end']['isAfter'](_0x2a6e6c['end'])?0x1:'add'===_0x1ead89['type']?-0x1:0x1;}),{'root':_0x5dd34a,'changes':_0x166f94};function _0x8a41e2(_0x873335,_0x1c8138,_0x22a67c,_0x27dceb){const _0x5d89b1=!!_0x5e891c[_0x1c8138][_0x873335],_0x1d8462=_0x5d89b1?_0x5e891c[_0x1c8138][_0x873335]['userId']:null,_0xc398c6=_0x1c8138===_0x5e891c['length']-0x1,_0x34293f=_0x587cb9[_0x873335][0x0],_0x3e6476=_0x24e075['isObject'](_0x5e891c[_0x1c8138]['item']);!_0xb16654[_0x873335]&&_0x5d89b1?_0xb16654[_0x873335]={'start':_0x22a67c,'tapeItem':_0x5e891c[_0x1c8138],'userId':_0x1d8462,'type':_0x873335}:_0xb16654[_0x873335]&&!_0x5d89b1?(_0xb16654[_0x873335]['end']=_0x22a67c,_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]=null):_0xb16654[_0x873335]&&_0x5d89b1&&_0xb16654[_0x873335]['userId']!==_0x1d8462&&(_0xb16654[_0x873335]['end']=_0x22a67c,_0x34293f&&_0x34293f['userId']===_0xb16654[_0x873335]['userId']||_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]={'start':_0x22a67c,'tapeItem':_0x5e891c[_0x1c8138],'userId':_0x1d8462,'type':_0x873335}),_0xb16654[_0x873335]&&_0x3e6476&&('elementStart'!==_0x5e891c[_0x1c8138]['type']||_0x34293f&&_0x34293f['userId']===_0x1d8462||_0x587cb9[_0x873335]['unshift']({'userId':_0x1d8462,'object':_0x5e891c[_0x1c8138]['item'],'change':_0xb16654[_0x873335]}),'elementEnd'===_0x5e891c[_0x1c8138]['type']&&_0x34293f&&_0x34293f['object']===_0x5e891c[_0x1c8138]['item']&&(_0x587cb9[_0x873335]['shift'](),_0xb16654[_0x873335]=_0x34293f['change'])),_0xb16654[_0x873335]&&_0xc398c6&&(_0xb16654[_0x873335]['end']=_0x27dceb,_0x57f40e(_0xb16654[_0x873335]),_0xb16654[_0x873335]=null);}function _0x57f40e({start:_0x2e36d8,end:_0x3de638,tapeItem:_0xd119ec,userId:_0x51a044,type:_0x29e15a}){const _0x581bb7=_0xd119ec['item'],_0x5d1708=_0x443ca['schema']['isBlock'](_0x581bb7)&&!_0x443ca['schema']['isLimit'](_0x581bb7),_0x67cb3a=_0x2e36d8['nodeAfter']==_0x3de638['parent']&&_0x3de638['isAtStart'];if(_0x5d1708&&_0x67cb3a)return;const _0x11f660=_0x443ca['createRange'](_0x2e36d8,_0x3de638),_0x5f504c=_0x2c3c8f['get'](_0x51a044),_0x268ff8=new G({'author':_0x5f504c,'type':'isAdded'==_0x29e15a||'isAddSuggestion'==_0x29e15a?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x29e15a||'isRemoveSuggestion'==_0x29e15a},'createdAt':new Date(),'rootName':_0x4e32a2});_0x166f94['push'](_0x268ff8),_0x5dd34a['markers']['set']('revision:'+_0x268ff8['id'],_0x11f660);}function _0x129764(_0x1d95f3,_0x4e5c15){const _0xad703=_0x1d95f3['getAttributes'](),_0x5c0787=_0x4e5c15['getAttributes']();for(const _0x3d29cd of _0xad703){if(_0x3d29cd[0x1]!==_0x4e5c15['getAttribute'](_0x3d29cd[0x0]))return!0x1;_0x5c0787['next']();}return _0x5c0787['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x365a55=>{const _0x1e0ae1=_0x365a55['markerName']['split'](':')[0x1],_0x46a5de=this['_getChangeFromId'](_0x1e0ae1);if(!_0x46a5de)return null;const _0x2714ac='add'==_0x46a5de['type']?'insertion':'deletion',_0x5cc179=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2714ac];return _0x46a5de['data']['isSuggestion']&&_0x5cc179['push']('ck-suggestion-marker-'+_0x2714ac+'-new'),this['activeChange']==_0x46a5de&&_0x5cc179['push']('ck-suggestion-marker--active'),{'classes':_0x5cc179,'attributes':{'data-change-id':_0x1e0ae1}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4bdd0f=>{_0x4bdd0f['on']('element:pre',(_0x2fe8df,_0x4cf307,_0xaa6573)=>{const _0x535a32=_0x4cf307['viewItem']['getChild'](0x0);if(!_0x535a32||!_0x535a32['is']('element','code'))return;if(!_0xaa6573['consumable']['consume'](_0x535a32,{'attributes':['vid_start','vid_end']}))return;const _0x11ffde=_0x4cf307['modelRange']['start']['nodeAfter'];_0xaa6573['writer']['setAttribute']('vid_start',_0x535a32['getAttribute']('vid_start'),_0x11ffde),_0xaa6573['writer']['setAttribute']('vid_end',_0x535a32['getAttribute']('vid_end'),_0x11ffde);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x1b1e56=>{_0x1b1e56['on']('element',(_0xc08052,_0x4b5c24,_0x5d6a22)=>{if(!_0x5d6a22['consumable']['consume'](_0x4b5c24['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4b5c24['modelRange']['isCollapsed'])return;const _0x30fe2=_0x4b5c24['modelRange']['start']['nodeAfter'];_0x30fe2['hasAttribute']('vid_start')||_0x30fe2['hasAttribute']('vid')||(_0x5d6a22['writer']['setAttribute']('vid_start',_0x4b5c24['viewItem']['getAttribute']('vid_start'),_0x30fe2),_0x5d6a22['writer']['setAttribute']('vid_end',_0x4b5c24['viewItem']['getAttribute']('vid_end'),_0x30fe2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5b230d=>_0x5b230d['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x189665,[,_0x326c1c])=>{['vid_start','vid_end','vid']['includes'](_0x326c1c)&&(_0x189665['return']=!0x0,_0x189665['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1bf369=>{_0x1bf369['on']('attribute:vid',(_0x24f008,_0x182118,_0x38421f)=>{if('\x20'!=_0x182118['item']['data']||_0x182118['item']['parent']['maxOffset']>0x1)return;if(!_0x38421f['consumable']['consume'](_0x182118['item'],_0x24f008['name']))return;const _0x3366f3=_0x38421f['writer'],_0xf2dfee=_0x38421f['mapper']['toViewRange'](_0x182118['range']);_0x3366f3['wrap'](_0xf2dfee,_0x3366f3['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4028b8){const _0xcb4c7a=_0x4028b8['plugins']['get']('RevisionViewer');return(_0x5dfd9f,_0x3cd92f,_0x1310fb)=>{const _0x3117d8=_0x3cd92f['markerName']['split'](':')[0x1],_0x21c61e=_0xcb4c7a['_getChangeFromId'](_0x3117d8);if(!_0x21c61e)return null;const _0x2ecc28='add'==_0x21c61e['type']?'split':'merge';if(!_0x1310fb['consumable']['test'](_0x3cd92f['markerRange'],_0x5dfd9f['name']))return;const _0x12996f=_0x3cd92f['markerRange']['getWalker'](),_0xbfbc35=_0x3cd92f['markerRange']['start'],_0x2105fc=_0x4028b8['model']['schema'];let _0x2b2be7=null,_0x217005=null,_0x358b9b=!0x1,_0x59b12f=!0x1;for(const _0x2c4ac9 of _0x12996f){const _0x4fc3a1=_0x2c4ac9['item'];_0x358b9b=_0x358b9b||_0x2105fc['isContent'](_0x4fc3a1);const _0x4ca550=_0x1310fb['mapper']['toViewElement'](_0x4fc3a1);if(_0x4ca550&&_0x4ca550['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2c4ac9['type']&&(_0x2105fc['isBlock'](_0x4fc3a1)&&!_0x2105fc['isLimit'](_0x4fc3a1)&&(_0x4fc3a1['nextSibling']||_0xbfbc35['isAtEnd']?_0x2b2be7&&_0x2b2be7['parent']==_0x4fc3a1||(_0x2b2be7=_0x4fc3a1,_0x223786(_0x2c4ac9['previousPosition']),_0x59b12f=!0x0):_0x217005=_0x217005||_0x2c4ac9['previousPosition']));}function _0x223786(_0x452e74){const _0x6e0c09=_0x1310fb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x2ecc28}),_0x50d88c=_0x1310fb['mapper']['toViewPosition'](_0x452e74);_0x21c61e['data']['isSuggestion']&&_0x1310fb['writer']['addClass']('ck-suggestion-marker-'+_0x2ecc28+'-new',_0x6e0c09),_0xcb4c7a['activeChange']==_0x21c61e&&_0x1310fb['writer']['addClass']('ck-suggestion-marker--active',_0x6e0c09),_0x1310fb['writer']['insert'](_0x50d88c,_0x6e0c09),_0x1310fb['mapper']['bindElementToMarker'](_0x6e0c09,_0x3cd92f['markerName']);}_0x358b9b||_0x59b12f||!_0x217005||_0x223786(_0x217005);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x442171,_0x4f0ae8,_0x2f0629)=>{const _0x1d5e51=_0x2f0629['mapper']['markerNameToElements'](_0x4f0ae8['markerName']);if(_0x1d5e51){for(const _0xf9aca3 of _0x1d5e51)(_0xf9aca3['hasClass']('ck-suggestion-marker-split')||_0xf9aca3['hasClass']('ck-suggestion-marker-merge'))&&(_0x2f0629['mapper']['unbindElementFromMarkerName'](_0xf9aca3,_0x4f0ae8['markerName']),_0x2f0629['writer']['remove'](_0xf9aca3));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x54ba57,_0x5da6d7,_0x4df24a)=>{const _0x33ac99=_0x5da6d7['markerName']['split'](':')[0x1],_0x21b6e9=this['_getChangeFromId'](_0x33ac99);if(!_0x21b6e9)return null;const _0x459726='add'==_0x21b6e9['type']?'split':'merge';if(_0x4df24a['consumable']['test'](_0x5da6d7['markerRange'],_0x54ba57['name']))for(const _0x26ecf1 of _0x5da6d7['markerRange']['getItems']()){if(!_0x26ecf1['is']('element','softBreak'))continue;const _0x4e6732=_0x4df24a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x459726}),_0x27ead7=_0x4df24a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x26ecf1));_0x21b6e9['data']['isSuggestion']&&_0x4df24a['writer']['addClass']('ck-suggestion-marker-'+_0x459726+'-new',_0x4e6732),this['activeChange']==_0x21b6e9&&_0x4df24a['writer']['addClass']('ck-suggestion-marker--active',_0x4e6732),_0x4df24a['writer']['insert'](_0x27ead7,_0x4e6732),_0x4df24a['mapper']['bindElementToMarker'](_0x4e6732,_0x5da6d7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3f375b=>{for(const _0x3eced6 of this['editor']['model']['document']['getRootNames']()){const _0x459325=this['editor']['model']['document']['getRoot'](_0x3eced6),_0xa11b09=this['editor']['editing']['view']['document']['getRoot'](_0x3eced6);if(_0xa11b09){const _0x1b9f8a=_0x459325['getAttribute']('revisionHistoryAttachChange');if(_0x3f375b['removeAttribute']('data-change-id',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root-add',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root-remove',_0xa11b09),_0x3f375b['removeClass']('ck-revision-history-root--active',_0xa11b09),_0x1b9f8a){const _0xe6f020=this['_getChangeFromId'](_0x1b9f8a);if(!_0xe6f020)return null;_0x3f375b['setAttribute']('data-change-id',_0x1b9f8a,_0xa11b09),_0x3f375b['addClass']('ck-revision-history-root-'+_0xe6f020['type'],_0xa11b09),this['activeChange']==_0xe6f020&&_0x3f375b['addClass']('ck-revision-history-root--active',_0xa11b09);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3267ff=>'revision-comment:'+_0x3267ff,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x102c6f=>'revision-suggestion:'+_0x102c6f,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x22b30e=>({'name':'suggestion:'+_0x22b30e,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x33a441=>{const _0xfc2a60=_0x33a441['markerName']['split'](':')[0x1];return'insertion'!=_0xfc2a60&&'deletion'!=_0xfc2a60?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xfc2a60]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x404b3b,_0x34efb3,_0x59a552)=>{const _0x19faa6=_0x59a552['mapper']['markerNameToElements'](_0x34efb3['markerName']);if(_0x19faa6){for(const _0x292672 of _0x19faa6)_0x292672['is']('uiElement')&&(_0x59a552['mapper']['unbindElementFromMarkerName'](_0x292672,_0x34efb3['markerName']),_0x59a552['writer']['remove'](_0x292672));}},{'priority':'high'});}['_getChangeFromId'](_0x6d6c6f){return this['_changeIdToChange']['get'](_0x6d6c6f);}['_getViewForChange'](_0x3bf3fb){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3bf3fb),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x31d9da,_0x2816a2,_0x5534e4,_0x3baeb0)=>{_0x3baeb0&&this['_balloon']['remove'](_0x3baeb0),_0x5534e4&&(this['_balloon']['add']({'view':_0x5534e4,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0xbf3a94=this['editor']['editing'],_0x487630=this['_getChangeFromId'](_0x5534e4['changeId']);let _0xc753ea;if(_0x487630['data']['isOnRoot']){const _0x3869e4=_0xbf3a94['view']['getDomRoot'](_0x487630['rootName']);_0xc753ea=Array['from'](_0x3869e4['getClientRects']());}else{const _0x2dabd6=this['editor']['model']['markers']['get']('revision:'+_0x5534e4['changeId']);_0xc753ea=Array['from'](_0xbf3a94['mapper']['markerNameToElements'](_0x2dabd6['name']))['map'](_0x2b37b0=>_0xbf3a94['view']['domConverter']['mapViewToDom'](_0x2b37b0))['map'](_0x3f81fa=>Array['from'](_0x3f81fa['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc753ea[0x0];return _0xc753ea['find'](_0x1222af=>_0x1222af['top']-0x3<=this['_activeViewTarget']['y']&&_0x1222af['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x1222af['left']-0x3<=this['_activeViewTarget']['x']&&_0x1222af['right']+0x3>=this['_activeViewTarget']['x'])||_0xc753ea[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x574b52,_0x369a3c,_0x4d4fc4,_0xbb4cd9)=>{this['activeView']=_0x4d4fc4?this['_getViewForChange'](_0x4d4fc4):null,this['editor']['model']['change'](()=>{const _0xc13d65=this['editor']['editing'];_0xbb4cd9&&(_0xbb4cd9['data']['isOnRoot']?_0xc13d65['view']['change'](_0x954868=>{_0x954868['removeClass']('ck-revision-history-root--active',_0xc13d65['view']['document']['getRoot'](_0xbb4cd9['rootName']));}):_0xc13d65['reconvertMarker']('revision:'+_0xbb4cd9['id'])),_0x4d4fc4&&(_0x4d4fc4['data']['isOnRoot']?_0xc13d65['view']['change'](_0x19e223=>{_0x19e223['addClass']('ck-revision-history-root--active',_0xc13d65['view']['document']['getRoot'](_0x4d4fc4['rootName']));}):_0xc13d65['reconvertMarker']('revision:'+_0x4d4fc4['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x366986,_0x5cb182)=>{if(this['activeChange'])return;const _0x56204b=this['_findChangeIdFromDomTarget'](_0x5cb182['target']),_0x27655e=this['_changeIdToChange']['get'](_0x56204b);_0x27655e?(this['_activeViewTarget']={'x':_0x5cb182['domEvent']['x'],'y':_0x5cb182['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x27655e)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1a7497,_0x3dab4c)=>{const _0x3eb8eb=this['_findChangeIdFromDomTarget'](_0x3dab4c['target']),_0x25a4e5=this['_changeIdToChange']['get'](_0x3eb8eb);_0x25a4e5?(this['_activeViewTarget']={'x':_0x3dab4c['domEvent']['x'],'y':_0x3dab4c['domEvent']['y']},_0x25a4e5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25a4e5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2980f2){do{const _0x3f5992=_0x2980f2['getAttribute']('data-change-id');if(_0x3f5992)return _0x3f5992;_0x2980f2=_0x2980f2['parent'];}while(_0x2980f2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xff7a20=>{for(const _0xc4ead4 of this['editor']['model']['markers'])_0xff7a20['removeMarker'](_0xc4ead4);});}}function Q(_0x1e81ce,_0xe33459){return(_0x115d15,_0x29fd9e,_0x2bd52a)=>{if(!_0x2bd52a['consumable']['test'](_0x29fd9e['markerRange'],_0x115d15['name']))return;const _0x5c3f4e=_0x29fd9e['markerRange']['getWalker'](),_0x8ba006=_0x29fd9e['markerRange']['start'],_0xf1cb16=_0x1e81ce['model']['schema'];let _0x1d8914=null,_0x29d15c=null,_0x292de3=!0x1,_0x214455=!0x1;for(const _0x3ca02e of _0x5c3f4e){const _0x2013b6=_0x3ca02e['item'];_0x292de3=_0x292de3||_0xf1cb16['isContent'](_0x2013b6);const _0x405fca=_0x2bd52a['mapper']['toViewElement'](_0x2013b6);if(_0x405fca&&_0x405fca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3ca02e['type']&&(_0xf1cb16['isBlock'](_0x2013b6)&&!_0xf1cb16['isLimit'](_0x2013b6)&&(_0x2013b6['nextSibling']||_0x8ba006['isAtEnd']?_0x1d8914&&_0x1d8914['parent']==_0x2013b6||(_0x1d8914=_0x2013b6,_0x4e12b2(_0x3ca02e['previousPosition']),_0x214455=!0x0):_0x29d15c=_0x29d15c||_0x3ca02e['previousPosition']));}function _0x4e12b2(_0x565a56){const _0x5f0c87=_0x2bd52a['mapper']['toViewPosition'](_0x565a56),_0x36211a=_0x2bd52a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xe33459});_0x2bd52a['writer']['insert'](_0x5f0c87,_0x36211a),_0x2bd52a['mapper']['bindElementToMarker'](_0x36211a,_0x29fd9e['markerName']);}_0x292de3||_0x214455||!_0x29d15c||_0x4e12b2(_0x29d15c);};}class nt extends _0x31431b{constructor(_0x432bec){super(_0x432bec);const _0xdd9e40=_0x432bec['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0xdd9e40,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xdd9e40,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2cc75f=this['editor'],_0x1a7f95=_0x2cc75f['plugins']['get'](l),_0x553bfa=_0x1a7f95['isReady']?_0x1a7f95['diff']['newRevisionId']:null;_0x2cc75f['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x553bfa);}['refresh'](){const {isReady:_0x5a5b2e,isEnabled:_0x539676,repository:_0x3cd3ee,diff:_0x17ff80}=this['editor']['plugins']['get'](l),_0x92ab91=_0x17ff80&&_0x3cd3ee['getLaterVisibleRevision'](_0x17ff80['newRevisionId']);this['isEnabled']=_0x5a5b2e&&_0x539676&&Boolean(_0x92ab91);}}class rt extends _0x31431b{['_step'];constructor(_0x1ad2bd,{direction:_0x3b5d91}){super(_0x1ad2bd);const _0x306bb7=_0x1ad2bd['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x3b5d91?0x1:-0x1,this['listenTo'](_0x306bb7,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x306bb7,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x306bb7,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x271354=this['editor'],_0x48591d=_0x271354['plugins']['get'](l),{isNavigationMode:_0x21ba44,currentChangeNumber:_0x48d74f}=_0x48591d;let _0x16b509;if(_0x48591d['activeChange']=_0x21ba44?_0x48591d['diff']['changes']['get'](_0x48d74f+this['_step']):_0x48591d['diff']['changes']['first'],_0x48591d['activeChange']['data']['isOnRoot'])_0x16b509=_0x271354['editing']['view']['getDomRoot'](_0x48591d['activeChange']['rootName']);else{const _0x4320cf=_0x271354['model']['markers']['get']('revision:'+_0x48591d['activeChange']['id']);_0x16b509=_0x291ee7(_0x271354['editing'],_0x4320cf);}_0x52ec3f({'target':_0x16b509,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf68630,currentChangeNumber:_0x5c7dfd,numberOfChanges:_0x3e2022,isReady:_0xc277d0,isEnabled:_0x2a3f4e}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x2a3f4e&&_0xc277d0&&_0x3e2022)&&(!_0xf68630||(0x1===this['_step']?_0x5c7dfd<_0x3e2022-0x1:_0x5c7dfd>0x0));}}class Ri extends _0x47987e{constructor(_0x4a0c96){super(_0x4a0c96);const _0x436c96=this['bindTemplate'],_0x409de0=new _0x18e75a(_0x4a0c96),_0x17f3b3=new _0x18e75a(_0x4a0c96);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',(_0x39bbea,_0x57529f)=>_0x39bbea&&_0x57529f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1bf5c3,_0x3c0117,_0xc28eb4,_0x300da8)=>{if(!_0x1bf5c3)return R(_0x4a0c96,'Loading...');if(!_0xc28eb4)return R(_0x4a0c96,'No\x20changes');const _0xcf37f9=R(_0x4a0c96,'NUMBER_OF_CHANGES',_0xc28eb4);return _0x300da8?R(_0x4a0c96,'X_OF_Y_CHANGES',[_0x3c0117+0x1,_0xc28eb4]):_0xcf37f9;}),_0x409de0['set']({'label':R(_0x4a0c96,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5a82ac}),_0x17f3b3['set']({'label':R(_0x4a0c96,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x38eb4d}),_0x409de0['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x17f3b3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x409de0['on']('execute',()=>this['fire']('execute','backward')),_0x17f3b3['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',_0x436c96['if']('_isStatusLabelVisible','ck-hidden',_0x53e4b5=>!_0x53e4b5)]},'children':[{'text':_0x436c96['to']('isNavigationMode',_0x449ba5=>_0x449ba5?R(_0x4a0c96,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x4a0c96,'Total')+':\x20')}]},{'text':_0x436c96['to']('_statusText')}]},new _0x28081e(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x409de0,_0x17f3b3]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x594d24{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5b8bd7=this['editor']['editing']['view'];_0x5b8bd7['change'](_0x130dd0=>{for(const _0x1a1179 of _0x5b8bd7['document']['roots'])_0x130dd0['addClass'](ge,_0x1a1179);});}['hide'](){const _0x582771=this['editor']['editing']['view'];_0x582771['change'](_0x561fd7=>{for(const _0x52baa0 of _0x582771['document']['roots'])_0x561fd7['removeClass'](ge,_0x52baa0);});}}class u extends _0x594d24{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x1f0569=this['editor'],_0x3e1e81=_0x1f0569['plugins']['get'](l),_0x513558=_0x1f0569['plugins']['get'](ji);_0x1f0569['ui']['componentFactory']['add']('exitToEditing',_0x25841a=>{const _0x376e9a=new _0x18e75a(_0x25841a);return _0x376e9a['set']({'label':R(_0x25841a,'Back\x20to\x20editing'),'icon':_0x1995d5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x376e9a,'execute',()=>{_0x1f0569['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x376e9a;}),_0x1f0569['ui']['componentFactory']['add']('restoreRevision',_0x2432fe=>{const _0x4a4ebf=new _0x18e75a(_0x2432fe);return _0x4a4ebf['set']({'label':R(_0x2432fe,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4a4ebf['bind']('isEnabled')['to'](_0x1f0569['commands']['get']('restoreRevision')),this['listenTo'](_0x4a4ebf,'execute',()=>_0x1f0569['execute']('restoreRevision')),_0x4a4ebf;}),_0x1f0569['ui']['componentFactory']['add']('changesNavigation',_0x568cb9=>{const _0x176891=new Ri(_0x568cb9),_0x14933b=_0x1f0569['commands']['get']('showPreviousChange'),_0x5adf40=_0x1f0569['commands']['get']('showNextChange');return _0x176891['bind']('isBackwardNavigationEnabled')['to'](_0x14933b,'isEnabled'),_0x176891['bind']('isForwardNavigationEnabled')['to'](_0x5adf40,'isEnabled'),_0x176891['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3e1e81),this['listenTo'](_0x176891,'execute',(_0x399ea6,_0x1482cb)=>{_0x1f0569['execute']('forward'===_0x1482cb?'showNextChange':'showPreviousChange');}),_0x176891;}),_0x513558['show'](),_0x3e1e81['on']('change:isReady',(_0x4a8ce8,_0x34e017,_0x3025fa)=>{_0x3025fa?_0x513558['hide']():_0x513558['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x326aef,_0x152a06){super(_0x326aef,_0x152a06);const _0x531364=this['bindTemplate'];this['set']({'label':R(_0x326aef,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x326aef,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x531364['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new ot(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x59aa65=this['fieldView']['element'];this['_tooltipString']=_0x59aa65['scrollWidth']>_0x59aa65['clientWidth']&&_0x59aa65['value']||'';}}class ni extends _0x47987e{constructor(_0x13e74e,_0x49f5b7,_0x348f37){super(_0x13e74e);const _0x3d69b9=new _0x26b0bd();_0x3d69b9['set']({'content':_0x14b518,'viewBox':'0\x200\x2011\x2010'});const _0x1d5ce5=['ck','ck-revision-history-sidebar__revision-author'];_0x348f37&&_0x1d5ce5['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4d9bbe=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13e74e,_0x348f37?'Revision\x20creator':'Revision\x20author')},'children':[_0x3d69b9,_0x49f5b7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1d5ce5},'children':_0x4d9bbe});}}function ci(_0xaa8643,_0x55dfb8){const _0x54ccf=_0xaa8643['bindTemplate'],_0x2518cc=_0xaa8643['locale'],_0xee9198=_0x514a35(_0x2518cc);_0xee9198['panelPosition']='sw';const _0x361162=function(_0x13f312,_0x1f5de4){const _0xb96a5c=function(_0x160757,_0x523227){const _0x4b4571=_0x160757['locale'],_0x56a557={'Compare\x20against\x20selected':R(_0x4b4571,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4b4571,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4b4571,'Restore\x20this\x20revision')};return _0x523227['map'](_0x5e1974=>{const _0xd3e5a8=_0x56a557[_0x5e1974['name']];return _0xd3e5a8&&_0xd3e5a8!==_0x5e1974['name']&&(_0x5e1974['name']=_0xd3e5a8),_0x5e1974;});}(_0x13f312,_0x1f5de4),_0x213265=new _0x2d4b38();for(const _0xf662e8 of _0xb96a5c){const _0x4abcb1={'type':'button','model':new to({'label':_0xf662e8['name'],'class':_0xf662e8['class'],'withText':!0x0,'role':'menuitem','_action':_0xf662e8['action']})};_0x4abcb1['model']['bind']('isEnabled')['to'](_0x13f312,'isActionsDropdownOpen',_0x382e9c=>'function'!=typeof _0xf662e8['isEnabled']||(!_0x382e9c||_0xf662e8['isEnabled'](_0x13f312))),_0x213265['add'](_0x4abcb1);}return _0x213265;}(_0xaa8643,_0x55dfb8);return _0xaa8643['bind']('isActionsDropdownOpen')['to'](_0xee9198,'isOpen'),_0xee9198['buttonView']['set']({'label':R(_0x2518cc,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xf8bf85}),_0xee9198['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x54ccf['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x54ccf['to'](_0x17c53a=>_0x17c53a['stopPropagation']())}}),_0xee9198['on']('execute',_0x337906=>{_0xaa8643['isReady']&&'function'==typeof _0x337906['source']['_action']&&_0x337906['source']['_action'](_0xaa8643);}),_0x1e3dad(_0xee9198,_0x361162,{'role':'menu'}),_0xee9198['listenTo'](_0xaa8643,'change:isActionsDropdownOpen',(_0x4b0aee,_0x1d0571,_0xe816fa)=>{if(_0xe816fa)for(const _0x3e9f51 of _0xee9198['listView']['items']){const _0x2c4398=_0x3e9f51['children']['first'],_0x18fb70=_0x55dfb8['find'](_0x5796a2=>_0x5796a2['action']===_0x2c4398['_action'])['isVisible'];_0x3e9f51['isVisible']=void 0x0===_0x18fb70||_0x18fb70(_0xaa8643);}}),_0xee9198;}class _i extends/* #__PURE__ -- @preserve */
27
- _0x424bb4(_0x47987e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2ad032,_0x17c4c3,_0x2b9317,_0x49eace){super(_0x2ad032);const _0x2ebac3=this['bindTemplate'],_0x919000=function(_0x172fe1,_0x1d6462){const _0x7e7e3f=Array['from'](_0x1d6462['authors'])['filter'](_0x2e9da6=>_0x2e9da6!=_0x1d6462['creator']);return _0x1d6462['creator']&&_0x7e7e3f['unshift'](_0x1d6462['creator']),_0x7e7e3f['map'](_0x343230=>new ni(_0x172fe1,_0x343230,_0x343230==_0x1d6462['creator']));}(_0x2ad032,_0x17c4c3);this['id']=_0x17c4c3['id'],this['_revision']=_0x17c4c3,this['_requireRevisionName']=_0x49eace,this['bind']('name','createdAt')['to'](_0x17c4c3),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x36393b=>{return _0x54060a=_0x2ad032['uiLanguage'],(_0x1757cd=_0x36393b)['toLocaleDateString'](_0x54060a,{'month':'long','day':'numeric'})+',\x20'+_0x1757cd['toLocaleTimeString'](_0x54060a,{'hour':'numeric','minute':'numeric'});var _0x54060a,_0x1757cd;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x2ad032,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2842c1=>_0x2842c1||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x511115,_0x323d5e)=>_0x511115&&_0x323d5e),this['revisionActionsView']=_0x2b9317&&_0x2b9317['length']?ci(this,_0x2b9317):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x2ebac3['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x2ebac3['if']('isEnabled','ck-disabled',_0x3c08d2=>!_0x3c08d2),_0x2ebac3['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x2ebac3['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x2ebac3['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':_0x2ebac3['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':_0x919000}]},this['revisionActionsView']],'on':{'click':_0x2ebac3['to'](_0x548d38=>{_0x548d38['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x11bfe3=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x11bfe3,'change',()=>{this['_requireRevisionName']&&!_0x11bfe3['value']||this['fire']('setName',{'id':this['id'],'name':_0x11bfe3['value']}),_0x11bfe3['value']||(_0x11bfe3['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function li(_0x5569fe,_0x45f3ae){const _0x3a0777=_0x26b2ca['fromJSDate'](_0x5569fe)['setLocale'](_0x45f3ae),_0x479e43=_0x26b2ca['local'](),_0x11d2cf=_0x479e43['minus']({'days':0x1})['startOf']('day');let _0x3e2edb,_0x3e2871;return _0x3a0777['hasSame'](_0x479e43,'day')?(_0x3e2edb=_0x3a0777['startOf']('day')['toJSDate'](),_0x3e2871=_0x3a0777['toRelativeCalendar']()):_0x3a0777['hasSame'](_0x11d2cf,'day')?(_0x3e2edb=_0x11d2cf['toJSDate'](),_0x3e2871=_0x3a0777['toRelativeCalendar']()):_0x3a0777['hasSame'](_0x479e43,'week')?(_0x3e2edb=_0x3a0777['startOf']('week')['toJSDate'](),_0x3e2871=_0x3a0777['weekdayLong']||''):_0x3a0777['hasSame'](_0x479e43,'year')?(_0x3e2edb=_0x3a0777['startOf']('month')['toJSDate'](),_0x3e2871=_0x3a0777['monthLong']||''):(_0x3e2edb=_0x3a0777['startOf']('year')['toJSDate'](),_0x3e2871=String(_0x3a0777['year'])),{'startDate':_0x3e2edb,'localizedPeriodName':_0x3e2871};}class bi extends _0x47987e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x559a29,_0x514ac8,_0x29c09e,_0x33dcb2){super(_0x559a29);const _0x1c89a6=li(_0x514ac8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x514ac8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x29c09e,this['_requireRevisionName']=_0x33dcb2,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':_0x1c89a6}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2eec72){const _0x25e917=new _i(this['locale'],_0x2eec72,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x25e917);}['removeRevision'](_0xc46781){const _0x361011=this['revisionViews']['find'](_0x25d17f=>_0x25d17f['id']===_0xc46781['id']);this['revisionViews']['remove'](_0x361011);}}class fi extends _0x47987e{constructor(_0x1f797e){super(_0x1f797e);const _0x17da9f=new _0x26b0bd();_0x17da9f['content']=_0x1c60bc,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x17da9f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x1f797e,'Revision\x20history')]}]});}}class di extends _0x47987e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x452d4a,_0x3b5197,_0x2f7c26,_0x57a91d){super(_0x452d4a);const _0x262799=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x3b5197,this['_revisionActions']=_0x2f7c26,this['_requireRevisionName']=_0x57a91d,this['on']('select',(_0xa57b5b,_0x5c1014)=>{this['fire']('revisionSelected',_0x5c1014);}),this['on']('setName',(_0x273b5b,_0x5e2d1c)=>{this['fire']('revisionSetName',_0x5e2d1c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new fi(_0x452d4a),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x262799['if']('isEnabled','ck-disabled',_0x3f613a=>!_0x3f613a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x57b77c of this['_revisions'])this['_addRevision'](_0x57b77c);this['_revisions']['on']('add',(_0x361ca4,_0x4f4ded)=>{this['_addRevision'](_0x4f4ded);}),this['_revisions']['on']('remove',(_0x3234c5,_0x18689a)=>{this['_removeRevision'](_0x18689a);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x53ba28=>_0x53ba28['revisionViews']['map'](_0x8e0970=>_0x8e0970))['flat']();}['selectRevision'](_0x52fc65){for(const _0x1d0f37 of this['revisionViews'])_0x52fc65&&_0x52fc65['id']===_0x1d0f37['id']?_0x1d0f37['select']():_0x1d0f37['deselect']();}['highlightRevisions'](_0x3d2d43){for(const _0x266ac4 of this['revisionViews'])_0x3d2d43['some'](({id:_0x453b42})=>_0x453b42===_0x266ac4['id'])?_0x266ac4['highlight']():_0x266ac4['unhighlight']();}['_addRevision'](_0x32b499){const _0xc09457=li(_0x32b499['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x42c99c=this['timePeriodViews']['get'](0x0);_0x42c99c&&_0x42c99c['startDate']['getTime']()===_0xc09457['getTime']()||(_0x42c99c=new bi(this['locale'],_0xc09457,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x42c99c)),_0x42c99c['addRevision'](_0x32b499);}['_removeRevision'](_0xc215d6){const _0x35ee6b=li(_0xc215d6['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x35ee6b)['removeRevision'](_0xc215d6);}['_getTimePeriodViewByStartDate'](_0x1f934b){return this['timePeriodViews']['find'](_0xb83d40=>_0xb83d40['startDate']['getTime']()===_0x1f934b['getTime']());}}class f extends _0x594d24{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x235c38,uid as _0x1a737e,Collection as _0x1d5790,logWarning as _0x198b8e,FocusTracker as _0x49e298,KeystrokeHandler as _0x423e40,scrollViewportToShowTarget as _0x2be881,ResizeObserver as et,ElementReplacer as it,CKEditorError as _0x5ea239}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x2b75d6,set as _0x535535,unset as _0x5acadb,isEqual as _0x28128b}from'es-toolkit/compat';import{Plugin as _0x858dc7,PendingActions as _0x3530c7,Command as _0x53e976,ElementApiMixin as _0x3d53cc,Editor as _0x130cd1}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x267b04,getMarkerDomElement as _0x5d23d5,ConfirmMixin as _0xa4ce91,sanitizeEditorConfig as _0x74082c}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x414402,ViewAttributeElement as _0x3473b1,ViewEmptyElement as _0x13c3fa,ViewRawElement as _0x5f3d85,ViewUIElement as _0x2b5473,ViewDocumentFragment as _0x26445f,ViewText as _0x140a00,ViewElement as _0x5be4ed,ModelElement as _0x3061f3,ModelRange as _0x1c348a,ModelPosition as _0x3da34e,ModelDocumentFragment as _0x3a58c7,ModelText as _0x54876f}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0xd5d852,IconChevronUp as _0x124557,IconChevronDown as _0x2f8724,IconUndo as _0x49b94e,IconUser as _0x45ead2,IconThreeVerticalDots as _0x36531b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x2d60e1,View as _0x4d7898,submitHandler as _0x31915b,LabeledFieldView as ti,createLabeledInputText as _0x387a81,createDropdown as _0x2842e0,ListView as _0x429da2,ListItemView as _0x44d3c5,ButtonView as _0x1b0a61,MenuBarMenuView as _0x2dadf2,MenuBarMenuListView as _0x3e73a4,MenuBarMenuListItemView as _0x2266b9,MenuBarMenuListItemButtonView as _0x1ca924,ContextualBalloon as _0x55b3a5,ToolbarSeparatorView as _0x5bb667,IconView as _0x13fce5,addListToDropdown as _0x2b214d,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x3df364,StickyPanelView as _0x527c78,ToolbarView as _0x1972cd,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x4e69e7}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x235c38(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x21ff7b){super(),this['id']=_0x21ff7b['id']||_0x1a737e(),this['creator']=_0x21ff7b['creator']||null,this['authors']=_0x21ff7b['authors']||[],this['diffData']=_0x21ff7b['diffData']||null,this['toVersion']=_0x21ff7b['toVersion']||0x0,this['fromVersion']=_0x21ff7b['fromVersion']||0x0,this['set']('name',_0x21ff7b['name']||''),this['set']('createdAt',_0x21ff7b['createdAt']||new Date()),this['set']('attributes',_0x21ff7b['attributes']||{});}['setName'](_0x29cb35){this['_update']({'name':_0x29cb35});}['setAttribute'](_0xe778ee,_0xff89a1){const _0x157afc=_0x2b75d6(this['attributes']);_0x535535(_0x157afc,_0xe778ee,_0xff89a1),this['_update']({'attributes':_0x157afc});}['removeAttribute'](_0x66099d){const _0x56c204=_0x2b75d6(this['attributes']);_0x5acadb(_0x56c204,_0x66099d),this['_update']({'attributes':_0x56c204});}['_update'](_0x3d46f9,_0x595d97=!0x1){let _0x733e9f=!0x1;const _0x3a293a={'id':this['id']},_0x4e3c2c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x7209f9 of _0x4e3c2c){const _0x102289=_0x3d46f9[_0x7209f9];void 0x0!==_0x102289&&_0x102289!==this[_0x7209f9]&&(this[_0x7209f9]=_0x102289,_0x3a293a[_0x7209f9]=_0x102289,_0x733e9f=!0x0);}_0x733e9f&&(_0x3a293a['authors']&&(_0x3a293a['authorsIds']=_0x3a293a['authors']['map'](_0x58ff4d=>_0x58ff4d['id']),delete _0x3a293a['authors']),this['fire']('_update',_0x3a293a,_0x595d97));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x53e04b=>_0x53e04b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x858dc7{['_revisions'];static get['requires'](){return[_0x267b04];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x1c924c){super(_0x1c924c),this['_revisions']=new _0x1d5790();}['afterInit'](){!async function(_0x59eb22){const _0xeae7e1=_0x341d79([0x77,0x59,0x49,0x31,0x4f,0x76,0x30,0x64,0x44,0x63,0x79,0x7a,0x35,0x75,0x78,0x47,0x67,0x72,0x6f,0x38,0x54,0x32,0x6e,0x56,0x69,0x62,0x53,0x6b,0x39,0x61,0x73,0x66,0x46,0x33,0x58,0x74,0x50,0x4e,0x70,0x41,0x4b,0x45,0x4a,0x57,0x55,0x34,0x65,0x48,0x4d,0x52,0x6c,0x4c,0x43,0x68,0x51,0x6d,0x42,0x5a,0x6a,0x36,0x37,0x71]),_0x541196=0xeb829,_0x29f5ef=0x17ac1d91,_0x1ad27c=0x17ab7109^_0x29f5ef,_0x2bc370=window[_0x341d79([0x44,0x61,0x74,0x65])][_0x341d79([0x6e,0x6f,0x77])](),_0x46dad6=_0x59eb22[_0x341d79([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5bc737=new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d9ecf=>{_0x46dad6[_0x341d79([0x6f,0x6e,0x63,0x65])](_0x341d79([0x72,0x65,0x61,0x64,0x79]),_0x1d9ecf);}),_0x5357a7={[_0x341d79([0x6b,0x74,0x79])]:_0x341d79([0x45,0x43]),[_0x341d79([0x75,0x73,0x65])]:_0x341d79([0x73,0x69,0x67]),[_0x341d79([0x63,0x72,0x76])]:_0x341d79([0x50,0x2d,0x32,0x35,0x36]),[_0x341d79([0x78])]:_0x341d79([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]),[_0x341d79([0x79])]:_0x341d79([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]),[_0x341d79([0x61,0x6c,0x67])]:_0x341d79([0x45,0x53,0x32,0x35,0x36])},_0x5d41b8=_0x46dad6[_0x341d79([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x341d79([0x67,0x65,0x74])](_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a38e2(){let _0x5a9896,_0x511a64=null,_0x3fd4e5=null;try{if(_0x5d41b8==_0x341d79([0x47,0x50,0x4c]))return _0x341d79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a9896=_0x44f768(),!_0x5a9896)return _0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a9896[_0x341d79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3fd4e5=_0x2ef1f7(_0x5a9896[_0x341d79([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a9896[_0x341d79([0x6a,0x74,0x69])])),await _0x3920c5()?_0x4ece00()?_0x3b82a8()?_0x341d79([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x260b97()?(_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341d79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x511a64=_0x5c5596(_0x341d79([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x341d79([0x74,0x72,0x69,0x61,0x6c])&&(_0x511a64=_0x5c5596(_0x341d79([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x52ca06()):_0x341d79([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x341d79([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x341d79([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3b82a8(){const _0x1f49bf=[_0x341d79([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x341d79([0x74,0x72,0x69,0x61,0x6c])][_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2bc370/0x3e8:0xe10*_0x1ad27c;return _0x5a9896[_0x341d79([0x65,0x78,0x70])]<_0x1f49bf;}function _0x4ece00(){const _0x13d2ce=_0x5a9896[_0x341d79([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x13d2ce)return!0x1;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x2a])))return!0x0;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x52,0x48])))return!0x0;if(_0x13d2ce[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x52,0x52,0x48]))){if(_0x33d63e())return!0x0;if(_0x5acd5c()||_0x3a35eb())return!0x0;}return!0x1;}function _0x260b97(){const _0x135c2a=_0x5a9896[_0x341d79([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x135c2a||0x0==_0x135c2a[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1e327c}=new URL(window[_0x341d79([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x135c2a[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e327c))return!0x0;const _0x3fa9b2=_0x1e327c[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e]));return _0x135c2a[_0x341d79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53fc1b=>_0x53fc1b[_0x341d79([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341d79([0x2a])))[_0x341d79([0x6d,0x61,0x70])](_0x227ffc=>_0x227ffc[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e])))[_0x341d79([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x30fd69=>_0x30fd69[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3fa9b2[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341d79([0x6d,0x61,0x70])](_0x58cdec=>Array(_0x3fa9b2[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x58cdec[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x341d79([0x66,0x69,0x6c,0x6c])](_0x58cdec[0x0]===_0x341d79([0x2a])?_0x341d79([0x2a]):'')[_0x341d79([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x58cdec))[_0x341d79([0x73,0x6f,0x6d,0x65])](_0xeeac24=>_0x3fa9b2[_0x341d79([0x65,0x76,0x65,0x72,0x79])]((_0x494849,_0x594704)=>_0xeeac24[_0x594704]===_0x494849||_0xeeac24[_0x594704]===_0x341d79([0x2a])));}function _0x52ca06(){return _0x511a64&&_0x3fd4e5?new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x282400,_0x5ba1d9)=>{_0x511a64[_0x341d79([0x74,0x68,0x65,0x6e])](_0x282400,_0x5ba1d9),_0x3fd4e5[_0x341d79([0x74,0x68,0x65,0x6e])](_0x10722b=>{_0x10722b!=_0x341d79([0x56,0x61,0x6c,0x69,0x64])&&_0x282400(_0x10722b);},_0x5ba1d9);}):_0x511a64||_0x3fd4e5||_0x341d79([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2ef1f7(_0x50eb84,_0x3749bb){return new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4befbe=>{if(_0x584089())return _0x4befbe(_0x341d79([0x56,0x61,0x6c,0x69,0x64]));_0x36a1ee(),_0x46dad6[_0x341d79([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4499a2=!0x1;const _0x402950=_0x1a737e();function _0xd06e12(_0x82d928){return!!_0x82d928&&(typeof _0x82d928===_0x341d79([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x82d928===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x82d928[_0x341d79([0x74,0x68,0x65,0x6e])]===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x82d928[_0x341d79([0x63,0x61,0x74,0x63,0x68])]===_0x341d79([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4e48e2(_0x18ed7c){_0x73fc8a(_0x18ed7c)[_0x341d79([0x74,0x68,0x65,0x6e])](_0x17db14=>{if(!_0x17db14||_0x17db14[_0x341d79([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x341d79([0x6f,0x6b]))return _0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x244a66(_0x3808a3(_0x402950+_0x3749bb))!=_0x17db14[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x341d79([0x56,0x61,0x6c,0x69,0x64]);})[_0x341d79([0x74,0x68,0x65,0x6e])](_0xa9ff00=>(_0x48f461(),_0xa9ff00),()=>{const _0x5b833e=_0xed9653();return null==_0x5b833e?(_0x48f461(),_0x341d79([0x56,0x61,0x6c,0x69,0x64])):_0x341d79(_0x2bc370-_0x5b833e>(0x33a09991^_0x29f5ef)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x341d79([0x74,0x68,0x65,0x6e])](_0x4befbe)[_0x341d79([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x39f30e=0x179af311^_0x29f5ef;function _0x48f461(){const _0x2fa6bb=_0x341d79([0x6c,0x6c,0x63,0x74,0x2d])+_0x244a66(_0x3808a3(_0x50eb84)),_0xfa6c9=_0x122909(_0x244a66(window[_0x341d79([0x4d,0x61,0x74,0x68])][_0x341d79([0x63,0x65,0x69,0x6c])](_0x2bc370/_0x39f30e)));window[_0x341d79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341d79([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fa6bb,_0xfa6c9);}function _0xed9653(){const _0x4e7c74=_0x341d79([0x6c,0x6c,0x63,0x74,0x2d])+_0x244a66(_0x3808a3(_0x50eb84)),_0x5ef687=window[_0x341d79([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x341d79([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e7c74);return _0x5ef687?window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x122909(_0x5ef687),0x10)*_0x39f30e:null;}function _0x73fc8a(_0x3d9958){return new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2aedb2,_0x2efe7d)=>{_0x3d9958[_0x341d79([0x74,0x68,0x65,0x6e])](_0x2aedb2,_0x2efe7d),window[_0x341d79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2efe7d,0x17adc951^_0x29f5ef);});}}_0x46dad6[_0x341d79([0x6f,0x6e])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x20a323,_0x321677)=>{if(_0x321677[0x0]!=_0x50eb84)return _0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x321677[0x1]={..._0x321677[0x1],[_0x341d79([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x402950};},{[_0x341d79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341d79([0x68,0x69,0x67,0x68])}),_0x46dad6[_0x341d79([0x6f,0x6e])](_0x341d79([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13667e=>{_0xd06e12(_0x13667e[_0x341d79([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4499a2=!0x0,_0x4e48e2(_0x13667e[_0x341d79([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x341d79([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x341d79([0x6c,0x6f,0x77])}),_0x5bc737[_0x341d79([0x74,0x68,0x65,0x6e])](()=>{_0x4499a2||_0x4befbe(_0x341d79([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x584089(){return _0x46dad6[_0x341d79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341d79([0x76,0x69,0x65,0x77])][_0x341d79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x341d79([0x61,0x75,0x74,0x6f]);}function _0x36a1ee(){_0x46dad6[_0x341d79([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x341d79([0x76,0x69,0x65,0x77])][_0x341d79([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x341d79([0x61,0x75,0x74,0x6f]);}}function _0x5c5596(_0x5aa3f5){const _0x3754c4=[new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322235=>setTimeout(_0x322235,0x17a5235d^_0x29f5ef)),_0x5bc737[_0x341d79([0x74,0x68,0x65,0x6e])](()=>new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2792ed=>{const _0x16c3b1=0x17ac1d96^_0x29f5ef,_0x788e3b=_0x59eb22[_0x341d79([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x13d8fd(){_0x788e3b[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x16c3b1&&_0x2792ed();}_0x13d8fd(),_0x788e3b[_0x341d79([0x6f,0x6e])](_0x341d79([0x61,0x64,0x64]),_0x13d8fd);})),new window[(_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x58eac9=>{function _0x151549(){for(const _0x969732 in window)if(window[_0x341d79([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x341d79([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x969732))&&window[_0x969732]==_0x541196)return _0x58eac9();_0x46dad6[_0x341d79([0x73,0x74,0x61,0x74,0x65])]!=_0x341d79([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x341d79([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x151549,0x17ac0e19^_0x29f5ef);}_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x151549();})];return window[_0x341d79([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x341d79([0x72,0x61,0x63,0x65])](_0x3754c4)[_0x341d79([0x74,0x68,0x65,0x6e])](()=>_0x5aa3f5);}async function _0x344b77(){if(await _0x5bc737,_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1597c2=_0x59eb22[_0x341d79([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3ba3cf=_0x59eb22[_0x341d79([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])](_0x1597c2[_0x341d79([0x69,0x64])]),_0x4432fc=_0x5198b4(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x4432fc[_0x341d79([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1597c2['id'],_0x3ba3cf?_0x3ba3cf['id']:null,!0x0),_0x4432fc[_0x341d79([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4432fc[_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4432fc[_0x341d79([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c694d,void(_0x4432fc[_0x341d79([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c694d);}if(_0x5b3c99(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x16c8c8=_0x5198b4(_0x341d79([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x16c8c8[_0x341d79([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x16c8c8[_0x341d79([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x16c8c8[_0x341d79([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c694d,_0x16c8c8[_0x341d79([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c694d;}_0x46dad6[_0x341d79([0x6d,0x6f,0x64,0x65,0x6c])][_0x341d79([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c694d,_0x46dad6[_0x341d79([0x6d,0x6f,0x64,0x65,0x6c])][_0x341d79([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c694d,_0x46dad6[_0x341d79([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x341d79([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x33d63e(){return _0x5b3c99(_0x341d79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5198b4(_0x341d79([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x341d79([0x73,0x74,0x61,0x74,0x65])]==_0x341d79([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x5acd5c(){return _0x5b3c99(_0x341d79([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 _0x3a35eb(){return _0x5b3c99(_0x341d79([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xfc57d8(_0x32a115){const _0x52599b=_0x4db93b();_0x46dad6[_0x52599b]=_0x341d79([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])+_0x32a115,_0x32a115[_0x341d79([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x341d79([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4db93b()]=_0x541196),_0x32a115!=_0x341d79([0x56,0x61,0x6c,0x69,0x64])&&_0x344b77();}function _0x4db93b(){const _0x1d9e2c=window[_0x341d79([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x341d79([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x341d79([0x6e,0x6f,0x77])]())[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x341d79([0x2e]),'');let _0x3162f5=_0x341d79([0x77]);for(let _0x3386cd=0x0;_0x3386cd<_0x1d9e2c[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3386cd+=0x2){let _0x583231=window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d9e2c[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3386cd,_0x3386cd+0x2));_0x583231>=_0xeae7e1[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x583231-=_0xeae7e1[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3162f5+=_0xeae7e1[_0x583231];}return _0x3162f5;}function _0x44f768(){const _0x466a2d=_0x5d41b8[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e]));if(0x3!=_0x466a2d[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49dc02(_0x466a2d[0x1]);function _0x49dc02(_0x3827bb){const _0x1c8492=_0x4ecacc(_0x3827bb);return _0x1c8492&&_0x33bca5()?_0x1c8492:null;function _0x33bca5(){const _0x171430=_0x1c8492[_0x341d79([0x6a,0x74,0x69])],_0x1ae583=window[_0x341d79([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x171430[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x171430[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2ab758={..._0x1c8492,[_0x341d79([0x6a,0x74,0x69])]:_0x171430[_0x341d79([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x171430[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2ab758[_0x341d79([0x76,0x63])],_0x3808a3(_0x2ab758)==_0x1ae583;}}}async function _0x3920c5(){let _0xc818e8=!0x0;try{const _0x49c236=_0x5d41b8[_0x341d79([0x73,0x70,0x6c,0x69,0x74])](_0x341d79([0x2e])),[_0x891145,_0x139611,_0x191483]=_0x49c236;return _0x345d2d(_0x891145),await _0x5a6ec0(_0x891145,_0x139611,_0x191483),_0xc818e8;}catch{return!0x1;}function _0x345d2d(_0x5e4e0c){const _0x2761c9=_0x4ecacc(_0x5e4e0c);_0x2761c9&&_0x2761c9[_0x341d79([0x61,0x6c,0x67])]==_0x341d79([0x45,0x53,0x32,0x35,0x36])||(_0xc818e8=!0x1);}async function _0x5a6ec0(_0x32b597,_0x5a836d,_0x67561c){const _0x411877=window[_0x341d79([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x341d79([0x66,0x72,0x6f,0x6d])](_0x19d21d(_0x67561c),_0x3e2cdb=>_0x3e2cdb[_0x341d79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4eed8a=new window[(_0x341d79([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x341d79([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x32b597+_0x341d79([0x2e])+_0x5a836d),_0x32544d=window[_0x341d79([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x341d79([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x32544d)return;const _0x54e373=await _0x32544d[_0x341d79([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x341d79([0x6a,0x77,0x6b]),_0x5357a7,{[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x45,0x43,0x44,0x53,0x41]),[_0x341d79([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x341d79([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x32544d[_0x341d79([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x45,0x43,0x44,0x53,0x41]),[_0x341d79([0x68,0x61,0x73,0x68])]:{[_0x341d79([0x6e,0x61,0x6d,0x65])]:_0x341d79([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x54e373,_0x411877,_0x4eed8a)||(_0xc818e8=!0x1);}}function _0x4ecacc(_0x5798c8){return _0x5798c8[_0x341d79([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x341d79([0x65,0x79]))?JSON[_0x341d79([0x70,0x61,0x72,0x73,0x65])](_0x19d21d(_0x5798c8)):null;}function _0x19d21d(_0x59670b){return window[_0x341d79([0x61,0x74,0x6f,0x62])](_0x59670b[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x341d79([0x2b]))[_0x341d79([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x341d79([0x2f])));}function _0x3808a3(_0x22bc46){let _0x16796f=0x1505;function _0x429385(_0x32b86c){for(let _0x511848=0x0;_0x511848<_0x32b86c[_0x341d79([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x511848++){const _0x25a1e1=_0x32b86c[_0x341d79([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x511848);_0x16796f=(_0x16796f<<0x5)+_0x16796f+_0x25a1e1,_0x16796f&=_0x16796f;}}function _0x50a746(_0x197ec2){Array[_0x341d79([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x197ec2)?_0x197ec2[_0x341d79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x50a746):_0x197ec2&&typeof _0x197ec2==_0x341d79([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x341d79([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x197ec2)[_0x341d79([0x73,0x6f,0x72,0x74])]()[_0x341d79([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x275c40,_0x53808c])=>{_0x429385(_0x275c40),_0x50a746(_0x53808c);}):_0x429385(window[_0x341d79([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x197ec2));}return _0x50a746(_0x22bc46),_0x16796f>>>0x0;}function _0x244a66(_0x51087c){return _0x51087c[_0x341d79([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x341d79([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x341d79([0x30]));}function _0x122909(_0x296dcd){return _0x296dcd[_0x341d79([0x73,0x70,0x6c,0x69,0x74])]('')[_0x341d79([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x341d79([0x6a,0x6f,0x69,0x6e])]('');}function _0x5b3c99(_0x489f0c){return _0x46dad6[_0x341d79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x341d79([0x68,0x61,0x73])](_0x489f0c);}function _0x5198b4(_0x13ab0d){return _0x46dad6[_0x341d79([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x341d79([0x67,0x65,0x74])](_0x13ab0d);}function _0x3c694d(){}function _0x341d79(_0x277028){return _0x277028['map'](_0xc9b955=>String['fromCharCode'](_0xc9b955))['join']('');}_0xfc57d8(await _0x4a38e2());}(this);}['createRevision'](_0x1b8659){const _0x1d1b95=this['editor']['plugins']['get']('Users');return new I({'id':_0x1b8659['id'],'name':_0x1b8659['name'],'creator':_0x1b8659['creatorId']?_0x1d1b95['getUser'](_0x1b8659['creatorId']):null,'diffData':_0x1b8659['diffData']||_0x1b8659['data'],'authors':_0x1b8659['authorsIds']['map'](_0x1af0e1=>_0x1d1b95['getUser'](_0x1af0e1)),'createdAt':new Date(_0x1b8659['createdAt']),'attributes':_0x1b8659['attributes'],'fromVersion':_0x1b8659['fromVersion'],'toVersion':_0x1b8659['toVersion']});}['addRevision'](_0x1ab0c5,_0x32bff0=0x0){this['_revisions']['add'](_0x1ab0c5,_0x32bff0);}['getRevision'](_0x32abf5){return this['_revisions']['get'](_0x32abf5);}['getRevisions'](_0x3625d0={'toJSON':!0x1}){const _0x31d2c9=Array['from'](this['_revisions']);return _0x31d2c9['reverse'](),_0x3625d0['toJSON']?_0x31d2c9['map'](_0x5f4c13=>_0x5f4c13['toJSON']()):_0x31d2c9;}['getIndex'](_0x5ca825){return this['_revisions']['getIndex'](_0x5ca825);}['getEarlierVisibleRevision'](_0x11d82a){const [,_0x4aabeb]=this['getRevisionsIterator'](_0x11d82a,{'direction':'earlier'});return _0x4aabeb;}['getLaterVisibleRevision'](_0x106c81){const [,_0x592771]=this['getRevisionsIterator'](_0x106c81,{'direction':'later'});return _0x592771;}['getRevisionsInDiff'](_0x3b2c81){const _0x43b1d4=[];for(const _0x448bc7 of this['getRevisionsIterator'](_0x3b2c81['newRevisionId']))if(_0x43b1d4['push'](_0x448bc7),_0x448bc7['id']===_0x3b2c81['oldRevisionId'])break;return _0x43b1d4;}*['getRevisionsIterator'](_0xbf369e,{direction:_0x4ee8d7='earlier',filter:_0x22a6ea=()=>!0x0}={}){const _0x3e4991='earlier'===_0x4ee8d7?0x1:-0x1;let _0xb53081=this['_revisions']['get'](_0xbf369e),_0x25d33f=this['getIndex'](_0xb53081);for(yield _0xb53081;_0xb53081;){if(_0x25d33f+=_0x3e4991,_0xb53081=this['getRevision'](_0x25d33f),!_0xb53081)return;_0x22a6ea(_0xb53081)&&(yield _0xb53081);}}}class $ extends _0x858dc7{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x414402,'c'],[_0x3473b1,'a'],[_0x13c3fa,'e'],[_0x5f3d85,'r'],[_0x2b5473,'u']]);['_typeCharToViewClass']=new Map([['c',_0x414402],['a',_0x3473b1],['e',_0x13c3fa],['r',_0x5f3d85],['u',_0x2b5473]]);async['loadRevisionData'](_0x186f9f,_0x5da053){if(_0x186f9f['diffData']||!_0x5da053)return;const _0x2f9dfc=this['editor']['config']['get']('collaboration.channelId'),_0x3cb54d=await _0x5da053['getRevision']({'channelId':_0x2f9dfc,'revisionId':_0x186f9f['id']});_0x186f9f['diffData']=_0x3cb54d['diffData'];}['getRevisionDocumentData'](_0x2fa1d9){const _0x1c82a9={};for(const _0x454e2f in _0x2fa1d9['diffData']){if(_0x2fa1d9['diffData'][_0x454e2f]['attachChange']&&!_0x2fa1d9['diffData'][_0x454e2f]['attachChange']['isAttached'])continue;const _0x331ea7=this['_removeRevisionMarkers'](JSON['parse'](_0x2fa1d9['diffData'][_0x454e2f]['insertions'])),_0x14a071=this['editor']['editing']['view']['document'],_0x4229af=new _0x26445f(_0x14a071,_0x331ea7['map'](_0x3a4299=>this['_getViewFromDiffObj'](_0x3a4299,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x1c82a9[_0x454e2f]=this['editor']['data']['processor']['toData'](_0x4229af),this['editor']['data']['processor']['useFillerType']('default');}return _0x1c82a9;}['getRevisionRootsAttributes'](_0x89d54c){const _0x2de059={};for(const _0x3cfd75 in _0x89d54c['diffData'])_0x89d54c['diffData'][_0x3cfd75]['attachChange']&&!_0x89d54c['diffData'][_0x3cfd75]['attachChange']['isAttached']||(_0x2de059[_0x3cfd75]=_0x89d54c['diffData'][_0x3cfd75]['attributesAfter']||{});return _0x2de059;}['_getTypeCharForViewElement'](_0x61bfb6){return this['_viewClassToTypeChar']['get'](_0x61bfb6['constructor']);}['_getViewFromDiffObj'](_0x2bbcc4,_0x42e88b){const _0x7d4353=this['editor']['editing']['view']['document'];if('string'==typeof _0x2bbcc4)return new _0x140a00(_0x7d4353,_0x2bbcc4);{let _0x45a6a,_0x20c2fd;_0x20c2fd='u'==_0x2bbcc4['type']||'r'==_0x2bbcc4['type']?[]:_0x2bbcc4['children']['map'](_0x4df111=>this['_getViewFromDiffObj'](_0x4df111,_0x42e88b));const _0x4c68c0=this['_typeCharToViewClass']['get'](_0x2bbcc4['type'])||_0x5be4ed,_0xe86d9e=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x45a6a=new _0x4c68c0(_0x7d4353,_0x2bbcc4['name'],_0x2bbcc4['attributes'],_0x20c2fd),'u'==_0x2bbcc4['type']&&_0x2bbcc4['children'][0x0]){const _0x3846df=_0x2bbcc4['children'][0x0];if(_0x45a6a['render']=function(_0x287ba0){const _0x2014aa=_0x287ba0['createElement']('div');return _0x2014aa['innerHTML']=_0x3846df,_0x2014aa['childNodes'][0x0];},_0x42e88b){const _0x55dae7=new _0x26445f(_0x7d4353);_0x55dae7['_appendChild'](_0x45a6a);const _0x509047=Array['from'](_0xe86d9e['viewChildrenToDom'](_0x55dae7,{'bind':!0x1})),_0xaddbf7=_0xe86d9e['domDocument']['createElement']('div');_0xaddbf7['append'](..._0x509047),_0x45a6a=Array['from'](_0xe86d9e['domChildrenToView'](_0xaddbf7))[0x0];}}else{if('r'==_0x2bbcc4['type']&&_0x2bbcc4['children'][0x0]){const _0x24e8f1=_0x2bbcc4['children'][0x0];if(_0x45a6a['render']=function(_0xa1af72){_0xa1af72['innerHTML']=_0x24e8f1;},_0x42e88b){const _0x5b0679=new _0x26445f(_0x7d4353);_0x5b0679['_appendChild'](_0x45a6a);const _0x5b11e0=Array['from'](_0xe86d9e['viewChildrenToDom'](_0x5b0679,{'bind':!0x1})),_0x11a742=_0xe86d9e['domDocument']['createElement']('div');_0x11a742['append'](..._0x5b11e0);const _0x658ac7=Array['from'](_0xe86d9e['domChildrenToView'](_0x11a742));_0x658ac7['length']>0x1?_0x45a6a['_appendChild'](_0x658ac7):_0x45a6a=_0x658ac7[0x0];}}}if(_0x2bbcc4['customProperties']){for(const [_0xe7d4d3,_0x2a349e]of _0x2bbcc4['customProperties'])_0x45a6a['_setCustomProperty'](_0xe7d4d3,_0x2a349e);}const _0xaf797d=void 0x0===_0x2bbcc4['fillerOffset']?null:_0x2bbcc4['fillerOffset'];return null!==_0xaf797d&&(_0x45a6a['getFillerOffset']=()=>_0xaf797d),_0x45a6a;}}['_makeModelFromViewString'](_0x477b09){const _0x37bdd9=JSON['parse'](_0x477b09),_0x2fcc91=this['editor']['editing']['view']['document'],_0x3e220b=new _0x26445f(_0x2fcc91,_0x37bdd9['map'](_0x469f19=>this['_getViewFromDiffObj'](_0x469f19,!0x0)));return this['editor']['data']['toModel'](_0x3e220b);}['_removeRevisionMarkers'](_0x2bad7c){return(_0x2bad7c=_0x2bad7c['filter'](_0x358fd4=>!_0x358fd4['name']||'revision-start'!==_0x358fd4['name']&&'revision-end'!==_0x358fd4['name']))['forEach'](_0x2ba0e0=>{'string'!=typeof _0x2ba0e0&&(_0x2ba0e0['children']=this['_removeRevisionMarkers'](_0x2ba0e0['children']),_0x2ba0e0['attributes']=_0x2ba0e0['attributes']['filter'](_0x5b977a=>!_0x5b977a[0x0]['startsWith']('data-revision-')));}),_0x2bad7c;}}function R(_0xda7e40,_0x56744d,_0x457c82){const t=_0xda7e40['t'];switch(_0x56744d){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'},_0x457c82);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x457c82);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class h extends _0x858dc7{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x267b04,S,$,_0x3530c7];}constructor(_0x55c47d){super(_0x55c47d),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new E(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5e3190=_0x1a737e();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5e3190},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x32d646=this['repository']['getRevision'](0x0),_0x6ce38a=_0x32d646&&null===_0x32d646['creator']?_0x32d646:null;if(this['_continueCurrentRevision']=!!_0x6ce38a&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x29e77a=this['_source']['getCurrentRevisionId'](),_0x7db48d=this['repository']['getRevision'](_0x29e77a);if(_0x7db48d)this['_startingVersion']=_0x7db48d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2db9ea=this['_source']['history']['_operations']['find'](_0x4e7283=>!_0x4e7283['_isInit']),_0x28fc93=_0x2db9ea?_0x2db9ea['baseVersion']:this['_source']['history']['version'];_0x32d646?(_0x32d646['toVersion']<_0x28fc93&&_0x32d646['_update']({'toVersion':_0x28fc93}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id'],this['_startingVersion']=_0x6ce38a['fromVersion']):(this['_startingVersion']=_0x32d646['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x28fc93,this['_continueCurrentRevision']=!0x1);}}else _0x6ce38a&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x6ce38a['toVersion'],this['editor']['model']['document']['history']['version']),_0x6ce38a['fromVersion']===_0x6ce38a['toVersion']?(0x0!==_0x6ce38a['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x6ce38a['id'],this['_startingVersion']=_0x6ce38a['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',_0xaf7c5=>!_0xaf7c5),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd73325=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x235baa;for(const _0x15a48f in _0xd73325){const _0x54bbd1=_0x15a48f,_0x38b4df=_0xd73325[_0x54bbd1];if('revisionHistoryLicenseKeyValid'==_0x38b4df||'revisionHistoryLicenseKeyInvalid'==_0x38b4df||'revisionHistoryLicenseKeyExpired'==_0x38b4df||'revisionHistoryLicenseKeyDomainLimit'==_0x38b4df||'revisionHistoryLicenseKeyNotAllowed'==_0x38b4df||'revisionHistoryLicenseKeyEvaluationLimit'==_0x38b4df||'revisionHistoryLicenseKeyTrialLimit'==_0x38b4df||'revisionHistoryLicenseKeyUsageLimit'==_0x38b4df){delete _0xd73325[_0x54bbd1],_0x235baa=_0x38b4df,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x235baa&&_0xd73325['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x235baa&&_0xd73325['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x235baa&&_0xd73325['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x235baa&&_0xd73325['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x235baa&&_0xd73325['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x235baa&&_0xd73325['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x235baa&&_0xd73325['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x3eb2d=this['repository']['getRevision'](0x0),_0x418249=await this['getRevisionDocumentData'](_0x3eb2d),_0x4fc0c1=await this['getRevisionRootsAttributes'](_0x3eb2d);this['_replaceEditorDataWithRevisionData'](_0x418249,_0x4fc0c1);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5a4783){this['_source']=_0x5a4783;}async['update'](){const _0x1c905d=await this['_source']['getLatestVersion']();if(_0x1c905d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x53448b=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x1c905d});_0x53448b['authors']=_0x53448b['authorsIds']['map'](_0x4f8c2b=>this['editor']['plugins']['get']('Users')['getUser'](_0x4f8c2b)),this['currentRevision']['_update'](_0x53448b);}}async['saveRevision'](_0x2144c0={},_0x3b8e58=null){const _0x1fab14=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3b8e58>this['currentRevision']['toVersion']&&(_0x3b8e58=null),null===_0x3b8e58&&(_0x3b8e58=await this['_source']['getLatestVersion']());const _0xdea15c=this['_getFromVersion'](_0x3b8e58),_0x5497dd=this['buildRevisionData']({'from':_0xdea15c,'to':_0x3b8e58});if(this['currentRevision']['toVersion']<_0x3b8e58){const _0x2303ae=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3b8e58,'to':_0x3b8e58});_0x2303ae['authors']=[],_0x2303ae['authorsIds']=[],_0x2303ae['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2303ae,!0x0),delete _0x2303ae['authors'],_0x1fab14['push'](_0x2303ae);}_0x2144c0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2144c0['name']=_0x2144c0['name']||null,_0x2144c0['id']=_0x2144c0['id']||_0x1a737e(),_0x2144c0={..._0x2144c0,..._0x5497dd};const _0x5b80a8=this['addRevisionData'](_0x2144c0);_0x1fab14['push'](_0x2144c0);const _0x24476=this['repository']['getIndex'](_0x5b80a8);if(0x0!==_0x24476){const _0x4927b0=this['repository']['getRevision'](_0x24476-0x1);if(_0x4927b0['fromVersion']!==_0x3b8e58){const _0x415b3f=this['_revisionDataBuilder']['getData'](_0x3b8e58,_0x4927b0['toVersion']),_0x58fb2b={'id':_0x4927b0['id'],'diffData':_0x415b3f['diffData'],'authorsIds':_0x415b3f['authorsIds'],'authors':_0x415b3f['authorsIds']['map'](_0x7bdf6a=>this['editor']['plugins']['get']('Users')['getUser'](_0x7bdf6a)),'fromVersion':_0x3b8e58};_0x4927b0===this['currentRevision']&&(_0x58fb2b['createdAt']=new Date(_0x2144c0['createdAt']['getTime']()+0xa)),_0x4927b0['_update'](_0x58fb2b,!0x0),delete _0x58fb2b['authors'],_0x1fab14['push'](_0x58fb2b);}}if(this['adapter']){for(const _0x70596d of _0x1fab14)this['_bufferUpdate'](_0x70596d['id'],_0x70596d,!0x0);this['sendBufferedUpdates']();}return _0x5b80a8;}['addRevisionData'](_0x378bb9){const _0x5c278d=this['repository']['createRevision'](_0x378bb9);return this['adapter']&&_0x5c278d['on']('_update',(_0x54d60f,_0x3e6e9b,_0x4ef37f)=>{_0x4ef37f||(this['_bufferUpdate'](_0x3e6e9b['id'],_0x3e6e9b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c278d,this['_findInsertionIndex'](_0x5c278d)),_0x5c278d;}async['getRevisionDocumentData'](_0x53553c){return await this['_utils']['loadRevisionData'](_0x53553c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x53553c);}async['getRevisionRootsAttributes'](_0x1198e5){return await this['_utils']['loadRevisionData'](_0x1198e5,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1198e5);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x24c166=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2a8c3b=0x0;_0x2a8c3b<_0x24c166['length'];_0x2a8c3b++){const _0x2ba1e4=_0x24c166[_0x2a8c3b];let _0x4eea05=!0x1;for(const _0x312278 of Object['keys'](_0x2ba1e4))void 0x0===_0x2ba1e4[_0x312278]?delete _0x2ba1e4[_0x312278]:'id'!==_0x312278&&(_0x4eea05=!0x0);_0x4eea05||(_0x24c166[_0x2a8c3b]=null);}if(_0x24c166=_0x24c166['filter'](_0x2ace73=>null!==_0x2ace73),!_0x24c166['length'])return;for(let _0xa3f0c6=0x0;_0xa3f0c6<_0x24c166['length'];_0xa3f0c6++){const _0x7eb603=_0x24c166[_0xa3f0c6];void 0x0!==_0x7eb603['fromVersion']&&void 0x0===_0x7eb603['toVersion']&&(_0x7eb603['toVersion']=this['repository']['getRevision'](_0x7eb603['id'])['toVersion']),void 0x0!==_0x7eb603['toVersion']&&void 0x0===_0x7eb603['fromVersion']&&(_0x7eb603['fromVersion']=this['repository']['getRevision'](_0x7eb603['id'])['fromVersion']);}const _0x18c383=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x24c166,_0x18c383)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5d8e31=>{if(_0x5d8e31){for(const _0x56f427 of _0x5d8e31)this['setRevisionData']({'id':_0x56f427['id'],'createdAt':_0x56f427['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x29aafd=null,from:_0x47ead8=null,to:_0x3ffca5=null}){_0x47ead8=null!==_0x47ead8?_0x47ead8:_0x29aafd['fromVersion'],_0x3ffca5=null!==_0x3ffca5?_0x3ffca5:_0x29aafd['toVersion'];const _0x2f7778=this['_revisionDataBuilder']['getData'](_0x47ead8,_0x3ffca5),_0x32b912={'diffData':_0x2f7778['diffData'],'authorsIds':_0x2f7778['authorsIds'],'fromVersion':_0x47ead8,'toVersion':_0x3ffca5};if(!_0x29aafd||_0x3ffca5!==_0x29aafd['toVersion']){const _0x21c25c=_0x3ffca5-0x1,_0x5b916e=this['_source']['history']['getOperation'](_0x21c25c);_0x32b912['createdAt']=_0x5b916e&&_0x5b916e['createdAt']||new Date();}if(this['_loadedStateData']&&_0x47ead8===this['_loadedStateData']['fromVersion']){for(const _0x32c1e1 of this['_loadedStateData']['authors'])_0x32b912['authorsIds']['includes'](_0x32c1e1['id'])||_0x32b912['authorsIds']['push'](_0x32c1e1['id']);}return _0x32b912;}['_bufferUpdate'](_0x3e2286,_0x238a24,_0x27b09b){if(this['_bufferedUpdates']['has'](_0x3e2286)){const _0x5a72f4=this['_bufferedUpdates']['get'](_0x3e2286);_0x238a24=_0x27b09b?{..._0x5a72f4,..._0x238a24}:{..._0x238a24,..._0x5a72f4};}this['_bufferedUpdates']['set'](_0x3e2286,_0x238a24);}['setRevisionData'](_0x1c1e14){const _0x4fe628=this['repository']['getRevision'](_0x1c1e14['id']);if(_0x1c1e14['createdAt']&&(_0x1c1e14['createdAt']=new Date(_0x1c1e14['createdAt'])),_0x1c1e14['authorsIds']){const _0x43d8f9=this['editor']['plugins']['get']('Users');_0x1c1e14['authors']=_0x1c1e14['authorsIds']['map'](_0x3d8c9f=>_0x43d8f9['getUser'](_0x3d8c9f));}_0x4fe628['_update'](_0x1c1e14,!0x0);}['_createInitialRevision'](_0x3d1ee7){const _0x547045=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x547045)this['_initialRevisionId']=_0x547045['id'];else{const _0x5bee62=!this['editor']['model']['document']['roots']['find'](_0x34fed5=>this['editor']['model']['hasContent'](_0x34fed5)),_0x51cd27=this['editor']['plugins']['get']('Users')['me']['id'],_0x40c313=R(this['editor']['locale'],_0x5bee62?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x3d1ee7,'to':_0x3d1ee7,'id':this['_initialRevisionId'],'name':_0x40c313,'creatorId':_0x51cd27});}}['_createCurrentRevision'](_0x312984){const _0x5ad1a2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x5ad1a2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x312984,'to':_0x312984,'id':_0x5ad1a2,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x473e98,_0x266476){let _0x4928c2=this['editor']['config']['get']('initialData'),_0x32f036=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x4928c2){_0x4928c2={};for(const _0x3653b8 of this['editor']['model']['document']['getRootNames']())_0x4928c2[_0x3653b8]='';}if('string'==typeof _0x4928c2&&(_0x4928c2={'main':_0x4928c2}),void 0x0===_0x32f036){_0x32f036={};for(const _0x356425 of this['editor']['model']['document']['getRootNames']())_0x32f036[_0x356425]={};}let _0x59ac4b=!0x1;const _0x524013=Object['keys'](_0x4928c2),_0x3ab86a=Object['keys'](_0x473e98);for(const _0x2b46de of _0x524013){if(_0x4928c2[_0x2b46de]!==_0x473e98[_0x2b46de]&&''!==_0x4928c2[_0x2b46de]['trim']()){_0x59ac4b=!0x0;break;}if(!_0x28128b(_0x32f036[_0x2b46de],_0x266476[_0x2b46de])&&Object['keys'](_0x32f036[_0x2b46de])['length']>0x0){_0x59ac4b=!0x0;break;}}_0x59ac4b||(_0x59ac4b=_0x3ab86a['some'](_0x1e1715=>!this['editor']['model']['document']['getRoot'](_0x1e1715))),_0x59ac4b&&_0x198b8e('editor-initial-data-replaced-with-revision-data',{'editorData':_0x4928c2,'editorRootsAttributes':_0x32f036,'revisionData':_0x473e98,'revisionRootsAttributes':_0x266476}),this['editor']['config']['set']('initialData',_0x473e98),this['editor']['config']['set']('rootsAttributes',_0x266476);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x14f113=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x14f113['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x43728f){const _0x13aa02=this['repository']['getRevisions']();_0x13aa02['reverse']();let _0x22200c=0x0;for(;_0x22200c<_0x13aa02['length'];){const _0x26a107=_0x13aa02[_0x22200c];if(_0x26a107===this['currentRevision']){_0x22200c++;continue;}if(_0x26a107['id']===this['_initialRevisionId'])break;const _0x7894bb=_0x43728f['toVersion']-_0x26a107['toVersion']||_0x43728f['fromVersion']-_0x26a107['fromVersion'];if(_0x7894bb>0x0)break;if(_0x7894bb<0x0)_0x22200c++;else{if(!_0x43728f['creator']&&_0x26a107['creator'])break;if(_0x26a107['creator']||!_0x43728f['creator']){if(_0x43728f['createdAt']>_0x26a107['createdAt'])break;_0x22200c++;}else _0x22200c++;}}return _0x22200c;}['_getFromVersion'](_0x5474fa){const _0x56a401=this['repository']['getRevisions']();_0x56a401['reverse'](),_0x56a401['shift']();const _0x62a08f=_0x56a401['find'](_0x354912=>_0x354912['toVersion']<=_0x5474fa)['toVersion'];return _0x62a08f<this['_startingVersion']?this['_startingVersion']:_0x62a08f;}['_makeRevision']({name:_0x3f8b69,from:_0x659b00,to:_0x31d668,creatorId:_0x428768,id:_0x3db11d}){const _0x1da1cf=this['buildRevisionData']({'from':_0x659b00,'to':_0x31d668});_0x1da1cf['name']=_0x3f8b69,_0x1da1cf['creatorId']=_0x428768,_0x1da1cf['id']=_0x3db11d;const _0x89c603=this['addRevisionData'](_0x1da1cf);return this['adapter']&&this['_bufferUpdate'](_0x1da1cf['id'],_0x1da1cf,!0x0),_0x89c603;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class E{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x7d0903){this['editor']=_0x7d0903,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'](_0x5efb1d){this['source']=_0x5efb1d;const _0x4dea30=new Map(),_0x1d8101=new Map(),_0x2af5de=this['editor']['model']['document']['roots']['map'](_0x2fd2af=>_0x2fd2af['rootName']);for(const _0x3564a0 of _0x2af5de){const _0x2d8b53=this['editor']['model']['document']['getRoot'](_0x3564a0),_0x148f9a=x(_0x2d8b53);_0x4dea30['set'](_0x3564a0,_0x148f9a),_0x1d8101['set'](_0x3564a0,Object['fromEntries'](_0x2d8b53['getAttributes']()));}const _0x873b52=Array['from'](this['editor']['model']['markers'])['map'](_0x583087=>[_0x583087['name'],_0x583087['getRange']()]),_0x97e314=this['source']['version'];this['_saveMetaData'](_0x97e314,_0x4dea30,_0x873b52,_0x1d8101),this['_startingRevisionId']=this['_revisionId'];const _0x3e1485=new Map(),_0x274de0=new Map();for(const _0x12bf8f of _0x2af5de){const _0x4648df=N(_0x12bf8f);_0x3e1485['set'](_0x12bf8f,_0x4648df),_0x274de0['set'](_0x12bf8f,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3e1485,[],_0x274de0);}['getData'](_0x2e0e64,_0x9a57){if(this['_lastFrom']===_0x2e0e64&&this['_lastTo']<=_0x9a57)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x9a57,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e0e64)){const _0x3440c1=this['_getPreviousFrom'](_0x2e0e64);this['_calculateMetaData'](_0x3440c1,_0x2e0e64,!0x1);}this['_calculateMetaData'](_0x2e0e64,_0x9a57,!0x0);}return this['_lastFrom']=_0x2e0e64,this['_lastTo']=_0x9a57,this['_getState']();}['loadState'](_0x55f485){const _0x1536f1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x55f485['fromVersion'],this['_lastTo']=_0x55f485['toVersion'];for(const _0x2aad41 in _0x55f485['diffData']){const _0x5deacd=_0x55f485['diffData'][_0x2aad41]['attachChange'],_0x2ecc52=_0x2b75d6(_0x55f485['diffData'][_0x2aad41]['attributesBefore'])||{},_0x610a8e=_0x1536f1['_makeModelFromViewString'](_0x55f485['diffData'][_0x2aad41]['deletions']);_0x610a8e['rootName']=_0x2aad41,_0x610a8e['_isAttached']=!_0x5deacd||!_0x5deacd['isAttached'],_0x610a8e['isAttached']=()=>_0x610a8e['_isAttached'],this['_baseRoots']['set'](_0x2aad41,_0x610a8e),this['_baseRootsAttributes']['set'](_0x2aad41,_0x2ecc52),_0x5deacd&&this['_touchedRoots']['set'](_0x2aad41,_0x5deacd);const _0x3e0c54=this['_makeIdsRoot'](_0x610a8e);this['_baseIdsRoots']['set'](_0x2aad41,_0x3e0c54);for(const [_0x1206d7,_0x1d431a]of _0x610a8e['markers']){if(!_0x1206d7['startsWith']('revision:'))continue;const _0x2f7748=_0x1206d7['split'](':')[0x2];for(const _0x449291 of _0x1d431a['getWalker']({'singleCharacters':!0x0})){const _0x503a98=this['_getVidAttributeName'](_0x449291),_0x166435='elementEnd'==_0x449291['type']?_0x449291['previousPosition']['path']['slice'](0x0,-0x1):_0x449291['previousPosition']['path'],_0x467d87=_0x3e0c54['getNodeByPath'](_0x166435)['getAttribute'](_0x503a98);this['_touched']['set'](_0x467d87,{'userId':_0x2f7748});}}}this['_startingRevisionId']=this['_revisionId'];const _0x21772d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xfce44d=>!this['_touched']['has'](_0xfce44d));let _0x53d1a8=0x0;const _0x4f3263=new Map();for(const _0x2b3c7c in _0x55f485['diffData']){const _0x17f906=_0x55f485['diffData'][_0x2b3c7c]['attachChange'],_0x3fbd21=_0x2b75d6(_0x55f485['diffData'][_0x2b3c7c]['attributesAfter'])||{},_0x563024=_0x1536f1['_makeModelFromViewString'](_0x55f485['diffData'][_0x2b3c7c]['insertions']);_0x563024['rootName']=_0x2b3c7c,_0x563024['_isAttached']=!_0x17f906||_0x17f906['isAttached'],_0x563024['isAttached']=()=>_0x563024['_isAttached'],this['_diffRoots']['set'](_0x2b3c7c,_0x563024),this['_diffRootsAttributes']['set'](_0x2b3c7c,_0x3fbd21);const _0x497e38=this['_makeIdsRoot'](_0x563024,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x2b3c7c,_0x497e38),_0x4f3263['set'](_0x2b3c7c,_0x563024['isAttached']()?_0x3fbd21:{});for(const [_0x40b254,_0x21f8cf]of _0x563024['markers']){if(!_0x40b254['startsWith']('revision:'))continue;const _0x1ee4cb=_0x40b254['split'](':')[0x2];for(const _0x5d7f75 of _0x21f8cf['getWalker']({'singleCharacters':!0x0})){const _0x2c4e18=this['_getVidAttributeName'](_0x5d7f75),_0x38eaf2=this['_revisionId']++,_0x303dc7='elementEnd'==_0x5d7f75['type']?_0x5d7f75['previousPosition']['path']['slice'](0x0,-0x1):_0x5d7f75['previousPosition']['path'];_0x497e38['getNodeByPath'](_0x303dc7)['_setAttribute'](_0x2c4e18,_0x38eaf2),this['_touched']['set'](_0x38eaf2,{'userId':_0x1ee4cb});}}for(const _0x5eec24 of this['editor']['model']['createRangeIn'](_0x563024)['getWalker']({'singleCharacters':!0x0})){const _0x2caa10=this['_getVidAttributeName'](_0x5eec24),_0x35e917='elementEnd'==_0x5eec24['type']?_0x5eec24['previousPosition']['path']['slice'](0x0,-0x1):_0x5eec24['previousPosition']['path'],_0x3a2436=_0x497e38['getNodeByPath'](_0x35e917);_0x3a2436['getAttribute'](_0x2caa10)>0x0||_0x3a2436['_setAttribute'](_0x2caa10,_0x21772d[_0x53d1a8++]);}for(const [_0x1910e1,_0x26d422]of _0x563024['markers'])_0x1910e1['startsWith']('revision:')||this['_markers']['set'](_0x1910e1,_0x26d422);}const _0x43f6ac=N('$graveyard');this['_baseRoots']['set']('$graveyard',_0x43f6ac),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x43f6ac,0x1));const _0x29eb8d=N('$graveyard');this['_diffRoots']['set']('$graveyard',_0x29eb8d),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x29eb8d,0x1));const _0x1b0f68=Array['from'](this['_diffRoots'])['map'](([_0xe4e6bc,_0x2db8b6])=>[_0xe4e6bc,x(_0x2db8b6)]);this['_saveMetaData'](this['_lastTo'],_0x1b0f68,this['_markers'],_0x4f3263);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0xe6c013,_0x127cee,_0x2e6a69,_0x51a322){const _0x4bbf64=new Map(_0x127cee),_0x3a7a07=new Map(_0x2b75d6(_0x51a322)),_0x126ada=new Map();for(const [_0x2da66a,_0x3c628b]of _0x2e6a69)_0x126ada['set'](_0x2da66a,{'start':_0x3c628b['start']['clone'](),'end':_0x3c628b['end']['clone'](),'rootName':_0x3c628b['root']['rootName']});this['_savedMetaData']['set'](_0xe6c013,{'roots':_0x4bbf64,'markers':_0x126ada,'rootsAttributes':_0x3a7a07});}['_removeMetaData'](_0x1ba9c9){this['_savedMetaData']['delete'](_0x1ba9c9);}['_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'](_0x1a2737,_0x259353=null){let _0x19b8b6=null;_0x1a2737['is']('documentFragment')||(_0x19b8b6=new _0x3061f3(_0x1a2737['name'],{'vid_start':null===_0x259353?this['_revisionId']++:_0x259353++}));const _0x2005cd=[];for(const _0x50775f of _0x1a2737['getChildren']())if(_0x50775f['is']('element')){_0x2005cd['push'](this['_makeIdsRoot'](_0x50775f,_0x259353));const _0x3b9265=_0x2005cd[_0x2005cd['length']-0x1];null!==_0x259353&&(_0x259353=_0x3b9265['is']('element','$text')?_0x3b9265['getAttribute']('vid')+0x1:_0x3b9265['getAttribute']('vid_end')+0x1);}else{for(let _0x2cb980=0x0;_0x2cb980<_0x50775f['offsetSize'];_0x2cb980++)_0x2005cd['push'](new _0x3061f3('$text',{'vid':null===_0x259353?this['_revisionId']++:_0x259353++}));}if(_0x1a2737['is']('documentFragment')){const _0x58d1bc=N(_0x1a2737['rootName']);return _0x58d1bc['_insertChild'](0x0,_0x2005cd),_0x58d1bc;}return _0x19b8b6['_setAttribute']('vid_end',null===_0x259353?this['_revisionId']++:_0x259353++),_0x19b8b6['_insertChild'](0x0,_0x2005cd),_0x19b8b6;}['_calculateMetaData'](_0xb5cdf8,_0x5c4393,_0x5d9105){this['_reset']();const {roots:_0x530aa4,markers:_0x42289e,rootsAttributes:_0x1adff0}=this['_savedMetaData']['get'](_0xb5cdf8);this['_baseRoots']=new Map(_0x530aa4),this['_baseRootsAttributes']=new Map(_0x2b75d6(_0x1adff0));for(const [_0x4c662e,_0x3ecfd5]of this['_baseRoots'])if('$graveyard'!==_0x4c662e&&(this['_diffRoots']['set'](_0x4c662e,x(_0x3ecfd5)),this['_diffRootsAttributes']=new Map(_0x2b75d6(_0x1adff0)),_0x5d9105)){const _0x511497=this['_revisionId'];this['_idsRoots']['set'](_0x4c662e,this['_makeIdsRoot'](_0x3ecfd5)),this['_baseIdsRoots']['set'](_0x4c662e,this['_makeIdsRoot'](_0x3ecfd5,_0x511497));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x5d9105&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4fb7fc,_0x4b0696]of _0x42289e){const _0x4835a2=this['_baseRoots']['get'](_0x4b0696['rootName']),_0x3b1c91=this['_diffRoots']['get'](_0x4b0696['rootName']),_0x5fb50c=new _0x1c348a(this['_fixPosition'](_0x4b0696['start'],_0x4835a2),this['_fixPosition'](_0x4b0696['end'],_0x4835a2)),_0x4a23a5=this['_fixRange'](_0x5fb50c,_0x3b1c91);_0x4835a2['markers']['set'](_0x4fb7fc,_0x5fb50c),this['_markers']['set'](_0x4fb7fc,_0x4a23a5);}this['_applyOperations'](_0xb5cdf8,_0x5c4393,_0x5d9105);}['_applyOperations'](_0x5cb0eb,_0x1f76e7,_0x50a97f){for(const _0x2414d0 of this['source']['getOperations'](_0x5cb0eb,_0x1f76e7))this['_handleOperation'](_0x2414d0,_0x50a97f);for(const _0x5c2507 of this['_diffRoots']['values']())_0x5c2507['markers']['clear']();for(const [_0x22595b,_0x9207b8]of this['_markers']){this['_diffRoots']['get'](_0x9207b8['root']['rootName'])['markers']['set'](_0x22595b,_0x9207b8['clone']());}const _0x7c49fb=new Map(),_0xe9334c=new Map();for(const [_0x5becab,_0x3084f4]of this['_diffRoots'])_0x7c49fb['set'](_0x5becab,x(_0x3084f4)),_0xe9334c['set'](_0x5becab,this['_diffRootsAttributes']['get'](_0x5becab));this['_saveMetaData'](_0x1f76e7,_0x7c49fb,this['_markers'],_0xe9334c);}['_getPreviousFrom'](_0xfd1511){const _0x32cb06=Array['from'](this['_savedMetaData']['keys']());_0x32cb06['sort']((_0x2cb7be,_0x11e26a)=>_0x2cb7be-_0x11e26a),_0x32cb06['reverse']();for(const _0x5804bb of _0x32cb06)if(_0x5804bb<_0xfd1511)return _0x5804bb;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x30b5b8,_0x4d47dd){const _0x45f8d4=Array['from'](_0x4d47dd['markers'])['map'](([_0x3aaaa1,_0x1881cd])=>[_0x3aaaa1,this['_fixRange'](_0x1881cd,_0x30b5b8)]);_0x30b5b8['markers']=new Map(_0x45f8d4);}['_transformMarkers'](_0x1d4d21){for(const _0x3077dd of this['_markers']['values']()){const _0x2739e9=_0x3077dd['getTransformedByOperation'](_0x1d4d21),_0xd394dd=_0x1c348a['_createFromRanges'](_0x2739e9);_0x3077dd['start']=_0xd394dd['start'],_0x3077dd['end']=_0xd394dd['end'];}}['_handleOperation'](_0x40ec10,_0xa485ff){if('addRoot'!=_0x40ec10['type']&&'detachRoot'!=_0x40ec10['type']){if('insert'==_0x40ec10['type']){const _0x32ad3c=_0x40ec10['position']['root']['rootName'];this['_diffRoots']['has'](_0x32ad3c)||(this['_diffRoots']['set'](_0x32ad3c,N(_0x32ad3c,!0x0)),this['_diffRootsAttributes']['set'](_0x32ad3c,{}),_0xa485ff&&this['_idsRoots']['set'](_0x32ad3c,N(_0x32ad3c,!0x0)));}else{if('addRootAttribute'==_0x40ec10['type']||'removeRootAttribute'==_0x40ec10['type']||'changeRootAttribute'==_0x40ec10['type'])return void this['_handleRootAttributeOperation'](_0x40ec10);'marker'==_0x40ec10['type']&&this['_handleMarkerOperation'](_0x40ec10);}if('marker'!==_0x40ec10['type']){const _0x23e987=this['_cloneOperation'](_0x40ec10,this['_diffRoots']);_0x23e987['_execute'](),this['_transformMarkers'](_0x23e987);}if(_0xa485ff)switch(_0x40ec10['type']){case'insert':this['_handleInsertOperation'](_0x40ec10);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x40ec10);break;case'merge':this['_handleMergeOperation'](_0x40ec10);break;case'split':this['_handleSplitOperation'](_0x40ec10);}}else this['_handleRootOperation'](_0x40ec10,_0xa485ff);}['_cloneOperation'](_0x56df39,_0x2568fb){const _0x3aadfa=_0x56df39['clone']();return _0x3aadfa['_authorId']=_0x56df39['_authorId'],this['_fixOperation'](_0x3aadfa,_0x2568fb),_0x3aadfa;}['_getBaseVids'](_0x5b8517){return _0x5b8517['map'](_0x528b69=>{const _0x5477ba=this['_getVidAttributeName'](_0x528b69);return Number(_0x528b69['item']['getAttribute'](_0x5477ba));});}['_generateTape'](_0x518af7,_0x381ef8){if(_0x518af7['is']('element','$text'))_0x381ef8['push']({'item':_0x518af7,'type':'text'});else{_0x518af7['is']('element')&&_0x381ef8['push']({'item':_0x518af7,'type':'elementStart'});for(const _0x3a6963 of _0x518af7['getChildren']())this['_generateTape'](_0x3a6963,_0x381ef8);_0x518af7['is']('element')&&_0x381ef8['push']({'item':_0x518af7,'type':'elementEnd'});}return _0x381ef8;}['_getState'](){const _0x4a5521=new Map(this['_touched']),_0x46245d=new Map(_0x4a5521),_0x1d8fb5=new Map(),_0x29fb7d={'insertions':{},'deletions':{}},_0x3ff078={'insertions':{},'deletions':{}},_0x462bbb=new Map(),_0x3a7bfe=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x3a7bfe['delete']('$graveyard');for(const _0x115823 of _0x3a7bfe){const _0x479bdb=this['_diffRoots']['get'](_0x115823)||N(_0x115823,!0x1),_0x1aab13=this['_baseRoots']['get'](_0x115823)||N(_0x115823,!0x1);_0x479bdb['isAttached']()||_0x1aab13['isAttached']()?(_0x29fb7d['insertions'][_0x115823]=x(_0x479bdb),_0x29fb7d['deletions'][_0x115823]=x(_0x1aab13),this['_copyMarkers'](_0x29fb7d['deletions'][_0x115823],_0x1aab13),this['_copyMarkers'](_0x29fb7d['insertions'][_0x115823],_0x479bdb),_0x3ff078['insertions'][_0x115823]=this['_generateTape'](this['_idsRoots']['get'](_0x115823),[]),_0x3ff078['deletions'][_0x115823]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x115823)||N(_0x115823,!0x1),[])):_0x3a7bfe['delete'](_0x115823);}for(const _0x5c3845 of _0x3a7bfe){const _0xc41bd5=_0x3ff078['insertions'][_0x5c3845];for(const _0x11ff6d of _0xc41bd5){const _0x59de21=this['_getVidAttributeName'](_0x11ff6d),_0x47c1af=_0x11ff6d['item']['getAttribute'](_0x59de21);_0x46245d['delete'](_0x47c1af),_0x47c1af>=this['_startingRevisionId']&&_0x1d8fb5['set'](_0x47c1af,_0x4a5521['get'](_0x47c1af));}}for(const _0x36ea02 of _0x3a7bfe){const _0x2eeb60=_0x3ff078['insertions'][_0x36ea02],_0x3dbb0b=this['_getBaseVids'](_0x3ff078['deletions'][_0x36ea02]);let _0x5ed64b=0x0;for(const _0x19e600 of _0x2eeb60){const _0x359212=this['_getVidAttributeName'](_0x19e600),_0x345ccb=_0x19e600['item']['getAttribute'](_0x359212);if(!_0x1d8fb5['has'](_0x345ccb)&&!_0x462bbb['has'](_0x345ccb)){if(_0x46245d['has'](_0x345ccb))_0x5ed64b++;else{if(_0x345ccb!=_0x3dbb0b[_0x5ed64b]){const _0xd86416=_0x4a5521['get'](_0x345ccb)||_0x4a5521['get'](_0x3dbb0b[_0x5ed64b]);for(;_0x345ccb!=_0x3dbb0b[_0x5ed64b];)_0x46245d['has'](_0x3dbb0b[_0x5ed64b])||(_0x462bbb['set'](_0x3dbb0b[_0x5ed64b],_0xd86416),_0x4a5521['set'](_0x3dbb0b[_0x5ed64b],_0xd86416)),_0x5ed64b++;}_0x5ed64b++;}}}}for(const _0x5df5ee of _0x3a7bfe){const _0x2c3615=_0x3ff078['insertions'][_0x5df5ee];for(const _0x3c6853 of _0x2c3615){const _0x4659f9=this['_getVidAttributeName'](_0x3c6853),_0x5423a8=_0x3c6853['item']['getAttribute'](_0x4659f9);if(_0x462bbb['has'](_0x5423a8)){const _0x594aa1=_0x462bbb['get'](_0x5423a8);_0x46245d['has'](_0x5423a8)||_0x46245d['set'](_0x5423a8,{..._0x594aa1}),_0x1d8fb5['set'](_0x5423a8,{..._0x594aa1});}}}for(const _0x53bd1c of _0x46245d['keys']())_0x53bd1c>=this['_startingRevisionId']&&_0x46245d['delete'](_0x53bd1c);const _0x4724bb=new Map();for(const _0x526029 of _0x3a7bfe){let _0x49f043=_0x3ff078['insertions'][_0x526029];for(const _0x16850e of _0x49f043)if(_0x16850e['item']['is']('element','tableCell')){const _0x16577d=this['_getVidAttributeName'](_0x16850e),_0x12463b=_0x16850e['item']['getAttribute'](_0x16577d);if(_0x1d8fb5['has'](_0x12463b)){const _0x19d92f=_0x16850e['item']['parent']['parent']['getAttribute']('vid_start'),_0xe02567=_0x4724bb['get'](_0x19d92f)||new Set();_0xe02567['add'](_0x1d8fb5['get'](_0x12463b)['userId']),_0x4724bb['set'](_0x19d92f,_0xe02567);}}_0x49f043=_0x3ff078['deletions'][_0x526029];for(const _0xf580db of _0x49f043)if(_0xf580db['item']['is']('element','tableCell')){const _0x319037=this['_getVidAttributeName'](_0xf580db),_0x6107e4=_0xf580db['item']['getAttribute'](_0x319037);if(_0x46245d['has'](_0x6107e4)){const _0x980698=_0xf580db['item']['parent']['parent']['getAttribute']('vid_start'),_0x557a8c=_0x4724bb['get'](_0x980698)||new Set();_0x557a8c['add'](_0x46245d['get'](_0x6107e4)['userId']),_0x4724bb['set'](_0x980698,_0x557a8c);}}for(const _0x5bf2a3 of _0x4724bb['keys']())(_0x1d8fb5['has'](_0x5bf2a3)||_0x46245d['has'](_0x5bf2a3))&&_0x4724bb['delete'](_0x5bf2a3);}for(const _0x510f95 of _0x3a7bfe){const _0x43f3b7=_0x3ff078['insertions'][_0x510f95];let _0x58982b=null,_0x3f6b05=null;for(const _0x15533d of _0x43f3b7){const _0x217c79=this['_getVidAttributeName'](_0x15533d),_0x277cba=_0x15533d['item']['getAttribute'](_0x217c79),_0x336023=_0x4724bb['get'](_0x277cba);_0x336023&&'elementStart'==_0x15533d['type']&&(_0x58982b=Array['from'](_0x336023)[0x0],_0x3f6b05=_0x15533d['item']['getAttribute']('vid_end')),_0x58982b&&(_0x46245d['set'](_0x277cba,{'userId':_0x58982b}),_0x1d8fb5['set'](_0x277cba,{'userId':_0x58982b})),_0x277cba==_0x3f6b05&&(_0x58982b=null,_0x3f6b05=null);}}const _0x3d47c4={},_0x53aec7=new Set();for(const _0x142b67 of _0x3a7bfe){const _0xda93dc=_0x29fb7d['deletions'][_0x142b67],_0x28dbe3=_0x29fb7d['insertions'][_0x142b67];for(const {userId:_0x24aa1f}of this['_touchedMarkers']['values']())null!==_0x24aa1f&&_0x53aec7['add'](_0x24aa1f);for(const {userId:_0x4b9ee1}of this['_touchedRoots']['values']())null!==_0x4b9ee1&&_0x53aec7['add'](_0x4b9ee1);this['_markChanges'](_0x28dbe3,_0x3ff078['insertions'][_0x142b67],_0x1d8fb5,'insertion',_0x53aec7),this['_markChanges'](_0xda93dc,_0x3ff078['deletions'][_0x142b67],_0x46245d,'deletion',_0x53aec7),_0x3d47c4[_0x142b67]={'insertions':this['_prepareViewToSave'](_0x28dbe3),'deletions':this['_prepareViewToSave'](_0xda93dc),'attachChange':this['_touchedRoots']['get'](_0x142b67)||null,'attributesBefore':_0x2b75d6(this['_baseRootsAttributes']['get'](_0x142b67))||{},'attributesAfter':_0x2b75d6(this['_diffRootsAttributes']['get'](_0x142b67))};}return{'diffData':_0x3d47c4,'authorsIds':Array['from'](_0x53aec7)};}['_processRootBeforeSave'](_0x5451e8){for(const [,_0x379cbd]of _0x5451e8['markers']){const _0x1cde60=_0x379cbd['start']['getAncestors']()['filter'](_0x11bc2a=>'tableCell'==_0x11bc2a['name']);for(const _0x86199d of _0x1cde60)0x1==_0x86199d['childCount']&&_0x86199d['getChild'](0x0)['is']('element','paragraph')&&_0x86199d['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x42526e){this['_processRootBeforeSave'](_0x42526e);const _0x434b8e=this['editor']['data']['toView'](_0x42526e,{}),_0x3e83d4=Array['from'](_0x434b8e['getChildren']())['map'](_0x53b0f7=>this['_getViewJson'](_0x53b0f7));return JSON['stringify'](_0x3e83d4);}['_getViewJson'](_0x5b64a5){if(_0x5b64a5['is']('$text'))return _0x5b64a5['data'];{const _0x225ae2=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x337431=_0x5b64a5,_0x29115c=this['editor']['data']['htmlProcessor']['domConverter'],_0x3540d8={'type':_0x225ae2['_getTypeCharForViewElement'](_0x337431),'name':_0x337431['name'],'attributes':Array['from'](_0x337431['getAttributes']()),'children':Array['from'](_0x337431['getChildren']())['map'](_0x35364c=>this['_getViewJson'](_0x35364c))};if(_0x5b64a5['is']('uiElement')&&'$comment'!=_0x5b64a5['name']){const _0x221aa6=_0x5b64a5['render'](_0x29115c['domDocument'],_0x29115c);_0x3540d8['children']['push'](_0x221aa6['outerHTML']);}else{if(_0x5b64a5['is']('rawElement')){const _0x2d5c50=_0x29115c['domDocument']['createElement'](_0x337431['name']);_0x5b64a5['render'](_0x2d5c50,_0x29115c),_0x3540d8['children']['push'](_0x2d5c50['innerHTML']);}}const _0x2a32d7=Array['from'](_0x337431['getCustomProperties']());_0x2a32d7['length']>0x0&&(_0x3540d8['customProperties']=_0x2a32d7);const _0x3871d9=_0x337431['getFillerOffset']();return null!==_0x3871d9&&(_0x3540d8['fillerOffset']=_0x3871d9),_0x3540d8;}}['_markChanges'](_0x1c1acd,_0xec07f1,_0x568edf,_0x21a174,_0x2130aa){let _0x1c2689=null,_0x317165=null,_0x315dfa=0x0;const _0x1a9ea1=this['editor']['model'];for(let _0x355020=0x0;_0x355020<_0xec07f1['length'];_0x355020++){const _0x5cd4d6=this['_getVidAttributeName'](_0xec07f1[_0x355020]),_0x206f8=_0xec07f1[_0x355020]['item']['getAttribute'](_0x5cd4d6),_0x11e67a=_0x568edf['get'](_0x206f8),_0x28033a=_0x355020==_0xec07f1['length']-0x1;(!_0x1c2689&&_0x11e67a&&(_0x1c2689=_0x11e67a,_0x317165=_0xec07f1[_0x355020]),_0x1c2689&&(!_0x11e67a||_0x11e67a['userId']!=_0x1c2689['userId']))&&(_0x135e64(_0x11e67a,P(_0x317165,_0x1c1acd,_0x1a9ea1),P(_0xec07f1[_0x355020],_0x1c1acd,_0x1a9ea1)),_0x1c2689=_0x11e67a||null,_0x317165=_0x11e67a?_0xec07f1[_0x355020]:null),_0x1c2689&&_0x28033a&&_0x135e64(_0x11e67a,P(_0x317165,_0x1c1acd,_0x1a9ea1),V(_0xec07f1[_0x355020],_0x1c1acd,_0x1a9ea1));}function _0x135e64(_0x7e1224,_0x47732f,_0x36b4ff){const _0x1cb3b0=_0x1c2689['userId'],_0x3680f0='revision:'+_0x21a174+':'+_0x1cb3b0+':'+_0x315dfa++,_0x372d15=_0x1a9ea1['createRange'](_0x47732f,_0x36b4ff);_0x1c1acd['markers']['set'](_0x3680f0,_0x372d15),null!==_0x1cb3b0&&_0x2130aa['add'](_0x1cb3b0);}}['_getVidAttributeName'](_0x499a4a){switch(_0x499a4a['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x4fcad4,_0x3fdaaf){_0x4fcad4['baseVersion']=null;for(const _0x3b3d61 in _0x4fcad4){const _0x41f711=_0x4fcad4[_0x3b3d61];if(_0x41f711 instanceof _0x3da34e){const _0x111ff6=_0x3fdaaf['get'](_0x41f711['root']['rootName']);_0x4fcad4[_0x3b3d61]=this['_fixPosition'](_0x41f711,_0x111ff6);}if(_0x41f711 instanceof _0x1c348a){const _0x1283cb=_0x3fdaaf['get'](_0x41f711['root']['rootName']);_0x4fcad4[_0x3b3d61]=this['_fixRange'](_0x41f711,_0x1283cb);}'root'===_0x3b3d61&&(_0x4fcad4['root']=_0x3fdaaf['get'](_0x4fcad4['root']['rootName']));}}['_fixRange'](_0x53e285,_0xb51089){return this['editor']['model']['createRange'](this['_fixPosition'](_0x53e285['start'],_0xb51089),this['_fixPosition'](_0x53e285['end'],_0xb51089));}['_fixPosition'](_0x1d91ea,_0x56d1b3){return this['editor']['model']['createPositionFromPath'](_0x56d1b3,_0x1d91ea['path'],_0x1d91ea['stickiness']);}['_handleInsertOperation'](_0x5c2315){const _0x959fe8=this['_idsRoots']['get'](_0x5c2315['position']['root']['rootName']),_0xb67b15=this['_fixPosition'](_0x5c2315['position'],_0x959fe8),_0x545173=null===_0x5c2315['_authorId']?null:_0x5c2315['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x26a1c4=_0xb67b15['parent'],_0x5c4597=this['_revisionId'],_0x2f800c=[];for(const _0x2cc9d6 of _0x5c2315['nodes'])if(_0x2cc9d6['is']('element'))_0x2f800c['push'](this['_makeIdsRoot'](_0x2cc9d6));else{for(let _0x40e4cc=0x0;_0x40e4cc<_0x2cc9d6['offsetSize'];_0x40e4cc++)_0x2f800c['push'](new _0x3061f3('$text',{'vid':this['_revisionId']++}));}const _0x58d72c=this['_revisionId'];for(let _0x5f5373=_0x5c4597;_0x5f5373<_0x58d72c;_0x5f5373++)this['_touched']['set'](_0x5f5373,{'userId':_0x545173});_0x26a1c4['_insertChild'](_0xb67b15['offset'],_0x2f800c);}['_handleMoveOperation'](_0x39c223){(_0x39c223=this['_cloneOperation'](_0x39c223,this['_idsRoots']))['_execute']();const _0x23dc54=null===_0x39c223['_authorId']?null:_0x39c223['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44fdab=_0x39c223['getMovedRangeStart'](),_0x425fcf=_0x44fdab['parent'],_0x5f1391=_0x44fdab['offset'];!function _0x43110f(_0x23e0ce,_0x5a0e1c,_0x3252b2,_0x179ccb){for(let _0x3f1c8d=_0x3252b2;_0x3f1c8d<_0x179ccb;_0x3f1c8d++){const _0x4abf5e=_0x5a0e1c['getChild'](_0x3f1c8d);_0x4abf5e['is']('element','$text')?_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid'),{'userId':_0x23dc54}):(_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid_start'),{'userId':_0x23dc54}),_0x43110f(_0x23e0ce,_0x4abf5e,0x0,_0x4abf5e['childCount']),_0x23e0ce['set'](_0x4abf5e['getAttribute']('vid_end'),{'userId':_0x23dc54}));}}(this['_touched'],_0x425fcf,_0x5f1391,_0x5f1391+_0x39c223['howMany']);}['_handleMergeOperation'](_0x3070c9){const _0x3ef3e1=null===(_0x3070c9=this['_cloneOperation'](_0x3070c9,this['_idsRoots']))['_authorId']?null:_0x3070c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a3fd8=_0x3070c9['targetPosition']['parent'],_0x160cc6=_0x3070c9['sourcePosition']['parent'],_0x431aaf=_0x2a3fd8['getAttribute']('vid_end'),_0x536f4e=_0x160cc6['getAttribute']('vid_start');_0x2a3fd8['_setAttribute']('vid_end',_0x160cc6['getAttribute']('vid_end')),_0x160cc6['_setAttribute']('vid_end',_0x431aaf),this['_touched']['set'](_0x536f4e,{'userId':_0x3ef3e1}),this['_touched']['set'](_0x431aaf,{'userId':_0x3ef3e1}),_0x3070c9['_execute']();}['_handleSplitOperation'](_0x2c0710){const _0x57b2ae=null===(_0x2c0710=this['_cloneOperation'](_0x2c0710,this['_idsRoots']))['_authorId']?null:_0x2c0710['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2558e4=_0x2c0710['graveyardPosition'],_0x1b2310=_0x2c0710['splitPosition']['parent'];_0x2c0710['_execute']();const _0x1c867b=_0x1b2310['getAttribute']('vid_end'),_0x45da46=_0x2c0710['insertionPosition']['nodeAfter'];if(_0x2558e4){const _0x1d333e=_0x45da46['getAttribute']('vid_end'),_0x1a7e0e=_0x1b2310['getAttribute']('vid_end');_0x1b2310['_setAttribute']('vid_end',_0x1d333e),_0x45da46['_setAttribute']('vid_end',_0x1a7e0e),this['_touched']['set'](_0x1b2310['getAttribute']('vid_end'),{'userId':_0x57b2ae}),this['_touched']['set'](_0x45da46['getAttribute']('vid_start'),{'userId':_0x57b2ae});}else{const _0x15dcfb=this['_revisionId']++,_0x3a1b1c=this['_revisionId']++;_0x1b2310['_setAttribute']('vid_end',_0x15dcfb),_0x45da46['_setAttribute']('vid_start',_0x3a1b1c),_0x45da46['_setAttribute']('vid_end',_0x1c867b),this['_touched']['set'](_0x15dcfb,{'userId':_0x57b2ae}),this['_touched']['set'](_0x3a1b1c,{'userId':_0x57b2ae});}}['_handleMarkerOperation'](_0x3e2cf0){if(!_0x3e2cf0['affectsData'])return;const _0x23fe06=(_0x3e2cf0=this['_cloneOperation'](_0x3e2cf0,this['_diffRoots']))['oldRange']?_0x3e2cf0['oldRange']['root']:null,_0x1b3908=_0x3e2cf0['newRange']?_0x3e2cf0['newRange']['root']:null;_0x23fe06&&this['_markers']['delete'](_0x3e2cf0['name']),_0x1b3908&&this['_markers']['set'](_0x3e2cf0['name'],_0x3e2cf0['newRange']['clone']());const _0x53fcf2=null===_0x3e2cf0['_authorId']?null:_0x3e2cf0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x49520e=_0x3e2cf0['name'];if(!this['_touchedMarkers']['has'](_0x49520e))return void this['_touchedMarkers']['set'](_0x49520e,{'range':_0x3e2cf0['oldRange'],'userId':_0x53fcf2});const _0x246449=this['_touchedMarkers']['get'](_0x49520e),_0x30c294=_0x246449['range'],_0x16b775=_0x3e2cf0['newRange'];null==_0x30c294&&null==_0x16b775||_0x30c294&&_0x16b775&&_0x30c294['isEqual'](_0x16b775)?this['_touchedMarkers']['delete'](_0x3e2cf0['name']):_0x246449['userId']=_0x53fcf2;}['_handleRootOperation'](_0x20b88b,_0x4b625d){this['_diffRoots']['has'](_0x20b88b['rootName'])?this['_diffRoots']['get'](_0x20b88b['rootName'])['_isAttached']=_0x20b88b['isAdd']:(this['_diffRoots']['set'](_0x20b88b['rootName'],N(_0x20b88b['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x20b88b['rootName'],{}),_0x4b625d&&this['_idsRoots']['set'](_0x20b88b['rootName'],N(_0x20b88b['rootName'],!0x0)));const _0x217c36=null===_0x20b88b['_authorId']?null:_0x20b88b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2d6404=this['_touchedRoots']['get'](_0x20b88b['rootName']);_0x2d6404&&_0x2d6404['userId']===_0x217c36?this['_touchedRoots']['delete'](_0x20b88b['rootName']):this['_touchedRoots']['set'](_0x20b88b['rootName'],{'userId':_0x217c36,'isAttached':_0x20b88b['isAdd']});}['_handleRootAttributeOperation'](_0x592631){const _0x250987=this['_diffRootsAttributes']['get'](_0x592631['root']['rootName']);null===_0x592631['newValue']?delete _0x250987[_0x592631['key']]:_0x250987[_0x592631['key']]=_0x592631['newValue'];}}function x(_0x5d8326){const _0x57bc18=N(_0x5d8326['rootName'],_0x5d8326['isAttached']());for(const _0x56e19e of _0x5d8326['getChildren']()){const _0x49b29f=_0x56e19e['_clone'](!0x0);_0x57bc18['_appendChild'](_0x49b29f);}return _0x57bc18;}function N(_0x21ec95,_0x429dcb=!0x0){const _0x48b4f9=new _0x3a58c7();return _0x48b4f9['rootName']=_0x21ec95,_0x48b4f9['_isAttached']=_0x429dcb,_0x48b4f9['isAttached']=()=>_0x48b4f9['_isAttached'],_0x48b4f9;}function P(_0x1cb70e,_0x15347,_0x475c37){const _0x5f4fa1='elementEnd'==_0x1cb70e['type']?_0x475c37['createPositionAt'](_0x1cb70e['item'],'end'):_0x475c37['createPositionBefore'](_0x1cb70e['item']);return _0x475c37['createPositionFromPath'](_0x15347,_0x5f4fa1['path'],_0x5f4fa1['stickiness']);}function V(_0x1321c3,_0x159223,_0x51d15b){const _0x32b62c='elementStart'==_0x1321c3['type']?_0x51d15b['createPositionAt'](_0x1321c3['item'],0x0):_0x51d15b['createPositionAfter'](_0x1321c3['item']);return _0x51d15b['createPositionFromPath'](_0x159223,_0x32b62c['path'],_0x32b62c['stickiness']);}class he extends/* #__PURE__ -- @preserve */
25
+ _0x2d60e1(_0x4d7898){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0xf70b13,_0x259934){super(_0xf70b13),this['focusTracker']=new _0x49e298(),this['keystrokes']=new _0x423e40(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x259934),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),this['initializeCssTransitionDisablerMixin']();}['render'](){super['render'](),_0x31915b({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xe01afb=_0x483c32=>_0x483c32['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe01afb),this['keystrokes']['set']('arrowleft',_0xe01afb),this['keystrokes']['set']('arrowup',_0xe01afb),this['keystrokes']['set']('arrowdown',_0xe01afb);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x33a094){this['revisionNameInputView']['fieldView']['element']['value']=_0x33a094['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0xd2def4){const _0x191e56=new ti(this['locale'],_0x387a81),_0x935c8a=_0x191e56['fieldView'];_0x935c8a['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4ebe6d=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0xd2def4&&(_0x4ebe6d+='\x20('+R(this['locale'],'optional')+')'),(_0x191e56['label']=_0x4ebe6d,_0x935c8a['on']('input',()=>{this['revisionNameInputValue']=_0x935c8a['element']['value']['trim']();}),_0x191e56);}}class v extends _0x858dc7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1b4406=this['editor'],_0x593ffb=_0x1b4406['plugins']['get']('RevisionTracker');_0x1b4406['ui']['componentFactory']['add']('revisionHistory',_0xf669fc=>{const _0x5b0639=_0x2842e0(_0xf669fc),_0x1c6dec=_0x5b0639['panelView']['children'],_0x1e4549=new _0x429da2(_0xf669fc),_0x33be72=new _0x44d3c5(_0xf669fc),_0x54bd2f=new _0x1b0a61(_0xf669fc),_0x801a2e=new _0x44d3c5(_0xf669fc),_0x26376e=new _0x1b0a61(_0xf669fc);return _0x5b0639['bind']('isEnabled')['to'](_0x593ffb,'isReady',_0x593ffb,'isEnabled',_0x1b4406,'isReadOnly',(_0x5cb846,_0x59087e,_0x578405)=>_0x5cb846&&_0x59087e&&!_0x578405),_0x5b0639['buttonView']['set']({'icon':_0xd5d852,'label':R(_0xf669fc,'Revision\x20history'),'tooltip':!0x0}),_0x54bd2f['set']({'label':R(_0xf669fc,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x54bd2f['bind']('isEnabled')['to'](_0x593ffb,'isReady',_0x593ffb,'isEnabled',_0x1b4406,'isReadOnly',(_0x2a0bf0,_0x1c4f49,_0x372e5c)=>_0x2a0bf0&&_0x1c4f49&&!_0x372e5c),_0x54bd2f['on']('execute',()=>this['_showDialog']()),_0x26376e['set']({'label':R(_0xf669fc,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x26376e['bind']('isEnabled')['to'](_0x593ffb,'isReady',_0x1b4406,'isReadOnly',(_0x514706,_0x9faae6)=>_0x514706&&!_0x9faae6),_0x26376e['on']('execute',()=>{_0x1b4406['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x5b0639['isOpen']=!0x1,_0x1b4406['editing']['view']['focus']();}),_0x33be72['children']['add'](_0x54bd2f),_0x801a2e['children']['add'](_0x26376e),_0x1e4549['role']='menu',_0x1e4549['items']['addMany']([_0x33be72,_0x801a2e]),_0x1c6dec['add'](_0x1e4549),_0x5b0639;}),_0x1b4406['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x5930ef=this['editor'],_0x1b1e57=_0x5930ef['locale'],_0xa3396=new _0x2dadf2(_0x1b1e57),_0x5432e4=new _0x3e73a4(_0x1b1e57);_0xa3396['buttonView']['set']({'icon':_0xd5d852,'label':R(_0x1b1e57,'Revision\x20history')});const _0x4a1e9f=new _0x2266b9(_0x1b1e57,_0xa3396),_0x432bdf=new _0x1ca924(_0x1b1e57);_0x432bdf['set']({'label':R(_0x1b1e57,'Save\x20current\x20revision')}),_0x432bdf['delegate']('execute')['to'](_0xa3396),_0x432bdf['on']('execute',()=>{this['_showDialog']();}),_0x4a1e9f['children']['add'](_0x432bdf),_0x5432e4['items']['add'](_0x4a1e9f);const _0x1a09ac=new _0x2266b9(_0x1b1e57,_0xa3396),_0x4d441f=new _0x1ca924(_0x1b1e57);return _0x4d441f['set']({'label':R(_0x1b1e57,'Open\x20revision\x20history')}),_0x4d441f['delegate']('execute')['to'](_0xa3396),_0x4d441f['on']('execute',()=>{_0x5930ef['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1a09ac['children']['add'](_0x4d441f),_0x5432e4['items']['add'](_0x1a09ac),_0xa3396['panelView']['children']['add'](_0x5432e4),_0xa3396;}['_showDialog'](){const _0x14169f=this['editor'],_0x30b6c5=_0x14169f['locale'],_0x23aa7c=_0x14169f['plugins']['get']('Dialog'),_0x2717c3=_0x14169f['plugins']['get']('RevisionTracker');function _0x39c7fb(_0x2f2072){_0x14169f['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2f2072['revisionName']?_0x2f2072['revisionNameInputView']['errorText']=R(_0x30b6c5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x14169f['plugins']['get'](h)['saveRevision']({'name':_0x2f2072['revisionName']}),_0x23aa7c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x39c7fb(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x23aa7c['show']({'id':'revisionSave','title':R(_0x30b6c5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x14169f['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x23aa7c['hide']()},{'label':R(_0x14169f['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4fb832){_0x4fb832['bind']('isEnabled')['to'](_0x2717c3,'isReady',_0x2717c3,'isEnabled',_0x14169f,'isReadOnly',(_0x13c51a,_0xdf9d8c,_0x49afad)=>_0x13c51a&&_0xdf9d8c&&!_0x49afad);},'onExecute':()=>_0x39c7fb(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x534784=this['editor'],_0xd06dc0=_0x534784['locale'];this['_saveRevisionFormView']=new he(_0xd06dc0,_0x534784['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x4d7898{['changeId'];['_model'];constructor(_0x3c5dcf,_0x350c98){super(_0x3c5dcf),this['_model']=_0x350c98,this['changeId']=_0x350c98['id'];const _0x556756=this['bindTemplate'],_0x4cd57f=R(_0x3c5dcf,_0x350c98['data']['isSuggestion']?'Suggested\x20by':'add'==_0x350c98['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x350c98['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x556756['to']('type',_0x10f810=>'ck-revision-change__'+_0x10f810)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4cd57f}]},{'text':'\x20'+_0x350c98['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x235c38(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1eb48c){super(),this['id']=_0x1eb48c['id']||_0x1a737e(),this['author']=_0x1eb48c['author'],this['type']=_0x1eb48c['type'],this['data']=_0x1eb48c['data']||{},this['rootName']=_0x1eb48c['rootName'],this['set']('createdAt',_0x1eb48c['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class J{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x4d14e3,_0x40ed3e){this['newRevisionId']=_0x4d14e3,this['oldRevisionId']=_0x40ed3e,this['changes']=new _0x1d5790();}['_setChanges'](_0xf036dc){for(const _0x51ff94 of _0xf036dc)this['changes']['add'](_0x51ff94);}}class l extends _0x858dc7{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x267b04,_0x55b3a5,S,$];}constructor(_0x8c1f2){super(_0x8c1f2),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1603c8,_0x162d28,_0x2426b6)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xd55567=>{for(const _0x4aac89 of this['editor']['editing']['view']['document']['roots'])_0x2426b6?_0xd55567['removeClass']('ck-editor__editable__overlay',_0x4aac89):_0xd55567['addClass']('ck-editor__editable__overlay',_0x4aac89);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x209c30=>null!==_0x209c30),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x587d4e,_0xedb61,_0x5758f9)=>_0x587d4e&&_0x5758f9?_0xedb61['changes']['getIndex'](_0x5758f9):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x1f3a34,_0x133c2d)=>_0x1f3a34?_0x133c2d['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x55b3a5);}['init'](){const _0x3bf345=this['editor'],_0x3586d8=new ot(_0x3bf345,{'direction':'backward'}),_0x258f16=new ot(_0x3bf345,{'direction':'forward'});(_0x3bf345['commands']['add']('showPreviousChange',_0x3586d8),_0x3bf345['commands']['add']('showNextChange',_0x258f16),_0x3bf345['commands']['add']('restoreRevision',new nt(_0x3bf345)),this['on']('change:numberOfChanges',()=>{_0x3586d8['refresh'](),_0x258f16['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3bf345['enableReadOnlyMode']('revision-viewer'),_0x3bf345['plugins']['has']('WidgetToolbarRepository'))&&_0x3bf345['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x5be6d2){return await this['_utils']['loadRevisionData'](_0x5be6d2,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x5be6d2);}async['getRevisionRootsAttributes'](_0x5ddc7d){return await this['_utils']['loadRevisionData'](_0x5ddc7d,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5ddc7d);}async['compare'](_0x1c272d,_0x4729af,_0x429414=!0x1){if(!this['isEnabled'])return;const _0x35c324=this['diff'],_0x579aad=this['repository'],_0x28e9ef='string'==typeof _0x1c272d?_0x579aad['getRevision'](_0x1c272d):_0x1c272d,_0x55af43='string'==typeof _0x4729af?_0x579aad['getRevision'](_0x4729af):_0x4729af,_0x43d4e7=_0x28e9ef['id'],_0x3bb687=_0x55af43?_0x55af43['id']:null;if(!_0x429414&&this['diff']&&this['diff']['newRevisionId']===_0x43d4e7&&this['diff']['oldRevisionId']===_0x3bb687)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x43d4e7,_0x3bb687);const _0x48ea86=this['_getRevisionsRange'](_0x28e9ef,_0x55af43,!0x0)['map'](_0x2c5c5f=>this['_utils']['loadRevisionData'](_0x2c5c5f,this['adapter']));return _0x48ea86['push'](new Promise(_0x11316b=>{setTimeout(_0x11316b,0x14);})),Promise['all'](_0x48ea86)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x47da56=this['_getDiff'](_0x43d4e7,_0x3bb687);for(const _0x3cd108 of _0x47da56['changes'])this['_changeIdToChange']['set'](_0x3cd108['id'],_0x3cd108);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29e249=>{for(const _0x49d530 of this['editor']['model']['document']['getRootNames']())_0x29e249['detachRoot'](_0x49d530);for(const _0x2eaec8 of Object['keys'](_0x47da56['model'])){const _0x48b3a7=_0x29e249['addRoot'](_0x2eaec8);for(const _0x2a9330 of Object['keys'](_0x47da56['attributes'][_0x2eaec8]))_0x29e249['setAttribute'](_0x2a9330,_0x47da56['attributes'][_0x2eaec8][_0x2a9330],_0x48b3a7);_0x29e249['insert'](_0x47da56['model'][_0x2eaec8],_0x48b3a7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x47da56['changes'])),this['isReady']=!0x0;})['catch'](_0x3a92c6=>{console['error'](_0x3a92c6),this['_cleanUp'](),_0x35c324&&(this['diff']=_0x35c324),this['isReady']=!0x0;});}['addRevisionData'](_0x3bf8e1,_0x321cf8){const _0x28d7f7=this['repository']['createRevision'](_0x3bf8e1);return _0x28d7f7['on']('_update',(_0x40ac30,_0x16b463,_0x49c991)=>_0x321cf8(_0x16b463,_0x49c991,_0x28d7f7)),this['repository']['addRevision'](_0x28d7f7),_0x28d7f7;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2a95f2=>{for(const _0x2c943f of this['editor']['model']['document']['getRootNames']())_0x2a95f2['detachRoot'](_0x2c943f);});}['_sortAndFilterDiffChanges'](_0x290a33){const _0x25d78d=[],_0xb255f1=new Map();for(const _0x28f7a7 of this['editor']['model']['document']['getRootNames']()){const _0x12781b=this['editor']['editing']['view']['getDomRoot'](_0x28f7a7);if(!_0x12781b)continue;const _0xc705b6=_0x12781b['getClientRects']()['item'](0x0);_0xc705b6&&(_0x25d78d['push'](_0x28f7a7),_0xb255f1['set'](_0x28f7a7,_0xc705b6));}return _0x25d78d['sort']((_0x4d2c17,_0x2015a3)=>{const _0x105936=_0xb255f1['get'](_0x4d2c17),_0x18e0d7=_0xb255f1['get'](_0x2015a3);return _0x105936['y']-_0x18e0d7['y']||_0x105936['x']-_0x18e0d7['x'];}),(_0x290a33=_0x290a33['filter'](_0x410430=>_0x25d78d['includes'](_0x410430['rootName'])))['sort']((_0x5a3e8e,_0x55c59a)=>_0x25d78d['indexOf'](_0x5a3e8e['rootName'])-_0x25d78d['indexOf'](_0x55c59a['rootName'])),_0x290a33;}['_makeTape'](_0x5d88e8){const _0x39bf33=Array['from'](_0x5d88e8['markers'])['filter'](([_0xd1274b,_0x44e8f1])=>_0xd1274b['startsWith']('revision:')&&!_0x44e8f1['isCollapsed']),_0x66fce=Array['from'](this['editor']['model']['createRangeIn'](_0x5d88e8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x39bf33['length'])for(const _0x295d00 of _0x66fce){const [_0x22ced1,_0x440385]=_0x39bf33[0x0],[,_0x59989a,_0x288df5]=_0x22ced1['split'](':');if(_0x440385['end']['isEqual'](_0x295d00['nextPosition'])&&_0x39bf33['shift'](),(_0x295d00['previousPosition']['isEqual'](_0x440385['start'])||_0x295d00['previousPosition']['isAfter'](_0x440385['start']))&&('insertion'==_0x59989a?_0x295d00['isAdded']={'userId':_0x288df5}:'deletion'==_0x59989a&&(_0x295d00['isRemoved']={'userId':_0x288df5})),0x0==_0x39bf33['length'])break;}return _0x66fce;}['_refreshStartEndIndex'](_0x5c5426){const _0x479fdc=new Map();for(let _0x20736c=0x0;_0x20736c<_0x5c5426['length'];_0x20736c++)'text'===_0x5c5426[_0x20736c]['type']?(_0x5c5426[_0x20736c]['item']['startIndex']=_0x20736c,_0x5c5426[_0x20736c]['item']['endIndex']=_0x20736c):('elementStart'===_0x5c5426[_0x20736c]['type']?_0x5c5426[_0x20736c]['item']['startIndex']=_0x20736c:'elementEnd'===_0x5c5426[_0x20736c]['type']&&(_0x5c5426[_0x20736c]['item']['endIndex']=_0x20736c),_0x479fdc['set'](_0x5c5426[_0x20736c]['id'],_0x20736c));for(const _0x2e9f73 of _0x479fdc['values']())'elementStart'===_0x5c5426[_0x2e9f73]['type']?_0x5c5426[_0x2e9f73]['item']['endIndex']=_0x479fdc['get'](_0x5c5426[_0x2e9f73]['pairId']):'elementEnd'===_0x5c5426[_0x2e9f73]['type']&&(_0x5c5426[_0x2e9f73]['item']['startIndex']=_0x479fdc['get'](_0x5c5426[_0x2e9f73]['pairId']));}['_processTape'](_0x2160a0){for(let _0xa51c4f=0x0;_0xa51c4f<_0x2160a0['length'];_0xa51c4f++){if('elementStart'===_0x2160a0[_0xa51c4f]['type'])_0x2160a0[_0xa51c4f]['item']['startIndex']=_0xa51c4f;else{if('elementEnd'===_0x2160a0[_0xa51c4f]['type']){_0x2160a0[_0xa51c4f]['item']['endIndex']=_0xa51c4f;const _0xe948cc=_0x2160a0[_0xa51c4f]['item']['startIndex'];_0x2160a0[_0xe948cc]['pairId']=_0x2160a0[_0xa51c4f]['id'],_0x2160a0[_0xa51c4f]['pairId']=_0x2160a0[_0xe948cc]['id'];}else _0x2160a0[_0xa51c4f]['item']['startIndex']=_0xa51c4f,_0x2160a0[_0xa51c4f]['item']['endIndex']=_0xa51c4f,_0x2160a0[_0xa51c4f]['pairId']=null;}_0x2160a0[_0xa51c4f]['markersStart']||(_0x2160a0[_0xa51c4f]['markersStart']=[],_0x2160a0[_0xa51c4f]['markersEnd']=[]);}}['_markInsertions'](_0xe184de,_0x31fdce){const _0x3de0fd=_0xe184de['filter'](_0x4f1880=>!_0x4f1880['isAdded']);for(let _0x2ad7ac=0x0;_0x2ad7ac<_0x31fdce['length'];_0x2ad7ac++)_0x31fdce[_0x2ad7ac]['isAdded']&&(_0x3de0fd[_0x2ad7ac]['isAdded']=_0x31fdce[_0x2ad7ac]['isAdded']);}['_getDiff'](_0x27cebd,_0x3b7068=null){const _0x19c3fe=this['repository']['getRevision'](_0x27cebd),_0x1ed555=_0x3b7068?this['repository']['getRevision'](_0x3b7068):null,_0xf9aaa0=this['_getRevisionsRange'](_0x19c3fe,_0x1ed555),_0x18f517=_0xf9aaa0[_0xf9aaa0['length']-0x1],_0x40533c=new Map(),_0x5d7339={'model':{},'attributes':{},'changes':[]},_0x55a3dc=new Set(),_0x12ba6e=new Map();for(let _0x528a43=_0xf9aaa0['length']-0x1;_0x528a43>=0x0;_0x528a43--){const _0x3c266a=_0xf9aaa0[_0x528a43];for(const _0x5c6f60 of Object['keys'](_0x3c266a['diffData']))if(_0x3c266a['diffData'][_0x5c6f60]['attachChange']){const _0x4f3020=_0x3c266a['diffData'][_0x5c6f60]['attachChange'];_0x4f3020['isAttached']?(_0x55a3dc['add'](_0x5c6f60),_0x12ba6e['has'](_0x5c6f60)&&_0x12ba6e['get'](_0x5c6f60)['userId']==_0x4f3020['userId']?_0x12ba6e['delete'](_0x5c6f60):_0x12ba6e['set'](_0x5c6f60,_0x4f3020)):_0x12ba6e['has'](_0x5c6f60)?(_0x55a3dc['delete'](_0x5c6f60),_0x12ba6e['delete'](_0x5c6f60)):(_0x55a3dc['add'](_0x5c6f60),_0x12ba6e['set'](_0x5c6f60,_0x4f3020));}else _0x55a3dc['add'](_0x5c6f60);}for(const _0x1c3319 of _0x55a3dc){const _0x4ab1a8=_0x12ba6e['has'](_0x1c3319)&&!_0x12ba6e['get'](_0x1c3319)['isAttached'];let _0x4e2353=_0x4ab1a8?_0xf9aaa0['length']-0x1:0x0;const _0x1576f2=_0x4ab1a8?-0x1:0x1;for(;_0xf9aaa0[_0x4e2353];){const _0x44a593=_0xf9aaa0[_0x4e2353];if(_0x44a593['diffData'][_0x1c3319]){const _0x567057=_0x4ab1a8?_0x44a593['diffData'][_0x1c3319]['attributesBefore']:_0x44a593['diffData'][_0x1c3319]['attributesAfter'];_0x5d7339['attributes'][_0x1c3319]=_0x567057?_0x2b75d6(_0x567057):{};break;}_0x4e2353+=_0x1576f2;}}for(const _0x23d38b of _0xf9aaa0){_0x23d38b['model']={};for(const _0x2e8b17 of _0x23d38b['authors'])_0x40533c['set'](_0x2e8b17['id'],_0x2e8b17);for(const _0x3dbc81 of _0x55a3dc){const _0x3142ba=_0x23d38b['diffData'][_0x3dbc81]?_0x23d38b['diffData'][_0x3dbc81]['insertions']:'[]',_0x13a0b2=_0x23d38b['diffData'][_0x3dbc81]?_0x23d38b['diffData'][_0x3dbc81]['deletions']:'[]';_0x23d38b['model'][_0x3dbc81]={'insertions':this['_utils']['_makeModelFromViewString'](_0x3142ba),'deletions':this['_utils']['_makeModelFromViewString'](_0x13a0b2)};}}for(const _0x477545 of _0x55a3dc){let _0x3ac2ad=null,_0x275251=0x0;const _0x4ad93b=new Map(Array['from'](_0x19c3fe['model'][_0x477545]['insertions']['markers'])['filter'](([_0x43969d])=>!_0x43969d['startsWith']('revision:')));let _0x1eb0d8=0x0;for(const _0x3aa24b of _0xf9aaa0){const _0x2994f2=this['_makeTape'](_0x3aa24b['model'][_0x477545]['insertions']);_0x3aa24b==_0x19c3fe?(_0x3ac2ad=_0x2994f2,_0x275251=_0x3ac2ad['length'],_0x3ac2ad['forEach'](_0x2c8e56=>{_0x2c8e56['id']=_0x1eb0d8++;}),this['_processTape'](_0x3ac2ad)):this['_markInsertions'](_0x3ac2ad,_0x2994f2);const _0x19041=_0x3ac2ad['filter'](_0x1c9602=>!_0x1c9602['isAdded'])['map'](_0x174c63=>_0x174c63['id']);let _0x221b21=0x0;const _0x5d549c=this['_makeTape'](_0x3aa24b['model'][_0x477545]['deletions']);_0x5d549c['forEach'](_0x3b66f2=>{_0x3b66f2['isRemoved']?_0x3b66f2['id']=_0x275251++:_0x3b66f2['id']=_0x19041[_0x221b21++];}),this['_processTape'](_0x5d549c),this['_setDistance'](_0x3ac2ad,'isAdded'),this['_setDistance'](_0x5d549c,'isRemoved'),_0x3aa24b==_0x19c3fe&&this['_markMarkers'](_0x3ac2ad,_0x4ad93b),_0x3ac2ad=this['_joinTapes'](_0x3ac2ad,_0x5d549c),this['_refreshStartEndIndex'](_0x3ac2ad),this['_setDistance'](_0x3ac2ad,'isRemoved');}_0x3ac2ad=_0x3ac2ad['filter'](_0x2d9f59=>!(_0x2d9f59['isAdded']&&_0x2d9f59['isRemoved']));const _0x1b1d3e=new Map(_0x18f517['model'][_0x477545]['deletions']['markers']),_0x28d626=new Set(_0x4ad93b['keys']());for(const _0x5b90a6 of _0x1b1d3e['keys']())_0x28d626['delete'](_0x5b90a6);this['_markSuggestions'](_0x3ac2ad,_0x28d626),this['_fixObsoleteTags'](_0x3ac2ad),_0x3ac2ad=this['_removeMissingPairs'](_0x3ac2ad),_0x3ac2ad=this['_markMismatchedRemovedTags'](_0x3ac2ad),_0x3ac2ad=this['_removeUnsupportedChanges'](_0x3ac2ad);const {root:_0x5ee7fe,changes:_0x5e65cd}=this['_makeModelFromTape'](_0x3ac2ad,_0x40533c,_0x477545);_0x5d7339['model'][_0x477545]=_0x5ee7fe;const _0x3f929f=_0x12ba6e['get'](_0x477545);if(_0x3f929f){const _0x8ab5c4=_0x40533c['get'](_0x3f929f['userId']),_0x24f5a9=new G({'author':_0x8ab5c4,'type':_0x3f929f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x477545});_0x5e65cd['unshift'](_0x24f5a9),_0x5d7339['attributes'][_0x477545]['revisionHistoryAttachChange']=_0x24f5a9['id'];}_0x5d7339['changes']=_0x5d7339['changes']['concat'](_0x5e65cd);}return _0x5d7339;}['_markMarkers'](_0x537776,_0x2b9a05){for(let _0x599bf8=0x0;_0x599bf8<_0x537776['length'];_0x599bf8++)for(const [_0xaa003a,_0x32b568]of _0x2b9a05)!_0x32b568['isCollapsed']&&_0x32b568['start']['isEqual'](_0x537776[_0x599bf8]['previousPosition'])&&_0x537776[_0x599bf8]['markersStart']['push'](_0xaa003a),_0x32b568['end']['isEqual'](_0x537776[_0x599bf8]['nextPosition'])&&_0x537776[_0x599bf8]['markersEnd']['push'](_0xaa003a);}['_joinTapes'](_0x38e666,_0x2fa61e){let _0x4cbdff=[],_0x37ac86=0x0,_0x16c52f=0x0;for(;_0x37ac86<_0x38e666['length']||_0x16c52f<_0x2fa61e['length'];){const _0x36d78c=_0x38e666[_0x37ac86]||{},_0x5981fb=_0x2fa61e[_0x16c52f]||{};if(_0x36d78c['id']==_0x5981fb['id'])_0x37ac86++,_0x16c52f++,_0x4cbdff['push'](_0x36d78c);else{if(_0x5981fb['isRemoved']&&_0x36d78c['isAdded']){const {commonTape:_0x4c7527,iEnd:_0x185e18,jEnd:_0x3f1526}=this['_threeWayMerge'](_0x38e666,_0x37ac86,_0x2fa61e,_0x16c52f);_0x4cbdff=_0x4cbdff['concat'](_0x4c7527),_0x37ac86=_0x185e18,_0x16c52f=_0x3f1526;}else _0x5981fb['isRemoved']?(_0x16c52f++,_0x4cbdff['push'](_0x5981fb)):(_0x37ac86++,_0x4cbdff['push'](_0x36d78c));}}return _0x4cbdff;}['_markSuggestions'](_0x39b513,_0x5c6615){const _0x1b4ed5=[];for(let _0xc75f28=0x0;_0xc75f28<_0x39b513['length'];_0xc75f28++){for(let _0x5c4762=0x0;_0x5c4762<_0x39b513[_0xc75f28]['markersStart']['length'];_0x5c4762++){const _0x278409=_0x39b513[_0xc75f28]['markersStart'][_0x5c4762];if(!_0x5c6615['has'](_0x278409))continue;const {group:_0x11eea8,type:_0x2706da,authorId:_0x1c35ef}=_0x55df35(_0x278409);'revision-suggestion'!=_0x11eea8||'insertion'!=_0x2706da&&'deletion'!=_0x2706da||(_0x1b4ed5['unshift']({'type':_0x2706da,'name':_0x278409,'userId':_0x1c35ef}),_0x39b513[_0xc75f28]['markersStart']['splice'](_0x5c4762,0x1),_0x5c4762--);}_0x77c0b7(_0x39b513[_0xc75f28]);for(let _0x310c65=0x0;_0x310c65<_0x39b513[_0xc75f28]['markersEnd']['length'];_0x310c65++){const _0x3e72af=_0x39b513[_0xc75f28]['markersEnd'][_0x310c65];if(!_0x5c6615['has'](_0x3e72af))continue;const {group:_0x155cb5,type:_0x13d6cc}=_0x55df35(_0x3e72af);if('revision-suggestion'!=_0x155cb5||'insertion'!=_0x13d6cc&&'deletion'!=_0x13d6cc)continue;_0x39b513[_0xc75f28]['markersEnd']['splice'](_0x310c65,0x1),_0x310c65--;const _0x87f172=_0x1b4ed5['findIndex'](_0x4cbdbb=>_0x4cbdbb['name']==_0x3e72af);_0x87f172>-0x1&&_0x1b4ed5['splice'](_0x87f172,0x1);}}function _0x55df35(_0x460f1e){const _0x59a35d=_0x460f1e['split'](':');return{'group':_0x59a35d[0x0],'type':_0x59a35d[0x1],'subType':_0x59a35d['length']>=0x5?_0x59a35d[0x2]:null,'id':_0x59a35d['length']<0x5?_0x59a35d[0x2]:_0x59a35d[0x3],'authorId':_0x59a35d['length']<0x5?_0x59a35d[0x3]:_0x59a35d[0x4],'markerCount':0x6==_0x59a35d['length']?_0x59a35d[0x5]:null};}function _0x77c0b7(_0x4eb7fe){for(let _0x2c9fc1=0x0;_0x2c9fc1<_0x1b4ed5['length'];_0x2c9fc1++){if(_0x4eb7fe['isAdded']&&'insertion'==_0x1b4ed5[_0x2c9fc1]['type']&&_0x4eb7fe['isAdded']['userId']==_0x1b4ed5[_0x2c9fc1]['userId'])return _0x4eb7fe['isAddSuggestion']=_0x1b4ed5[_0x2c9fc1],void delete _0x4eb7fe['isAdded'];if(!_0x4eb7fe['isAdded']&&!_0x4eb7fe['isRemoved']&&'deletion'==_0x1b4ed5[_0x2c9fc1]['type'])return void(_0x4eb7fe['isRemoveSuggestion']=_0x1b4ed5[_0x2c9fc1]);}}}['_setDistance'](_0x524c28,_0xcbe678){let _0x31f9fb=0x0,_0x3bdd4b=!0x1;const _0x40018a=new Map();for(const _0x4a0af2 of _0x524c28)_0x4a0af2[_0xcbe678]?_0x3bdd4b&&(_0x31f9fb++,_0x3bdd4b=!0x1):(_0x31f9fb++,_0x3bdd4b=!0x0),_0x40018a['set'](_0x4a0af2['id'],_0x31f9fb);for(let _0x29449a=0x0;_0x29449a<_0x524c28['length'];_0x29449a++){if('isRemoved'==_0xcbe678&&_0x524c28[_0x29449a]['isAdded']||'isAdded'==_0xcbe678&&_0x524c28[_0x29449a]['isRemoved'])continue;if('text'==_0x524c28[_0x29449a]['type']){_0x524c28[_0x29449a]['distance']=0x0;continue;}const _0x2945bc=_0x40018a['get'](_0x524c28[_0x29449a]['pairId']),_0xe9628b=_0x40018a['get'](_0x524c28[_0x29449a]['id']);_0x524c28[_0x29449a]['distance']=_0x2945bc-_0xe9628b;}}['_getRevisionsRange'](_0x49888d,_0x8705b,_0xe4de7f=!0x1){const _0x47010a=[];let _0x38c3d7=this['repository']['getIndex'](_0x49888d),_0x3aecd9=this['repository']['getIndex'](_0x8705b);for(-0x1==_0x3aecd9&&(_0x3aecd9=this['repository']['_revisions']['length'],_0xe4de7f=!0x1);_0x38c3d7<_0x3aecd9;)_0x47010a['push'](this['repository']['getRevision'](_0x38c3d7)),_0x38c3d7++;return _0xe4de7f&&_0x47010a['push'](this['repository']['getRevision'](_0x38c3d7)),_0x47010a;}['_threeWayMerge'](_0x4776e4,_0x24e38d,_0x24df9e,_0x55eb98){const _0x42d8f2=this['editor']['model']['schema'];let _0x13ad62=_0x24e38d;for(;_0x4776e4[_0x13ad62]&&_0x4776e4[_0x13ad62]['isAdded'];)_0x13ad62++;let _0x29bfd6=_0x55eb98;for(;_0x24df9e[_0x29bfd6]&&_0x24df9e[_0x29bfd6]['isRemoved'];)_0x29bfd6++;_0x1b528b(_0x4776e4,_0x24e38d,_0x13ad62),_0x1b528b(_0x24df9e,_0x55eb98,_0x29bfd6);const _0x5090ce=_0x24df9e['slice'](_0x55eb98,_0x29bfd6)['concat'](_0x4776e4['slice'](_0x24e38d,_0x13ad62));return _0x5090ce['sort']((_0x288205,_0x5c2551)=>_0x288205['side']!=_0x5c2551['side']?_0x288205['side']-_0x5c2551['side']:_0x288205['level']!=_0x5c2551['level']?_0x288205['level']-_0x5c2551['level']:_0x288205['distance']!=_0x5c2551['distance']?_0x5c2551['distance']-_0x288205['distance']:!!_0x288205['isAdded']!=!!_0x5c2551['isAdded']?-0x1==_0x288205['side']||0x0==_0x288205['side']?_0x288205['isAdded']?-0x1:0x1:_0x288205['isAdded']?0x1:-0x1:_0x288205['index']-_0x5c2551['index']),{'commonTape':_0x5090ce,'iEnd':_0x13ad62,'jEnd':_0x29bfd6};function _0x1b528b(_0x1e7a9c,_0x169b34,_0x17c683){let _0x442aef=-0x1,_0xf6d0a9=Number['POSITIVE_INFINITY'],_0x2400ce=!0x0;for(let _0xcba6bf=_0x169b34;_0xcba6bf<_0x17c683;_0xcba6bf++)if(_0x42d8f2['isInline'](_0x1e7a9c[_0xcba6bf]['item'])||(_0x2400ce=!0x1),_0x1e7a9c[_0xcba6bf]['item']['startIndex']<_0x169b34&&(_0x442aef=_0xcba6bf),_0x1e7a9c[_0xcba6bf]['item']['endIndex']>=_0x17c683){_0xf6d0a9=_0xcba6bf;break;}_0x2400ce&&(_0x442aef=_0x17c683-0x1);for(let _0x33f6c0=_0x169b34;_0x33f6c0<_0x17c683;_0x33f6c0++)_0x1e7a9c[_0x33f6c0]['side']=_0x33f6c0<=_0x442aef?-0x1:_0x33f6c0<_0xf6d0a9?0x0:0x1,_0x1e7a9c[_0x33f6c0]['index']=_0x33f6c0;let _0x2ac190=0x0;for(let _0x440f2f=_0x169b34;_0x440f2f<=_0x442aef;_0x440f2f++)0x0==_0x1e7a9c[_0x440f2f]['distance']?_0x1e7a9c[_0x440f2f]['level']=_0x2ac190:(_0x2ac190++,_0x1e7a9c[_0x440f2f]['level']=_0x2ac190,_0x2ac190++);for(let _0x52123c=_0x169b34;_0x52123c<_0x17c683;_0x52123c++)0x0==_0x1e7a9c[_0x52123c]['side']&&(_0x1e7a9c[_0x52123c]['level']=_0x2ac190);_0x2ac190=0x0;for(let _0x40b297=_0x17c683-0x1;_0x40b297>=_0xf6d0a9;_0x40b297--)0x0==_0x1e7a9c[_0x40b297]['distance']?_0x1e7a9c[_0x40b297]['level']=_0x2ac190:(_0x2ac190--,_0x1e7a9c[_0x40b297]['level']=_0x2ac190,_0x2ac190--);}}['_fixObsoleteTags'](_0x35b594){const _0x91db2f=new Map(),_0x5aa413=this['editor']['model']['schema'];for(let _0x2f2c65=0x1;_0x2f2c65<_0x35b594['length'];_0x2f2c65++){let _0x48453d,_0x369398,_0x30549f;const _0x1dc2ab=_0x35b594[_0x2f2c65],_0x54a386=_0x35b594[_0x2f2c65-0x1];if('text'==_0x1dc2ab['type'])continue;if(_0x1dc2ab['type']!=_0x54a386['type'])continue;if(!_0x5aa413['isBlock'](_0x54a386['item'])||_0x5aa413['isLimit'](_0x54a386['item']))continue;if(!_0x5aa413['isBlock'](_0x1dc2ab['item'])||_0x5aa413['isLimit'](_0x1dc2ab['item']))continue;if((_0x35b594[_0x2f2c65]['isAdded']||_0x35b594[_0x2f2c65]['isAddSuggestion'])&&_0x35b594[_0x2f2c65-0x1]['isRemoved'])_0x48453d=_0x35b594[_0x2f2c65],_0x369398=_0x35b594[_0x2f2c65-0x1],_0x30549f=_0x2f2c65-0x1;else{if(!_0x35b594[_0x2f2c65]['isRemoved']||!_0x35b594[_0x2f2c65-0x1]['isAdded']&&!_0x35b594[_0x2f2c65-0x1]['isAddSuggestion'])continue;_0x48453d=_0x35b594[_0x2f2c65-0x1],_0x369398=_0x35b594[_0x2f2c65],_0x30549f=_0x2f2c65;}const _0x545519=_0x48453d['level']==_0x369398['level'],_0x5dfd86=Math['abs'](_0x48453d['level'])<Math['abs'](_0x369398['level'])&&0x0==_0x369398['distance'];(_0x545519||_0x5dfd86)&&(_0x91db2f['set'](_0x369398['id'],_0x48453d['id']),_0x35b594['splice'](_0x30549f,0x1),_0x2f2c65--,_0x48453d['isAdded']=!0x1);}for(let _0x2bc37a=0x0;_0x2bc37a<_0x35b594['length'];_0x2bc37a++)_0x91db2f['has'](_0x35b594[_0x2bc37a]['pairId'])&&(_0x35b594[_0x2bc37a]['pairId']=_0x91db2f['get'](_0x35b594[_0x2bc37a]['pairId']));}['_removeMissingPairs'](_0x469b3d){const _0xc09700=new Set(_0x469b3d['map'](_0x30873f=>_0x30873f['id']));for(let _0x192c6a=0x0;_0x192c6a<_0x469b3d['length'];_0x192c6a++)_0xc09700['has'](_0x469b3d[_0x192c6a]['pairId'])||0x0==_0x469b3d[_0x192c6a]['distance']||(_0x469b3d[_0x192c6a]['isIncorrect']=!0x0);return _0x469b3d['filter'](_0x20c8ad=>!_0x20c8ad['isIncorrect']);}['_markMismatchedRemovedTags'](_0x546f48){const _0xa6422=new Set();for(let _0x226129=0x0;_0x226129<_0x546f48['length'];_0x226129++){if(_0xa6422['has'](_0x546f48[_0x226129]['id'])&&_0x546f48[_0x226129]['isRemoved']&&(_0x546f48[_0x226129]['isIncorrect']=!0x0),_0x546f48[_0x226129]['isIncorrect'])continue;if(0x0==_0x546f48[_0x226129]['distance'])continue;if('elementStart'!=_0x546f48[_0x226129]['type'])continue;if(null==_0x546f48[_0x226129]['pairId'])continue;let _0x8fab52=_0x226129+0x1,_0x3a11b9=0x0;for(;_0x546f48[_0x8fab52]['id']!=_0x546f48[_0x226129]['pairId'];)'elementStart'==_0x546f48[_0x8fab52]['type']?_0x3a11b9++:'elementEnd'==_0x546f48[_0x8fab52]['type']&&_0x3a11b9--,_0x8fab52++;if(0x0!=_0x3a11b9){if(_0x546f48[_0x226129]['isRemoved'])_0x546f48[_0x226129]['isIncorrect']=!0x0;else{for(;_0x8fab52!=_0x226129;)_0x546f48[_0x8fab52]['isRemoved']&&0x0!=_0x546f48[_0x8fab52]['distance']&&(_0x546f48[_0x8fab52]['isIncorrect']=!0x0,_0xa6422['add'](_0x546f48[_0x8fab52]['pairId'])),_0x8fab52--;}}}return _0x546f48['filter'](_0xcde37a=>!_0xcde37a['isIncorrect']);}['_removeUnsupportedChanges'](_0x23fefa){const _0x402db6=this['editor']['model']['schema'];for(let _0x157d1d=0x0;_0x157d1d<_0x23fefa['length'];_0x157d1d++){if(!(_0x23fefa[_0x157d1d]['isAdded']||_0x23fefa[_0x157d1d]['isAddSuggestion']||_0x23fefa[_0x157d1d]['isRemoved']||_0x23fefa[_0x157d1d]['isRemoveSuggestion']))continue;if(0x0==_0x23fefa[_0x157d1d]['distance'])continue;const _0x922c24=_0x23fefa[_0x157d1d]['item'];_0x402db6['isBlock'](_0x922c24)||_0x402db6['isLimit'](_0x922c24)||(_0x23fefa[_0x157d1d]['isAdded']&&delete _0x23fefa[_0x157d1d]['isAdded'],_0x23fefa[_0x157d1d]['isAddSuggestion']&&delete _0x23fefa[_0x157d1d]['isAddSuggestion'],_0x23fefa[_0x157d1d]['isRemoveSuggestion']&&delete _0x23fefa[_0x157d1d]['isRemoveSuggestion'],_0x23fefa[_0x157d1d]['isRemoved']&&(_0x23fefa[_0x157d1d]['isIncorrect']=!0x0));}return _0x23fefa['filter'](_0x47651e=>!_0x47651e['isIncorrect']);}['_makeModelFromTape'](_0x2bdb2a,_0x6a452e,_0xe58510){const _0x4028d9=new _0x3a58c7(),_0x2ac552=[],_0xd119cd=new Map(),_0x585720=this['editor']['model'],_0x129807=_0x585720['schema'],_0x57da44=[_0x4028d9],_0x491330={},_0x3e6d71={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x21917c=null;const _0x25bcc9=[0x0];for(let _0x3089a6=0x0;_0x3089a6<_0x2bdb2a['length'];_0x3089a6++)if('elementStart'===_0x2bdb2a[_0x3089a6]['type']){_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9);const _0x1bbb8d=new _0x3061f3(_0x2bdb2a[_0x3089a6]['item']['name'],_0x2bdb2a[_0x3089a6]['item']['getAttributes']());_0x57da44[0x0]['_appendChild'](_0x1bbb8d),_0x25bcc9['push'](0x0),_0x57da44['unshift'](_0x1bbb8d),_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9);}else'elementEnd'===_0x2bdb2a[_0x3089a6]['type']?(_0x57da44['shift'](),_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9),_0x25bcc9['pop'](),_0x25bcc9[_0x25bcc9['length']-0x1]++,_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9)):(_0x2bdb2a[_0x3089a6]['previousPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9),_0x21917c?_0x21917c['_data']+=_0x2bdb2a[_0x3089a6]['item']['data']:_0x21917c=new _0x54876f(_0x2bdb2a[_0x3089a6]['item']['data'],_0x2bdb2a[_0x3089a6]['item']['getAttributes']()),_0x2bdb2a[_0x3089a6+0x1]&&'text'===_0x2bdb2a[_0x3089a6+0x1]['type']&&_0x3e673b(_0x21917c,_0x2bdb2a[_0x3089a6+0x1]['item'])||(_0x57da44[0x0]['_appendChild'](_0x21917c),_0x21917c=null),_0x25bcc9[_0x25bcc9['length']-0x1]+=_0x2bdb2a[_0x3089a6]['item']['offsetSize'],_0x2bdb2a[_0x3089a6]['nextPosition']=_0x585720['createPositionFromPath'](_0x4028d9,_0x25bcc9));for(let _0x348324=0x0;_0x348324<_0x2bdb2a['length'];_0x348324++){const _0x38c591=_0x2bdb2a[_0x348324]['previousPosition'],_0xe31d98=_0x2bdb2a[_0x348324]['nextPosition'];for(const _0x236a1a of _0x2bdb2a[_0x348324]['markersStart'])_0xd119cd['set'](_0x236a1a,{'start':_0x38c591,'end':null});_0x10dbf3('isRemoveSuggestion',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isAddSuggestion',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isRemoved',_0x348324,_0x38c591,_0xe31d98),_0x10dbf3('isAdded',_0x348324,_0x38c591,_0xe31d98);for(const _0x461892 of _0x2bdb2a[_0x348324]['markersEnd']){const _0x402705=_0xd119cd['get'](_0x461892);_0x402705?_0x402705['end']=_0xe31d98:_0xd119cd['set'](_0x461892,{'start':_0xe31d98,'end':_0xe31d98});}}for(const [_0x4d8f30,_0x5d94b2]of _0xd119cd){const _0x36ce85=this['editor']['model']['createRange'](_0x5d94b2['start'],_0x5d94b2['end']);_0x4028d9['markers']['set'](_0x4d8f30,_0x36ce85);}return _0x2ac552['sort']((_0x19a4e0,_0x3bfa6f)=>{const _0x3def93=_0x4028d9['markers']['get']('revision:'+_0x19a4e0['id']),_0x26d11d=_0x4028d9['markers']['get']('revision:'+_0x3bfa6f['id']);return _0x3def93['start']['isBefore'](_0x26d11d['start'])?-0x1:_0x3def93['start']['isAfter'](_0x26d11d['start'])?0x1:_0x3def93['end']['isBefore'](_0x26d11d['end'])?-0x1:_0x3def93['end']['isAfter'](_0x26d11d['end'])?0x1:'add'===_0x19a4e0['type']?-0x1:0x1;}),{'root':_0x4028d9,'changes':_0x2ac552};function _0x10dbf3(_0x4f6619,_0x21147c,_0x2ea131,_0x52b1c6){const _0x21b686=!!_0x2bdb2a[_0x21147c][_0x4f6619],_0xb36863=_0x21b686?_0x2bdb2a[_0x21147c][_0x4f6619]['userId']:null,_0x411583=_0x21147c===_0x2bdb2a['length']-0x1,_0x18f901=_0x3e6d71[_0x4f6619][0x0],_0x15ff5a=_0x129807['isObject'](_0x2bdb2a[_0x21147c]['item']);!_0x491330[_0x4f6619]&&_0x21b686?_0x491330[_0x4f6619]={'start':_0x2ea131,'tapeItem':_0x2bdb2a[_0x21147c],'userId':_0xb36863,'type':_0x4f6619}:_0x491330[_0x4f6619]&&!_0x21b686?(_0x491330[_0x4f6619]['end']=_0x2ea131,_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]=null):_0x491330[_0x4f6619]&&_0x21b686&&_0x491330[_0x4f6619]['userId']!==_0xb36863&&(_0x491330[_0x4f6619]['end']=_0x2ea131,_0x18f901&&_0x18f901['userId']===_0x491330[_0x4f6619]['userId']||_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]={'start':_0x2ea131,'tapeItem':_0x2bdb2a[_0x21147c],'userId':_0xb36863,'type':_0x4f6619}),_0x491330[_0x4f6619]&&_0x15ff5a&&('elementStart'!==_0x2bdb2a[_0x21147c]['type']||_0x18f901&&_0x18f901['userId']===_0xb36863||_0x3e6d71[_0x4f6619]['unshift']({'userId':_0xb36863,'object':_0x2bdb2a[_0x21147c]['item'],'change':_0x491330[_0x4f6619]}),'elementEnd'===_0x2bdb2a[_0x21147c]['type']&&_0x18f901&&_0x18f901['object']===_0x2bdb2a[_0x21147c]['item']&&(_0x3e6d71[_0x4f6619]['shift'](),_0x491330[_0x4f6619]=_0x18f901['change'])),_0x491330[_0x4f6619]&&_0x411583&&(_0x491330[_0x4f6619]['end']=_0x52b1c6,_0x252f93(_0x491330[_0x4f6619]),_0x491330[_0x4f6619]=null);}function _0x252f93({start:_0x189f4f,end:_0x3764d2,tapeItem:_0x56e6f9,userId:_0x18e689,type:_0x431c57}){const _0x5632cd=_0x56e6f9['item'],_0x35b3ac=_0x585720['schema']['isBlock'](_0x5632cd)&&!_0x585720['schema']['isLimit'](_0x5632cd),_0x12cf18=_0x189f4f['nodeAfter']==_0x3764d2['parent']&&_0x3764d2['isAtStart'];if(_0x35b3ac&&_0x12cf18)return;const _0x2cf88d=_0x585720['createRange'](_0x189f4f,_0x3764d2),_0x9706e=_0x6a452e['get'](_0x18e689),_0x724dd4=new G({'author':_0x9706e,'type':'isAdded'==_0x431c57||'isAddSuggestion'==_0x431c57?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x431c57||'isRemoveSuggestion'==_0x431c57},'createdAt':new Date(),'rootName':_0xe58510});_0x2ac552['push'](_0x724dd4),_0x4028d9['markers']['set']('revision:'+_0x724dd4['id'],_0x2cf88d);}function _0x3e673b(_0x1fbcae,_0x10a17d){const _0x4f462f=_0x1fbcae['getAttributes'](),_0x4fe22e=_0x10a17d['getAttributes']();for(const _0x547d3f of _0x4f462f){if(_0x547d3f[0x1]!==_0x10a17d['getAttribute'](_0x547d3f[0x0]))return!0x1;_0x4fe22e['next']();}return _0x4fe22e['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x26b7c0=>{const _0x1b5d6d=_0x26b7c0['markerName']['split'](':')[0x1],_0x4170cb=this['_getChangeFromId'](_0x1b5d6d);if(!_0x4170cb)return null;const _0x3c5657='add'==_0x4170cb['type']?'insertion':'deletion',_0x4df617=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3c5657];return _0x4170cb['data']['isSuggestion']&&_0x4df617['push']('ck-suggestion-marker-'+_0x3c5657+'-new'),this['activeChange']==_0x4170cb&&_0x4df617['push']('ck-suggestion-marker--active'),{'classes':_0x4df617,'attributes':{'data-change-id':_0x1b5d6d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x447ec3=>{_0x447ec3['on']('element:pre',(_0x228f6d,_0x24240c,_0x192b10)=>{const _0x19828a=_0x24240c['viewItem']['getChild'](0x0);if(!_0x19828a||!_0x19828a['is']('element','code'))return;if(!_0x192b10['consumable']['consume'](_0x19828a,{'attributes':['vid_start','vid_end']}))return;const _0x536502=_0x24240c['modelRange']['start']['nodeAfter'];_0x192b10['writer']['setAttribute']('vid_start',_0x19828a['getAttribute']('vid_start'),_0x536502),_0x192b10['writer']['setAttribute']('vid_end',_0x19828a['getAttribute']('vid_end'),_0x536502);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3ff276=>{_0x3ff276['on']('element',(_0x2acf8e,_0x4aca0e,_0x3a1c1b)=>{if(!_0x3a1c1b['consumable']['consume'](_0x4aca0e['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x4aca0e['modelRange']['isCollapsed'])return;const _0x347779=_0x4aca0e['modelRange']['start']['nodeAfter'];_0x347779['hasAttribute']('vid_start')||_0x347779['hasAttribute']('vid')||(_0x3a1c1b['writer']['setAttribute']('vid_start',_0x4aca0e['viewItem']['getAttribute']('vid_start'),_0x347779),_0x3a1c1b['writer']['setAttribute']('vid_end',_0x4aca0e['viewItem']['getAttribute']('vid_end'),_0x347779));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x39901a=>_0x39901a['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ba4ef,[,_0x281165])=>{['vid_start','vid_end','vid']['includes'](_0x281165)&&(_0x1ba4ef['return']=!0x0,_0x1ba4ef['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x1c493a=>{_0x1c493a['on']('attribute:vid',(_0x482aa8,_0x19fcf6,_0x2cc074)=>{if('\x20'!=_0x19fcf6['item']['data']||_0x19fcf6['item']['parent']['maxOffset']>0x1)return;if(!_0x2cc074['consumable']['consume'](_0x19fcf6['item'],_0x482aa8['name']))return;const _0x2bd83a=_0x2cc074['writer'],_0x2c3a56=_0x2cc074['mapper']['toViewRange'](_0x19fcf6['range']);_0x2bd83a['wrap'](_0x2c3a56,_0x2bd83a['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4e592d){const _0x381b9e=_0x4e592d['plugins']['get']('RevisionViewer');return(_0x4c9e01,_0x4ee834,_0x1a1678)=>{const _0x2f9869=_0x4ee834['markerName']['split'](':')[0x1],_0x45743e=_0x381b9e['_getChangeFromId'](_0x2f9869);if(!_0x45743e)return null;const _0x14756a='add'==_0x45743e['type']?'split':'merge';if(!_0x1a1678['consumable']['test'](_0x4ee834['markerRange'],_0x4c9e01['name']))return;const _0x1965ad=_0x4ee834['markerRange']['getWalker'](),_0x493347=_0x4ee834['markerRange']['start'],_0x1da131=_0x4e592d['model']['schema'];let _0x373a6f=null,_0x516709=null,_0xb456ef=!0x1,_0x151b7e=!0x1;for(const _0xd943dc of _0x1965ad){const _0x50c7c5=_0xd943dc['item'];_0xb456ef=_0xb456ef||_0x1da131['isContent'](_0x50c7c5);const _0xdaefdd=_0x1a1678['mapper']['toViewElement'](_0x50c7c5);if(_0xdaefdd&&_0xdaefdd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd943dc['type']&&(_0x1da131['isBlock'](_0x50c7c5)&&!_0x1da131['isLimit'](_0x50c7c5)&&(_0x50c7c5['nextSibling']||_0x493347['isAtEnd']?_0x373a6f&&_0x373a6f['parent']==_0x50c7c5||(_0x373a6f=_0x50c7c5,_0x3f6883(_0xd943dc['previousPosition']),_0x151b7e=!0x0):_0x516709=_0x516709||_0xd943dc['previousPosition']));}function _0x3f6883(_0x17d1fa){const _0x5f2866=_0x1a1678['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x14756a}),_0x501e89=_0x1a1678['mapper']['toViewPosition'](_0x17d1fa);_0x45743e['data']['isSuggestion']&&_0x1a1678['writer']['addClass']('ck-suggestion-marker-'+_0x14756a+'-new',_0x5f2866),_0x381b9e['activeChange']==_0x45743e&&_0x1a1678['writer']['addClass']('ck-suggestion-marker--active',_0x5f2866),_0x1a1678['writer']['insert'](_0x501e89,_0x5f2866),_0x1a1678['mapper']['bindElementToMarker'](_0x5f2866,_0x4ee834['markerName']);}_0xb456ef||_0x151b7e||!_0x516709||_0x3f6883(_0x516709);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x447b0b,_0x5f1406,_0x1dab7d)=>{const _0x15faa7=_0x1dab7d['mapper']['markerNameToElements'](_0x5f1406['markerName']);if(_0x15faa7){for(const _0x48dab1 of _0x15faa7)(_0x48dab1['hasClass']('ck-suggestion-marker-split')||_0x48dab1['hasClass']('ck-suggestion-marker-merge'))&&(_0x1dab7d['mapper']['unbindElementFromMarkerName'](_0x48dab1,_0x5f1406['markerName']),_0x1dab7d['writer']['remove'](_0x48dab1));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x1a16eb,_0x13d0ba,_0x5b3291)=>{const _0x46789a=_0x13d0ba['markerName']['split'](':')[0x1],_0x797306=this['_getChangeFromId'](_0x46789a);if(!_0x797306)return null;const _0x54e0e0='add'==_0x797306['type']?'split':'merge';if(_0x5b3291['consumable']['test'](_0x13d0ba['markerRange'],_0x1a16eb['name']))for(const _0x1fe8cf of _0x13d0ba['markerRange']['getItems']()){if(!_0x1fe8cf['is']('element','softBreak'))continue;const _0x20356b=_0x5b3291['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x54e0e0}),_0x5b5551=_0x5b3291['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1fe8cf));_0x797306['data']['isSuggestion']&&_0x5b3291['writer']['addClass']('ck-suggestion-marker-'+_0x54e0e0+'-new',_0x20356b),this['activeChange']==_0x797306&&_0x5b3291['writer']['addClass']('ck-suggestion-marker--active',_0x20356b),_0x5b3291['writer']['insert'](_0x5b5551,_0x20356b),_0x5b3291['mapper']['bindElementToMarker'](_0x20356b,_0x13d0ba['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x4c8fc1=>{for(const _0x3e8626 of this['editor']['model']['document']['getRootNames']()){const _0xc1b30=this['editor']['model']['document']['getRoot'](_0x3e8626),_0x51a44a=this['editor']['editing']['view']['document']['getRoot'](_0x3e8626);if(_0x51a44a){const _0x508343=_0xc1b30['getAttribute']('revisionHistoryAttachChange');if(_0x4c8fc1['removeAttribute']('data-change-id',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root-add',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root-remove',_0x51a44a),_0x4c8fc1['removeClass']('ck-revision-history-root--active',_0x51a44a),_0x508343){const _0x387a58=this['_getChangeFromId'](_0x508343);if(!_0x387a58)return null;_0x4c8fc1['setAttribute']('data-change-id',_0x508343,_0x51a44a),_0x4c8fc1['addClass']('ck-revision-history-root-'+_0x387a58['type'],_0x51a44a),this['activeChange']==_0x387a58&&_0x4c8fc1['addClass']('ck-revision-history-root--active',_0x51a44a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x1004c1=>'revision-comment:'+_0x1004c1,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x17153a=>'revision-suggestion:'+_0x17153a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x127be0=>({'name':'suggestion:'+_0x127be0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x3b7489=>{const _0x48c88f=_0x3b7489['markerName']['split'](':')[0x1];return'insertion'!=_0x48c88f&&'deletion'!=_0x48c88f?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48c88f]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Q(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Q(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x519e66,_0x4b8975,_0x56a366)=>{const _0x59207f=_0x56a366['mapper']['markerNameToElements'](_0x4b8975['markerName']);if(_0x59207f){for(const _0x53fca3 of _0x59207f)_0x53fca3['is']('uiElement')&&(_0x56a366['mapper']['unbindElementFromMarkerName'](_0x53fca3,_0x4b8975['markerName']),_0x56a366['writer']['remove'](_0x53fca3));}},{'priority':'high'});}['_getChangeFromId'](_0x421e74){return this['_changeIdToChange']['get'](_0x421e74);}['_getViewForChange'](_0x12a39d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x12a39d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x13ee28,_0x46891a,_0x497792,_0xdcc80e)=>{_0xdcc80e&&this['_balloon']['remove'](_0xdcc80e),_0x497792&&(this['_balloon']['add']({'view':_0x497792,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x5de825=this['editor']['editing'],_0x39ceba=this['_getChangeFromId'](_0x497792['changeId']);let _0x24760f;if(_0x39ceba['data']['isOnRoot']){const _0x2b851c=_0x5de825['view']['getDomRoot'](_0x39ceba['rootName']);_0x24760f=Array['from'](_0x2b851c['getClientRects']());}else{const _0x5af7f8=this['editor']['model']['markers']['get']('revision:'+_0x497792['changeId']);_0x24760f=Array['from'](_0x5de825['mapper']['markerNameToElements'](_0x5af7f8['name']))['map'](_0x3ab224=>_0x5de825['view']['domConverter']['mapViewToDom'](_0x3ab224))['map'](_0x124e18=>Array['from'](_0x124e18['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x24760f[0x0];return _0x24760f['find'](_0x30d64f=>_0x30d64f['top']-0x3<=this['_activeViewTarget']['y']&&_0x30d64f['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30d64f['left']-0x3<=this['_activeViewTarget']['x']&&_0x30d64f['right']+0x3>=this['_activeViewTarget']['x'])||_0x24760f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x57f1d1,_0x1566c1,_0x3f8ec0,_0x39a2eb)=>{this['activeView']=_0x3f8ec0?this['_getViewForChange'](_0x3f8ec0):null,this['editor']['model']['change'](()=>{const _0x8abf=this['editor']['editing'];_0x39a2eb&&(_0x39a2eb['data']['isOnRoot']?_0x8abf['view']['change'](_0xbf014d=>{_0xbf014d['removeClass']('ck-revision-history-root--active',_0x8abf['view']['document']['getRoot'](_0x39a2eb['rootName']));}):_0x8abf['reconvertMarker']('revision:'+_0x39a2eb['id'])),_0x3f8ec0&&(_0x3f8ec0['data']['isOnRoot']?_0x8abf['view']['change'](_0x2e83db=>{_0x2e83db['addClass']('ck-revision-history-root--active',_0x8abf['view']['document']['getRoot'](_0x3f8ec0['rootName']));}):_0x8abf['reconvertMarker']('revision:'+_0x3f8ec0['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5c2660,_0x195108)=>{if(this['activeChange'])return;const _0x5ae04d=this['_findChangeIdFromDomTarget'](_0x195108['target']),_0x491f06=this['_changeIdToChange']['get'](_0x5ae04d);_0x491f06?(this['_activeViewTarget']={'x':_0x195108['domEvent']['x'],'y':_0x195108['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x491f06)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x539f30,_0x7fde43)=>{const _0x1f4946=this['_findChangeIdFromDomTarget'](_0x7fde43['target']),_0x3dd60f=this['_changeIdToChange']['get'](_0x1f4946);_0x3dd60f?(this['_activeViewTarget']={'x':_0x7fde43['domEvent']['x'],'y':_0x7fde43['domEvent']['y']},_0x3dd60f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3dd60f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x2e4096){do{const _0x3512e3=_0x2e4096['getAttribute']('data-change-id');if(_0x3512e3)return _0x3512e3;_0x2e4096=_0x2e4096['parent'];}while(_0x2e4096);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x3a592a=>{for(const _0x3a6a9c of this['editor']['model']['markers'])_0x3a592a['removeMarker'](_0x3a6a9c);});}}function Q(_0xac6705,_0x11e51d){return(_0x38dce,_0x37da2e,_0x2c7172)=>{if(!_0x2c7172['consumable']['test'](_0x37da2e['markerRange'],_0x38dce['name']))return;const _0x49c04e=_0x37da2e['markerRange']['getWalker'](),_0x120023=_0x37da2e['markerRange']['start'],_0x23c9d8=_0xac6705['model']['schema'];let _0x379c1b=null,_0x1261bd=null,_0x43c8fd=!0x1,_0x5b5743=!0x1;for(const _0x47e6a6 of _0x49c04e){const _0x227729=_0x47e6a6['item'];_0x43c8fd=_0x43c8fd||_0x23c9d8['isContent'](_0x227729);const _0x1ac3ad=_0x2c7172['mapper']['toViewElement'](_0x227729);if(_0x1ac3ad&&_0x1ac3ad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x47e6a6['type']&&(_0x23c9d8['isBlock'](_0x227729)&&!_0x23c9d8['isLimit'](_0x227729)&&(_0x227729['nextSibling']||_0x120023['isAtEnd']?_0x379c1b&&_0x379c1b['parent']==_0x227729||(_0x379c1b=_0x227729,_0x4231c0(_0x47e6a6['previousPosition']),_0x5b5743=!0x0):_0x1261bd=_0x1261bd||_0x47e6a6['previousPosition']));}function _0x4231c0(_0x483310){const _0x2683a5=_0x2c7172['mapper']['toViewPosition'](_0x483310),_0x537637=_0x2c7172['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x11e51d});_0x2c7172['writer']['insert'](_0x2683a5,_0x537637),_0x2c7172['mapper']['bindElementToMarker'](_0x537637,_0x37da2e['markerName']);}_0x43c8fd||_0x5b5743||!_0x1261bd||_0x4231c0(_0x1261bd);};}class nt extends _0x53e976{constructor(_0x42614d){super(_0x42614d);const _0x1fd5d9=_0x42614d['plugins']['get'](l);this['affectsData']=!0x1,this['listenTo'](_0x1fd5d9,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1fd5d9,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x47ff66=this['editor'],_0x3d151d=_0x47ff66['plugins']['get'](l),_0x486e79=_0x3d151d['isReady']?_0x3d151d['diff']['newRevisionId']:null;_0x47ff66['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x486e79);}['refresh'](){const {isReady:_0x3344a3,isEnabled:_0x119cdb,repository:_0x53a63f,diff:_0x45d131}=this['editor']['plugins']['get'](l),_0x30caf7=_0x45d131&&_0x53a63f['getLaterVisibleRevision'](_0x45d131['newRevisionId']);this['isEnabled']=_0x3344a3&&_0x119cdb&&Boolean(_0x30caf7);}}class ot extends _0x53e976{['_step'];constructor(_0x22e7cb,{direction:_0x41a144}){super(_0x22e7cb);const _0x272025=_0x22e7cb['plugins']['get'](l);this['affectsData']=!0x1,this['_step']='forward'===_0x41a144?0x1:-0x1,this['listenTo'](_0x272025,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x272025,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x272025,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5ceb01=this['editor'],_0x3bd1fc=_0x5ceb01['plugins']['get'](l),{isNavigationMode:_0x32d3e2,currentChangeNumber:_0xda8453}=_0x3bd1fc;let _0x3c2cd2;if(_0x3bd1fc['activeChange']=_0x32d3e2?_0x3bd1fc['diff']['changes']['get'](_0xda8453+this['_step']):_0x3bd1fc['diff']['changes']['first'],_0x3bd1fc['activeChange']['data']['isOnRoot'])_0x3c2cd2=_0x5ceb01['editing']['view']['getDomRoot'](_0x3bd1fc['activeChange']['rootName']);else{const _0xc168ae=_0x5ceb01['model']['markers']['get']('revision:'+_0x3bd1fc['activeChange']['id']);_0x3c2cd2=_0x5d23d5(_0x5ceb01['editing'],_0xc168ae);}_0x2be881({'target':_0x3c2cd2,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x600804,currentChangeNumber:_0x6ee66e,numberOfChanges:_0x20f917,isReady:_0x254629,isEnabled:_0x5daccf}=this['editor']['plugins']['get'](l);this['isEnabled']=!!(_0x5daccf&&_0x254629&&_0x20f917)&&(!_0x600804||(0x1===this['_step']?_0x6ee66e<_0x20f917-0x1:_0x6ee66e>0x0));}}class Ri extends _0x4d7898{constructor(_0x5be6a8){super(_0x5be6a8);const _0x52d54b=this['bindTemplate'],_0x41e7a7=new _0x1b0a61(_0x5be6a8),_0x573251=new _0x1b0a61(_0x5be6a8);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',(_0x3253d9,_0x1399c1)=>_0x3253d9&&_0x1399c1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3fcdbd,_0x2001a9,_0x1934de,_0x458567)=>{if(!_0x3fcdbd)return R(_0x5be6a8,'Loading...');if(!_0x1934de)return R(_0x5be6a8,'No\x20changes');const _0x528861=R(_0x5be6a8,'NUMBER_OF_CHANGES',_0x1934de);return _0x458567?R(_0x5be6a8,'X_OF_Y_CHANGES',[_0x2001a9+0x1,_0x1934de]):_0x528861;}),_0x41e7a7['set']({'label':R(_0x5be6a8,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x124557}),_0x573251['set']({'label':R(_0x5be6a8,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2f8724}),_0x41e7a7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x573251['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x41e7a7['on']('execute',()=>this['fire']('execute','backward')),_0x573251['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',_0x52d54b['if']('_isStatusLabelVisible','ck-hidden',_0xe55c8c=>!_0xe55c8c)]},'children':[{'text':_0x52d54b['to']('isNavigationMode',_0x507445=>_0x507445?R(_0x5be6a8,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x5be6a8,'Total')+':\x20')}]},{'text':_0x52d54b['to']('_statusText')}]},new _0x5bb667(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x41e7a7,_0x573251]}]});}}const ge='ck-editor__editable__loading-overlay';class ji extends _0x858dc7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x39da7c=this['editor']['editing']['view'];_0x39da7c['change'](_0x47f4bb=>{for(const _0x281e62 of _0x39da7c['document']['roots'])_0x47f4bb['addClass'](ge,_0x281e62);});}['hide'](){const _0x2e5175=this['editor']['editing']['view'];_0x2e5175['change'](_0x445bdf=>{for(const _0xc5327b of _0x2e5175['document']['roots'])_0x445bdf['removeClass'](ge,_0xc5327b);});}}class u extends _0x858dc7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,ji];}['init'](){const _0x4d45c6=this['editor'],_0x392b32=_0x4d45c6['plugins']['get'](l),_0x1f907d=_0x4d45c6['plugins']['get'](ji);_0x4d45c6['ui']['componentFactory']['add']('exitToEditing',_0x370662=>{const _0x1d2979=new _0x1b0a61(_0x370662);return _0x1d2979['set']({'label':R(_0x370662,'Back\x20to\x20editing'),'icon':_0x49b94e,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1d2979,'execute',()=>{_0x4d45c6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1d2979;}),_0x4d45c6['ui']['componentFactory']['add']('restoreRevision',_0x1cdfb3=>{const _0x3be4e8=new _0x1b0a61(_0x1cdfb3);return _0x3be4e8['set']({'label':R(_0x1cdfb3,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3be4e8['bind']('isEnabled')['to'](_0x4d45c6['commands']['get']('restoreRevision')),this['listenTo'](_0x3be4e8,'execute',()=>_0x4d45c6['execute']('restoreRevision')),_0x3be4e8;}),_0x4d45c6['ui']['componentFactory']['add']('changesNavigation',_0x5cd1f6=>{const _0x597cf5=new Ri(_0x5cd1f6),_0x3a212b=_0x4d45c6['commands']['get']('showPreviousChange'),_0x17709b=_0x4d45c6['commands']['get']('showNextChange');return _0x597cf5['bind']('isBackwardNavigationEnabled')['to'](_0x3a212b,'isEnabled'),_0x597cf5['bind']('isForwardNavigationEnabled')['to'](_0x17709b,'isEnabled'),_0x597cf5['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x392b32),this['listenTo'](_0x597cf5,'execute',(_0x23df18,_0x4e1f4d)=>{_0x4d45c6['execute']('forward'===_0x4e1f4d?'showNextChange':'showPreviousChange');}),_0x597cf5;}),_0x1f907d['show'](),_0x392b32['on']('change:isReady',(_0x17d849,_0x167643,_0x5ee0ba)=>{_0x5ee0ba?_0x1f907d['hide']():_0x1f907d['show']();});}}class li extends ti{['_resizeObserver']=null;constructor(_0x45b328,_0x1633c1){super(_0x45b328,_0x1633c1);const _0xee9bd1=this['bindTemplate'];this['set']({'label':R(_0x45b328,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x45b328,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xee9bd1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new et(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x50001a=this['fieldView']['element'];this['_tooltipString']=_0x50001a['scrollWidth']>_0x50001a['clientWidth']&&_0x50001a['value']||'';}}class vi extends _0x4d7898{constructor(_0x13cf95,_0xe63be9,_0x383acd){super(_0x13cf95);const _0x5f23b1=new _0x13fce5();_0x5f23b1['set']({'content':_0x45ead2,'viewBox':'0\x200\x2011\x2010'});const _0x41071b=['ck','ck-revision-history-sidebar__revision-author'];_0x383acd&&_0x41071b['push']('ck-revision-history-sidebar__revision-author_creator');const _0xf93cc3=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x13cf95,_0x383acd?'Revision\x20creator':'Revision\x20author')},'children':[_0x5f23b1,_0xe63be9['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x41071b},'children':_0xf93cc3});}}function mi(_0x5d33cf,_0x90a406){const _0x1477b9=_0x5d33cf['bindTemplate'],_0xab86ea=_0x5d33cf['locale'],_0x23eef7=_0x2842e0(_0xab86ea);_0x23eef7['panelPosition']='sw';const _0x100e29=function(_0x233f41,_0x5c7f87){const _0x1137a2=function(_0x33a02c,_0x31e2d6){const _0x4e98bb=_0x33a02c['locale'],_0x3e005b={'Compare\x20against\x20selected':R(_0x4e98bb,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x4e98bb,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x4e98bb,'Restore\x20this\x20revision')};return _0x31e2d6['map'](_0x3f075e=>{const _0x363bec=_0x3e005b[_0x3f075e['name']];return _0x363bec&&_0x363bec!==_0x3f075e['name']&&(_0x3f075e['name']=_0x363bec),_0x3f075e;});}(_0x233f41,_0x5c7f87),_0x2ea7d9=new _0x1d5790();for(const _0x459f90 of _0x1137a2){const _0x2bd2d6={'type':'button','model':new to({'label':_0x459f90['name'],'class':_0x459f90['class'],'withText':!0x0,'role':'menuitem','_action':_0x459f90['action']})};_0x2bd2d6['model']['bind']('isEnabled')['to'](_0x233f41,'isActionsDropdownOpen',_0x1fc848=>'function'!=typeof _0x459f90['isEnabled']||(!_0x1fc848||_0x459f90['isEnabled'](_0x233f41))),_0x2ea7d9['add'](_0x2bd2d6);}return _0x2ea7d9;}(_0x5d33cf,_0x90a406);return _0x5d33cf['bind']('isActionsDropdownOpen')['to'](_0x23eef7,'isOpen'),_0x23eef7['buttonView']['set']({'label':R(_0xab86ea,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x36531b}),_0x23eef7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1477b9['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1477b9['to'](_0x1fd402=>_0x1fd402['stopPropagation']())}}),_0x23eef7['on']('execute',_0x1248d8=>{_0x5d33cf['isReady']&&'function'==typeof _0x1248d8['source']['_action']&&_0x1248d8['source']['_action'](_0x5d33cf);}),_0x2b214d(_0x23eef7,_0x100e29,{'role':'menu'}),_0x23eef7['listenTo'](_0x5d33cf,'change:isActionsDropdownOpen',(_0x59c1a7,_0xd5d800,_0x4866fd)=>{if(_0x4866fd)for(const _0x500585 of _0x23eef7['listView']['items']){const _0x2df8e0=_0x500585['children']['first'],_0x1288a9=_0x90a406['find'](_0x2549ec=>_0x2549ec['action']===_0x2df8e0['_action'])['isVisible'];_0x500585['isVisible']=void 0x0===_0x1288a9||_0x1288a9(_0x5d33cf);}}),_0x23eef7;}class pi extends/* #__PURE__ -- @preserve */
27
+ _0xa4ce91(_0x4d7898){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1c83ba,_0x51fa4e,_0x1d8612,_0x4fe43b){super(_0x1c83ba);const _0x3f8314=this['bindTemplate'],_0x2b6f59=function(_0x4fc589,_0xf5d8c1){const _0x334b31=Array['from'](_0xf5d8c1['authors'])['filter'](_0x3cc057=>_0x3cc057!=_0xf5d8c1['creator']);return _0xf5d8c1['creator']&&_0x334b31['unshift'](_0xf5d8c1['creator']),_0x334b31['map'](_0x191b49=>new vi(_0x4fc589,_0x191b49,_0x191b49==_0xf5d8c1['creator']));}(_0x1c83ba,_0x51fa4e);this['id']=_0x51fa4e['id'],this['_revision']=_0x51fa4e,this['_requireRevisionName']=_0x4fe43b,this['bind']('name','createdAt')['to'](_0x51fa4e),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x9c2365=>{return _0xf57c80=_0x1c83ba['uiLanguage'],(_0x595522=_0x9c2365)['toLocaleDateString'](_0xf57c80,{'month':'long','day':'numeric'})+',\x20'+_0x595522['toLocaleTimeString'](_0xf57c80,{'hour':'numeric','minute':'numeric'});var _0xf57c80,_0x595522;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new li(_0x1c83ba,_0x387a81),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3d10b4=>_0x3d10b4||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x353184,_0x2d26f4)=>_0x353184&&_0x2d26f4),this['revisionActionsView']=_0x1d8612&&_0x1d8612['length']?mi(this,_0x1d8612):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3f8314['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3f8314['if']('isEnabled','ck-disabled',_0x25dcaf=>!_0x25dcaf),_0x3f8314['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3f8314['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3f8314['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':_0x3f8314['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':_0x2b6f59}]},this['revisionActionsView']],'on':{'click':_0x3f8314['to'](_0x3767b2=>{_0x3767b2['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5227ec=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5227ec,'change',()=>{this['_requireRevisionName']&&!_0x5227ec['value']||this['fire']('setName',{'id':this['id'],'name':_0x5227ec['value']}),_0x5227ec['value']||(_0x5227ec['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function bi(_0x5019ad,_0x138da5){const _0x544d96=_0x4e69e7['fromJSDate'](_0x5019ad)['setLocale'](_0x138da5),_0x187f60=_0x4e69e7['local'](),_0xd1ef6c=_0x187f60['minus']({'days':0x1})['startOf']('day');let _0x2c4b3e,_0x84bf5c;return _0x544d96['hasSame'](_0x187f60,'day')?(_0x2c4b3e=_0x544d96['startOf']('day')['toJSDate'](),_0x84bf5c=_0x544d96['toRelativeCalendar']()):_0x544d96['hasSame'](_0xd1ef6c,'day')?(_0x2c4b3e=_0xd1ef6c['toJSDate'](),_0x84bf5c=_0x544d96['toRelativeCalendar']()):_0x544d96['hasSame'](_0x187f60,'week')?(_0x2c4b3e=_0x544d96['startOf']('week')['toJSDate'](),_0x84bf5c=_0x544d96['weekdayLong']||''):_0x544d96['hasSame'](_0x187f60,'year')?(_0x2c4b3e=_0x544d96['startOf']('month')['toJSDate'](),_0x84bf5c=_0x544d96['monthLong']||''):(_0x2c4b3e=_0x544d96['startOf']('year')['toJSDate'](),_0x84bf5c=String(_0x544d96['year'])),{'startDate':_0x2c4b3e,'localizedPeriodName':_0x84bf5c};}class fi extends _0x4d7898{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x36922a,_0x4b0cfa,_0x19bc1a,_0x17109a){super(_0x36922a);const _0x128506=bi(_0x4b0cfa,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4b0cfa,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x19bc1a,this['_requireRevisionName']=_0x17109a,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':_0x128506}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1d2d4e){const _0x4b744b=new pi(this['locale'],_0x1d2d4e,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4b744b);}['removeRevision'](_0x477ab9){const _0x3fc722=this['revisionViews']['find'](_0x222612=>_0x222612['id']===_0x477ab9['id']);this['revisionViews']['remove'](_0x3fc722);}}class ki extends _0x4d7898{constructor(_0x52247e){super(_0x52247e);const _0x4eaa1a=new _0x13fce5();_0x4eaa1a['content']=_0xd5d852,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4eaa1a,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x52247e,'Revision\x20history')]}]});}}class ui extends _0x4d7898{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x31731e,_0xd2d792,_0x323b56,_0x128882){super(_0x31731e);const _0x43f27a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xd2d792,this['_revisionActions']=_0x323b56,this['_requireRevisionName']=_0x128882,this['on']('select',(_0x487ec0,_0x485b31)=>{this['fire']('revisionSelected',_0x485b31);}),this['on']('setName',(_0x45d967,_0x5a9b59)=>{this['fire']('revisionSetName',_0x5a9b59);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new ki(_0x31731e),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x43f27a['if']('isEnabled','ck-disabled',_0x538144=>!_0x538144)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x43ca0f of this['_revisions'])this['_addRevision'](_0x43ca0f);this['_revisions']['on']('add',(_0x156889,_0x5ac6a7)=>{this['_addRevision'](_0x5ac6a7);}),this['_revisions']['on']('remove',(_0x197842,_0x47a796)=>{this['_removeRevision'](_0x47a796);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x465c46=>_0x465c46['revisionViews']['map'](_0x3d44bf=>_0x3d44bf))['flat']();}['selectRevision'](_0x22d6cd){for(const _0x4b611d of this['revisionViews'])_0x22d6cd&&_0x22d6cd['id']===_0x4b611d['id']?_0x4b611d['select']():_0x4b611d['deselect']();}['highlightRevisions'](_0x46a37a){for(const _0x8f3504 of this['revisionViews'])_0x46a37a['some'](({id:_0x5a872e})=>_0x5a872e===_0x8f3504['id'])?_0x8f3504['highlight']():_0x8f3504['unhighlight']();}['_addRevision'](_0x27728c){const _0x3e9ce3=bi(_0x27728c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x270e5f=this['timePeriodViews']['get'](0x0);_0x270e5f&&_0x270e5f['startDate']['getTime']()===_0x3e9ce3['getTime']()||(_0x270e5f=new fi(this['locale'],_0x3e9ce3,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x270e5f)),_0x270e5f['addRevision'](_0x27728c);}['_removeRevision'](_0x532707){const _0x1a54e8=bi(_0x532707['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1a54e8)['removeRevision'](_0x532707);}['_getTimePeriodViewByStartDate'](_0x125156){return this['timePeriodViews']['find'](_0x2b25f4=>_0x2b25f4['startDate']['getTime']()===_0x125156['getTime']());}}class f extends _0x858dc7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
28
28
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
29
- at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x301633){super(_0x301633),this['_revisionViewer']=_0x301633['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x28bb17=this['_revisionsRepository']['_revisions'],_0x1dc0fe=this['_createRevisionActions'](),_0x38b1b8=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x28bb17,_0x1dc0fe,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',(_0x4f7899,_0xc758f1)=>{_0xc758f1['revisionViews']['on']('add',(_0xb4e5f7,_0x3d2a04)=>{_0x3d2a04['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)),_0x38b1b8['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x24668e=this['_revisionsRepository']['getRevision'](0x0);if(_0x24668e){const _0x3ad0af=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x24668e['id']);this['_revisionViewer']['compare'](_0x24668e,_0x3ad0af);}}['_handleRevisionSelected'](_0x1f71d1,_0x2d6e5a){const _0x12b6a2=this['_revisionsRepository']['getRevision'](_0x2d6e5a['id']),_0x4e54ca=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x12b6a2['id']);this['_revisionViewer']['compare'](_0x12b6a2,_0x4e54ca);}['_handleRevisionSetName'](_0x539709,_0x34d2e7){this['_revisionsRepository']['getRevision'](_0x34d2e7['id'])['setName'](_0x34d2e7['name']);}['_handleDiffChange'](_0x2b9116,_0x382dec,_0x1e8d37){const _0x148403=this['_revisionsRepository']['getRevisionsInDiff'](_0x1e8d37);_0x148403['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x148403),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x148403[0x0]));}['_createRevisionActions'](){const _0x165321=this['editor'],_0x248427=f['availableRevisionActions'],_0x27084c=_0x165321['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x27084c['length'])return _0x27084c['map'](_0x4053ca=>{const _0x1cbfc5='string'==typeof _0x4053ca?Object['assign']({},_0x248427[_0x4053ca]):_0x4053ca;return _0x1cbfc5['action']=_0x1cbfc5['action']['bind'](this,_0x165321),_0x1cbfc5['isVisible']&&(_0x1cbfc5['isVisible']=_0x1cbfc5['isVisible']['bind'](this,_0x165321)),_0x1cbfc5;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x15f535},_0x4117f6)=>{const _0x46d460=_0x15f535['get'](l),_0x30873c=_0x46d460['repository'];let _0x5766f7=_0x46d460['diff']['newRevisionId'],_0x28432e=_0x4117f6['id'];_0x30873c['getIndex'](_0x5766f7)>_0x30873c['getIndex'](_0x28432e)&&([_0x5766f7,_0x28432e]=[_0x28432e,_0x5766f7]),_0x46d460['compare'](_0x5766f7,_0x28432e);},'isVisible':({plugins:_0x1799fb},_0x3cd3c9)=>{const _0x4edea7=_0x1799fb['get'](l);return!(_0x4edea7['repository']['getRevisionsInDiff'](_0x4edea7['diff'])['length']>0x2)&&!_0x3cd3c9['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x11cf40,{id:_0xf5e23e})=>{_0x11cf40['config']['get']('revisionHistory')['restoreRevisionCallback'](_0xf5e23e);},'isVisible':({plugins:_0x3caa2e},_0x3f4917)=>!!_0x3caa2e['get'](l)['repository']['getLaterVisibleRevision'](_0x3f4917['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x4216e4},{id:_0x1a2125,revisionNameView:_0x5ed76c})=>{const _0x24f936=_0x4216e4['get'](l),_0x7a0573=_0x24f936['repository']['getEarlierVisibleRevision'](_0x1a2125);_0x24f936['compare'](_0x1a2125,_0x7a0573),_0x5ed76c['focus'](),_0x5ed76c['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xc1ac61,_0x1e57b6){super(_0xc1ac61),this['_view']=_0x1e57b6,this['_toolbarConfig']=st(_0xc1ac61['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x5476d0){const _0x478d5b=this['editor'],_0x180280=this['view'],_0x3c6f10=_0x478d5b['editing']['view'],_0x264e0c=_0x180280['editable'],_0x28a81e=_0x3c6f10['document']['getRoot']();_0x264e0c['name']=_0x28a81e['rootName'],_0x180280['render']();const _0x566634=_0x264e0c['element'];this['setEditableElement'](_0x264e0c['name'],_0x566634),_0x180280['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3c6f10['attachDomRoot'](_0x566634),this['_elementReplacer']['replace'](_0x5476d0,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3dfc1c=this['view'],_0x281cad=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x281cad['detachDomRoot'](_0x3dfc1c['editable']['name']),_0x3dfc1c['destroy']();}['_initToolbar'](){const _0x35469f=this['view'];_0x35469f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x35469f['stickyPanel']['limiterElement']=_0x35469f['element'],_0x35469f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1dc8e9})=>_0x1dc8e9),_0x35469f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x35469f['toolbar']);}}class ii extends _0x5c6dee{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x22a21d,_0x56b8b2,_0x166ae6={}){super(_0x22a21d),this['stickyPanel']=new _0x4a5029(_0x22a21d),this['toolbar']=new _0x443442(_0x22a21d,{'shouldGroupWhenFull':_0x166ae6['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x22a21d,_0x56b8b2);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
- _0x2cebf3(_0x5d886f){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x3a39dc,_0x4863ed){super(_0x4863ed),this['sourceElement']=_0x3a39dc,this['model']['document']['createRoot']();const _0x35c209=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x35c209);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x946fb4,_0x1433a0){const _0x2e32e2=new this(_0x946fb4,_0x1433a0);return await _0x2e32e2['initPlugins'](),await _0x2e32e2['ui']['init'](_0x946fb4),await _0x2e32e2['data']['init'](_0x2e32e2['config']['get']('initialData')||''),_0x2e32e2['fire']('ready'),_0x2e32e2;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class ht extends _0x594d24{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1451d5){function _0x3fe888(_0x44ef1c){return _0x44ef1c['map'](_0x1a4f58=>String['fromCharCode'](_0x1a4f58))['join']('');}super(_0x1451d5),this['result']='end',_0x1451d5[_0x3fe888([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3fe888([0x76,0x69,0x65,0x77])][_0x3fe888([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3fe888([0x61,0x75,0x74,0x6f]),_0x1451d5[_0x3fe888([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3fe888([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3fe888([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3fe888([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3fe888([0x6f,0x6b])});}}class ct extends _0x594d24{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x576558){if(super(_0x576558),!this['editor']['config']['get']('revisionHistory'))throw new _0x4303f6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4ff420=>this['_showRevisionViewer']({..._0x4ff420,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x35a05c=>this['_closeRevisionViewer'](_0x35a05c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x548134=>this['_restoreRevision'](_0x548134)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x136d0c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x136d0c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x300488){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x300488);}['getRevision'](_0x5e10bd){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5e10bd);}['getRevisions'](_0x5d9fe9){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5d9fe9||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5ecc94=this['editor'],_0x20f8c5=_0x2648be(_0x5ecc94,d),_0x2c5da0=_0x5ecc94['plugins']['get']('RevisionTracker'),_0x88d768=_0x5ecc94['plugins']['get']('Users')['users'];return _0x20f8c5['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x20f8c5['lazyRoots'],(_0x20f8c5['plugins']['push'](ht,l,u,class extends _0x594d24{static get['requires'](){return[l,'Users'];}['init'](){const _0x130b6a=this['editor']['plugins']['get']('Users');for(const _0x5f53ec of _0x88d768)_0x5f53ec['isAnonymous']||_0x130b6a['getUser'](_0x5f53ec['id'])||_0x130b6a['addUser'](_0x5f53ec);const _0x32830d=_0x2c5da0['repository']['getRevisions']();let _0x39183c=null;const _0x5d3528=this['editor']['plugins']['get']('RevisionViewer');_0x5d3528['adapter']=_0x2c5da0['adapter'],_0x5d3528['bind']('isEnabled')['to'](_0x2c5da0),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5ecc94,'isReadOnly',_0xdac6ee=>!_0xdac6ee);for(const _0x3cf0bd of _0x32830d){const _0x91c1e4=null===_0x3cf0bd['creator'];if(_0x91c1e4&&_0x3cf0bd['toVersion']===_0x3cf0bd['fromVersion'])continue;const _0x38a117=_0x3cf0bd['toJSON']();_0x5d3528['addRevisionData'](_0x38a117,(_0x4d29d1,_0x533e4b,_0x43c14d)=>{if(_0x91c1e4){if(_0x39183c)_0x39183c['_update'](_0x4d29d1,_0x533e4b);else{if(!_0x533e4b){const _0xb55565=_0x43c14d['toJSON']();_0xb55565['id']=_0x29d31e(),_0x2c5da0['saveRevision'](_0xb55565,_0x43c14d['toVersion'])['then'](_0x5bd43e=>{_0x39183c=_0x5bd43e;});}}}else _0x3cf0bd['_update'](_0x4d29d1,_0x533e4b);});}}},f),_0x20f8c5);}['_enhanceShowRevisionViewerCallback'](){const _0x276316=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4fd699=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x57498a=this['editor']['plugins']['get']('Autosave');await _0x57498a['save']();}else await _0x4fd699['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x31b282=this['editor']['plugins']['get']('Dialog');_0x31b282['isOpen']&&_0x31b282['hide']();}const _0x18a7b4=this['_getRevisionViewerEditorConfig']();return _0x276316(_0x18a7b4)['then'](_0x3f5a27=>{return(this['_viewerEditor']=_0x3f5a27,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x3f5a27);})['catch'](_0x2f197b=>(console['error'](_0x2f197b),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4ee42c=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4ee42c(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x30aa22=this['editor']['plugins']['get']('Annotations');_0x30aa22['refreshVisibility'](),_0x30aa22['refreshPositioning']();}})));}['_showRevisionViewer'](_0x23aabe){const _0x1169b7=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x34216a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4d5763=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x4d5763,_0x23aabe)['then'](_0xfb123a=>(_0x34216a['style']['display']='block',_0x1169b7['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xfb123a));}['_closeRevisionViewer'](_0x342705){const _0x350d2b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x350d2b['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x342705['destroy']();}async['_restoreRevision'](_0x23c468){const _0x4810c=this['editor'],_0xc48f54=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3dd0af=_0x4810c['plugins']['get']('RevisionTracker'),_0x4f3663=_0x4810c['plugins']['get']('RevisionHistoryUtils'),_0x113a3f=_0xc48f54['repository']['getRevision'](_0x23c468);let _0x5603eb,_0x5cb072,_0xbd0e02;try{await _0x4f3663['loadRevisionData'](_0x113a3f,this['adapter']),_0x5603eb=_0x4f3663['getRevisionDocumentData'](_0x113a3f),_0x5cb072=_0x4f3663['getRevisionRootsAttributes'](_0x113a3f);}catch(_0x4596be){return void console['error'](_0x4596be);}_0x4810c['model']['change'](_0x233c44=>{for(const _0xf4ef3b of Array['from'](_0x4810c['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x233c44['removeMarker'](_0xf4ef3b);}),_0xc48f54['isReady']=!0x1,_0x4810c['model']['enqueueChange'](_0x51e502=>{_0x51e502['setSelection'](null),_0x51e502['removeSelectionAttribute'](_0x4810c['model']['document']['selection']['getAttributeKeys']());const _0x449ab6=Object['keys'](_0x5603eb);for(const _0x3c98ac of _0x4810c['model']['document']['roots'])'$graveyard'!=_0x3c98ac['rootName']&&_0x3c98ac['isAttached']()&&!_0x449ab6['includes'](_0x3c98ac['rootName'])&&_0x51e502['detachRoot'](_0x3c98ac);for(const _0x49cc0a of _0x449ab6){let _0x2138c0=_0x4810c['model']['document']['getRoot'](_0x49cc0a);_0x2138c0&&_0x2138c0['isAttached']()||(_0x2138c0=_0x51e502['addRoot'](_0x49cc0a));const _0x5cf63d=_0x5cb072[_0x49cc0a],_0x514eb8=Object['keys'](_0x5cf63d),_0x42f186=_0x5603eb[_0x49cc0a];for(const _0x307e49 of _0x2138c0['getAttributeKeys']())_0x514eb8['includes'](_0x307e49)||_0x51e502['removeAttribute'](_0x307e49,_0x2138c0);for(const _0x4aa780 of _0x514eb8)_0x51e502['setAttribute'](_0x4aa780,_0x5cb072[_0x49cc0a][_0x4aa780],_0x2138c0);_0x51e502['remove'](_0x51e502['createRangeIn'](_0x2138c0)),_0x51e502['insert'](_0x4810c['data']['parse'](_0x42f186,_0x2138c0),_0x2138c0,0x0);}});const _0x19ba4d=R(_0x4810c['locale'],'Restored');if(_0x113a3f['name'])_0xbd0e02=-0x1==_0x113a3f['name']['indexOf'](_0x19ba4d)?_0x19ba4d+':\x20'+_0x113a3f['name']:_0x113a3f['name'];else _0xbd0e02=_0x19ba4d+':\x20'+(_0x113a3f['createdAt']['toLocaleDateString'](_0x4810c['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x113a3f['createdAt']['toLocaleTimeString'](_0x4810c['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3dd0af['saveRevision']({'name':_0xbd0e02}),_0xc48f54['isReady']=!0x0,_0x4810c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,rt as ShowChangeCommand};
29
+ rt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}constructor(_0x333f6b){super(_0x333f6b),this['_revisionViewer']=_0x333f6b['plugins']['get'](l),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x575eae=this['_revisionsRepository']['_revisions'],_0x2840b8=this['_createRevisionActions'](),_0x3c3314=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ui(this['editor']['locale'],_0x575eae,_0x2840b8,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',(_0x200133,_0x4d223c)=>{_0x4d223c['revisionViews']['on']('add',(_0x33afa1,_0x3b2f60)=>{_0x3b2f60['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)),_0x3c3314['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x322143=this['_revisionsRepository']['getRevision'](0x0);if(_0x322143){const _0x5bedd4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x322143['id']);this['_revisionViewer']['compare'](_0x322143,_0x5bedd4);}}['_handleRevisionSelected'](_0x25d63b,_0x457a52){const _0x132cfe=this['_revisionsRepository']['getRevision'](_0x457a52['id']),_0x220c6f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x132cfe['id']);this['_revisionViewer']['compare'](_0x132cfe,_0x220c6f);}['_handleRevisionSetName'](_0x49222f,_0x22ae78){this['_revisionsRepository']['getRevision'](_0x22ae78['id'])['setName'](_0x22ae78['name']);}['_handleDiffChange'](_0x3b3195,_0x255531,_0x8ff777){const _0x461438=this['_revisionsRepository']['getRevisionsInDiff'](_0x8ff777);_0x461438['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x461438),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x461438[0x0]));}['_createRevisionActions'](){const _0x5068ae=this['editor'],_0x10677c=f['availableRevisionActions'],_0x43c2d3=_0x5068ae['config']['get']('revisionHistory.revisionActions')||f['defaultRevisionActions'];if(_0x43c2d3['length'])return _0x43c2d3['map'](_0x13ae67=>{const _0x34ee1f='string'==typeof _0x13ae67?Object['assign']({},_0x10677c[_0x13ae67]):_0x13ae67;return _0x34ee1f['action']=_0x34ee1f['action']['bind'](this,_0x5068ae),_0x34ee1f['isVisible']&&(_0x34ee1f['isVisible']=_0x34ee1f['isVisible']['bind'](this,_0x5068ae)),_0x34ee1f;});}}function rt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x55032e},_0x112544)=>{const _0x3d8162=_0x55032e['get'](l),_0x55349a=_0x3d8162['repository'];let _0x3ece50=_0x3d8162['diff']['newRevisionId'],_0x48fa37=_0x112544['id'];_0x55349a['getIndex'](_0x3ece50)>_0x55349a['getIndex'](_0x48fa37)&&([_0x3ece50,_0x48fa37]=[_0x48fa37,_0x3ece50]),_0x3d8162['compare'](_0x3ece50,_0x48fa37);},'isVisible':({plugins:_0x57ef02},_0x3e87d2)=>{const _0x49374a=_0x57ef02['get'](l);return!(_0x49374a['repository']['getRevisionsInDiff'](_0x49374a['diff'])['length']>0x2)&&!_0x3e87d2['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4f24d1,{id:_0x4f1480})=>{_0x4f24d1['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f1480);},'isVisible':({plugins:_0xbd9418},_0x14f769)=>!!_0xbd9418['get'](l)['repository']['getLaterVisibleRevision'](_0x14f769['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xb796ee},{id:_0x3c51f8,revisionNameView:_0x31ca18})=>{const _0x5482ae=_0xb796ee['get'](l),_0x1ebcc4=_0x5482ae['repository']['getEarlierVisibleRevision'](_0x3c51f8);_0x5482ae['compare'](_0x3c51f8,_0x1ebcc4),_0x31ca18['focus'](),_0x31ca18['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x157ccb,_0x5074b8){super(_0x157ccb),this['_view']=_0x5074b8,this['_toolbarConfig']=st(_0x157ccb['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3bd536){const _0x49ec46=this['editor'],_0xf4a7b9=this['view'],_0x5646a9=_0x49ec46['editing']['view'],_0x29bd1d=_0xf4a7b9['editable'],_0x596704=_0x5646a9['document']['getRoot']();_0x29bd1d['name']=_0x596704['rootName'],_0xf4a7b9['render']();const _0x473843=_0x29bd1d['element'];this['setEditableElement'](_0x29bd1d['name'],_0x473843),_0xf4a7b9['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5646a9['attachDomRoot'](_0x473843),this['_elementReplacer']['replace'](_0x3bd536,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xcbce08=this['view'],_0x1cfd50=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1cfd50['detachDomRoot'](_0xcbce08['editable']['name']),_0xcbce08['destroy']();}['_initToolbar'](){const _0x3b016d=this['view'];_0x3b016d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3b016d['stickyPanel']['limiterElement']=_0x3b016d['element'],_0x3b016d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x59c565})=>_0x59c565),_0x3b016d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3b016d['toolbar']);}}class ii extends _0x3df364{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4c39fe,_0x2d0093,_0x47fad6={}){super(_0x4c39fe),this['stickyPanel']=new _0x527c78(_0x4c39fe),this['toolbar']=new _0x1972cd(_0x4c39fe,{'shouldGroupWhenFull':_0x47fad6['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x4c39fe,_0x2d0093);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class m extends/* #__PURE__ -- @preserve */
30
+ _0x3d53cc(_0x130cd1){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x49e000,_0x20f0ea){super(_0x20f0ea),this['sourceElement']=_0x49e000,this['model']['document']['createRoot']();const _0x4f1dd5=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x4f1dd5);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5555ef,_0x302182){const _0x1d6887=new this(_0x5555ef,_0x302182);return await _0x1d6887['initPlugins'](),await _0x1d6887['ui']['init'](_0x5555ef),await _0x1d6887['data']['init'](_0x1d6887['config']['get']('initialData')||''),_0x1d6887['fire']('ready'),_0x1d6887;}}const d=['RevisionHistoryUI','RestrictedEditingMode'];class at extends _0x858dc7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x12cbd0){function _0x26663c(_0x41bbd5){return _0x41bbd5['map'](_0x3ff85c=>String['fromCharCode'](_0x3ff85c))['join']('');}super(_0x12cbd0),this['result']='end',_0x12cbd0[_0x26663c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x26663c([0x76,0x69,0x65,0x77])][_0x26663c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x26663c([0x61,0x75,0x74,0x6f]),_0x12cbd0[_0x26663c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x26663c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x26663c([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x26663c([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x26663c([0x6f,0x6b])});}}class ht extends _0x858dc7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,v];}constructor(_0x452965){if(super(_0x452965),!this['editor']['config']['get']('revisionHistory'))throw new _0x5ea239('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4b66bf=>this['_showRevisionViewer']({..._0x4b66bf,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3391cb=>this['_closeRevisionViewer'](_0x3391cb)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x142228=>this['_restoreRevision'](_0x142228)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x21ed07){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x21ed07;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3137cb){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3137cb);}['getRevision'](_0x227823){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x227823);}['getRevisions'](_0x5e2fd1){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5e2fd1||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5c60a8=this['editor'],_0x350d7d=_0x74082c(_0x5c60a8,d),_0x230518=_0x5c60a8['plugins']['get']('RevisionTracker'),_0x3bd461=_0x5c60a8['plugins']['get']('Users')['users'];return _0x350d7d['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x350d7d['lazyRoots'],(_0x350d7d['plugins']['push'](at,l,u,class extends _0x858dc7{static get['requires'](){return[l,'Users'];}['init'](){const _0x448dd=this['editor']['plugins']['get']('Users');for(const _0x4aca47 of _0x3bd461)_0x4aca47['isAnonymous']||_0x448dd['getUser'](_0x4aca47['id'])||_0x448dd['addUser'](_0x4aca47);const _0x52ce10=_0x230518['repository']['getRevisions']();let _0x5c8c9a=null;const _0x144c5c=this['editor']['plugins']['get']('RevisionViewer');_0x144c5c['adapter']=_0x230518['adapter'],_0x144c5c['bind']('isEnabled')['to'](_0x230518),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5c60a8,'isReadOnly',_0x116b78=>!_0x116b78);for(const _0x561975 of _0x52ce10){const _0x4b6415=null===_0x561975['creator'];if(_0x4b6415&&_0x561975['toVersion']===_0x561975['fromVersion'])continue;const _0x203b93=_0x561975['toJSON']();_0x144c5c['addRevisionData'](_0x203b93,(_0x53d3ed,_0x572368,_0x3bb22b)=>{if(_0x4b6415){if(_0x5c8c9a)_0x5c8c9a['_update'](_0x53d3ed,_0x572368);else{if(!_0x572368){const _0x4503ac=_0x3bb22b['toJSON']();_0x4503ac['id']=_0x1a737e(),_0x230518['saveRevision'](_0x4503ac,_0x3bb22b['toVersion'])['then'](_0x38a870=>{_0x5c8c9a=_0x38a870;});}}}else _0x561975['_update'](_0x53d3ed,_0x572368);});}}},f),_0x350d7d);}['_enhanceShowRevisionViewerCallback'](){const _0x3fa965=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x16448a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x44a740=this['editor']['plugins']['get']('Autosave');await _0x44a740['save']();}else await _0x16448a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3766a2=this['editor']['plugins']['get']('Dialog');_0x3766a2['isOpen']&&_0x3766a2['hide']();}const _0x5d4c04=this['_getRevisionViewerEditorConfig']();return _0x3fa965(_0x5d4c04)['then'](_0x4a41f3=>{return(this['_viewerEditor']=_0x4a41f3,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4a41f3);})['catch'](_0x416899=>(console['error'](_0x416899),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x57a95d=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x57a95d(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x4f762=this['editor']['plugins']['get']('Annotations');_0x4f762['refreshVisibility'](),_0x4f762['refreshPositioning']();}})));}['_showRevisionViewer'](_0x74784b){const _0x40c22f=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4a734e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x38ec65=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return m['create'](_0x38ec65,_0x74784b)['then'](_0x4e34c7=>(_0x4a734e['style']['display']='block',_0x40c22f['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x4e34c7));}['_closeRevisionViewer'](_0x547d20){const _0x27090f=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x27090f['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x547d20['destroy']();}async['_restoreRevision'](_0x58b5d2){const _0x1cec46=this['editor'],_0x380de2=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x292a6d=_0x1cec46['plugins']['get']('RevisionTracker'),_0x3ced14=_0x1cec46['plugins']['get']('RevisionHistoryUtils'),_0x30d5a6=_0x380de2['repository']['getRevision'](_0x58b5d2);let _0x251f30,_0x49d59f,_0x49fa19;try{await _0x3ced14['loadRevisionData'](_0x30d5a6,this['adapter']),_0x251f30=_0x3ced14['getRevisionDocumentData'](_0x30d5a6),_0x49d59f=_0x3ced14['getRevisionRootsAttributes'](_0x30d5a6);}catch(_0xb85e5e){return void console['error'](_0xb85e5e);}_0x1cec46['model']['change'](_0x268684=>{for(const _0x2a45f7 of Array['from'](_0x1cec46['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x268684['removeMarker'](_0x2a45f7);}),_0x380de2['isReady']=!0x1,_0x1cec46['model']['enqueueChange'](_0x369d03=>{_0x369d03['setSelection'](null),_0x369d03['removeSelectionAttribute'](_0x1cec46['model']['document']['selection']['getAttributeKeys']());const _0x2acc1e=Object['keys'](_0x251f30);for(const _0x347d0d of _0x1cec46['model']['document']['roots'])'$graveyard'!=_0x347d0d['rootName']&&_0x347d0d['isAttached']()&&!_0x2acc1e['includes'](_0x347d0d['rootName'])&&_0x369d03['detachRoot'](_0x347d0d);for(const _0x21c069 of _0x2acc1e){let _0x122650=_0x1cec46['model']['document']['getRoot'](_0x21c069);_0x122650&&_0x122650['isAttached']()||(_0x122650=_0x369d03['addRoot'](_0x21c069));const _0x40213f=_0x49d59f[_0x21c069],_0x22b895=Object['keys'](_0x40213f),_0x162c01=_0x251f30[_0x21c069];for(const _0x5760d9 of _0x122650['getAttributeKeys']())_0x22b895['includes'](_0x5760d9)||_0x369d03['removeAttribute'](_0x5760d9,_0x122650);for(const _0x1c3a80 of _0x22b895)_0x369d03['setAttribute'](_0x1c3a80,_0x49d59f[_0x21c069][_0x1c3a80],_0x122650);_0x369d03['remove'](_0x369d03['createRangeIn'](_0x122650)),_0x369d03['insert'](_0x1cec46['data']['parse'](_0x162c01,_0x122650),_0x122650,0x0);}});const _0x1bbc7e=R(_0x1cec46['locale'],'Restored');if(_0x30d5a6['name'])_0x49fa19=-0x1==_0x30d5a6['name']['indexOf'](_0x1bbc7e)?_0x1bbc7e+':\x20'+_0x30d5a6['name']:_0x30d5a6['name'];else _0x49fa19=_0x1bbc7e+':\x20'+(_0x30d5a6['createdAt']['toLocaleDateString'](_0x1cec46['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x30d5a6['createdAt']['toLocaleTimeString'](_0x1cec46['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x292a6d['saveRevision']({'name':_0x49fa19}),_0x380de2['isReady']=!0x0,_0x1cec46['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ht as RevisionHistory,v as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,l as RevisionViewer,m as RevisionViewerEditor,ji as RevisionViewerLoadingOverlay,u as RevisionViewerUI,S as RevisionsRepository,f as RevisionsSidebar,ot as ShowChangeCommand};