@ckeditor/ckeditor5-revision-history 47.1.0-alpha.1 → 47.1.0-alpha.2

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 +12 -12
  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 _0x28c99b,uid as _0x544ff4,Collection as _0x292637,logWarning as _0x2cfa54,FocusTracker as _0x5edae5,KeystrokeHandler as _0x354688,scrollViewportToShowTarget as _0x5e079d,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x23ee96}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0xb2db8,set as _0x12995c,unset as _0x3cfb12,isEqual as _0x5dda21}from'es-toolkit/compat';import{Plugin as _0x437c77,PendingActions as _0x18f35f,Command as _0x5de004,ElementApiMixin as _0x1e9f0a,Editor as _0x3e40f0}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xefcee4,getMarkerDomElement as _0x52f960,ConfirmMixin as _0x138897,sanitizeEditorConfig as _0x254a4b}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x1cd95f,ViewAttributeElement as _0x3dc87d,ViewEmptyElement as _0x5a0fb5,ViewRawElement as _0x1be34a,ViewUIElement as _0x112304,ViewDocumentFragment as _0x22f85d,ViewText as _0x42fd7f,ViewElement as _0x37bbf5,ModelElement as _0x467cfa,ModelRange as _0x49d459,ModelPosition as _0x2c240b,ModelDocumentFragment as _0xbdee0c,ModelText as _0x264685}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3dc43c,IconChevronUp as _0x56df88,IconChevronDown as _0x5c12f5,IconUndo as _0x550877,IconUser as _0x2f748d,IconThreeVerticalDots as _0x59f83a}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x3560c6,View as _0x2a78ea,submitHandler as _0x301d30,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x2676c3,ListView as _0x15824c,ListItemView as _0x3054ac,ButtonView as _0x4c4445,MenuBarMenuView as _0x34fd27,MenuBarMenuListView as _0x2ddecd,MenuBarMenuListItemView as _0x456bf8,MenuBarMenuListItemButtonView as _0x590fd1,ContextualBalloon as _0x2cef43,ToolbarSeparatorView as _0x5d1747,IconView as _0x42ea15,addListToDropdown as _0x4e23b7,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x55e167,StickyPanelView as _0x768968,ToolbarView as _0x44ce47,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x43cb4d}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
- _0x28c99b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0xa88248){super(),this['id']=_0xa88248['id']||_0x544ff4(),this['creator']=_0xa88248['creator']||null,this['authors']=_0xa88248['authors']||[],this['diffData']=_0xa88248['diffData']||null,this['toVersion']=_0xa88248['toVersion']||0x0,this['fromVersion']=_0xa88248['fromVersion']||0x0,this['set']('name',_0xa88248['name']||''),this['set']('createdAt',_0xa88248['createdAt']||new Date()),this['set']('attributes',_0xa88248['attributes']||{});}['setName'](_0x28e64b){this['_update']({'name':_0x28e64b});}['setAttribute'](_0x13e43,_0x1fb33a){const _0x21df6b=_0xb2db8(this['attributes']);_0x12995c(_0x21df6b,_0x13e43,_0x1fb33a),this['_update']({'attributes':_0x21df6b});}['removeAttribute'](_0x504994){const _0x2134ce=_0xb2db8(this['attributes']);_0x3cfb12(_0x2134ce,_0x504994),this['_update']({'attributes':_0x2134ce});}['_update'](_0x1a6c77,_0x491f26=!0x1){let _0x997eb1=!0x1;const _0x96c45b={'id':this['id']},_0x5b4966=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x55bab6 of _0x5b4966){const _0x55ea4c=_0x1a6c77[_0x55bab6];void 0x0!==_0x55ea4c&&_0x55ea4c!==this[_0x55bab6]&&(this[_0x55bab6]=_0x55ea4c,_0x96c45b[_0x55bab6]=_0x55ea4c,_0x997eb1=!0x0);}_0x997eb1&&(_0x96c45b['authors']&&(_0x96c45b['authorsIds']=_0x96c45b['authors']['map'](_0x18a3ce=>_0x18a3ce['id']),delete _0x96c45b['authors']),this['fire']('_update',_0x96c45b,_0x491f26));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x539140=>_0x539140['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x437c77{['_revisions'];static get['requires'](){return[_0xefcee4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x3a066f){super(_0x3a066f),this['_revisions']=new _0x292637();}['afterInit'](){!async function(_0xcf1f01){const _0x3a4a8f=_0x5b61ac([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0xfac78=0xeb829,_0x49d6f0=0x7374585f,_0x47156f=0x73732e1f^_0x49d6f0,_0x32b2f0=window[_0x5b61ac([0x44,0x61,0x74,0x65])][_0x5b61ac([0x6e,0x6f,0x77])](),_0x230987=_0xcf1f01[_0x5b61ac([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x48048e=new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3df739=>{_0x230987[_0x5b61ac([0x6f,0x6e,0x63,0x65])](_0x5b61ac([0x72,0x65,0x61,0x64,0x79]),_0x3df739);}),_0x5734e4={[_0x5b61ac([0x6b,0x74,0x79])]:_0x5b61ac([0x45,0x43]),[_0x5b61ac([0x75,0x73,0x65])]:_0x5b61ac([0x73,0x69,0x67]),[_0x5b61ac([0x63,0x72,0x76])]:_0x5b61ac([0x50,0x2d,0x32,0x35,0x36]),[_0x5b61ac([0x78])]:_0x5b61ac([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]),[_0x5b61ac([0x79])]:_0x5b61ac([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]),[_0x5b61ac([0x61,0x6c,0x67])]:_0x5b61ac([0x45,0x53,0x32,0x35,0x36])},_0x217849=_0x230987[_0x5b61ac([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5b61ac([0x67,0x65,0x74])](_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5af966(){let _0x49ecb0,_0x334eae=null,_0x4ae4a4=null;try{if(_0x217849==_0x5b61ac([0x47,0x50,0x4c]))return _0x5b61ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49ecb0=_0x4248d8(),!_0x49ecb0)return _0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49ecb0[_0x5b61ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ae4a4=_0x1e9132(_0x49ecb0[_0x5b61ac([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49ecb0[_0x5b61ac([0x6a,0x74,0x69])])),await _0x301c9d()?_0x2e7339()?_0x458e63()?_0x5b61ac([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x53b077()?(_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b61ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x334eae=_0x32adc0(_0x5b61ac([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5b61ac([0x74,0x72,0x69,0x61,0x6c])&&(_0x334eae=_0x32adc0(_0x5b61ac([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1ab9b4()):_0x5b61ac([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5b61ac([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5b61ac([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x458e63(){const _0x35165d=[_0x5b61ac([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5b61ac([0x74,0x72,0x69,0x61,0x6c])][_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x32b2f0/0x3e8:0xe10*_0x47156f;return _0x49ecb0[_0x5b61ac([0x65,0x78,0x70])]<_0x35165d;}function _0x2e7339(){const _0x54e42c=_0x49ecb0[_0x5b61ac([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x54e42c)return!0x1;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x2a])))return!0x0;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x52,0x48])))return!0x0;if(_0x54e42c[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x52,0x52,0x48]))){if(_0x41bc26())return!0x0;if(_0x1ee0bd()||_0x167f98())return!0x0;}return!0x1;}function _0x53b077(){const _0x204807=_0x49ecb0[_0x5b61ac([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x204807||0x0==_0x204807[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x96e4d8}=new URL(window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x204807[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x96e4d8))return!0x0;const _0x10f571=_0x96e4d8[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e]));return _0x204807[_0x5b61ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x134569=>_0x134569[_0x5b61ac([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b61ac([0x2a])))[_0x5b61ac([0x6d,0x61,0x70])](_0x298b9e=>_0x298b9e[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e])))[_0x5b61ac([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2e7de4=>_0x2e7de4[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x10f571[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b61ac([0x6d,0x61,0x70])](_0x12f0b3=>Array(_0x10f571[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x12f0b3[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5b61ac([0x66,0x69,0x6c,0x6c])](_0x12f0b3[0x0]===_0x5b61ac([0x2a])?_0x5b61ac([0x2a]):'')[_0x5b61ac([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x12f0b3))[_0x5b61ac([0x73,0x6f,0x6d,0x65])](_0x1f53d1=>_0x10f571[_0x5b61ac([0x65,0x76,0x65,0x72,0x79])]((_0x5a5a59,_0x59b6fa)=>_0x1f53d1[_0x59b6fa]===_0x5a5a59||_0x1f53d1[_0x59b6fa]===_0x5b61ac([0x2a])));}function _0x1ab9b4(){return _0x334eae&&_0x4ae4a4?new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50b8ad,_0x28a57b)=>{_0x334eae[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x50b8ad,_0x28a57b),_0x4ae4a4[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x3a0cd0=>{_0x3a0cd0!=_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])&&_0x50b8ad(_0x3a0cd0);},_0x28a57b);}):_0x334eae||_0x4ae4a4||_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1e9132(_0x1a041c,_0x2ad16b){return new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c17c1=>{if(_0x2702c8())return _0x4c17c1(_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]));_0x13afba(),_0x230987[_0x5b61ac([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19d003=!0x1;const _0x23444b=_0x544ff4();function _0x44e310(_0x1e4a66){return!!_0x1e4a66&&(typeof _0x1e4a66===_0x5b61ac([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1e4a66===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1e4a66[_0x5b61ac([0x74,0x68,0x65,0x6e])]===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1e4a66[_0x5b61ac([0x63,0x61,0x74,0x63,0x68])]===_0x5b61ac([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3c51af(_0x2663b2){_0x192b2e(_0x2663b2)[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x230c78=>{if(!_0x230c78||_0x230c78[_0x5b61ac([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5b61ac([0x6f,0x6b]))return _0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x37d05b(_0x260938(_0x23444b+_0x2ad16b))!=_0x230c78[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5b61ac([0x56,0x61,0x6c,0x69,0x64]);})[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x3791e9=>(_0x5d25bb(),_0x3791e9),()=>{const _0x4daf76=_0x34b422();return null==_0x4daf76?(_0x5d25bb(),_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])):_0x5b61ac(_0x32b2f0-_0x4daf76>(0x5778dc5f^_0x49d6f0)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x4c17c1)[_0x5b61ac([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x24769a=0x7342b6df^_0x49d6f0;function _0x5d25bb(){const _0x4ee71=_0x5b61ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d05b(_0x260938(_0x1a041c)),_0x3fd6da=_0x1e54e5(_0x37d05b(window[_0x5b61ac([0x4d,0x61,0x74,0x68])][_0x5b61ac([0x63,0x65,0x69,0x6c])](_0x32b2f0/_0x24769a)));window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b61ac([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ee71,_0x3fd6da);}function _0x34b422(){const _0x43aa1d=_0x5b61ac([0x6c,0x6c,0x63,0x74,0x2d])+_0x37d05b(_0x260938(_0x1a041c)),_0x44d157=window[_0x5b61ac([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5b61ac([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x43aa1d);return _0x44d157?window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e54e5(_0x44d157),0x10)*_0x24769a:null;}function _0x192b2e(_0x5b575c){return new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5275a1,_0x477767)=>{_0x5b575c[_0x5b61ac([0x74,0x68,0x65,0x6e])](_0x5275a1,_0x477767),window[_0x5b61ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x477767,0x73758c9f^_0x49d6f0);});}}_0x230987[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xcf4ad5,_0x2f68f7)=>{if(_0x2f68f7[0x0]!=_0x1a041c)return _0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2f68f7[0x1]={..._0x2f68f7[0x1],[_0x5b61ac([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x23444b};},{[_0x5b61ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b61ac([0x68,0x69,0x67,0x68])}),_0x230987[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39959f=>{_0x44e310(_0x39959f[_0x5b61ac([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19d003=!0x0,_0x3c51af(_0x39959f[_0x5b61ac([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5b61ac([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5b61ac([0x6c,0x6f,0x77])}),_0x48048e[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>{_0x19d003||_0x4c17c1(_0x5b61ac([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2702c8(){return _0x230987[_0x5b61ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b61ac([0x76,0x69,0x65,0x77])][_0x5b61ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5b61ac([0x61,0x75,0x74,0x6f]);}function _0x13afba(){_0x230987[_0x5b61ac([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5b61ac([0x76,0x69,0x65,0x77])][_0x5b61ac([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5b61ac([0x61,0x75,0x74,0x6f]);}}function _0x32adc0(_0x54f4d0){const _0x4051c7=[new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4090a7=>setTimeout(_0x4090a7,0x737d6693^_0x49d6f0)),_0x48048e[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x310c5b=>{const _0x467555=0x73745858^_0x49d6f0,_0x279989=_0xcf1f01[_0x5b61ac([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x38fa60(){_0x279989[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x467555&&_0x310c5b();}_0x38fa60(),_0x279989[_0x5b61ac([0x6f,0x6e])](_0x5b61ac([0x61,0x64,0x64]),_0x38fa60);})),new window[(_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b522a=>{function _0x244df7(){for(const _0x4e24b8 in window)if(window[_0x5b61ac([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5b61ac([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e24b8))&&window[_0x4e24b8]==_0xfac78)return _0x4b522a();_0x230987[_0x5b61ac([0x73,0x74,0x61,0x74,0x65])]!=_0x5b61ac([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5b61ac([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x244df7,0x73744bd7^_0x49d6f0);}_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x244df7();})];return window[_0x5b61ac([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5b61ac([0x72,0x61,0x63,0x65])](_0x4051c7)[_0x5b61ac([0x74,0x68,0x65,0x6e])](()=>_0x54f4d0);}async function _0x3b6cd3(){if(await _0x48048e,_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2af876=_0xcf1f01[_0x5b61ac([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x32e1a5=_0xcf1f01[_0x5b61ac([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])](_0x2af876[_0x5b61ac([0x69,0x64])]),_0x44d9ac=_0x29bc7c(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x44d9ac[_0x5b61ac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2af876['id'],_0x32e1a5?_0x32e1a5['id']:null,!0x0),_0x44d9ac[_0x5b61ac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x44d9ac[_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x44d9ac[_0x5b61ac([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2088e3,void(_0x44d9ac[_0x5b61ac([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2088e3);}if(_0x2c7814(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1bf90b=_0x29bc7c(_0x5b61ac([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1bf90b[_0x5b61ac([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1bf90b[_0x5b61ac([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1bf90b[_0x5b61ac([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2088e3,_0x1bf90b[_0x5b61ac([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2088e3;}_0x230987[_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b61ac([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2088e3,_0x230987[_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c])][_0x5b61ac([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2088e3,_0x230987[_0x5b61ac([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5b61ac([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41bc26(){return _0x2c7814(_0x5b61ac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x29bc7c(_0x5b61ac([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5b61ac([0x73,0x74,0x61,0x74,0x65])]==_0x5b61ac([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1ee0bd(){return _0x2c7814(_0x5b61ac([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 _0x167f98(){return _0x2c7814(_0x5b61ac([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x16307d(_0x51a133){const _0xeb0963=_0x1a2323();_0x230987[_0xeb0963]=_0x5b61ac([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])+_0x51a133,_0x51a133[_0x5b61ac([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5b61ac([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1a2323()]=_0xfac78),_0x51a133!=_0x5b61ac([0x56,0x61,0x6c,0x69,0x64])&&_0x3b6cd3();}function _0x1a2323(){const _0x2e0ef5=window[_0x5b61ac([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5b61ac([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5b61ac([0x6e,0x6f,0x77])]())[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5b61ac([0x2e]),'');let _0x3bc178=_0x5b61ac([0x73]);for(let _0x32004c=0x0;_0x32004c<_0x2e0ef5[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x32004c+=0x2){let _0x528025=window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e0ef5[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32004c,_0x32004c+0x2));_0x528025>=_0x3a4a8f[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x528025-=_0x3a4a8f[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bc178+=_0x3a4a8f[_0x528025];}return _0x3bc178;}function _0x4248d8(){const _0xdecaf9=_0x217849[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e]));if(0x3!=_0xdecaf9[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x736e09(_0xdecaf9[0x1]);function _0x736e09(_0x1b1217){const _0x38ddaf=_0xc3d67e(_0x1b1217);return _0x38ddaf&&_0x28eb15()?_0x38ddaf:null;function _0x28eb15(){const _0x198537=_0x38ddaf[_0x5b61ac([0x6a,0x74,0x69])],_0xa77e5a=window[_0x5b61ac([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x198537[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x198537[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b10cb={..._0x38ddaf,[_0x5b61ac([0x6a,0x74,0x69])]:_0x198537[_0x5b61ac([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x198537[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b10cb[_0x5b61ac([0x76,0x63])],_0x260938(_0x3b10cb)==_0xa77e5a;}}}async function _0x301c9d(){let _0x13c5e4=!0x0;try{const _0x42ccaf=_0x217849[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])](_0x5b61ac([0x2e])),[_0x1e14ff,_0x5b5163,_0x4444dd]=_0x42ccaf;return _0x3288d1(_0x1e14ff),await _0x243bf5(_0x1e14ff,_0x5b5163,_0x4444dd),_0x13c5e4;}catch{return!0x1;}function _0x3288d1(_0x39a319){const _0x9fb708=_0xc3d67e(_0x39a319);_0x9fb708&&_0x9fb708[_0x5b61ac([0x61,0x6c,0x67])]==_0x5b61ac([0x45,0x53,0x32,0x35,0x36])||(_0x13c5e4=!0x1);}async function _0x243bf5(_0x4fdd15,_0x180492,_0x534839){const _0x139ba1=window[_0x5b61ac([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5b61ac([0x66,0x72,0x6f,0x6d])](_0x75e524(_0x534839),_0x51816f=>_0x51816f[_0x5b61ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3dc42b=new window[(_0x5b61ac([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5b61ac([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4fdd15+_0x5b61ac([0x2e])+_0x180492),_0x13eec7=window[_0x5b61ac([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5b61ac([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x13eec7)return;const _0x428b9d=await _0x13eec7[_0x5b61ac([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5b61ac([0x6a,0x77,0x6b]),_0x5734e4,{[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x45,0x43,0x44,0x53,0x41]),[_0x5b61ac([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5b61ac([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x13eec7[_0x5b61ac([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x45,0x43,0x44,0x53,0x41]),[_0x5b61ac([0x68,0x61,0x73,0x68])]:{[_0x5b61ac([0x6e,0x61,0x6d,0x65])]:_0x5b61ac([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x428b9d,_0x139ba1,_0x3dc42b)||(_0x13c5e4=!0x1);}}function _0xc3d67e(_0x47a197){return _0x47a197[_0x5b61ac([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5b61ac([0x65,0x79]))?JSON[_0x5b61ac([0x70,0x61,0x72,0x73,0x65])](_0x75e524(_0x47a197)):null;}function _0x75e524(_0x4380ce){return window[_0x5b61ac([0x61,0x74,0x6f,0x62])](_0x4380ce[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5b61ac([0x2b]))[_0x5b61ac([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5b61ac([0x2f])));}function _0x260938(_0x57547c){let _0x47ba1c=0x1505;function _0x19c70d(_0x496332){for(let _0x12ffe1=0x0;_0x12ffe1<_0x496332[_0x5b61ac([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x12ffe1++){const _0x1b2d5a=_0x496332[_0x5b61ac([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x12ffe1);_0x47ba1c=(_0x47ba1c<<0x5)+_0x47ba1c+_0x1b2d5a,_0x47ba1c&=_0x47ba1c;}}function _0x901e80(_0x93d7c3){Array[_0x5b61ac([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x93d7c3)?_0x93d7c3[_0x5b61ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x901e80):_0x93d7c3&&typeof _0x93d7c3==_0x5b61ac([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5b61ac([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x93d7c3)[_0x5b61ac([0x73,0x6f,0x72,0x74])]()[_0x5b61ac([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3afc67,_0x28d29f])=>{_0x19c70d(_0x3afc67),_0x901e80(_0x28d29f);}):_0x19c70d(window[_0x5b61ac([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x93d7c3));}return _0x901e80(_0x57547c),_0x47ba1c>>>0x0;}function _0x37d05b(_0x1874f1){return _0x1874f1[_0x5b61ac([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5b61ac([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5b61ac([0x30]));}function _0x1e54e5(_0x198001){return _0x198001[_0x5b61ac([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5b61ac([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5b61ac([0x6a,0x6f,0x69,0x6e])]('');}function _0x2c7814(_0xb1bd4c){return _0x230987[_0x5b61ac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b61ac([0x68,0x61,0x73])](_0xb1bd4c);}function _0x29bc7c(_0x42f4c3){return _0x230987[_0x5b61ac([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5b61ac([0x67,0x65,0x74])](_0x42f4c3);}function _0x2088e3(){}function _0x5b61ac(_0x580b5f){return _0x580b5f['map'](_0x1b188f=>String['fromCharCode'](_0x1b188f))['join']('');}_0x16307d(await _0x5af966());}(this);}['createRevision'](_0x1d3051){const _0x20dc94=this['editor']['plugins']['get']('Users');return new I({'id':_0x1d3051['id'],'name':_0x1d3051['name'],'creator':_0x1d3051['creatorId']?_0x20dc94['getUser'](_0x1d3051['creatorId']):null,'diffData':_0x1d3051['diffData']||_0x1d3051['data'],'authors':_0x1d3051['authorsIds']['map'](_0x51c9e3=>_0x20dc94['getUser'](_0x51c9e3)),'createdAt':new Date(_0x1d3051['createdAt']),'attributes':_0x1d3051['attributes'],'fromVersion':_0x1d3051['fromVersion'],'toVersion':_0x1d3051['toVersion']});}['addRevision'](_0x5cc33a,_0x175721=0x0){this['_revisions']['add'](_0x5cc33a,_0x175721);}['getRevision'](_0x41aed3){return this['_revisions']['get'](_0x41aed3);}['getRevisions'](_0x21df83={'toJSON':!0x1}){const _0x2c92e8=Array['from'](this['_revisions']);return _0x2c92e8['reverse'](),_0x21df83['toJSON']?_0x2c92e8['map'](_0x2d2057=>_0x2d2057['toJSON']()):_0x2c92e8;}['getIndex'](_0x40a962){return this['_revisions']['getIndex'](_0x40a962);}['getEarlierVisibleRevision'](_0x296932){const [,_0x1ba690]=this['getRevisionsIterator'](_0x296932,{'direction':'earlier'});return _0x1ba690;}['getLaterVisibleRevision'](_0xc0c1f3){const [,_0x2afaf8]=this['getRevisionsIterator'](_0xc0c1f3,{'direction':'later'});return _0x2afaf8;}['getRevisionsInDiff'](_0x5e6ccb){const _0xf6eff9=[];for(const _0x2fa6b0 of this['getRevisionsIterator'](_0x5e6ccb['newRevisionId']))if(_0xf6eff9['push'](_0x2fa6b0),_0x2fa6b0['id']===_0x5e6ccb['oldRevisionId'])break;return _0xf6eff9;}*['getRevisionsIterator'](_0x78bb72,{direction:_0xc0c3ff='earlier',filter:_0x502871=()=>!0x0}={}){const _0x2aab6b='earlier'===_0xc0c3ff?0x1:-0x1;let _0x46b9d7=this['_revisions']['get'](_0x78bb72),_0x425f9c=this['getIndex'](_0x46b9d7);for(yield _0x46b9d7;_0x46b9d7;){if(_0x425f9c+=_0x2aab6b,_0x46b9d7=this['getRevision'](_0x425f9c),!_0x46b9d7)return;_0x502871(_0x46b9d7)&&(yield _0x46b9d7);}}}class $ extends _0x437c77{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x1cd95f,'c'],[_0x3dc87d,'a'],[_0x5a0fb5,'e'],[_0x1be34a,'r'],[_0x112304,'u']]);['_typeCharToViewClass']=new Map([['c',_0x1cd95f],['a',_0x3dc87d],['e',_0x5a0fb5],['r',_0x1be34a],['u',_0x112304]]);async['loadRevisionData'](_0xe0a461,_0x55e4c5){if(_0xe0a461['diffData']||!_0x55e4c5)return;const _0x3c7052=this['editor']['config']['get']('collaboration.channelId'),_0x365499=await _0x55e4c5['getRevision']({'channelId':_0x3c7052,'revisionId':_0xe0a461['id']});_0xe0a461['diffData']=_0x365499['diffData'];}['getRevisionDocumentData'](_0x41f780){const _0x219a26={};for(const _0x479481 in _0x41f780['diffData']){if(_0x41f780['diffData'][_0x479481]['attachChange']&&!_0x41f780['diffData'][_0x479481]['attachChange']['isAttached'])continue;const _0x23a54f=this['_removeRevisionMarkers'](JSON['parse'](_0x41f780['diffData'][_0x479481]['insertions'])),_0x11aa52=this['editor']['editing']['view']['document'],_0x3e81f3=new _0x22f85d(_0x11aa52,_0x23a54f['map'](_0x42f01d=>this['_getViewFromDiffObj'](_0x42f01d,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x219a26[_0x479481]=this['editor']['data']['processor']['toData'](_0x3e81f3),this['editor']['data']['processor']['useFillerType']('default');}return _0x219a26;}['getRevisionRootsAttributes'](_0x2844f5){const _0x298b8d={};for(const _0x2f7391 in _0x2844f5['diffData'])_0x2844f5['diffData'][_0x2f7391]['attachChange']&&!_0x2844f5['diffData'][_0x2f7391]['attachChange']['isAttached']||(_0x298b8d[_0x2f7391]=_0x2844f5['diffData'][_0x2f7391]['attributesAfter']||{});return _0x298b8d;}['_getTypeCharForViewElement'](_0x2836f9){return this['_viewClassToTypeChar']['get'](_0x2836f9['constructor']);}['_getViewFromDiffObj'](_0x24412d,_0x2310fe){const _0x2eeff2=this['editor']['editing']['view']['document'];if('string'==typeof _0x24412d)return new _0x42fd7f(_0x2eeff2,_0x24412d);{let _0x1702e8,_0x2d91fe;_0x2d91fe='u'==_0x24412d['type']||'r'==_0x24412d['type']?[]:_0x24412d['children']['map'](_0xa32fc6=>this['_getViewFromDiffObj'](_0xa32fc6,_0x2310fe));const _0x7c1036=this['_typeCharToViewClass']['get'](_0x24412d['type'])||_0x37bbf5,_0x2c4de5=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x1702e8=new _0x7c1036(_0x2eeff2,_0x24412d['name'],_0x24412d['attributes'],_0x2d91fe),'u'==_0x24412d['type']&&_0x24412d['children'][0x0]){const _0x2e4d3c=_0x24412d['children'][0x0];if(_0x1702e8['render']=function(_0x3c3aa4){const _0x4c4a74=_0x3c3aa4['createElement']('div');return _0x4c4a74['innerHTML']=_0x2e4d3c,_0x4c4a74['childNodes'][0x0];},_0x2310fe){const _0x4c11cc=new _0x22f85d(_0x2eeff2);_0x4c11cc['_appendChild'](_0x1702e8);const _0x555995=Array['from'](_0x2c4de5['viewChildrenToDom'](_0x4c11cc,{'bind':!0x1})),_0x1e0656=_0x2c4de5['domDocument']['createElement']('div');_0x1e0656['append'](..._0x555995),_0x1702e8=Array['from'](_0x2c4de5['domChildrenToView'](_0x1e0656))[0x0];}}else{if('r'==_0x24412d['type']&&_0x24412d['children'][0x0]){const _0x2a9466=_0x24412d['children'][0x0];if(_0x1702e8['render']=function(_0x3fbe9d){_0x3fbe9d['innerHTML']=_0x2a9466;},_0x2310fe){const _0x5bd722=new _0x22f85d(_0x2eeff2);_0x5bd722['_appendChild'](_0x1702e8);const _0x5ec8c0=Array['from'](_0x2c4de5['viewChildrenToDom'](_0x5bd722,{'bind':!0x1})),_0x140f90=_0x2c4de5['domDocument']['createElement']('div');_0x140f90['append'](..._0x5ec8c0);const _0x348168=Array['from'](_0x2c4de5['domChildrenToView'](_0x140f90));_0x348168['length']>0x1?_0x1702e8['_appendChild'](_0x348168):_0x1702e8=_0x348168[0x0];}}}if(_0x24412d['customProperties']){for(const [_0x3996c2,_0x33dd11]of _0x24412d['customProperties'])_0x1702e8['_setCustomProperty'](_0x3996c2,_0x33dd11);}const _0x3dcd4a=void 0x0===_0x24412d['fillerOffset']?null:_0x24412d['fillerOffset'];return null!==_0x3dcd4a&&(_0x1702e8['getFillerOffset']=()=>_0x3dcd4a),_0x1702e8;}}['_makeModelFromViewString'](_0x443297){const _0x1a7da4=JSON['parse'](_0x443297),_0x279f8a=this['editor']['editing']['view']['document'],_0x23b71b=new _0x22f85d(_0x279f8a,_0x1a7da4['map'](_0x1d7e7e=>this['_getViewFromDiffObj'](_0x1d7e7e,!0x0)));return this['editor']['data']['toModel'](_0x23b71b);}['_removeRevisionMarkers'](_0x198c07){return(_0x198c07=_0x198c07['filter'](_0x4bc68a=>!_0x4bc68a['name']||'revision-start'!==_0x4bc68a['name']&&'revision-end'!==_0x4bc68a['name']))['forEach'](_0x230dfd=>{'string'!=typeof _0x230dfd&&(_0x230dfd['children']=this['_removeRevisionMarkers'](_0x230dfd['children']),_0x230dfd['attributes']=_0x230dfd['attributes']['filter'](_0x3673f0=>!_0x3673f0[0x0]['startsWith']('data-revision-')));}),_0x198c07;}}function m(_0x2c7c9c,_0x163ae8,_0x5bd642){const t=_0x2c7c9c['t'];switch(_0x163ae8){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'},_0x5bd642);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bd642);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 _0x437c77{['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[_0xefcee4,S,$,_0x18f35f];}constructor(_0x138ff2){super(_0x138ff2),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 _0x5ce6e6=_0x544ff4();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5ce6e6},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 _0x2fe9ca=this['repository']['getRevision'](0x0),_0x4a9b17=_0x2fe9ca&&null===_0x2fe9ca['creator']?_0x2fe9ca:null;if(this['_continueCurrentRevision']=!!_0x4a9b17&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x5a6ed4=this['_source']['getCurrentRevisionId'](),_0x56aa8f=this['repository']['getRevision'](_0x5a6ed4);if(_0x56aa8f)this['_startingVersion']=_0x56aa8f['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0xf01adf=this['_source']['history']['_operations']['find'](_0x22df86=>!_0x22df86['_isInit']),_0x1d43f3=_0xf01adf?_0xf01adf['baseVersion']:this['_source']['history']['version'];_0x2fe9ca?(_0x2fe9ca['toVersion']<_0x1d43f3&&_0x2fe9ca['_update']({'toVersion':_0x1d43f3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id'],this['_startingVersion']=_0x4a9b17['fromVersion']):(this['_startingVersion']=_0x2fe9ca['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x1d43f3,this['_continueCurrentRevision']=!0x1);}}else _0x4a9b17&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4a9b17['toVersion'],this['editor']['model']['document']['history']['version']),_0x4a9b17['fromVersion']===_0x4a9b17['toVersion']?(0x0!==_0x4a9b17['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4a9b17['id'],this['_startingVersion']=_0x4a9b17['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',_0x13c496=>!_0x13c496),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x213305=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5040b1;for(const _0x2c7f65 in _0x213305){const _0x1d93a2=_0x2c7f65,_0x233c84=_0x213305[_0x1d93a2];if('revisionHistoryLicenseKeyValid'==_0x233c84||'revisionHistoryLicenseKeyInvalid'==_0x233c84||'revisionHistoryLicenseKeyExpired'==_0x233c84||'revisionHistoryLicenseKeyDomainLimit'==_0x233c84||'revisionHistoryLicenseKeyNotAllowed'==_0x233c84||'revisionHistoryLicenseKeyEvaluationLimit'==_0x233c84||'revisionHistoryLicenseKeyTrialLimit'==_0x233c84||'revisionHistoryLicenseKeyUsageLimit'==_0x233c84){delete _0x213305[_0x1d93a2],_0x5040b1=_0x233c84,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5040b1&&_0x213305['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5040b1&&_0x213305['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5040b1&&_0x213305['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5040b1&&_0x213305['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5040b1&&_0x213305['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5040b1&&_0x213305['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5040b1&&_0x213305['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x58b8f1=this['repository']['getRevision'](0x0),_0xdce86f=await this['getRevisionDocumentData'](_0x58b8f1),_0x560bef=await this['getRevisionRootsAttributes'](_0x58b8f1);this['_replaceEditorDataWithRevisionData'](_0xdce86f,_0x560bef);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x446deb){this['_source']=_0x446deb;}async['update'](){const _0x2a9da9=await this['_source']['getLatestVersion']();if(_0x2a9da9>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2ea115=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2a9da9});_0x2ea115['authors']=_0x2ea115['authorsIds']['map'](_0x44fad9=>this['editor']['plugins']['get']('Users')['getUser'](_0x44fad9)),this['currentRevision']['_update'](_0x2ea115);}}async['saveRevision'](_0x582952={},_0x1a3497=null){const _0x3622df=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1a3497>this['currentRevision']['toVersion']&&(_0x1a3497=null),null===_0x1a3497&&(_0x1a3497=await this['_source']['getLatestVersion']());const _0x25bc1c=this['_getFromVersion'](_0x1a3497),_0x33f234=this['buildRevisionData']({'from':_0x25bc1c,'to':_0x1a3497});if(this['currentRevision']['toVersion']<_0x1a3497){const _0xbaee8b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1a3497,'to':_0x1a3497});_0xbaee8b['authors']=[],_0xbaee8b['authorsIds']=[],_0xbaee8b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xbaee8b,!0x0),delete _0xbaee8b['authors'],_0x3622df['push'](_0xbaee8b);}_0x582952['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x582952['name']=_0x582952['name']||null,_0x582952['id']=_0x582952['id']||_0x544ff4(),_0x582952={..._0x582952,..._0x33f234};const _0x33df49=this['addRevisionData'](_0x582952);_0x3622df['push'](_0x582952);const _0x4b8f16=this['repository']['getIndex'](_0x33df49);if(0x0!==_0x4b8f16){const _0x2d56cd=this['repository']['getRevision'](_0x4b8f16-0x1);if(_0x2d56cd['fromVersion']!==_0x1a3497){const _0x5b62b4=this['_revisionDataBuilder']['getData'](_0x1a3497,_0x2d56cd['toVersion']),_0x119a8a={'id':_0x2d56cd['id'],'diffData':_0x5b62b4['diffData'],'authorsIds':_0x5b62b4['authorsIds'],'authors':_0x5b62b4['authorsIds']['map'](_0x574f23=>this['editor']['plugins']['get']('Users')['getUser'](_0x574f23)),'fromVersion':_0x1a3497};_0x2d56cd===this['currentRevision']&&(_0x119a8a['createdAt']=new Date(_0x582952['createdAt']['getTime']()+0xa)),_0x2d56cd['_update'](_0x119a8a,!0x0),delete _0x119a8a['authors'],_0x3622df['push'](_0x119a8a);}}if(this['adapter']){for(const _0x4897c4 of _0x3622df)this['_bufferUpdate'](_0x4897c4['id'],_0x4897c4,!0x0);this['sendBufferedUpdates']();}return _0x33df49;}['addRevisionData'](_0x5e00ac){const _0x9f37c0=this['repository']['createRevision'](_0x5e00ac);return this['adapter']&&_0x9f37c0['on']('_update',(_0x299ac4,_0x174c90,_0x43c6fe)=>{_0x43c6fe||(this['_bufferUpdate'](_0x174c90['id'],_0x174c90,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x9f37c0,this['_findInsertionIndex'](_0x9f37c0)),_0x9f37c0;}async['getRevisionDocumentData'](_0x31a065){return await this['_utils']['loadRevisionData'](_0x31a065,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x31a065);}async['getRevisionRootsAttributes'](_0xe0b94){return await this['_utils']['loadRevisionData'](_0xe0b94,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0xe0b94);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5e189f=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x339e08=0x0;_0x339e08<_0x5e189f['length'];_0x339e08++){const _0x1fb1e1=_0x5e189f[_0x339e08];let _0xa18a53=!0x1;for(const _0x2403fd of Object['keys'](_0x1fb1e1))void 0x0===_0x1fb1e1[_0x2403fd]?delete _0x1fb1e1[_0x2403fd]:'id'!==_0x2403fd&&(_0xa18a53=!0x0);_0xa18a53||(_0x5e189f[_0x339e08]=null);}if(_0x5e189f=_0x5e189f['filter'](_0x47082f=>null!==_0x47082f),!_0x5e189f['length'])return;for(let _0x125caf=0x0;_0x125caf<_0x5e189f['length'];_0x125caf++){const _0x3db0dc=_0x5e189f[_0x125caf];void 0x0!==_0x3db0dc['fromVersion']&&void 0x0===_0x3db0dc['toVersion']&&(_0x3db0dc['toVersion']=this['repository']['getRevision'](_0x3db0dc['id'])['toVersion']),void 0x0!==_0x3db0dc['toVersion']&&void 0x0===_0x3db0dc['fromVersion']&&(_0x3db0dc['fromVersion']=this['repository']['getRevision'](_0x3db0dc['id'])['fromVersion']);}const _0x517182=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5e189f,_0x517182)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x2b7a78=>{if(_0x2b7a78){for(const _0x22b228 of _0x2b7a78)this['setRevisionData']({'id':_0x22b228['id'],'createdAt':_0x22b228['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x40ca56=null,from:_0x297848=null,to:_0x157ad5=null}){_0x297848=null!==_0x297848?_0x297848:_0x40ca56['fromVersion'],_0x157ad5=null!==_0x157ad5?_0x157ad5:_0x40ca56['toVersion'];const _0x3906ef=this['_revisionDataBuilder']['getData'](_0x297848,_0x157ad5),_0xa49523={'diffData':_0x3906ef['diffData'],'authorsIds':_0x3906ef['authorsIds'],'fromVersion':_0x297848,'toVersion':_0x157ad5};if(!_0x40ca56||_0x157ad5!==_0x40ca56['toVersion']){const _0x344306=_0x157ad5-0x1,_0x2658b7=this['_source']['history']['getOperation'](_0x344306);_0xa49523['createdAt']=_0x2658b7&&_0x2658b7['createdAt']||new Date();}if(this['_loadedStateData']&&_0x297848===this['_loadedStateData']['fromVersion']){for(const _0x4cf7ba of this['_loadedStateData']['authors'])_0xa49523['authorsIds']['includes'](_0x4cf7ba['id'])||_0xa49523['authorsIds']['push'](_0x4cf7ba['id']);}return _0xa49523;}['_bufferUpdate'](_0x49262f,_0x164523,_0x31141a){if(this['_bufferedUpdates']['has'](_0x49262f)){const _0x40b962=this['_bufferedUpdates']['get'](_0x49262f);_0x164523=_0x31141a?{..._0x40b962,..._0x164523}:{..._0x164523,..._0x40b962};}this['_bufferedUpdates']['set'](_0x49262f,_0x164523);}['setRevisionData'](_0x460148){const _0x4f47c3=this['repository']['getRevision'](_0x460148['id']);if(_0x460148['createdAt']&&(_0x460148['createdAt']=new Date(_0x460148['createdAt'])),_0x460148['authorsIds']){const _0x32f3ea=this['editor']['plugins']['get']('Users');_0x460148['authors']=_0x460148['authorsIds']['map'](_0x595be1=>_0x32f3ea['getUser'](_0x595be1));}_0x4f47c3['_update'](_0x460148,!0x0);}['_createInitialRevision'](_0x5504f4){const _0xa087be=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0xa087be)this['_initialRevisionId']=_0xa087be['id'];else{const _0x2a53fa=!this['editor']['model']['document']['roots']['find'](_0x368e9c=>this['editor']['model']['hasContent'](_0x368e9c)),_0x10bbb9=this['editor']['plugins']['get']('Users')['me']['id'],_0x1f649e=m(this['editor']['locale'],_0x2a53fa?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5504f4,'to':_0x5504f4,'id':this['_initialRevisionId'],'name':_0x1f649e,'creatorId':_0x10bbb9});}}['_createCurrentRevision'](_0x2c45ee){const _0x1f930f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x1f930f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x2c45ee,'to':_0x2c45ee,'id':_0x1f930f,'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'](_0x5d7662,_0x5c25a8){let _0x41bb2a=this['editor']['config']['get']('initialData'),_0x291cea=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x41bb2a){_0x41bb2a={};for(const _0x44bf3d of this['editor']['model']['document']['getRootNames']())_0x41bb2a[_0x44bf3d]='';}if('string'==typeof _0x41bb2a&&(_0x41bb2a={'main':_0x41bb2a}),void 0x0===_0x291cea){_0x291cea={};for(const _0x1612e1 of this['editor']['model']['document']['getRootNames']())_0x291cea[_0x1612e1]={};}let _0x21bb97=!0x1;const _0x2e6367=Object['keys'](_0x41bb2a),_0x340b9f=Object['keys'](_0x5d7662);for(const _0x3d7fd9 of _0x2e6367){if(_0x41bb2a[_0x3d7fd9]!==_0x5d7662[_0x3d7fd9]&&''!==_0x41bb2a[_0x3d7fd9]['trim']()){_0x21bb97=!0x0;break;}if(!_0x5dda21(_0x291cea[_0x3d7fd9],_0x5c25a8[_0x3d7fd9])&&Object['keys'](_0x291cea[_0x3d7fd9])['length']>0x0){_0x21bb97=!0x0;break;}}_0x21bb97||(_0x21bb97=_0x340b9f['some'](_0x4fe587=>!this['editor']['model']['document']['getRoot'](_0x4fe587))),_0x21bb97&&_0x2cfa54('editor-initial-data-replaced-with-revision-data',{'editorData':_0x41bb2a,'editorRootsAttributes':_0x291cea,'revisionData':_0x5d7662,'revisionRootsAttributes':_0x5c25a8}),this['editor']['config']['set']('initialData',_0x5d7662),this['editor']['config']['set']('rootsAttributes',_0x5c25a8);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x5a21bf=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x5a21bf['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x96248a){const _0xb25e69=this['repository']['getRevisions']();_0xb25e69['reverse']();let _0x5740b1=0x0;for(;_0x5740b1<_0xb25e69['length'];){const _0xa070e9=_0xb25e69[_0x5740b1];if(_0xa070e9===this['currentRevision']){_0x5740b1++;continue;}if(_0xa070e9['id']===this['_initialRevisionId'])break;const _0x274eb6=_0x96248a['toVersion']-_0xa070e9['toVersion']||_0x96248a['fromVersion']-_0xa070e9['fromVersion'];if(_0x274eb6>0x0)break;if(_0x274eb6<0x0)_0x5740b1++;else{if(!_0x96248a['creator']&&_0xa070e9['creator'])break;if(_0xa070e9['creator']||!_0x96248a['creator']){if(_0x96248a['createdAt']>_0xa070e9['createdAt'])break;_0x5740b1++;}else _0x5740b1++;}}return _0x5740b1;}['_getFromVersion'](_0x18084f){const _0x58aa3f=this['repository']['getRevisions']();_0x58aa3f['reverse'](),_0x58aa3f['shift']();const _0x16ef5b=_0x58aa3f['find'](_0x6b8964=>_0x6b8964['toVersion']<=_0x18084f)['toVersion'];return _0x16ef5b<this['_startingVersion']?this['_startingVersion']:_0x16ef5b;}['_makeRevision']({name:_0x434a8d,from:_0x4246c6,to:_0x42bcb7,creatorId:_0x36ec78,id:_0x133501}){const _0x5e15d3=this['buildRevisionData']({'from':_0x4246c6,'to':_0x42bcb7});_0x5e15d3['name']=_0x434a8d,_0x5e15d3['creatorId']=_0x36ec78,_0x5e15d3['id']=_0x133501;const _0x43370f=this['addRevisionData'](_0x5e15d3);return this['adapter']&&this['_bufferUpdate'](_0x5e15d3['id'],_0x5e15d3,!0x0),_0x43370f;}['_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(_0x6af6d){this['editor']=_0x6af6d,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'](_0x4afb47){this['source']=_0x4afb47;const _0x893aa9=new Map(),_0x1ed9b8=new Map(),_0x36bff5=this['editor']['model']['document']['roots']['map'](_0x203dca=>_0x203dca['rootName']);for(const _0x17e94a of _0x36bff5){const _0x369e9b=this['editor']['model']['document']['getRoot'](_0x17e94a),_0x428335=x(_0x369e9b);_0x893aa9['set'](_0x17e94a,_0x428335),_0x1ed9b8['set'](_0x17e94a,Object['fromEntries'](_0x369e9b['getAttributes']()));}const _0x10cd4e=Array['from'](this['editor']['model']['markers'])['map'](_0x18ffed=>[_0x18ffed['name'],_0x18ffed['getRange']()]),_0x3956ee=this['source']['version'];this['_saveMetaData'](_0x3956ee,_0x893aa9,_0x10cd4e,_0x1ed9b8),this['_startingRevisionId']=this['_revisionId'];const _0xd143d0=new Map(),_0x28409f=new Map();for(const _0x3939a4 of _0x36bff5){const _0x25a592=N(_0x3939a4);_0xd143d0['set'](_0x3939a4,_0x25a592),_0x28409f['set'](_0x3939a4,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xd143d0,[],_0x28409f);}['getData'](_0x572351,_0x2f2e6c){if(this['_lastFrom']===_0x572351&&this['_lastTo']<=_0x2f2e6c)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x2f2e6c,!0x0);else{if(!this['_savedMetaData']['has'](_0x572351)){const _0x44db0e=this['_getPreviousFrom'](_0x572351);this['_calculateMetaData'](_0x44db0e,_0x572351,!0x1);}this['_calculateMetaData'](_0x572351,_0x2f2e6c,!0x0);}return this['_lastFrom']=_0x572351,this['_lastTo']=_0x2f2e6c,this['_getState']();}['loadState'](_0xd8c6af){if(!this['_savedMetaData']['has'](_0xd8c6af['fromVersion'])){const _0x583d0c=this['_getPreviousFrom'](_0xd8c6af['fromVersion']);this['_calculateMetaData'](_0x583d0c,_0xd8c6af['fromVersion'],!0x1);}this['_calculateMetaData'](_0xd8c6af['fromVersion'],_0xd8c6af['toVersion'],!0x1);const _0x539630=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0xd8c6af['fromVersion'],this['_lastTo']=_0xd8c6af['toVersion'];for(const _0x2e9a18 in _0xd8c6af['diffData']){const _0x359ed8=_0xd8c6af['diffData'][_0x2e9a18]['attachChange'],_0x4d860e=_0xb2db8(_0xd8c6af['diffData'][_0x2e9a18]['attributesBefore'])||{},_0x5e92f2=_0x539630['_makeModelFromViewString'](_0xd8c6af['diffData'][_0x2e9a18]['deletions']);_0x5e92f2['rootName']=_0x2e9a18,_0x5e92f2['_isAttached']=!_0x359ed8||!_0x359ed8['isAttached'],_0x5e92f2['isAttached']=()=>_0x5e92f2['_isAttached'],this['_baseRoots']['set'](_0x2e9a18,_0x5e92f2),this['_baseRootsAttributes']['set'](_0x2e9a18,_0x4d860e),_0x359ed8&&this['_touchedRoots']['set'](_0x2e9a18,_0x359ed8);const _0x233188=this['_makeIdsRoot'](_0x5e92f2);this['_baseIdsRoots']['set'](_0x2e9a18,_0x233188);for(const [_0x401e3c,_0x94e9b2]of _0x5e92f2['markers']){if(!_0x401e3c['startsWith']('revision:'))continue;const _0x55ae45=_0x401e3c['split'](':')[0x2];for(const _0x20396f of _0x94e9b2['getWalker']({'singleCharacters':!0x0})){const _0x16185d=this['_getVidAttributeName'](_0x20396f),_0x44524c='elementEnd'==_0x20396f['type']?_0x20396f['previousPosition']['path']['slice'](0x0,-0x1):_0x20396f['previousPosition']['path'],_0x8e2a44=_0x233188['getNodeByPath'](_0x44524c)['getAttribute'](_0x16185d);this['_touched']['set'](_0x8e2a44,{'userId':_0x55ae45});}_0x5e92f2['markers']['delete'](_0x401e3c);}}this['_startingRevisionId']=this['_revisionId'];const _0x2b9a10=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x4e9578=>!this['_touched']['has'](_0x4e9578));let _0x3dd06b=0x0;const _0x43da76=new Map();for(const _0x3776c4 in _0xd8c6af['diffData']){const _0x3428db=_0xd8c6af['diffData'][_0x3776c4]['attachChange'],_0x2c8702=_0xb2db8(_0xd8c6af['diffData'][_0x3776c4]['attributesAfter'])||{},_0x1075f3=_0x539630['_makeModelFromViewString'](_0xd8c6af['diffData'][_0x3776c4]['insertions']);_0x1075f3['rootName']=_0x3776c4,_0x1075f3['_isAttached']=!_0x3428db||_0x3428db['isAttached'],_0x1075f3['isAttached']=()=>_0x1075f3['_isAttached'],this['_diffRoots']['set'](_0x3776c4,_0x1075f3),this['_diffRootsAttributes']['set'](_0x3776c4,_0x2c8702);const _0x172a25=this['_makeIdsRoot'](_0x1075f3,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3776c4,_0x172a25),_0x43da76['set'](_0x3776c4,_0x1075f3['isAttached']()?_0x2c8702:{});for(const [_0x1c2826,_0x577c68]of _0x1075f3['markers']){if(!_0x1c2826['startsWith']('revision:'))continue;const _0x279001=_0x1c2826['split'](':')[0x2];for(const _0x4935e3 of _0x577c68['getWalker']({'singleCharacters':!0x0})){const _0x1663fe=this['_getVidAttributeName'](_0x4935e3),_0x3f7f29=this['_revisionId']++,_0x17ce0f='elementEnd'==_0x4935e3['type']?_0x4935e3['previousPosition']['path']['slice'](0x0,-0x1):_0x4935e3['previousPosition']['path'];_0x172a25['getNodeByPath'](_0x17ce0f)['_setAttribute'](_0x1663fe,_0x3f7f29),this['_touched']['set'](_0x3f7f29,{'userId':_0x279001});}_0x1075f3['markers']['delete'](_0x1c2826);}for(const _0x9ccfd5 of this['editor']['model']['createRangeIn'](_0x1075f3)['getWalker']({'singleCharacters':!0x0})){const _0x557d30=this['_getVidAttributeName'](_0x9ccfd5),_0xd3d65f='elementEnd'==_0x9ccfd5['type']?_0x9ccfd5['previousPosition']['path']['slice'](0x0,-0x1):_0x9ccfd5['previousPosition']['path'],_0x341365=_0x172a25['getNodeByPath'](_0xd3d65f);_0x341365['getAttribute'](_0x557d30)>0x0||_0x341365['_setAttribute'](_0x557d30,_0x2b9a10[_0x3dd06b++]);}for(const [_0x1abb51,_0x481ca5]of _0x1075f3['markers'])_0x1abb51['startsWith']('revision:')||this['_markers']['set'](_0x1abb51,_0x481ca5);}const {roots:_0xeaa4c5}=this['_savedMetaData']['get'](_0xd8c6af['fromVersion']),{roots:_0x5d3f92}=this['_savedMetaData']['get'](_0xd8c6af['toVersion']),_0x2f64ca=x(_0xeaa4c5['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x2f64ca),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2f64ca,Number['NEGATIVE_INFINITY']));const _0x4e9608=x(_0x5d3f92['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0x4e9608),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e9608));const _0x342df7=Array['from'](this['_diffRoots'])['map'](([_0x11c64d,_0x22f555])=>[_0x11c64d,x(_0x22f555)]);this['_saveMetaData'](this['_lastTo'],_0x342df7,this['_markers'],_0x43da76);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x5d0f05,_0x3d7199,_0x4ea3d6,_0x344245){const _0x12e205=new Map(_0x3d7199),_0x2c0b97=new Map(_0xb2db8(_0x344245)),_0x4d470f=new Map();for(const [_0x3dfa41,_0x38e46e]of _0x4ea3d6)_0x4d470f['set'](_0x3dfa41,{'start':_0x38e46e['start']['clone'](),'end':_0x38e46e['end']['clone'](),'rootName':_0x38e46e['root']['rootName']});this['_savedMetaData']['set'](_0x5d0f05,{'roots':_0x12e205,'markers':_0x4d470f,'rootsAttributes':_0x2c0b97});}['_removeMetaData'](_0xa8caad){this['_savedMetaData']['delete'](_0xa8caad);}['_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'](_0x2d3081,_0x127f82=null){let _0x1399aa=null;_0x2d3081['is']('documentFragment')||(_0x1399aa=new _0x467cfa(_0x2d3081['name'],{'vid_start':null===_0x127f82?this['_revisionId']++:_0x127f82++}));const _0x2391f5=[];for(const _0x2a2d81 of _0x2d3081['getChildren']())if(_0x2a2d81['is']('element')){_0x2391f5['push'](this['_makeIdsRoot'](_0x2a2d81,_0x127f82));const _0x1115af=_0x2391f5[_0x2391f5['length']-0x1];null!==_0x127f82&&(_0x127f82=_0x1115af['is']('element','$text')?_0x1115af['getAttribute']('vid')+0x1:_0x1115af['getAttribute']('vid_end')+0x1);}else{for(let _0x43e84f=0x0;_0x43e84f<_0x2a2d81['offsetSize'];_0x43e84f++)_0x2391f5['push'](new _0x467cfa('$text',{'vid':null===_0x127f82?this['_revisionId']++:_0x127f82++}));}if(_0x2d3081['is']('documentFragment')){const _0x5ec32a=N(_0x2d3081['rootName']);return _0x5ec32a['_insertChild'](0x0,_0x2391f5),_0x5ec32a;}return _0x1399aa['_setAttribute']('vid_end',null===_0x127f82?this['_revisionId']++:_0x127f82++),_0x1399aa['_insertChild'](0x0,_0x2391f5),_0x1399aa;}['_calculateMetaData'](_0x3d57b8,_0x19dd42,_0x13f87a){this['_reset']();const {roots:_0x4aa8c2,markers:_0x313e48,rootsAttributes:_0x4e97dc}=this['_savedMetaData']['get'](_0x3d57b8);this['_baseRoots']=new Map(_0x4aa8c2),this['_baseRootsAttributes']=new Map(_0xb2db8(_0x4e97dc));for(const [_0x3aa41c,_0x51b038]of this['_baseRoots'])if('$graveyard'!==_0x3aa41c&&(this['_diffRoots']['set'](_0x3aa41c,x(_0x51b038)),this['_diffRootsAttributes']=new Map(_0xb2db8(_0x4e97dc)),_0x13f87a)){const _0x11ac14=this['_revisionId'];this['_idsRoots']['set'](_0x3aa41c,this['_makeIdsRoot'](_0x51b038)),this['_baseIdsRoots']['set'](_0x3aa41c,this['_makeIdsRoot'](_0x51b038,_0x11ac14));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x13f87a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x35fcd9,_0x3f31a5]of _0x313e48){const _0x1ed5d6=this['_baseRoots']['get'](_0x3f31a5['rootName']),_0x4cbfa6=this['_diffRoots']['get'](_0x3f31a5['rootName']),_0x1e7964=new _0x49d459(this['_fixPosition'](_0x3f31a5['start'],_0x1ed5d6),this['_fixPosition'](_0x3f31a5['end'],_0x1ed5d6)),_0x3b4f3d=this['_fixRange'](_0x1e7964,_0x4cbfa6);_0x1ed5d6['markers']['set'](_0x35fcd9,_0x1e7964),this['_markers']['set'](_0x35fcd9,_0x3b4f3d);}this['_applyOperations'](_0x3d57b8,_0x19dd42,_0x13f87a);}['_applyOperations'](_0x4dc448,_0x3c4eca,_0x1856e2){for(const _0x1d9120 of this['source']['getOperations'](_0x4dc448,_0x3c4eca))this['_handleOperation'](_0x1d9120,_0x1856e2);for(const _0x5d3e41 of this['_diffRoots']['values']())_0x5d3e41['markers']['clear']();for(const [_0x4e8862,_0x3fc430]of this['_markers']){this['_diffRoots']['get'](_0x3fc430['root']['rootName'])['markers']['set'](_0x4e8862,_0x3fc430['clone']());}const _0x265474=new Map(),_0x58ee4e=new Map();for(const [_0x1fd9e1,_0x16bb86]of this['_diffRoots'])_0x265474['set'](_0x1fd9e1,x(_0x16bb86)),_0x58ee4e['set'](_0x1fd9e1,this['_diffRootsAttributes']['get'](_0x1fd9e1));this['_saveMetaData'](_0x3c4eca,_0x265474,this['_markers'],_0x58ee4e);}['_getPreviousFrom'](_0x5dac21){const _0x271830=Array['from'](this['_savedMetaData']['keys']());_0x271830['sort']((_0x495a94,_0x56dfe4)=>_0x495a94-_0x56dfe4),_0x271830['reverse']();for(const _0x261324 of _0x271830)if(_0x261324<_0x5dac21)return _0x261324;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x17f5ea,_0x54844e){const _0x275b92=Array['from'](_0x54844e['markers'])['map'](([_0x1604a2,_0x46f3e9])=>[_0x1604a2,this['_fixRange'](_0x46f3e9,_0x17f5ea)]);_0x17f5ea['markers']=new Map(_0x275b92);}['_transformMarkers'](_0x15ac29){for(const _0x36a2bc of this['_markers']['values']()){const _0x24f797=_0x36a2bc['getTransformedByOperation'](_0x15ac29),_0x560558=_0x49d459['_createFromRanges'](_0x24f797);_0x36a2bc['start']=_0x560558['start'],_0x36a2bc['end']=_0x560558['end'];}}['_handleOperation'](_0x47050c,_0x1e1f27){if('addRoot'!=_0x47050c['type']&&'detachRoot'!=_0x47050c['type']){if('insert'==_0x47050c['type']){const _0x1ab114=_0x47050c['position']['root']['rootName'];this['_diffRoots']['has'](_0x1ab114)||(this['_diffRoots']['set'](_0x1ab114,N(_0x1ab114,!0x0)),this['_diffRootsAttributes']['set'](_0x1ab114,{}),_0x1e1f27&&this['_idsRoots']['set'](_0x1ab114,N(_0x1ab114,!0x0)));}else{if('addRootAttribute'==_0x47050c['type']||'removeRootAttribute'==_0x47050c['type']||'changeRootAttribute'==_0x47050c['type'])return void this['_handleRootAttributeOperation'](_0x47050c);'marker'==_0x47050c['type']&&this['_handleMarkerOperation'](_0x47050c);}if('marker'!==_0x47050c['type']){const _0x4067ec=this['_cloneOperation'](_0x47050c,this['_diffRoots']);_0x4067ec['_execute'](),this['_transformMarkers'](_0x4067ec);}if(_0x1e1f27)switch(_0x47050c['type']){case'insert':this['_handleInsertOperation'](_0x47050c);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x47050c);break;case'merge':this['_handleMergeOperation'](_0x47050c);break;case'split':this['_handleSplitOperation'](_0x47050c);}}else this['_handleRootOperation'](_0x47050c,_0x1e1f27);}['_cloneOperation'](_0x4eb5b2,_0x5e9dce){const _0xf1ea58=_0x4eb5b2['clone']();return _0xf1ea58['_authorId']=_0x4eb5b2['_authorId'],this['_fixOperation'](_0xf1ea58,_0x5e9dce),_0xf1ea58;}['_getBaseVids'](_0x416dc1){return _0x416dc1['map'](_0x2b856d=>{const _0x2eb7ee=this['_getVidAttributeName'](_0x2b856d);return Number(_0x2b856d['item']['getAttribute'](_0x2eb7ee));});}['_generateTape'](_0x2b0a70,_0x1ed70c){if(_0x2b0a70['is']('element','$text'))_0x1ed70c['push']({'item':_0x2b0a70,'type':'text'});else{_0x2b0a70['is']('element')&&_0x1ed70c['push']({'item':_0x2b0a70,'type':'elementStart'});for(const _0x59edf4 of _0x2b0a70['getChildren']())this['_generateTape'](_0x59edf4,_0x1ed70c);_0x2b0a70['is']('element')&&_0x1ed70c['push']({'item':_0x2b0a70,'type':'elementEnd'});}return _0x1ed70c;}['_getState'](){const _0x5603a8=new Map(this['_touched']),_0x3a3f74=new Map(_0x5603a8),_0x2aba9d=new Map(),_0x282038={'insertions':{},'deletions':{}},_0x2ac367={'insertions':{},'deletions':{}},_0x5142e8=new Map(),_0x31b95a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x31b95a['delete']('$graveyard');for(const _0x59b618 of _0x31b95a){const _0x47340b=this['_diffRoots']['get'](_0x59b618)||N(_0x59b618,!0x1),_0x5134bc=this['_baseRoots']['get'](_0x59b618)||N(_0x59b618,!0x1);_0x47340b['isAttached']()||_0x5134bc['isAttached']()?(_0x282038['insertions'][_0x59b618]=x(_0x47340b),_0x282038['deletions'][_0x59b618]=x(_0x5134bc),this['_copyMarkers'](_0x282038['deletions'][_0x59b618],_0x5134bc),this['_copyMarkers'](_0x282038['insertions'][_0x59b618],_0x47340b),_0x2ac367['insertions'][_0x59b618]=this['_generateTape'](this['_idsRoots']['get'](_0x59b618),[]),_0x2ac367['deletions'][_0x59b618]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x59b618)||N(_0x59b618,!0x1),[])):_0x31b95a['delete'](_0x59b618);}for(const _0x2fefaa of _0x31b95a){const _0x3815e8=_0x2ac367['insertions'][_0x2fefaa];for(const _0x1fb3b6 of _0x3815e8){const _0x21e1d7=this['_getVidAttributeName'](_0x1fb3b6),_0x874cee=_0x1fb3b6['item']['getAttribute'](_0x21e1d7);_0x3a3f74['delete'](_0x874cee),_0x874cee>=this['_startingRevisionId']&&_0x2aba9d['set'](_0x874cee,_0x5603a8['get'](_0x874cee));}}for(const _0x2d066d of _0x31b95a){const _0x142707=_0x2ac367['insertions'][_0x2d066d],_0x5a1307=this['_getBaseVids'](_0x2ac367['deletions'][_0x2d066d]);let _0xdaf644=0x0;for(const _0x3f1aca of _0x142707){const _0x36a06c=this['_getVidAttributeName'](_0x3f1aca),_0x563e56=_0x3f1aca['item']['getAttribute'](_0x36a06c);if(!_0x2aba9d['has'](_0x563e56)&&!_0x5142e8['has'](_0x563e56)){if(_0x3a3f74['has'](_0x563e56))_0xdaf644++;else{if(_0x563e56!=_0x5a1307[_0xdaf644]){const _0x1a3738=_0x5603a8['get'](_0x563e56)||_0x5603a8['get'](_0x5a1307[_0xdaf644]);for(;_0x563e56!=_0x5a1307[_0xdaf644];)_0x3a3f74['has'](_0x5a1307[_0xdaf644])||(_0x5142e8['set'](_0x5a1307[_0xdaf644],_0x1a3738),_0x5603a8['set'](_0x5a1307[_0xdaf644],_0x1a3738)),_0xdaf644++;}_0xdaf644++;}}}}for(const _0x514189 of _0x31b95a){const _0x361552=_0x2ac367['insertions'][_0x514189];for(const _0x5bd466 of _0x361552){const _0x115f6b=this['_getVidAttributeName'](_0x5bd466),_0x8d198e=_0x5bd466['item']['getAttribute'](_0x115f6b);if(_0x5142e8['has'](_0x8d198e)){const _0x2df03e=_0x5142e8['get'](_0x8d198e);_0x3a3f74['has'](_0x8d198e)||_0x3a3f74['set'](_0x8d198e,{..._0x2df03e}),_0x2aba9d['set'](_0x8d198e,{..._0x2df03e});}}}for(const _0x417401 of _0x3a3f74['keys']())_0x417401>=this['_startingRevisionId']&&_0x3a3f74['delete'](_0x417401);const _0x4c9906=new Map();for(const _0x92b46d of _0x31b95a){let _0x2c11a7=_0x2ac367['insertions'][_0x92b46d];for(const _0x2b4a29 of _0x2c11a7)if(_0x2b4a29['item']['is']('element','tableCell')){const _0x4e67ad=this['_getVidAttributeName'](_0x2b4a29),_0x15adc1=_0x2b4a29['item']['getAttribute'](_0x4e67ad);if(_0x2aba9d['has'](_0x15adc1)){const _0x4ac459=_0x2b4a29['item']['parent']['parent']['getAttribute']('vid_start'),_0x5395e0=_0x4c9906['get'](_0x4ac459)||new Set();_0x5395e0['add'](_0x2aba9d['get'](_0x15adc1)['userId']),_0x4c9906['set'](_0x4ac459,_0x5395e0);}}_0x2c11a7=_0x2ac367['deletions'][_0x92b46d];for(const _0x5e2d16 of _0x2c11a7)if(_0x5e2d16['item']['is']('element','tableCell')){const _0x3c99b4=this['_getVidAttributeName'](_0x5e2d16),_0x5a94fd=_0x5e2d16['item']['getAttribute'](_0x3c99b4);if(_0x3a3f74['has'](_0x5a94fd)){const _0x3db419=_0x5e2d16['item']['parent']['parent']['getAttribute']('vid_start'),_0x1cddb5=_0x4c9906['get'](_0x3db419)||new Set();_0x1cddb5['add'](_0x3a3f74['get'](_0x5a94fd)['userId']),_0x4c9906['set'](_0x3db419,_0x1cddb5);}}for(const _0x316091 of _0x4c9906['keys']())(_0x2aba9d['has'](_0x316091)||_0x3a3f74['has'](_0x316091))&&_0x4c9906['delete'](_0x316091);}for(const _0x31a0d8 of _0x31b95a){const _0x6478d=_0x2ac367['insertions'][_0x31a0d8];let _0x357eaf=null,_0x441d6e=null;for(const _0x3741eb of _0x6478d){const _0x2ab52b=this['_getVidAttributeName'](_0x3741eb),_0xf964b6=_0x3741eb['item']['getAttribute'](_0x2ab52b),_0x232ba3=_0x4c9906['get'](_0xf964b6);_0x232ba3&&'elementStart'==_0x3741eb['type']&&(_0x357eaf=Array['from'](_0x232ba3)[0x0],_0x441d6e=_0x3741eb['item']['getAttribute']('vid_end')),_0x357eaf&&(_0x3a3f74['set'](_0xf964b6,{'userId':_0x357eaf}),_0x2aba9d['set'](_0xf964b6,{'userId':_0x357eaf})),_0xf964b6==_0x441d6e&&(_0x357eaf=null,_0x441d6e=null);}}const _0x457005={},_0x3cb76c=new Set();for(const _0x2dc393 of _0x31b95a){const _0x1ff38d=_0x282038['deletions'][_0x2dc393],_0x4af6fd=_0x282038['insertions'][_0x2dc393];for(const {userId:_0x52e0b0}of this['_touchedMarkers']['values']())null!==_0x52e0b0&&_0x3cb76c['add'](_0x52e0b0);for(const {userId:_0x3aa528}of this['_touchedRoots']['values']())null!==_0x3aa528&&_0x3cb76c['add'](_0x3aa528);this['_markChanges'](_0x4af6fd,_0x2ac367['insertions'][_0x2dc393],_0x2aba9d,'insertion',_0x3cb76c),this['_markChanges'](_0x1ff38d,_0x2ac367['deletions'][_0x2dc393],_0x3a3f74,'deletion',_0x3cb76c),_0x457005[_0x2dc393]={'insertions':this['_prepareViewToSave'](_0x4af6fd),'deletions':this['_prepareViewToSave'](_0x1ff38d),'attachChange':this['_touchedRoots']['get'](_0x2dc393)||null,'attributesBefore':_0xb2db8(this['_baseRootsAttributes']['get'](_0x2dc393))||{},'attributesAfter':_0xb2db8(this['_diffRootsAttributes']['get'](_0x2dc393))};}return{'diffData':_0x457005,'authorsIds':Array['from'](_0x3cb76c)};}['_processRootBeforeSave'](_0x1e4eb9){for(const [,_0x28f85]of _0x1e4eb9['markers']){const _0x1338b9=_0x28f85['start']['getAncestors']()['filter'](_0x451c72=>'tableCell'==_0x451c72['name']);for(const _0xcb45a7 of _0x1338b9)0x1==_0xcb45a7['childCount']&&_0xcb45a7['getChild'](0x0)['is']('element','paragraph')&&_0xcb45a7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5f1e1b){this['_processRootBeforeSave'](_0x5f1e1b);const _0x5532b5=this['editor']['data']['toView'](_0x5f1e1b,{}),_0x5753db=Array['from'](_0x5532b5['getChildren']())['map'](_0x59ed68=>this['_getViewJson'](_0x59ed68));return JSON['stringify'](_0x5753db);}['_getViewJson'](_0x1fa7ba){if(_0x1fa7ba['is']('$text'))return _0x1fa7ba['data'];{const _0x112a5a=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x475504=_0x1fa7ba,_0x3d1715=this['editor']['data']['htmlProcessor']['domConverter'],_0x3ff295={'type':_0x112a5a['_getTypeCharForViewElement'](_0x475504),'name':_0x475504['name'],'attributes':Array['from'](_0x475504['getAttributes']()),'children':Array['from'](_0x475504['getChildren']())['map'](_0x5cd0b0=>this['_getViewJson'](_0x5cd0b0))};if(_0x1fa7ba['is']('uiElement')&&'$comment'!=_0x1fa7ba['name']){const _0x458a1a=_0x1fa7ba['render'](_0x3d1715['domDocument'],_0x3d1715);_0x3ff295['children']['push'](_0x458a1a['outerHTML']);}else{if(_0x1fa7ba['is']('rawElement')){const _0x18e752=_0x3d1715['domDocument']['createElement'](_0x475504['name']);_0x1fa7ba['render'](_0x18e752,_0x3d1715),_0x3ff295['children']['push'](_0x18e752['innerHTML']);}}const _0x172d75=Array['from'](_0x475504['getCustomProperties']());_0x172d75['length']>0x0&&(_0x3ff295['customProperties']=_0x172d75);const _0x1f2135=_0x475504['getFillerOffset']();return null!==_0x1f2135&&(_0x3ff295['fillerOffset']=_0x1f2135),_0x3ff295;}}['_markChanges'](_0x596a41,_0x4170d1,_0x5c40b3,_0x3a9c82,_0x165273){let _0x40f476=null,_0x7e5fc4=null,_0x13935c=0x0;const _0x246f7a=this['editor']['model'];for(let _0x4fcf91=0x0;_0x4fcf91<_0x4170d1['length'];_0x4fcf91++){const _0x5839c3=this['_getVidAttributeName'](_0x4170d1[_0x4fcf91]),_0x5370b2=_0x4170d1[_0x4fcf91]['item']['getAttribute'](_0x5839c3),_0x517fc0=_0x5c40b3['get'](_0x5370b2),_0x4c420b=_0x4fcf91==_0x4170d1['length']-0x1;(!_0x40f476&&_0x517fc0&&(_0x40f476=_0x517fc0,_0x7e5fc4=_0x4170d1[_0x4fcf91]),_0x40f476&&(!_0x517fc0||_0x517fc0['userId']!=_0x40f476['userId']))&&(_0x5de8ea(_0x517fc0,P(_0x7e5fc4,_0x596a41,_0x246f7a),P(_0x4170d1[_0x4fcf91],_0x596a41,_0x246f7a)),_0x40f476=_0x517fc0||null,_0x7e5fc4=_0x517fc0?_0x4170d1[_0x4fcf91]:null),_0x40f476&&_0x4c420b&&_0x5de8ea(_0x517fc0,P(_0x7e5fc4,_0x596a41,_0x246f7a),V(_0x4170d1[_0x4fcf91],_0x596a41,_0x246f7a));}function _0x5de8ea(_0x17924d,_0x3931b3,_0xb4b9cb){const _0x34a649=_0x40f476['userId'],_0x1e1433='revision:'+_0x3a9c82+':'+_0x34a649+':'+_0x13935c++,_0x2e584d=_0x246f7a['createRange'](_0x3931b3,_0xb4b9cb);_0x596a41['markers']['set'](_0x1e1433,_0x2e584d),null!==_0x34a649&&_0x165273['add'](_0x34a649);}}['_getVidAttributeName'](_0x3843cd){switch(_0x3843cd['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2a1c1c,_0x81f87e){_0x2a1c1c['baseVersion']=null;for(const _0x535b6f in _0x2a1c1c){const _0x4f3749=_0x2a1c1c[_0x535b6f];if(_0x4f3749 instanceof _0x2c240b){const _0x12cecd=_0x81f87e['get'](_0x4f3749['root']['rootName']);_0x2a1c1c[_0x535b6f]=this['_fixPosition'](_0x4f3749,_0x12cecd);}if(_0x4f3749 instanceof _0x49d459){const _0x4be2c9=_0x81f87e['get'](_0x4f3749['root']['rootName']);_0x2a1c1c[_0x535b6f]=this['_fixRange'](_0x4f3749,_0x4be2c9);}'root'===_0x535b6f&&(_0x2a1c1c['root']=_0x81f87e['get'](_0x2a1c1c['root']['rootName']));}}['_fixRange'](_0x2be69e,_0x1238b3){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2be69e['start'],_0x1238b3),this['_fixPosition'](_0x2be69e['end'],_0x1238b3));}['_fixPosition'](_0x5b384f,_0x358590){return this['editor']['model']['createPositionFromPath'](_0x358590,_0x5b384f['path'],_0x5b384f['stickiness']);}['_handleInsertOperation'](_0x2ee3d4){const _0x3a9382=this['_idsRoots']['get'](_0x2ee3d4['position']['root']['rootName']),_0x4f8201=this['_fixPosition'](_0x2ee3d4['position'],_0x3a9382),_0x56561e=null===_0x2ee3d4['_authorId']?null:_0x2ee3d4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x459d3c=_0x4f8201['parent'],_0x5762b7=this['_revisionId'],_0x1c3fcc=[];for(const _0x155237 of _0x2ee3d4['nodes'])if(_0x155237['is']('element'))_0x1c3fcc['push'](this['_makeIdsRoot'](_0x155237));else{for(let _0x3a8e7c=0x0;_0x3a8e7c<_0x155237['offsetSize'];_0x3a8e7c++)_0x1c3fcc['push'](new _0x467cfa('$text',{'vid':this['_revisionId']++}));}const _0x42e529=this['_revisionId'];for(let _0x4b9b8a=_0x5762b7;_0x4b9b8a<_0x42e529;_0x4b9b8a++)this['_touched']['set'](_0x4b9b8a,{'userId':_0x56561e});_0x459d3c['_insertChild'](_0x4f8201['offset'],_0x1c3fcc);}['_handleMoveOperation'](_0x3732c4){(_0x3732c4=this['_cloneOperation'](_0x3732c4,this['_idsRoots']))['_execute']();const _0xa5bbf4=null===_0x3732c4['_authorId']?null:_0x3732c4['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x111c57=_0x3732c4['getMovedRangeStart'](),_0x3d9bb2=_0x111c57['parent'],_0x464a82=_0x111c57['offset'];!function _0x4bdacb(_0x53e3f3,_0x181fc9,_0x2e3489,_0x4a3af0){for(let _0x36d592=_0x2e3489;_0x36d592<_0x4a3af0;_0x36d592++){const _0x5e78ef=_0x181fc9['getChild'](_0x36d592);_0x5e78ef['is']('element','$text')?_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid'),{'userId':_0xa5bbf4}):(_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid_start'),{'userId':_0xa5bbf4}),_0x4bdacb(_0x53e3f3,_0x5e78ef,0x0,_0x5e78ef['childCount']),_0x53e3f3['set'](_0x5e78ef['getAttribute']('vid_end'),{'userId':_0xa5bbf4}));}}(this['_touched'],_0x3d9bb2,_0x464a82,_0x464a82+_0x3732c4['howMany']);}['_handleMergeOperation'](_0x28da61){const _0x36620d=null===(_0x28da61=this['_cloneOperation'](_0x28da61,this['_idsRoots']))['_authorId']?null:_0x28da61['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x421f15=_0x28da61['targetPosition']['parent'],_0x5ed35e=_0x28da61['sourcePosition']['parent'],_0x27173f=_0x421f15['getAttribute']('vid_end'),_0x1cf939=_0x5ed35e['getAttribute']('vid_start');_0x421f15['_setAttribute']('vid_end',_0x5ed35e['getAttribute']('vid_end')),_0x5ed35e['_setAttribute']('vid_end',_0x27173f),this['_touched']['set'](_0x1cf939,{'userId':_0x36620d}),this['_touched']['set'](_0x27173f,{'userId':_0x36620d}),_0x28da61['_execute']();}['_handleSplitOperation'](_0x3e83c9){const _0x304df7=null===(_0x3e83c9=this['_cloneOperation'](_0x3e83c9,this['_idsRoots']))['_authorId']?null:_0x3e83c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x11b609=_0x3e83c9['graveyardPosition'],_0x134dbe=_0x3e83c9['splitPosition']['parent'];_0x3e83c9['_execute']();const _0x5d3bce=_0x134dbe['getAttribute']('vid_end'),_0xbf2ff0=_0x3e83c9['insertionPosition']['nodeAfter'];if(_0x11b609){const _0x22463c=_0xbf2ff0['getAttribute']('vid_end'),_0x5141aa=_0x134dbe['getAttribute']('vid_end');_0x134dbe['_setAttribute']('vid_end',_0x22463c),_0xbf2ff0['_setAttribute']('vid_end',_0x5141aa),this['_touched']['set'](_0x134dbe['getAttribute']('vid_end'),{'userId':_0x304df7}),this['_touched']['set'](_0xbf2ff0['getAttribute']('vid_start'),{'userId':_0x304df7});}else{const _0x49ca2a=this['_revisionId']++,_0x281e53=this['_revisionId']++;_0x134dbe['_setAttribute']('vid_end',_0x49ca2a),_0xbf2ff0['_setAttribute']('vid_start',_0x281e53),_0xbf2ff0['_setAttribute']('vid_end',_0x5d3bce),this['_touched']['set'](_0x49ca2a,{'userId':_0x304df7}),this['_touched']['set'](_0x281e53,{'userId':_0x304df7});}}['_handleMarkerOperation'](_0x46c57d){if(!_0x46c57d['affectsData'])return;const _0x55260b=(_0x46c57d=this['_cloneOperation'](_0x46c57d,this['_diffRoots']))['oldRange']?_0x46c57d['oldRange']['root']:null,_0x4a2e30=_0x46c57d['newRange']?_0x46c57d['newRange']['root']:null;_0x55260b&&this['_markers']['delete'](_0x46c57d['name']),_0x4a2e30&&this['_markers']['set'](_0x46c57d['name'],_0x46c57d['newRange']['clone']());const _0x41ea5b=null===_0x46c57d['_authorId']?null:_0x46c57d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd4055f=_0x46c57d['name'];if(!this['_touchedMarkers']['has'](_0xd4055f))return void this['_touchedMarkers']['set'](_0xd4055f,{'range':_0x46c57d['oldRange'],'userId':_0x41ea5b});const _0x2f19bb=this['_touchedMarkers']['get'](_0xd4055f),_0x520fc1=_0x2f19bb['range'],_0x4408fb=_0x46c57d['newRange'];null==_0x520fc1&&null==_0x4408fb||_0x520fc1&&_0x4408fb&&_0x520fc1['isEqual'](_0x4408fb)?this['_touchedMarkers']['delete'](_0x46c57d['name']):_0x2f19bb['userId']=_0x41ea5b;}['_handleRootOperation'](_0x2d2d00,_0x17928d){this['_diffRoots']['has'](_0x2d2d00['rootName'])?this['_diffRoots']['get'](_0x2d2d00['rootName'])['_isAttached']=_0x2d2d00['isAdd']:(this['_diffRoots']['set'](_0x2d2d00['rootName'],N(_0x2d2d00['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2d2d00['rootName'],{}),_0x17928d&&this['_idsRoots']['set'](_0x2d2d00['rootName'],N(_0x2d2d00['rootName'],!0x0)));const _0xd19021=null===_0x2d2d00['_authorId']?null:_0x2d2d00['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3ac2c5=this['_touchedRoots']['get'](_0x2d2d00['rootName']);_0x3ac2c5&&_0x3ac2c5['userId']===_0xd19021?this['_touchedRoots']['delete'](_0x2d2d00['rootName']):this['_touchedRoots']['set'](_0x2d2d00['rootName'],{'userId':_0xd19021,'isAttached':_0x2d2d00['isAdd']});}['_handleRootAttributeOperation'](_0x59a673){const _0x4c0b48=this['_diffRootsAttributes']['get'](_0x59a673['root']['rootName']);null===_0x59a673['newValue']?delete _0x4c0b48[_0x59a673['key']]:_0x4c0b48[_0x59a673['key']]=_0x59a673['newValue'];}}function x(_0x328bb7){const _0x204cf3=N(_0x328bb7['rootName'],_0x328bb7['isAttached']());for(const _0x28a515 of _0x328bb7['getChildren']()){const _0x3d73dd=_0x28a515['_clone'](!0x0);_0x204cf3['_appendChild'](_0x3d73dd);}return _0x204cf3;}function N(_0x39bdee,_0xa090a2=!0x0){const _0x4a89f4=new _0xbdee0c();return _0x4a89f4['rootName']=_0x39bdee,_0x4a89f4['_isAttached']=_0xa090a2,_0x4a89f4['isAttached']=()=>_0x4a89f4['_isAttached'],_0x4a89f4;}function P(_0x2ab7d2,_0xcab69a,_0x585827){const _0x126f4a='elementEnd'==_0x2ab7d2['type']?_0x585827['createPositionAt'](_0x2ab7d2['item'],'end'):_0x585827['createPositionBefore'](_0x2ab7d2['item']);return _0x585827['createPositionFromPath'](_0xcab69a,_0x126f4a['path'],_0x126f4a['stickiness']);}function V(_0x490e15,_0xcab05e,_0x57bc24){const _0x2d69a7='elementStart'==_0x490e15['type']?_0x57bc24['createPositionAt'](_0x490e15['item'],0x0):_0x57bc24['createPositionAfter'](_0x490e15['item']);return _0x57bc24['createPositionFromPath'](_0xcab05e,_0x2d69a7['path'],_0x2d69a7['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
- _0x3560c6(_0x2a78ea){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x34f944,_0x3d6d93){super(_0x34f944),this['focusTracker']=new _0x5edae5(),this['keystrokes']=new _0x354688(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3d6d93),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'](),_0x301d30({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x13f522=_0x247a89=>_0x247a89['stopPropagation']();this['keystrokes']['set']('arrowright',_0x13f522),this['keystrokes']['set']('arrowleft',_0x13f522),this['keystrokes']['set']('arrowup',_0x13f522),this['keystrokes']['set']('arrowdown',_0x13f522);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x173959){this['revisionNameInputView']['fieldView']['element']['value']=_0x173959['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x12e2d4){const _0x22d1a7=new et(this['locale'],ti),_0xa1bd49=_0x22d1a7['fieldView'];_0xa1bd49['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2f45f6=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x12e2d4&&(_0x2f45f6+='\x20('+m(this['locale'],'optional')+')'),(_0x22d1a7['label']=_0x2f45f6,_0xa1bd49['on']('input',()=>{this['revisionNameInputValue']=_0xa1bd49['element']['value']['trim']();}),_0x22d1a7);}}class l extends _0x437c77{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x1e1f54=this['editor'],_0x4c5501=_0x1e1f54['plugins']['get']('RevisionTracker');_0x1e1f54['ui']['componentFactory']['add']('revisionHistory',_0x752226=>{const _0x17466d=_0x2676c3(_0x752226),_0x53b20d=_0x17466d['panelView']['children'],_0x4a796b=new _0x15824c(_0x752226),_0x2b3304=new _0x3054ac(_0x752226),_0x1fe766=new _0x4c4445(_0x752226),_0x52cc8a=new _0x3054ac(_0x752226),_0x2a502=new _0x4c4445(_0x752226);return _0x17466d['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x4c5501,'isEnabled',_0x1e1f54,'isReadOnly',(_0x3d1636,_0x47953c,_0x12e0d1)=>_0x3d1636&&_0x47953c&&!_0x12e0d1),_0x17466d['buttonView']['set']({'icon':_0x3dc43c,'label':m(_0x752226,'Revision\x20history'),'tooltip':!0x0}),_0x1fe766['set']({'label':m(_0x752226,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1fe766['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x4c5501,'isEnabled',_0x1e1f54,'isReadOnly',(_0x1db874,_0x513d3f,_0x383c93)=>_0x1db874&&_0x513d3f&&!_0x383c93),_0x1fe766['on']('execute',()=>this['_showDialog']()),_0x2a502['set']({'label':m(_0x752226,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2a502['bind']('isEnabled')['to'](_0x4c5501,'isReady',_0x1e1f54,'isReadOnly',(_0x2c4f17,_0x463213)=>_0x2c4f17&&!_0x463213),_0x2a502['on']('execute',()=>{_0x1e1f54['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x17466d['isOpen']=!0x1,_0x1e1f54['editing']['view']['focus']();}),_0x2b3304['children']['add'](_0x1fe766),_0x52cc8a['children']['add'](_0x2a502),_0x4a796b['role']='menu',_0x4a796b['items']['addMany']([_0x2b3304,_0x52cc8a]),_0x53b20d['add'](_0x4a796b),_0x17466d;}),_0x1e1f54['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x320da7=this['editor'],_0x49d3fd=_0x320da7['locale'],_0x4b716b=new _0x34fd27(_0x49d3fd),_0x1cf9c0=new _0x2ddecd(_0x49d3fd);_0x4b716b['buttonView']['set']({'icon':_0x3dc43c,'label':m(_0x49d3fd,'Revision\x20history')});const _0x2b3c8d=new _0x456bf8(_0x49d3fd,_0x4b716b),_0xec7e2a=new _0x590fd1(_0x49d3fd);_0xec7e2a['set']({'label':m(_0x49d3fd,'Save\x20current\x20revision')}),_0xec7e2a['delegate']('execute')['to'](_0x4b716b),_0xec7e2a['on']('execute',()=>{this['_showDialog']();}),_0x2b3c8d['children']['add'](_0xec7e2a),_0x1cf9c0['items']['add'](_0x2b3c8d);const _0x5f12f3=new _0x456bf8(_0x49d3fd,_0x4b716b),_0x236955=new _0x590fd1(_0x49d3fd);return _0x236955['set']({'label':m(_0x49d3fd,'Open\x20revision\x20history')}),_0x236955['delegate']('execute')['to'](_0x4b716b),_0x236955['on']('execute',()=>{_0x320da7['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x5f12f3['children']['add'](_0x236955),_0x1cf9c0['items']['add'](_0x5f12f3),_0x4b716b['panelView']['children']['add'](_0x1cf9c0),_0x4b716b;}['_showDialog'](){const _0x4cd3ce=this['editor'],_0x315e0c=_0x4cd3ce['locale'],_0x4d1e98=_0x4cd3ce['plugins']['get']('Dialog'),_0x18f2f2=_0x4cd3ce['plugins']['get']('RevisionTracker');function _0xe2e24b(_0x4d29a6){_0x4cd3ce['config']['get']('revisionHistory.requireRevisionName')&&''===_0x4d29a6['revisionName']?_0x4d29a6['revisionNameInputView']['errorText']=m(_0x315e0c,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4cd3ce['plugins']['get'](h)['saveRevision']({'name':_0x4d29a6['revisionName']}),_0x4d1e98['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0xe2e24b(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x4d1e98['show']({'id':'revisionSave','title':m(_0x315e0c,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x4cd3ce['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x4d1e98['hide']()},{'label':m(_0x4cd3ce['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x322b8c){_0x322b8c['bind']('isEnabled')['to'](_0x18f2f2,'isReady',_0x18f2f2,'isEnabled',_0x4cd3ce,'isReadOnly',(_0x593749,_0x33ba7e,_0x519a67)=>_0x593749&&_0x33ba7e&&!_0x519a67);},'onExecute':()=>_0xe2e24b(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3e593f=this['editor'],_0x4248c8=_0x3e593f['locale'];this['_saveRevisionFormView']=new me(_0x4248c8,_0x3e593f['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x2a78ea{['changeId'];['_model'];constructor(_0x19f265,_0x47d4af){super(_0x19f265),this['_model']=_0x47d4af,this['changeId']=_0x47d4af['id'];const _0x82a973=this['bindTemplate'],_0x162929=m(_0x19f265,_0x47d4af['data']['isSuggestion']?'Suggested\x20by':'add'==_0x47d4af['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x47d4af['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x82a973['to']('type',_0x71e44b=>'ck-revision-change__'+_0x71e44b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x162929}]},{'text':'\x20'+_0x47d4af['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
- _0x28c99b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x435d17){super(),this['id']=_0x435d17['id']||_0x544ff4(),this['author']=_0x435d17['author'],this['type']=_0x435d17['type'],this['data']=_0x435d17['data']||{},this['rootName']=_0x435d17['rootName'],this['set']('createdAt',_0x435d17['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(_0x11462f,_0x21a2d7){this['newRevisionId']=_0x11462f,this['oldRevisionId']=_0x21a2d7,this['changes']=new _0x292637();}['_setChanges'](_0x1e1825){for(const _0x146039 of _0x1e1825)this['changes']['add'](_0x146039);}}class u extends _0x437c77{['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[_0xefcee4,_0x2cef43,S,$];}constructor(_0x1ad5ad){super(_0x1ad5ad),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',(_0x57e819,_0x1b6ba2,_0x55e098)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x129db4=>{for(const _0x157236 of this['editor']['editing']['view']['document']['roots'])_0x55e098?_0x129db4['removeClass']('ck-editor__editable__overlay',_0x157236):_0x129db4['addClass']('ck-editor__editable__overlay',_0x157236);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x504c68=>null!==_0x504c68),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x836109,_0x5414da,_0x4cf085)=>_0x836109&&_0x4cf085?_0x5414da['changes']['getIndex'](_0x4cf085):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x58c8c4,_0x590b24)=>_0x58c8c4?_0x590b24['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x2cef43);}['init'](){const _0x5b546b=this['editor'],_0x253451=new rt(_0x5b546b,{'direction':'backward'}),_0x16e0fa=new rt(_0x5b546b,{'direction':'forward'});(_0x5b546b['commands']['add']('showPreviousChange',_0x253451),_0x5b546b['commands']['add']('showNextChange',_0x16e0fa),_0x5b546b['commands']['add']('restoreRevision',new nt(_0x5b546b)),this['on']('change:numberOfChanges',()=>{_0x253451['refresh'](),_0x16e0fa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5b546b['enableReadOnlyMode']('revision-viewer'),_0x5b546b['plugins']['has']('WidgetToolbarRepository'))&&_0x5b546b['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x1c815c){return await this['_utils']['loadRevisionData'](_0x1c815c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x1c815c);}async['getRevisionRootsAttributes'](_0x97793c){return await this['_utils']['loadRevisionData'](_0x97793c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x97793c);}async['compare'](_0x5a4e92,_0x181d8f,_0x39b6de=!0x1){if(!this['isEnabled'])return;const _0x224551=this['diff'],_0x4531aa=this['repository'],_0x4a2260='string'==typeof _0x5a4e92?_0x4531aa['getRevision'](_0x5a4e92):_0x5a4e92,_0x4b9f93='string'==typeof _0x181d8f?_0x4531aa['getRevision'](_0x181d8f):_0x181d8f,_0x1479f1=_0x4a2260['id'],_0x5d99a8=_0x4b9f93?_0x4b9f93['id']:null;if(!_0x39b6de&&this['diff']&&this['diff']['newRevisionId']===_0x1479f1&&this['diff']['oldRevisionId']===_0x5d99a8)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x1479f1,_0x5d99a8);const _0x4afea=this['_getRevisionsRange'](_0x4a2260,_0x4b9f93,!0x0)['map'](_0x180a3b=>this['_utils']['loadRevisionData'](_0x180a3b,this['adapter']));return _0x4afea['push'](new Promise(_0x53afec=>{setTimeout(_0x53afec,0x14);})),Promise['all'](_0x4afea)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1a1a46=this['_getDiff'](_0x1479f1,_0x5d99a8);for(const _0x3b09b3 of _0x1a1a46['changes'])this['_changeIdToChange']['set'](_0x3b09b3['id'],_0x3b09b3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x65d402=>{for(const _0x2cb955 of this['editor']['model']['document']['getRootNames']())_0x65d402['detachRoot'](_0x2cb955);for(const _0x58cea9 of Object['keys'](_0x1a1a46['model'])){const _0xce1475=_0x65d402['addRoot'](_0x58cea9);for(const _0x448827 of Object['keys'](_0x1a1a46['attributes'][_0x58cea9]))_0x65d402['setAttribute'](_0x448827,_0x1a1a46['attributes'][_0x58cea9][_0x448827],_0xce1475);_0x65d402['insert'](_0x1a1a46['model'][_0x58cea9],_0xce1475,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1a1a46['changes'])),this['isReady']=!0x0;})['catch'](_0x2d0743=>{console['error'](_0x2d0743),this['_cleanUp'](),_0x224551&&(this['diff']=_0x224551),this['isReady']=!0x0;});}['addRevisionData'](_0x3b671c,_0x41d47e){const _0x192ff6=this['repository']['createRevision'](_0x3b671c);return _0x192ff6['on']('_update',(_0x388f93,_0x10e44d,_0x2d8e49)=>_0x41d47e(_0x10e44d,_0x2d8e49,_0x192ff6)),this['repository']['addRevision'](_0x192ff6),_0x192ff6;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3e7ddd=>{for(const _0x276ef4 of this['editor']['model']['document']['getRootNames']())_0x3e7ddd['detachRoot'](_0x276ef4);});}['_sortAndFilterDiffChanges'](_0x2d44f8){const _0x2ee0b0=[],_0x12d0eb=new Map();for(const _0x5ed638 of this['editor']['model']['document']['getRootNames']()){const _0x12f16d=this['editor']['editing']['view']['getDomRoot'](_0x5ed638);if(!_0x12f16d)continue;const _0x3eb18c=_0x12f16d['getClientRects']()['item'](0x0);_0x3eb18c&&(_0x2ee0b0['push'](_0x5ed638),_0x12d0eb['set'](_0x5ed638,_0x3eb18c));}return _0x2ee0b0['sort']((_0x50cfcd,_0x429035)=>{const _0x43f7e9=_0x12d0eb['get'](_0x50cfcd),_0x497914=_0x12d0eb['get'](_0x429035);return _0x43f7e9['y']-_0x497914['y']||_0x43f7e9['x']-_0x497914['x'];}),(_0x2d44f8=_0x2d44f8['filter'](_0x43c442=>_0x2ee0b0['includes'](_0x43c442['rootName'])))['sort']((_0x4f66ce,_0x14e7ab)=>_0x2ee0b0['indexOf'](_0x4f66ce['rootName'])-_0x2ee0b0['indexOf'](_0x14e7ab['rootName'])),_0x2d44f8;}['_makeTape'](_0x5f3604){const _0x51c2ef=Array['from'](_0x5f3604['markers'])['filter'](([_0x382c6f,_0xfa03a2])=>_0x382c6f['startsWith']('revision:')&&!_0xfa03a2['isCollapsed']),_0x3e9ffa=Array['from'](this['editor']['model']['createRangeIn'](_0x5f3604)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x51c2ef['length'])for(const _0xcf906c of _0x3e9ffa){const [_0x2cdc4a,_0x316cc9]=_0x51c2ef[0x0],[,_0x2f28a8,_0x45ac15]=_0x2cdc4a['split'](':');if(_0x316cc9['end']['isEqual'](_0xcf906c['nextPosition'])&&_0x51c2ef['shift'](),(_0xcf906c['previousPosition']['isEqual'](_0x316cc9['start'])||_0xcf906c['previousPosition']['isAfter'](_0x316cc9['start']))&&('insertion'==_0x2f28a8?_0xcf906c['isAdded']={'userId':_0x45ac15}:'deletion'==_0x2f28a8&&(_0xcf906c['isRemoved']={'userId':_0x45ac15})),0x0==_0x51c2ef['length'])break;}return _0x3e9ffa;}['_refreshStartEndIndex'](_0x30077b){const _0x511f9f=new Map();for(let _0x274ebe=0x0;_0x274ebe<_0x30077b['length'];_0x274ebe++)'text'===_0x30077b[_0x274ebe]['type']?(_0x30077b[_0x274ebe]['item']['startIndex']=_0x274ebe,_0x30077b[_0x274ebe]['item']['endIndex']=_0x274ebe):('elementStart'===_0x30077b[_0x274ebe]['type']?_0x30077b[_0x274ebe]['item']['startIndex']=_0x274ebe:'elementEnd'===_0x30077b[_0x274ebe]['type']&&(_0x30077b[_0x274ebe]['item']['endIndex']=_0x274ebe),_0x511f9f['set'](_0x30077b[_0x274ebe]['id'],_0x274ebe));for(const _0x1dfd49 of _0x511f9f['values']())'elementStart'===_0x30077b[_0x1dfd49]['type']?_0x30077b[_0x1dfd49]['item']['endIndex']=_0x511f9f['get'](_0x30077b[_0x1dfd49]['pairId']):'elementEnd'===_0x30077b[_0x1dfd49]['type']&&(_0x30077b[_0x1dfd49]['item']['startIndex']=_0x511f9f['get'](_0x30077b[_0x1dfd49]['pairId']));}['_processTape'](_0x5aae72){for(let _0x52b495=0x0;_0x52b495<_0x5aae72['length'];_0x52b495++){if('elementStart'===_0x5aae72[_0x52b495]['type'])_0x5aae72[_0x52b495]['item']['startIndex']=_0x52b495;else{if('elementEnd'===_0x5aae72[_0x52b495]['type']){_0x5aae72[_0x52b495]['item']['endIndex']=_0x52b495;const _0x582675=_0x5aae72[_0x52b495]['item']['startIndex'];_0x5aae72[_0x582675]['pairId']=_0x5aae72[_0x52b495]['id'],_0x5aae72[_0x52b495]['pairId']=_0x5aae72[_0x582675]['id'];}else _0x5aae72[_0x52b495]['item']['startIndex']=_0x52b495,_0x5aae72[_0x52b495]['item']['endIndex']=_0x52b495,_0x5aae72[_0x52b495]['pairId']=null;}_0x5aae72[_0x52b495]['markersStart']||(_0x5aae72[_0x52b495]['markersStart']=[],_0x5aae72[_0x52b495]['markersEnd']=[]);}}['_markInsertions'](_0x59d751,_0x27620f){const _0x103aeb=_0x59d751['filter'](_0x4877b5=>!_0x4877b5['isAdded']);for(let _0x276ae0=0x0;_0x276ae0<_0x27620f['length'];_0x276ae0++)_0x27620f[_0x276ae0]['isAdded']&&(_0x103aeb[_0x276ae0]['isAdded']=_0x27620f[_0x276ae0]['isAdded']);}['_getDiff'](_0x400512,_0x14c1f5=null){const _0x2147b3=this['repository']['getRevision'](_0x400512),_0x19d1f3=_0x14c1f5?this['repository']['getRevision'](_0x14c1f5):null,_0x2c1a5a=this['_getRevisionsRange'](_0x2147b3,_0x19d1f3),_0x8965e2=_0x2c1a5a[_0x2c1a5a['length']-0x1],_0x5af15f=new Map(),_0x4fa546={'model':{},'attributes':{},'changes':[]},_0x1f53a7=new Set(),_0x7a7a45=new Map();for(let _0x2c9b47=_0x2c1a5a['length']-0x1;_0x2c9b47>=0x0;_0x2c9b47--){const _0x2e033f=_0x2c1a5a[_0x2c9b47];for(const _0x5ac442 of Object['keys'](_0x2e033f['diffData']))if(_0x2e033f['diffData'][_0x5ac442]['attachChange']){const _0x96842f=_0x2e033f['diffData'][_0x5ac442]['attachChange'];_0x96842f['isAttached']?(_0x1f53a7['add'](_0x5ac442),_0x7a7a45['has'](_0x5ac442)&&_0x7a7a45['get'](_0x5ac442)['userId']==_0x96842f['userId']?_0x7a7a45['delete'](_0x5ac442):_0x7a7a45['set'](_0x5ac442,_0x96842f)):_0x7a7a45['has'](_0x5ac442)?(_0x1f53a7['delete'](_0x5ac442),_0x7a7a45['delete'](_0x5ac442)):(_0x1f53a7['add'](_0x5ac442),_0x7a7a45['set'](_0x5ac442,_0x96842f));}else _0x1f53a7['add'](_0x5ac442);}for(const _0x3698f1 of _0x1f53a7){const _0x40244a=_0x7a7a45['has'](_0x3698f1)&&!_0x7a7a45['get'](_0x3698f1)['isAttached'];let _0x235bcd=_0x40244a?_0x2c1a5a['length']-0x1:0x0;const _0x1bf926=_0x40244a?-0x1:0x1;for(;_0x2c1a5a[_0x235bcd];){const _0x580a61=_0x2c1a5a[_0x235bcd];if(_0x580a61['diffData'][_0x3698f1]){const _0x36e0a4=_0x40244a?_0x580a61['diffData'][_0x3698f1]['attributesBefore']:_0x580a61['diffData'][_0x3698f1]['attributesAfter'];_0x4fa546['attributes'][_0x3698f1]=_0x36e0a4?_0xb2db8(_0x36e0a4):{};break;}_0x235bcd+=_0x1bf926;}}for(const _0x3cdf51 of _0x2c1a5a){_0x3cdf51['model']={};for(const _0x48fcda of _0x3cdf51['authors'])_0x5af15f['set'](_0x48fcda['id'],_0x48fcda);for(const _0x1dc347 of _0x1f53a7){const _0x4ca729=_0x3cdf51['diffData'][_0x1dc347]?_0x3cdf51['diffData'][_0x1dc347]['insertions']:'[]',_0x46af23=_0x3cdf51['diffData'][_0x1dc347]?_0x3cdf51['diffData'][_0x1dc347]['deletions']:'[]';_0x3cdf51['model'][_0x1dc347]={'insertions':this['_utils']['_makeModelFromViewString'](_0x4ca729),'deletions':this['_utils']['_makeModelFromViewString'](_0x46af23)};}}for(const _0x18ee2b of _0x1f53a7){let _0x3d50c6=null,_0x39fd93=0x0;const _0x299d7f=new Map(Array['from'](_0x2147b3['model'][_0x18ee2b]['insertions']['markers'])['filter'](([_0xb0efd2])=>!_0xb0efd2['startsWith']('revision:')));let _0x16b01b=0x0;for(const _0x5169ec of _0x2c1a5a){const _0x3466c9=this['_makeTape'](_0x5169ec['model'][_0x18ee2b]['insertions']);_0x5169ec==_0x2147b3?(_0x3d50c6=_0x3466c9,_0x39fd93=_0x3d50c6['length'],_0x3d50c6['forEach'](_0x55c307=>{_0x55c307['id']=_0x16b01b++;}),this['_processTape'](_0x3d50c6)):this['_markInsertions'](_0x3d50c6,_0x3466c9);const _0x361515=_0x3d50c6['filter'](_0x4c4090=>!_0x4c4090['isAdded'])['map'](_0x54f842=>_0x54f842['id']);let _0x372bda=0x0;const _0x3eb5e0=this['_makeTape'](_0x5169ec['model'][_0x18ee2b]['deletions']);_0x3eb5e0['forEach'](_0x2807e4=>{_0x2807e4['isRemoved']?_0x2807e4['id']=_0x39fd93++:_0x2807e4['id']=_0x361515[_0x372bda++];}),this['_processTape'](_0x3eb5e0),this['_setDistance'](_0x3d50c6,'isAdded'),this['_setDistance'](_0x3eb5e0,'isRemoved'),_0x5169ec==_0x2147b3&&this['_markMarkers'](_0x3d50c6,_0x299d7f),_0x3d50c6=this['_joinTapes'](_0x3d50c6,_0x3eb5e0),this['_refreshStartEndIndex'](_0x3d50c6),this['_setDistance'](_0x3d50c6,'isRemoved');}_0x3d50c6=_0x3d50c6['filter'](_0x1ecfb3=>!(_0x1ecfb3['isAdded']&&_0x1ecfb3['isRemoved']));const _0x5562e7=new Map(_0x8965e2['model'][_0x18ee2b]['deletions']['markers']),_0x1fb962=new Set(_0x299d7f['keys']());for(const _0x860d5d of _0x5562e7['keys']())_0x1fb962['delete'](_0x860d5d);this['_markSuggestions'](_0x3d50c6,_0x1fb962),this['_fixObsoleteTags'](_0x3d50c6),_0x3d50c6=this['_removeMissingPairs'](_0x3d50c6),_0x3d50c6=this['_markMismatchedRemovedTags'](_0x3d50c6),_0x3d50c6=this['_removeUnsupportedChanges'](_0x3d50c6);const {root:_0x3a58a2,changes:_0x5967b5}=this['_makeModelFromTape'](_0x3d50c6,_0x5af15f,_0x18ee2b);_0x4fa546['model'][_0x18ee2b]=_0x3a58a2;const _0x1de2d5=_0x7a7a45['get'](_0x18ee2b);if(_0x1de2d5){const _0x548cad=_0x5af15f['get'](_0x1de2d5['userId']),_0xef6535=new G({'author':_0x548cad,'type':_0x1de2d5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x18ee2b});_0x5967b5['unshift'](_0xef6535),_0x4fa546['attributes'][_0x18ee2b]['revisionHistoryAttachChange']=_0xef6535['id'];}_0x4fa546['changes']=_0x4fa546['changes']['concat'](_0x5967b5);}return _0x4fa546;}['_markMarkers'](_0x10d503,_0x11041a){for(let _0x505aa4=0x0;_0x505aa4<_0x10d503['length'];_0x505aa4++)for(const [_0xb8fe5,_0x336c7d]of _0x11041a)!_0x336c7d['isCollapsed']&&_0x336c7d['start']['isEqual'](_0x10d503[_0x505aa4]['previousPosition'])&&_0x10d503[_0x505aa4]['markersStart']['push'](_0xb8fe5),_0x336c7d['end']['isEqual'](_0x10d503[_0x505aa4]['nextPosition'])&&_0x10d503[_0x505aa4]['markersEnd']['push'](_0xb8fe5);}['_joinTapes'](_0x205d03,_0xfcc39c){let _0x59ba49=[],_0x16ac16=0x0,_0x806341=0x0;for(;_0x16ac16<_0x205d03['length']||_0x806341<_0xfcc39c['length'];){const _0x2a7a51=_0x205d03[_0x16ac16]||{},_0x5d2fc8=_0xfcc39c[_0x806341]||{};if(_0x2a7a51['id']==_0x5d2fc8['id'])_0x16ac16++,_0x806341++,_0x59ba49['push'](_0x2a7a51);else{if(_0x5d2fc8['isRemoved']&&_0x2a7a51['isAdded']){const {commonTape:_0x3d7444,iEnd:_0x241cd7,jEnd:_0x36ae43}=this['_threeWayMerge'](_0x205d03,_0x16ac16,_0xfcc39c,_0x806341);_0x59ba49=_0x59ba49['concat'](_0x3d7444),_0x16ac16=_0x241cd7,_0x806341=_0x36ae43;}else _0x5d2fc8['isRemoved']?(_0x806341++,_0x59ba49['push'](_0x5d2fc8)):(_0x16ac16++,_0x59ba49['push'](_0x2a7a51));}}return _0x59ba49;}['_markSuggestions'](_0x50577f,_0x268a93){const _0x4e678d=[];for(let _0x1f7aff=0x0;_0x1f7aff<_0x50577f['length'];_0x1f7aff++){for(let _0x467bae=0x0;_0x467bae<_0x50577f[_0x1f7aff]['markersStart']['length'];_0x467bae++){const _0x13bedf=_0x50577f[_0x1f7aff]['markersStart'][_0x467bae];if(!_0x268a93['has'](_0x13bedf))continue;const {group:_0x15f6bc,type:_0x31c41c,authorId:_0x3dbcc0}=_0x4d552c(_0x13bedf);'revision-suggestion'!=_0x15f6bc||'insertion'!=_0x31c41c&&'deletion'!=_0x31c41c||(_0x4e678d['unshift']({'type':_0x31c41c,'name':_0x13bedf,'userId':_0x3dbcc0}),_0x50577f[_0x1f7aff]['markersStart']['splice'](_0x467bae,0x1),_0x467bae--);}_0x1f5876(_0x50577f[_0x1f7aff]);for(let _0x1a0e9b=0x0;_0x1a0e9b<_0x50577f[_0x1f7aff]['markersEnd']['length'];_0x1a0e9b++){const _0x5f44b5=_0x50577f[_0x1f7aff]['markersEnd'][_0x1a0e9b];if(!_0x268a93['has'](_0x5f44b5))continue;const {group:_0x453d43,type:_0x6cd776}=_0x4d552c(_0x5f44b5);if('revision-suggestion'!=_0x453d43||'insertion'!=_0x6cd776&&'deletion'!=_0x6cd776)continue;_0x50577f[_0x1f7aff]['markersEnd']['splice'](_0x1a0e9b,0x1),_0x1a0e9b--;const _0x561177=_0x4e678d['findIndex'](_0x15c11e=>_0x15c11e['name']==_0x5f44b5);_0x561177>-0x1&&_0x4e678d['splice'](_0x561177,0x1);}}function _0x4d552c(_0x32e539){const _0x3d39ea=_0x32e539['split'](':');return{'group':_0x3d39ea[0x0],'type':_0x3d39ea[0x1],'subType':_0x3d39ea['length']>=0x5?_0x3d39ea[0x2]:null,'id':_0x3d39ea['length']<0x5?_0x3d39ea[0x2]:_0x3d39ea[0x3],'authorId':_0x3d39ea['length']<0x5?_0x3d39ea[0x3]:_0x3d39ea[0x4],'markerCount':0x6==_0x3d39ea['length']?_0x3d39ea[0x5]:null};}function _0x1f5876(_0x76f88){for(let _0xeeb342=0x0;_0xeeb342<_0x4e678d['length'];_0xeeb342++){if(_0x76f88['isAdded']&&'insertion'==_0x4e678d[_0xeeb342]['type']&&_0x76f88['isAdded']['userId']==_0x4e678d[_0xeeb342]['userId'])return _0x76f88['isAddSuggestion']=_0x4e678d[_0xeeb342],void delete _0x76f88['isAdded'];if(!_0x76f88['isAdded']&&!_0x76f88['isRemoved']&&'deletion'==_0x4e678d[_0xeeb342]['type'])return void(_0x76f88['isRemoveSuggestion']=_0x4e678d[_0xeeb342]);}}}['_setDistance'](_0x3efe0a,_0xee920b){let _0xe681ba=0x0,_0xe8bbee=!0x1;const _0x31fa23=new Map();for(const _0x2e7600 of _0x3efe0a)_0x2e7600[_0xee920b]?_0xe8bbee&&(_0xe681ba++,_0xe8bbee=!0x1):(_0xe681ba++,_0xe8bbee=!0x0),_0x31fa23['set'](_0x2e7600['id'],_0xe681ba);for(let _0x3f40ae=0x0;_0x3f40ae<_0x3efe0a['length'];_0x3f40ae++){if('isRemoved'==_0xee920b&&_0x3efe0a[_0x3f40ae]['isAdded']||'isAdded'==_0xee920b&&_0x3efe0a[_0x3f40ae]['isRemoved'])continue;if('text'==_0x3efe0a[_0x3f40ae]['type']){_0x3efe0a[_0x3f40ae]['distance']=0x0;continue;}const _0x20f474=_0x31fa23['get'](_0x3efe0a[_0x3f40ae]['pairId']),_0x41b2e1=_0x31fa23['get'](_0x3efe0a[_0x3f40ae]['id']);_0x3efe0a[_0x3f40ae]['distance']=_0x20f474-_0x41b2e1;}}['_getRevisionsRange'](_0x84bc0c,_0x566186,_0x875f20=!0x1){const _0x133226=[];let _0x109488=this['repository']['getIndex'](_0x84bc0c),_0x33293f=this['repository']['getIndex'](_0x566186);for(-0x1==_0x33293f&&(_0x33293f=this['repository']['_revisions']['length'],_0x875f20=!0x1);_0x109488<_0x33293f;)_0x133226['push'](this['repository']['getRevision'](_0x109488)),_0x109488++;return _0x875f20&&_0x133226['push'](this['repository']['getRevision'](_0x109488)),_0x133226;}['_threeWayMerge'](_0x3b9d6b,_0x4debc6,_0x2b9abd,_0x273429){const _0xb3baed=this['editor']['model']['schema'];let _0x4ee79e=_0x4debc6;for(;_0x3b9d6b[_0x4ee79e]&&_0x3b9d6b[_0x4ee79e]['isAdded'];)_0x4ee79e++;let _0x99b55e=_0x273429;for(;_0x2b9abd[_0x99b55e]&&_0x2b9abd[_0x99b55e]['isRemoved'];)_0x99b55e++;_0x20107b(_0x3b9d6b,_0x4debc6,_0x4ee79e),_0x20107b(_0x2b9abd,_0x273429,_0x99b55e);const _0x1cd5c8=_0x2b9abd['slice'](_0x273429,_0x99b55e)['concat'](_0x3b9d6b['slice'](_0x4debc6,_0x4ee79e));return _0x1cd5c8['sort']((_0x42c423,_0x526407)=>_0x42c423['side']!=_0x526407['side']?_0x42c423['side']-_0x526407['side']:_0x42c423['level']!=_0x526407['level']?_0x42c423['level']-_0x526407['level']:_0x42c423['distance']!=_0x526407['distance']?_0x526407['distance']-_0x42c423['distance']:!!_0x42c423['isAdded']!=!!_0x526407['isAdded']?-0x1==_0x42c423['side']||0x0==_0x42c423['side']?_0x42c423['isAdded']?-0x1:0x1:_0x42c423['isAdded']?0x1:-0x1:_0x42c423['index']-_0x526407['index']),{'commonTape':_0x1cd5c8,'iEnd':_0x4ee79e,'jEnd':_0x99b55e};function _0x20107b(_0x2df9c9,_0x6e397,_0x1da958){let _0x2178a7=-0x1,_0x323253=Number['POSITIVE_INFINITY'],_0x598eae=!0x0;for(let _0xcddd54=_0x6e397;_0xcddd54<_0x1da958;_0xcddd54++)if(_0xb3baed['isInline'](_0x2df9c9[_0xcddd54]['item'])||(_0x598eae=!0x1),_0x2df9c9[_0xcddd54]['item']['startIndex']<_0x6e397&&(_0x2178a7=_0xcddd54),_0x2df9c9[_0xcddd54]['item']['endIndex']>=_0x1da958){_0x323253=_0xcddd54;break;}_0x598eae&&(_0x2178a7=_0x1da958-0x1);for(let _0x14fb80=_0x6e397;_0x14fb80<_0x1da958;_0x14fb80++)_0x2df9c9[_0x14fb80]['side']=_0x14fb80<=_0x2178a7?-0x1:_0x14fb80<_0x323253?0x0:0x1,_0x2df9c9[_0x14fb80]['index']=_0x14fb80;let _0x21d0e8=0x0;for(let _0x1acd04=_0x6e397;_0x1acd04<=_0x2178a7;_0x1acd04++)0x0==_0x2df9c9[_0x1acd04]['distance']?_0x2df9c9[_0x1acd04]['level']=_0x21d0e8:(_0x21d0e8++,_0x2df9c9[_0x1acd04]['level']=_0x21d0e8,_0x21d0e8++);for(let _0x23df5b=_0x6e397;_0x23df5b<_0x1da958;_0x23df5b++)0x0==_0x2df9c9[_0x23df5b]['side']&&(_0x2df9c9[_0x23df5b]['level']=_0x21d0e8);_0x21d0e8=0x0;for(let _0x40e926=_0x1da958-0x1;_0x40e926>=_0x323253;_0x40e926--)0x0==_0x2df9c9[_0x40e926]['distance']?_0x2df9c9[_0x40e926]['level']=_0x21d0e8:(_0x21d0e8--,_0x2df9c9[_0x40e926]['level']=_0x21d0e8,_0x21d0e8--);}}['_fixObsoleteTags'](_0x454b71){const _0x366d77=new Map(),_0x23280b=this['editor']['model']['schema'];for(let _0x1a3d02=0x1;_0x1a3d02<_0x454b71['length'];_0x1a3d02++){let _0x384a60,_0x8f7ab8,_0x4520a3;const _0x599e3d=_0x454b71[_0x1a3d02],_0x36e02c=_0x454b71[_0x1a3d02-0x1];if('text'==_0x599e3d['type'])continue;if(_0x599e3d['type']!=_0x36e02c['type'])continue;if(!_0x23280b['isBlock'](_0x36e02c['item'])||_0x23280b['isLimit'](_0x36e02c['item']))continue;if(!_0x23280b['isBlock'](_0x599e3d['item'])||_0x23280b['isLimit'](_0x599e3d['item']))continue;if((_0x454b71[_0x1a3d02]['isAdded']||_0x454b71[_0x1a3d02]['isAddSuggestion'])&&_0x454b71[_0x1a3d02-0x1]['isRemoved'])_0x384a60=_0x454b71[_0x1a3d02],_0x8f7ab8=_0x454b71[_0x1a3d02-0x1],_0x4520a3=_0x1a3d02-0x1;else{if(!_0x454b71[_0x1a3d02]['isRemoved']||!_0x454b71[_0x1a3d02-0x1]['isAdded']&&!_0x454b71[_0x1a3d02-0x1]['isAddSuggestion'])continue;_0x384a60=_0x454b71[_0x1a3d02-0x1],_0x8f7ab8=_0x454b71[_0x1a3d02],_0x4520a3=_0x1a3d02;}const _0x1ccf06=_0x384a60['level']==_0x8f7ab8['level'],_0x15c691=Math['abs'](_0x384a60['level'])<Math['abs'](_0x8f7ab8['level'])&&0x0==_0x8f7ab8['distance'];(_0x1ccf06||_0x15c691)&&(_0x366d77['set'](_0x8f7ab8['id'],_0x384a60['id']),_0x454b71['splice'](_0x4520a3,0x1),_0x1a3d02--,_0x384a60['isAdded']=!0x1);}for(let _0x362c94=0x0;_0x362c94<_0x454b71['length'];_0x362c94++)_0x366d77['has'](_0x454b71[_0x362c94]['pairId'])&&(_0x454b71[_0x362c94]['pairId']=_0x366d77['get'](_0x454b71[_0x362c94]['pairId']));}['_removeMissingPairs'](_0x30e13b){const _0x2e83f5=new Set(_0x30e13b['map'](_0x5bcdd7=>_0x5bcdd7['id']));for(let _0x2be597=0x0;_0x2be597<_0x30e13b['length'];_0x2be597++)_0x2e83f5['has'](_0x30e13b[_0x2be597]['pairId'])||0x0==_0x30e13b[_0x2be597]['distance']||(_0x30e13b[_0x2be597]['isIncorrect']=!0x0);return _0x30e13b['filter'](_0x2695da=>!_0x2695da['isIncorrect']);}['_markMismatchedRemovedTags'](_0xd5ac81){const _0x59833e=new Set();for(let _0xc9d1c3=0x0;_0xc9d1c3<_0xd5ac81['length'];_0xc9d1c3++){if(_0x59833e['has'](_0xd5ac81[_0xc9d1c3]['id'])&&_0xd5ac81[_0xc9d1c3]['isRemoved']&&(_0xd5ac81[_0xc9d1c3]['isIncorrect']=!0x0),_0xd5ac81[_0xc9d1c3]['isIncorrect'])continue;if(0x0==_0xd5ac81[_0xc9d1c3]['distance'])continue;if('elementStart'!=_0xd5ac81[_0xc9d1c3]['type'])continue;if(null==_0xd5ac81[_0xc9d1c3]['pairId'])continue;let _0x40848d=_0xc9d1c3+0x1,_0x646544=0x0;for(;_0xd5ac81[_0x40848d]['id']!=_0xd5ac81[_0xc9d1c3]['pairId'];)'elementStart'==_0xd5ac81[_0x40848d]['type']?_0x646544++:'elementEnd'==_0xd5ac81[_0x40848d]['type']&&_0x646544--,_0x40848d++;if(0x0!=_0x646544){if(_0xd5ac81[_0xc9d1c3]['isRemoved'])_0xd5ac81[_0xc9d1c3]['isIncorrect']=!0x0;else{for(;_0x40848d!=_0xc9d1c3;)_0xd5ac81[_0x40848d]['isRemoved']&&0x0!=_0xd5ac81[_0x40848d]['distance']&&(_0xd5ac81[_0x40848d]['isIncorrect']=!0x0,_0x59833e['add'](_0xd5ac81[_0x40848d]['pairId'])),_0x40848d--;}}}return _0xd5ac81['filter'](_0x2fdae0=>!_0x2fdae0['isIncorrect']);}['_removeUnsupportedChanges'](_0x70dfd2){const _0x567ece=this['editor']['model']['schema'];for(let _0x5e4767=0x0;_0x5e4767<_0x70dfd2['length'];_0x5e4767++){if(!(_0x70dfd2[_0x5e4767]['isAdded']||_0x70dfd2[_0x5e4767]['isAddSuggestion']||_0x70dfd2[_0x5e4767]['isRemoved']||_0x70dfd2[_0x5e4767]['isRemoveSuggestion']))continue;if(0x0==_0x70dfd2[_0x5e4767]['distance'])continue;const _0x1ab118=_0x70dfd2[_0x5e4767]['item'];_0x567ece['isBlock'](_0x1ab118)||_0x567ece['isLimit'](_0x1ab118)||(_0x70dfd2[_0x5e4767]['isAdded']&&delete _0x70dfd2[_0x5e4767]['isAdded'],_0x70dfd2[_0x5e4767]['isAddSuggestion']&&delete _0x70dfd2[_0x5e4767]['isAddSuggestion'],_0x70dfd2[_0x5e4767]['isRemoveSuggestion']&&delete _0x70dfd2[_0x5e4767]['isRemoveSuggestion'],_0x70dfd2[_0x5e4767]['isRemoved']&&(_0x70dfd2[_0x5e4767]['isIncorrect']=!0x0));}return _0x70dfd2['filter'](_0x1a64ad=>!_0x1a64ad['isIncorrect']);}['_makeModelFromTape'](_0x5ea1d6,_0x52d4c9,_0x1e852c){const _0x3fb637=new _0xbdee0c(),_0x2bce41=[],_0x5eb30f=new Map(),_0x3798ab=this['editor']['model'],_0xb873ae=_0x3798ab['schema'],_0x4513c5=[_0x3fb637],_0xfb5684={},_0x22d80e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x49f461=null;const _0x4f4df6=[0x0];for(let _0x475d17=0x0;_0x475d17<_0x5ea1d6['length'];_0x475d17++)if('elementStart'===_0x5ea1d6[_0x475d17]['type']){_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6);const _0xd72d06=new _0x467cfa(_0x5ea1d6[_0x475d17]['item']['name'],_0x5ea1d6[_0x475d17]['item']['getAttributes']());_0x4513c5[0x0]['_appendChild'](_0xd72d06),_0x4f4df6['push'](0x0),_0x4513c5['unshift'](_0xd72d06),_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6);}else'elementEnd'===_0x5ea1d6[_0x475d17]['type']?(_0x4513c5['shift'](),_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6),_0x4f4df6['pop'](),_0x4f4df6[_0x4f4df6['length']-0x1]++,_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6)):(_0x5ea1d6[_0x475d17]['previousPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6),_0x49f461?_0x49f461['_data']+=_0x5ea1d6[_0x475d17]['item']['data']:_0x49f461=new _0x264685(_0x5ea1d6[_0x475d17]['item']['data'],_0x5ea1d6[_0x475d17]['item']['getAttributes']()),_0x5ea1d6[_0x475d17+0x1]&&'text'===_0x5ea1d6[_0x475d17+0x1]['type']&&_0x3a4e0a(_0x49f461,_0x5ea1d6[_0x475d17+0x1]['item'])||(_0x4513c5[0x0]['_appendChild'](_0x49f461),_0x49f461=null),_0x4f4df6[_0x4f4df6['length']-0x1]+=_0x5ea1d6[_0x475d17]['item']['offsetSize'],_0x5ea1d6[_0x475d17]['nextPosition']=_0x3798ab['createPositionFromPath'](_0x3fb637,_0x4f4df6));for(let _0x2774a4=0x0;_0x2774a4<_0x5ea1d6['length'];_0x2774a4++){const _0x7c8cf0=_0x5ea1d6[_0x2774a4]['previousPosition'],_0x3e661d=_0x5ea1d6[_0x2774a4]['nextPosition'];for(const _0x46cf23 of _0x5ea1d6[_0x2774a4]['markersStart'])_0x5eb30f['set'](_0x46cf23,{'start':_0x7c8cf0,'end':null});_0x1b78fe('isRemoveSuggestion',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isAddSuggestion',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isRemoved',_0x2774a4,_0x7c8cf0,_0x3e661d),_0x1b78fe('isAdded',_0x2774a4,_0x7c8cf0,_0x3e661d);for(const _0x4569b7 of _0x5ea1d6[_0x2774a4]['markersEnd']){const _0x565e0a=_0x5eb30f['get'](_0x4569b7);_0x565e0a?_0x565e0a['end']=_0x3e661d:_0x5eb30f['set'](_0x4569b7,{'start':_0x3e661d,'end':_0x3e661d});}}for(const [_0x28b0db,_0x5f032c]of _0x5eb30f){const _0x1ed12e=this['editor']['model']['createRange'](_0x5f032c['start'],_0x5f032c['end']);_0x3fb637['markers']['set'](_0x28b0db,_0x1ed12e);}return _0x2bce41['sort']((_0x13945b,_0x446128)=>{const _0x184761=_0x3fb637['markers']['get']('revision:'+_0x13945b['id']),_0x3c9f1e=_0x3fb637['markers']['get']('revision:'+_0x446128['id']);return _0x184761['start']['isBefore'](_0x3c9f1e['start'])?-0x1:_0x184761['start']['isAfter'](_0x3c9f1e['start'])?0x1:_0x184761['end']['isBefore'](_0x3c9f1e['end'])?-0x1:_0x184761['end']['isAfter'](_0x3c9f1e['end'])?0x1:'add'===_0x13945b['type']?-0x1:0x1;}),{'root':_0x3fb637,'changes':_0x2bce41};function _0x1b78fe(_0x5599f1,_0x5a3d84,_0x27c519,_0x2df7c5){const _0xe7d89f=!!_0x5ea1d6[_0x5a3d84][_0x5599f1],_0x1d6648=_0xe7d89f?_0x5ea1d6[_0x5a3d84][_0x5599f1]['userId']:null,_0x2edfbb=_0x5a3d84===_0x5ea1d6['length']-0x1,_0xa9154d=_0x22d80e[_0x5599f1][0x0],_0x4299a2=_0xb873ae['isObject'](_0x5ea1d6[_0x5a3d84]['item']);!_0xfb5684[_0x5599f1]&&_0xe7d89f?_0xfb5684[_0x5599f1]={'start':_0x27c519,'tapeItem':_0x5ea1d6[_0x5a3d84],'userId':_0x1d6648,'type':_0x5599f1}:_0xfb5684[_0x5599f1]&&!_0xe7d89f?(_0xfb5684[_0x5599f1]['end']=_0x27c519,_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]=null):_0xfb5684[_0x5599f1]&&_0xe7d89f&&_0xfb5684[_0x5599f1]['userId']!==_0x1d6648&&(_0xfb5684[_0x5599f1]['end']=_0x27c519,_0xa9154d&&_0xa9154d['userId']===_0xfb5684[_0x5599f1]['userId']||_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]={'start':_0x27c519,'tapeItem':_0x5ea1d6[_0x5a3d84],'userId':_0x1d6648,'type':_0x5599f1}),_0xfb5684[_0x5599f1]&&_0x4299a2&&('elementStart'!==_0x5ea1d6[_0x5a3d84]['type']||_0xa9154d&&_0xa9154d['userId']===_0x1d6648||_0x22d80e[_0x5599f1]['unshift']({'userId':_0x1d6648,'object':_0x5ea1d6[_0x5a3d84]['item'],'change':_0xfb5684[_0x5599f1]}),'elementEnd'===_0x5ea1d6[_0x5a3d84]['type']&&_0xa9154d&&_0xa9154d['object']===_0x5ea1d6[_0x5a3d84]['item']&&(_0x22d80e[_0x5599f1]['shift'](),_0xfb5684[_0x5599f1]=_0xa9154d['change'])),_0xfb5684[_0x5599f1]&&_0x2edfbb&&(_0xfb5684[_0x5599f1]['end']=_0x2df7c5,_0x3418d5(_0xfb5684[_0x5599f1]),_0xfb5684[_0x5599f1]=null);}function _0x3418d5({start:_0x122635,end:_0x26b4d4,tapeItem:_0x1ef2da,userId:_0x65657a,type:_0x72b92e}){const _0x194a97=_0x1ef2da['item'],_0x18e904=_0x3798ab['schema']['isBlock'](_0x194a97)&&!_0x3798ab['schema']['isLimit'](_0x194a97),_0x51ef18=_0x122635['nodeAfter']==_0x26b4d4['parent']&&_0x26b4d4['isAtStart'];if(_0x18e904&&_0x51ef18)return;const _0x572a48=_0x3798ab['createRange'](_0x122635,_0x26b4d4),_0x493b5b=_0x52d4c9['get'](_0x65657a),_0x5bdca4=new G({'author':_0x493b5b,'type':'isAdded'==_0x72b92e||'isAddSuggestion'==_0x72b92e?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x72b92e||'isRemoveSuggestion'==_0x72b92e},'createdAt':new Date(),'rootName':_0x1e852c});_0x2bce41['push'](_0x5bdca4),_0x3fb637['markers']['set']('revision:'+_0x5bdca4['id'],_0x572a48);}function _0x3a4e0a(_0xcfd17b,_0x4dcd7b){const _0x4404cd=_0xcfd17b['getAttributes'](),_0x1cdb3b=_0x4dcd7b['getAttributes']();for(const _0x53849f of _0x4404cd){if(_0x53849f[0x1]!==_0x4dcd7b['getAttribute'](_0x53849f[0x0]))return!0x1;_0x1cdb3b['next']();}return _0x1cdb3b['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x422e86=>{const _0x1051c7=_0x422e86['markerName']['split'](':')[0x1],_0x22f713=this['_getChangeFromId'](_0x1051c7);if(!_0x22f713)return null;const _0x1097a7='add'==_0x22f713['type']?'insertion':'deletion',_0x199c42=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1097a7];return _0x22f713['data']['isSuggestion']&&_0x199c42['push']('ck-suggestion-marker-'+_0x1097a7+'-new'),this['activeChange']==_0x22f713&&_0x199c42['push']('ck-suggestion-marker--active'),{'classes':_0x199c42,'attributes':{'data-change-id':_0x1051c7}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x28b910=>{_0x28b910['on']('element:pre',(_0x1ad7b7,_0x541951,_0x58741e)=>{const _0x45cbbb=_0x541951['viewItem']['getChild'](0x0);if(!_0x45cbbb||!_0x45cbbb['is']('element','code'))return;if(!_0x58741e['consumable']['consume'](_0x45cbbb,{'attributes':['vid_start','vid_end']}))return;const _0x41786a=_0x541951['modelRange']['start']['nodeAfter'];_0x58741e['writer']['setAttribute']('vid_start',_0x45cbbb['getAttribute']('vid_start'),_0x41786a),_0x58741e['writer']['setAttribute']('vid_end',_0x45cbbb['getAttribute']('vid_end'),_0x41786a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x566410=>{_0x566410['on']('element',(_0x394f53,_0x5b5a68,_0x5a43ec)=>{if(!_0x5a43ec['consumable']['consume'](_0x5b5a68['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5b5a68['modelRange']['isCollapsed'])return;const _0x1630e8=_0x5b5a68['modelRange']['start']['nodeAfter'];_0x1630e8['hasAttribute']('vid_start')||_0x1630e8['hasAttribute']('vid')||(_0x5a43ec['writer']['setAttribute']('vid_start',_0x5b5a68['viewItem']['getAttribute']('vid_start'),_0x1630e8),_0x5a43ec['writer']['setAttribute']('vid_end',_0x5b5a68['viewItem']['getAttribute']('vid_end'),_0x1630e8));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5878db=>_0x5878db['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x53f272,[,_0x150e81])=>{['vid_start','vid_end','vid']['includes'](_0x150e81)&&(_0x53f272['return']=!0x0,_0x53f272['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x529d46=>{_0x529d46['on']('attribute:vid',(_0x49ae53,_0x400d5a,_0x468410)=>{if('\x20'!=_0x400d5a['item']['data']||_0x400d5a['item']['parent']['maxOffset']>0x1)return;if(!_0x468410['consumable']['consume'](_0x400d5a['item'],_0x49ae53['name']))return;const _0x5c242c=_0x468410['writer'],_0x14450f=_0x468410['mapper']['toViewRange'](_0x400d5a['range']);_0x5c242c['wrap'](_0x14450f,_0x5c242c['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x5c06bd){const _0xcaabaf=_0x5c06bd['plugins']['get']('RevisionViewer');return(_0x2d4e09,_0xb1fc12,_0x1a90de)=>{const _0x543464=_0xb1fc12['markerName']['split'](':')[0x1],_0x2f03ef=_0xcaabaf['_getChangeFromId'](_0x543464);if(!_0x2f03ef)return null;const _0x3a75be='add'==_0x2f03ef['type']?'split':'merge';if(!_0x1a90de['consumable']['test'](_0xb1fc12['markerRange'],_0x2d4e09['name']))return;const _0x5bf3d0=_0xb1fc12['markerRange']['getWalker'](),_0x2bbb90=_0xb1fc12['markerRange']['start'],_0x2215aa=_0x5c06bd['model']['schema'];let _0x2fb578=null,_0x22e065=null,_0x58831c=!0x1,_0x9570c8=!0x1;for(const _0x58631d of _0x5bf3d0){const _0x1f3aa9=_0x58631d['item'];_0x58831c=_0x58831c||_0x2215aa['isContent'](_0x1f3aa9);const _0x352809=_0x1a90de['mapper']['toViewElement'](_0x1f3aa9);if(_0x352809&&_0x352809['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x58631d['type']&&(_0x2215aa['isBlock'](_0x1f3aa9)&&!_0x2215aa['isLimit'](_0x1f3aa9)&&(_0x1f3aa9['nextSibling']||_0x2bbb90['isAtEnd']?_0x2fb578&&_0x2fb578['parent']==_0x1f3aa9||(_0x2fb578=_0x1f3aa9,_0x38ddff(_0x58631d['previousPosition']),_0x9570c8=!0x0):_0x22e065=_0x22e065||_0x58631d['previousPosition']));}function _0x38ddff(_0x6a2b5b){const _0x1bc6f8=_0x1a90de['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a75be}),_0x1037b5=_0x1a90de['mapper']['toViewPosition'](_0x6a2b5b);_0x2f03ef['data']['isSuggestion']&&_0x1a90de['writer']['addClass']('ck-suggestion-marker-'+_0x3a75be+'-new',_0x1bc6f8),_0xcaabaf['activeChange']==_0x2f03ef&&_0x1a90de['writer']['addClass']('ck-suggestion-marker--active',_0x1bc6f8),_0x1a90de['writer']['insert'](_0x1037b5,_0x1bc6f8),_0x1a90de['mapper']['bindElementToMarker'](_0x1bc6f8,_0xb1fc12['markerName']);}_0x58831c||_0x9570c8||!_0x22e065||_0x38ddff(_0x22e065);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x19a9f9,_0x531dcc,_0x3ff1e2)=>{const _0x1b3ffc=_0x3ff1e2['mapper']['markerNameToElements'](_0x531dcc['markerName']);if(_0x1b3ffc){for(const _0x5d5491 of _0x1b3ffc)(_0x5d5491['hasClass']('ck-suggestion-marker-split')||_0x5d5491['hasClass']('ck-suggestion-marker-merge'))&&(_0x3ff1e2['mapper']['unbindElementFromMarkerName'](_0x5d5491,_0x531dcc['markerName']),_0x3ff1e2['writer']['remove'](_0x5d5491));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x36bc99,_0x506642,_0x5aa601)=>{const _0x5b5d13=_0x506642['markerName']['split'](':')[0x1],_0x157b5f=this['_getChangeFromId'](_0x5b5d13);if(!_0x157b5f)return null;const _0x18999b='add'==_0x157b5f['type']?'split':'merge';if(_0x5aa601['consumable']['test'](_0x506642['markerRange'],_0x36bc99['name']))for(const _0x18865b of _0x506642['markerRange']['getItems']()){if(!_0x18865b['is']('element','softBreak'))continue;const _0x4275d0=_0x5aa601['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x18999b}),_0x13e13a=_0x5aa601['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x18865b));_0x157b5f['data']['isSuggestion']&&_0x5aa601['writer']['addClass']('ck-suggestion-marker-'+_0x18999b+'-new',_0x4275d0),this['activeChange']==_0x157b5f&&_0x5aa601['writer']['addClass']('ck-suggestion-marker--active',_0x4275d0),_0x5aa601['writer']['insert'](_0x13e13a,_0x4275d0),_0x5aa601['mapper']['bindElementToMarker'](_0x4275d0,_0x506642['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x12b9dc=>{for(const _0x56372f of this['editor']['model']['document']['getRootNames']()){const _0x4e399a=this['editor']['model']['document']['getRoot'](_0x56372f),_0x1473bb=this['editor']['editing']['view']['document']['getRoot'](_0x56372f);if(_0x1473bb){const _0x19f61b=_0x4e399a['getAttribute']('revisionHistoryAttachChange');if(_0x12b9dc['removeAttribute']('data-change-id',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root-add',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root-remove',_0x1473bb),_0x12b9dc['removeClass']('ck-revision-history-root--active',_0x1473bb),_0x19f61b){const _0x3e06fa=this['_getChangeFromId'](_0x19f61b);if(!_0x3e06fa)return null;_0x12b9dc['setAttribute']('data-change-id',_0x19f61b,_0x1473bb),_0x12b9dc['addClass']('ck-revision-history-root-'+_0x3e06fa['type'],_0x1473bb),this['activeChange']==_0x3e06fa&&_0x12b9dc['addClass']('ck-revision-history-root--active',_0x1473bb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0xb9c371=>'revision-comment:'+_0xb9c371,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x5e00c9=>'revision-suggestion:'+_0x5e00c9,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x3873ca=>({'name':'suggestion:'+_0x3873ca,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x6fb370=>{const _0x1f5a01=_0x6fb370['markerName']['split'](':')[0x1];return'insertion'!=_0x1f5a01&&'deletion'!=_0x1f5a01?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x1f5a01]};}}),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',(_0x3a023d,_0x22581e,_0x3109b0)=>{const _0x45ebc0=_0x3109b0['mapper']['markerNameToElements'](_0x22581e['markerName']);if(_0x45ebc0){for(const _0x5d1663 of _0x45ebc0)_0x5d1663['is']('uiElement')&&(_0x3109b0['mapper']['unbindElementFromMarkerName'](_0x5d1663,_0x22581e['markerName']),_0x3109b0['writer']['remove'](_0x5d1663));}},{'priority':'high'});}['_getChangeFromId'](_0x20a8af){return this['_changeIdToChange']['get'](_0x20a8af);}['_getViewForChange'](_0x20ab06){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x20ab06),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x57d2d4,_0x2bab9e,_0x55471a,_0x4e3863)=>{_0x4e3863&&this['_balloon']['remove'](_0x4e3863),_0x55471a&&(this['_balloon']['add']({'view':_0x55471a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x37e4c4=this['editor']['editing'],_0x30b582=this['_getChangeFromId'](_0x55471a['changeId']);let _0x1604bb;if(_0x30b582['data']['isOnRoot']){const _0x419f25=_0x37e4c4['view']['getDomRoot'](_0x30b582['rootName']);_0x1604bb=Array['from'](_0x419f25['getClientRects']());}else{const _0xd457e5=this['editor']['model']['markers']['get']('revision:'+_0x55471a['changeId']);_0x1604bb=Array['from'](_0x37e4c4['mapper']['markerNameToElements'](_0xd457e5['name']))['map'](_0x44a75d=>_0x37e4c4['view']['domConverter']['mapViewToDom'](_0x44a75d))['map'](_0x4c94b9=>Array['from'](_0x4c94b9['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1604bb[0x0];return _0x1604bb['find'](_0x311403=>_0x311403['top']-0x3<=this['_activeViewTarget']['y']&&_0x311403['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x311403['left']-0x3<=this['_activeViewTarget']['x']&&_0x311403['right']+0x3>=this['_activeViewTarget']['x'])||_0x1604bb[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4e557f,_0x34f07a,_0x10c743,_0x1af2a7)=>{this['activeView']=_0x10c743?this['_getViewForChange'](_0x10c743):null,this['editor']['model']['change'](()=>{const _0x21b592=this['editor']['editing'];_0x1af2a7&&(_0x1af2a7['data']['isOnRoot']?_0x21b592['view']['change'](_0x23c4b0=>{_0x23c4b0['removeClass']('ck-revision-history-root--active',_0x21b592['view']['document']['getRoot'](_0x1af2a7['rootName']));}):_0x21b592['reconvertMarker']('revision:'+_0x1af2a7['id'])),_0x10c743&&(_0x10c743['data']['isOnRoot']?_0x21b592['view']['change'](_0xa11b6a=>{_0xa11b6a['addClass']('ck-revision-history-root--active',_0x21b592['view']['document']['getRoot'](_0x10c743['rootName']));}):_0x21b592['reconvertMarker']('revision:'+_0x10c743['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x32accf,_0x5f3fc6)=>{if(this['activeChange'])return;const _0x5ab964=this['_findChangeIdFromDomTarget'](_0x5f3fc6['target']),_0x5f5490=this['_changeIdToChange']['get'](_0x5ab964);_0x5f5490?(this['_activeViewTarget']={'x':_0x5f3fc6['domEvent']['x'],'y':_0x5f3fc6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5f5490)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x110472,_0x20377b)=>{const _0x15ef0b=this['_findChangeIdFromDomTarget'](_0x20377b['target']),_0x61044f=this['_changeIdToChange']['get'](_0x15ef0b);_0x61044f?(this['_activeViewTarget']={'x':_0x20377b['domEvent']['x'],'y':_0x20377b['domEvent']['y']},_0x61044f===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x61044f):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x27607b){do{const _0x543cae=_0x27607b['getAttribute']('data-change-id');if(_0x543cae)return _0x543cae;_0x27607b=_0x27607b['parent'];}while(_0x27607b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xec5c17=>{for(const _0x367802 of this['editor']['model']['markers'])_0xec5c17['removeMarker'](_0x367802);});}}function Q(_0x2ef051,_0x1c974b){return(_0x502743,_0x5dcf58,_0x28b27b)=>{if(!_0x28b27b['consumable']['test'](_0x5dcf58['markerRange'],_0x502743['name']))return;const _0x12cfab=_0x5dcf58['markerRange']['getWalker'](),_0x3ef369=_0x5dcf58['markerRange']['start'],_0x2e614b=_0x2ef051['model']['schema'];let _0xa4fba8=null,_0x3c47c4=null,_0xed70b=!0x1,_0x3b3c1f=!0x1;for(const _0x3c72e0 of _0x12cfab){const _0x22b4a8=_0x3c72e0['item'];_0xed70b=_0xed70b||_0x2e614b['isContent'](_0x22b4a8);const _0x52d158=_0x28b27b['mapper']['toViewElement'](_0x22b4a8);if(_0x52d158&&_0x52d158['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3c72e0['type']&&(_0x2e614b['isBlock'](_0x22b4a8)&&!_0x2e614b['isLimit'](_0x22b4a8)&&(_0x22b4a8['nextSibling']||_0x3ef369['isAtEnd']?_0xa4fba8&&_0xa4fba8['parent']==_0x22b4a8||(_0xa4fba8=_0x22b4a8,_0x39898c(_0x3c72e0['previousPosition']),_0x3b3c1f=!0x0):_0x3c47c4=_0x3c47c4||_0x3c72e0['previousPosition']));}function _0x39898c(_0x152b4c){const _0x3e7970=_0x28b27b['mapper']['toViewPosition'](_0x152b4c),_0x2bb70c=_0x28b27b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1c974b});_0x28b27b['writer']['insert'](_0x3e7970,_0x2bb70c),_0x28b27b['mapper']['bindElementToMarker'](_0x2bb70c,_0x5dcf58['markerName']);}_0xed70b||_0x3b3c1f||!_0x3c47c4||_0x39898c(_0x3c47c4);};}class nt extends _0x5de004{constructor(_0x376bef){super(_0x376bef);const _0x2bb832=_0x376bef['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0x2bb832,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2bb832,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x13f39e=this['editor'],_0x10e8b2=_0x13f39e['plugins']['get'](u),_0x4f0054=_0x10e8b2['isReady']?_0x10e8b2['diff']['newRevisionId']:null;_0x13f39e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4f0054);}['refresh'](){const {isReady:_0x30befe,isEnabled:_0x328985,repository:_0x5a4a07,diff:_0x490211}=this['editor']['plugins']['get'](u),_0x186376=_0x490211&&_0x5a4a07['getLaterVisibleRevision'](_0x490211['newRevisionId']);this['isEnabled']=_0x30befe&&_0x328985&&Boolean(_0x186376);}}class rt extends _0x5de004{['_step'];constructor(_0x247fa6,{direction:_0x3f8b0a}){super(_0x247fa6);const _0x473dfe=_0x247fa6['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x3f8b0a?0x1:-0x1,this['listenTo'](_0x473dfe,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x473dfe,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x473dfe,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1ddc52=this['editor'],_0x29ee6d=_0x1ddc52['plugins']['get'](u),{isNavigationMode:_0x23f0ec,currentChangeNumber:_0x2e5e48}=_0x29ee6d;let _0x271b7b;if(_0x29ee6d['activeChange']=_0x23f0ec?_0x29ee6d['diff']['changes']['get'](_0x2e5e48+this['_step']):_0x29ee6d['diff']['changes']['first'],_0x29ee6d['activeChange']['data']['isOnRoot'])_0x271b7b=_0x1ddc52['editing']['view']['getDomRoot'](_0x29ee6d['activeChange']['rootName']);else{const _0x1fd76a=_0x1ddc52['model']['markers']['get']('revision:'+_0x29ee6d['activeChange']['id']);_0x271b7b=_0x52f960(_0x1ddc52['editing'],_0x1fd76a);}_0x5e079d({'target':_0x271b7b,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x17d498,currentChangeNumber:_0x369ab,numberOfChanges:_0x2bfd93,isReady:_0x3825fc,isEnabled:_0x2b0bdd}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x2b0bdd&&_0x3825fc&&_0x2bfd93)&&(!_0x17d498||(0x1===this['_step']?_0x369ab<_0x2bfd93-0x1:_0x369ab>0x0));}}class fi extends _0x2a78ea{constructor(_0x4f4af7){super(_0x4f4af7);const _0x2310d1=this['bindTemplate'],_0xc7251c=new _0x4c4445(_0x4f4af7),_0x23ecd6=new _0x4c4445(_0x4f4af7);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',(_0x49cb25,_0xff1673)=>_0x49cb25&&_0xff1673>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x214b3d,_0x4ea9a8,_0x28c56d,_0x26758b)=>{if(!_0x214b3d)return m(_0x4f4af7,'Loading...');if(!_0x28c56d)return m(_0x4f4af7,'No\x20changes');const _0x3f1793=m(_0x4f4af7,'NUMBER_OF_CHANGES',_0x28c56d);return _0x26758b?m(_0x4f4af7,'X_OF_Y_CHANGES',[_0x4ea9a8+0x1,_0x28c56d]):_0x3f1793;}),_0xc7251c['set']({'label':m(_0x4f4af7,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x56df88}),_0x23ecd6['set']({'label':m(_0x4f4af7,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5c12f5}),_0xc7251c['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x23ecd6['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xc7251c['on']('execute',()=>this['fire']('execute','backward')),_0x23ecd6['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',_0x2310d1['if']('_isStatusLabelVisible','ck-hidden',_0x180197=>!_0x180197)]},'children':[{'text':_0x2310d1['to']('isNavigationMode',_0x375dfb=>_0x375dfb?m(_0x4f4af7,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4f4af7,'Total')+':\x20')}]},{'text':_0x2310d1['to']('_statusText')}]},new _0x5d1747(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xc7251c,_0x23ecd6]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x437c77{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x305b08=this['editor']['editing']['view'];_0x305b08['change'](_0x5d1290=>{for(const _0x571db4 of _0x305b08['document']['roots'])_0x5d1290['addClass'](ge,_0x571db4);});}['hide'](){const _0x5d1117=this['editor']['editing']['view'];_0x5d1117['change'](_0x477320=>{for(const _0x469aa5 of _0x5d1117['document']['roots'])_0x477320['removeClass'](ge,_0x469aa5);});}}class v extends _0x437c77{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0x2ab7ad=this['editor'],_0x2f0e38=_0x2ab7ad['plugins']['get'](u),_0x21f1f3=_0x2ab7ad['plugins']['get'](bi);_0x2ab7ad['ui']['componentFactory']['add']('exitToEditing',_0x17c705=>{const _0xeeb543=new _0x4c4445(_0x17c705);return _0xeeb543['set']({'label':m(_0x17c705,'Back\x20to\x20editing'),'icon':_0x550877,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0xeeb543,'execute',()=>{_0x2ab7ad['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0xeeb543;}),_0x2ab7ad['ui']['componentFactory']['add']('restoreRevision',_0x367537=>{const _0x1667b4=new _0x4c4445(_0x367537);return _0x1667b4['set']({'label':m(_0x367537,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x1667b4['bind']('isEnabled')['to'](_0x2ab7ad['commands']['get']('restoreRevision')),this['listenTo'](_0x1667b4,'execute',()=>_0x2ab7ad['execute']('restoreRevision')),_0x1667b4;}),_0x2ab7ad['ui']['componentFactory']['add']('changesNavigation',_0x22c854=>{const _0xd06eff=new fi(_0x22c854),_0x32f27c=_0x2ab7ad['commands']['get']('showPreviousChange'),_0xbcca17=_0x2ab7ad['commands']['get']('showNextChange');return _0xd06eff['bind']('isBackwardNavigationEnabled')['to'](_0x32f27c,'isEnabled'),_0xd06eff['bind']('isForwardNavigationEnabled')['to'](_0xbcca17,'isEnabled'),_0xd06eff['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2f0e38),this['listenTo'](_0xd06eff,'execute',(_0x3fe282,_0x46e134)=>{_0x2ab7ad['execute']('forward'===_0x46e134?'showNextChange':'showPreviousChange');}),_0xd06eff;}),_0x21f1f3['show'](),_0x2f0e38['on']('change:isReady',(_0x26e7b7,_0x4620bc,_0x347019)=>{_0x347019?_0x21f1f3['hide']():_0x21f1f3['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x5eb65e,_0x553ea2){super(_0x5eb65e,_0x553ea2);const _0x3596df=this['bindTemplate'];this['set']({'label':m(_0x5eb65e,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5eb65e,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3596df['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 _0x44ab20=this['fieldView']['element'];this['_tooltipString']=_0x44ab20['scrollWidth']>_0x44ab20['clientWidth']&&_0x44ab20['value']||'';}}class ni extends _0x2a78ea{constructor(_0x4c7214,_0x23ce09,_0x5f25e5){super(_0x4c7214);const _0x30d988=new _0x42ea15();_0x30d988['set']({'content':_0x2f748d,'viewBox':'0\x200\x2011\x2010'});const _0x591145=['ck','ck-revision-history-sidebar__revision-author'];_0x5f25e5&&_0x591145['push']('ck-revision-history-sidebar__revision-author_creator');const _0x224210=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x4c7214,_0x5f25e5?'Revision\x20creator':'Revision\x20author')},'children':[_0x30d988,_0x23ce09['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x591145},'children':_0x224210});}}function ai(_0x2b1f16,_0x51e6cd){const _0x184f33=_0x2b1f16['bindTemplate'],_0x168d33=_0x2b1f16['locale'],_0x574ee9=_0x2676c3(_0x168d33);_0x574ee9['panelPosition']='sw';const _0x473fbb=function(_0x1f1c89,_0x431851){const _0x324132=function(_0x3aeac4,_0x897fe1){const _0x4de48e=_0x3aeac4['locale'],_0x403985={'Compare\x20against\x20selected':m(_0x4de48e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4de48e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4de48e,'Restore\x20this\x20revision')};return _0x897fe1['map'](_0x344d8a=>{const _0x2a7dfe=_0x403985[_0x344d8a['name']];return _0x2a7dfe&&_0x2a7dfe!==_0x344d8a['name']&&(_0x344d8a['name']=_0x2a7dfe),_0x344d8a;});}(_0x1f1c89,_0x431851),_0xccff19=new _0x292637();for(const _0xb65d12 of _0x324132){const _0x3a2fc9={'type':'button','model':new to({'label':_0xb65d12['name'],'class':_0xb65d12['class'],'withText':!0x0,'role':'menuitem','_action':_0xb65d12['action']})};_0x3a2fc9['model']['bind']('isEnabled')['to'](_0x1f1c89,'isActionsDropdownOpen',_0x2b8683=>'function'!=typeof _0xb65d12['isEnabled']||(!_0x2b8683||_0xb65d12['isEnabled'](_0x1f1c89))),_0xccff19['add'](_0x3a2fc9);}return _0xccff19;}(_0x2b1f16,_0x51e6cd);return _0x2b1f16['bind']('isActionsDropdownOpen')['to'](_0x574ee9,'isOpen'),_0x574ee9['buttonView']['set']({'label':m(_0x168d33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x59f83a}),_0x574ee9['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x184f33['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x184f33['to'](_0x516cab=>_0x516cab['stopPropagation']())}}),_0x574ee9['on']('execute',_0x484da7=>{_0x2b1f16['isReady']&&'function'==typeof _0x484da7['source']['_action']&&_0x484da7['source']['_action'](_0x2b1f16);}),_0x4e23b7(_0x574ee9,_0x473fbb,{'role':'menu'}),_0x574ee9['listenTo'](_0x2b1f16,'change:isActionsDropdownOpen',(_0x11f586,_0xe63ed5,_0x30a1e2)=>{if(_0x30a1e2)for(const _0x517a8c of _0x574ee9['listView']['items']){const _0x342d5f=_0x517a8c['children']['first'],_0x2c4329=_0x51e6cd['find'](_0x1e4e77=>_0x1e4e77['action']===_0x342d5f['_action'])['isVisible'];_0x517a8c['isVisible']=void 0x0===_0x2c4329||_0x2c4329(_0x2b1f16);}}),_0x574ee9;}class _i extends/* #__PURE__ -- @preserve */
27
- _0x138897(_0x2a78ea){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2a0b68,_0x434a60,_0xe9339f,_0x5cec7c){super(_0x2a0b68);const _0x5d79c7=this['bindTemplate'],_0x4cadb9=function(_0x3cf6d3,_0x342251){const _0x2f9b04=Array['from'](_0x342251['authors'])['filter'](_0x133997=>_0x133997!=_0x342251['creator']);return _0x342251['creator']&&_0x2f9b04['unshift'](_0x342251['creator']),_0x2f9b04['map'](_0xe7edb0=>new ni(_0x3cf6d3,_0xe7edb0,_0xe7edb0==_0x342251['creator']));}(_0x2a0b68,_0x434a60);this['id']=_0x434a60['id'],this['_revision']=_0x434a60,this['_requireRevisionName']=_0x5cec7c,this['bind']('name','createdAt')['to'](_0x434a60),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x59c2d2=>{return _0x1e0913=_0x2a0b68['uiLanguage'],(_0x40063d=_0x59c2d2)['toLocaleDateString'](_0x1e0913,{'month':'long','day':'numeric'})+',\x20'+_0x40063d['toLocaleTimeString'](_0x1e0913,{'hour':'numeric','minute':'numeric'});var _0x1e0913,_0x40063d;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x2a0b68,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1ba89f=>_0x1ba89f||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2d812f,_0x4aee30)=>_0x2d812f&&_0x4aee30),this['revisionActionsView']=_0xe9339f&&_0xe9339f['length']?ai(this,_0xe9339f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x5d79c7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x5d79c7['if']('isEnabled','ck-disabled',_0x2d8c2d=>!_0x2d8c2d),_0x5d79c7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x5d79c7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x5d79c7['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':_0x5d79c7['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':_0x4cadb9}]},this['revisionActionsView']],'on':{'click':_0x5d79c7['to'](_0x5cf21e=>{_0x5cf21e['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x502d29=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x502d29,'change',()=>{this['_requireRevisionName']&&!_0x502d29['value']||this['fire']('setName',{'id':this['id'],'name':_0x502d29['value']}),_0x502d29['value']||(_0x502d29['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x5532e6,_0x158aa7){const _0x463f48=_0x43cb4d['fromJSDate'](_0x5532e6)['setLocale'](_0x158aa7),_0x427d9f=_0x43cb4d['local'](),_0x50db42=_0x427d9f['minus']({'days':0x1})['startOf']('day');let _0x209229,_0x24bd65;return _0x463f48['hasSame'](_0x427d9f,'day')?(_0x209229=_0x463f48['startOf']('day')['toJSDate'](),_0x24bd65=_0x463f48['toRelativeCalendar']()):_0x463f48['hasSame'](_0x50db42,'day')?(_0x209229=_0x50db42['toJSDate'](),_0x24bd65=_0x463f48['toRelativeCalendar']()):_0x463f48['hasSame'](_0x427d9f,'week')?(_0x209229=_0x463f48['startOf']('week')['toJSDate'](),_0x24bd65=_0x463f48['weekdayLong']||''):_0x463f48['hasSame'](_0x427d9f,'year')?(_0x209229=_0x463f48['startOf']('month')['toJSDate'](),_0x24bd65=_0x463f48['monthLong']||''):(_0x209229=_0x463f48['startOf']('year')['toJSDate'](),_0x24bd65=String(_0x463f48['year'])),{'startDate':_0x209229,'localizedPeriodName':_0x24bd65};}class ji extends _0x2a78ea{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x448a14,_0xc71a11,_0x1d74f5,_0x3b3062){super(_0x448a14);const _0x61af0c=ki(_0xc71a11,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0xc71a11,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1d74f5,this['_requireRevisionName']=_0x3b3062,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':_0x61af0c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x32ea05){const _0x58856f=new _i(this['locale'],_0x32ea05,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x58856f);}['removeRevision'](_0x4c8c1f){const _0x4db215=this['revisionViews']['find'](_0x468cf8=>_0x468cf8['id']===_0x4c8c1f['id']);this['revisionViews']['remove'](_0x4db215);}}class Ni extends _0x2a78ea{constructor(_0x554259){super(_0x554259);const _0x411ff7=new _0x42ea15();_0x411ff7['content']=_0x3dc43c,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x411ff7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x554259,'Revision\x20history')]}]});}}class Ri extends _0x2a78ea{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x50af7c,_0x5caaf2,_0x46b98d,_0x452787){super(_0x50af7c);const _0xc559d4=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x5caaf2,this['_revisionActions']=_0x46b98d,this['_requireRevisionName']=_0x452787,this['on']('select',(_0x177180,_0x1ef203)=>{this['fire']('revisionSelected',_0x1ef203);}),this['on']('setName',(_0x32276b,_0x4c3ecc)=>{this['fire']('revisionSetName',_0x4c3ecc);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x50af7c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0xc559d4['if']('isEnabled','ck-disabled',_0x44cc8a=>!_0x44cc8a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x259bb9 of this['_revisions'])this['_addRevision'](_0x259bb9);this['_revisions']['on']('add',(_0x3bb4be,_0x3b30a2)=>{this['_addRevision'](_0x3b30a2);}),this['_revisions']['on']('remove',(_0x946e97,_0xe2a145)=>{this['_removeRevision'](_0xe2a145);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x15853b=>_0x15853b['revisionViews']['map'](_0x421ac7=>_0x421ac7))['flat']();}['selectRevision'](_0x447a2e){for(const _0x14b803 of this['revisionViews'])_0x447a2e&&_0x447a2e['id']===_0x14b803['id']?_0x14b803['select']():_0x14b803['deselect']();}['highlightRevisions'](_0xd1d079){for(const _0x1155aa of this['revisionViews'])_0xd1d079['some'](({id:_0x3a739e})=>_0x3a739e===_0x1155aa['id'])?_0x1155aa['highlight']():_0x1155aa['unhighlight']();}['_addRevision'](_0x3f0f7b){const _0x306c32=ki(_0x3f0f7b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5e6f9a=this['timePeriodViews']['get'](0x0);_0x5e6f9a&&_0x5e6f9a['startDate']['getTime']()===_0x306c32['getTime']()||(_0x5e6f9a=new ji(this['locale'],_0x306c32,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5e6f9a)),_0x5e6f9a['addRevision'](_0x3f0f7b);}['_removeRevision'](_0x384f3a){const _0x48214c=ki(_0x384f3a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x48214c)['removeRevision'](_0x384f3a);}['_getTimePeriodViewByStartDate'](_0x4a3659){return this['timePeriodViews']['find'](_0x43a5f6=>_0x43a5f6['startDate']['getTime']()===_0x4a3659['getTime']());}}class d extends _0x437c77{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x911840,uid as _0x221375,Collection as _0x51dee5,logWarning as _0x2a22d8,FocusTracker as _0x23f28d,KeystrokeHandler as _0x416488,scrollViewportToShowTarget as _0x18268f,ResizeObserver as ot,ElementReplacer as it,CKEditorError as _0x5bf644}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x459df9,set as _0x517bac,unset as _0x2bed35,isEqual as _0x4544c2}from'es-toolkit/compat';import{Plugin as _0x59afc0,PendingActions as _0x5b0cac,Command as _0x5998c4,ElementApiMixin as _0x22e1de,Editor as _0x54238d}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x4e6a9f,getMarkerDomElement as _0x637378,ConfirmMixin as _0x432988,sanitizeEditorConfig as _0x8e5f46}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x2e87e7,ViewAttributeElement as _0x35f1af,ViewEmptyElement as _0x4ec289,ViewRawElement as _0x192b7e,ViewUIElement as _0x308c37,ViewDocumentFragment as _0x3f74b0,ViewText as _0x231269,ViewElement as _0x22793f,ModelElement as _0x16738f,ModelRange as _0xb076e3,ModelPosition as _0x3cb0ec,ModelDocumentFragment as _0x54d9b6,ModelText as _0x512a07}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x58c189,IconChevronUp as _0x5308cd,IconChevronDown as _0x5f0511,IconUndo as _0x4ed6d9,IconUser as _0x2f44bd,IconThreeVerticalDots as _0x516c19}from'@ckeditor/ckeditor5-icons/dist/index.js';import{CssTransitionDisablerMixin as _0x29c9e9,View as _0x484abd,submitHandler as _0x104706,LabeledFieldView as et,createLabeledInputText as ti,createDropdown as _0x1cb51d,ListView as _0x5bef83,ListItemView as _0xb232fc,ButtonView as _0x14152c,MenuBarMenuView as _0x4a1477,MenuBarMenuListView as _0x1c59ff,MenuBarMenuListItemView as _0x4597ac,MenuBarMenuListItemButtonView as _0x5436d7,ContextualBalloon as _0x43390d,ToolbarSeparatorView as _0x3f7943,IconView as _0x1ed09d,addListToDropdown as _0x189f45,UIModel as to,EditorUI as tt,normalizeToolbarConfig as st,BoxedEditorUIView as _0x153483,StickyPanelView as _0x27d56b,ToolbarView as _0x345b5d,InlineEditableUIView as te}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x2c8e9e}from'luxon';class I extends/* #__PURE__ -- @preserve */
24
+ _0x911840(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x47a635){super(),this['id']=_0x47a635['id']||_0x221375(),this['creator']=_0x47a635['creator']||null,this['authors']=_0x47a635['authors']||[],this['diffData']=_0x47a635['diffData']||null,this['toVersion']=_0x47a635['toVersion']||0x0,this['fromVersion']=_0x47a635['fromVersion']||0x0,this['set']('name',_0x47a635['name']||''),this['set']('createdAt',_0x47a635['createdAt']||new Date()),this['set']('attributes',_0x47a635['attributes']||{});}['setName'](_0x3e793e){this['_update']({'name':_0x3e793e});}['setAttribute'](_0x2dccff,_0x3e5297){const _0x46ceed=_0x459df9(this['attributes']);_0x517bac(_0x46ceed,_0x2dccff,_0x3e5297),this['_update']({'attributes':_0x46ceed});}['removeAttribute'](_0x540d72){const _0x311f7c=_0x459df9(this['attributes']);_0x2bed35(_0x311f7c,_0x540d72),this['_update']({'attributes':_0x311f7c});}['_update'](_0x5e5f13,_0x210284=!0x1){let _0x15b8ee=!0x1;const _0x3fb151={'id':this['id']},_0x4e6959=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x597b0c of _0x4e6959){const _0x2ddb53=_0x5e5f13[_0x597b0c];void 0x0!==_0x2ddb53&&_0x2ddb53!==this[_0x597b0c]&&(this[_0x597b0c]=_0x2ddb53,_0x3fb151[_0x597b0c]=_0x2ddb53,_0x15b8ee=!0x0);}_0x15b8ee&&(_0x3fb151['authors']&&(_0x3fb151['authorsIds']=_0x3fb151['authors']['map'](_0x57784b=>_0x57784b['id']),delete _0x3fb151['authors']),this['fire']('_update',_0x3fb151,_0x210284));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfe8545=>_0xfe8545['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class S extends _0x59afc0{['_revisions'];static get['requires'](){return[_0x4e6a9f];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x376e45){super(_0x376e45),this['_revisions']=new _0x51dee5();}['afterInit'](){!async function(_0x8a128){const _0x57b8d0=_0x6eccb6([0x73,0x47,0x36,0x35,0x43,0x72,0x6b,0x31,0x63,0x64,0x32,0x69,0x67,0x4c,0x4e,0x37,0x7a,0x49,0x45,0x41,0x59,0x6a,0x75,0x39,0x4a,0x33,0x68,0x62,0x50,0x42,0x74,0x6e,0x46,0x4d,0x78,0x51,0x66,0x34,0x48,0x77,0x5a,0x61,0x6c,0x30,0x71,0x54,0x53,0x56,0x4b,0x79,0x44,0x6d,0x6f,0x52,0x76,0x55,0x58,0x65,0x70,0x57,0x4f,0x38]),_0x2199c4=0xeb829,_0x157dce=0x7374585f,_0x325e1d=0x73732e07^_0x157dce,_0x2cf824=window[_0x6eccb6([0x44,0x61,0x74,0x65])][_0x6eccb6([0x6e,0x6f,0x77])](),_0x2080a2=_0x8a128[_0x6eccb6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1a5b70=new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3626d9=>{_0x2080a2[_0x6eccb6([0x6f,0x6e,0x63,0x65])](_0x6eccb6([0x72,0x65,0x61,0x64,0x79]),_0x3626d9);}),_0x582a3f={[_0x6eccb6([0x6b,0x74,0x79])]:_0x6eccb6([0x45,0x43]),[_0x6eccb6([0x75,0x73,0x65])]:_0x6eccb6([0x73,0x69,0x67]),[_0x6eccb6([0x63,0x72,0x76])]:_0x6eccb6([0x50,0x2d,0x32,0x35,0x36]),[_0x6eccb6([0x78])]:_0x6eccb6([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]),[_0x6eccb6([0x79])]:_0x6eccb6([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]),[_0x6eccb6([0x61,0x6c,0x67])]:_0x6eccb6([0x45,0x53,0x32,0x35,0x36])},_0x158529=_0x2080a2[_0x6eccb6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x6eccb6([0x67,0x65,0x74])](_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x56a98a(){let _0x152652,_0x18579a=null,_0x5ec059=null;try{if(_0x158529==_0x6eccb6([0x47,0x50,0x4c]))return _0x6eccb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x152652=_0xbef164(),!_0x152652)return _0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x152652[_0x6eccb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ec059=_0x47255a(_0x152652[_0x6eccb6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x152652[_0x6eccb6([0x6a,0x74,0x69])])),await _0x5a5ef2()?_0x4aa15e()?_0xac7e3b()?_0x6eccb6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x377cbb()?(_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6eccb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18579a=_0x2e1de5(_0x6eccb6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x6eccb6([0x74,0x72,0x69,0x61,0x6c])&&(_0x18579a=_0x2e1de5(_0x6eccb6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x58fa05()):_0x6eccb6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x6eccb6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x6eccb6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xac7e3b(){const _0x5c0f0f=[_0x6eccb6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x6eccb6([0x74,0x72,0x69,0x61,0x6c])][_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2cf824/0x3e8:0xe10*_0x325e1d;return _0x152652[_0x6eccb6([0x65,0x78,0x70])]<_0x5c0f0f;}function _0x4aa15e(){const _0xf41e91=_0x152652[_0x6eccb6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf41e91)return!0x1;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x2a])))return!0x0;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x52,0x48])))return!0x0;if(_0xf41e91[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x52,0x52,0x48]))){if(_0x19ac3e())return!0x0;if(_0x3c5c70()||_0x24f768())return!0x0;}return!0x1;}function _0x377cbb(){const _0x4ec1f2=_0x152652[_0x6eccb6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4ec1f2||0x0==_0x4ec1f2[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a74ca}=new URL(window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4ec1f2[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a74ca))return!0x0;const _0x47e530=_0x4a74ca[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e]));return _0x4ec1f2[_0x6eccb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb74911=>_0xb74911[_0x6eccb6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6eccb6([0x2a])))[_0x6eccb6([0x6d,0x61,0x70])](_0x154d79=>_0x154d79[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e])))[_0x6eccb6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xf8b64c=>_0xf8b64c[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x47e530[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6eccb6([0x6d,0x61,0x70])](_0x39164b=>Array(_0x47e530[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39164b[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x6eccb6([0x66,0x69,0x6c,0x6c])](_0x39164b[0x0]===_0x6eccb6([0x2a])?_0x6eccb6([0x2a]):'')[_0x6eccb6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39164b))[_0x6eccb6([0x73,0x6f,0x6d,0x65])](_0x2d969d=>_0x47e530[_0x6eccb6([0x65,0x76,0x65,0x72,0x79])]((_0x108003,_0x3b3413)=>_0x2d969d[_0x3b3413]===_0x108003||_0x2d969d[_0x3b3413]===_0x6eccb6([0x2a])));}function _0x58fa05(){return _0x18579a&&_0x5ec059?new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14fb42,_0x546a34)=>{_0x18579a[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x14fb42,_0x546a34),_0x5ec059[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x2f5b9e=>{_0x2f5b9e!=_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])&&_0x14fb42(_0x2f5b9e);},_0x546a34);}):_0x18579a||_0x5ec059||_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47255a(_0x5f4f19,_0x2ed86a){return new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37a4b1=>{if(_0x54b28b())return _0x37a4b1(_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]));_0x1b0b67(),_0x2080a2[_0x6eccb6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x39a880=!0x1;const _0x3ef50a=_0x221375();function _0x5d88b5(_0x53d9b2){return!!_0x53d9b2&&(typeof _0x53d9b2===_0x6eccb6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x53d9b2===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x53d9b2[_0x6eccb6([0x74,0x68,0x65,0x6e])]===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x53d9b2[_0x6eccb6([0x63,0x61,0x74,0x63,0x68])]===_0x6eccb6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5bda69(_0x393c72){_0x1c6a5a(_0x393c72)[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x38d752=>{if(!_0x38d752||_0x38d752[_0x6eccb6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x6eccb6([0x6f,0x6b]))return _0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x49b43b(_0x22c5c6(_0x3ef50a+_0x2ed86a))!=_0x38d752[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x6eccb6([0x56,0x61,0x6c,0x69,0x64]);})[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x598d3b=>(_0x38e387(),_0x598d3b),()=>{const _0x2be546=_0x1e302c();return null==_0x2be546?(_0x38e387(),_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])):_0x6eccb6(_0x2cf824-_0x2be546>(0x5778dc5f^_0x157dce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x37a4b1)[_0x6eccb6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x267f92=0x7342b6df^_0x157dce;function _0x38e387(){const _0x2d720a=_0x6eccb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49b43b(_0x22c5c6(_0x5f4f19)),_0x1497eb=_0x38668b(_0x49b43b(window[_0x6eccb6([0x4d,0x61,0x74,0x68])][_0x6eccb6([0x63,0x65,0x69,0x6c])](_0x2cf824/_0x267f92)));window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6eccb6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2d720a,_0x1497eb);}function _0x1e302c(){const _0x262952=_0x6eccb6([0x6c,0x6c,0x63,0x74,0x2d])+_0x49b43b(_0x22c5c6(_0x5f4f19)),_0x9c3650=window[_0x6eccb6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x6eccb6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x262952);return _0x9c3650?window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38668b(_0x9c3650),0x10)*_0x267f92:null;}function _0x1c6a5a(_0xc8be70){return new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x555712,_0x12415d)=>{_0xc8be70[_0x6eccb6([0x74,0x68,0x65,0x6e])](_0x555712,_0x12415d),window[_0x6eccb6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x12415d,0x73758c9f^_0x157dce);});}}_0x2080a2[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x381916,_0x4a0115)=>{if(_0x4a0115[0x0]!=_0x5f4f19)return _0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a0115[0x1]={..._0x4a0115[0x1],[_0x6eccb6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3ef50a};},{[_0x6eccb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6eccb6([0x68,0x69,0x67,0x68])}),_0x2080a2[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38069f=>{_0x5d88b5(_0x38069f[_0x6eccb6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x39a880=!0x0,_0x5bda69(_0x38069f[_0x6eccb6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x6eccb6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x6eccb6([0x6c,0x6f,0x77])}),_0x1a5b70[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>{_0x39a880||_0x37a4b1(_0x6eccb6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x54b28b(){return _0x2080a2[_0x6eccb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6eccb6([0x76,0x69,0x65,0x77])][_0x6eccb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x6eccb6([0x61,0x75,0x74,0x6f]);}function _0x1b0b67(){_0x2080a2[_0x6eccb6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x6eccb6([0x76,0x69,0x65,0x77])][_0x6eccb6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x6eccb6([0x61,0x75,0x74,0x6f]);}}function _0x2e1de5(_0x4fefd6){const _0x5e9a31=[new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x40d11a=>setTimeout(_0x40d11a,0x737d6693^_0x157dce)),_0x1a5b70[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe296c3=>{const _0x5a1fea=0x73745858^_0x157dce,_0x11f657=_0x8a128[_0x6eccb6([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2be1fa(){_0x11f657[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5a1fea&&_0xe296c3();}_0x2be1fa(),_0x11f657[_0x6eccb6([0x6f,0x6e])](_0x6eccb6([0x61,0x64,0x64]),_0x2be1fa);})),new window[(_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2da679=>{function _0x2566fc(){for(const _0x4e49da in window)if(window[_0x6eccb6([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x6eccb6([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x4e49da))&&window[_0x4e49da]==_0x2199c4)return _0x2da679();_0x2080a2[_0x6eccb6([0x73,0x74,0x61,0x74,0x65])]!=_0x6eccb6([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x6eccb6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2566fc,0x73744bd7^_0x157dce);}_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2566fc();})];return window[_0x6eccb6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x6eccb6([0x72,0x61,0x63,0x65])](_0x5e9a31)[_0x6eccb6([0x74,0x68,0x65,0x6e])](()=>_0x4fefd6);}async function _0x84516(){if(await _0x1a5b70,_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x386393=_0x8a128[_0x6eccb6([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4bd075=_0x8a128[_0x6eccb6([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])](_0x386393[_0x6eccb6([0x69,0x64])]),_0x13a319=_0x3c2121(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x13a319[_0x6eccb6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x386393['id'],_0x4bd075?_0x4bd075['id']:null,!0x0),_0x13a319[_0x6eccb6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x13a319[_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x13a319[_0x6eccb6([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x47d213,void(_0x13a319[_0x6eccb6([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x47d213);}if(_0x499da2(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4a3ec2=_0x3c2121(_0x6eccb6([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4a3ec2[_0x6eccb6([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4a3ec2[_0x6eccb6([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4a3ec2[_0x6eccb6([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x47d213,_0x4a3ec2[_0x6eccb6([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x47d213;}_0x2080a2[_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c])][_0x6eccb6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x47d213,_0x2080a2[_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c])][_0x6eccb6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x47d213,_0x2080a2[_0x6eccb6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x6eccb6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x19ac3e(){return _0x499da2(_0x6eccb6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3c2121(_0x6eccb6([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x6eccb6([0x73,0x74,0x61,0x74,0x65])]==_0x6eccb6([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3c5c70(){return _0x499da2(_0x6eccb6([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 _0x24f768(){return _0x499da2(_0x6eccb6([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x863bc1(_0x38e2f5){const _0x56bd00=_0x4b146f();_0x2080a2[_0x56bd00]=_0x6eccb6([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])+_0x38e2f5,_0x38e2f5[_0x6eccb6([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x6eccb6([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4b146f()]=_0x2199c4),_0x38e2f5!=_0x6eccb6([0x56,0x61,0x6c,0x69,0x64])&&_0x84516();}function _0x4b146f(){const _0x196595=window[_0x6eccb6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x6eccb6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x6eccb6([0x6e,0x6f,0x77])]())[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x6eccb6([0x2e]),'');let _0x41725d=_0x6eccb6([0x73]);for(let _0x5093e4=0x0;_0x5093e4<_0x196595[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5093e4+=0x2){let _0x30a175=window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196595[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5093e4,_0x5093e4+0x2));_0x30a175>=_0x57b8d0[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x30a175-=_0x57b8d0[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x41725d+=_0x57b8d0[_0x30a175];}return _0x41725d;}function _0xbef164(){const _0x2c255b=_0x158529[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e]));if(0x3!=_0x2c255b[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x545bae(_0x2c255b[0x1]);function _0x545bae(_0x36d987){const _0x3f9ac8=_0x20ee25(_0x36d987);return _0x3f9ac8&&_0x4f3ce1()?_0x3f9ac8:null;function _0x4f3ce1(){const _0x280a0f=_0x3f9ac8[_0x6eccb6([0x6a,0x74,0x69])],_0x65f1b=window[_0x6eccb6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x280a0f[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x280a0f[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x180ab3={..._0x3f9ac8,[_0x6eccb6([0x6a,0x74,0x69])]:_0x280a0f[_0x6eccb6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x280a0f[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x180ab3[_0x6eccb6([0x76,0x63])],_0x22c5c6(_0x180ab3)==_0x65f1b;}}}async function _0x5a5ef2(){let _0xf2130=!0x0;try{const _0x2034ab=_0x158529[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])](_0x6eccb6([0x2e])),[_0x4b2398,_0xf28692,_0x5383c5]=_0x2034ab;return _0x1f2c79(_0x4b2398),await _0x305003(_0x4b2398,_0xf28692,_0x5383c5),_0xf2130;}catch{return!0x1;}function _0x1f2c79(_0x16b997){const _0x4676e2=_0x20ee25(_0x16b997);_0x4676e2&&_0x4676e2[_0x6eccb6([0x61,0x6c,0x67])]==_0x6eccb6([0x45,0x53,0x32,0x35,0x36])||(_0xf2130=!0x1);}async function _0x305003(_0x598b52,_0x209a1b,_0x5d4e41){const _0x30117c=window[_0x6eccb6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x6eccb6([0x66,0x72,0x6f,0x6d])](_0x2bbcd1(_0x5d4e41),_0x2addc4=>_0x2addc4[_0x6eccb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x52e32a=new window[(_0x6eccb6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x6eccb6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x598b52+_0x6eccb6([0x2e])+_0x209a1b),_0x30aaaf=window[_0x6eccb6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x6eccb6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x30aaaf)return;const _0xb7ad6c=await _0x30aaaf[_0x6eccb6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x6eccb6([0x6a,0x77,0x6b]),_0x582a3f,{[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x45,0x43,0x44,0x53,0x41]),[_0x6eccb6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x6eccb6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x30aaaf[_0x6eccb6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x45,0x43,0x44,0x53,0x41]),[_0x6eccb6([0x68,0x61,0x73,0x68])]:{[_0x6eccb6([0x6e,0x61,0x6d,0x65])]:_0x6eccb6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb7ad6c,_0x30117c,_0x52e32a)||(_0xf2130=!0x1);}}function _0x20ee25(_0x1db66d){return _0x1db66d[_0x6eccb6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x6eccb6([0x65,0x79]))?JSON[_0x6eccb6([0x70,0x61,0x72,0x73,0x65])](_0x2bbcd1(_0x1db66d)):null;}function _0x2bbcd1(_0x44909e){return window[_0x6eccb6([0x61,0x74,0x6f,0x62])](_0x44909e[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x6eccb6([0x2b]))[_0x6eccb6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x6eccb6([0x2f])));}function _0x22c5c6(_0x3f5c0f){let _0x417ee3=0x1505;function _0x2f11ab(_0x4e5508){for(let _0x5eead2=0x0;_0x5eead2<_0x4e5508[_0x6eccb6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5eead2++){const _0xdf8421=_0x4e5508[_0x6eccb6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5eead2);_0x417ee3=(_0x417ee3<<0x5)+_0x417ee3+_0xdf8421,_0x417ee3&=_0x417ee3;}}function _0x5875c6(_0x3dcdef){Array[_0x6eccb6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3dcdef)?_0x3dcdef[_0x6eccb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5875c6):_0x3dcdef&&typeof _0x3dcdef==_0x6eccb6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x6eccb6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3dcdef)[_0x6eccb6([0x73,0x6f,0x72,0x74])]()[_0x6eccb6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3f5599,_0x3bbdce])=>{_0x2f11ab(_0x3f5599),_0x5875c6(_0x3bbdce);}):_0x2f11ab(window[_0x6eccb6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3dcdef));}return _0x5875c6(_0x3f5c0f),_0x417ee3>>>0x0;}function _0x49b43b(_0x12a498){return _0x12a498[_0x6eccb6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x6eccb6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x6eccb6([0x30]));}function _0x38668b(_0x4715a5){return _0x4715a5[_0x6eccb6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x6eccb6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x6eccb6([0x6a,0x6f,0x69,0x6e])]('');}function _0x499da2(_0x3bd32c){return _0x2080a2[_0x6eccb6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6eccb6([0x68,0x61,0x73])](_0x3bd32c);}function _0x3c2121(_0x248a9f){return _0x2080a2[_0x6eccb6([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x6eccb6([0x67,0x65,0x74])](_0x248a9f);}function _0x47d213(){}function _0x6eccb6(_0x23c6f9){return _0x23c6f9['map'](_0x5b8ba3=>String['fromCharCode'](_0x5b8ba3))['join']('');}_0x863bc1(await _0x56a98a());}(this);}['createRevision'](_0x394918){const _0x40132d=this['editor']['plugins']['get']('Users');return new I({'id':_0x394918['id'],'name':_0x394918['name'],'creator':_0x394918['creatorId']?_0x40132d['getUser'](_0x394918['creatorId']):null,'diffData':_0x394918['diffData']||_0x394918['data'],'authors':_0x394918['authorsIds']['map'](_0x25fbe8=>_0x40132d['getUser'](_0x25fbe8)),'createdAt':new Date(_0x394918['createdAt']),'attributes':_0x394918['attributes'],'fromVersion':_0x394918['fromVersion'],'toVersion':_0x394918['toVersion']});}['addRevision'](_0x211815,_0xee7155=0x0){this['_revisions']['add'](_0x211815,_0xee7155);}['getRevision'](_0x1f235d){return this['_revisions']['get'](_0x1f235d);}['getRevisions'](_0x26f382={'toJSON':!0x1}){const _0x2af81c=Array['from'](this['_revisions']);return _0x2af81c['reverse'](),_0x26f382['toJSON']?_0x2af81c['map'](_0x2a5d04=>_0x2a5d04['toJSON']()):_0x2af81c;}['getIndex'](_0x4c38c4){return this['_revisions']['getIndex'](_0x4c38c4);}['getEarlierVisibleRevision'](_0x4d9f04){const [,_0x51b374]=this['getRevisionsIterator'](_0x4d9f04,{'direction':'earlier'});return _0x51b374;}['getLaterVisibleRevision'](_0x4c1df4){const [,_0x2d6de8]=this['getRevisionsIterator'](_0x4c1df4,{'direction':'later'});return _0x2d6de8;}['getRevisionsInDiff'](_0xe22075){const _0x7654e3=[];for(const _0x5e014c of this['getRevisionsIterator'](_0xe22075['newRevisionId']))if(_0x7654e3['push'](_0x5e014c),_0x5e014c['id']===_0xe22075['oldRevisionId'])break;return _0x7654e3;}*['getRevisionsIterator'](_0x5327f9,{direction:_0x536a66='earlier',filter:_0x816cd4=()=>!0x0}={}){const _0x498e38='earlier'===_0x536a66?0x1:-0x1;let _0x7cc88d=this['_revisions']['get'](_0x5327f9),_0x5394e7=this['getIndex'](_0x7cc88d);for(yield _0x7cc88d;_0x7cc88d;){if(_0x5394e7+=_0x498e38,_0x7cc88d=this['getRevision'](_0x5394e7),!_0x7cc88d)return;_0x816cd4(_0x7cc88d)&&(yield _0x7cc88d);}}}class $ extends _0x59afc0{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x2e87e7,'c'],[_0x35f1af,'a'],[_0x4ec289,'e'],[_0x192b7e,'r'],[_0x308c37,'u']]);['_typeCharToViewClass']=new Map([['c',_0x2e87e7],['a',_0x35f1af],['e',_0x4ec289],['r',_0x192b7e],['u',_0x308c37]]);async['loadRevisionData'](_0x59c4bf,_0x1eefaa){if(_0x59c4bf['diffData']||!_0x1eefaa)return;const _0x3ffec9=this['editor']['config']['get']('collaboration.channelId'),_0x1765a0=await _0x1eefaa['getRevision']({'channelId':_0x3ffec9,'revisionId':_0x59c4bf['id']});_0x59c4bf['diffData']=_0x1765a0['diffData'];}['getRevisionDocumentData'](_0x56a5c7){const _0x37dd87={};for(const _0x4d65aa in _0x56a5c7['diffData']){if(_0x56a5c7['diffData'][_0x4d65aa]['attachChange']&&!_0x56a5c7['diffData'][_0x4d65aa]['attachChange']['isAttached'])continue;const _0x34b447=this['_removeRevisionMarkers'](JSON['parse'](_0x56a5c7['diffData'][_0x4d65aa]['insertions'])),_0x27d4c3=this['editor']['editing']['view']['document'],_0x326d01=new _0x3f74b0(_0x27d4c3,_0x34b447['map'](_0x49ad2a=>this['_getViewFromDiffObj'](_0x49ad2a,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x37dd87[_0x4d65aa]=this['editor']['data']['processor']['toData'](_0x326d01),this['editor']['data']['processor']['useFillerType']('default');}return _0x37dd87;}['getRevisionRootsAttributes'](_0x21cde8){const _0xa1b346={};for(const _0x4767f6 in _0x21cde8['diffData'])_0x21cde8['diffData'][_0x4767f6]['attachChange']&&!_0x21cde8['diffData'][_0x4767f6]['attachChange']['isAttached']||(_0xa1b346[_0x4767f6]=_0x21cde8['diffData'][_0x4767f6]['attributesAfter']||{});return _0xa1b346;}['_getTypeCharForViewElement'](_0x39a804){return this['_viewClassToTypeChar']['get'](_0x39a804['constructor']);}['_getViewFromDiffObj'](_0x390a95,_0x71abca){const _0x14f506=this['editor']['editing']['view']['document'];if('string'==typeof _0x390a95)return new _0x231269(_0x14f506,_0x390a95);{let _0x5095da,_0x46e552;_0x46e552='u'==_0x390a95['type']||'r'==_0x390a95['type']?[]:_0x390a95['children']['map'](_0x49deaf=>this['_getViewFromDiffObj'](_0x49deaf,_0x71abca));const _0x227948=this['_typeCharToViewClass']['get'](_0x390a95['type'])||_0x22793f,_0x22897c=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x5095da=new _0x227948(_0x14f506,_0x390a95['name'],_0x390a95['attributes'],_0x46e552),'u'==_0x390a95['type']&&_0x390a95['children'][0x0]){const _0x4fa440=_0x390a95['children'][0x0];if(_0x5095da['render']=function(_0x5de939){const _0x1725a2=_0x5de939['createElement']('div');return _0x1725a2['innerHTML']=_0x4fa440,_0x1725a2['childNodes'][0x0];},_0x71abca){const _0x150554=new _0x3f74b0(_0x14f506);_0x150554['_appendChild'](_0x5095da);const _0x3bdc6b=Array['from'](_0x22897c['viewChildrenToDom'](_0x150554,{'bind':!0x1})),_0x5cf1cb=_0x22897c['domDocument']['createElement']('div');_0x5cf1cb['append'](..._0x3bdc6b),_0x5095da=Array['from'](_0x22897c['domChildrenToView'](_0x5cf1cb))[0x0];}}else{if('r'==_0x390a95['type']&&_0x390a95['children'][0x0]){const _0x3b5079=_0x390a95['children'][0x0];if(_0x5095da['render']=function(_0x46bcd9){_0x46bcd9['innerHTML']=_0x3b5079;},_0x71abca){const _0x10e1a7=new _0x3f74b0(_0x14f506);_0x10e1a7['_appendChild'](_0x5095da);const _0x4ab9e7=Array['from'](_0x22897c['viewChildrenToDom'](_0x10e1a7,{'bind':!0x1})),_0x1dd7ca=_0x22897c['domDocument']['createElement']('div');_0x1dd7ca['append'](..._0x4ab9e7);const _0x16de10=Array['from'](_0x22897c['domChildrenToView'](_0x1dd7ca));_0x16de10['length']>0x1?_0x5095da['_appendChild'](_0x16de10):_0x5095da=_0x16de10[0x0];}}}if(_0x390a95['customProperties']){for(const [_0x4e9142,_0x524148]of _0x390a95['customProperties'])_0x5095da['_setCustomProperty'](_0x4e9142,_0x524148);}const _0x68f350=void 0x0===_0x390a95['fillerOffset']?null:_0x390a95['fillerOffset'];return null!==_0x68f350&&(_0x5095da['getFillerOffset']=()=>_0x68f350),_0x5095da;}}['_makeModelFromViewString'](_0x42dcd7){const _0x3daecb=JSON['parse'](_0x42dcd7),_0x10ae26=this['editor']['editing']['view']['document'],_0x1530dd=new _0x3f74b0(_0x10ae26,_0x3daecb['map'](_0x18a56c=>this['_getViewFromDiffObj'](_0x18a56c,!0x0)));return this['editor']['data']['toModel'](_0x1530dd);}['_removeRevisionMarkers'](_0x27adfe){return(_0x27adfe=_0x27adfe['filter'](_0x22ef3f=>!_0x22ef3f['name']||'revision-start'!==_0x22ef3f['name']&&'revision-end'!==_0x22ef3f['name']))['forEach'](_0x1339cc=>{'string'!=typeof _0x1339cc&&(_0x1339cc['children']=this['_removeRevisionMarkers'](_0x1339cc['children']),_0x1339cc['attributes']=_0x1339cc['attributes']['filter'](_0x1f1899=>!_0x1f1899[0x0]['startsWith']('data-revision-')));}),_0x27adfe;}}function m(_0x5ad172,_0x5ba2ac,_0x3deb67){const t=_0x5ad172['t'];switch(_0x5ba2ac){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'},_0x3deb67);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3deb67);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 _0x59afc0{['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[_0x4e6a9f,S,$,_0x5b0cac];}constructor(_0x3d5687){super(_0x3d5687),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 _0x39b72f=_0x221375();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x39b72f},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 _0xd2f66b=this['repository']['getRevision'](0x0),_0x2017bc=_0xd2f66b&&null===_0xd2f66b['creator']?_0xd2f66b:null;if(this['_continueCurrentRevision']=!!_0x2017bc&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x367efb=this['_source']['getCurrentRevisionId'](),_0x128a55=this['repository']['getRevision'](_0x367efb);if(_0x128a55)this['_startingVersion']=_0x128a55['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x3cdc26=this['_source']['history']['_operations']['find'](_0x540c0f=>!_0x540c0f['_isInit']),_0x3c061a=_0x3cdc26?_0x3cdc26['baseVersion']:this['_source']['history']['version'];_0xd2f66b?(_0xd2f66b['toVersion']<_0x3c061a&&_0xd2f66b['_update']({'toVersion':_0x3c061a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id'],this['_startingVersion']=_0x2017bc['fromVersion']):(this['_startingVersion']=_0xd2f66b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x3c061a,this['_continueCurrentRevision']=!0x1);}}else _0x2017bc&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2017bc['toVersion'],this['editor']['model']['document']['history']['version']),_0x2017bc['fromVersion']===_0x2017bc['toVersion']?(0x0!==_0x2017bc['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2017bc['id'],this['_startingVersion']=_0x2017bc['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',_0x5f3b3d=>!_0x5f3b3d),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x28370b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x555f57;for(const _0xe0f499 in _0x28370b){const _0x4ea40f=_0xe0f499,_0x325e05=_0x28370b[_0x4ea40f];if('revisionHistoryLicenseKeyValid'==_0x325e05||'revisionHistoryLicenseKeyInvalid'==_0x325e05||'revisionHistoryLicenseKeyExpired'==_0x325e05||'revisionHistoryLicenseKeyDomainLimit'==_0x325e05||'revisionHistoryLicenseKeyNotAllowed'==_0x325e05||'revisionHistoryLicenseKeyEvaluationLimit'==_0x325e05||'revisionHistoryLicenseKeyTrialLimit'==_0x325e05||'revisionHistoryLicenseKeyUsageLimit'==_0x325e05){delete _0x28370b[_0x4ea40f],_0x555f57=_0x325e05,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x555f57&&_0x28370b['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x555f57&&_0x28370b['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x555f57&&_0x28370b['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x555f57&&_0x28370b['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x555f57&&_0x28370b['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x555f57&&_0x28370b['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x555f57&&_0x28370b['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x59a469=this['repository']['getRevision'](0x0),_0x241f03=await this['getRevisionDocumentData'](_0x59a469),_0x465fda=await this['getRevisionRootsAttributes'](_0x59a469);this['_replaceEditorDataWithRevisionData'](_0x241f03,_0x465fda);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f5af3){this['_source']=_0x5f5af3;}async['update'](){const _0x32899d=await this['_source']['getLatestVersion']();if(_0x32899d>this['currentRevision']['toVersion']){await this['_loadState']();const _0x193500=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x32899d});_0x193500['authors']=_0x193500['authorsIds']['map'](_0x200399=>this['editor']['plugins']['get']('Users')['getUser'](_0x200399)),this['currentRevision']['_update'](_0x193500);}}async['saveRevision'](_0x5ccab4={},_0x37954f=null){const _0x155ad3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x37954f>this['currentRevision']['toVersion']&&(_0x37954f=null),null===_0x37954f&&(_0x37954f=await this['_source']['getLatestVersion']());const _0x211fac=this['_getFromVersion'](_0x37954f),_0x4c26ab=this['buildRevisionData']({'from':_0x211fac,'to':_0x37954f});if(this['currentRevision']['toVersion']<_0x37954f){const _0x2c2e8b=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x37954f,'to':_0x37954f});_0x2c2e8b['authors']=[],_0x2c2e8b['authorsIds']=[],_0x2c2e8b['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2c2e8b,!0x0),delete _0x2c2e8b['authors'],_0x155ad3['push'](_0x2c2e8b);}_0x5ccab4['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5ccab4['name']=_0x5ccab4['name']||null,_0x5ccab4['id']=_0x5ccab4['id']||_0x221375(),_0x5ccab4={..._0x5ccab4,..._0x4c26ab};const _0x3a3882=this['addRevisionData'](_0x5ccab4);_0x155ad3['push'](_0x5ccab4);const _0x298571=this['repository']['getIndex'](_0x3a3882);if(0x0!==_0x298571){const _0x39b968=this['repository']['getRevision'](_0x298571-0x1);if(_0x39b968['fromVersion']!==_0x37954f){const _0x27662f=this['_revisionDataBuilder']['getData'](_0x37954f,_0x39b968['toVersion']),_0x1ad510={'id':_0x39b968['id'],'diffData':_0x27662f['diffData'],'authorsIds':_0x27662f['authorsIds'],'authors':_0x27662f['authorsIds']['map'](_0x530c02=>this['editor']['plugins']['get']('Users')['getUser'](_0x530c02)),'fromVersion':_0x37954f};_0x39b968===this['currentRevision']&&(_0x1ad510['createdAt']=new Date(_0x5ccab4['createdAt']['getTime']()+0xa)),_0x39b968['_update'](_0x1ad510,!0x0),delete _0x1ad510['authors'],_0x155ad3['push'](_0x1ad510);}}if(this['adapter']){for(const _0x4eb546 of _0x155ad3)this['_bufferUpdate'](_0x4eb546['id'],_0x4eb546,!0x0);this['sendBufferedUpdates']();}return _0x3a3882;}['addRevisionData'](_0x2dcf72){const _0x510feb=this['repository']['createRevision'](_0x2dcf72);return this['adapter']&&_0x510feb['on']('_update',(_0x325625,_0x548bc7,_0x2d71ce)=>{_0x2d71ce||(this['_bufferUpdate'](_0x548bc7['id'],_0x548bc7,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x510feb,this['_findInsertionIndex'](_0x510feb)),_0x510feb;}async['getRevisionDocumentData'](_0x752a7c){return await this['_utils']['loadRevisionData'](_0x752a7c,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x752a7c);}async['getRevisionRootsAttributes'](_0x57df1c){return await this['_utils']['loadRevisionData'](_0x57df1c,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x57df1c);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x50e26c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3986da=0x0;_0x3986da<_0x50e26c['length'];_0x3986da++){const _0x4e015a=_0x50e26c[_0x3986da];let _0x179fd6=!0x1;for(const _0x4d42b2 of Object['keys'](_0x4e015a))void 0x0===_0x4e015a[_0x4d42b2]?delete _0x4e015a[_0x4d42b2]:'id'!==_0x4d42b2&&(_0x179fd6=!0x0);_0x179fd6||(_0x50e26c[_0x3986da]=null);}if(_0x50e26c=_0x50e26c['filter'](_0x1aa6af=>null!==_0x1aa6af),!_0x50e26c['length'])return;for(let _0x5ae9a1=0x0;_0x5ae9a1<_0x50e26c['length'];_0x5ae9a1++){const _0x110016=_0x50e26c[_0x5ae9a1];void 0x0!==_0x110016['fromVersion']&&void 0x0===_0x110016['toVersion']&&(_0x110016['toVersion']=this['repository']['getRevision'](_0x110016['id'])['toVersion']),void 0x0!==_0x110016['toVersion']&&void 0x0===_0x110016['fromVersion']&&(_0x110016['fromVersion']=this['repository']['getRevision'](_0x110016['id'])['fromVersion']);}const _0x2078d9=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x50e26c,_0x2078d9)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x555250=>{if(_0x555250){for(const _0x55e8ca of _0x555250)this['setRevisionData']({'id':_0x55e8ca['id'],'createdAt':_0x55e8ca['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2565a4=null,from:_0x4b8dd9=null,to:_0x1ab34c=null}){_0x4b8dd9=null!==_0x4b8dd9?_0x4b8dd9:_0x2565a4['fromVersion'],_0x1ab34c=null!==_0x1ab34c?_0x1ab34c:_0x2565a4['toVersion'];const _0x1d185c=this['_revisionDataBuilder']['getData'](_0x4b8dd9,_0x1ab34c),_0x52268c={'diffData':_0x1d185c['diffData'],'authorsIds':_0x1d185c['authorsIds'],'fromVersion':_0x4b8dd9,'toVersion':_0x1ab34c};if(!_0x2565a4||_0x1ab34c!==_0x2565a4['toVersion']){const _0x52a1f8=_0x1ab34c-0x1,_0x360257=this['_source']['history']['getOperation'](_0x52a1f8);_0x52268c['createdAt']=_0x360257&&_0x360257['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4b8dd9===this['_loadedStateData']['fromVersion']){for(const _0x5695a2 of this['_loadedStateData']['authors'])_0x52268c['authorsIds']['includes'](_0x5695a2['id'])||_0x52268c['authorsIds']['push'](_0x5695a2['id']);}return _0x52268c;}['_bufferUpdate'](_0x4bdb2d,_0x56b3d7,_0x50f90f){if(this['_bufferedUpdates']['has'](_0x4bdb2d)){const _0x21b614=this['_bufferedUpdates']['get'](_0x4bdb2d);_0x56b3d7=_0x50f90f?{..._0x21b614,..._0x56b3d7}:{..._0x56b3d7,..._0x21b614};}this['_bufferedUpdates']['set'](_0x4bdb2d,_0x56b3d7);}['setRevisionData'](_0x45d2a4){const _0x421d98=this['repository']['getRevision'](_0x45d2a4['id']);if(_0x45d2a4['createdAt']&&(_0x45d2a4['createdAt']=new Date(_0x45d2a4['createdAt'])),_0x45d2a4['authorsIds']){const _0x489f3e=this['editor']['plugins']['get']('Users');_0x45d2a4['authors']=_0x45d2a4['authorsIds']['map'](_0x4b50cf=>_0x489f3e['getUser'](_0x4b50cf));}_0x421d98['_update'](_0x45d2a4,!0x0);}['_createInitialRevision'](_0x463dc1){const _0x5b3de1=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x5b3de1)this['_initialRevisionId']=_0x5b3de1['id'];else{const _0x4b2dc4=!this['editor']['model']['document']['roots']['find'](_0x569a3f=>this['editor']['model']['hasContent'](_0x569a3f)),_0x51d96f=this['editor']['plugins']['get']('Users')['me']['id'],_0x279bdf=m(this['editor']['locale'],_0x4b2dc4?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x463dc1,'to':_0x463dc1,'id':this['_initialRevisionId'],'name':_0x279bdf,'creatorId':_0x51d96f});}}['_createCurrentRevision'](_0x470142){const _0x209c42=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x209c42),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x470142,'to':_0x470142,'id':_0x209c42,'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'](_0x390caf,_0x480eb5){let _0x595411=this['editor']['config']['get']('initialData'),_0x220c92=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x595411){_0x595411={};for(const _0x4f9378 of this['editor']['model']['document']['getRootNames']())_0x595411[_0x4f9378]='';}if('string'==typeof _0x595411&&(_0x595411={'main':_0x595411}),void 0x0===_0x220c92){_0x220c92={};for(const _0x18af17 of this['editor']['model']['document']['getRootNames']())_0x220c92[_0x18af17]={};}let _0x17c1db=!0x1;const _0x5da878=Object['keys'](_0x595411),_0x2e707e=Object['keys'](_0x390caf);for(const _0x158b90 of _0x5da878){if(_0x595411[_0x158b90]!==_0x390caf[_0x158b90]&&''!==_0x595411[_0x158b90]['trim']()){_0x17c1db=!0x0;break;}if(!_0x4544c2(_0x220c92[_0x158b90],_0x480eb5[_0x158b90])&&Object['keys'](_0x220c92[_0x158b90])['length']>0x0){_0x17c1db=!0x0;break;}}_0x17c1db||(_0x17c1db=_0x2e707e['some'](_0x71098f=>!this['editor']['model']['document']['getRoot'](_0x71098f))),_0x17c1db&&_0x2a22d8('editor-initial-data-replaced-with-revision-data',{'editorData':_0x595411,'editorRootsAttributes':_0x220c92,'revisionData':_0x390caf,'revisionRootsAttributes':_0x480eb5}),this['editor']['config']['set']('initialData',_0x390caf),this['editor']['config']['set']('rootsAttributes',_0x480eb5);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x686680=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x686680['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x48a44d){const _0x4ab347=this['repository']['getRevisions']();_0x4ab347['reverse']();let _0x47c160=0x0;for(;_0x47c160<_0x4ab347['length'];){const _0x1e6724=_0x4ab347[_0x47c160];if(_0x1e6724===this['currentRevision']){_0x47c160++;continue;}if(_0x1e6724['id']===this['_initialRevisionId'])break;const _0xa6e406=_0x48a44d['toVersion']-_0x1e6724['toVersion']||_0x48a44d['fromVersion']-_0x1e6724['fromVersion'];if(_0xa6e406>0x0)break;if(_0xa6e406<0x0)_0x47c160++;else{if(!_0x48a44d['creator']&&_0x1e6724['creator'])break;if(_0x1e6724['creator']||!_0x48a44d['creator']){if(_0x48a44d['createdAt']>_0x1e6724['createdAt'])break;_0x47c160++;}else _0x47c160++;}}return _0x47c160;}['_getFromVersion'](_0x783622){const _0x5f1eea=this['repository']['getRevisions']();_0x5f1eea['reverse'](),_0x5f1eea['shift']();const _0x2104b9=_0x5f1eea['find'](_0x10be7a=>_0x10be7a['toVersion']<=_0x783622)['toVersion'];return _0x2104b9<this['_startingVersion']?this['_startingVersion']:_0x2104b9;}['_makeRevision']({name:_0xef77e0,from:_0x3093bc,to:_0x3a85b6,creatorId:_0x252632,id:_0x1648c2}){const _0x37915b=this['buildRevisionData']({'from':_0x3093bc,'to':_0x3a85b6});_0x37915b['name']=_0xef77e0,_0x37915b['creatorId']=_0x252632,_0x37915b['id']=_0x1648c2;const _0x1edb37=this['addRevisionData'](_0x37915b);return this['adapter']&&this['_bufferUpdate'](_0x37915b['id'],_0x37915b,!0x0),_0x1edb37;}['_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(_0x3e58bd){this['editor']=_0x3e58bd,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'](_0x49cdce){this['source']=_0x49cdce;const _0x29a1d7=new Map(),_0x1bce2e=new Map(),_0x36e1c0=this['editor']['model']['document']['roots']['map'](_0x31f493=>_0x31f493['rootName']);for(const _0x35334f of _0x36e1c0){const _0x2f3afc=this['editor']['model']['document']['getRoot'](_0x35334f),_0x262079=x(_0x2f3afc);_0x29a1d7['set'](_0x35334f,_0x262079),_0x1bce2e['set'](_0x35334f,Object['fromEntries'](_0x2f3afc['getAttributes']()));}const _0x1eb64c=Array['from'](this['editor']['model']['markers'])['map'](_0x40ce1b=>[_0x40ce1b['name'],_0x40ce1b['getRange']()]),_0x48aa39=this['source']['version'];this['_saveMetaData'](_0x48aa39,_0x29a1d7,_0x1eb64c,_0x1bce2e),this['_startingRevisionId']=this['_revisionId'];const _0x42eaab=new Map(),_0x352b27=new Map();for(const _0x1fe8b0 of _0x36e1c0){const _0x17a7ed=N(_0x1fe8b0);_0x42eaab['set'](_0x1fe8b0,_0x17a7ed),_0x352b27['set'](_0x1fe8b0,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x42eaab,[],_0x352b27);}['getData'](_0x26bafc,_0x4706d8){if(this['_lastFrom']===_0x26bafc&&this['_lastTo']<=_0x4706d8)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x4706d8,!0x0);else{if(!this['_savedMetaData']['has'](_0x26bafc)){const _0x36ab3c=this['_getPreviousFrom'](_0x26bafc);this['_calculateMetaData'](_0x36ab3c,_0x26bafc,!0x1);}this['_calculateMetaData'](_0x26bafc,_0x4706d8,!0x0);}return this['_lastFrom']=_0x26bafc,this['_lastTo']=_0x4706d8,this['_getState']();}['loadState'](_0x487e70){if(!this['_savedMetaData']['has'](_0x487e70['fromVersion'])){const _0xa70197=this['_getPreviousFrom'](_0x487e70['fromVersion']);this['_calculateMetaData'](_0xa70197,_0x487e70['fromVersion'],!0x1);}this['_calculateMetaData'](_0x487e70['fromVersion'],_0x487e70['toVersion'],!0x1);const _0x3ae3e1=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x487e70['fromVersion'],this['_lastTo']=_0x487e70['toVersion'];for(const _0x18649e in _0x487e70['diffData']){const _0x49ec21=_0x487e70['diffData'][_0x18649e]['attachChange'],_0x232676=_0x459df9(_0x487e70['diffData'][_0x18649e]['attributesBefore'])||{},_0x5b739c=_0x3ae3e1['_makeModelFromViewString'](_0x487e70['diffData'][_0x18649e]['deletions']);_0x5b739c['rootName']=_0x18649e,_0x5b739c['_isAttached']=!_0x49ec21||!_0x49ec21['isAttached'],_0x5b739c['isAttached']=()=>_0x5b739c['_isAttached'],this['_baseRoots']['set'](_0x18649e,_0x5b739c),this['_baseRootsAttributes']['set'](_0x18649e,_0x232676),_0x49ec21&&this['_touchedRoots']['set'](_0x18649e,_0x49ec21);const _0x1ea424=this['_makeIdsRoot'](_0x5b739c);this['_baseIdsRoots']['set'](_0x18649e,_0x1ea424);for(const [_0x1a11f3,_0x1226c0]of _0x5b739c['markers']){if(!_0x1a11f3['startsWith']('revision:'))continue;const _0x183c03=_0x1a11f3['split'](':')[0x2];for(const _0x1c8345 of _0x1226c0['getWalker']({'singleCharacters':!0x0})){const _0x186dcb=this['_getVidAttributeName'](_0x1c8345),_0xf803a='elementEnd'==_0x1c8345['type']?_0x1c8345['previousPosition']['path']['slice'](0x0,-0x1):_0x1c8345['previousPosition']['path'],_0x1fba59=_0x1ea424['getNodeByPath'](_0xf803a)['getAttribute'](_0x186dcb);this['_touched']['set'](_0x1fba59,{'userId':_0x183c03});}_0x5b739c['markers']['delete'](_0x1a11f3);}}this['_startingRevisionId']=this['_revisionId'];const _0x14afa8=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x340be5=>!this['_touched']['has'](_0x340be5));let _0x2f0062=0x0;const _0x1abb2b=new Map();for(const _0xe1b23 in _0x487e70['diffData']){const _0xd37b8a=_0x487e70['diffData'][_0xe1b23]['attachChange'],_0x1ad6aa=_0x459df9(_0x487e70['diffData'][_0xe1b23]['attributesAfter'])||{},_0x3c2326=_0x3ae3e1['_makeModelFromViewString'](_0x487e70['diffData'][_0xe1b23]['insertions']);_0x3c2326['rootName']=_0xe1b23,_0x3c2326['_isAttached']=!_0xd37b8a||_0xd37b8a['isAttached'],_0x3c2326['isAttached']=()=>_0x3c2326['_isAttached'],this['_diffRoots']['set'](_0xe1b23,_0x3c2326),this['_diffRootsAttributes']['set'](_0xe1b23,_0x1ad6aa);const _0x511784=this['_makeIdsRoot'](_0x3c2326,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xe1b23,_0x511784),_0x1abb2b['set'](_0xe1b23,_0x3c2326['isAttached']()?_0x1ad6aa:{});for(const [_0x2b8fdd,_0x142b9f]of _0x3c2326['markers']){if(!_0x2b8fdd['startsWith']('revision:'))continue;const _0xa35ee6=_0x2b8fdd['split'](':')[0x2];for(const _0x471a18 of _0x142b9f['getWalker']({'singleCharacters':!0x0})){const _0x4a372f=this['_getVidAttributeName'](_0x471a18),_0xdcbd7d=this['_revisionId']++,_0x125da0='elementEnd'==_0x471a18['type']?_0x471a18['previousPosition']['path']['slice'](0x0,-0x1):_0x471a18['previousPosition']['path'];_0x511784['getNodeByPath'](_0x125da0)['_setAttribute'](_0x4a372f,_0xdcbd7d),this['_touched']['set'](_0xdcbd7d,{'userId':_0xa35ee6});}_0x3c2326['markers']['delete'](_0x2b8fdd);}for(const _0x220937 of this['editor']['model']['createRangeIn'](_0x3c2326)['getWalker']({'singleCharacters':!0x0})){const _0x5336f9=this['_getVidAttributeName'](_0x220937),_0x7d9e13='elementEnd'==_0x220937['type']?_0x220937['previousPosition']['path']['slice'](0x0,-0x1):_0x220937['previousPosition']['path'],_0x4afb92=_0x511784['getNodeByPath'](_0x7d9e13);_0x4afb92['getAttribute'](_0x5336f9)>0x0||_0x4afb92['_setAttribute'](_0x5336f9,_0x14afa8[_0x2f0062++]);}for(const [_0x71227a,_0x56bd7a]of _0x3c2326['markers'])_0x71227a['startsWith']('revision:')||this['_markers']['set'](_0x71227a,_0x56bd7a);}const {roots:_0x1d6d16}=this['_savedMetaData']['get'](_0x487e70['fromVersion']),{roots:_0x3eb829}=this['_savedMetaData']['get'](_0x487e70['toVersion']),_0x3c1e87=x(_0x1d6d16['get']('$graveyard'));this['_baseRoots']['set']('$graveyard',_0x3c1e87),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3c1e87,Number['NEGATIVE_INFINITY']));const _0xdd2baf=x(_0x3eb829['get']('$graveyard'));this['_diffRoots']['set']('$graveyard',_0xdd2baf),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xdd2baf));const _0x5a41b7=Array['from'](this['_diffRoots'])['map'](([_0x5bfe25,_0x497684])=>[_0x5bfe25,x(_0x497684)]);this['_saveMetaData'](this['_lastTo'],_0x5a41b7,this['_markers'],_0x1abb2b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x24fe8b,_0xd9e9ec,_0x226ef0,_0x48c749){const _0x46f165=new Map(_0xd9e9ec),_0x38ef44=new Map(_0x459df9(_0x48c749)),_0x4b5a97=new Map();for(const [_0x4e9021,_0x533025]of _0x226ef0)_0x4b5a97['set'](_0x4e9021,{'start':_0x533025['start']['clone'](),'end':_0x533025['end']['clone'](),'rootName':_0x533025['root']['rootName']});this['_savedMetaData']['set'](_0x24fe8b,{'roots':_0x46f165,'markers':_0x4b5a97,'rootsAttributes':_0x38ef44});}['_removeMetaData'](_0x378329){this['_savedMetaData']['delete'](_0x378329);}['_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'](_0x1ebc26,_0xa6893d=null){let _0x3437eb=null;_0x1ebc26['is']('documentFragment')||(_0x3437eb=new _0x16738f(_0x1ebc26['name'],{'vid_start':null===_0xa6893d?this['_revisionId']++:_0xa6893d++}));const _0x984d82=[];for(const _0x27b73f of _0x1ebc26['getChildren']())if(_0x27b73f['is']('element')){_0x984d82['push'](this['_makeIdsRoot'](_0x27b73f,_0xa6893d));const _0x1c38c5=_0x984d82[_0x984d82['length']-0x1];null!==_0xa6893d&&(_0xa6893d=_0x1c38c5['is']('element','$text')?_0x1c38c5['getAttribute']('vid')+0x1:_0x1c38c5['getAttribute']('vid_end')+0x1);}else{for(let _0x1f4579=0x0;_0x1f4579<_0x27b73f['offsetSize'];_0x1f4579++)_0x984d82['push'](new _0x16738f('$text',{'vid':null===_0xa6893d?this['_revisionId']++:_0xa6893d++}));}if(_0x1ebc26['is']('documentFragment')){const _0x46b47a=N(_0x1ebc26['rootName']);return _0x46b47a['_insertChild'](0x0,_0x984d82),_0x46b47a;}return _0x3437eb['_setAttribute']('vid_end',null===_0xa6893d?this['_revisionId']++:_0xa6893d++),_0x3437eb['_insertChild'](0x0,_0x984d82),_0x3437eb;}['_calculateMetaData'](_0x31f189,_0x1ae6f5,_0x21578a){this['_reset']();const {roots:_0x502855,markers:_0x2ae3cd,rootsAttributes:_0x543364}=this['_savedMetaData']['get'](_0x31f189);this['_baseRoots']=new Map(_0x502855),this['_baseRootsAttributes']=new Map(_0x459df9(_0x543364));for(const [_0x56e564,_0xd27f5b]of this['_baseRoots'])if('$graveyard'!==_0x56e564&&(this['_diffRoots']['set'](_0x56e564,x(_0xd27f5b)),this['_diffRootsAttributes']=new Map(_0x459df9(_0x543364)),_0x21578a)){const _0x457bf1=this['_revisionId'];this['_idsRoots']['set'](_0x56e564,this['_makeIdsRoot'](_0xd27f5b)),this['_baseIdsRoots']['set'](_0x56e564,this['_makeIdsRoot'](_0xd27f5b,_0x457bf1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',x(this['_baseRoots']['get']('$graveyard'))),_0x21578a&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x176ee3,_0x463d43]of _0x2ae3cd){const _0x51cb95=this['_baseRoots']['get'](_0x463d43['rootName']),_0x3227da=this['_diffRoots']['get'](_0x463d43['rootName']),_0x4f4cfa=new _0xb076e3(this['_fixPosition'](_0x463d43['start'],_0x51cb95),this['_fixPosition'](_0x463d43['end'],_0x51cb95)),_0x12dff5=this['_fixRange'](_0x4f4cfa,_0x3227da);_0x51cb95['markers']['set'](_0x176ee3,_0x4f4cfa),this['_markers']['set'](_0x176ee3,_0x12dff5);}this['_applyOperations'](_0x31f189,_0x1ae6f5,_0x21578a);}['_applyOperations'](_0x4b1a96,_0x57f49e,_0x4c5b21){for(const _0x421dc7 of this['source']['getOperations'](_0x4b1a96,_0x57f49e))this['_handleOperation'](_0x421dc7,_0x4c5b21);for(const _0x3a2086 of this['_diffRoots']['values']())_0x3a2086['markers']['clear']();for(const [_0xff2972,_0x1246d0]of this['_markers']){this['_diffRoots']['get'](_0x1246d0['root']['rootName'])['markers']['set'](_0xff2972,_0x1246d0['clone']());}const _0x59a765=new Map(),_0x425faa=new Map();for(const [_0x2e8388,_0x4e2056]of this['_diffRoots'])_0x59a765['set'](_0x2e8388,x(_0x4e2056)),_0x425faa['set'](_0x2e8388,this['_diffRootsAttributes']['get'](_0x2e8388));this['_saveMetaData'](_0x57f49e,_0x59a765,this['_markers'],_0x425faa);}['_getPreviousFrom'](_0x2669ab){const _0x18b04c=Array['from'](this['_savedMetaData']['keys']());_0x18b04c['sort']((_0x727f0a,_0x8d485e)=>_0x727f0a-_0x8d485e),_0x18b04c['reverse']();for(const _0x56a6a5 of _0x18b04c)if(_0x56a6a5<_0x2669ab)return _0x56a6a5;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4cc75d,_0x237d5d){const _0x4d5716=Array['from'](_0x237d5d['markers'])['map'](([_0x473c0a,_0x1e3c90])=>[_0x473c0a,this['_fixRange'](_0x1e3c90,_0x4cc75d)]);_0x4cc75d['markers']=new Map(_0x4d5716);}['_transformMarkers'](_0x1a964c){for(const _0x52f9a0 of this['_markers']['values']()){const _0x17c403=_0x52f9a0['getTransformedByOperation'](_0x1a964c),_0x522e50=_0xb076e3['_createFromRanges'](_0x17c403);_0x52f9a0['start']=_0x522e50['start'],_0x52f9a0['end']=_0x522e50['end'];}}['_handleOperation'](_0x5606c0,_0xcae450){if('addRoot'!=_0x5606c0['type']&&'detachRoot'!=_0x5606c0['type']){if('insert'==_0x5606c0['type']){const _0x395f17=_0x5606c0['position']['root']['rootName'];this['_diffRoots']['has'](_0x395f17)||(this['_diffRoots']['set'](_0x395f17,N(_0x395f17,!0x0)),this['_diffRootsAttributes']['set'](_0x395f17,{}),_0xcae450&&this['_idsRoots']['set'](_0x395f17,N(_0x395f17,!0x0)));}else{if('addRootAttribute'==_0x5606c0['type']||'removeRootAttribute'==_0x5606c0['type']||'changeRootAttribute'==_0x5606c0['type'])return void this['_handleRootAttributeOperation'](_0x5606c0);'marker'==_0x5606c0['type']&&this['_handleMarkerOperation'](_0x5606c0);}if('marker'!==_0x5606c0['type']){const _0x349cbb=this['_cloneOperation'](_0x5606c0,this['_diffRoots']);_0x349cbb['_execute'](),this['_transformMarkers'](_0x349cbb);}if(_0xcae450)switch(_0x5606c0['type']){case'insert':this['_handleInsertOperation'](_0x5606c0);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5606c0);break;case'merge':this['_handleMergeOperation'](_0x5606c0);break;case'split':this['_handleSplitOperation'](_0x5606c0);}}else this['_handleRootOperation'](_0x5606c0,_0xcae450);}['_cloneOperation'](_0xe697ea,_0x5da46c){const _0x13b379=_0xe697ea['clone']();return _0x13b379['_authorId']=_0xe697ea['_authorId'],this['_fixOperation'](_0x13b379,_0x5da46c),_0x13b379;}['_getBaseVids'](_0x133d05){return _0x133d05['map'](_0x1759d4=>{const _0x5d6561=this['_getVidAttributeName'](_0x1759d4);return Number(_0x1759d4['item']['getAttribute'](_0x5d6561));});}['_generateTape'](_0x2e9be3,_0x3c37f2){if(_0x2e9be3['is']('element','$text'))_0x3c37f2['push']({'item':_0x2e9be3,'type':'text'});else{_0x2e9be3['is']('element')&&_0x3c37f2['push']({'item':_0x2e9be3,'type':'elementStart'});for(const _0x30b285 of _0x2e9be3['getChildren']())this['_generateTape'](_0x30b285,_0x3c37f2);_0x2e9be3['is']('element')&&_0x3c37f2['push']({'item':_0x2e9be3,'type':'elementEnd'});}return _0x3c37f2;}['_getState'](){const _0x2cab37=new Map(this['_touched']),_0x5c1df6=new Map(_0x2cab37),_0x23c77f=new Map(),_0x12a692={'insertions':{},'deletions':{}},_0x37aca8={'insertions':{},'deletions':{}},_0x2feca0=new Map(),_0x270e6f=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x270e6f['delete']('$graveyard');for(const _0x1872fe of _0x270e6f){const _0x151855=this['_diffRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1),_0x5761ad=this['_baseRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1);_0x151855['isAttached']()||_0x5761ad['isAttached']()?(_0x12a692['insertions'][_0x1872fe]=x(_0x151855),_0x12a692['deletions'][_0x1872fe]=x(_0x5761ad),this['_copyMarkers'](_0x12a692['deletions'][_0x1872fe],_0x5761ad),this['_copyMarkers'](_0x12a692['insertions'][_0x1872fe],_0x151855),_0x37aca8['insertions'][_0x1872fe]=this['_generateTape'](this['_idsRoots']['get'](_0x1872fe),[]),_0x37aca8['deletions'][_0x1872fe]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1872fe)||N(_0x1872fe,!0x1),[])):_0x270e6f['delete'](_0x1872fe);}for(const _0x5bd111 of _0x270e6f){const _0x31407f=_0x37aca8['insertions'][_0x5bd111];for(const _0xe6ab82 of _0x31407f){const _0x4a0a15=this['_getVidAttributeName'](_0xe6ab82),_0x44ecc9=_0xe6ab82['item']['getAttribute'](_0x4a0a15);_0x5c1df6['delete'](_0x44ecc9),_0x44ecc9>=this['_startingRevisionId']&&_0x23c77f['set'](_0x44ecc9,_0x2cab37['get'](_0x44ecc9));}}for(const _0x5507ec of _0x270e6f){const _0x521e8d=_0x37aca8['insertions'][_0x5507ec],_0x17b7a4=this['_getBaseVids'](_0x37aca8['deletions'][_0x5507ec]);let _0x94261c=0x0;for(const _0x5238de of _0x521e8d){const _0x2c3da9=this['_getVidAttributeName'](_0x5238de),_0x133fb2=_0x5238de['item']['getAttribute'](_0x2c3da9);if(!_0x23c77f['has'](_0x133fb2)&&!_0x2feca0['has'](_0x133fb2)){if(_0x5c1df6['has'](_0x133fb2))_0x94261c++;else{if(_0x133fb2!=_0x17b7a4[_0x94261c]){const _0x352385=_0x2cab37['get'](_0x133fb2)||_0x2cab37['get'](_0x17b7a4[_0x94261c]);for(;_0x133fb2!=_0x17b7a4[_0x94261c];)_0x5c1df6['has'](_0x17b7a4[_0x94261c])||(_0x2feca0['set'](_0x17b7a4[_0x94261c],_0x352385),_0x2cab37['set'](_0x17b7a4[_0x94261c],_0x352385)),_0x94261c++;}_0x94261c++;}}}}for(const _0x9f6a73 of _0x270e6f){const _0x4887d8=_0x37aca8['insertions'][_0x9f6a73];for(const _0xd3c91c of _0x4887d8){const _0x20516e=this['_getVidAttributeName'](_0xd3c91c),_0x338f9e=_0xd3c91c['item']['getAttribute'](_0x20516e);if(_0x2feca0['has'](_0x338f9e)){const _0x3da11a=_0x2feca0['get'](_0x338f9e);_0x5c1df6['has'](_0x338f9e)||_0x5c1df6['set'](_0x338f9e,{..._0x3da11a}),_0x23c77f['set'](_0x338f9e,{..._0x3da11a});}}}for(const _0xbf1183 of _0x5c1df6['keys']())_0xbf1183>=this['_startingRevisionId']&&_0x5c1df6['delete'](_0xbf1183);const _0x33b2be=new Map();for(const _0x399d9c of _0x270e6f){let _0x2b81ca=_0x37aca8['insertions'][_0x399d9c];for(const _0x44a371 of _0x2b81ca)if(_0x44a371['item']['is']('element','tableCell')){const _0x58364e=this['_getVidAttributeName'](_0x44a371),_0x3c8c6a=_0x44a371['item']['getAttribute'](_0x58364e);if(_0x23c77f['has'](_0x3c8c6a)){const _0x4d6a35=_0x44a371['item']['parent']['parent']['getAttribute']('vid_start'),_0x7dbc78=_0x33b2be['get'](_0x4d6a35)||new Set();_0x7dbc78['add'](_0x23c77f['get'](_0x3c8c6a)['userId']),_0x33b2be['set'](_0x4d6a35,_0x7dbc78);}}_0x2b81ca=_0x37aca8['deletions'][_0x399d9c];for(const _0x519ad7 of _0x2b81ca)if(_0x519ad7['item']['is']('element','tableCell')){const _0x553c09=this['_getVidAttributeName'](_0x519ad7),_0x25f948=_0x519ad7['item']['getAttribute'](_0x553c09);if(_0x5c1df6['has'](_0x25f948)){const _0x5655f8=_0x519ad7['item']['parent']['parent']['getAttribute']('vid_start'),_0x195728=_0x33b2be['get'](_0x5655f8)||new Set();_0x195728['add'](_0x5c1df6['get'](_0x25f948)['userId']),_0x33b2be['set'](_0x5655f8,_0x195728);}}for(const _0x48725b of _0x33b2be['keys']())(_0x23c77f['has'](_0x48725b)||_0x5c1df6['has'](_0x48725b))&&_0x33b2be['delete'](_0x48725b);}for(const _0x1b68b8 of _0x270e6f){const _0x1a4a85=_0x37aca8['insertions'][_0x1b68b8];let _0x1c0189=null,_0x5e9d51=null;for(const _0x29103e of _0x1a4a85){const _0x289895=this['_getVidAttributeName'](_0x29103e),_0x3e17b1=_0x29103e['item']['getAttribute'](_0x289895),_0x48e9ed=_0x33b2be['get'](_0x3e17b1);_0x48e9ed&&'elementStart'==_0x29103e['type']&&(_0x1c0189=Array['from'](_0x48e9ed)[0x0],_0x5e9d51=_0x29103e['item']['getAttribute']('vid_end')),_0x1c0189&&(_0x5c1df6['set'](_0x3e17b1,{'userId':_0x1c0189}),_0x23c77f['set'](_0x3e17b1,{'userId':_0x1c0189})),_0x3e17b1==_0x5e9d51&&(_0x1c0189=null,_0x5e9d51=null);}}const _0x193f29={},_0xfa6cea=new Set();for(const _0x670097 of _0x270e6f){const _0x4fe73a=_0x12a692['deletions'][_0x670097],_0x9b040=_0x12a692['insertions'][_0x670097];for(const {userId:_0xe9464}of this['_touchedMarkers']['values']())null!==_0xe9464&&_0xfa6cea['add'](_0xe9464);for(const {userId:_0x35c2da}of this['_touchedRoots']['values']())null!==_0x35c2da&&_0xfa6cea['add'](_0x35c2da);this['_markChanges'](_0x9b040,_0x37aca8['insertions'][_0x670097],_0x23c77f,'insertion',_0xfa6cea),this['_markChanges'](_0x4fe73a,_0x37aca8['deletions'][_0x670097],_0x5c1df6,'deletion',_0xfa6cea),_0x193f29[_0x670097]={'insertions':this['_prepareViewToSave'](_0x9b040),'deletions':this['_prepareViewToSave'](_0x4fe73a),'attachChange':this['_touchedRoots']['get'](_0x670097)||null,'attributesBefore':_0x459df9(this['_baseRootsAttributes']['get'](_0x670097))||{},'attributesAfter':_0x459df9(this['_diffRootsAttributes']['get'](_0x670097))};}return{'diffData':_0x193f29,'authorsIds':Array['from'](_0xfa6cea)};}['_processRootBeforeSave'](_0x2edfbf){for(const [,_0x348ba5]of _0x2edfbf['markers']){const _0x144bb0=_0x348ba5['start']['getAncestors']()['filter'](_0x54f62c=>'tableCell'==_0x54f62c['name']);for(const _0x585c09 of _0x144bb0)0x1==_0x585c09['childCount']&&_0x585c09['getChild'](0x0)['is']('element','paragraph')&&_0x585c09['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xe58741){this['_processRootBeforeSave'](_0xe58741);const _0x5d45b6=this['editor']['data']['toView'](_0xe58741,{}),_0x28807d=Array['from'](_0x5d45b6['getChildren']())['map'](_0xc5c452=>this['_getViewJson'](_0xc5c452));return JSON['stringify'](_0x28807d);}['_getViewJson'](_0x4092bb){if(_0x4092bb['is']('$text'))return _0x4092bb['data'];{const _0x17e128=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x98e86e=_0x4092bb,_0xe4f0ff=this['editor']['data']['htmlProcessor']['domConverter'],_0x2ed3ed={'type':_0x17e128['_getTypeCharForViewElement'](_0x98e86e),'name':_0x98e86e['name'],'attributes':Array['from'](_0x98e86e['getAttributes']()),'children':Array['from'](_0x98e86e['getChildren']())['map'](_0x500013=>this['_getViewJson'](_0x500013))};if(_0x4092bb['is']('uiElement')&&'$comment'!=_0x4092bb['name']){const _0x535995=_0x4092bb['render'](_0xe4f0ff['domDocument'],_0xe4f0ff);_0x2ed3ed['children']['push'](_0x535995['outerHTML']);}else{if(_0x4092bb['is']('rawElement')){const _0x56a49c=_0xe4f0ff['domDocument']['createElement'](_0x98e86e['name']);_0x4092bb['render'](_0x56a49c,_0xe4f0ff),_0x2ed3ed['children']['push'](_0x56a49c['innerHTML']);}}const _0x3dee63=Array['from'](_0x98e86e['getCustomProperties']());_0x3dee63['length']>0x0&&(_0x2ed3ed['customProperties']=_0x3dee63);const _0x5b57c3=_0x98e86e['getFillerOffset']();return null!==_0x5b57c3&&(_0x2ed3ed['fillerOffset']=_0x5b57c3),_0x2ed3ed;}}['_markChanges'](_0x409e64,_0x412ec4,_0x2db651,_0x2f945e,_0x54858e){let _0x35a26f=null,_0x12a5f4=null,_0x4ea7b4=0x0;const _0x23c2e0=this['editor']['model'];for(let _0x57b458=0x0;_0x57b458<_0x412ec4['length'];_0x57b458++){const _0x45d45a=this['_getVidAttributeName'](_0x412ec4[_0x57b458]),_0x572da0=_0x412ec4[_0x57b458]['item']['getAttribute'](_0x45d45a),_0x2e7ddf=_0x2db651['get'](_0x572da0),_0x2a7a48=_0x57b458==_0x412ec4['length']-0x1;(!_0x35a26f&&_0x2e7ddf&&(_0x35a26f=_0x2e7ddf,_0x12a5f4=_0x412ec4[_0x57b458]),_0x35a26f&&(!_0x2e7ddf||_0x2e7ddf['userId']!=_0x35a26f['userId']))&&(_0x4ae7ca(_0x2e7ddf,P(_0x12a5f4,_0x409e64,_0x23c2e0),P(_0x412ec4[_0x57b458],_0x409e64,_0x23c2e0)),_0x35a26f=_0x2e7ddf||null,_0x12a5f4=_0x2e7ddf?_0x412ec4[_0x57b458]:null),_0x35a26f&&_0x2a7a48&&_0x4ae7ca(_0x2e7ddf,P(_0x12a5f4,_0x409e64,_0x23c2e0),V(_0x412ec4[_0x57b458],_0x409e64,_0x23c2e0));}function _0x4ae7ca(_0x4ca5a0,_0x49633d,_0x6cbb16){const _0x3ea36e=_0x35a26f['userId'],_0x1637f7='revision:'+_0x2f945e+':'+_0x3ea36e+':'+_0x4ea7b4++,_0x45f053=_0x23c2e0['createRange'](_0x49633d,_0x6cbb16);_0x409e64['markers']['set'](_0x1637f7,_0x45f053),null!==_0x3ea36e&&_0x54858e['add'](_0x3ea36e);}}['_getVidAttributeName'](_0x2a4ffc){switch(_0x2a4ffc['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x13ccd0,_0x258b24){_0x13ccd0['baseVersion']=null;for(const _0x55f6e8 in _0x13ccd0){const _0x40dee5=_0x13ccd0[_0x55f6e8];if(_0x40dee5 instanceof _0x3cb0ec){const _0x195de6=_0x258b24['get'](_0x40dee5['root']['rootName']);_0x13ccd0[_0x55f6e8]=this['_fixPosition'](_0x40dee5,_0x195de6);}if(_0x40dee5 instanceof _0xb076e3){const _0x1789d9=_0x258b24['get'](_0x40dee5['root']['rootName']);_0x13ccd0[_0x55f6e8]=this['_fixRange'](_0x40dee5,_0x1789d9);}'root'===_0x55f6e8&&(_0x13ccd0['root']=_0x258b24['get'](_0x13ccd0['root']['rootName']));}}['_fixRange'](_0x9b0a1d,_0x2ebe3e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x9b0a1d['start'],_0x2ebe3e),this['_fixPosition'](_0x9b0a1d['end'],_0x2ebe3e));}['_fixPosition'](_0x331f2a,_0x5adc74){return this['editor']['model']['createPositionFromPath'](_0x5adc74,_0x331f2a['path'],_0x331f2a['stickiness']);}['_handleInsertOperation'](_0x37cb17){const _0x15d133=this['_idsRoots']['get'](_0x37cb17['position']['root']['rootName']),_0x112c68=this['_fixPosition'](_0x37cb17['position'],_0x15d133),_0x316a0c=null===_0x37cb17['_authorId']?null:_0x37cb17['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53d7af=_0x112c68['parent'],_0x1fe468=this['_revisionId'],_0x5105cb=[];for(const _0x4fe734 of _0x37cb17['nodes'])if(_0x4fe734['is']('element'))_0x5105cb['push'](this['_makeIdsRoot'](_0x4fe734));else{for(let _0x514f12=0x0;_0x514f12<_0x4fe734['offsetSize'];_0x514f12++)_0x5105cb['push'](new _0x16738f('$text',{'vid':this['_revisionId']++}));}const _0x556759=this['_revisionId'];for(let _0x2a449f=_0x1fe468;_0x2a449f<_0x556759;_0x2a449f++)this['_touched']['set'](_0x2a449f,{'userId':_0x316a0c});_0x53d7af['_insertChild'](_0x112c68['offset'],_0x5105cb);}['_handleMoveOperation'](_0x3a122a){(_0x3a122a=this['_cloneOperation'](_0x3a122a,this['_idsRoots']))['_execute']();const _0x3abbcf=null===_0x3a122a['_authorId']?null:_0x3a122a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1d0ba0=_0x3a122a['getMovedRangeStart'](),_0x58a299=_0x1d0ba0['parent'],_0xcae527=_0x1d0ba0['offset'];!function _0x33eb0e(_0x217efd,_0x4e98c5,_0x1a8005,_0x1ad437){for(let _0x232284=_0x1a8005;_0x232284<_0x1ad437;_0x232284++){const _0x176b40=_0x4e98c5['getChild'](_0x232284);_0x176b40['is']('element','$text')?_0x217efd['set'](_0x176b40['getAttribute']('vid'),{'userId':_0x3abbcf}):(_0x217efd['set'](_0x176b40['getAttribute']('vid_start'),{'userId':_0x3abbcf}),_0x33eb0e(_0x217efd,_0x176b40,0x0,_0x176b40['childCount']),_0x217efd['set'](_0x176b40['getAttribute']('vid_end'),{'userId':_0x3abbcf}));}}(this['_touched'],_0x58a299,_0xcae527,_0xcae527+_0x3a122a['howMany']);}['_handleMergeOperation'](_0x12187){const _0x46519d=null===(_0x12187=this['_cloneOperation'](_0x12187,this['_idsRoots']))['_authorId']?null:_0x12187['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x16eee0=_0x12187['targetPosition']['parent'],_0x450192=_0x12187['sourcePosition']['parent'],_0x2928dd=_0x16eee0['getAttribute']('vid_end'),_0x22f90a=_0x450192['getAttribute']('vid_start');_0x16eee0['_setAttribute']('vid_end',_0x450192['getAttribute']('vid_end')),_0x450192['_setAttribute']('vid_end',_0x2928dd),this['_touched']['set'](_0x22f90a,{'userId':_0x46519d}),this['_touched']['set'](_0x2928dd,{'userId':_0x46519d}),_0x12187['_execute']();}['_handleSplitOperation'](_0x9c2957){const _0x40c561=null===(_0x9c2957=this['_cloneOperation'](_0x9c2957,this['_idsRoots']))['_authorId']?null:_0x9c2957['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x54dcd0=_0x9c2957['graveyardPosition'],_0x5b095b=_0x9c2957['splitPosition']['parent'];_0x9c2957['_execute']();const _0x2881c5=_0x5b095b['getAttribute']('vid_end'),_0x4ff0f0=_0x9c2957['insertionPosition']['nodeAfter'];if(_0x54dcd0){const _0x291676=_0x4ff0f0['getAttribute']('vid_end'),_0x4bdc3e=_0x5b095b['getAttribute']('vid_end');_0x5b095b['_setAttribute']('vid_end',_0x291676),_0x4ff0f0['_setAttribute']('vid_end',_0x4bdc3e),this['_touched']['set'](_0x5b095b['getAttribute']('vid_end'),{'userId':_0x40c561}),this['_touched']['set'](_0x4ff0f0['getAttribute']('vid_start'),{'userId':_0x40c561});}else{const _0xd6ffdd=this['_revisionId']++,_0x3fad4e=this['_revisionId']++;_0x5b095b['_setAttribute']('vid_end',_0xd6ffdd),_0x4ff0f0['_setAttribute']('vid_start',_0x3fad4e),_0x4ff0f0['_setAttribute']('vid_end',_0x2881c5),this['_touched']['set'](_0xd6ffdd,{'userId':_0x40c561}),this['_touched']['set'](_0x3fad4e,{'userId':_0x40c561});}}['_handleMarkerOperation'](_0x587d08){if(!_0x587d08['affectsData'])return;const _0x221699=(_0x587d08=this['_cloneOperation'](_0x587d08,this['_diffRoots']))['oldRange']?_0x587d08['oldRange']['root']:null,_0x158037=_0x587d08['newRange']?_0x587d08['newRange']['root']:null;_0x221699&&this['_markers']['delete'](_0x587d08['name']),_0x158037&&this['_markers']['set'](_0x587d08['name'],_0x587d08['newRange']['clone']());const _0x11072e=null===_0x587d08['_authorId']?null:_0x587d08['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a5e9=_0x587d08['name'];if(!this['_touchedMarkers']['has'](_0x44a5e9))return void this['_touchedMarkers']['set'](_0x44a5e9,{'range':_0x587d08['oldRange'],'userId':_0x11072e});const _0x591cec=this['_touchedMarkers']['get'](_0x44a5e9),_0x2f2eae=_0x591cec['range'],_0x5c78a1=_0x587d08['newRange'];null==_0x2f2eae&&null==_0x5c78a1||_0x2f2eae&&_0x5c78a1&&_0x2f2eae['isEqual'](_0x5c78a1)?this['_touchedMarkers']['delete'](_0x587d08['name']):_0x591cec['userId']=_0x11072e;}['_handleRootOperation'](_0x2e60a3,_0x3e4a22){this['_diffRoots']['has'](_0x2e60a3['rootName'])?this['_diffRoots']['get'](_0x2e60a3['rootName'])['_isAttached']=_0x2e60a3['isAdd']:(this['_diffRoots']['set'](_0x2e60a3['rootName'],N(_0x2e60a3['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2e60a3['rootName'],{}),_0x3e4a22&&this['_idsRoots']['set'](_0x2e60a3['rootName'],N(_0x2e60a3['rootName'],!0x0)));const _0x28b460=null===_0x2e60a3['_authorId']?null:_0x2e60a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5f40ff=this['_touchedRoots']['get'](_0x2e60a3['rootName']);_0x5f40ff&&_0x5f40ff['userId']===_0x28b460?this['_touchedRoots']['delete'](_0x2e60a3['rootName']):this['_touchedRoots']['set'](_0x2e60a3['rootName'],{'userId':_0x28b460,'isAttached':_0x2e60a3['isAdd']});}['_handleRootAttributeOperation'](_0x324e48){const _0x1a0651=this['_diffRootsAttributes']['get'](_0x324e48['root']['rootName']);null===_0x324e48['newValue']?delete _0x1a0651[_0x324e48['key']]:_0x1a0651[_0x324e48['key']]=_0x324e48['newValue'];}}function x(_0x243a9b){const _0x4bb270=N(_0x243a9b['rootName'],_0x243a9b['isAttached']());for(const _0x52b13a of _0x243a9b['getChildren']()){const _0x59842b=_0x52b13a['_clone'](!0x0);_0x4bb270['_appendChild'](_0x59842b);}return _0x4bb270;}function N(_0x28f6d4,_0x3a5a5f=!0x0){const _0x26480d=new _0x54d9b6();return _0x26480d['rootName']=_0x28f6d4,_0x26480d['_isAttached']=_0x3a5a5f,_0x26480d['isAttached']=()=>_0x26480d['_isAttached'],_0x26480d;}function P(_0x43d577,_0x59f6e8,_0x1b6928){const _0x101433='elementEnd'==_0x43d577['type']?_0x1b6928['createPositionAt'](_0x43d577['item'],'end'):_0x1b6928['createPositionBefore'](_0x43d577['item']);return _0x1b6928['createPositionFromPath'](_0x59f6e8,_0x101433['path'],_0x101433['stickiness']);}function V(_0x326d59,_0x229f6f,_0x74783d){const _0x484e91='elementStart'==_0x326d59['type']?_0x74783d['createPositionAt'](_0x326d59['item'],0x0):_0x74783d['createPositionAfter'](_0x326d59['item']);return _0x74783d['createPositionFromPath'](_0x229f6f,_0x484e91['path'],_0x484e91['stickiness']);}class me extends/* #__PURE__ -- @preserve */
25
+ _0x29c9e9(_0x484abd){['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1fd28e,_0x2232c7){super(_0x1fd28e),this['focusTracker']=new _0x23f28d(),this['keystrokes']=new _0x416488(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2232c7),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'](),_0x104706({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x147c69=_0x361c66=>_0x361c66['stopPropagation']();this['keystrokes']['set']('arrowright',_0x147c69),this['keystrokes']['set']('arrowleft',_0x147c69),this['keystrokes']['set']('arrowup',_0x147c69),this['keystrokes']['set']('arrowdown',_0x147c69);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x3f8e7f){this['revisionNameInputView']['fieldView']['element']['value']=_0x3f8e7f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1943f1){const _0x1543b0=new et(this['locale'],ti),_0x46d855=_0x1543b0['fieldView'];_0x46d855['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x2712bf=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1943f1&&(_0x2712bf+='\x20('+m(this['locale'],'optional')+')'),(_0x1543b0['label']=_0x2712bf,_0x46d855['on']('input',()=>{this['revisionNameInputValue']=_0x46d855['element']['value']['trim']();}),_0x1543b0);}}class l extends _0x59afc0{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h];}['_saveRevisionFormView'];['init'](){const _0x446607=this['editor'],_0x3a6779=_0x446607['plugins']['get']('RevisionTracker');_0x446607['ui']['componentFactory']['add']('revisionHistory',_0xbbf15f=>{const _0x40a102=_0x1cb51d(_0xbbf15f),_0x4cb6e0=_0x40a102['panelView']['children'],_0x4fbc40=new _0x5bef83(_0xbbf15f),_0x36009b=new _0xb232fc(_0xbbf15f),_0x271f68=new _0x14152c(_0xbbf15f),_0x62f422=new _0xb232fc(_0xbbf15f),_0x367220=new _0x14152c(_0xbbf15f);return _0x40a102['bind']('isEnabled')['to'](_0x3a6779,'isReady',_0x3a6779,'isEnabled',_0x446607,'isReadOnly',(_0x28b988,_0x140f9c,_0x114917)=>_0x28b988&&_0x140f9c&&!_0x114917),_0x40a102['buttonView']['set']({'icon':_0x58c189,'label':m(_0xbbf15f,'Revision\x20history'),'tooltip':!0x0}),_0x271f68['set']({'label':m(_0xbbf15f,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x271f68['bind']('isEnabled')['to'](_0x3a6779,'isReady',_0x3a6779,'isEnabled',_0x446607,'isReadOnly',(_0x9de58a,_0x15d307,_0x3a1333)=>_0x9de58a&&_0x15d307&&!_0x3a1333),_0x271f68['on']('execute',()=>this['_showDialog']()),_0x367220['set']({'label':m(_0xbbf15f,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x367220['bind']('isEnabled')['to'](_0x3a6779,'isReady',_0x446607,'isReadOnly',(_0x4fb023,_0x4e26b3)=>_0x4fb023&&!_0x4e26b3),_0x367220['on']('execute',()=>{_0x446607['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x40a102['isOpen']=!0x1,_0x446607['editing']['view']['focus']();}),_0x36009b['children']['add'](_0x271f68),_0x62f422['children']['add'](_0x367220),_0x4fbc40['role']='menu',_0x4fbc40['items']['addMany']([_0x36009b,_0x62f422]),_0x4cb6e0['add'](_0x4fbc40),_0x40a102;}),_0x446607['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x259456=this['editor'],_0x4f0f2a=_0x259456['locale'],_0x32ada3=new _0x4a1477(_0x4f0f2a),_0x22c214=new _0x1c59ff(_0x4f0f2a);_0x32ada3['buttonView']['set']({'icon':_0x58c189,'label':m(_0x4f0f2a,'Revision\x20history')});const _0x46b8fc=new _0x4597ac(_0x4f0f2a,_0x32ada3),_0x12d4bb=new _0x5436d7(_0x4f0f2a);_0x12d4bb['set']({'label':m(_0x4f0f2a,'Save\x20current\x20revision')}),_0x12d4bb['delegate']('execute')['to'](_0x32ada3),_0x12d4bb['on']('execute',()=>{this['_showDialog']();}),_0x46b8fc['children']['add'](_0x12d4bb),_0x22c214['items']['add'](_0x46b8fc);const _0x16a4ca=new _0x4597ac(_0x4f0f2a,_0x32ada3),_0x2b8c87=new _0x5436d7(_0x4f0f2a);return _0x2b8c87['set']({'label':m(_0x4f0f2a,'Open\x20revision\x20history')}),_0x2b8c87['delegate']('execute')['to'](_0x32ada3),_0x2b8c87['on']('execute',()=>{_0x259456['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x16a4ca['children']['add'](_0x2b8c87),_0x22c214['items']['add'](_0x16a4ca),_0x32ada3['panelView']['children']['add'](_0x22c214),_0x32ada3;}['_showDialog'](){const _0x2ceb70=this['editor'],_0x1893f2=_0x2ceb70['locale'],_0xb76e12=_0x2ceb70['plugins']['get']('Dialog'),_0x88a11b=_0x2ceb70['plugins']['get']('RevisionTracker');function _0x26f4f3(_0x439447){_0x2ceb70['config']['get']('revisionHistory.requireRevisionName')&&''===_0x439447['revisionName']?_0x439447['revisionNameInputView']['errorText']=m(_0x1893f2,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2ceb70['plugins']['get'](h)['saveRevision']({'name':_0x439447['revisionName']}),_0xb76e12['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x26f4f3(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0xb76e12['show']({'id':'revisionSave','title':m(_0x1893f2,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2ceb70['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0xb76e12['hide']()},{'label':m(_0x2ceb70['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5b188d){_0x5b188d['bind']('isEnabled')['to'](_0x88a11b,'isReady',_0x88a11b,'isEnabled',_0x2ceb70,'isReadOnly',(_0x130766,_0x5404c0,_0x1c067c)=>_0x130766&&_0x5404c0&&!_0x1c067c);},'onExecute':()=>_0x26f4f3(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x1f2c69=this['editor'],_0x5af9a4=_0x1f2c69['locale'];this['_saveRevisionFormView']=new me(_0x5af9a4,_0x1f2c69['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class z extends _0x484abd{['changeId'];['_model'];constructor(_0x518145,_0x3b7ef5){super(_0x518145),this['_model']=_0x3b7ef5,this['changeId']=_0x3b7ef5['id'];const _0x3c5d7a=this['bindTemplate'],_0x567b1b=m(_0x518145,_0x3b7ef5['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3b7ef5['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3b7ef5['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3c5d7a['to']('type',_0x473491=>'ck-revision-change__'+_0x473491)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x567b1b}]},{'text':'\x20'+_0x3b7ef5['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class G extends/* #__PURE__ -- @preserve */
26
+ _0x911840(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4cbae6){super(),this['id']=_0x4cbae6['id']||_0x221375(),this['author']=_0x4cbae6['author'],this['type']=_0x4cbae6['type'],this['data']=_0x4cbae6['data']||{},this['rootName']=_0x4cbae6['rootName'],this['set']('createdAt',_0x4cbae6['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(_0x51da46,_0x44442f){this['newRevisionId']=_0x51da46,this['oldRevisionId']=_0x44442f,this['changes']=new _0x51dee5();}['_setChanges'](_0x1aeb79){for(const _0xc8660a of _0x1aeb79)this['changes']['add'](_0xc8660a);}}class u extends _0x59afc0{['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[_0x4e6a9f,_0x43390d,S,$];}constructor(_0x26318f){super(_0x26318f),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',(_0x13256f,_0x288b74,_0x559108)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0xe97598=>{for(const _0x21b666 of this['editor']['editing']['view']['document']['roots'])_0x559108?_0xe97598['removeClass']('ck-editor__editable__overlay',_0x21b666):_0xe97598['addClass']('ck-editor__editable__overlay',_0x21b666);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1a2892=>null!==_0x1a2892),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x44c7f9,_0x31a180,_0x5b654a)=>_0x44c7f9&&_0x5b654a?_0x31a180['changes']['getIndex'](_0x5b654a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x348638,_0x56d010)=>_0x348638?_0x56d010['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x43390d);}['init'](){const _0x590110=this['editor'],_0x3e81f9=new rt(_0x590110,{'direction':'backward'}),_0x4edb62=new rt(_0x590110,{'direction':'forward'});(_0x590110['commands']['add']('showPreviousChange',_0x3e81f9),_0x590110['commands']['add']('showNextChange',_0x4edb62),_0x590110['commands']['add']('restoreRevision',new nt(_0x590110)),this['on']('change:numberOfChanges',()=>{_0x3e81f9['refresh'](),_0x4edb62['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x590110['enableReadOnlyMode']('revision-viewer'),_0x590110['plugins']['has']('WidgetToolbarRepository'))&&_0x590110['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x210feb){return await this['_utils']['loadRevisionData'](_0x210feb,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x210feb);}async['getRevisionRootsAttributes'](_0x3dabcf){return await this['_utils']['loadRevisionData'](_0x3dabcf,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x3dabcf);}async['compare'](_0x184c6b,_0x2403e4,_0x2ebceb=!0x1){if(!this['isEnabled'])return;const _0x4b7c8f=this['diff'],_0x565f3e=this['repository'],_0x1e43ea='string'==typeof _0x184c6b?_0x565f3e['getRevision'](_0x184c6b):_0x184c6b,_0x311099='string'==typeof _0x2403e4?_0x565f3e['getRevision'](_0x2403e4):_0x2403e4,_0x362ff2=_0x1e43ea['id'],_0x46a04c=_0x311099?_0x311099['id']:null;if(!_0x2ebceb&&this['diff']&&this['diff']['newRevisionId']===_0x362ff2&&this['diff']['oldRevisionId']===_0x46a04c)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new J(_0x362ff2,_0x46a04c);const _0x3f08fa=this['_getRevisionsRange'](_0x1e43ea,_0x311099,!0x0)['map'](_0x1dfeac=>this['_utils']['loadRevisionData'](_0x1dfeac,this['adapter']));return _0x3f08fa['push'](new Promise(_0x454f6d=>{setTimeout(_0x454f6d,0x14);})),Promise['all'](_0x3f08fa)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x45242f=this['_getDiff'](_0x362ff2,_0x46a04c);for(const _0x46709f of _0x45242f['changes'])this['_changeIdToChange']['set'](_0x46709f['id'],_0x46709f);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29fbab=>{for(const _0x286f7a of this['editor']['model']['document']['getRootNames']())_0x29fbab['detachRoot'](_0x286f7a);for(const _0x1c687e of Object['keys'](_0x45242f['model'])){const _0x28b4df=_0x29fbab['addRoot'](_0x1c687e);for(const _0x2e07a3 of Object['keys'](_0x45242f['attributes'][_0x1c687e]))_0x29fbab['setAttribute'](_0x2e07a3,_0x45242f['attributes'][_0x1c687e][_0x2e07a3],_0x28b4df);_0x29fbab['insert'](_0x45242f['model'][_0x1c687e],_0x28b4df,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x45242f['changes'])),this['isReady']=!0x0;})['catch'](_0x5d1388=>{console['error'](_0x5d1388),this['_cleanUp'](),_0x4b7c8f&&(this['diff']=_0x4b7c8f),this['isReady']=!0x0;});}['addRevisionData'](_0x324143,_0xb24126){const _0x2a4c92=this['repository']['createRevision'](_0x324143);return _0x2a4c92['on']('_update',(_0x370a41,_0x559c6a,_0x46df98)=>_0xb24126(_0x559c6a,_0x46df98,_0x2a4c92)),this['repository']['addRevision'](_0x2a4c92),_0x2a4c92;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x33ac67=>{for(const _0x307ae2 of this['editor']['model']['document']['getRootNames']())_0x33ac67['detachRoot'](_0x307ae2);});}['_sortAndFilterDiffChanges'](_0x583eaa){const _0x57bffc=[],_0x53a419=new Map();for(const _0x321dc4 of this['editor']['model']['document']['getRootNames']()){const _0x117c64=this['editor']['editing']['view']['getDomRoot'](_0x321dc4);if(!_0x117c64)continue;const _0x3aaab3=_0x117c64['getClientRects']()['item'](0x0);_0x3aaab3&&(_0x57bffc['push'](_0x321dc4),_0x53a419['set'](_0x321dc4,_0x3aaab3));}return _0x57bffc['sort']((_0xa3bcc2,_0x5ee4fe)=>{const _0x4b2d38=_0x53a419['get'](_0xa3bcc2),_0x179af1=_0x53a419['get'](_0x5ee4fe);return _0x4b2d38['y']-_0x179af1['y']||_0x4b2d38['x']-_0x179af1['x'];}),(_0x583eaa=_0x583eaa['filter'](_0x229255=>_0x57bffc['includes'](_0x229255['rootName'])))['sort']((_0x46bf88,_0x54b472)=>_0x57bffc['indexOf'](_0x46bf88['rootName'])-_0x57bffc['indexOf'](_0x54b472['rootName'])),_0x583eaa;}['_makeTape'](_0x19857b){const _0x5dde87=Array['from'](_0x19857b['markers'])['filter'](([_0xa13c65,_0x45fec8])=>_0xa13c65['startsWith']('revision:')&&!_0x45fec8['isCollapsed']),_0x454c29=Array['from'](this['editor']['model']['createRangeIn'](_0x19857b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5dde87['length'])for(const _0x27f8a0 of _0x454c29){const [_0x1edb6c,_0x9a7124]=_0x5dde87[0x0],[,_0xf73c3f,_0x395350]=_0x1edb6c['split'](':');if(_0x9a7124['end']['isEqual'](_0x27f8a0['nextPosition'])&&_0x5dde87['shift'](),(_0x27f8a0['previousPosition']['isEqual'](_0x9a7124['start'])||_0x27f8a0['previousPosition']['isAfter'](_0x9a7124['start']))&&('insertion'==_0xf73c3f?_0x27f8a0['isAdded']={'userId':_0x395350}:'deletion'==_0xf73c3f&&(_0x27f8a0['isRemoved']={'userId':_0x395350})),0x0==_0x5dde87['length'])break;}return _0x454c29;}['_refreshStartEndIndex'](_0x10bf2b){const _0xe4e34d=new Map();for(let _0xc4690b=0x0;_0xc4690b<_0x10bf2b['length'];_0xc4690b++)'text'===_0x10bf2b[_0xc4690b]['type']?(_0x10bf2b[_0xc4690b]['item']['startIndex']=_0xc4690b,_0x10bf2b[_0xc4690b]['item']['endIndex']=_0xc4690b):('elementStart'===_0x10bf2b[_0xc4690b]['type']?_0x10bf2b[_0xc4690b]['item']['startIndex']=_0xc4690b:'elementEnd'===_0x10bf2b[_0xc4690b]['type']&&(_0x10bf2b[_0xc4690b]['item']['endIndex']=_0xc4690b),_0xe4e34d['set'](_0x10bf2b[_0xc4690b]['id'],_0xc4690b));for(const _0x480dbc of _0xe4e34d['values']())'elementStart'===_0x10bf2b[_0x480dbc]['type']?_0x10bf2b[_0x480dbc]['item']['endIndex']=_0xe4e34d['get'](_0x10bf2b[_0x480dbc]['pairId']):'elementEnd'===_0x10bf2b[_0x480dbc]['type']&&(_0x10bf2b[_0x480dbc]['item']['startIndex']=_0xe4e34d['get'](_0x10bf2b[_0x480dbc]['pairId']));}['_processTape'](_0x197396){for(let _0x4c850b=0x0;_0x4c850b<_0x197396['length'];_0x4c850b++){if('elementStart'===_0x197396[_0x4c850b]['type'])_0x197396[_0x4c850b]['item']['startIndex']=_0x4c850b;else{if('elementEnd'===_0x197396[_0x4c850b]['type']){_0x197396[_0x4c850b]['item']['endIndex']=_0x4c850b;const _0x211966=_0x197396[_0x4c850b]['item']['startIndex'];_0x197396[_0x211966]['pairId']=_0x197396[_0x4c850b]['id'],_0x197396[_0x4c850b]['pairId']=_0x197396[_0x211966]['id'];}else _0x197396[_0x4c850b]['item']['startIndex']=_0x4c850b,_0x197396[_0x4c850b]['item']['endIndex']=_0x4c850b,_0x197396[_0x4c850b]['pairId']=null;}_0x197396[_0x4c850b]['markersStart']||(_0x197396[_0x4c850b]['markersStart']=[],_0x197396[_0x4c850b]['markersEnd']=[]);}}['_markInsertions'](_0x32e1eb,_0x39f9fa){const _0x545462=_0x32e1eb['filter'](_0x32098d=>!_0x32098d['isAdded']);for(let _0x422573=0x0;_0x422573<_0x39f9fa['length'];_0x422573++)_0x39f9fa[_0x422573]['isAdded']&&(_0x545462[_0x422573]['isAdded']=_0x39f9fa[_0x422573]['isAdded']);}['_getDiff'](_0x3a1b92,_0x3147be=null){const _0x2e6cf8=this['repository']['getRevision'](_0x3a1b92),_0x4c36c9=_0x3147be?this['repository']['getRevision'](_0x3147be):null,_0x123f15=this['_getRevisionsRange'](_0x2e6cf8,_0x4c36c9),_0x1c4bf0=_0x123f15[_0x123f15['length']-0x1],_0x5f335a=new Map(),_0x396b49={'model':{},'attributes':{},'changes':[]},_0x350999=new Set(),_0x257fef=new Map();for(let _0x361d3d=_0x123f15['length']-0x1;_0x361d3d>=0x0;_0x361d3d--){const _0x253e56=_0x123f15[_0x361d3d];for(const _0x31b196 of Object['keys'](_0x253e56['diffData']))if(_0x253e56['diffData'][_0x31b196]['attachChange']){const _0x27f2a7=_0x253e56['diffData'][_0x31b196]['attachChange'];_0x27f2a7['isAttached']?(_0x350999['add'](_0x31b196),_0x257fef['has'](_0x31b196)&&_0x257fef['get'](_0x31b196)['userId']==_0x27f2a7['userId']?_0x257fef['delete'](_0x31b196):_0x257fef['set'](_0x31b196,_0x27f2a7)):_0x257fef['has'](_0x31b196)?(_0x350999['delete'](_0x31b196),_0x257fef['delete'](_0x31b196)):(_0x350999['add'](_0x31b196),_0x257fef['set'](_0x31b196,_0x27f2a7));}else _0x350999['add'](_0x31b196);}for(const _0x51e847 of _0x350999){const _0x4b397f=_0x257fef['has'](_0x51e847)&&!_0x257fef['get'](_0x51e847)['isAttached'];let _0x1dcc6f=_0x4b397f?_0x123f15['length']-0x1:0x0;const _0x1d630a=_0x4b397f?-0x1:0x1;for(;_0x123f15[_0x1dcc6f];){const _0x1c36b0=_0x123f15[_0x1dcc6f];if(_0x1c36b0['diffData'][_0x51e847]){const _0x1f8931=_0x4b397f?_0x1c36b0['diffData'][_0x51e847]['attributesBefore']:_0x1c36b0['diffData'][_0x51e847]['attributesAfter'];_0x396b49['attributes'][_0x51e847]=_0x1f8931?_0x459df9(_0x1f8931):{};break;}_0x1dcc6f+=_0x1d630a;}}for(const _0x24913e of _0x123f15){_0x24913e['model']={};for(const _0x1d56b4 of _0x24913e['authors'])_0x5f335a['set'](_0x1d56b4['id'],_0x1d56b4);for(const _0x3e914a of _0x350999){const _0x542aef=_0x24913e['diffData'][_0x3e914a]?_0x24913e['diffData'][_0x3e914a]['insertions']:'[]',_0x556203=_0x24913e['diffData'][_0x3e914a]?_0x24913e['diffData'][_0x3e914a]['deletions']:'[]';_0x24913e['model'][_0x3e914a]={'insertions':this['_utils']['_makeModelFromViewString'](_0x542aef),'deletions':this['_utils']['_makeModelFromViewString'](_0x556203)};}}for(const _0x208f66 of _0x350999){let _0x1d1209=null,_0x30acc8=0x0;const _0x631860=new Map(Array['from'](_0x2e6cf8['model'][_0x208f66]['insertions']['markers'])['filter'](([_0x292a67])=>!_0x292a67['startsWith']('revision:')));let _0x35cfeb=0x0;for(const _0x3813b1 of _0x123f15){const _0x463d8a=this['_makeTape'](_0x3813b1['model'][_0x208f66]['insertions']);_0x3813b1==_0x2e6cf8?(_0x1d1209=_0x463d8a,_0x30acc8=_0x1d1209['length'],_0x1d1209['forEach'](_0x253c57=>{_0x253c57['id']=_0x35cfeb++;}),this['_processTape'](_0x1d1209)):this['_markInsertions'](_0x1d1209,_0x463d8a);const _0xca6924=_0x1d1209['filter'](_0x12039f=>!_0x12039f['isAdded'])['map'](_0x34e1b6=>_0x34e1b6['id']);let _0x4b81dd=0x0;const _0x183b7e=this['_makeTape'](_0x3813b1['model'][_0x208f66]['deletions']);_0x183b7e['forEach'](_0xabc3e5=>{_0xabc3e5['isRemoved']?_0xabc3e5['id']=_0x30acc8++:_0xabc3e5['id']=_0xca6924[_0x4b81dd++];}),this['_processTape'](_0x183b7e),this['_setDistance'](_0x1d1209,'isAdded'),this['_setDistance'](_0x183b7e,'isRemoved'),_0x3813b1==_0x2e6cf8&&this['_markMarkers'](_0x1d1209,_0x631860),_0x1d1209=this['_joinTapes'](_0x1d1209,_0x183b7e),this['_refreshStartEndIndex'](_0x1d1209),this['_setDistance'](_0x1d1209,'isRemoved');}_0x1d1209=_0x1d1209['filter'](_0x2e4ddc=>!(_0x2e4ddc['isAdded']&&_0x2e4ddc['isRemoved']));const _0x53078e=new Map(_0x1c4bf0['model'][_0x208f66]['deletions']['markers']),_0x5a20c5=new Set(_0x631860['keys']());for(const _0x6b90a of _0x53078e['keys']())_0x5a20c5['delete'](_0x6b90a);this['_markSuggestions'](_0x1d1209,_0x5a20c5),this['_fixObsoleteTags'](_0x1d1209),_0x1d1209=this['_removeMissingPairs'](_0x1d1209),_0x1d1209=this['_markMismatchedRemovedTags'](_0x1d1209),_0x1d1209=this['_removeUnsupportedChanges'](_0x1d1209);const {root:_0x250822,changes:_0x4d75b4}=this['_makeModelFromTape'](_0x1d1209,_0x5f335a,_0x208f66);_0x396b49['model'][_0x208f66]=_0x250822;const _0x525b1c=_0x257fef['get'](_0x208f66);if(_0x525b1c){const _0x3df6b3=_0x5f335a['get'](_0x525b1c['userId']),_0x5f1859=new G({'author':_0x3df6b3,'type':_0x525b1c['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x208f66});_0x4d75b4['unshift'](_0x5f1859),_0x396b49['attributes'][_0x208f66]['revisionHistoryAttachChange']=_0x5f1859['id'];}_0x396b49['changes']=_0x396b49['changes']['concat'](_0x4d75b4);}return _0x396b49;}['_markMarkers'](_0x153d46,_0x471a83){for(let _0x5368e3=0x0;_0x5368e3<_0x153d46['length'];_0x5368e3++)for(const [_0xcf0012,_0x4e7d53]of _0x471a83)!_0x4e7d53['isCollapsed']&&_0x4e7d53['start']['isEqual'](_0x153d46[_0x5368e3]['previousPosition'])&&_0x153d46[_0x5368e3]['markersStart']['push'](_0xcf0012),_0x4e7d53['end']['isEqual'](_0x153d46[_0x5368e3]['nextPosition'])&&_0x153d46[_0x5368e3]['markersEnd']['push'](_0xcf0012);}['_joinTapes'](_0x1818ca,_0x287b95){let _0x313ce8=[],_0x5d907f=0x0,_0x57ab85=0x0;for(;_0x5d907f<_0x1818ca['length']||_0x57ab85<_0x287b95['length'];){const _0xd34f1e=_0x1818ca[_0x5d907f]||{},_0x408a32=_0x287b95[_0x57ab85]||{};if(_0xd34f1e['id']==_0x408a32['id'])_0x5d907f++,_0x57ab85++,_0x313ce8['push'](_0xd34f1e);else{if(_0x408a32['isRemoved']&&_0xd34f1e['isAdded']){const {commonTape:_0x2c8f24,iEnd:_0x4fe390,jEnd:_0x24871c}=this['_threeWayMerge'](_0x1818ca,_0x5d907f,_0x287b95,_0x57ab85);_0x313ce8=_0x313ce8['concat'](_0x2c8f24),_0x5d907f=_0x4fe390,_0x57ab85=_0x24871c;}else _0x408a32['isRemoved']?(_0x57ab85++,_0x313ce8['push'](_0x408a32)):(_0x5d907f++,_0x313ce8['push'](_0xd34f1e));}}return _0x313ce8;}['_markSuggestions'](_0x2db8d8,_0xff18ab){const _0x1511fe=[];for(let _0x383a38=0x0;_0x383a38<_0x2db8d8['length'];_0x383a38++){for(let _0xe821cd=0x0;_0xe821cd<_0x2db8d8[_0x383a38]['markersStart']['length'];_0xe821cd++){const _0x325986=_0x2db8d8[_0x383a38]['markersStart'][_0xe821cd];if(!_0xff18ab['has'](_0x325986))continue;const {group:_0xfeafd2,type:_0x1b3ffa,authorId:_0x139e0c}=_0x25a012(_0x325986);'revision-suggestion'!=_0xfeafd2||'insertion'!=_0x1b3ffa&&'deletion'!=_0x1b3ffa||(_0x1511fe['unshift']({'type':_0x1b3ffa,'name':_0x325986,'userId':_0x139e0c}),_0x2db8d8[_0x383a38]['markersStart']['splice'](_0xe821cd,0x1),_0xe821cd--);}_0x554e51(_0x2db8d8[_0x383a38]);for(let _0x33ffc0=0x0;_0x33ffc0<_0x2db8d8[_0x383a38]['markersEnd']['length'];_0x33ffc0++){const _0x341d04=_0x2db8d8[_0x383a38]['markersEnd'][_0x33ffc0];if(!_0xff18ab['has'](_0x341d04))continue;const {group:_0x555464,type:_0x1e015b}=_0x25a012(_0x341d04);if('revision-suggestion'!=_0x555464||'insertion'!=_0x1e015b&&'deletion'!=_0x1e015b)continue;_0x2db8d8[_0x383a38]['markersEnd']['splice'](_0x33ffc0,0x1),_0x33ffc0--;const _0x1cafd3=_0x1511fe['findIndex'](_0x2ebdbb=>_0x2ebdbb['name']==_0x341d04);_0x1cafd3>-0x1&&_0x1511fe['splice'](_0x1cafd3,0x1);}}function _0x25a012(_0x1cceb2){const _0xeb93e9=_0x1cceb2['split'](':');return{'group':_0xeb93e9[0x0],'type':_0xeb93e9[0x1],'subType':_0xeb93e9['length']>=0x5?_0xeb93e9[0x2]:null,'id':_0xeb93e9['length']<0x5?_0xeb93e9[0x2]:_0xeb93e9[0x3],'authorId':_0xeb93e9['length']<0x5?_0xeb93e9[0x3]:_0xeb93e9[0x4],'markerCount':0x6==_0xeb93e9['length']?_0xeb93e9[0x5]:null};}function _0x554e51(_0xbad66c){for(let _0x5316db=0x0;_0x5316db<_0x1511fe['length'];_0x5316db++){if(_0xbad66c['isAdded']&&'insertion'==_0x1511fe[_0x5316db]['type']&&_0xbad66c['isAdded']['userId']==_0x1511fe[_0x5316db]['userId'])return _0xbad66c['isAddSuggestion']=_0x1511fe[_0x5316db],void delete _0xbad66c['isAdded'];if(!_0xbad66c['isAdded']&&!_0xbad66c['isRemoved']&&'deletion'==_0x1511fe[_0x5316db]['type'])return void(_0xbad66c['isRemoveSuggestion']=_0x1511fe[_0x5316db]);}}}['_setDistance'](_0x22a5f8,_0x3e3ff0){let _0x52966a=0x0,_0x506849=!0x1;const _0x383453=new Map();for(const _0x4b0b90 of _0x22a5f8)_0x4b0b90[_0x3e3ff0]?_0x506849&&(_0x52966a++,_0x506849=!0x1):(_0x52966a++,_0x506849=!0x0),_0x383453['set'](_0x4b0b90['id'],_0x52966a);for(let _0x283d9f=0x0;_0x283d9f<_0x22a5f8['length'];_0x283d9f++){if('isRemoved'==_0x3e3ff0&&_0x22a5f8[_0x283d9f]['isAdded']||'isAdded'==_0x3e3ff0&&_0x22a5f8[_0x283d9f]['isRemoved'])continue;if('text'==_0x22a5f8[_0x283d9f]['type']){_0x22a5f8[_0x283d9f]['distance']=0x0;continue;}const _0x1e61af=_0x383453['get'](_0x22a5f8[_0x283d9f]['pairId']),_0x3a4f75=_0x383453['get'](_0x22a5f8[_0x283d9f]['id']);_0x22a5f8[_0x283d9f]['distance']=_0x1e61af-_0x3a4f75;}}['_getRevisionsRange'](_0x4e856b,_0x3cf679,_0x588567=!0x1){const _0x5e6116=[];let _0x118503=this['repository']['getIndex'](_0x4e856b),_0xe3443c=this['repository']['getIndex'](_0x3cf679);for(-0x1==_0xe3443c&&(_0xe3443c=this['repository']['_revisions']['length'],_0x588567=!0x1);_0x118503<_0xe3443c;)_0x5e6116['push'](this['repository']['getRevision'](_0x118503)),_0x118503++;return _0x588567&&_0x5e6116['push'](this['repository']['getRevision'](_0x118503)),_0x5e6116;}['_threeWayMerge'](_0x267261,_0x18f0fc,_0x22b537,_0x3d74ba){const _0x4d1e5e=this['editor']['model']['schema'];let _0x3c6eee=_0x18f0fc;for(;_0x267261[_0x3c6eee]&&_0x267261[_0x3c6eee]['isAdded'];)_0x3c6eee++;let _0x26a619=_0x3d74ba;for(;_0x22b537[_0x26a619]&&_0x22b537[_0x26a619]['isRemoved'];)_0x26a619++;_0x2ede18(_0x267261,_0x18f0fc,_0x3c6eee),_0x2ede18(_0x22b537,_0x3d74ba,_0x26a619);const _0x1508cc=_0x22b537['slice'](_0x3d74ba,_0x26a619)['concat'](_0x267261['slice'](_0x18f0fc,_0x3c6eee));return _0x1508cc['sort']((_0x2f7b08,_0x1bc8a1)=>_0x2f7b08['side']!=_0x1bc8a1['side']?_0x2f7b08['side']-_0x1bc8a1['side']:_0x2f7b08['level']!=_0x1bc8a1['level']?_0x2f7b08['level']-_0x1bc8a1['level']:_0x2f7b08['distance']!=_0x1bc8a1['distance']?_0x1bc8a1['distance']-_0x2f7b08['distance']:!!_0x2f7b08['isAdded']!=!!_0x1bc8a1['isAdded']?-0x1==_0x2f7b08['side']||0x0==_0x2f7b08['side']?_0x2f7b08['isAdded']?-0x1:0x1:_0x2f7b08['isAdded']?0x1:-0x1:_0x2f7b08['index']-_0x1bc8a1['index']),{'commonTape':_0x1508cc,'iEnd':_0x3c6eee,'jEnd':_0x26a619};function _0x2ede18(_0x1fdad5,_0x19e083,_0x1ba875){let _0x474ef4=-0x1,_0x43a0ee=Number['POSITIVE_INFINITY'],_0x3c008a=!0x0;for(let _0x5211ef=_0x19e083;_0x5211ef<_0x1ba875;_0x5211ef++)if(_0x4d1e5e['isInline'](_0x1fdad5[_0x5211ef]['item'])||(_0x3c008a=!0x1),_0x1fdad5[_0x5211ef]['item']['startIndex']<_0x19e083&&(_0x474ef4=_0x5211ef),_0x1fdad5[_0x5211ef]['item']['endIndex']>=_0x1ba875){_0x43a0ee=_0x5211ef;break;}_0x3c008a&&(_0x474ef4=_0x1ba875-0x1);for(let _0x226e0e=_0x19e083;_0x226e0e<_0x1ba875;_0x226e0e++)_0x1fdad5[_0x226e0e]['side']=_0x226e0e<=_0x474ef4?-0x1:_0x226e0e<_0x43a0ee?0x0:0x1,_0x1fdad5[_0x226e0e]['index']=_0x226e0e;let _0x25acb8=0x0;for(let _0x527a74=_0x19e083;_0x527a74<=_0x474ef4;_0x527a74++)0x0==_0x1fdad5[_0x527a74]['distance']?_0x1fdad5[_0x527a74]['level']=_0x25acb8:(_0x25acb8++,_0x1fdad5[_0x527a74]['level']=_0x25acb8,_0x25acb8++);for(let _0x281e6f=_0x19e083;_0x281e6f<_0x1ba875;_0x281e6f++)0x0==_0x1fdad5[_0x281e6f]['side']&&(_0x1fdad5[_0x281e6f]['level']=_0x25acb8);_0x25acb8=0x0;for(let _0x4ceb8f=_0x1ba875-0x1;_0x4ceb8f>=_0x43a0ee;_0x4ceb8f--)0x0==_0x1fdad5[_0x4ceb8f]['distance']?_0x1fdad5[_0x4ceb8f]['level']=_0x25acb8:(_0x25acb8--,_0x1fdad5[_0x4ceb8f]['level']=_0x25acb8,_0x25acb8--);}}['_fixObsoleteTags'](_0x5efcca){const _0x43e1b9=new Map(),_0x2074b1=this['editor']['model']['schema'];for(let _0xb84c3d=0x1;_0xb84c3d<_0x5efcca['length'];_0xb84c3d++){let _0x4b7d64,_0x5868a3,_0x110e33;const _0x261177=_0x5efcca[_0xb84c3d],_0x44a8ed=_0x5efcca[_0xb84c3d-0x1];if('text'==_0x261177['type'])continue;if(_0x261177['type']!=_0x44a8ed['type'])continue;if(!_0x2074b1['isBlock'](_0x44a8ed['item'])||_0x2074b1['isLimit'](_0x44a8ed['item']))continue;if(!_0x2074b1['isBlock'](_0x261177['item'])||_0x2074b1['isLimit'](_0x261177['item']))continue;if((_0x5efcca[_0xb84c3d]['isAdded']||_0x5efcca[_0xb84c3d]['isAddSuggestion'])&&_0x5efcca[_0xb84c3d-0x1]['isRemoved'])_0x4b7d64=_0x5efcca[_0xb84c3d],_0x5868a3=_0x5efcca[_0xb84c3d-0x1],_0x110e33=_0xb84c3d-0x1;else{if(!_0x5efcca[_0xb84c3d]['isRemoved']||!_0x5efcca[_0xb84c3d-0x1]['isAdded']&&!_0x5efcca[_0xb84c3d-0x1]['isAddSuggestion'])continue;_0x4b7d64=_0x5efcca[_0xb84c3d-0x1],_0x5868a3=_0x5efcca[_0xb84c3d],_0x110e33=_0xb84c3d;}const _0x1b07c4=_0x4b7d64['level']==_0x5868a3['level'],_0x2e9901=Math['abs'](_0x4b7d64['level'])<Math['abs'](_0x5868a3['level'])&&0x0==_0x5868a3['distance'];(_0x1b07c4||_0x2e9901)&&(_0x43e1b9['set'](_0x5868a3['id'],_0x4b7d64['id']),_0x5efcca['splice'](_0x110e33,0x1),_0xb84c3d--,_0x4b7d64['isAdded']=!0x1);}for(let _0x54a69c=0x0;_0x54a69c<_0x5efcca['length'];_0x54a69c++)_0x43e1b9['has'](_0x5efcca[_0x54a69c]['pairId'])&&(_0x5efcca[_0x54a69c]['pairId']=_0x43e1b9['get'](_0x5efcca[_0x54a69c]['pairId']));}['_removeMissingPairs'](_0x3fbcb3){const _0x39a1be=new Set(_0x3fbcb3['map'](_0x33f5e5=>_0x33f5e5['id']));for(let _0x883de1=0x0;_0x883de1<_0x3fbcb3['length'];_0x883de1++)_0x39a1be['has'](_0x3fbcb3[_0x883de1]['pairId'])||0x0==_0x3fbcb3[_0x883de1]['distance']||(_0x3fbcb3[_0x883de1]['isIncorrect']=!0x0);return _0x3fbcb3['filter'](_0xd70fa7=>!_0xd70fa7['isIncorrect']);}['_markMismatchedRemovedTags'](_0x26bc68){const _0x463936=new Set();for(let _0x36f680=0x0;_0x36f680<_0x26bc68['length'];_0x36f680++){if(_0x463936['has'](_0x26bc68[_0x36f680]['id'])&&_0x26bc68[_0x36f680]['isRemoved']&&(_0x26bc68[_0x36f680]['isIncorrect']=!0x0),_0x26bc68[_0x36f680]['isIncorrect'])continue;if(0x0==_0x26bc68[_0x36f680]['distance'])continue;if('elementStart'!=_0x26bc68[_0x36f680]['type'])continue;if(null==_0x26bc68[_0x36f680]['pairId'])continue;let _0x34a50a=_0x36f680+0x1,_0x28dea5=0x0;for(;_0x26bc68[_0x34a50a]['id']!=_0x26bc68[_0x36f680]['pairId'];)'elementStart'==_0x26bc68[_0x34a50a]['type']?_0x28dea5++:'elementEnd'==_0x26bc68[_0x34a50a]['type']&&_0x28dea5--,_0x34a50a++;if(0x0!=_0x28dea5){if(_0x26bc68[_0x36f680]['isRemoved'])_0x26bc68[_0x36f680]['isIncorrect']=!0x0;else{for(;_0x34a50a!=_0x36f680;)_0x26bc68[_0x34a50a]['isRemoved']&&0x0!=_0x26bc68[_0x34a50a]['distance']&&(_0x26bc68[_0x34a50a]['isIncorrect']=!0x0,_0x463936['add'](_0x26bc68[_0x34a50a]['pairId'])),_0x34a50a--;}}}return _0x26bc68['filter'](_0x41f678=>!_0x41f678['isIncorrect']);}['_removeUnsupportedChanges'](_0x4ccd6a){const _0x57c67b=this['editor']['model']['schema'];for(let _0x2238ee=0x0;_0x2238ee<_0x4ccd6a['length'];_0x2238ee++){if(!(_0x4ccd6a[_0x2238ee]['isAdded']||_0x4ccd6a[_0x2238ee]['isAddSuggestion']||_0x4ccd6a[_0x2238ee]['isRemoved']||_0x4ccd6a[_0x2238ee]['isRemoveSuggestion']))continue;if(0x0==_0x4ccd6a[_0x2238ee]['distance'])continue;const _0x16a028=_0x4ccd6a[_0x2238ee]['item'];_0x57c67b['isBlock'](_0x16a028)||_0x57c67b['isLimit'](_0x16a028)||(_0x4ccd6a[_0x2238ee]['isAdded']&&delete _0x4ccd6a[_0x2238ee]['isAdded'],_0x4ccd6a[_0x2238ee]['isAddSuggestion']&&delete _0x4ccd6a[_0x2238ee]['isAddSuggestion'],_0x4ccd6a[_0x2238ee]['isRemoveSuggestion']&&delete _0x4ccd6a[_0x2238ee]['isRemoveSuggestion'],_0x4ccd6a[_0x2238ee]['isRemoved']&&(_0x4ccd6a[_0x2238ee]['isIncorrect']=!0x0));}return _0x4ccd6a['filter'](_0x44bc51=>!_0x44bc51['isIncorrect']);}['_makeModelFromTape'](_0x57f7f1,_0x2845b6,_0x11935c){const _0x21ca2b=new _0x54d9b6(),_0x48c545=[],_0x436938=new Map(),_0xd20d0b=this['editor']['model'],_0x3b7bab=_0xd20d0b['schema'],_0x5393cd=[_0x21ca2b],_0x8a2479={},_0x59ef06={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5935b4=null;const _0x542348=[0x0];for(let _0x309b6b=0x0;_0x309b6b<_0x57f7f1['length'];_0x309b6b++)if('elementStart'===_0x57f7f1[_0x309b6b]['type']){_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348);const _0x6b4d3e=new _0x16738f(_0x57f7f1[_0x309b6b]['item']['name'],_0x57f7f1[_0x309b6b]['item']['getAttributes']());_0x5393cd[0x0]['_appendChild'](_0x6b4d3e),_0x542348['push'](0x0),_0x5393cd['unshift'](_0x6b4d3e),_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348);}else'elementEnd'===_0x57f7f1[_0x309b6b]['type']?(_0x5393cd['shift'](),_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348),_0x542348['pop'](),_0x542348[_0x542348['length']-0x1]++,_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348)):(_0x57f7f1[_0x309b6b]['previousPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348),_0x5935b4?_0x5935b4['_data']+=_0x57f7f1[_0x309b6b]['item']['data']:_0x5935b4=new _0x512a07(_0x57f7f1[_0x309b6b]['item']['data'],_0x57f7f1[_0x309b6b]['item']['getAttributes']()),_0x57f7f1[_0x309b6b+0x1]&&'text'===_0x57f7f1[_0x309b6b+0x1]['type']&&_0x171d49(_0x5935b4,_0x57f7f1[_0x309b6b+0x1]['item'])||(_0x5393cd[0x0]['_appendChild'](_0x5935b4),_0x5935b4=null),_0x542348[_0x542348['length']-0x1]+=_0x57f7f1[_0x309b6b]['item']['offsetSize'],_0x57f7f1[_0x309b6b]['nextPosition']=_0xd20d0b['createPositionFromPath'](_0x21ca2b,_0x542348));for(let _0x579517=0x0;_0x579517<_0x57f7f1['length'];_0x579517++){const _0x38360c=_0x57f7f1[_0x579517]['previousPosition'],_0x4a7151=_0x57f7f1[_0x579517]['nextPosition'];for(const _0x334e31 of _0x57f7f1[_0x579517]['markersStart'])_0x436938['set'](_0x334e31,{'start':_0x38360c,'end':null});_0x597433('isRemoveSuggestion',_0x579517,_0x38360c,_0x4a7151),_0x597433('isAddSuggestion',_0x579517,_0x38360c,_0x4a7151),_0x597433('isRemoved',_0x579517,_0x38360c,_0x4a7151),_0x597433('isAdded',_0x579517,_0x38360c,_0x4a7151);for(const _0x203273 of _0x57f7f1[_0x579517]['markersEnd']){const _0x41f014=_0x436938['get'](_0x203273);_0x41f014?_0x41f014['end']=_0x4a7151:_0x436938['set'](_0x203273,{'start':_0x4a7151,'end':_0x4a7151});}}for(const [_0x332e8b,_0xc231c5]of _0x436938){const _0x4e08fb=this['editor']['model']['createRange'](_0xc231c5['start'],_0xc231c5['end']);_0x21ca2b['markers']['set'](_0x332e8b,_0x4e08fb);}return _0x48c545['sort']((_0x4db0c8,_0x395b27)=>{const _0x102f8c=_0x21ca2b['markers']['get']('revision:'+_0x4db0c8['id']),_0x5be2cd=_0x21ca2b['markers']['get']('revision:'+_0x395b27['id']);return _0x102f8c['start']['isBefore'](_0x5be2cd['start'])?-0x1:_0x102f8c['start']['isAfter'](_0x5be2cd['start'])?0x1:_0x102f8c['end']['isBefore'](_0x5be2cd['end'])?-0x1:_0x102f8c['end']['isAfter'](_0x5be2cd['end'])?0x1:'add'===_0x4db0c8['type']?-0x1:0x1;}),{'root':_0x21ca2b,'changes':_0x48c545};function _0x597433(_0x5c4b99,_0x49093c,_0x44b319,_0x4a5fb3){const _0x924b3e=!!_0x57f7f1[_0x49093c][_0x5c4b99],_0x1c264a=_0x924b3e?_0x57f7f1[_0x49093c][_0x5c4b99]['userId']:null,_0x2b1327=_0x49093c===_0x57f7f1['length']-0x1,_0x1fff0c=_0x59ef06[_0x5c4b99][0x0],_0x4562be=_0x3b7bab['isObject'](_0x57f7f1[_0x49093c]['item']);!_0x8a2479[_0x5c4b99]&&_0x924b3e?_0x8a2479[_0x5c4b99]={'start':_0x44b319,'tapeItem':_0x57f7f1[_0x49093c],'userId':_0x1c264a,'type':_0x5c4b99}:_0x8a2479[_0x5c4b99]&&!_0x924b3e?(_0x8a2479[_0x5c4b99]['end']=_0x44b319,_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]=null):_0x8a2479[_0x5c4b99]&&_0x924b3e&&_0x8a2479[_0x5c4b99]['userId']!==_0x1c264a&&(_0x8a2479[_0x5c4b99]['end']=_0x44b319,_0x1fff0c&&_0x1fff0c['userId']===_0x8a2479[_0x5c4b99]['userId']||_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]={'start':_0x44b319,'tapeItem':_0x57f7f1[_0x49093c],'userId':_0x1c264a,'type':_0x5c4b99}),_0x8a2479[_0x5c4b99]&&_0x4562be&&('elementStart'!==_0x57f7f1[_0x49093c]['type']||_0x1fff0c&&_0x1fff0c['userId']===_0x1c264a||_0x59ef06[_0x5c4b99]['unshift']({'userId':_0x1c264a,'object':_0x57f7f1[_0x49093c]['item'],'change':_0x8a2479[_0x5c4b99]}),'elementEnd'===_0x57f7f1[_0x49093c]['type']&&_0x1fff0c&&_0x1fff0c['object']===_0x57f7f1[_0x49093c]['item']&&(_0x59ef06[_0x5c4b99]['shift'](),_0x8a2479[_0x5c4b99]=_0x1fff0c['change'])),_0x8a2479[_0x5c4b99]&&_0x2b1327&&(_0x8a2479[_0x5c4b99]['end']=_0x4a5fb3,_0x9e8b75(_0x8a2479[_0x5c4b99]),_0x8a2479[_0x5c4b99]=null);}function _0x9e8b75({start:_0x3ed919,end:_0x264e31,tapeItem:_0x17ab19,userId:_0x3ecb83,type:_0x113b09}){const _0x43b8b4=_0x17ab19['item'],_0x71df5c=_0xd20d0b['schema']['isBlock'](_0x43b8b4)&&!_0xd20d0b['schema']['isLimit'](_0x43b8b4),_0x42120b=_0x3ed919['nodeAfter']==_0x264e31['parent']&&_0x264e31['isAtStart'];if(_0x71df5c&&_0x42120b)return;const _0x2e122d=_0xd20d0b['createRange'](_0x3ed919,_0x264e31),_0x323162=_0x2845b6['get'](_0x3ecb83),_0x4bee4a=new G({'author':_0x323162,'type':'isAdded'==_0x113b09||'isAddSuggestion'==_0x113b09?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x113b09||'isRemoveSuggestion'==_0x113b09},'createdAt':new Date(),'rootName':_0x11935c});_0x48c545['push'](_0x4bee4a),_0x21ca2b['markers']['set']('revision:'+_0x4bee4a['id'],_0x2e122d);}function _0x171d49(_0x3b9577,_0x4748a1){const _0x5cb1a6=_0x3b9577['getAttributes'](),_0x273a1d=_0x4748a1['getAttributes']();for(const _0x5731ef of _0x5cb1a6){if(_0x5731ef[0x1]!==_0x4748a1['getAttribute'](_0x5731ef[0x0]))return!0x1;_0x273a1d['next']();}return _0x273a1d['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2af933=>{const _0x42b875=_0x2af933['markerName']['split'](':')[0x1],_0x54ad7f=this['_getChangeFromId'](_0x42b875);if(!_0x54ad7f)return null;const _0x540c56='add'==_0x54ad7f['type']?'insertion':'deletion',_0x46e3af=['ck-suggestion-marker','ck-suggestion-marker-'+_0x540c56];return _0x54ad7f['data']['isSuggestion']&&_0x46e3af['push']('ck-suggestion-marker-'+_0x540c56+'-new'),this['activeChange']==_0x54ad7f&&_0x46e3af['push']('ck-suggestion-marker--active'),{'classes':_0x46e3af,'attributes':{'data-change-id':_0x42b875}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x46ac10=>{_0x46ac10['on']('element:pre',(_0x4fbc73,_0x1b6f33,_0x4a7b36)=>{const _0x4e44e0=_0x1b6f33['viewItem']['getChild'](0x0);if(!_0x4e44e0||!_0x4e44e0['is']('element','code'))return;if(!_0x4a7b36['consumable']['consume'](_0x4e44e0,{'attributes':['vid_start','vid_end']}))return;const _0x50678a=_0x1b6f33['modelRange']['start']['nodeAfter'];_0x4a7b36['writer']['setAttribute']('vid_start',_0x4e44e0['getAttribute']('vid_start'),_0x50678a),_0x4a7b36['writer']['setAttribute']('vid_end',_0x4e44e0['getAttribute']('vid_end'),_0x50678a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x41ff5b=>{_0x41ff5b['on']('element',(_0x1e40a9,_0x47d0e4,_0x119392)=>{if(!_0x119392['consumable']['consume'](_0x47d0e4['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x47d0e4['modelRange']['isCollapsed'])return;const _0x38f62b=_0x47d0e4['modelRange']['start']['nodeAfter'];_0x38f62b['hasAttribute']('vid_start')||_0x38f62b['hasAttribute']('vid')||(_0x119392['writer']['setAttribute']('vid_start',_0x47d0e4['viewItem']['getAttribute']('vid_start'),_0x38f62b),_0x119392['writer']['setAttribute']('vid_end',_0x47d0e4['viewItem']['getAttribute']('vid_end'),_0x38f62b));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x126de4=>_0x126de4['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2a56cb,[,_0x100797])=>{['vid_start','vid_end','vid']['includes'](_0x100797)&&(_0x2a56cb['return']=!0x0,_0x2a56cb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x10ce8e=>{_0x10ce8e['on']('attribute:vid',(_0x2fd259,_0x1de4e4,_0x5eba76)=>{if('\x20'!=_0x1de4e4['item']['data']||_0x1de4e4['item']['parent']['maxOffset']>0x1)return;if(!_0x5eba76['consumable']['consume'](_0x1de4e4['item'],_0x2fd259['name']))return;const _0x55ea14=_0x5eba76['writer'],_0x488c2f=_0x5eba76['mapper']['toViewRange'](_0x1de4e4['range']);_0x55ea14['wrap'](_0x488c2f,_0x55ea14['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35391e){const _0xc4dc79=_0x35391e['plugins']['get']('RevisionViewer');return(_0x25d742,_0x59f98c,_0x3c718b)=>{const _0x5afe0c=_0x59f98c['markerName']['split'](':')[0x1],_0x48e670=_0xc4dc79['_getChangeFromId'](_0x5afe0c);if(!_0x48e670)return null;const _0x3df566='add'==_0x48e670['type']?'split':'merge';if(!_0x3c718b['consumable']['test'](_0x59f98c['markerRange'],_0x25d742['name']))return;const _0x3b6ded=_0x59f98c['markerRange']['getWalker'](),_0x200874=_0x59f98c['markerRange']['start'],_0x302a57=_0x35391e['model']['schema'];let _0x1dd623=null,_0x3a497a=null,_0x5026db=!0x1,_0x5dfeff=!0x1;for(const _0x17c6a9 of _0x3b6ded){const _0x509af9=_0x17c6a9['item'];_0x5026db=_0x5026db||_0x302a57['isContent'](_0x509af9);const _0x5ac0ca=_0x3c718b['mapper']['toViewElement'](_0x509af9);if(_0x5ac0ca&&_0x5ac0ca['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17c6a9['type']&&(_0x302a57['isBlock'](_0x509af9)&&!_0x302a57['isLimit'](_0x509af9)&&(_0x509af9['nextSibling']||_0x200874['isAtEnd']?_0x1dd623&&_0x1dd623['parent']==_0x509af9||(_0x1dd623=_0x509af9,_0x3016ac(_0x17c6a9['previousPosition']),_0x5dfeff=!0x0):_0x3a497a=_0x3a497a||_0x17c6a9['previousPosition']));}function _0x3016ac(_0x53adf5){const _0x13a203=_0x3c718b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3df566}),_0x146d1d=_0x3c718b['mapper']['toViewPosition'](_0x53adf5);_0x48e670['data']['isSuggestion']&&_0x3c718b['writer']['addClass']('ck-suggestion-marker-'+_0x3df566+'-new',_0x13a203),_0xc4dc79['activeChange']==_0x48e670&&_0x3c718b['writer']['addClass']('ck-suggestion-marker--active',_0x13a203),_0x3c718b['writer']['insert'](_0x146d1d,_0x13a203),_0x3c718b['mapper']['bindElementToMarker'](_0x13a203,_0x59f98c['markerName']);}_0x5026db||_0x5dfeff||!_0x3a497a||_0x3016ac(_0x3a497a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3ab62f,_0x2aaf64,_0x5c2a0)=>{const _0x3fa350=_0x5c2a0['mapper']['markerNameToElements'](_0x2aaf64['markerName']);if(_0x3fa350){for(const _0x59d318 of _0x3fa350)(_0x59d318['hasClass']('ck-suggestion-marker-split')||_0x59d318['hasClass']('ck-suggestion-marker-merge'))&&(_0x5c2a0['mapper']['unbindElementFromMarkerName'](_0x59d318,_0x2aaf64['markerName']),_0x5c2a0['writer']['remove'](_0x59d318));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x23ce47,_0x3755c6,_0x5c078b)=>{const _0x19629d=_0x3755c6['markerName']['split'](':')[0x1],_0x21344c=this['_getChangeFromId'](_0x19629d);if(!_0x21344c)return null;const _0x5cb4ab='add'==_0x21344c['type']?'split':'merge';if(_0x5c078b['consumable']['test'](_0x3755c6['markerRange'],_0x23ce47['name']))for(const _0x2e54b7 of _0x3755c6['markerRange']['getItems']()){if(!_0x2e54b7['is']('element','softBreak'))continue;const _0x34825c=_0x5c078b['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5cb4ab}),_0x5c9b69=_0x5c078b['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x2e54b7));_0x21344c['data']['isSuggestion']&&_0x5c078b['writer']['addClass']('ck-suggestion-marker-'+_0x5cb4ab+'-new',_0x34825c),this['activeChange']==_0x21344c&&_0x5c078b['writer']['addClass']('ck-suggestion-marker--active',_0x34825c),_0x5c078b['writer']['insert'](_0x5c9b69,_0x34825c),_0x5c078b['mapper']['bindElementToMarker'](_0x34825c,_0x3755c6['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x8447bd=>{for(const _0x6c09a0 of this['editor']['model']['document']['getRootNames']()){const _0x3d3a33=this['editor']['model']['document']['getRoot'](_0x6c09a0),_0x46def6=this['editor']['editing']['view']['document']['getRoot'](_0x6c09a0);if(_0x46def6){const _0x3428f8=_0x3d3a33['getAttribute']('revisionHistoryAttachChange');if(_0x8447bd['removeAttribute']('data-change-id',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root-add',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root-remove',_0x46def6),_0x8447bd['removeClass']('ck-revision-history-root--active',_0x46def6),_0x3428f8){const _0x55d0ea=this['_getChangeFromId'](_0x3428f8);if(!_0x55d0ea)return null;_0x8447bd['setAttribute']('data-change-id',_0x3428f8,_0x46def6),_0x8447bd['addClass']('ck-revision-history-root-'+_0x55d0ea['type'],_0x46def6),this['activeChange']==_0x55d0ea&&_0x8447bd['addClass']('ck-revision-history-root--active',_0x46def6);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x79c20f=>'revision-comment:'+_0x79c20f,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1afec6=>'revision-suggestion:'+_0x1afec6,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x4ae412=>({'name':'suggestion:'+_0x4ae412,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x58adba=>{const _0x18fd41=_0x58adba['markerName']['split'](':')[0x1];return'insertion'!=_0x18fd41&&'deletion'!=_0x18fd41?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x18fd41]};}}),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',(_0xf9d56f,_0x31b8f9,_0x803614)=>{const _0x168c02=_0x803614['mapper']['markerNameToElements'](_0x31b8f9['markerName']);if(_0x168c02){for(const _0x3b2db6 of _0x168c02)_0x3b2db6['is']('uiElement')&&(_0x803614['mapper']['unbindElementFromMarkerName'](_0x3b2db6,_0x31b8f9['markerName']),_0x803614['writer']['remove'](_0x3b2db6));}},{'priority':'high'});}['_getChangeFromId'](_0x2918d8){return this['_changeIdToChange']['get'](_0x2918d8);}['_getViewForChange'](_0x3c5d7e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new z(this['editor']['locale'],_0x3c5d7e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x39e512,_0xfb19f8,_0x43dfa8,_0x48aae7)=>{_0x48aae7&&this['_balloon']['remove'](_0x48aae7),_0x43dfa8&&(this['_balloon']['add']({'view':_0x43dfa8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x45088d=this['editor']['editing'],_0x20400c=this['_getChangeFromId'](_0x43dfa8['changeId']);let _0x1c3612;if(_0x20400c['data']['isOnRoot']){const _0x37d0b9=_0x45088d['view']['getDomRoot'](_0x20400c['rootName']);_0x1c3612=Array['from'](_0x37d0b9['getClientRects']());}else{const _0x56dc4a=this['editor']['model']['markers']['get']('revision:'+_0x43dfa8['changeId']);_0x1c3612=Array['from'](_0x45088d['mapper']['markerNameToElements'](_0x56dc4a['name']))['map'](_0x19263e=>_0x45088d['view']['domConverter']['mapViewToDom'](_0x19263e))['map'](_0x3d25f6=>Array['from'](_0x3d25f6['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x1c3612[0x0];return _0x1c3612['find'](_0x3d8eb5=>_0x3d8eb5['top']-0x3<=this['_activeViewTarget']['y']&&_0x3d8eb5['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3d8eb5['left']-0x3<=this['_activeViewTarget']['x']&&_0x3d8eb5['right']+0x3>=this['_activeViewTarget']['x'])||_0x1c3612[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x4d9f35,_0x45ca22,_0x17ba6c,_0x48ba57)=>{this['activeView']=_0x17ba6c?this['_getViewForChange'](_0x17ba6c):null,this['editor']['model']['change'](()=>{const _0x4916ef=this['editor']['editing'];_0x48ba57&&(_0x48ba57['data']['isOnRoot']?_0x4916ef['view']['change'](_0x1e215f=>{_0x1e215f['removeClass']('ck-revision-history-root--active',_0x4916ef['view']['document']['getRoot'](_0x48ba57['rootName']));}):_0x4916ef['reconvertMarker']('revision:'+_0x48ba57['id'])),_0x17ba6c&&(_0x17ba6c['data']['isOnRoot']?_0x4916ef['view']['change'](_0x5b8b2e=>{_0x5b8b2e['addClass']('ck-revision-history-root--active',_0x4916ef['view']['document']['getRoot'](_0x17ba6c['rootName']));}):_0x4916ef['reconvertMarker']('revision:'+_0x17ba6c['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x426ed1,_0x144724)=>{if(this['activeChange'])return;const _0x2b3c9a=this['_findChangeIdFromDomTarget'](_0x144724['target']),_0x3cfce6=this['_changeIdToChange']['get'](_0x2b3c9a);_0x3cfce6?(this['_activeViewTarget']={'x':_0x144724['domEvent']['x'],'y':_0x144724['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x3cfce6)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x291795,_0xfe2176)=>{const _0x1ffb45=this['_findChangeIdFromDomTarget'](_0xfe2176['target']),_0x25c8f5=this['_changeIdToChange']['get'](_0x1ffb45);_0x25c8f5?(this['_activeViewTarget']={'x':_0xfe2176['domEvent']['x'],'y':_0xfe2176['domEvent']['y']},_0x25c8f5===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x25c8f5):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x10744f){do{const _0x125567=_0x10744f['getAttribute']('data-change-id');if(_0x125567)return _0x125567;_0x10744f=_0x10744f['parent'];}while(_0x10744f);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xd2a6ee=>{for(const _0x6e3095 of this['editor']['model']['markers'])_0xd2a6ee['removeMarker'](_0x6e3095);});}}function Q(_0x2ec7a2,_0x24d765){return(_0x4d542b,_0x4b68d0,_0x241450)=>{if(!_0x241450['consumable']['test'](_0x4b68d0['markerRange'],_0x4d542b['name']))return;const _0x55cd8d=_0x4b68d0['markerRange']['getWalker'](),_0x1d834c=_0x4b68d0['markerRange']['start'],_0x4f8c3d=_0x2ec7a2['model']['schema'];let _0x38a66b=null,_0x171073=null,_0x5ad4c0=!0x1,_0x33d661=!0x1;for(const _0x793771 of _0x55cd8d){const _0x1c3da8=_0x793771['item'];_0x5ad4c0=_0x5ad4c0||_0x4f8c3d['isContent'](_0x1c3da8);const _0x5c5906=_0x241450['mapper']['toViewElement'](_0x1c3da8);if(_0x5c5906&&_0x5c5906['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x793771['type']&&(_0x4f8c3d['isBlock'](_0x1c3da8)&&!_0x4f8c3d['isLimit'](_0x1c3da8)&&(_0x1c3da8['nextSibling']||_0x1d834c['isAtEnd']?_0x38a66b&&_0x38a66b['parent']==_0x1c3da8||(_0x38a66b=_0x1c3da8,_0x98a991(_0x793771['previousPosition']),_0x33d661=!0x0):_0x171073=_0x171073||_0x793771['previousPosition']));}function _0x98a991(_0x1a864d){const _0x3c0100=_0x241450['mapper']['toViewPosition'](_0x1a864d),_0x5e730d=_0x241450['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x24d765});_0x241450['writer']['insert'](_0x3c0100,_0x5e730d),_0x241450['mapper']['bindElementToMarker'](_0x5e730d,_0x4b68d0['markerName']);}_0x5ad4c0||_0x33d661||!_0x171073||_0x98a991(_0x171073);};}class nt extends _0x5998c4{constructor(_0x3f7260){super(_0x3f7260);const _0xbdb0de=_0x3f7260['plugins']['get'](u);this['affectsData']=!0x1,this['listenTo'](_0xbdb0de,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xbdb0de,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x276c46=this['editor'],_0xb85b2c=_0x276c46['plugins']['get'](u),_0x585799=_0xb85b2c['isReady']?_0xb85b2c['diff']['newRevisionId']:null;_0x276c46['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x585799);}['refresh'](){const {isReady:_0x3c7079,isEnabled:_0x1b7853,repository:_0xd10d40,diff:_0x2a77ff}=this['editor']['plugins']['get'](u),_0x49b4ca=_0x2a77ff&&_0xd10d40['getLaterVisibleRevision'](_0x2a77ff['newRevisionId']);this['isEnabled']=_0x3c7079&&_0x1b7853&&Boolean(_0x49b4ca);}}class rt extends _0x5998c4{['_step'];constructor(_0x25ceda,{direction:_0x5f07ea}){super(_0x25ceda);const _0x4438f6=_0x25ceda['plugins']['get'](u);this['affectsData']=!0x1,this['_step']='forward'===_0x5f07ea?0x1:-0x1,this['listenTo'](_0x4438f6,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4438f6,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x4438f6,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5add53=this['editor'],_0x58368e=_0x5add53['plugins']['get'](u),{isNavigationMode:_0xe0d132,currentChangeNumber:_0x392263}=_0x58368e;let _0xd566a0;if(_0x58368e['activeChange']=_0xe0d132?_0x58368e['diff']['changes']['get'](_0x392263+this['_step']):_0x58368e['diff']['changes']['first'],_0x58368e['activeChange']['data']['isOnRoot'])_0xd566a0=_0x5add53['editing']['view']['getDomRoot'](_0x58368e['activeChange']['rootName']);else{const _0xdfafe2=_0x5add53['model']['markers']['get']('revision:'+_0x58368e['activeChange']['id']);_0xd566a0=_0x637378(_0x5add53['editing'],_0xdfafe2);}_0x18268f({'target':_0xd566a0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2cf036,currentChangeNumber:_0x21379f,numberOfChanges:_0x23d3d7,isReady:_0x545713,isEnabled:_0x498d0e}=this['editor']['plugins']['get'](u);this['isEnabled']=!!(_0x498d0e&&_0x545713&&_0x23d3d7)&&(!_0x2cf036||(0x1===this['_step']?_0x21379f<_0x23d3d7-0x1:_0x21379f>0x0));}}class fi extends _0x484abd{constructor(_0x5bec56){super(_0x5bec56);const _0x596aa8=this['bindTemplate'],_0x38f9e4=new _0x14152c(_0x5bec56),_0x1288e9=new _0x14152c(_0x5bec56);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',(_0x9abb41,_0x5cd7d4)=>_0x9abb41&&_0x5cd7d4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3a0138,_0x22d03a,_0x3faa32,_0x47f98c)=>{if(!_0x3a0138)return m(_0x5bec56,'Loading...');if(!_0x3faa32)return m(_0x5bec56,'No\x20changes');const _0x3f3757=m(_0x5bec56,'NUMBER_OF_CHANGES',_0x3faa32);return _0x47f98c?m(_0x5bec56,'X_OF_Y_CHANGES',[_0x22d03a+0x1,_0x3faa32]):_0x3f3757;}),_0x38f9e4['set']({'label':m(_0x5bec56,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x5308cd}),_0x1288e9['set']({'label':m(_0x5bec56,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x5f0511}),_0x38f9e4['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1288e9['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x38f9e4['on']('execute',()=>this['fire']('execute','backward')),_0x1288e9['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',_0x596aa8['if']('_isStatusLabelVisible','ck-hidden',_0x429cea=>!_0x429cea)]},'children':[{'text':_0x596aa8['to']('isNavigationMode',_0x58b715=>_0x58b715?m(_0x5bec56,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x5bec56,'Total')+':\x20')}]},{'text':_0x596aa8['to']('_statusText')}]},new _0x3f7943(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x38f9e4,_0x1288e9]}]});}}const ge='ck-editor__editable__loading-overlay';class bi extends _0x59afc0{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x390dd0=this['editor']['editing']['view'];_0x390dd0['change'](_0x4f0da6=>{for(const _0x266efd of _0x390dd0['document']['roots'])_0x4f0da6['addClass'](ge,_0x266efd);});}['hide'](){const _0x5317e1=this['editor']['editing']['view'];_0x5317e1['change'](_0x22319b=>{for(const _0x73319b of _0x5317e1['document']['roots'])_0x22319b['removeClass'](ge,_0x73319b);});}}class v extends _0x59afc0{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,bi];}['init'](){const _0x559f02=this['editor'],_0xffc4b6=_0x559f02['plugins']['get'](u),_0x2030cb=_0x559f02['plugins']['get'](bi);_0x559f02['ui']['componentFactory']['add']('exitToEditing',_0xeb26c1=>{const _0x12782e=new _0x14152c(_0xeb26c1);return _0x12782e['set']({'label':m(_0xeb26c1,'Back\x20to\x20editing'),'icon':_0x4ed6d9,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x12782e,'execute',()=>{_0x559f02['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x12782e;}),_0x559f02['ui']['componentFactory']['add']('restoreRevision',_0x4b27a8=>{const _0x8e341e=new _0x14152c(_0x4b27a8);return _0x8e341e['set']({'label':m(_0x4b27a8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x8e341e['bind']('isEnabled')['to'](_0x559f02['commands']['get']('restoreRevision')),this['listenTo'](_0x8e341e,'execute',()=>_0x559f02['execute']('restoreRevision')),_0x8e341e;}),_0x559f02['ui']['componentFactory']['add']('changesNavigation',_0x824b93=>{const _0x4cfe81=new fi(_0x824b93),_0x18add0=_0x559f02['commands']['get']('showPreviousChange'),_0x49efaa=_0x559f02['commands']['get']('showNextChange');return _0x4cfe81['bind']('isBackwardNavigationEnabled')['to'](_0x18add0,'isEnabled'),_0x4cfe81['bind']('isForwardNavigationEnabled')['to'](_0x49efaa,'isEnabled'),_0x4cfe81['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0xffc4b6),this['listenTo'](_0x4cfe81,'execute',(_0x4c4ced,_0x4382aa)=>{_0x559f02['execute']('forward'===_0x4382aa?'showNextChange':'showPreviousChange');}),_0x4cfe81;}),_0x2030cb['show'](),_0xffc4b6['on']('change:isReady',(_0x2f5dc8,_0x102b1a,_0x3330e5)=>{_0x3330e5?_0x2030cb['hide']():_0x2030cb['show']();});}}class hi extends et{['_resizeObserver']=null;constructor(_0x496108,_0x507927){super(_0x496108,_0x507927);const _0x554489=this['bindTemplate'];this['set']({'label':m(_0x496108,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x496108,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x554489['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 _0x8f87dc=this['fieldView']['element'];this['_tooltipString']=_0x8f87dc['scrollWidth']>_0x8f87dc['clientWidth']&&_0x8f87dc['value']||'';}}class ni extends _0x484abd{constructor(_0x2d0302,_0x1d18de,_0x152559){super(_0x2d0302);const _0x5325ec=new _0x1ed09d();_0x5325ec['set']({'content':_0x2f44bd,'viewBox':'0\x200\x2011\x2010'});const _0x3cb405=['ck','ck-revision-history-sidebar__revision-author'];_0x152559&&_0x3cb405['push']('ck-revision-history-sidebar__revision-author_creator');const _0x420e16=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x2d0302,_0x152559?'Revision\x20creator':'Revision\x20author')},'children':[_0x5325ec,_0x1d18de['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3cb405},'children':_0x420e16});}}function ai(_0x24ca1d,_0x55c6a1){const _0x19657c=_0x24ca1d['bindTemplate'],_0x1ff376=_0x24ca1d['locale'],_0x216ee6=_0x1cb51d(_0x1ff376);_0x216ee6['panelPosition']='sw';const _0x4a1cbc=function(_0x1562dc,_0x58b497){const _0x5b317c=function(_0x36f4e3,_0x9b7bb5){const _0x3f871c=_0x36f4e3['locale'],_0x4ddcd5={'Compare\x20against\x20selected':m(_0x3f871c,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3f871c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3f871c,'Restore\x20this\x20revision')};return _0x9b7bb5['map'](_0x1c32e4=>{const _0x7d1d9f=_0x4ddcd5[_0x1c32e4['name']];return _0x7d1d9f&&_0x7d1d9f!==_0x1c32e4['name']&&(_0x1c32e4['name']=_0x7d1d9f),_0x1c32e4;});}(_0x1562dc,_0x58b497),_0x54ea14=new _0x51dee5();for(const _0x532855 of _0x5b317c){const _0xf0e0={'type':'button','model':new to({'label':_0x532855['name'],'class':_0x532855['class'],'withText':!0x0,'role':'menuitem','_action':_0x532855['action']})};_0xf0e0['model']['bind']('isEnabled')['to'](_0x1562dc,'isActionsDropdownOpen',_0x231e8e=>'function'!=typeof _0x532855['isEnabled']||(!_0x231e8e||_0x532855['isEnabled'](_0x1562dc))),_0x54ea14['add'](_0xf0e0);}return _0x54ea14;}(_0x24ca1d,_0x55c6a1);return _0x24ca1d['bind']('isActionsDropdownOpen')['to'](_0x216ee6,'isOpen'),_0x216ee6['buttonView']['set']({'label':m(_0x1ff376,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x516c19}),_0x216ee6['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x19657c['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x19657c['to'](_0xddf6d2=>_0xddf6d2['stopPropagation']())}}),_0x216ee6['on']('execute',_0x4cc6b3=>{_0x24ca1d['isReady']&&'function'==typeof _0x4cc6b3['source']['_action']&&_0x4cc6b3['source']['_action'](_0x24ca1d);}),_0x189f45(_0x216ee6,_0x4a1cbc,{'role':'menu'}),_0x216ee6['listenTo'](_0x24ca1d,'change:isActionsDropdownOpen',(_0x4b3d05,_0x35966f,_0x4fc83d)=>{if(_0x4fc83d)for(const _0x1a1571 of _0x216ee6['listView']['items']){const _0x2eaa7c=_0x1a1571['children']['first'],_0x3b82d0=_0x55c6a1['find'](_0x400fa0=>_0x400fa0['action']===_0x2eaa7c['_action'])['isVisible'];_0x1a1571['isVisible']=void 0x0===_0x3b82d0||_0x3b82d0(_0x24ca1d);}}),_0x216ee6;}class _i extends/* #__PURE__ -- @preserve */
27
+ _0x432988(_0x484abd){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x41b9b5,_0x1b7d58,_0x58975d,_0x37fb67){super(_0x41b9b5);const _0xe31df9=this['bindTemplate'],_0x305c92=function(_0x3678f9,_0x502b26){const _0x214781=Array['from'](_0x502b26['authors'])['filter'](_0xd320b2=>_0xd320b2!=_0x502b26['creator']);return _0x502b26['creator']&&_0x214781['unshift'](_0x502b26['creator']),_0x214781['map'](_0x1b2578=>new ni(_0x3678f9,_0x1b2578,_0x1b2578==_0x502b26['creator']));}(_0x41b9b5,_0x1b7d58);this['id']=_0x1b7d58['id'],this['_revision']=_0x1b7d58,this['_requireRevisionName']=_0x37fb67,this['bind']('name','createdAt')['to'](_0x1b7d58),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xcfa444=>{return _0x1f5114=_0x41b9b5['uiLanguage'],(_0x17d6f1=_0xcfa444)['toLocaleDateString'](_0x1f5114,{'month':'long','day':'numeric'})+',\x20'+_0x17d6f1['toLocaleTimeString'](_0x1f5114,{'hour':'numeric','minute':'numeric'});var _0x1f5114,_0x17d6f1;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new hi(_0x41b9b5,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x238518=>_0x238518||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0xa2b87a,_0x1df94c)=>_0xa2b87a&&_0x1df94c),this['revisionActionsView']=_0x58975d&&_0x58975d['length']?ai(this,_0x58975d):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xe31df9['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xe31df9['if']('isEnabled','ck-disabled',_0x34b9cf=>!_0x34b9cf),_0xe31df9['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xe31df9['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xe31df9['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':_0xe31df9['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':_0x305c92}]},this['revisionActionsView']],'on':{'click':_0xe31df9['to'](_0x539068=>{_0x539068['srcElement']['closest']('.ck-confirm-view')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x5560d7=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x5560d7,'change',()=>{this['_requireRevisionName']&&!_0x5560d7['value']||this['fire']('setName',{'id':this['id'],'name':_0x5560d7['value']}),_0x5560d7['value']||(_0x5560d7['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ki(_0x2481be,_0x1be861){const _0x6c81df=_0x2c8e9e['fromJSDate'](_0x2481be)['setLocale'](_0x1be861),_0x142a2a=_0x2c8e9e['local'](),_0x3c5213=_0x142a2a['minus']({'days':0x1})['startOf']('day');let _0x4af708,_0x82319f;return _0x6c81df['hasSame'](_0x142a2a,'day')?(_0x4af708=_0x6c81df['startOf']('day')['toJSDate'](),_0x82319f=_0x6c81df['toRelativeCalendar']()):_0x6c81df['hasSame'](_0x3c5213,'day')?(_0x4af708=_0x3c5213['toJSDate'](),_0x82319f=_0x6c81df['toRelativeCalendar']()):_0x6c81df['hasSame'](_0x142a2a,'week')?(_0x4af708=_0x6c81df['startOf']('week')['toJSDate'](),_0x82319f=_0x6c81df['weekdayLong']||''):_0x6c81df['hasSame'](_0x142a2a,'year')?(_0x4af708=_0x6c81df['startOf']('month')['toJSDate'](),_0x82319f=_0x6c81df['monthLong']||''):(_0x4af708=_0x6c81df['startOf']('year')['toJSDate'](),_0x82319f=String(_0x6c81df['year'])),{'startDate':_0x4af708,'localizedPeriodName':_0x82319f};}class ji extends _0x484abd{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5b1b37,_0x16c9b8,_0x262bf7,_0x401039){super(_0x5b1b37);const _0x1f6afa=ki(_0x16c9b8,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x16c9b8,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x262bf7,this['_requireRevisionName']=_0x401039,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':_0x1f6afa}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1915f4){const _0x1dede3=new _i(this['locale'],_0x1915f4,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1dede3);}['removeRevision'](_0x1f4030){const _0x224558=this['revisionViews']['find'](_0x261bc1=>_0x261bc1['id']===_0x1f4030['id']);this['revisionViews']['remove'](_0x224558);}}class Ni extends _0x484abd{constructor(_0x42de2d){super(_0x42de2d);const _0x1bb89c=new _0x1ed09d();_0x1bb89c['content']=_0x58c189,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1bb89c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x42de2d,'Revision\x20history')]}]});}}class Ri extends _0x484abd{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x18c826,_0x495118,_0x29d3e1,_0x185b70){super(_0x18c826);const _0x380ca7=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x495118,this['_revisionActions']=_0x29d3e1,this['_requireRevisionName']=_0x185b70,this['on']('select',(_0x2f0cd8,_0x30d995)=>{this['fire']('revisionSelected',_0x30d995);}),this['on']('setName',(_0x17ba29,_0x578f27)=>{this['fire']('revisionSetName',_0x578f27);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new Ni(_0x18c826),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x380ca7['if']('isEnabled','ck-disabled',_0xdb47e4=>!_0xdb47e4)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x2fa126 of this['_revisions'])this['_addRevision'](_0x2fa126);this['_revisions']['on']('add',(_0x5e2456,_0x6720b3)=>{this['_addRevision'](_0x6720b3);}),this['_revisions']['on']('remove',(_0x479caa,_0x3aa433)=>{this['_removeRevision'](_0x3aa433);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2f9c7a=>_0x2f9c7a['revisionViews']['map'](_0x58d757=>_0x58d757))['flat']();}['selectRevision'](_0x3a14ab){for(const _0x54849c of this['revisionViews'])_0x3a14ab&&_0x3a14ab['id']===_0x54849c['id']?_0x54849c['select']():_0x54849c['deselect']();}['highlightRevisions'](_0x10dea4){for(const _0x36dccc of this['revisionViews'])_0x10dea4['some'](({id:_0x11818})=>_0x11818===_0x36dccc['id'])?_0x36dccc['highlight']():_0x36dccc['unhighlight']();}['_addRevision'](_0x51a3b7){const _0x27c7a5=ki(_0x51a3b7['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x388eeb=this['timePeriodViews']['get'](0x0);_0x388eeb&&_0x388eeb['startDate']['getTime']()===_0x27c7a5['getTime']()||(_0x388eeb=new ji(this['locale'],_0x27c7a5,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x388eeb)),_0x388eeb['addRevision'](_0x51a3b7);}['_removeRevision'](_0x2ad08b){const _0x49ab76=ki(_0x2ad08b['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x49ab76)['removeRevision'](_0x2ad08b);}['_getTimePeriodViewByStartDate'](_0x59ab3e){return this['timePeriodViews']['find'](_0x26767d=>_0x26767d['startDate']['getTime']()===_0x59ab3e['getTime']());}}class d extends _0x59afc0{['_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[u];}constructor(_0xb60078){super(_0xb60078),this['_revisionViewer']=_0xb60078['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x13fd46=this['_revisionsRepository']['_revisions'],_0x57d470=this['_createRevisionActions'](),_0x139657=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x13fd46,_0x57d470,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',(_0x348318,_0x1e2761)=>{_0x1e2761['revisionViews']['on']('add',(_0x3c2f78,_0x43a6c5)=>{_0x43a6c5['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)),_0x139657['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x4a62d0=this['_revisionsRepository']['getRevision'](0x0);if(_0x4a62d0){const _0x388d86=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x4a62d0['id']);this['_revisionViewer']['compare'](_0x4a62d0,_0x388d86);}}['_handleRevisionSelected'](_0x3c4d09,_0x4d9918){const _0x2eb019=this['_revisionsRepository']['getRevision'](_0x4d9918['id']),_0x19d9c8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2eb019['id']);this['_revisionViewer']['compare'](_0x2eb019,_0x19d9c8);}['_handleRevisionSetName'](_0x16e416,_0x3c134f){this['_revisionsRepository']['getRevision'](_0x3c134f['id'])['setName'](_0x3c134f['name']);}['_handleDiffChange'](_0x42c5a0,_0x337b01,_0x582094){const _0x4086ff=this['_revisionsRepository']['getRevisionsInDiff'](_0x582094);_0x4086ff['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4086ff),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4086ff[0x0]));}['_createRevisionActions'](){const _0x5556ec=this['editor'],_0xed3227=d['availableRevisionActions'],_0x5ba298=_0x5556ec['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x5ba298['length'])return _0x5ba298['map'](_0x5a9011=>{const _0x37e176='string'==typeof _0x5a9011?Object['assign']({},_0xed3227[_0x5a9011]):_0x5a9011;return _0x37e176['action']=_0x37e176['action']['bind'](this,_0x5556ec),_0x37e176['isVisible']&&(_0x37e176['isVisible']=_0x37e176['isVisible']['bind'](this,_0x5556ec)),_0x37e176;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xe8fd6c},_0x443516)=>{const _0x3dc998=_0xe8fd6c['get'](u),_0x43a698=_0x3dc998['repository'];let _0x3d092e=_0x3dc998['diff']['newRevisionId'],_0x305dad=_0x443516['id'];_0x43a698['getIndex'](_0x3d092e)>_0x43a698['getIndex'](_0x305dad)&&([_0x3d092e,_0x305dad]=[_0x305dad,_0x3d092e]),_0x3dc998['compare'](_0x3d092e,_0x305dad);},'isVisible':({plugins:_0x451106},_0x19ba0b)=>{const _0x4da8f5=_0x451106['get'](u);return!(_0x4da8f5['repository']['getRevisionsInDiff'](_0x4da8f5['diff'])['length']>0x2)&&!_0x19ba0b['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x478ef4,{id:_0x4fee06})=>{_0x478ef4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4fee06);},'isVisible':({plugins:_0x568729},_0x34cd54)=>!!_0x568729['get'](u)['repository']['getLaterVisibleRevision'](_0x34cd54['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xb93727},{id:_0x4d2ca1,revisionNameView:_0x21573b})=>{const _0x5684f7=_0xb93727['get'](u),_0x245613=_0x5684f7['repository']['getEarlierVisibleRevision'](_0x4d2ca1);_0x5684f7['compare'](_0x4d2ca1,_0x245613),_0x21573b['focus'](),_0x21573b['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4d049b,_0x49525e){super(_0x4d049b),this['_view']=_0x49525e,this['_toolbarConfig']=st(_0x4d049b['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x3f6a86){const _0x511a21=this['editor'],_0x1d7746=this['view'],_0x2b32f7=_0x511a21['editing']['view'],_0x3581e8=_0x1d7746['editable'],_0x1d31f0=_0x2b32f7['document']['getRoot']();_0x3581e8['name']=_0x1d31f0['rootName'],_0x1d7746['render']();const _0x465d83=_0x3581e8['element'];this['setEditableElement'](_0x3581e8['name'],_0x465d83),_0x1d7746['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2b32f7['attachDomRoot'](_0x465d83),this['_elementReplacer']['replace'](_0x3f6a86,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1752d2=this['view'],_0x16b25c=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x16b25c['detachDomRoot'](_0x1752d2['editable']['name']),_0x1752d2['destroy']();}['_initToolbar'](){const _0xeafae2=this['view'];_0xeafae2['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0xeafae2['stickyPanel']['limiterElement']=_0xeafae2['element'],_0xeafae2['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x2a8e0d})=>_0x2a8e0d),_0xeafae2['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0xeafae2['toolbar']);}}class ii extends _0x55e167{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4187c3,_0x33ab9d,_0x28d691={}){super(_0x4187c3),this['stickyPanel']=new _0x768968(_0x4187c3),this['toolbar']=new _0x44ce47(_0x4187c3,{'shouldGroupWhenFull':_0x28d691['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x4187c3,_0x33ab9d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
30
- _0x1e9f0a(_0x3e40f0){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x18d565,_0x28adf3){super(_0x28adf3),this['sourceElement']=_0x18d565,this['model']['document']['createRoot']();const _0x12e27f=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x12e27f);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3b1948,_0x1e1b3a){const _0x507606=new this(_0x3b1948,_0x1e1b3a);return await _0x507606['initPlugins'](),await _0x507606['ui']['init'](_0x3b1948),await _0x507606['data']['init'](_0x507606['config']['get']('initialData')||''),_0x507606['fire']('ready'),_0x507606;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x437c77{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1d71d4){function _0x4eb7de(_0x1c31db){return _0x1c31db['map'](_0x524c68=>String['fromCharCode'](_0x524c68))['join']('');}super(_0x1d71d4),this['result']='end',_0x1d71d4[_0x4eb7de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4eb7de([0x76,0x69,0x65,0x77])][_0x4eb7de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4eb7de([0x61,0x75,0x74,0x6f]),_0x1d71d4[_0x4eb7de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4eb7de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4eb7de([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4eb7de([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4eb7de([0x6f,0x6b])});}}class ct extends _0x437c77{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x49bb37){if(super(_0x49bb37),!this['editor']['config']['get']('revisionHistory'))throw new _0x23ee96('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0xc2e3f=>this['_showRevisionViewer']({..._0xc2e3f,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x365e8b=>this['_closeRevisionViewer'](_0x365e8b)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x3bf194=>this['_restoreRevision'](_0x3bf194)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x116ba6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x116ba6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3be854){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3be854);}['getRevision'](_0x33a8db){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x33a8db);}['getRevisions'](_0x462d9b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x462d9b||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1e34bb=this['editor'],_0x178558=_0x254a4b(_0x1e34bb,p),_0x4a2de8=_0x1e34bb['plugins']['get']('RevisionTracker'),_0x45e785=_0x1e34bb['plugins']['get']('Users')['users'];return _0x178558['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x178558['lazyRoots'],(_0x178558['plugins']['push'](ht,u,v,class extends _0x437c77{static get['requires'](){return[u,'Users'];}['init'](){const _0x3c0ffa=this['editor']['plugins']['get']('Users');for(const _0x31a2af of _0x45e785)_0x31a2af['isAnonymous']||_0x3c0ffa['getUser'](_0x31a2af['id'])||_0x3c0ffa['addUser'](_0x31a2af);const _0xdbe6dd=_0x4a2de8['repository']['getRevisions']();let _0x57deba=null;const _0x4190df=this['editor']['plugins']['get']('RevisionViewer');_0x4190df['adapter']=_0x4a2de8['adapter'],_0x4190df['bind']('isEnabled')['to'](_0x4a2de8),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1e34bb,'isReadOnly',_0x21b153=>!_0x21b153);for(const _0x346ccc of _0xdbe6dd){const _0x308724=null===_0x346ccc['creator'];if(_0x308724&&_0x346ccc['toVersion']===_0x346ccc['fromVersion'])continue;const _0x14ad4b=_0x346ccc['toJSON']();_0x4190df['addRevisionData'](_0x14ad4b,(_0x410891,_0x3840cf,_0x22511c)=>{if(_0x308724){if(_0x57deba)_0x57deba['_update'](_0x410891,_0x3840cf);else{if(!_0x3840cf){const _0x1aa30d=_0x22511c['toJSON']();_0x1aa30d['id']=_0x544ff4(),_0x4a2de8['saveRevision'](_0x1aa30d,_0x22511c['toVersion'])['then'](_0xd18015=>{_0x57deba=_0xd18015;});}}}else _0x346ccc['_update'](_0x410891,_0x3840cf);});}}},d),_0x178558);}['_enhanceShowRevisionViewerCallback'](){const _0x1941fe=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5d120b=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x58df77=this['editor']['plugins']['get']('Autosave');await _0x58df77['save']();}else await _0x5d120b['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x16a4a2=this['editor']['plugins']['get']('Dialog');_0x16a4a2['isOpen']&&_0x16a4a2['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x495f2d=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x57a765 of _0x495f2d)_0x57a765['class']=_0x57a765['class']?_0x57a765['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x189405=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x189405&&_0x189405['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x66d7d0=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x66d7d0&&_0x66d7d0['setAttribute']('tabindex','-1');}}const _0x304830=this['_getRevisionViewerEditorConfig']();return _0x1941fe(_0x304830)['then'](_0x5f011a=>{return(this['_viewerEditor']=_0x5f011a,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'),_0x5f011a);})['catch'](_0x251f9f=>(console['error'](_0x251f9f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4d9a4f=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x3d6f89=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x55ba6c of _0x3d6f89)_0x55ba6c['class']='ck-tab-panel_disabled'===_0x55ba6c['class']?'':_0x55ba6c['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x88c8da=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x88c8da&&_0x88c8da['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x3bebd4=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x3bebd4&&_0x3bebd4['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4d9a4f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x12d68d=this['editor']['plugins']['get']('Annotations');_0x12d68d['refreshVisibility'](),_0x12d68d['refreshPositioning']();}});});}['_showRevisionViewer'](_0x53880a){const _0x3e7d4b=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1c4820=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x12e118=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x12e118,_0x53880a)['then'](_0x184db7=>(_0x1c4820['style']['display']='block',_0x3e7d4b['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x184db7));}['_closeRevisionViewer'](_0x3b5e3e){const _0x5041fb=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5041fb['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3b5e3e['destroy']();}async['_restoreRevision'](_0x3707d4){const _0x2f51bf=this['editor'],_0x3312b5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0xcaa060=_0x2f51bf['plugins']['get']('RevisionTracker'),_0x973a5f=_0x2f51bf['plugins']['get']('RevisionHistoryUtils'),_0x3ecc04=_0x3312b5['repository']['getRevision'](_0x3707d4);let _0x2aa4c0,_0x19b3f1,_0x473ebd;try{await _0x973a5f['loadRevisionData'](_0x3ecc04,this['adapter']),_0x2aa4c0=_0x973a5f['getRevisionDocumentData'](_0x3ecc04),_0x19b3f1=_0x973a5f['getRevisionRootsAttributes'](_0x3ecc04);}catch(_0x4b8ffe){return void console['error'](_0x4b8ffe);}_0x2f51bf['model']['change'](_0x422ad7=>{for(const _0x485cb3 of Array['from'](_0x2f51bf['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x422ad7['removeMarker'](_0x485cb3);}),_0x3312b5['isReady']=!0x1,_0x2f51bf['model']['enqueueChange'](_0x258905=>{_0x258905['setSelection'](null),_0x258905['removeSelectionAttribute'](_0x2f51bf['model']['document']['selection']['getAttributeKeys']());const _0x319238=Object['keys'](_0x2aa4c0);for(const _0xa55688 of _0x2f51bf['model']['document']['roots'])'$graveyard'!=_0xa55688['rootName']&&_0xa55688['isAttached']()&&!_0x319238['includes'](_0xa55688['rootName'])&&_0x258905['detachRoot'](_0xa55688);for(const _0x415fa5 of _0x319238){let _0x3acead=_0x2f51bf['model']['document']['getRoot'](_0x415fa5);_0x3acead&&_0x3acead['isAttached']()||(_0x3acead=_0x258905['addRoot'](_0x415fa5));const _0x4326c3=_0x19b3f1[_0x415fa5],_0x296453=Object['keys'](_0x4326c3),_0x61672b=_0x2aa4c0[_0x415fa5];for(const _0x4d412f of _0x3acead['getAttributeKeys']())_0x296453['includes'](_0x4d412f)||_0x258905['removeAttribute'](_0x4d412f,_0x3acead);for(const _0x1c24cd of _0x296453)_0x258905['setAttribute'](_0x1c24cd,_0x19b3f1[_0x415fa5][_0x1c24cd],_0x3acead);_0x258905['remove'](_0x258905['createRangeIn'](_0x3acead)),_0x258905['insert'](_0x2f51bf['data']['parse'](_0x61672b,_0x3acead),_0x3acead,0x0);}});const _0x51be27=m(_0x2f51bf['locale'],'Restored');if(_0x3ecc04['name'])_0x473ebd=-0x1==_0x3ecc04['name']['indexOf'](_0x51be27)?_0x51be27+':\x20'+_0x3ecc04['name']:_0x3ecc04['name'];else _0x473ebd=_0x51be27+':\x20'+(_0x3ecc04['createdAt']['toLocaleDateString'](_0x2f51bf['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3ecc04['createdAt']['toLocaleTimeString'](_0x2f51bf['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0xcaa060['saveRevision']({'name':_0x473ebd}),_0x3312b5['isReady']=!0x0,_0x2f51bf['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};
29
+ at();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}constructor(_0x373033){super(_0x373033),this['_revisionViewer']=_0x373033['plugins']['get'](u),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x249a0a=this['_revisionsRepository']['_revisions'],_0x3a871c=this['_createRevisionActions'](),_0x18b29e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new Ri(this['editor']['locale'],_0x249a0a,_0x3a871c,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',(_0x33b47d,_0xae9d6e)=>{_0xae9d6e['revisionViews']['on']('add',(_0x3d0f4f,_0xec811f)=>{_0xec811f['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)),_0x18b29e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x863179=this['_revisionsRepository']['getRevision'](0x0);if(_0x863179){const _0x5c5af9=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x863179['id']);this['_revisionViewer']['compare'](_0x863179,_0x5c5af9);}}['_handleRevisionSelected'](_0x21652d,_0xbf0b46){const _0x3748c6=this['_revisionsRepository']['getRevision'](_0xbf0b46['id']),_0x35bfdb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3748c6['id']);this['_revisionViewer']['compare'](_0x3748c6,_0x35bfdb);}['_handleRevisionSetName'](_0x4ae5ef,_0x485017){this['_revisionsRepository']['getRevision'](_0x485017['id'])['setName'](_0x485017['name']);}['_handleDiffChange'](_0x1de78a,_0x3e0259,_0x5debe7){const _0x78c8d4=this['_revisionsRepository']['getRevisionsInDiff'](_0x5debe7);_0x78c8d4['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x78c8d4),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x78c8d4[0x0]));}['_createRevisionActions'](){const _0x49bb5b=this['editor'],_0x3c52e4=d['availableRevisionActions'],_0xb1fb85=_0x49bb5b['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0xb1fb85['length'])return _0xb1fb85['map'](_0x42fd31=>{const _0x10967b='string'==typeof _0x42fd31?Object['assign']({},_0x3c52e4[_0x42fd31]):_0x42fd31;return _0x10967b['action']=_0x10967b['action']['bind'](this,_0x49bb5b),_0x10967b['isVisible']&&(_0x10967b['isVisible']=_0x10967b['isVisible']['bind'](this,_0x49bb5b)),_0x10967b;});}}function at(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x48a363},_0x3294b4)=>{const _0x5b41b6=_0x48a363['get'](u),_0x3e79a2=_0x5b41b6['repository'];let _0x9372=_0x5b41b6['diff']['newRevisionId'],_0x4c1dfb=_0x3294b4['id'];_0x3e79a2['getIndex'](_0x9372)>_0x3e79a2['getIndex'](_0x4c1dfb)&&([_0x9372,_0x4c1dfb]=[_0x4c1dfb,_0x9372]),_0x5b41b6['compare'](_0x9372,_0x4c1dfb);},'isVisible':({plugins:_0x5e5f85},_0x100b92)=>{const _0xf0c874=_0x5e5f85['get'](u);return!(_0xf0c874['repository']['getRevisionsInDiff'](_0xf0c874['diff'])['length']>0x2)&&!_0x100b92['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5064a5,{id:_0x36f2f5})=>{_0x5064a5['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x36f2f5);},'isVisible':({plugins:_0x347785},_0x3dcc25)=>!!_0x347785['get'](u)['repository']['getLaterVisibleRevision'](_0x3dcc25['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x14bdfb},{id:_0x35304e,revisionNameView:_0x5cecdd})=>{const _0x39196d=_0x14bdfb['get'](u),_0x1a93bd=_0x39196d['repository']['getEarlierVisibleRevision'](_0x35304e);_0x39196d['compare'](_0x35304e,_0x1a93bd),_0x5cecdd['focus'](),_0x5cecdd['fieldView']['select']();}}};}class Z extends tt{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3d6a78,_0x197d9a){super(_0x3d6a78),this['_view']=_0x197d9a,this['_toolbarConfig']=st(_0x3d6a78['config']['get']('toolbar')),this['_elementReplacer']=new it();}get['element'](){return this['view']['element'];}['init'](_0x1e9712){const _0x343066=this['editor'],_0x5b1803=this['view'],_0x1f54e8=_0x343066['editing']['view'],_0x406b4b=_0x5b1803['editable'],_0x4926eb=_0x1f54e8['document']['getRoot']();_0x406b4b['name']=_0x4926eb['rootName'],_0x5b1803['render']();const _0x341356=_0x406b4b['element'];this['setEditableElement'](_0x406b4b['name'],_0x341356),_0x5b1803['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1f54e8['attachDomRoot'](_0x341356),this['_elementReplacer']['replace'](_0x1e9712,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2d31d4=this['view'],_0x1aa0e2=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1aa0e2['detachDomRoot'](_0x2d31d4['editable']['name']),_0x2d31d4['destroy']();}['_initToolbar'](){const _0x1b490f=this['view'];_0x1b490f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1b490f['stickyPanel']['limiterElement']=_0x1b490f['element'],_0x1b490f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x4f4005})=>_0x4f4005),_0x1b490f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1b490f['toolbar']);}}class ii extends _0x153483{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x50c909,_0x3d1d11,_0x313f42={}){super(_0x50c909),this['stickyPanel']=new _0x27d56b(_0x50c909),this['toolbar']=new _0x345b5d(_0x50c909,{'shouldGroupWhenFull':_0x313f42['shouldToolbarGroupWhenFull']}),this['_editable']=new te(_0x50c909,_0x3d1d11);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class f extends/* #__PURE__ -- @preserve */
30
+ _0x22e1de(_0x54238d){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5849c4,_0x23e29f){super(_0x23e29f),this['sourceElement']=_0x5849c4,this['model']['document']['createRoot']();const _0x5ab809=new ii(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new Z(this,_0x5ab809);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x5518b8,_0x2678c0){const _0x339bc0=new this(_0x5518b8,_0x2678c0);return await _0x339bc0['initPlugins'](),await _0x339bc0['ui']['init'](_0x5518b8),await _0x339bc0['data']['init'](_0x339bc0['config']['get']('initialData')||''),_0x339bc0['fire']('ready'),_0x339bc0;}}const p=['RevisionHistoryUI','RestrictedEditingMode','AIChat','AIReviewMode','AIBalloon','AIQuickActions','AIActions'];class ht extends _0x59afc0{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xdad6d3){function _0x42e5af(_0x2a8cd4){return _0x2a8cd4['map'](_0x5c815d=>String['fromCharCode'](_0x5c815d))['join']('');}super(_0xdad6d3),this['result']='end',_0xdad6d3[_0x42e5af([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42e5af([0x76,0x69,0x65,0x77])][_0x42e5af([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42e5af([0x61,0x75,0x74,0x6f]),_0xdad6d3[_0x42e5af([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x42e5af([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42e5af([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x42e5af([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x42e5af([0x6f,0x6b])});}}class ct extends _0x59afc0{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[h,l];}constructor(_0x595296){if(super(_0x595296),!this['editor']['config']['get']('revisionHistory'))throw new _0x5bf644('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x14f852=>this['_showRevisionViewer']({..._0x14f852,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x100125=>this['_closeRevisionViewer'](_0x100125)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1ef81e=>this['_restoreRevision'](_0x1ef81e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4acbba){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4acbba;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x25d18a){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x25d18a);}['getRevision'](_0x28454f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x28454f);}['getRevisions'](_0x10d14c){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x10d14c||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0xc4e78=this['editor'],_0x346732=_0x8e5f46(_0xc4e78,p),_0x39f831=_0xc4e78['plugins']['get']('RevisionTracker'),_0x30c077=_0xc4e78['plugins']['get']('Users')['users'];return _0x346732['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x346732['lazyRoots'],(_0x346732['plugins']['push'](ht,u,v,class extends _0x59afc0{static get['requires'](){return[u,'Users'];}['init'](){const _0x2b5e28=this['editor']['plugins']['get']('Users');for(const _0x2746da of _0x30c077)_0x2746da['isAnonymous']||_0x2b5e28['getUser'](_0x2746da['id'])||_0x2b5e28['addUser'](_0x2746da);const _0x545143=_0x39f831['repository']['getRevisions']();let _0x5d4dac=null;const _0x302222=this['editor']['plugins']['get']('RevisionViewer');_0x302222['adapter']=_0x39f831['adapter'],_0x302222['bind']('isEnabled')['to'](_0x39f831),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0xc4e78,'isReadOnly',_0x4878d3=>!_0x4878d3);for(const _0x5eb6e0 of _0x545143){const _0x1cfa33=null===_0x5eb6e0['creator'];if(_0x1cfa33&&_0x5eb6e0['toVersion']===_0x5eb6e0['fromVersion'])continue;const _0x3992ef=_0x5eb6e0['toJSON']();_0x302222['addRevisionData'](_0x3992ef,(_0x119edc,_0x21de56,_0xf69f4c)=>{if(_0x1cfa33){if(_0x5d4dac)_0x5d4dac['_update'](_0x119edc,_0x21de56);else{if(!_0x21de56){const _0x335c4b=_0xf69f4c['toJSON']();_0x335c4b['id']=_0x221375(),_0x39f831['saveRevision'](_0x335c4b,_0xf69f4c['toVersion'])['then'](_0x410e9=>{_0x5d4dac=_0x410e9;});}}}else _0x5eb6e0['_update'](_0x119edc,_0x21de56);});}}},d),_0x346732);}['_enhanceShowRevisionViewerCallback'](){const _0x567834=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x15914a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4a4fb8=this['editor']['plugins']['get']('Autosave');await _0x4a4fb8['save']();}else await _0x15914a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x500966=this['editor']['plugins']['get']('Dialog');_0x500966['isOpen']&&_0x500966['hide']();}if(this['editor']['plugins']['has']('AITabs')){const _0x288734=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x5aa7f6 of _0x288734)_0x5aa7f6['class']=_0x5aa7f6['class']?_0x5aa7f6['class']+'\x20ck-tab-panel_disabled':'ck-tab-panel_disabled';if(this['editor']['plugins']['has']('AIChat')){const _0x4a5b35=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x4a5b35&&_0x4a5b35['setAttribute']('tabindex','-1');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x39e9a8=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x39e9a8&&_0x39e9a8['setAttribute']('tabindex','-1');}}const _0x487861=this['_getRevisionViewerEditorConfig']();return _0x567834(_0x487861)['then'](_0x30dc2c=>{return(this['_viewerEditor']=_0x30dc2c,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'),_0x30dc2c);})['catch'](_0x4724f2=>(console['error'](_0x4724f2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x531cfa=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>{if(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['editor']['plugins']['has']('AITabs')){const _0x101198=this['editor']['plugins']['get']('AITabs')['view']['panelViews'];for(const _0x420960 of _0x101198)_0x420960['class']='ck-tab-panel_disabled'===_0x420960['class']?'':_0x420960['class']['replace']('\x20ck-tab-panel_disabled','');if(this['editor']['plugins']['has']('AIChat')){const _0x52e196=document['querySelector']('.ck-ai-chat__prompt-input\x20.ck-textarea');_0x52e196&&_0x52e196['removeAttribute']('tabindex');}if(this['editor']['plugins']['has']('AIChatHistory')){const _0x352e37=document['querySelector']('.ck-ai-chat-history\x20.ck-input');_0x352e37&&_0x352e37['removeAttribute']('tabindex');}}return this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x531cfa(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x17fdb3=this['editor']['plugins']['get']('Annotations');_0x17fdb3['refreshVisibility'](),_0x17fdb3['refreshPositioning']();}});});}['_showRevisionViewer'](_0x163822){const _0x5241e5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x21b1d8=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2a527d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return f['create'](_0x2a527d,_0x163822)['then'](_0x40eb9b=>(_0x21b1d8['style']['display']='block',_0x5241e5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x40eb9b));}['_closeRevisionViewer'](_0x4c70e2){const _0x423096=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x423096['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x4c70e2['destroy']();}async['_restoreRevision'](_0xf130f6){const _0x2fd558=this['editor'],_0xe540fa=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x42967d=_0x2fd558['plugins']['get']('RevisionTracker'),_0x37ac17=_0x2fd558['plugins']['get']('RevisionHistoryUtils'),_0x15ff15=_0xe540fa['repository']['getRevision'](_0xf130f6);let _0x2f2f1a,_0x2481f7,_0x194874;try{await _0x37ac17['loadRevisionData'](_0x15ff15,this['adapter']),_0x2f2f1a=_0x37ac17['getRevisionDocumentData'](_0x15ff15),_0x2481f7=_0x37ac17['getRevisionRootsAttributes'](_0x15ff15);}catch(_0xf65f8d){return void console['error'](_0xf65f8d);}_0x2fd558['model']['change'](_0x3f7a0b=>{for(const _0xd686e8 of Array['from'](_0x2fd558['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x3f7a0b['removeMarker'](_0xd686e8);}),_0xe540fa['isReady']=!0x1,_0x2fd558['model']['enqueueChange'](_0x1cd9ec=>{_0x1cd9ec['setSelection'](null),_0x1cd9ec['removeSelectionAttribute'](_0x2fd558['model']['document']['selection']['getAttributeKeys']());const _0x3b0d09=Object['keys'](_0x2f2f1a);for(const _0x4a43b6 of _0x2fd558['model']['document']['roots'])'$graveyard'!=_0x4a43b6['rootName']&&_0x4a43b6['isAttached']()&&!_0x3b0d09['includes'](_0x4a43b6['rootName'])&&_0x1cd9ec['detachRoot'](_0x4a43b6);for(const _0x385bd5 of _0x3b0d09){let _0x24d93d=_0x2fd558['model']['document']['getRoot'](_0x385bd5);_0x24d93d&&_0x24d93d['isAttached']()||(_0x24d93d=_0x1cd9ec['addRoot'](_0x385bd5));const _0x5c71ac=_0x2481f7[_0x385bd5],_0x4c19a3=Object['keys'](_0x5c71ac),_0x24836e=_0x2f2f1a[_0x385bd5];for(const _0x2fbea5 of _0x24d93d['getAttributeKeys']())_0x4c19a3['includes'](_0x2fbea5)||_0x1cd9ec['removeAttribute'](_0x2fbea5,_0x24d93d);for(const _0x4af3a7 of _0x4c19a3)_0x1cd9ec['setAttribute'](_0x4af3a7,_0x2481f7[_0x385bd5][_0x4af3a7],_0x24d93d);_0x1cd9ec['remove'](_0x1cd9ec['createRangeIn'](_0x24d93d)),_0x1cd9ec['insert'](_0x2fd558['data']['parse'](_0x24836e,_0x24d93d),_0x24d93d,0x0);}});const _0x5ea02b=m(_0x2fd558['locale'],'Restored');if(_0x15ff15['name'])_0x194874=-0x1==_0x15ff15['name']['indexOf'](_0x5ea02b)?_0x5ea02b+':\x20'+_0x15ff15['name']:_0x15ff15['name'];else _0x194874=_0x5ea02b+':\x20'+(_0x15ff15['createdAt']['toLocaleDateString'](_0x2fd558['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x15ff15['createdAt']['toLocaleTimeString'](_0x2fd558['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x42967d['saveRevision']({'name':_0x194874}),_0xe540fa['isReady']=!0x0,_0x2fd558['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{nt as RestoreRevisionCommand,I as Revision,ct as RevisionHistory,l as RevisionHistoryUI,$ as RevisionHistoryUtils,h as RevisionTracker,u as RevisionViewer,f as RevisionViewerEditor,ht as RevisionViewerIntegration,bi as RevisionViewerLoadingOverlay,v as RevisionViewerUI,S as RevisionsRepository,d as RevisionsSidebar,rt as ShowChangeCommand};