@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250222.0 → 0.0.0-nightly-next-20250222.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/revision-history.js +1 -1
  3. package/ckeditor5-metadata.json +1 -1
  4. package/dist/index.js +6 -6
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.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 -11
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionsrepository.js +1 -1
  159. package/src/revisiontracker.js +1 -1
  160. package/src/revisionviewer.js +1 -1
  161. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  162. package/src/ui/revision/revisionauthorview.js +1 -1
  163. package/src/ui/revision/revisionnameview.js +1 -1
  164. package/src/ui/revision/revisionview.js +2 -2
  165. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  166. package/src/ui/revision/subrevisionview.js +1 -1
  167. package/src/ui/revision/utils.js +1 -1
  168. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  174. package/src/ui/revisionssidebar/utils.js +1 -1
  175. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  176. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  177. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  179. package/src/utils/common-translations.js +1 -1
  180. package/theme/icons/arrow-down.svg +0 -1
  181. package/theme/icons/arrow-up.svg +0 -1
  182. package/theme/icons/revision-history.svg +0 -1
  183. package/theme/icons/user.svg +0 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x38fbd7,uid as _0x3e6a21,Collection as _0x2f5228,logWarning as _0x254282,FocusTracker as _0x4d70f1,KeystrokeHandler as _0x274fd1,scrollViewportToShowTarget as _0x121837,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x3c4052}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x30e949,set as _0x47be66,unset as _0xac7d12,isEqual as _0x468159}from'lodash-es';import{Plugin as _0x56b833,PendingActions as _0x57d8f6,icons as _0x530a55,Command as _0x205cee,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x185edb,getMarkerDomElement as _0x5bc31a,ConfirmMixin as _0x1f4564,sanitizeEditorConfig as _0x3d69c0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x38502d,Element as ft,Range as vt,ViewUIElement as _0x53ba30,ViewRawElement as _0xd1e852,ViewEmptyElement as _0x127d40,ViewAttributeElement as _0x3f4771,ViewContainerElement as _0x1aeae3,Position as gt,ViewText as _0x3d3dae,ViewElement as _0x473b03,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x477074,injectCssTransitionDisabler as ts,submitHandler as _0x1eebec,LabeledFieldView as nt,createLabeledInputText as _0x21209c,createDropdown as _0x1f9b8d,ListView as te,ListItemView as _0x4ef16d,ButtonView as _0x3a8e36,MenuBarMenuView as _0x38087b,MenuBarMenuListView as _0x545de7,MenuBarMenuListItemView as _0x149278,MenuBarMenuListItemButtonView as _0x37e6a1,ContextualBalloon as _0x3031c7,ToolbarSeparatorView as _0x43a1be,IconView as _0x4abb36,addListToDropdown as _0x213961,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x36401b}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0x38fbd7(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x37f2ce){super(),this['id']=_0x37f2ce['id']||_0x3e6a21(),this['creator']=_0x37f2ce['creator']||null,this['authors']=_0x37f2ce['authors']||[],this['diffData']=_0x37f2ce['diffData']||null,this['toVersion']=_0x37f2ce['toVersion']||0x0,this['fromVersion']=_0x37f2ce['fromVersion']||0x0,this['set']('name',_0x37f2ce['name']||''),this['set']('createdAt',_0x37f2ce['createdAt']||new Date()),this['set']('attributes',_0x37f2ce['attributes']||{});}['setName'](_0x345420){this['_update']({'name':_0x345420});}['setAttribute'](_0x23fec8,_0x1498cb){const _0x23e828=_0x30e949(this['attributes']);_0x47be66(_0x23e828,_0x23fec8,_0x1498cb),this['_update']({'attributes':_0x23e828});}['removeAttribute'](_0x115490){const _0x469543=_0x30e949(this['attributes']);_0xac7d12(_0x469543,_0x115490),this['_update']({'attributes':_0x469543});}['_update'](_0x44a7e2,_0x299972=!0x1){let _0x25314c=!0x1;const _0x31dd19={'id':this['id']},_0x399327=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x27c339 of _0x399327){const _0x5e6b59=_0x44a7e2[_0x27c339];void 0x0!==_0x5e6b59&&_0x5e6b59!==this[_0x27c339]&&(this[_0x27c339]=_0x5e6b59,_0x31dd19[_0x27c339]=_0x5e6b59,_0x25314c=!0x0);}_0x25314c&&(_0x31dd19['authors']&&(_0x31dd19['authorsIds']=_0x31dd19['authors']['map'](_0x9de65e=>_0x9de65e['id']),delete _0x31dd19['authors']),this['fire']('_update',_0x31dd19,_0x299972));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0xfedcc0=>_0xfedcc0['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x56b833{['_revisions'];static get['requires'](){return[_0x185edb];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x338c42){super(_0x338c42),this['_revisions']=new _0x2f5228();}['afterInit'](){!async function(_0x4f6f20){const _0x45a08c=_0x2c43d2([0x6a,0x77,0x4d,0x4c,0x6b,0x53,0x4b,0x68,0x39,0x79,0x75,0x74,0x56,0x42,0x71,0x66,0x45,0x50,0x43,0x49,0x6c,0x76,0x5a,0x70,0x72,0x34,0x59,0x46,0x73,0x4f,0x30,0x44,0x58,0x61,0x6f,0x31,0x63,0x69,0x64,0x6d,0x41,0x51,0x57,0x4e,0x7a,0x67,0x37,0x4a,0x48,0x35,0x52,0x55,0x65,0x38,0x62,0x78,0x33,0x54,0x47,0x6e,0x36,0x32]),_0x340795=0xeb829,_0x4bf928=0x2ae395fd,_0xf5e584=0x2ae4f5c5^_0x4bf928,_0xcacf0d=window[_0x2c43d2([0x44,0x61,0x74,0x65])][_0x2c43d2([0x6e,0x6f,0x77])](),_0x4ea932=_0x4f6f20[_0x2c43d2([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4fed7b=new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5a5319=>{_0x4ea932[_0x2c43d2([0x6f,0x6e,0x63,0x65])](_0x2c43d2([0x72,0x65,0x61,0x64,0x79]),_0x5a5319);}),_0x241cdb={[_0x2c43d2([0x6b,0x74,0x79])]:_0x2c43d2([0x45,0x43]),[_0x2c43d2([0x75,0x73,0x65])]:_0x2c43d2([0x73,0x69,0x67]),[_0x2c43d2([0x63,0x72,0x76])]:_0x2c43d2([0x50,0x2d,0x32,0x35,0x36]),[_0x2c43d2([0x78])]:_0x2c43d2([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]),[_0x2c43d2([0x79])]:_0x2c43d2([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]),[_0x2c43d2([0x61,0x6c,0x67])]:_0x2c43d2([0x45,0x53,0x32,0x35,0x36])},_0x419d24=_0x4ea932[_0x2c43d2([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2c43d2([0x67,0x65,0x74])](_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x410e90(){let _0xcff65a,_0x4e2eb9=null,_0x50d6ce=null;try{if(_0x419d24==_0x2c43d2([0x47,0x50,0x4c]))return _0x2c43d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xcff65a=_0x27dd64(),!_0xcff65a)return _0x2c43d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xcff65a[_0x2c43d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x50d6ce=_0x430644(_0xcff65a[_0x2c43d2([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xcff65a[_0x2c43d2([0x6a,0x74,0x69])])),await _0x4875d1()?_0x59e0fb()?_0x2e97cb()?_0x2c43d2([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x39176e()?(_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c43d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4e2eb9=_0x55cb94(_0x2c43d2([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2c43d2([0x74,0x72,0x69,0x61,0x6c])&&(_0x4e2eb9=_0x55cb94(_0x2c43d2([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x50b0f2()):_0x2c43d2([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2c43d2([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2c43d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xb5e266){return _0x2c43d2([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2e97cb(){const _0x434926=[_0x2c43d2([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2c43d2([0x74,0x72,0x69,0x61,0x6c])][_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xcacf0d/0x3e8:0xe10*_0xf5e584;return _0xcff65a[_0x2c43d2([0x65,0x78,0x70])]<_0x434926;}function _0x59e0fb(){const _0xf9c8a6=_0xcff65a[_0x2c43d2([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0xf9c8a6)return!0x1;if(_0xf9c8a6[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x2a])))return!0x0;if(_0xf9c8a6[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x52,0x48])))return!0x0;if(_0xf9c8a6[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x52,0x52,0x48]))){if(_0x1e04bb())return!0x0;if(_0x54ebfb()||_0x1bc21a())return!0x0;}return!0x1;}function _0x39176e(){const _0x5bd44f=_0xcff65a[_0x2c43d2([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5bd44f||0x0==_0x5bd44f[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x12bc7b}=new URL(window[_0x2c43d2([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5bd44f[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x12bc7b))return!0x0;const _0x214482=_0x12bc7b[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e]));return _0x5bd44f[_0x2c43d2([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x21622f=>_0x21622f[_0x2c43d2([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c43d2([0x2a])))[_0x2c43d2([0x6d,0x61,0x70])](_0x16dcf7=>_0x16dcf7[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e])))[_0x2c43d2([0x73,0x6f,0x6d,0x65])](_0x2a3788=>_0x214482[_0x2c43d2([0x65,0x76,0x65,0x72,0x79])]((_0x39a794,_0x1ae860)=>_0x2a3788[_0x1ae860]===_0x39a794||_0x2a3788[_0x1ae860]===_0x2c43d2([0x2a])));}function _0x50b0f2(){return _0x4e2eb9&&_0x50d6ce?new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x493db6,_0x2b9ddb)=>{_0x4e2eb9[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x493db6,_0x2b9ddb),_0x50d6ce[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x3f152a=>{_0x3f152a!=_0x2c43d2([0x56,0x61,0x6c,0x69,0x64])&&_0x493db6(_0x3f152a);},_0x2b9ddb);}):_0x4e2eb9||_0x50d6ce||_0x2c43d2([0x56,0x61,0x6c,0x69,0x64]);}}function _0x430644(_0x43d601,_0x478215){return new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46ea80=>{if(_0x25fbfe())return _0x46ea80(_0x2c43d2([0x56,0x61,0x6c,0x69,0x64]));_0x4bc229(),_0x4ea932[_0x2c43d2([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2c43d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x18ccc7=!0x1;const _0x590488=_0x3e6a21();function _0x2f96bc(_0x57e1a7){return!!_0x57e1a7&&(typeof _0x57e1a7===_0x2c43d2([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57e1a7===_0x2c43d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57e1a7[_0x2c43d2([0x74,0x68,0x65,0x6e])]===_0x2c43d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57e1a7[_0x2c43d2([0x63,0x61,0x74,0x63,0x68])]===_0x2c43d2([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3666e2(_0x2af4a1){_0x3b509e(_0x2af4a1)[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0xa83f72=>{if(!_0xa83f72||_0xa83f72[_0x2c43d2([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2c43d2([0x6f,0x6b]))return _0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4b6259(_0x45e84c(_0x590488+_0x478215))!=_0xa83f72[_0x2c43d2([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2c43d2([0x56,0x61,0x6c,0x69,0x64]);})[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x2322e2=>(_0x28d86f(),_0x2322e2),()=>{const _0x272635=_0x1eff7d();return null==_0x272635?(_0x28d86f(),_0x2c43d2([0x56,0x61,0x6c,0x69,0x64])):_0x2c43d2(_0xcacf0d-_0x272635>(0xeef11fd^_0x4bf928)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x46ea80)[_0x2c43d2([0x63,0x61,0x74,0x63,0x68])](()=>{_0x46ea80(_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x13e501=0x2ad57b7d^_0x4bf928;function _0x28d86f(){const _0x508df8=_0x2c43d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b6259(_0x45e84c(_0x43d601)),_0x2212db=_0x1204f6(_0x4b6259(window[_0x2c43d2([0x4d,0x61,0x74,0x68])][_0x2c43d2([0x63,0x65,0x69,0x6c])](_0xcacf0d/_0x13e501)));window[_0x2c43d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c43d2([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x508df8,_0x2212db);}function _0x1eff7d(){const _0x18e992=_0x2c43d2([0x6c,0x6c,0x63,0x74,0x2d])+_0x4b6259(_0x45e84c(_0x43d601)),_0x2db672=window[_0x2c43d2([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2c43d2([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x18e992);return _0x2db672?window[_0x2c43d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1204f6(_0x2db672),0x10)*_0x13e501:null;}function _0x3b509e(_0x436642){return new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x22e094,_0x5cf841)=>{_0x436642[_0x2c43d2([0x74,0x68,0x65,0x6e])](_0x22e094,_0x5cf841),window[_0x2c43d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5cf841,0x2ae2413d^_0x4bf928);});}}_0x4ea932[_0x2c43d2([0x6f,0x6e])](_0x2c43d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31420d,_0x31b4d0)=>{if(_0x31b4d0[0x0]!=_0x43d601)return _0x46ea80(_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x31b4d0[0x1]={..._0x31b4d0[0x1],[_0x2c43d2([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x590488};},{[_0x2c43d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c43d2([0x68,0x69,0x67,0x68])}),_0x4ea932[_0x2c43d2([0x6f,0x6e])](_0x2c43d2([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5b6bc5=>{_0x2f96bc(_0x5b6bc5[_0x2c43d2([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x18ccc7=!0x0,_0x3666e2(_0x5b6bc5[_0x2c43d2([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2c43d2([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2c43d2([0x6c,0x6f,0x77])}),_0x4fed7b[_0x2c43d2([0x74,0x68,0x65,0x6e])](()=>{_0x18ccc7||_0x46ea80(_0x2c43d2([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25fbfe(){return _0x4ea932[_0x2c43d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c43d2([0x76,0x69,0x65,0x77])][_0x2c43d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2c43d2([0x61,0x75,0x74,0x6f]);}function _0x4bc229(){_0x4ea932[_0x2c43d2([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2c43d2([0x76,0x69,0x65,0x77])][_0x2c43d2([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2c43d2([0x61,0x75,0x74,0x6f]);}}function _0x55cb94(_0x1df4d9){const _0x5e9351=[new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfd5c97=>setTimeout(_0xfd5c97,0x2aeaab31^_0x4bf928)),_0x4fed7b[_0x2c43d2([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c3118=>{const _0x3936c4=0x2ae395fa^_0x4bf928,_0x20cb94=_0x4f6f20[_0x2c43d2([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x426931(){_0x20cb94[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3936c4&&_0x3c3118();}_0x426931(),_0x20cb94[_0x2c43d2([0x6f,0x6e])](_0x2c43d2([0x61,0x64,0x64]),_0x426931);})),new window[(_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x208995=>{function _0x5e776f(){for(const _0x10dd46 in window)if(window[_0x2c43d2([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x2c43d2([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x10dd46))&&window[_0x10dd46]==_0x340795)return _0x208995();_0x4ea932[_0x2c43d2([0x73,0x74,0x61,0x74,0x65])]!=_0x2c43d2([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x2c43d2([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5e776f,0x2ae38675^_0x4bf928);}_0x1add6f(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5e776f();})];return window[_0x2c43d2([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2c43d2([0x72,0x61,0x63,0x65])](_0x5e9351)[_0x2c43d2([0x74,0x68,0x65,0x6e])](()=>_0x1df4d9);}async function _0x235f36(){if(await _0x4fed7b,_0x1add6f(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x243e65=_0x4f6f20[_0x2c43d2([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0xb44349=_0x4f6f20[_0x2c43d2([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])](_0x243e65[_0x2c43d2([0x69,0x64])]),_0x2b781b=_0x2b4a80(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2b781b[_0x2c43d2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x243e65['id'],_0xb44349?_0xb44349['id']:null,!0x0),_0x2b781b[_0x2c43d2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2b781b[_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2b781b[_0x2c43d2([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x36b6d5,void(_0x2b781b[_0x2c43d2([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x36b6d5);}if(_0x1add6f(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x409dee=_0x2b4a80(_0x2c43d2([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x409dee[_0x2c43d2([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x409dee[_0x2c43d2([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x409dee[_0x2c43d2([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x36b6d5,_0x409dee[_0x2c43d2([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x36b6d5;}_0x4ea932[_0x2c43d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c43d2([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36b6d5,_0x4ea932[_0x2c43d2([0x6d,0x6f,0x64,0x65,0x6c])][_0x2c43d2([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36b6d5,_0x4ea932[_0x2c43d2([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2c43d2([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e04bb(){return _0x1add6f(_0x2c43d2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2b4a80(_0x2c43d2([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x2c43d2([0x73,0x74,0x61,0x74,0x65])]==_0x2c43d2([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x54ebfb(){return _0x1add6f(_0x2c43d2([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 _0x1bc21a(){return _0x1add6f(_0x2c43d2([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1ab22b(_0x3d46ab){const _0x3a26a1=_0x98bf8b();_0x4ea932[_0x3a26a1]=_0x2c43d2([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])+_0x3d46ab,_0x3d46ab[_0x2c43d2([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x2c43d2([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x98bf8b()]=_0x340795),_0x3d46ab!=_0x2c43d2([0x56,0x61,0x6c,0x69,0x64])&&_0x235f36();}function _0x98bf8b(){const _0x173105=window[_0x2c43d2([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2c43d2([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2c43d2([0x6e,0x6f,0x77])]())[_0x2c43d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2c43d2([0x2e]),'');let _0x196aed=_0x2c43d2([0x6a]);for(let _0x42afd7=0x0;_0x42afd7<_0x173105[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42afd7+=0x2){let _0x1623d0=window[_0x2c43d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x173105[_0x2c43d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42afd7,_0x42afd7+0x2));_0x1623d0>=_0x45a08c[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1623d0-=_0x45a08c[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x196aed+=_0x45a08c[_0x1623d0];}return _0x196aed;}function _0x27dd64(){const _0x46d2b4=_0x419d24[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e]));if(0x3!=_0x46d2b4[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3807aa(_0x46d2b4[0x1]);function _0x3807aa(_0x5b3b37){const _0x22c7e5=_0x36f16d(_0x5b3b37);return _0x22c7e5&&_0x3f06ec()?_0x22c7e5:null;function _0x3f06ec(){const _0x5812b4=_0x22c7e5[_0x2c43d2([0x6a,0x74,0x69])],_0x14c084=window[_0x2c43d2([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5812b4[_0x2c43d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5812b4[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x464fd4={..._0x22c7e5,[_0x2c43d2([0x6a,0x74,0x69])]:_0x5812b4[_0x2c43d2([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5812b4[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x464fd4[_0x2c43d2([0x76,0x63])],_0x45e84c(_0x464fd4)==_0x14c084;}}}async function _0x4875d1(){let _0x53b7ee=!0x0;try{const _0x46e8ec=_0x419d24[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])](_0x2c43d2([0x2e])),[_0x2a8c3c,_0x39b61c,_0x3f0dda]=_0x46e8ec;return _0x23a7f6(_0x2a8c3c),await _0x2400ca(_0x2a8c3c,_0x39b61c,_0x3f0dda),_0x53b7ee;}catch(_0x2b8f05){return!0x1;}function _0x23a7f6(_0x3f07e2){const _0x45c00e=_0x36f16d(_0x3f07e2);_0x45c00e&&_0x45c00e[_0x2c43d2([0x61,0x6c,0x67])]==_0x2c43d2([0x45,0x53,0x32,0x35,0x36])||(_0x53b7ee=!0x1);}async function _0x2400ca(_0x11f137,_0x3a625b,_0x29d9db){const _0x14c877=window[_0x2c43d2([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2c43d2([0x66,0x72,0x6f,0x6d])](_0x4039ce(_0x29d9db),_0x5850d8=>_0x5850d8[_0x2c43d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x18d65e=new window[(_0x2c43d2([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2c43d2([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x11f137+_0x2c43d2([0x2e])+_0x3a625b),_0x4083f6=window[_0x2c43d2([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2c43d2([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4083f6)return;const _0x2ce6e9=await _0x4083f6[_0x2c43d2([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2c43d2([0x6a,0x77,0x6b]),_0x241cdb,{[_0x2c43d2([0x6e,0x61,0x6d,0x65])]:_0x2c43d2([0x45,0x43,0x44,0x53,0x41]),[_0x2c43d2([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2c43d2([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2c43d2([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4083f6[_0x2c43d2([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2c43d2([0x6e,0x61,0x6d,0x65])]:_0x2c43d2([0x45,0x43,0x44,0x53,0x41]),[_0x2c43d2([0x68,0x61,0x73,0x68])]:{[_0x2c43d2([0x6e,0x61,0x6d,0x65])]:_0x2c43d2([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ce6e9,_0x14c877,_0x18d65e)||(_0x53b7ee=!0x1);}}function _0x36f16d(_0x3cee19){return _0x3cee19[_0x2c43d2([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2c43d2([0x65,0x79]))?JSON[_0x2c43d2([0x70,0x61,0x72,0x73,0x65])](_0x4039ce(_0x3cee19)):null;}function _0x4039ce(_0x419f07){return window[_0x2c43d2([0x61,0x74,0x6f,0x62])](_0x419f07[_0x2c43d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2c43d2([0x2b]))[_0x2c43d2([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2c43d2([0x2f])));}function _0x45e84c(_0x17bdc5){let _0x32b59c=0x1505;function _0x227b24(_0x1ff041){for(let _0x490bd1=0x0;_0x490bd1<_0x1ff041[_0x2c43d2([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x490bd1++){const _0x3bb876=_0x1ff041[_0x2c43d2([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x490bd1);_0x32b59c=(_0x32b59c<<0x5)+_0x32b59c+_0x3bb876,_0x32b59c&=_0x32b59c;}}function _0x1360a3(_0x110c51){Array[_0x2c43d2([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x110c51)?_0x110c51[_0x2c43d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1360a3):_0x110c51&&typeof _0x110c51==_0x2c43d2([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2c43d2([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x110c51)[_0x2c43d2([0x73,0x6f,0x72,0x74])]()[_0x2c43d2([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16e9e4,_0x2bec38])=>{_0x227b24(_0x16e9e4),_0x1360a3(_0x2bec38);}):_0x227b24(window[_0x2c43d2([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x110c51));}return _0x1360a3(_0x17bdc5),_0x32b59c>>>0x0;}function _0x4b6259(_0x24d24f){return _0x24d24f[_0x2c43d2([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2c43d2([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2c43d2([0x30]));}function _0x1204f6(_0x177a82){return _0x177a82[_0x2c43d2([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2c43d2([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2c43d2([0x6a,0x6f,0x69,0x6e])]('');}function _0x1add6f(_0xd55cda){return _0x4ea932[_0x2c43d2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c43d2([0x68,0x61,0x73])](_0xd55cda);}function _0x2b4a80(_0xfc35d2){return _0x4ea932[_0x2c43d2([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x2c43d2([0x67,0x65,0x74])](_0xfc35d2);}function _0x36b6d5(){}function _0x2c43d2(_0x13b53f){return _0x13b53f['map'](_0x34abb7=>String['fromCharCode'](_0x34abb7))['join']('');}_0x1ab22b(await _0x410e90());}(this);}['createRevision'](_0x5a515c){const _0x918b39=this['editor']['plugins']['get']('Users');return new a({'id':_0x5a515c['id'],'name':_0x5a515c['name'],'creator':_0x5a515c['creatorId']?_0x918b39['getUser'](_0x5a515c['creatorId']):null,'diffData':_0x5a515c['diffData']||_0x5a515c['data'],'authors':_0x5a515c['authorsIds']['map'](_0x5c386b=>_0x918b39['getUser'](_0x5c386b)),'createdAt':new Date(_0x5a515c['createdAt']),'attributes':_0x5a515c['attributes'],'fromVersion':_0x5a515c['fromVersion'],'toVersion':_0x5a515c['toVersion']});}['addRevision'](_0x432951,_0x590044=0x0){this['_revisions']['add'](_0x432951,_0x590044);}['getRevision'](_0x38150e){return this['_revisions']['get'](_0x38150e);}['getRevisions'](_0x1f0404={'toJSON':!0x1}){const _0x525008=Array['from'](this['_revisions']);return _0x525008['reverse'](),_0x1f0404['toJSON']?_0x525008['map'](_0xa94f32=>_0xa94f32['toJSON']()):_0x525008;}['getIndex'](_0x408aa9){return this['_revisions']['getIndex'](_0x408aa9);}['getEarlierVisibleRevision'](_0x4a58c0){const [,_0x1f8be0]=this['getRevisionsIterator'](_0x4a58c0,{'direction':'earlier'});return _0x1f8be0;}['getLaterVisibleRevision'](_0x42b1e6){const [,_0x176da5]=this['getRevisionsIterator'](_0x42b1e6,{'direction':'later'});return _0x176da5;}['getRevisionsInDiff'](_0x253b21){const _0xbf6ae4=[];for(const _0x33fa0a of this['getRevisionsIterator'](_0x253b21['newRevisionId']))if(_0xbf6ae4['push'](_0x33fa0a),_0x33fa0a['id']===_0x253b21['oldRevisionId'])break;return _0xbf6ae4;}*['getRevisionsIterator'](_0x5f1edd,{direction:_0x409756='earlier',filter:_0x3189b3=()=>!0x0}={}){const _0x6382bb='earlier'===_0x409756?0x1:-0x1;let _0x30f51c=this['_revisions']['get'](_0x5f1edd),_0x12b257=this['getIndex'](_0x30f51c);for(yield _0x30f51c;_0x30f51c;){if(_0x12b257+=_0x6382bb,_0x30f51c=this['getRevision'](_0x12b257),!_0x30f51c)return;_0x3189b3(_0x30f51c)&&(yield _0x30f51c);}}}function m(_0x357ec9,_0x235812,_0x2d97a2){const t=_0x357ec9['t'];switch(_0x235812){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'},_0x2d97a2);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2d97a2);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x1aeae3,'a':_0x3f4771,'e':_0x127d40,'r':_0xd1e852,'u':_0x53ba30};class l extends _0x56b833{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x185edb,j,_0x57d8f6];}constructor(_0x3c001c){super(_0x3c001c),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5acb9b=_0x3e6a21();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5acb9b},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5acbb6=this['repository']['getRevision'](0x0),_0xe1cb2b=_0x5acbb6&&null===_0x5acbb6['creator']?_0x5acbb6:null;if(this['_continueCurrentRevision']=!!_0xe1cb2b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x394281=this['_source']['getCurrentRevisionId'](),_0x365352=this['repository']['getRevision'](_0x394281);if(_0x365352)this['_startingVersion']=_0x365352['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x10f275=this['_source']['history']['_operations']['find'](_0xf622b5=>!_0xf622b5['_isInit']),_0x2cf3dc=_0x10f275?_0x10f275['baseVersion']:this['_source']['history']['version'];_0x5acbb6?(_0x5acbb6['toVersion']<_0x2cf3dc&&_0x5acbb6['_update']({'toVersion':_0x2cf3dc}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xe1cb2b['id'],this['_startingVersion']=_0xe1cb2b['fromVersion']):(this['_startingVersion']=_0x5acbb6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2cf3dc,this['_continueCurrentRevision']=!0x1);}}else _0xe1cb2b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xe1cb2b['toVersion'],this['editor']['model']['document']['history']['version']),_0xe1cb2b['fromVersion']===_0xe1cb2b['toVersion']?(0x0!==_0xe1cb2b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xe1cb2b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xe1cb2b['id'],this['_startingVersion']=_0xe1cb2b['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',_0x849324=>!_0x849324),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54b281=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x18160a;for(const _0x4356b4 in _0x54b281){const _0x5716f6=_0x4356b4,_0x59344c=_0x54b281[_0x5716f6];if('revisionHistoryLicenseKeyValid'==_0x59344c||'revisionHistoryLicenseKeyInvalid'==_0x59344c||'revisionHistoryLicenseKeyExpired'==_0x59344c||'revisionHistoryLicenseKeyDomainLimit'==_0x59344c||'revisionHistoryLicenseKeyNotAllowed'==_0x59344c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x59344c||'revisionHistoryLicenseKeyTrialLimit'==_0x59344c||'revisionHistoryLicenseKeyUsageLimit'==_0x59344c){delete _0x54b281[_0x5716f6],_0x18160a=_0x59344c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x18160a&&_0x54b281['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x18160a&&_0x54b281['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x18160a&&_0x54b281['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x18160a&&_0x54b281['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x18160a&&_0x54b281['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x18160a&&_0x54b281['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x18160a&&_0x54b281['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x40b532=this['repository']['getRevision'](0x0),_0x583350=await this['getRevisionDocumentData'](_0x40b532),_0xc802b2=await this['getRevisionRootsAttributes'](_0x40b532);this['_replaceEditorDataWithRevisionData'](_0x583350,_0xc802b2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x79aae8){this['_source']=_0x79aae8;}async['update'](){const _0x396bd2=await this['_source']['getLatestVersion']();if(_0x396bd2>this['currentRevision']['toVersion']){await this['_loadState']();const _0x9457e8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x396bd2});_0x9457e8['authors']=_0x9457e8['authorsIds']['map'](_0x50e7f2=>this['editor']['plugins']['get']('Users')['getUser'](_0x50e7f2)),this['currentRevision']['_update'](_0x9457e8);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x374dec={},_0x3def0f=null){const _0x20303f=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3def0f>this['currentRevision']['toVersion']&&(_0x3def0f=null),null===_0x3def0f&&(_0x3def0f=await this['_source']['getLatestVersion']());const _0x5377f7=this['_getFromVersion'](_0x3def0f),_0x1710e5=this['buildRevisionData']({'from':_0x5377f7,'to':_0x3def0f});if(this['currentRevision']['toVersion']<_0x3def0f){const _0x524a7e=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3def0f,'to':_0x3def0f});_0x524a7e['authors']=[],_0x524a7e['authorsIds']=[],_0x524a7e['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x524a7e,!0x0),delete _0x524a7e['authors'],_0x20303f['push'](_0x524a7e);}_0x374dec['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x374dec['name']=_0x374dec['name']||null,_0x374dec['id']=_0x374dec['id']||_0x3e6a21(),_0x374dec={..._0x374dec,..._0x1710e5};const _0x394def=this['addRevisionData'](_0x374dec);_0x20303f['push'](_0x374dec);const _0x515b85=this['repository']['getIndex'](_0x394def);if(0x0!==_0x515b85){const _0x270ad9=this['repository']['getRevision'](_0x515b85-0x1);if(_0x270ad9['fromVersion']!==_0x3def0f){const _0x111a2d=this['_revisionDataBuilder']['getData'](_0x3def0f,_0x270ad9['toVersion']),_0x57d3c8={'id':_0x270ad9['id'],'diffData':_0x111a2d['diffData'],'authorsIds':_0x111a2d['authorsIds'],'authors':_0x111a2d['authorsIds']['map'](_0x69427e=>this['editor']['plugins']['get']('Users')['getUser'](_0x69427e)),'fromVersion':_0x3def0f};_0x270ad9===this['currentRevision']&&(_0x57d3c8['createdAt']=new Date(_0x374dec['createdAt']['getTime']()+0xa)),_0x270ad9['_update'](_0x57d3c8,!0x0),delete _0x57d3c8['authors'],_0x20303f['push'](_0x57d3c8);}}if(this['adapter']){for(const _0x2ca395 of _0x20303f)this['_bufferUpdate'](_0x2ca395['id'],_0x2ca395,!0x0);this['sendBufferedUpdates']();}return _0x394def;}['addRevisionData'](_0x1471b2){const _0x4e99a3=this['repository']['createRevision'](_0x1471b2);return this['adapter']&&_0x4e99a3['on']('_update',(_0x20074c,_0x52784c,_0xcc54b0)=>{_0xcc54b0||(this['_bufferUpdate'](_0x52784c['id'],_0x52784c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4e99a3,this['_findInsertionIndex'](_0x4e99a3)),_0x4e99a3;}async['getRevisionDocumentData'](_0x1373f5){await this['_loadRevisionData'](_0x1373f5);const _0x2c5126={};for(const _0x4a7ea8 in _0x1373f5['diffData']){if(_0x1373f5['diffData'][_0x4a7ea8]['attachChange']&&!_0x1373f5['diffData'][_0x4a7ea8]['attachChange']['isAttached'])continue;const _0x5328b1=this['_removeRevisionMarkers'](JSON['parse'](_0x1373f5['diffData'][_0x4a7ea8]['insertions'])),_0x51f64d=this['editor']['editing']['view']['document'],_0x245771=new _0x38502d(_0x51f64d,_0x5328b1['map'](_0x278b00=>C(_0x278b00,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x2c5126[_0x4a7ea8]=this['editor']['data']['processor']['toData'](_0x245771),this['editor']['data']['processor']['useFillerType']('default');}return _0x2c5126;}async['getRevisionRootsAttributes'](_0x8f2649){await this['_loadRevisionData'](_0x8f2649);const _0xaab680={};for(const _0x56d616 in _0x8f2649['diffData'])_0x8f2649['diffData'][_0x56d616]['attachChange']&&!_0x8f2649['diffData'][_0x56d616]['attachChange']['isAttached']||(_0xaab680[_0x56d616]=_0x8f2649['diffData'][_0x56d616]['attributesAfter']||{});return _0xaab680;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x5deb83=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x247c70=0x0;_0x247c70<_0x5deb83['length'];_0x247c70++){const _0x15c732=_0x5deb83[_0x247c70];let _0x5f3818=!0x1;for(const _0x1499fd of Object['keys'](_0x15c732))void 0x0===_0x15c732[_0x1499fd]?delete _0x15c732[_0x1499fd]:'id'!==_0x1499fd&&(_0x5f3818=!0x0);_0x5f3818||(_0x5deb83[_0x247c70]=null);}if(_0x5deb83=_0x5deb83['filter'](_0x3415fd=>null!==_0x3415fd),!_0x5deb83['length'])return;for(let _0x275679=0x0;_0x275679<_0x5deb83['length'];_0x275679++){const _0x3cc71f=_0x5deb83[_0x275679];void 0x0!==_0x3cc71f['fromVersion']&&void 0x0===_0x3cc71f['toVersion']&&(_0x3cc71f['toVersion']=this['repository']['getRevision'](_0x3cc71f['id'])['toVersion']),void 0x0!==_0x3cc71f['toVersion']&&void 0x0===_0x3cc71f['fromVersion']&&(_0x3cc71f['fromVersion']=this['repository']['getRevision'](_0x3cc71f['id'])['fromVersion']);}const _0x2b35fa=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x5deb83,_0x2b35fa)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x220d30=>{if(_0x220d30){for(const _0x473744 of _0x220d30)this['setRevisionData']({'id':_0x473744['id'],'createdAt':_0x473744['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xdfd2fe,_0x598a9f){let _0x32afd1=this['editor']['config']['get']('initialData'),_0x26fdf5=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x32afd1){_0x32afd1={};for(const _0x355c11 of this['editor']['model']['document']['getRootNames']())_0x32afd1[_0x355c11]='';}if('string'==typeof _0x32afd1&&(_0x32afd1={'main':_0x32afd1}),void 0x0===_0x26fdf5){_0x26fdf5={};for(const _0x1348bf of this['editor']['model']['document']['getRootNames']())_0x26fdf5[_0x1348bf]={};}let _0x1a36cf=!0x1;const _0x380092=Object['keys'](_0x32afd1),_0x1bbcbc=Object['keys'](_0xdfd2fe);for(const _0x939c00 of _0x380092){if(_0x32afd1[_0x939c00]!==_0xdfd2fe[_0x939c00]&&''!==_0x32afd1[_0x939c00]['trim']()){_0x1a36cf=!0x0;break;}if(!_0x468159(_0x26fdf5[_0x939c00],_0x598a9f[_0x939c00])&&Object['keys'](_0x26fdf5[_0x939c00])['length']>0x0){_0x1a36cf=!0x0;break;}}_0x1a36cf||(_0x1a36cf=_0x1bbcbc['some'](_0x3ee9ed=>!this['editor']['model']['document']['getRoot'](_0x3ee9ed))),_0x1a36cf&&_0x254282('editor-initial-data-replaced-with-revision-data',{'editorData':_0x32afd1,'editorRootsAttributes':_0x26fdf5,'revisionData':_0xdfd2fe,'revisionRootsAttributes':_0x598a9f}),this['editor']['config']['set']('initialData',_0xdfd2fe),this['editor']['config']['set']('rootsAttributes',_0x598a9f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x82f872=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x82f872['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x508fc8){const _0x45f140=this['repository']['getRevisions']();_0x45f140['reverse']();let _0x20174e=0x0;for(;_0x20174e<_0x45f140['length'];){const _0x265b1d=_0x45f140[_0x20174e];if(_0x265b1d===this['currentRevision']){_0x20174e++;continue;}if(_0x265b1d['id']===this['_initialRevisionId'])break;const _0x414308=_0x508fc8['toVersion']-_0x265b1d['toVersion']||_0x508fc8['fromVersion']-_0x265b1d['fromVersion'];if(_0x414308>0x0)break;if(_0x414308<0x0)_0x20174e++;else{if(!_0x508fc8['creator']&&_0x265b1d['creator'])break;if(_0x265b1d['creator']||!_0x508fc8['creator']){if(_0x508fc8['createdAt']>_0x265b1d['createdAt'])break;_0x20174e++;}else _0x20174e++;}}return _0x20174e;}['setRevisionData'](_0x2dacde){const _0xa09e75=this['repository']['getRevision'](_0x2dacde['id']);if(_0x2dacde['createdAt']&&(_0x2dacde['createdAt']=new Date(_0x2dacde['createdAt'])),_0x2dacde['authorsIds']){const _0x37ed8d=this['editor']['plugins']['get']('Users');_0x2dacde['authors']=_0x2dacde['authorsIds']['map'](_0x25fb91=>_0x37ed8d['getUser'](_0x25fb91));}_0xa09e75['_update'](_0x2dacde,!0x0);}['buildRevisionData']({revision:_0x4320f0=null,from:_0xffd4fb=null,to:_0x2f7cad=null}){_0xffd4fb=null!==_0xffd4fb?_0xffd4fb:_0x4320f0['fromVersion'],_0x2f7cad=null!==_0x2f7cad?_0x2f7cad:_0x4320f0['toVersion'];const _0x3e491b=this['_revisionDataBuilder']['getData'](_0xffd4fb,_0x2f7cad),_0x31d5a3={'diffData':_0x3e491b['diffData'],'authorsIds':_0x3e491b['authorsIds'],'fromVersion':_0xffd4fb,'toVersion':_0x2f7cad};if(!_0x4320f0||_0x2f7cad!==_0x4320f0['toVersion']){const _0xe0e14=_0x2f7cad-0x1,_0x33eaf6=this['_source']['history']['getOperation'](_0xe0e14);_0x31d5a3['createdAt']=_0x33eaf6&&_0x33eaf6['createdAt']||new Date();}if(this['_loadedStateData']&&_0xffd4fb===this['_loadedStateData']['fromVersion']){for(const _0x134b15 of this['_loadedStateData']['authors'])_0x31d5a3['authorsIds']['includes'](_0x134b15['id'])||_0x31d5a3['authorsIds']['push'](_0x134b15['id']);}return _0x31d5a3;}['_loadRevisionData'](_0xe556cf){if(!_0xe556cf||_0xe556cf['diffData'])return Promise['resolve']();{const _0x2b8dec=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b8dec,'revisionId':_0xe556cf['id']})['then'](_0x29e8e1=>{_0xe556cf['diffData']=_0x29e8e1['diffData'];});}}['_bufferUpdate'](_0x15a4c0,_0x3e5177,_0x327fa2){if(this['_bufferedUpdates']['has'](_0x15a4c0)){const _0x19e65e=this['_bufferedUpdates']['get'](_0x15a4c0);_0x3e5177=_0x327fa2?{..._0x19e65e,..._0x3e5177}:{..._0x3e5177,..._0x19e65e};}this['_bufferedUpdates']['set'](_0x15a4c0,_0x3e5177);}['_getFromVersion'](_0x5544df){const _0xd46df7=this['repository']['getRevisions']();_0xd46df7['reverse'](),_0xd46df7['shift']();const _0x3769fa=_0xd46df7['find'](_0xb987f8=>_0xb987f8['toVersion']<=_0x5544df)['toVersion'];return _0x3769fa<this['_startingVersion']?this['_startingVersion']:_0x3769fa;}['_createInitialRevision'](_0x10bffe){const _0x1013b9=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1013b9)this['_initialRevisionId']=_0x1013b9['id'];else{const _0x101024=!this['editor']['model']['document']['roots']['find'](_0x28f0cc=>this['editor']['model']['hasContent'](_0x28f0cc)),_0x1ecc9b=this['editor']['plugins']['get']('Users')['me']['id'],_0x3cce19=m(this['editor']['locale'],_0x101024?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x10bffe,'to':_0x10bffe,'id':this['_initialRevisionId'],'name':_0x3cce19,'creatorId':_0x1ecc9b});}}['_createCurrentRevision'](_0x3d8311){const _0x595f81=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x595f81),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3d8311,'to':_0x3d8311,'id':_0x595f81,'name':'','creatorId':null}));}['_makeRevision']({name:_0x54dcd9,from:_0x56cf09,to:_0x53f686,creatorId:_0x3d861d,id:_0x39ce42}){const _0x167a34=this['buildRevisionData']({'from':_0x56cf09,'to':_0x53f686});_0x167a34['name']=_0x54dcd9,_0x167a34['creatorId']=_0x3d861d,_0x167a34['id']=_0x39ce42;const _0x44293f=this['addRevisionData'](_0x167a34);return this['adapter']&&this['_bufferUpdate'](_0x167a34['id'],_0x167a34,!0x0),_0x44293f;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x4445c2){return(_0x4445c2=_0x4445c2['filter'](_0x417276=>!_0x417276['name']||'revision-start'!==_0x417276['name']&&'revision-end'!==_0x417276['name']))['forEach'](_0xb1ae3e=>{'string'!=typeof _0xb1ae3e&&(_0xb1ae3e['children']=this['_removeRevisionMarkers'](_0xb1ae3e['children']),_0xb1ae3e['attributes']=_0xb1ae3e['attributes']['filter'](_0x29d294=>!_0x29d294[0x0]['startsWith']('data-revision-')));}),_0x4445c2;}}function C(_0x35d6d1,_0x4cd088){const _0x3dca74=_0x4cd088['editing']['view']['document'];if('string'==typeof _0x35d6d1)return new _0x3d3dae(_0x3dca74,_0x35d6d1);{const _0x121d64=_0x35d6d1['children']['map'](_0x140dfa=>C(_0x140dfa,_0x4cd088));return new(P[_0x35d6d1['type']]||_0x473b03)(_0x3dca74,_0x35d6d1['name'],_0x35d6d1['attributes'],_0x121d64);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x4fe2ff){this['editor']=_0x4fe2ff,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'](_0x2bfb2c){this['source']=_0x2bfb2c;const _0x36587b=new Map(),_0x561f12=new Map(),_0x4b36d4=this['editor']['model']['document']['roots']['map'](_0x254b19=>_0x254b19['rootName']);for(const _0x48e9b of _0x4b36d4){const _0x59adf3=this['editor']['model']['document']['getRoot'](_0x48e9b),_0x3cf875=T(_0x59adf3);_0x36587b['set'](_0x48e9b,_0x3cf875),_0x561f12['set'](_0x48e9b,Object['fromEntries'](_0x59adf3['getAttributes']()));}const _0x236124=Array['from'](this['editor']['model']['markers'])['map'](_0x39eac7=>[_0x39eac7['name'],_0x39eac7['getRange']()]),_0x5a385a=this['source']['version'];this['_saveMetaData'](_0x5a385a,_0x36587b,_0x236124,_0x561f12),this['_startingRevisionId']=this['_revisionId'];const _0x4b7c66=new Map(),_0x3f1680=new Map();for(const _0x3947a7 of _0x4b36d4){const _0x7771bd=F(_0x3947a7);_0x4b7c66['set'](_0x3947a7,_0x7771bd),_0x3f1680['set'](_0x3947a7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4b7c66,[],_0x3f1680);}['getData'](_0xa41ce3,_0x254446){if(this['_lastFrom']===_0xa41ce3&&this['_lastTo']<=_0x254446)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x254446,!0x0);else{if(!this['_savedMetaData']['has'](_0xa41ce3)){const _0x48f63c=this['_getPreviousFrom'](_0xa41ce3);this['_calculateMetaData'](_0x48f63c,_0xa41ce3,!0x1);}this['_calculateMetaData'](_0xa41ce3,_0x254446,!0x0);}return this['_lastFrom']=_0xa41ce3,this['_lastTo']=_0x254446,this['_getState']();}['loadState'](_0x1d28a7){this['_reset'](),this['_lastFrom']=_0x1d28a7['fromVersion'],this['_lastTo']=_0x1d28a7['toVersion'];for(const _0x56b1b9 in _0x1d28a7['diffData']){const _0x56808c=_0x1d28a7['diffData'][_0x56b1b9]['attachChange'],_0x4d6392=_0x30e949(_0x1d28a7['diffData'][_0x56b1b9]['attributesBefore'])||{},_0x5ae89b=this['_makeModelFromViewString'](_0x1d28a7['diffData'][_0x56b1b9]['deletions']);_0x5ae89b['rootName']=_0x56b1b9,_0x5ae89b['_isAttached']=!_0x56808c||!_0x56808c['isAttached'],_0x5ae89b['isAttached']=()=>_0x5ae89b['_isAttached'],this['_baseRoots']['set'](_0x56b1b9,_0x5ae89b),this['_baseRootsAttributes']['set'](_0x56b1b9,_0x4d6392),_0x56808c&&this['_touchedRoots']['set'](_0x56b1b9,_0x56808c);const _0x37048e=this['_makeIdsRoot'](_0x5ae89b);this['_baseIdsRoots']['set'](_0x56b1b9,_0x37048e);for(const [_0x468599,_0x2d16ec]of _0x5ae89b['markers']){if(!_0x468599['startsWith']('revision:'))continue;const _0x47bee8=_0x468599['split'](':')[0x2];for(const _0x15f701 of _0x2d16ec['getWalker']({'singleCharacters':!0x0})){const _0x109a68=this['_getVidAttributeName'](_0x15f701),_0x272af1='elementEnd'==_0x15f701['type']?_0x15f701['previousPosition']['path']['slice'](0x0,-0x1):_0x15f701['previousPosition']['path'],_0x576956=_0x37048e['getNodeByPath'](_0x272af1)['getAttribute'](_0x109a68);this['_touched']['set'](_0x576956,{'userId':_0x47bee8});}}}this['_startingRevisionId']=this['_revisionId'];const _0x904dcc=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xe3ea=>!this['_touched']['has'](_0xe3ea));let _0xc7a8=0x0;const _0xc050b=new Map();for(const _0x50a665 in _0x1d28a7['diffData']){const _0x7a8045=_0x1d28a7['diffData'][_0x50a665]['attachChange'],_0x425028=_0x30e949(_0x1d28a7['diffData'][_0x50a665]['attributesAfter'])||{},_0x5d00f7=this['_makeModelFromViewString'](_0x1d28a7['diffData'][_0x50a665]['insertions']);_0x5d00f7['rootName']=_0x50a665,_0x5d00f7['_isAttached']=!_0x7a8045||_0x7a8045['isAttached'],_0x5d00f7['isAttached']=()=>_0x5d00f7['_isAttached'],this['_diffRoots']['set'](_0x50a665,_0x5d00f7),this['_diffRootsAttributes']['set'](_0x50a665,_0x425028);const _0x2c45ce=this['_makeIdsRoot'](_0x5d00f7,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x50a665,_0x2c45ce),_0xc050b['set'](_0x50a665,_0x5d00f7['isAttached']()?_0x425028:{});for(const [_0x1d582f,_0x5e1a20]of _0x5d00f7['markers']){if(!_0x1d582f['startsWith']('revision:'))continue;const _0x168db2=_0x1d582f['split'](':')[0x2];for(const _0x5cfb39 of _0x5e1a20['getWalker']({'singleCharacters':!0x0})){const _0x1148a7=this['_getVidAttributeName'](_0x5cfb39),_0x35c99e=this['_revisionId']++,_0x58ec4b='elementEnd'==_0x5cfb39['type']?_0x5cfb39['previousPosition']['path']['slice'](0x0,-0x1):_0x5cfb39['previousPosition']['path'];_0x2c45ce['getNodeByPath'](_0x58ec4b)['_setAttribute'](_0x1148a7,_0x35c99e),this['_touched']['set'](_0x35c99e,{'userId':_0x168db2});}}for(const _0x592e1a of this['editor']['model']['createRangeIn'](_0x5d00f7)['getWalker']({'singleCharacters':!0x0})){const _0x16d846=this['_getVidAttributeName'](_0x592e1a),_0x45b995='elementEnd'==_0x592e1a['type']?_0x592e1a['previousPosition']['path']['slice'](0x0,-0x1):_0x592e1a['previousPosition']['path'],_0x52cda4=_0x2c45ce['getNodeByPath'](_0x45b995);_0x52cda4['getAttribute'](_0x16d846)>0x0||_0x52cda4['_setAttribute'](_0x16d846,_0x904dcc[_0xc7a8++]);}for(const [_0x509e6f,_0x572df6]of _0x5d00f7['markers'])_0x509e6f['startsWith']('revision:')||this['_markers']['set'](_0x509e6f,_0x572df6);}const _0x1ac3c9=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1ac3c9),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1ac3c9,0x1));const _0x177fa1=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x177fa1),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x177fa1,0x1));const _0x6f188e=Array['from'](this['_diffRoots'])['map'](([_0x27a6b1,_0x46ffa1])=>[_0x27a6b1,T(_0x46ffa1)]);this['_saveMetaData'](this['_lastTo'],_0x6f188e,this['_markers'],_0xc050b);}['_makeModelFromViewString'](_0x4d3f6c){const _0x10674d=JSON['parse'](_0x4d3f6c),_0x48d524=this['editor']['editing']['view']['document'],_0x147255=new _0x38502d(_0x48d524,_0x10674d['map'](_0x27f4d7=>C(_0x27f4d7,this['editor'])));return this['editor']['data']['toModel'](_0x147255);}['_saveMetaData'](_0x317347,_0x3f6ed0,_0x1a4be7,_0x2dca26){const _0xc04c44=new Map(_0x3f6ed0),_0x5093d1=new Map(_0x30e949(_0x2dca26)),_0x39d5f8=new Map();for(const [_0x54158f,_0x51ae77]of _0x1a4be7)_0x39d5f8['set'](_0x54158f,{'start':_0x51ae77['start']['clone'](),'end':_0x51ae77['end']['clone'](),'rootName':_0x51ae77['root']['rootName']});this['_savedMetaData']['set'](_0x317347,{'roots':_0xc04c44,'markers':_0x39d5f8,'rootsAttributes':_0x5093d1});}['_removeMetaData'](_0x54b902){this['_savedMetaData']['delete'](_0x54b902);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x442c98,_0x3f97aa=null){let _0x5bc747=null;_0x442c98['is']('documentFragment')||(_0x5bc747=new ft(_0x442c98['name'],{'vid_start':null===_0x3f97aa?this['_revisionId']++:_0x3f97aa++}));const _0x108057=[];for(const _0x140db0 of _0x442c98['getChildren']())if(_0x140db0['is']('element')){_0x108057['push'](this['_makeIdsRoot'](_0x140db0,_0x3f97aa));const _0x3eac33=_0x108057[_0x108057['length']-0x1];null!==_0x3f97aa&&(_0x3f97aa=_0x3eac33['is']('element','$text')?_0x3eac33['getAttribute']('vid')+0x1:_0x3eac33['getAttribute']('vid_end')+0x1);}else{for(let _0x15f0a5=0x0;_0x15f0a5<_0x140db0['offsetSize'];_0x15f0a5++)_0x108057['push'](new ft('$text',{'vid':null===_0x3f97aa?this['_revisionId']++:_0x3f97aa++}));}if(_0x442c98['is']('documentFragment')){const _0x1b9c49=F(_0x442c98['rootName']);return _0x1b9c49['_insertChild'](0x0,_0x108057),_0x1b9c49;}return _0x5bc747['_setAttribute']('vid_end',null===_0x3f97aa?this['_revisionId']++:_0x3f97aa++),_0x5bc747['_insertChild'](0x0,_0x108057),_0x5bc747;}['_calculateMetaData'](_0x1e323b,_0x5c25d3,_0x2466c5){this['_reset']();const {roots:_0x240cc7,markers:_0x17a588,rootsAttributes:_0xdd7e23}=this['_savedMetaData']['get'](_0x1e323b);this['_baseRoots']=new Map(_0x240cc7),this['_baseRootsAttributes']=new Map(_0x30e949(_0xdd7e23));for(const [_0x59f7c6,_0x16fa0f]of this['_baseRoots'])if('$graveyard'!==_0x59f7c6&&(this['_diffRoots']['set'](_0x59f7c6,T(_0x16fa0f)),this['_diffRootsAttributes']=new Map(_0x30e949(_0xdd7e23)),_0x2466c5)){const _0x5f3a26=this['_revisionId'];this['_idsRoots']['set'](_0x59f7c6,this['_makeIdsRoot'](_0x16fa0f)),this['_baseIdsRoots']['set'](_0x59f7c6,this['_makeIdsRoot'](_0x16fa0f,_0x5f3a26));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2466c5&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4dcf83,_0x31fb27]of _0x17a588){const _0x239d95=this['_baseRoots']['get'](_0x31fb27['rootName']),_0x2edbb5=this['_diffRoots']['get'](_0x31fb27['rootName']),_0x266025=new vt(this['_fixPosition'](_0x31fb27['start'],_0x239d95),this['_fixPosition'](_0x31fb27['end'],_0x239d95)),_0x338497=this['_fixRange'](_0x266025,_0x2edbb5);_0x239d95['markers']['set'](_0x4dcf83,_0x266025),this['_markers']['set'](_0x4dcf83,_0x338497);}this['_applyOperations'](_0x1e323b,_0x5c25d3,_0x2466c5);}['_applyOperations'](_0x483a7c,_0x3d4713,_0x38101b){for(const _0x1de7bd of this['source']['getOperations'](_0x483a7c,_0x3d4713))this['_handleOperation'](_0x1de7bd,_0x38101b);for(const _0x409a49 of this['_diffRoots']['values']())_0x409a49['markers']['clear']();for(const [_0x5c347c,_0x15a4fe]of this['_markers']){this['_diffRoots']['get'](_0x15a4fe['root']['rootName'])['markers']['set'](_0x5c347c,_0x15a4fe['clone']());}const _0x132af9=new Map(),_0x161a48=new Map();for(const [_0x240b4c,_0x1a6241]of this['_diffRoots'])_0x132af9['set'](_0x240b4c,T(_0x1a6241)),_0x161a48['set'](_0x240b4c,this['_diffRootsAttributes']['get'](_0x240b4c));this['_saveMetaData'](_0x3d4713,_0x132af9,this['_markers'],_0x161a48);}['_getPreviousFrom'](_0xbe2e0d){const _0x2f25cf=Array['from'](this['_savedMetaData']['keys']());_0x2f25cf['sort']((_0x301641,_0x43fc20)=>_0x301641-_0x43fc20),_0x2f25cf['reverse']();for(const _0x106d66 of _0x2f25cf)if(_0x106d66<_0xbe2e0d)return _0x106d66;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4057dc,_0x4e9813){const _0x2d8373=Array['from'](_0x4e9813['markers'])['map'](([_0xd2cd4,_0x16a2ed])=>[_0xd2cd4,this['_fixRange'](_0x16a2ed,_0x4057dc)]);_0x4057dc['markers']=new Map(_0x2d8373);}['_transformMarkers'](_0x2cf583){for(const _0x1606e4 of this['_markers']['values']()){const _0x4bbba5=_0x1606e4['getTransformedByOperation'](_0x2cf583),_0x53e7ea=vt['_createFromRanges'](_0x4bbba5);_0x1606e4['start']=_0x53e7ea['start'],_0x1606e4['end']=_0x53e7ea['end'];}}['_handleOperation'](_0x1ebf38,_0x5dfe40){if('addRoot'!=_0x1ebf38['type']&&'detachRoot'!=_0x1ebf38['type']){if('insert'==_0x1ebf38['type']){const _0x3421e2=_0x1ebf38['position']['root']['rootName'];this['_diffRoots']['has'](_0x3421e2)||(this['_diffRoots']['set'](_0x3421e2,F(_0x3421e2,!0x0)),this['_diffRootsAttributes']['set'](_0x3421e2,{}),_0x5dfe40&&this['_idsRoots']['set'](_0x3421e2,F(_0x3421e2,!0x0)));}else{if('addRootAttribute'==_0x1ebf38['type']||'removeRootAttribute'==_0x1ebf38['type']||'changeRootAttribute'==_0x1ebf38['type'])return void this['_handleRootAttributeOperation'](_0x1ebf38);'marker'==_0x1ebf38['type']&&this['_handleMarkerOperation'](_0x1ebf38);}if('marker'!==_0x1ebf38['type']){const _0x5e8269=this['_cloneOperation'](_0x1ebf38,this['_diffRoots']);_0x5e8269['_execute'](),this['_transformMarkers'](_0x5e8269);}if(_0x5dfe40)switch(_0x1ebf38['type']){case'insert':this['_handleInsertOperation'](_0x1ebf38);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1ebf38);break;case'merge':this['_handleMergeOperation'](_0x1ebf38);break;case'split':this['_handleSplitOperation'](_0x1ebf38);}}else this['_handleRootOperation'](_0x1ebf38,_0x5dfe40);}['_cloneOperation'](_0x409557,_0x38887a){const _0x166bd5=_0x409557['clone']();return _0x166bd5['_authorId']=_0x409557['_authorId'],this['_fixOperation'](_0x166bd5,_0x38887a),_0x166bd5;}['_getBaseVids'](_0x4b2775){return _0x4b2775['map'](_0x3da8eb=>{const _0x260592=this['_getVidAttributeName'](_0x3da8eb);return Number(_0x3da8eb['item']['getAttribute'](_0x260592));});}['_generateTape'](_0xddcf9e,_0x40c01b){if(_0xddcf9e['is']('element','$text'))_0x40c01b['push']({'item':_0xddcf9e,'type':'text'});else{_0xddcf9e['is']('element')&&_0x40c01b['push']({'item':_0xddcf9e,'type':'elementStart'});for(const _0x5c10bf of _0xddcf9e['getChildren']())this['_generateTape'](_0x5c10bf,_0x40c01b);_0xddcf9e['is']('element')&&_0x40c01b['push']({'item':_0xddcf9e,'type':'elementEnd'});}return _0x40c01b;}['_getState'](){const _0x4c53af=new Map(this['_touched']),_0x1831b0=new Map(_0x4c53af),_0x30bd0d=new Map(),_0x43354c={'insertions':{},'deletions':{}},_0x3ff027={'insertions':{},'deletions':{}},_0x5a53ac=new Map(),_0x548461=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x548461['delete']('$graveyard');for(const _0x44fe3f of _0x548461){const _0x4d43f4=this['_diffRoots']['get'](_0x44fe3f)||F(_0x44fe3f,!0x1),_0x1a4bbb=this['_baseRoots']['get'](_0x44fe3f)||F(_0x44fe3f,!0x1);_0x4d43f4['isAttached']()||_0x1a4bbb['isAttached']()?(_0x43354c['insertions'][_0x44fe3f]=T(_0x4d43f4),_0x43354c['deletions'][_0x44fe3f]=T(_0x1a4bbb),this['_copyMarkers'](_0x43354c['deletions'][_0x44fe3f],_0x1a4bbb),this['_copyMarkers'](_0x43354c['insertions'][_0x44fe3f],_0x4d43f4),_0x3ff027['insertions'][_0x44fe3f]=this['_generateTape'](this['_idsRoots']['get'](_0x44fe3f),[]),_0x3ff027['deletions'][_0x44fe3f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x44fe3f)||F(_0x44fe3f,!0x1),[])):_0x548461['delete'](_0x44fe3f);}for(const _0x8acb87 of _0x548461){const _0x47e227=_0x3ff027['insertions'][_0x8acb87];for(const _0x5ebdc6 of _0x47e227){const _0x491db6=this['_getVidAttributeName'](_0x5ebdc6),_0x1df5ca=_0x5ebdc6['item']['getAttribute'](_0x491db6);_0x1831b0['delete'](_0x1df5ca),_0x1df5ca>=this['_startingRevisionId']&&_0x30bd0d['set'](_0x1df5ca,_0x4c53af['get'](_0x1df5ca));}}for(const _0x5a58e2 of _0x548461){const _0x37f871=_0x3ff027['insertions'][_0x5a58e2],_0x42087d=this['_getBaseVids'](_0x3ff027['deletions'][_0x5a58e2]);let _0x9559b9=0x0;for(const _0x224858 of _0x37f871){const _0x1d0e42=this['_getVidAttributeName'](_0x224858),_0x46c079=_0x224858['item']['getAttribute'](_0x1d0e42);if(!_0x30bd0d['has'](_0x46c079)&&!_0x5a53ac['has'](_0x46c079)){if(_0x1831b0['has'](_0x46c079))_0x9559b9++;else{if(_0x46c079!=_0x42087d[_0x9559b9]){const _0x109f88=_0x4c53af['get'](_0x46c079)||_0x4c53af['get'](_0x42087d[_0x9559b9]);for(;_0x46c079!=_0x42087d[_0x9559b9];)_0x1831b0['has'](_0x42087d[_0x9559b9])||(_0x5a53ac['set'](_0x42087d[_0x9559b9],_0x109f88),_0x4c53af['set'](_0x42087d[_0x9559b9],_0x109f88)),_0x9559b9++;}_0x9559b9++;}}}}for(const _0x5f56fb of _0x548461){const _0x46fbf1=_0x3ff027['insertions'][_0x5f56fb];for(const _0x317f3d of _0x46fbf1){const _0x525db3=this['_getVidAttributeName'](_0x317f3d),_0x1c410f=_0x317f3d['item']['getAttribute'](_0x525db3);if(_0x5a53ac['has'](_0x1c410f)){const _0xdf294b=_0x5a53ac['get'](_0x1c410f);_0x1831b0['has'](_0x1c410f)||_0x1831b0['set'](_0x1c410f,{..._0xdf294b}),_0x30bd0d['set'](_0x1c410f,{..._0xdf294b});}}}for(const _0x3e1fef of _0x1831b0['keys']())_0x3e1fef>=this['_startingRevisionId']&&_0x1831b0['delete'](_0x3e1fef);const _0x4cb6f5=new Map();for(const _0x2eddf9 of _0x548461){let _0x4a9954=_0x3ff027['insertions'][_0x2eddf9];for(const _0x1017b3 of _0x4a9954)if(_0x1017b3['item']['is']('element','tableCell')){const _0x35e135=this['_getVidAttributeName'](_0x1017b3),_0x372753=_0x1017b3['item']['getAttribute'](_0x35e135);if(_0x30bd0d['has'](_0x372753)){const _0x33baf2=_0x1017b3['item']['parent']['parent']['getAttribute']('vid_start'),_0x23f9dd=_0x4cb6f5['get'](_0x33baf2)||new Set();_0x23f9dd['add'](_0x30bd0d['get'](_0x372753)['userId']),_0x4cb6f5['set'](_0x33baf2,_0x23f9dd);}}_0x4a9954=_0x3ff027['deletions'][_0x2eddf9];for(const _0x798863 of _0x4a9954)if(_0x798863['item']['is']('element','tableCell')){const _0x4514e0=this['_getVidAttributeName'](_0x798863),_0x35d65d=_0x798863['item']['getAttribute'](_0x4514e0);if(_0x1831b0['has'](_0x35d65d)){const _0x1bf1d5=_0x798863['item']['parent']['parent']['getAttribute']('vid_start'),_0x307414=_0x4cb6f5['get'](_0x1bf1d5)||new Set();_0x307414['add'](_0x1831b0['get'](_0x35d65d)['userId']),_0x4cb6f5['set'](_0x1bf1d5,_0x307414);}}for(const _0x4a7c20 of _0x4cb6f5['keys']())(_0x30bd0d['has'](_0x4a7c20)||_0x1831b0['has'](_0x4a7c20))&&_0x4cb6f5['delete'](_0x4a7c20);}for(const _0x101f71 of _0x548461){const _0x5d1fe7=_0x3ff027['insertions'][_0x101f71];let _0x7ecc43=null,_0x5d9408=null;for(const _0x271e3e of _0x5d1fe7){const _0x1214aa=this['_getVidAttributeName'](_0x271e3e),_0x53aca1=_0x271e3e['item']['getAttribute'](_0x1214aa),_0x401e1f=_0x4cb6f5['get'](_0x53aca1);_0x401e1f&&'elementStart'==_0x271e3e['type']&&(_0x7ecc43=Array['from'](_0x401e1f)[0x0],_0x5d9408=_0x271e3e['item']['getAttribute']('vid_end')),_0x7ecc43&&(_0x1831b0['set'](_0x53aca1,{'userId':_0x7ecc43}),_0x30bd0d['set'](_0x53aca1,{'userId':_0x7ecc43})),_0x53aca1==_0x5d9408&&(_0x7ecc43=null,_0x5d9408=null);}}const _0x3ad68c={},_0x453254=new Set();for(const _0x58ba8e of _0x548461){const _0x35be0d=_0x43354c['deletions'][_0x58ba8e],_0x5e3115=_0x43354c['insertions'][_0x58ba8e];for(const {userId:_0x1c2f3e}of this['_touchedMarkers']['values']())null!==_0x1c2f3e&&_0x453254['add'](_0x1c2f3e);for(const {userId:_0x5edb2b}of this['_touchedRoots']['values']())null!==_0x5edb2b&&_0x453254['add'](_0x5edb2b);this['_markChanges'](_0x5e3115,_0x3ff027['insertions'][_0x58ba8e],_0x30bd0d,'insertion',_0x453254),this['_markChanges'](_0x35be0d,_0x3ff027['deletions'][_0x58ba8e],_0x1831b0,'deletion',_0x453254),_0x3ad68c[_0x58ba8e]={'insertions':this['_prepareViewToSave'](_0x5e3115),'deletions':this['_prepareViewToSave'](_0x35be0d),'attachChange':this['_touchedRoots']['get'](_0x58ba8e)||null,'attributesBefore':_0x30e949(this['_baseRootsAttributes']['get'](_0x58ba8e))||{},'attributesAfter':_0x30e949(this['_diffRootsAttributes']['get'](_0x58ba8e))};}return{'diffData':_0x3ad68c,'authorsIds':Array['from'](_0x453254)};}['_processRootBeforeSave'](_0x363279){for(const [,_0x1e9983]of _0x363279['markers']){const _0x44d49d=_0x1e9983['start']['getAncestors']()['filter'](_0x296a50=>'tableCell'==_0x296a50['name']);for(const _0x363020 of _0x44d49d)0x1==_0x363020['childCount']&&_0x363020['getChild'](0x0)['is']('element','paragraph')&&_0x363020['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x68f435){this['_processRootBeforeSave'](_0x68f435);const _0x27d82f=this['editor']['data']['toView'](_0x68f435,{}),_0x16996b=Array['from'](_0x27d82f['getChildren']())['map'](_0x5c59e1=>this['_getViewJson'](_0x5c59e1));return JSON['stringify'](_0x16996b);}['_getViewJson'](_0xc0065d){if(_0xc0065d['is']('$text'))return _0xc0065d['data'];{const _0x36d50e=_0xc0065d;return{'type':Object['keys'](P)['find'](_0x389482=>_0xc0065d instanceof P[_0x389482]),'name':_0x36d50e['name'],'attributes':Array['from'](_0x36d50e['getAttributes']()),'children':Array['from'](_0x36d50e['getChildren']())['map'](_0x504f28=>this['_getViewJson'](_0x504f28))};}}['_markChanges'](_0x2f1f9f,_0x49151a,_0x2aca78,_0x2d42e5,_0x538426){let _0x191b96=null,_0x27f4fc=null,_0x28de68=0x0;const _0x1bc120=this['editor']['model'];for(let _0x19ebdd=0x0;_0x19ebdd<_0x49151a['length'];_0x19ebdd++){const _0x188490=this['_getVidAttributeName'](_0x49151a[_0x19ebdd]),_0xa798c7=_0x49151a[_0x19ebdd]['item']['getAttribute'](_0x188490),_0x2deae3=_0x2aca78['get'](_0xa798c7),_0x3ae670=_0x19ebdd==_0x49151a['length']-0x1;(!_0x191b96&&_0x2deae3&&(_0x191b96=_0x2deae3,_0x27f4fc=_0x49151a[_0x19ebdd]),_0x191b96&&(!_0x2deae3||_0x2deae3['userId']!=_0x191b96['userId']))&&(_0x1c0876(_0x2deae3,B(_0x27f4fc,_0x2f1f9f,_0x1bc120),B(_0x49151a[_0x19ebdd],_0x2f1f9f,_0x1bc120)),_0x191b96=_0x2deae3||null,_0x27f4fc=_0x2deae3?_0x49151a[_0x19ebdd]:null),_0x191b96&&_0x3ae670&&_0x1c0876(_0x2deae3,B(_0x27f4fc,_0x2f1f9f,_0x1bc120),J(_0x49151a[_0x19ebdd],_0x2f1f9f,_0x1bc120));}function _0x1c0876(_0x582342,_0x558cd4,_0x987a39){const _0xa127c4=_0x191b96['userId'],_0x108467='revision:'+_0x2d42e5+':'+_0xa127c4+':'+_0x28de68++,_0x3472ad=_0x1bc120['createRange'](_0x558cd4,_0x987a39);_0x2f1f9f['markers']['set'](_0x108467,_0x3472ad),null!==_0xa127c4&&_0x538426['add'](_0xa127c4);}}['_getVidAttributeName'](_0x4c0b76){switch(_0x4c0b76['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x6a4157,_0x56c729){_0x6a4157['baseVersion']=null;for(const _0x64d267 in _0x6a4157){const _0x31777b=_0x6a4157[_0x64d267];if(_0x31777b instanceof gt){const _0x464f5a=_0x56c729['get'](_0x31777b['root']['rootName']);_0x6a4157[_0x64d267]=this['_fixPosition'](_0x31777b,_0x464f5a);}if(_0x31777b instanceof vt){const _0x4cbd02=_0x56c729['get'](_0x31777b['root']['rootName']);_0x6a4157[_0x64d267]=this['_fixRange'](_0x31777b,_0x4cbd02);}'root'===_0x64d267&&(_0x6a4157['root']=_0x56c729['get'](_0x6a4157['root']['rootName']));}}['_fixRange'](_0x44edce,_0x3ab27e){return this['editor']['model']['createRange'](this['_fixPosition'](_0x44edce['start'],_0x3ab27e),this['_fixPosition'](_0x44edce['end'],_0x3ab27e));}['_fixPosition'](_0x267e70,_0x54a69f){return this['editor']['model']['createPositionFromPath'](_0x54a69f,_0x267e70['path'],_0x267e70['stickiness']);}['_handleInsertOperation'](_0x558a93){const _0xa631e2=this['_idsRoots']['get'](_0x558a93['position']['root']['rootName']),_0x2f286a=this['_fixPosition'](_0x558a93['position'],_0xa631e2),_0xde7b0=null===_0x558a93['_authorId']?null:_0x558a93['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xd5e859=_0x2f286a['parent'],_0x2c134f=this['_revisionId'],_0x34e263=[];for(const _0x15e1fc of _0x558a93['nodes'])if(_0x15e1fc['is']('element'))_0x34e263['push'](this['_makeIdsRoot'](_0x15e1fc));else{for(let _0x588e20=0x0;_0x588e20<_0x15e1fc['offsetSize'];_0x588e20++)_0x34e263['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x5d747d=this['_revisionId'];for(let _0x22eb9e=_0x2c134f;_0x22eb9e<_0x5d747d;_0x22eb9e++)this['_touched']['set'](_0x22eb9e,{'userId':_0xde7b0});_0xd5e859['_insertChild'](_0x2f286a['offset'],_0x34e263);}['_handleMoveOperation'](_0x5076f0){(_0x5076f0=this['_cloneOperation'](_0x5076f0,this['_idsRoots']))['_execute']();const _0x6acfdb=null===_0x5076f0['_authorId']?null:_0x5076f0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x6bcbb1=_0x5076f0['getMovedRangeStart'](),_0x11e411=_0x6bcbb1['parent'],_0x481bb7=_0x6bcbb1['offset'];!function _0x4feea0(_0x375f12,_0x1c5ac9,_0x3d8b71,_0x856d6c){for(let _0x12d5a6=_0x3d8b71;_0x12d5a6<_0x856d6c;_0x12d5a6++){const _0x524a73=_0x1c5ac9['getChild'](_0x12d5a6);_0x524a73['is']('element','$text')?_0x375f12['set'](_0x524a73['getAttribute']('vid'),{'userId':_0x6acfdb}):(_0x375f12['set'](_0x524a73['getAttribute']('vid_start'),{'userId':_0x6acfdb}),_0x4feea0(_0x375f12,_0x524a73,0x0,_0x524a73['childCount']),_0x375f12['set'](_0x524a73['getAttribute']('vid_end'),{'userId':_0x6acfdb}));}}(this['_touched'],_0x11e411,_0x481bb7,_0x481bb7+_0x5076f0['howMany']);}['_handleMergeOperation'](_0x3774ae){const _0x36727c=null===(_0x3774ae=this['_cloneOperation'](_0x3774ae,this['_idsRoots']))['_authorId']?null:_0x3774ae['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x277a17=_0x3774ae['targetPosition']['parent'],_0x319bf5=_0x3774ae['sourcePosition']['parent'],_0x4c53ac=_0x277a17['getAttribute']('vid_end'),_0xc816af=_0x319bf5['getAttribute']('vid_start');_0x277a17['_setAttribute']('vid_end',_0x319bf5['getAttribute']('vid_end')),_0x319bf5['_setAttribute']('vid_end',_0x4c53ac),this['_touched']['set'](_0xc816af,{'userId':_0x36727c}),this['_touched']['set'](_0x4c53ac,{'userId':_0x36727c}),_0x3774ae['_execute']();}['_handleSplitOperation'](_0x243822){const _0x340ee1=null===(_0x243822=this['_cloneOperation'](_0x243822,this['_idsRoots']))['_authorId']?null:_0x243822['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x53b81a=_0x243822['graveyardPosition'],_0x5d5e03=_0x243822['splitPosition']['parent'];_0x243822['_execute']();const _0x181ca2=_0x5d5e03['getAttribute']('vid_end'),_0x2feb32=_0x243822['insertionPosition']['nodeAfter'];if(_0x53b81a){const _0x49729d=_0x2feb32['getAttribute']('vid_end'),_0x7fedf=_0x5d5e03['getAttribute']('vid_end');_0x5d5e03['_setAttribute']('vid_end',_0x49729d),_0x2feb32['_setAttribute']('vid_end',_0x7fedf),this['_touched']['set'](_0x5d5e03['getAttribute']('vid_end'),{'userId':_0x340ee1}),this['_touched']['set'](_0x2feb32['getAttribute']('vid_start'),{'userId':_0x340ee1});}else{const _0x470b1a=this['_revisionId']++,_0x1983a1=this['_revisionId']++;_0x5d5e03['_setAttribute']('vid_end',_0x470b1a),_0x2feb32['_setAttribute']('vid_start',_0x1983a1),_0x2feb32['_setAttribute']('vid_end',_0x181ca2),this['_touched']['set'](_0x470b1a,{'userId':_0x340ee1}),this['_touched']['set'](_0x1983a1,{'userId':_0x340ee1});}}['_handleMarkerOperation'](_0x53a7c9){if(!_0x53a7c9['affectsData'])return;const _0x1fc74b=(_0x53a7c9=this['_cloneOperation'](_0x53a7c9,this['_diffRoots']))['oldRange']?_0x53a7c9['oldRange']['root']:null,_0x4ba82b=_0x53a7c9['newRange']?_0x53a7c9['newRange']['root']:null;_0x1fc74b&&this['_markers']['delete'](_0x53a7c9['name']),_0x4ba82b&&this['_markers']['set'](_0x53a7c9['name'],_0x53a7c9['newRange']['clone']());const _0x58c9a2=null===_0x53a7c9['_authorId']?null:_0x53a7c9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x38d74f=_0x53a7c9['name'];if(!this['_touchedMarkers']['has'](_0x38d74f))return void this['_touchedMarkers']['set'](_0x38d74f,{'range':_0x53a7c9['oldRange'],'userId':_0x58c9a2});const _0x15694b=this['_touchedMarkers']['get'](_0x38d74f),_0x598f9b=_0x15694b['range'],_0x3a6f53=_0x53a7c9['newRange'];null==_0x598f9b&&null==_0x3a6f53||_0x598f9b&&_0x3a6f53&&_0x598f9b['isEqual'](_0x3a6f53)?this['_touchedMarkers']['delete'](_0x53a7c9['name']):_0x15694b['userId']=_0x58c9a2;}['_handleRootOperation'](_0xf597c,_0x5db476){this['_diffRoots']['has'](_0xf597c['rootName'])?this['_diffRoots']['get'](_0xf597c['rootName'])['_isAttached']=_0xf597c['isAdd']:(this['_diffRoots']['set'](_0xf597c['rootName'],F(_0xf597c['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0xf597c['rootName'],{}),_0x5db476&&this['_idsRoots']['set'](_0xf597c['rootName'],F(_0xf597c['rootName'],!0x0)));const _0x54aa4b=null===_0xf597c['_authorId']?null:_0xf597c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1845d0=this['_touchedRoots']['get'](_0xf597c['rootName']);_0x1845d0&&_0x1845d0['userId']===_0x54aa4b?this['_touchedRoots']['delete'](_0xf597c['rootName']):this['_touchedRoots']['set'](_0xf597c['rootName'],{'userId':_0x54aa4b,'isAttached':_0xf597c['isAdd']});}['_handleRootAttributeOperation'](_0x5dc73a){const _0x20085b=this['_diffRootsAttributes']['get'](_0x5dc73a['root']['rootName']);null===_0x5dc73a['newValue']?delete _0x20085b[_0x5dc73a['key']]:_0x20085b[_0x5dc73a['key']]=_0x5dc73a['newValue'];}}function T(_0x194488){const _0x569ba0=F(_0x194488['rootName'],_0x194488['isAttached']());for(const _0x46f0b3 of _0x194488['getChildren']()){const _0x59c21c=_0x46f0b3['_clone'](!0x0);_0x569ba0['_appendChild'](_0x59c21c);}return _0x569ba0;}function F(_0x325744,_0x5aecb3=!0x0){const _0x2e8cc5=new mt();return _0x2e8cc5['rootName']=_0x325744,_0x2e8cc5['_isAttached']=_0x5aecb3,_0x2e8cc5['isAttached']=()=>_0x2e8cc5['_isAttached'],_0x2e8cc5;}function B(_0x1368f7,_0x2722fb,_0x5b45a2){const _0x2745e2='elementEnd'==_0x1368f7['type']?_0x5b45a2['createPositionAt'](_0x1368f7['item'],'end'):_0x5b45a2['createPositionBefore'](_0x1368f7['item']);return _0x5b45a2['createPositionFromPath'](_0x2722fb,_0x2745e2['path'],_0x2745e2['stickiness']);}function J(_0x365425,_0x5dd545,_0x30cfae){const _0x2c3204='elementStart'==_0x365425['type']?_0x30cfae['createPositionAt'](_0x365425['item'],0x0):_0x30cfae['createPositionAfter'](_0x365425['item']);return _0x30cfae['createPositionFromPath'](_0x5dd545,_0x2c3204['path'],_0x2c3204['stickiness']);}class ns extends _0x477074{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x478086,_0xe9336){super(_0x478086),this['focusTracker']=new _0x4d70f1(),this['keystrokes']=new _0x274fd1(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xe9336),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x1eebec({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x5b3a56=_0xab83ad=>_0xab83ad['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b3a56),this['keystrokes']['set']('arrowleft',_0x5b3a56),this['keystrokes']['set']('arrowup',_0x5b3a56),this['keystrokes']['set']('arrowdown',_0x5b3a56);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2d8018){this['revisionNameInputView']['fieldView']['element']['value']=_0x2d8018['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x51eb2e){const _0xb88a0f=new nt(this['locale'],_0x21209c),_0x462586=_0xb88a0f['fieldView'];_0x462586['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x14a70b=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x51eb2e&&(_0x14a70b+='\x20('+m(this['locale'],'optional')+')'),(_0xb88a0f['label']=_0x14a70b,_0x462586['on']('input',()=>{this['revisionNameInputValue']=_0x462586['element']['value']['trim']();}),_0xb88a0f);}}class u extends _0x56b833{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x4e3bfb=this['editor'],_0x5c8e25=_0x4e3bfb['plugins']['get']('RevisionTracker');_0x4e3bfb['ui']['componentFactory']['add']('revisionHistory',_0xd643d3=>{const _0x312215=_0x1f9b8d(_0xd643d3),_0x1d87ff=_0x312215['panelView']['children'],_0x445973=new te(_0xd643d3),_0x599f91=new _0x4ef16d(_0xd643d3),_0x1982ba=new _0x3a8e36(_0xd643d3),_0x34b367=new _0x4ef16d(_0xd643d3),_0x1f8808=new _0x3a8e36(_0xd643d3);return _0x312215['bind']('isEnabled')['to'](_0x5c8e25,'isReady',_0x5c8e25,'isEnabled',_0x4e3bfb,'isReadOnly',(_0x24b239,_0x461591,_0x489a68)=>_0x24b239&&_0x461591&&!_0x489a68),_0x312215['buttonView']['set']({'icon':_0x530a55['history'],'label':m(_0xd643d3,'Revision\x20history'),'tooltip':!0x0}),_0x1982ba['set']({'label':m(_0xd643d3,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1982ba['bind']('isEnabled')['to'](_0x5c8e25,'isReady',_0x5c8e25,'isEnabled',_0x4e3bfb,'isReadOnly',(_0x37b017,_0x554677,_0xc0d798)=>_0x37b017&&_0x554677&&!_0xc0d798),_0x1982ba['on']('execute',()=>this['_showDialog']()),_0x1f8808['set']({'label':m(_0xd643d3,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x1f8808['bind']('isEnabled')['to'](_0x5c8e25,'isReady',_0x4e3bfb,'isReadOnly',(_0x11b9bc,_0x2c7412)=>_0x11b9bc&&!_0x2c7412),_0x1f8808['on']('execute',()=>{_0x4e3bfb['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x312215['isOpen']=!0x1,_0x4e3bfb['editing']['view']['focus']();}),_0x599f91['children']['add'](_0x1982ba),_0x34b367['children']['add'](_0x1f8808),_0x445973['role']='menu',_0x445973['items']['addMany']([_0x599f91,_0x34b367]),_0x1d87ff['add'](_0x445973),_0x312215;}),_0x4e3bfb['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0xac7c62=this['editor'],_0x1ed271=_0xac7c62['locale'],_0x2e4dbc=new _0x38087b(_0x1ed271),_0x2d5485=new _0x545de7(_0x1ed271);_0x2e4dbc['buttonView']['set']({'icon':_0x530a55['history'],'label':m(_0x1ed271,'Revision\x20history')});const _0x22ce28=new _0x149278(_0x1ed271,_0x2e4dbc),_0x8bc414=new _0x37e6a1(_0x1ed271);_0x8bc414['set']({'label':m(_0x1ed271,'Save\x20current\x20revision')}),_0x8bc414['delegate']('execute')['to'](_0x2e4dbc),_0x8bc414['on']('execute',()=>{this['_showDialog']();}),_0x22ce28['children']['add'](_0x8bc414),_0x2d5485['items']['add'](_0x22ce28);const _0x29eb4b=new _0x149278(_0x1ed271,_0x2e4dbc),_0x24cfc9=new _0x37e6a1(_0x1ed271);return _0x24cfc9['set']({'label':m(_0x1ed271,'Open\x20revision\x20history')}),_0x24cfc9['delegate']('execute')['to'](_0x2e4dbc),_0x24cfc9['on']('execute',()=>{_0xac7c62['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x29eb4b['children']['add'](_0x24cfc9),_0x2d5485['items']['add'](_0x29eb4b),_0x2e4dbc['panelView']['children']['add'](_0x2d5485),_0x2e4dbc;}['_showDialog'](){const _0x41a8aa=this['editor'],_0x38a206=_0x41a8aa['locale'],_0x1b5a4c=_0x41a8aa['plugins']['get']('Dialog'),_0x50f274=_0x41a8aa['plugins']['get']('RevisionTracker');function _0x1c4d95(_0x39ae92){_0x41a8aa['config']['get']('revisionHistory.requireRevisionName')&&''===_0x39ae92['revisionName']?_0x39ae92['revisionNameInputView']['errorText']=m(_0x38a206,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x41a8aa['plugins']['get'](l)['saveRevision']({'name':_0x39ae92['revisionName']}),_0x1b5a4c['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1c4d95(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x1b5a4c['show']({'id':'revisionSave','title':m(_0x38a206,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x41a8aa['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x1b5a4c['hide']()},{'label':m(_0x41a8aa['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5bba6c){_0x5bba6c['bind']('isEnabled')['to'](_0x50f274,'isReady',_0x50f274,'isEnabled',_0x41a8aa,'isReadOnly',(_0x3a24b4,_0x31a308,_0x277b34)=>_0x3a24b4&&_0x31a308&&!_0x277b34);},'onExecute':()=>_0x1c4d95(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x187bae=this['editor'],_0x4a8b39=_0x187bae['locale'];this['_saveRevisionFormView']=new ns(_0x4a8b39,_0x187bae['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x477074{['changeId'];['_model'];constructor(_0x2f8f09,_0x613caf){super(_0x2f8f09),this['_model']=_0x613caf,this['changeId']=_0x613caf['id'];const _0x567d02=this['bindTemplate'],_0x30269a=m(_0x2f8f09,_0x613caf['data']['isSuggestion']?'Suggested\x20by':'add'==_0x613caf['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x613caf['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x567d02['to']('type',_0x27ae0f=>'ck-revision-change__'+_0x27ae0f)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x30269a}]},{'text':'\x20'+_0x613caf['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x38fbd7(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x350389){super(),this['id']=_0x350389['id']||_0x3e6a21(),this['author']=_0x350389['author'],this['type']=_0x350389['type'],this['data']=_0x350389['data']||{},this['rootName']=_0x350389['rootName'],this['set']('createdAt',_0x350389['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x3154ff,_0x1eee1e){this['newRevisionId']=_0x3154ff,this['oldRevisionId']=_0x1eee1e,this['changes']=new _0x2f5228();}['_setChanges'](_0x4c4dfe){for(const _0x4c3672 of _0x4c4dfe)this['changes']['add'](_0x4c3672);}}const Y={'c':_0x1aeae3,'a':_0x3f4771,'e':_0x127d40,'r':_0xd1e852,'u':_0x53ba30};class d extends _0x56b833{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x185edb,_0x3031c7,j];}constructor(_0x237695){super(_0x237695),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x52975c,_0x2ea3a4,_0x273a80)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x38a8e5=>{for(const _0xee0c74 of this['editor']['editing']['view']['document']['roots'])_0x273a80?_0x38a8e5['removeClass']('ck-editor__editable__overlay',_0xee0c74):_0x38a8e5['addClass']('ck-editor__editable__overlay',_0xee0c74);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x31d614=>null!==_0x31d614),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xea4c52,_0x15ac98,_0x5a2efb)=>_0xea4c52&&_0x5a2efb?_0x15ac98['changes']['getIndex'](_0x5a2efb):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52552b,_0x291bc4)=>_0x52552b?_0x291bc4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x3031c7);}['init'](){const _0x3ce340=this['editor'],_0x740bbb=new yt(_0x3ce340,{'direction':'backward'}),_0x250f33=new yt(_0x3ce340,{'direction':'forward'});(_0x3ce340['commands']['add']('showPreviousChange',_0x740bbb),_0x3ce340['commands']['add']('showNextChange',_0x250f33),_0x3ce340['commands']['add']('restoreRevision',new _t(_0x3ce340)),this['on']('change:numberOfChanges',()=>{_0x740bbb['refresh'](),_0x250f33['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x3ce340['enableReadOnlyMode']('revision-viewer'),_0x3ce340['plugins']['has']('WidgetToolbarRepository'))&&_0x3ce340['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x58b9bf){await this['loadRevisionData'](_0x58b9bf);const _0x27a4fd={};for(const _0x1bed2f in _0x58b9bf['diffData']){if(_0x58b9bf['diffData'][_0x1bed2f]['attachChange']&&!_0x58b9bf['diffData'][_0x1bed2f]['attachChange']['isAttached'])continue;const _0x4e6da6=this['_removeRevisionMarkers'](JSON['parse'](_0x58b9bf['diffData'][_0x1bed2f]['insertions'])),_0x3747a8=this['editor']['editing']['view']['document'],_0x48ff0e=new _0x38502d(_0x3747a8,_0x4e6da6['map'](_0x4368e6=>this['_getViewObj'](_0x4368e6)));this['editor']['data']['processor']['useFillerType']('marked'),_0x27a4fd[_0x1bed2f]=this['editor']['data']['processor']['toData'](_0x48ff0e),this['editor']['data']['processor']['useFillerType']('default');}return _0x27a4fd;}async['getRevisionRootsAttributes'](_0x4b28b6){await this['loadRevisionData'](_0x4b28b6);const _0x202b96={};for(const _0x202cb0 in _0x4b28b6['diffData'])_0x4b28b6['diffData'][_0x202cb0]['attachChange']&&!_0x4b28b6['diffData'][_0x202cb0]['attachChange']['isAttached']||(_0x202b96[_0x202cb0]=_0x4b28b6['diffData'][_0x202cb0]['attributesAfter']||{});return _0x202b96;}['_removeRevisionMarkers'](_0xef9f14){return(_0xef9f14=_0xef9f14['filter'](_0x1c3a3c=>!_0x1c3a3c['name']||'revision-start'!==_0x1c3a3c['name']&&'revision-end'!==_0x1c3a3c['name']))['forEach'](_0x3f229b=>{'string'!=typeof _0x3f229b&&(_0x3f229b['children']=this['_removeRevisionMarkers'](_0x3f229b['children']),_0x3f229b['attributes']=_0x3f229b['attributes']['filter'](_0x2afb9c=>!_0x2afb9c[0x0]['startsWith']('data-revision-')));}),_0xef9f14;}async['compare'](_0x5a4c18,_0x59279c,_0x1cdf61=!0x1){if(!this['isEnabled'])return;const _0x4e2189=this['diff'],_0x1033c5=this['repository'],_0x1e5bb6='string'==typeof _0x5a4c18?_0x1033c5['getRevision'](_0x5a4c18):_0x5a4c18,_0x294397='string'==typeof _0x59279c?_0x1033c5['getRevision'](_0x59279c):_0x59279c,_0x1ea060=_0x1e5bb6['id'],_0x57c64e=_0x294397?_0x294397['id']:null;if(!_0x1cdf61&&this['diff']&&this['diff']['newRevisionId']===_0x1ea060&&this['diff']['oldRevisionId']===_0x57c64e)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1ea060,_0x57c64e);const _0x33e53c=this['_getRevisionsRange'](_0x1e5bb6,_0x294397,!0x0)['map'](_0x2efb5f=>this['loadRevisionData'](_0x2efb5f));return _0x33e53c['push'](new Promise(_0x23c871=>{setTimeout(_0x23c871,0x14);})),Promise['all'](_0x33e53c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x178ed6=this['_getDiff'](_0x1ea060,_0x57c64e);for(const _0x59ede9 of _0x178ed6['changes'])this['_changeIdToChange']['set'](_0x59ede9['id'],_0x59ede9);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5ee30c=>{for(const _0x4161e6 of this['editor']['model']['document']['getRootNames']())_0x5ee30c['detachRoot'](_0x4161e6);for(const _0x47d7a3 of Object['keys'](_0x178ed6['model'])){const _0x107078=_0x5ee30c['addRoot'](_0x47d7a3);for(const _0xeeed03 of Object['keys'](_0x178ed6['attributes'][_0x47d7a3]))_0x5ee30c['setAttribute'](_0xeeed03,_0x178ed6['attributes'][_0x47d7a3][_0xeeed03],_0x107078);_0x5ee30c['insert'](_0x178ed6['model'][_0x47d7a3],_0x107078,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x178ed6['changes'])),this['isReady']=!0x0;})['catch'](_0x5d88e3=>{console['error'](_0x5d88e3),this['_cleanUp'](),_0x4e2189&&(this['diff']=_0x4e2189),this['isReady']=!0x0;});}['addRevisionData'](_0x326ff8,_0x40832c){const _0x470369=this['repository']['createRevision'](_0x326ff8);return _0x470369['on']('_update',(_0x15bbb0,_0x366946,_0x15c273)=>_0x40832c(_0x366946,_0x15c273,_0x470369)),this['repository']['addRevision'](_0x470369),_0x470369;}['loadRevisionData'](_0x41b527){if(!_0x41b527||_0x41b527['diffData'])return Promise['resolve']();{const _0x4a1704=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4a1704,'revisionId':_0x41b527['id']})['then'](_0x5ec4bf=>{_0x41b527['_update']({'diffData':_0x5ec4bf['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3bafa3=>{for(const _0x390e89 of this['editor']['model']['document']['getRootNames']())_0x3bafa3['detachRoot'](_0x390e89);});}['_sortAndFilterDiffChanges'](_0x5788a5){const _0x5e08bc=[],_0x4e5fb1=new Map();for(const _0x5af18a of this['editor']['model']['document']['getRootNames']()){const _0x67b808=this['editor']['editing']['view']['getDomRoot'](_0x5af18a);if(!_0x67b808)continue;const _0x32adf1=_0x67b808['getClientRects']()['item'](0x0);_0x32adf1&&(_0x5e08bc['push'](_0x5af18a),_0x4e5fb1['set'](_0x5af18a,_0x32adf1));}return _0x5e08bc['sort']((_0x41ed60,_0x45040d)=>{const _0x104022=_0x4e5fb1['get'](_0x41ed60),_0x13f1e4=_0x4e5fb1['get'](_0x45040d);return _0x104022['y']-_0x13f1e4['y']||_0x104022['x']-_0x13f1e4['x'];}),(_0x5788a5=_0x5788a5['filter'](_0x41887d=>_0x5e08bc['includes'](_0x41887d['rootName'])))['sort']((_0x3f36ef,_0x8b831e)=>_0x5e08bc['indexOf'](_0x3f36ef['rootName'])-_0x5e08bc['indexOf'](_0x8b831e['rootName'])),_0x5788a5;}['_makeTape'](_0x545977){const _0x2cca34=Array['from'](_0x545977['markers'])['filter'](([_0x5542df,_0x5e3ca6])=>_0x5542df['startsWith']('revision:')&&!_0x5e3ca6['isCollapsed']),_0x4f15e5=Array['from'](this['editor']['model']['createRangeIn'](_0x545977)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x2cca34['length'])for(const _0x38e46e of _0x4f15e5){const [_0x2fc2ea,_0x19caa7]=_0x2cca34[0x0],[,_0x5a5569,_0x5e3b11]=_0x2fc2ea['split'](':');if(_0x19caa7['end']['isEqual'](_0x38e46e['nextPosition'])&&_0x2cca34['shift'](),(_0x38e46e['previousPosition']['isEqual'](_0x19caa7['start'])||_0x38e46e['previousPosition']['isAfter'](_0x19caa7['start']))&&('insertion'==_0x5a5569?_0x38e46e['isAdded']={'userId':_0x5e3b11}:'deletion'==_0x5a5569&&(_0x38e46e['isRemoved']={'userId':_0x5e3b11})),0x0==_0x2cca34['length'])break;}return _0x4f15e5;}['_refreshStartEndIndex'](_0x268ad1){const _0x355fa3=new Map();for(let _0x8ead54=0x0;_0x8ead54<_0x268ad1['length'];_0x8ead54++)'text'===_0x268ad1[_0x8ead54]['type']?(_0x268ad1[_0x8ead54]['item']['startIndex']=_0x8ead54,_0x268ad1[_0x8ead54]['item']['endIndex']=_0x8ead54):('elementStart'===_0x268ad1[_0x8ead54]['type']?_0x268ad1[_0x8ead54]['item']['startIndex']=_0x8ead54:'elementEnd'===_0x268ad1[_0x8ead54]['type']&&(_0x268ad1[_0x8ead54]['item']['endIndex']=_0x8ead54),_0x355fa3['set'](_0x268ad1[_0x8ead54]['id'],_0x8ead54));for(const _0x43dd42 of _0x355fa3['values']())'elementStart'===_0x268ad1[_0x43dd42]['type']?_0x268ad1[_0x43dd42]['item']['endIndex']=_0x355fa3['get'](_0x268ad1[_0x43dd42]['pairId']):'elementEnd'===_0x268ad1[_0x43dd42]['type']&&(_0x268ad1[_0x43dd42]['item']['startIndex']=_0x355fa3['get'](_0x268ad1[_0x43dd42]['pairId']));}['_processTape'](_0x525706){for(let _0x5976ca=0x0;_0x5976ca<_0x525706['length'];_0x5976ca++){if('elementStart'===_0x525706[_0x5976ca]['type'])_0x525706[_0x5976ca]['item']['startIndex']=_0x5976ca;else{if('elementEnd'===_0x525706[_0x5976ca]['type']){_0x525706[_0x5976ca]['item']['endIndex']=_0x5976ca;const _0x460702=_0x525706[_0x5976ca]['item']['startIndex'];_0x525706[_0x460702]['pairId']=_0x525706[_0x5976ca]['id'],_0x525706[_0x5976ca]['pairId']=_0x525706[_0x460702]['id'];}else _0x525706[_0x5976ca]['item']['startIndex']=_0x5976ca,_0x525706[_0x5976ca]['item']['endIndex']=_0x5976ca,_0x525706[_0x5976ca]['pairId']=null;}_0x525706[_0x5976ca]['markersStart']||(_0x525706[_0x5976ca]['markersStart']=[],_0x525706[_0x5976ca]['markersEnd']=[]);}}['_markInsertions'](_0x1a78a2,_0x436822){const _0x48122c=_0x1a78a2['filter'](_0x40c904=>!_0x40c904['isAdded']);for(let _0x4cb75c=0x0;_0x4cb75c<_0x436822['length'];_0x4cb75c++)_0x436822[_0x4cb75c]['isAdded']&&(_0x48122c[_0x4cb75c]['isAdded']=_0x436822[_0x4cb75c]['isAdded']);}['_makeModelFromViewString'](_0x4bbcb1){const _0x158c9a=JSON['parse'](_0x4bbcb1),_0xdb20e3=this['editor']['editing']['view']['document'],_0x279840=new _0x38502d(_0xdb20e3,_0x158c9a['map'](_0x3468d9=>this['_getViewObj'](_0x3468d9)));return this['editor']['data']['toModel'](_0x279840);}['_getViewObj'](_0x537594){const _0x37f1d2=this['editor']['editing']['view']['document'];if('string'==typeof _0x537594)return new _0x3d3dae(_0x37f1d2,_0x537594);{const _0x2cc3a7=_0x537594['children']['map'](_0x1a29a=>this['_getViewObj'](_0x1a29a));return new(Y[_0x537594['type']]||_0x473b03)(_0x37f1d2,_0x537594['name'],_0x537594['attributes'],_0x2cc3a7);}}['_getDiff'](_0x1453ea,_0x495e55=null){const _0x43560a=this['repository']['getRevision'](_0x1453ea),_0x213963=_0x495e55?this['repository']['getRevision'](_0x495e55):null,_0x2a9f80=this['_getRevisionsRange'](_0x43560a,_0x213963),_0x3cc2fb=_0x2a9f80[_0x2a9f80['length']-0x1],_0x13ba68=new Map(),_0x5d5c06={'model':{},'attributes':{},'changes':[]},_0x44340c=new Set(),_0x504de8=new Map();for(let _0xf1a1a8=_0x2a9f80['length']-0x1;_0xf1a1a8>=0x0;_0xf1a1a8--){const _0x419ebf=_0x2a9f80[_0xf1a1a8];for(const _0x2268c1 of Object['keys'](_0x419ebf['diffData']))if(_0x419ebf['diffData'][_0x2268c1]['attachChange']){const _0xe95d74=_0x419ebf['diffData'][_0x2268c1]['attachChange'];_0xe95d74['isAttached']?(_0x44340c['add'](_0x2268c1),_0x504de8['has'](_0x2268c1)&&_0x504de8['get'](_0x2268c1)['userId']==_0xe95d74['userId']?_0x504de8['delete'](_0x2268c1):_0x504de8['set'](_0x2268c1,_0xe95d74)):_0x504de8['has'](_0x2268c1)?(_0x44340c['delete'](_0x2268c1),_0x504de8['delete'](_0x2268c1)):(_0x44340c['add'](_0x2268c1),_0x504de8['set'](_0x2268c1,_0xe95d74));}else _0x44340c['add'](_0x2268c1);}for(const _0x116e40 of _0x44340c){const _0x465885=_0x504de8['has'](_0x116e40)&&!_0x504de8['get'](_0x116e40)['isAttached'];let _0x592655=_0x465885?_0x2a9f80['length']-0x1:0x0;const _0x59207f=_0x465885?-0x1:0x1;for(;_0x2a9f80[_0x592655];){const _0x2e3766=_0x2a9f80[_0x592655];if(_0x2e3766['diffData'][_0x116e40]){const _0x499b0e=_0x465885?_0x2e3766['diffData'][_0x116e40]['attributesBefore']:_0x2e3766['diffData'][_0x116e40]['attributesAfter'];_0x5d5c06['attributes'][_0x116e40]=_0x499b0e?_0x30e949(_0x499b0e):{};break;}_0x592655+=_0x59207f;}}for(const _0x1abfdb of _0x2a9f80){_0x1abfdb['model']={};for(const _0x5201d2 of _0x1abfdb['authors'])_0x13ba68['set'](_0x5201d2['id'],_0x5201d2);for(const _0x287567 of _0x44340c){const _0x4d6c86=_0x1abfdb['diffData'][_0x287567]?_0x1abfdb['diffData'][_0x287567]['insertions']:'[]',_0x62b98=_0x1abfdb['diffData'][_0x287567]?_0x1abfdb['diffData'][_0x287567]['deletions']:'[]';_0x1abfdb['model'][_0x287567]={'insertions':this['_makeModelFromViewString'](_0x4d6c86),'deletions':this['_makeModelFromViewString'](_0x62b98)};}}for(const _0x5fbee1 of _0x44340c){let _0x33219d=null,_0x2523be=0x0;const _0x265ca2=new Map(Array['from'](_0x43560a['model'][_0x5fbee1]['insertions']['markers'])['filter'](([_0x5d011d])=>!_0x5d011d['startsWith']('revision:')));let _0x287bca=0x0;for(const _0x5e1d95 of _0x2a9f80){const _0xe29b58=this['_makeTape'](_0x5e1d95['model'][_0x5fbee1]['insertions']);_0x5e1d95==_0x43560a?(_0x33219d=_0xe29b58,_0x2523be=_0x33219d['length'],_0x33219d['forEach'](_0x96a454=>{_0x96a454['id']=_0x287bca++;}),this['_processTape'](_0x33219d)):this['_markInsertions'](_0x33219d,_0xe29b58);const _0x474e1d=_0x33219d['filter'](_0x31c3dd=>!_0x31c3dd['isAdded'])['map'](_0xe4e041=>_0xe4e041['id']);let _0x227baa=0x0;const _0x34474e=this['_makeTape'](_0x5e1d95['model'][_0x5fbee1]['deletions']);_0x34474e['forEach'](_0x436f89=>{_0x436f89['isRemoved']?_0x436f89['id']=_0x2523be++:_0x436f89['id']=_0x474e1d[_0x227baa++];}),this['_processTape'](_0x34474e),this['_setDistance'](_0x33219d,'isAdded'),this['_setDistance'](_0x34474e,'isRemoved'),_0x5e1d95==_0x43560a&&this['_markMarkers'](_0x33219d,_0x265ca2),_0x33219d=this['_joinTapes'](_0x33219d,_0x34474e),this['_refreshStartEndIndex'](_0x33219d),this['_setDistance'](_0x33219d,'isRemoved');}_0x33219d=_0x33219d['filter'](_0x1b88ea=>!(_0x1b88ea['isAdded']&&_0x1b88ea['isRemoved']));const _0x431ebb=new Map(_0x3cc2fb['model'][_0x5fbee1]['deletions']['markers']),_0x19339a=new Set(_0x265ca2['keys']());for(const _0x28764b of _0x431ebb['keys']())_0x19339a['delete'](_0x28764b);this['_markSuggestions'](_0x33219d,_0x19339a),this['_fixObsoleteTags'](_0x33219d),_0x33219d=this['_removeMissingPairs'](_0x33219d),_0x33219d=this['_markMismatchedRemovedTags'](_0x33219d),_0x33219d=this['_removeUnsupportedChanges'](_0x33219d);const {root:_0x4c7e52,changes:_0x3d8d63}=this['_makeModelFromTape'](_0x33219d,_0x13ba68,_0x5fbee1);_0x5d5c06['model'][_0x5fbee1]=_0x4c7e52;const _0x2723ec=_0x504de8['get'](_0x5fbee1);if(_0x2723ec){const _0x274c2c=_0x13ba68['get'](_0x2723ec['userId']),_0x1f8ec6=new r({'author':_0x274c2c,'type':_0x2723ec['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5fbee1});_0x3d8d63['unshift'](_0x1f8ec6),_0x5d5c06['attributes'][_0x5fbee1]['revisionHistoryAttachChange']=_0x1f8ec6['id'];}_0x5d5c06['changes']=_0x5d5c06['changes']['concat'](_0x3d8d63);}return _0x5d5c06;}['_markMarkers'](_0x4dd9c5,_0x112fc5){for(let _0x3d77c0=0x0;_0x3d77c0<_0x4dd9c5['length'];_0x3d77c0++)for(const [_0x2ebde2,_0x3ce0b6]of _0x112fc5)_0x3ce0b6['start']['isEqual'](_0x4dd9c5[_0x3d77c0]['previousPosition'])&&_0x4dd9c5[_0x3d77c0]['markersStart']['push'](_0x2ebde2),_0x3ce0b6['end']['isEqual'](_0x4dd9c5[_0x3d77c0]['nextPosition'])&&_0x4dd9c5[_0x3d77c0]['markersEnd']['push'](_0x2ebde2);}['_joinTapes'](_0x317d0a,_0x37dd27){let _0x130796=[],_0x24a8cd=0x0,_0x48860a=0x0;for(;_0x24a8cd<_0x317d0a['length']||_0x48860a<_0x37dd27['length'];){const _0x3fbb72=_0x317d0a[_0x24a8cd]||{},_0x4ad99c=_0x37dd27[_0x48860a]||{};if(_0x3fbb72['id']==_0x4ad99c['id'])_0x24a8cd++,_0x48860a++,_0x130796['push'](_0x3fbb72);else{if(_0x4ad99c['isRemoved']&&_0x3fbb72['isAdded']){const {commonTape:_0x213f1e,iEnd:_0x35a39d,jEnd:_0x1d34f4}=this['_threeWayMerge'](_0x317d0a,_0x24a8cd,_0x37dd27,_0x48860a);_0x130796=_0x130796['concat'](_0x213f1e),_0x24a8cd=_0x35a39d,_0x48860a=_0x1d34f4;}else _0x4ad99c['isRemoved']?(_0x48860a++,_0x130796['push'](_0x4ad99c)):(_0x24a8cd++,_0x130796['push'](_0x3fbb72));}}return _0x130796;}['_markSuggestions'](_0x300730,_0x50a04b){const _0x210297=[];for(let _0x39463b=0x0;_0x39463b<_0x300730['length'];_0x39463b++){for(let _0x4b830b=0x0;_0x4b830b<_0x300730[_0x39463b]['markersStart']['length'];_0x4b830b++){const _0x3ca992=_0x300730[_0x39463b]['markersStart'][_0x4b830b];if(!_0x50a04b['has'](_0x3ca992))continue;const {group:_0x288e0f,type:_0x10d497,authorId:_0x49716b}=_0x420945(_0x3ca992);'revision-suggestion'!=_0x288e0f||'insertion'!=_0x10d497&&'deletion'!=_0x10d497||(_0x210297['unshift']({'type':_0x10d497,'name':_0x3ca992,'userId':_0x49716b}),_0x300730[_0x39463b]['markersStart']['splice'](_0x4b830b,0x1),_0x4b830b--);}_0x552eed(_0x300730[_0x39463b]);for(let _0x784288=0x0;_0x784288<_0x300730[_0x39463b]['markersEnd']['length'];_0x784288++){const _0x5f9e86=_0x300730[_0x39463b]['markersEnd'][_0x784288];if(!_0x50a04b['has'](_0x5f9e86))continue;const {group:_0x541d32,type:_0x53aa84}=_0x420945(_0x5f9e86);if('revision-suggestion'!=_0x541d32||'insertion'!=_0x53aa84&&'deletion'!=_0x53aa84)continue;_0x300730[_0x39463b]['markersEnd']['splice'](_0x784288,0x1),_0x784288--;const _0xc54b00=_0x210297['findIndex'](_0x404457=>_0x404457['name']==_0x5f9e86);_0xc54b00>-0x1&&_0x210297['splice'](_0xc54b00,0x1);}}function _0x420945(_0x39a7da){const _0x3846ee=_0x39a7da['split'](':');return{'group':_0x3846ee[0x0],'type':_0x3846ee[0x1],'subType':_0x3846ee['length']>=0x5?_0x3846ee[0x2]:null,'id':_0x3846ee['length']<0x5?_0x3846ee[0x2]:_0x3846ee[0x3],'authorId':_0x3846ee['length']<0x5?_0x3846ee[0x3]:_0x3846ee[0x4],'markerCount':0x6==_0x3846ee['length']?_0x3846ee[0x5]:null};}function _0x552eed(_0x38cb92){for(let _0x2bb35e=0x0;_0x2bb35e<_0x210297['length'];_0x2bb35e++){if(_0x38cb92['isAdded']&&'insertion'==_0x210297[_0x2bb35e]['type'])return _0x38cb92['isAddSuggestion']=_0x210297[_0x2bb35e],void delete _0x38cb92['isAdded'];if(!_0x38cb92['isAdded']&&!_0x38cb92['isRemoved']&&'deletion'==_0x210297[_0x2bb35e]['type'])return void(_0x38cb92['isRemoveSuggestion']=_0x210297[_0x2bb35e]);}}}['_setDistance'](_0x3b79e3,_0x5ae057){let _0x23d6c4=0x0,_0x154379=!0x1;const _0x46541e=new Map();for(const _0x1d8545 of _0x3b79e3)_0x1d8545[_0x5ae057]?_0x154379&&(_0x23d6c4++,_0x154379=!0x1):(_0x23d6c4++,_0x154379=!0x0),_0x46541e['set'](_0x1d8545['id'],_0x23d6c4);for(let _0x4b57ba=0x0;_0x4b57ba<_0x3b79e3['length'];_0x4b57ba++){if('isRemoved'==_0x5ae057&&_0x3b79e3[_0x4b57ba]['isAdded']||'isAdded'==_0x5ae057&&_0x3b79e3[_0x4b57ba]['isRemoved'])continue;if('text'==_0x3b79e3[_0x4b57ba]['type']){_0x3b79e3[_0x4b57ba]['distance']=0x0;continue;}const _0x27d4f1=_0x46541e['get'](_0x3b79e3[_0x4b57ba]['pairId']),_0x208f48=_0x46541e['get'](_0x3b79e3[_0x4b57ba]['id']);_0x3b79e3[_0x4b57ba]['distance']=_0x27d4f1-_0x208f48;}}['_getRevisionsRange'](_0x1299ea,_0x4dc0ee,_0x49a31d=!0x1){const _0x2ccbac=[];let _0xc9930=this['repository']['getIndex'](_0x1299ea),_0x49da32=this['repository']['getIndex'](_0x4dc0ee);for(-0x1==_0x49da32&&(_0x49da32=this['repository']['_revisions']['length'],_0x49a31d=!0x1);_0xc9930<_0x49da32;)_0x2ccbac['push'](this['repository']['getRevision'](_0xc9930)),_0xc9930++;return _0x49a31d&&_0x2ccbac['push'](this['repository']['getRevision'](_0xc9930)),_0x2ccbac;}['_threeWayMerge'](_0x32c252,_0x465779,_0x393c3f,_0x5ece88){const _0x196573=this['editor']['model']['schema'];let _0x18c7ad=_0x465779;for(;_0x32c252[_0x18c7ad]&&_0x32c252[_0x18c7ad]['isAdded'];)_0x18c7ad++;let _0x2481b3=_0x5ece88;for(;_0x393c3f[_0x2481b3]&&_0x393c3f[_0x2481b3]['isRemoved'];)_0x2481b3++;_0x424ae7(_0x32c252,_0x465779,_0x18c7ad),_0x424ae7(_0x393c3f,_0x5ece88,_0x2481b3);const _0x565c5b=_0x393c3f['slice'](_0x5ece88,_0x2481b3)['concat'](_0x32c252['slice'](_0x465779,_0x18c7ad));return _0x565c5b['sort']((_0x23c597,_0x325003)=>_0x23c597['side']!=_0x325003['side']?_0x23c597['side']-_0x325003['side']:_0x23c597['level']!=_0x325003['level']?_0x23c597['level']-_0x325003['level']:_0x23c597['distance']!=_0x325003['distance']?_0x325003['distance']-_0x23c597['distance']:!!_0x23c597['isAdded']!=!!_0x325003['isAdded']?-0x1==_0x23c597['side']||0x0==_0x23c597['side']?_0x23c597['isAdded']?-0x1:0x1:_0x23c597['isAdded']?0x1:-0x1:_0x23c597['index']-_0x325003['index']),{'commonTape':_0x565c5b,'iEnd':_0x18c7ad,'jEnd':_0x2481b3};function _0x424ae7(_0x3ec8ac,_0x263790,_0x3131a2){let _0x1ccb27=-0x1,_0x4e473f=Number['POSITIVE_INFINITY'],_0x2d34a2=!0x0;for(let _0x1b430c=_0x263790;_0x1b430c<_0x3131a2;_0x1b430c++)if(_0x196573['isInline'](_0x3ec8ac[_0x1b430c]['item'])||(_0x2d34a2=!0x1),_0x3ec8ac[_0x1b430c]['item']['startIndex']<_0x263790&&(_0x1ccb27=_0x1b430c),_0x3ec8ac[_0x1b430c]['item']['endIndex']>=_0x3131a2){_0x4e473f=_0x1b430c;break;}_0x2d34a2&&(_0x1ccb27=_0x3131a2-0x1);for(let _0x307be6=_0x263790;_0x307be6<_0x3131a2;_0x307be6++)_0x3ec8ac[_0x307be6]['side']=_0x307be6<=_0x1ccb27?-0x1:_0x307be6<_0x4e473f?0x0:0x1,_0x3ec8ac[_0x307be6]['index']=_0x307be6;let _0x51b17d=0x0;for(let _0x137f82=_0x263790;_0x137f82<=_0x1ccb27;_0x137f82++)0x0==_0x3ec8ac[_0x137f82]['distance']?_0x3ec8ac[_0x137f82]['level']=_0x51b17d:(_0x51b17d++,_0x3ec8ac[_0x137f82]['level']=_0x51b17d,_0x51b17d++);for(let _0x125c8b=_0x263790;_0x125c8b<_0x3131a2;_0x125c8b++)0x0==_0x3ec8ac[_0x125c8b]['side']&&(_0x3ec8ac[_0x125c8b]['level']=_0x51b17d);_0x51b17d=0x0;for(let _0x3fefb3=_0x3131a2-0x1;_0x3fefb3>=_0x4e473f;_0x3fefb3--)0x0==_0x3ec8ac[_0x3fefb3]['distance']?_0x3ec8ac[_0x3fefb3]['level']=_0x51b17d:(_0x51b17d--,_0x3ec8ac[_0x3fefb3]['level']=_0x51b17d,_0x51b17d--);}}['_fixObsoleteTags'](_0x1b970f){const _0x470bef=new Map(),_0x306c46=this['editor']['model']['schema'];for(let _0x5d8a35=0x1;_0x5d8a35<_0x1b970f['length'];_0x5d8a35++){let _0x17f9f5,_0x4b3169,_0x2c411f;const _0x1cdd10=_0x1b970f[_0x5d8a35],_0x5ea419=_0x1b970f[_0x5d8a35-0x1];if('text'==_0x1cdd10['type'])continue;if(_0x1cdd10['type']!=_0x5ea419['type'])continue;if(!_0x306c46['isBlock'](_0x5ea419['item'])||_0x306c46['isLimit'](_0x5ea419['item']))continue;if(!_0x306c46['isBlock'](_0x1cdd10['item'])||_0x306c46['isLimit'](_0x1cdd10['item']))continue;if((_0x1b970f[_0x5d8a35]['isAdded']||_0x1b970f[_0x5d8a35]['isAddSuggestion'])&&_0x1b970f[_0x5d8a35-0x1]['isRemoved'])_0x17f9f5=_0x1b970f[_0x5d8a35],_0x4b3169=_0x1b970f[_0x5d8a35-0x1],_0x2c411f=_0x5d8a35-0x1;else{if(!_0x1b970f[_0x5d8a35]['isRemoved']||!_0x1b970f[_0x5d8a35-0x1]['isAdded']&&!_0x1b970f[_0x5d8a35-0x1]['isAddSuggestion'])continue;_0x17f9f5=_0x1b970f[_0x5d8a35-0x1],_0x4b3169=_0x1b970f[_0x5d8a35],_0x2c411f=_0x5d8a35;}const _0x165e4c=_0x17f9f5['level']==_0x4b3169['level'],_0x3e86c8=Math['abs'](_0x17f9f5['level'])<Math['abs'](_0x4b3169['level'])&&0x0==_0x4b3169['distance'];(_0x165e4c||_0x3e86c8)&&(_0x470bef['set'](_0x4b3169['id'],_0x17f9f5['id']),_0x1b970f['splice'](_0x2c411f,0x1),_0x5d8a35--,_0x17f9f5['isAdded']=!0x1);}for(let _0x2ab73a=0x0;_0x2ab73a<_0x1b970f['length'];_0x2ab73a++)_0x470bef['has'](_0x1b970f[_0x2ab73a]['pairId'])&&(_0x1b970f[_0x2ab73a]['pairId']=_0x470bef['get'](_0x1b970f[_0x2ab73a]['pairId']));}['_removeMissingPairs'](_0x28ede2){const _0x506a50=new Set(_0x28ede2['map'](_0x11464c=>_0x11464c['id']));for(let _0x51716b=0x0;_0x51716b<_0x28ede2['length'];_0x51716b++)_0x506a50['has'](_0x28ede2[_0x51716b]['pairId'])||0x0==_0x28ede2[_0x51716b]['distance']||(_0x28ede2[_0x51716b]['isIncorrect']=!0x0);return _0x28ede2['filter'](_0x273934=>!_0x273934['isIncorrect']);}['_markMismatchedRemovedTags'](_0x43b86e){const _0xa0fb31=new Set();for(let _0x5255e2=0x0;_0x5255e2<_0x43b86e['length'];_0x5255e2++){if(_0xa0fb31['has'](_0x43b86e[_0x5255e2]['id'])&&_0x43b86e[_0x5255e2]['isRemoved']&&(_0x43b86e[_0x5255e2]['isIncorrect']=!0x0),_0x43b86e[_0x5255e2]['isIncorrect'])continue;if(0x0==_0x43b86e[_0x5255e2]['distance'])continue;if('elementStart'!=_0x43b86e[_0x5255e2]['type'])continue;if(null==_0x43b86e[_0x5255e2]['pairId'])continue;let _0x374741=_0x5255e2+0x1,_0x4d6760=0x0;for(;_0x43b86e[_0x374741]['id']!=_0x43b86e[_0x5255e2]['pairId'];)'elementStart'==_0x43b86e[_0x374741]['type']?_0x4d6760++:'elementEnd'==_0x43b86e[_0x374741]['type']&&_0x4d6760--,_0x374741++;if(0x0!=_0x4d6760){if(_0x43b86e[_0x5255e2]['isRemoved'])_0x43b86e[_0x5255e2]['isIncorrect']=!0x0;else{for(;_0x374741!=_0x5255e2;)_0x43b86e[_0x374741]['isRemoved']&&0x0!=_0x43b86e[_0x374741]['distance']&&(_0x43b86e[_0x374741]['isIncorrect']=!0x0,_0xa0fb31['add'](_0x43b86e[_0x374741]['pairId'])),_0x374741--;}}}return _0x43b86e['filter'](_0x246999=>!_0x246999['isIncorrect']);}['_removeUnsupportedChanges'](_0x5e2373){const _0x26edf7=this['editor']['model']['schema'];for(let _0x47438a=0x0;_0x47438a<_0x5e2373['length'];_0x47438a++){if(!(_0x5e2373[_0x47438a]['isAdded']||_0x5e2373[_0x47438a]['isAddSuggestion']||_0x5e2373[_0x47438a]['isRemoved']||_0x5e2373[_0x47438a]['isRemoveSuggestion']))continue;if(0x0==_0x5e2373[_0x47438a]['distance'])continue;const _0x2db09d=_0x5e2373[_0x47438a]['item'];_0x26edf7['isBlock'](_0x2db09d)||_0x26edf7['isLimit'](_0x2db09d)||(_0x5e2373[_0x47438a]['isAdded']&&delete _0x5e2373[_0x47438a]['isAdded'],_0x5e2373[_0x47438a]['isAddSuggestion']&&delete _0x5e2373[_0x47438a]['isAddSuggestion'],_0x5e2373[_0x47438a]['isRemoveSuggestion']&&delete _0x5e2373[_0x47438a]['isRemoveSuggestion'],_0x5e2373[_0x47438a]['isRemoved']&&(_0x5e2373[_0x47438a]['isIncorrect']=!0x0));}return _0x5e2373['filter'](_0x2b7fa1=>!_0x2b7fa1['isIncorrect']);}['_makeModelFromTape'](_0x1b1731,_0x255efe,_0x47ee75){const _0x82d22e=new mt(),_0x3a7387=[],_0x366997=new Map(),_0x1bf7ee=this['editor']['model'],_0x61d8a8=_0x1bf7ee['schema'],_0x2bd1e9=[_0x82d22e],_0x2658cc={},_0x5b4409={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x56f875=null;const _0x12dd83=[0x0];for(let _0x23e54c=0x0;_0x23e54c<_0x1b1731['length'];_0x23e54c++)if('elementStart'===_0x1b1731[_0x23e54c]['type']){_0x1b1731[_0x23e54c]['previousPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83);const _0x182ceb=new ft(_0x1b1731[_0x23e54c]['item']['name'],_0x1b1731[_0x23e54c]['item']['getAttributes']());_0x2bd1e9[0x0]['_appendChild'](_0x182ceb),_0x12dd83['push'](0x0),_0x2bd1e9['unshift'](_0x182ceb),_0x1b1731[_0x23e54c]['nextPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83);}else'elementEnd'===_0x1b1731[_0x23e54c]['type']?(_0x2bd1e9['shift'](),_0x1b1731[_0x23e54c]['previousPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83),_0x12dd83['pop'](),_0x12dd83[_0x12dd83['length']-0x1]++,_0x1b1731[_0x23e54c]['nextPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83)):(_0x1b1731[_0x23e54c]['previousPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83),_0x56f875?_0x56f875['_data']+=_0x1b1731[_0x23e54c]['item']['data']:_0x56f875=new wt(_0x1b1731[_0x23e54c]['item']['data'],_0x1b1731[_0x23e54c]['item']['getAttributes']()),_0x1b1731[_0x23e54c+0x1]&&'text'===_0x1b1731[_0x23e54c+0x1]['type']&&_0x53545a(_0x56f875,_0x1b1731[_0x23e54c+0x1]['item'])||(_0x2bd1e9[0x0]['_appendChild'](_0x56f875),_0x56f875=null),_0x12dd83[_0x12dd83['length']-0x1]+=_0x1b1731[_0x23e54c]['item']['offsetSize'],_0x1b1731[_0x23e54c]['nextPosition']=_0x1bf7ee['createPositionFromPath'](_0x82d22e,_0x12dd83));for(let _0x57ce93=0x0;_0x57ce93<_0x1b1731['length'];_0x57ce93++){const _0xf0240f=_0x1b1731[_0x57ce93]['previousPosition'],_0x3871dc=_0x1b1731[_0x57ce93]['nextPosition'];for(const _0x2ad308 of _0x1b1731[_0x57ce93]['markersStart'])_0x366997['set'](_0x2ad308,{'start':_0xf0240f,'end':null});_0xb56ee1('isRemoveSuggestion',_0x57ce93,_0xf0240f,_0x3871dc),_0xb56ee1('isAddSuggestion',_0x57ce93,_0xf0240f,_0x3871dc),_0xb56ee1('isRemoved',_0x57ce93,_0xf0240f,_0x3871dc),_0xb56ee1('isAdded',_0x57ce93,_0xf0240f,_0x3871dc);for(const _0x1b845f of _0x1b1731[_0x57ce93]['markersEnd']){_0x366997['get'](_0x1b845f)['end']=_0x3871dc;}}for(const [_0x5ce6b6,_0x4a77be]of _0x366997){const _0x3363f4=this['editor']['model']['createRange'](_0x4a77be['start'],_0x4a77be['end']);_0x82d22e['markers']['set'](_0x5ce6b6,_0x3363f4);}return _0x3a7387['sort']((_0x2d443b,_0x816552)=>{const _0x275ccd=_0x82d22e['markers']['get']('revision:'+_0x2d443b['id']),_0x24f754=_0x82d22e['markers']['get']('revision:'+_0x816552['id']);return _0x275ccd['start']['isBefore'](_0x24f754['start'])?-0x1:_0x275ccd['start']['isAfter'](_0x24f754['start'])?0x1:_0x275ccd['end']['isBefore'](_0x24f754['end'])?-0x1:_0x275ccd['end']['isAfter'](_0x24f754['end'])?0x1:'add'===_0x2d443b['type']?-0x1:0x1;}),{'root':_0x82d22e,'changes':_0x3a7387};function _0xb56ee1(_0x1f6610,_0x6c50b2,_0x343f45,_0x9c58a0){const _0x101712=!!_0x1b1731[_0x6c50b2][_0x1f6610],_0x15aa01=_0x101712?_0x1b1731[_0x6c50b2][_0x1f6610]['userId']:null,_0x4b3839=_0x6c50b2===_0x1b1731['length']-0x1,_0xeb577f=_0x5b4409[_0x1f6610][0x0],_0x39d103=_0x61d8a8['isObject'](_0x1b1731[_0x6c50b2]['item']);!_0x2658cc[_0x1f6610]&&_0x101712?_0x2658cc[_0x1f6610]={'start':_0x343f45,'tapeItem':_0x1b1731[_0x6c50b2],'userId':_0x15aa01,'type':_0x1f6610}:_0x2658cc[_0x1f6610]&&!_0x101712?(_0x2658cc[_0x1f6610]['end']=_0x343f45,_0x11a285(_0x2658cc[_0x1f6610]),_0x2658cc[_0x1f6610]=null):_0x2658cc[_0x1f6610]&&_0x101712&&_0x2658cc[_0x1f6610]['userId']!==_0x15aa01&&(_0x2658cc[_0x1f6610]['end']=_0x343f45,_0xeb577f&&_0xeb577f['userId']===_0x2658cc[_0x1f6610]['userId']||_0x11a285(_0x2658cc[_0x1f6610]),_0x2658cc[_0x1f6610]={'start':_0x343f45,'tapeItem':_0x1b1731[_0x6c50b2],'userId':_0x15aa01,'type':_0x1f6610}),_0x2658cc[_0x1f6610]&&_0x39d103&&('elementStart'!==_0x1b1731[_0x6c50b2]['type']||_0xeb577f&&_0xeb577f['userId']===_0x15aa01||_0x5b4409[_0x1f6610]['unshift']({'userId':_0x15aa01,'object':_0x1b1731[_0x6c50b2]['item'],'change':_0x2658cc[_0x1f6610]}),'elementEnd'===_0x1b1731[_0x6c50b2]['type']&&_0xeb577f&&_0xeb577f['object']===_0x1b1731[_0x6c50b2]['item']&&(_0x5b4409[_0x1f6610]['shift'](),_0x2658cc[_0x1f6610]=_0xeb577f['change'])),_0x2658cc[_0x1f6610]&&_0x4b3839&&(_0x2658cc[_0x1f6610]['end']=_0x9c58a0,_0x11a285(_0x2658cc[_0x1f6610]),_0x2658cc[_0x1f6610]=null);}function _0x11a285({start:_0x3003da,end:_0x3610ce,tapeItem:_0x5a44de,userId:_0x26782c,type:_0x302f86}){const _0x27d63c=_0x5a44de['item'],_0x449da9=_0x1bf7ee['schema']['isBlock'](_0x27d63c)&&!_0x1bf7ee['schema']['isLimit'](_0x27d63c),_0x13289b=_0x3003da['nodeAfter']==_0x3610ce['parent']&&_0x3610ce['isAtStart'];if(_0x449da9&&_0x13289b)return;const _0x4531e4=_0x1bf7ee['createRange'](_0x3003da,_0x3610ce),_0x42d099=_0x255efe['get'](_0x26782c),_0x5deef5=new r({'author':_0x42d099,'type':'isAdded'==_0x302f86||'isAddSuggestion'==_0x302f86?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x302f86||'isRemoveSuggestion'==_0x302f86},'createdAt':new Date(),'rootName':_0x47ee75});_0x3a7387['push'](_0x5deef5),_0x82d22e['markers']['set']('revision:'+_0x5deef5['id'],_0x4531e4);}function _0x53545a(_0x5407d9,_0x55f836){const _0x4ea3a6=_0x5407d9['getAttributes'](),_0xb65784=_0x55f836['getAttributes']();for(const _0x230d59 of _0x4ea3a6){if(_0x230d59[0x1]!==_0x55f836['getAttribute'](_0x230d59[0x0]))return!0x1;_0xb65784['next']();}return _0xb65784['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x29dc9d=>{const _0x51caaf=_0x29dc9d['markerName']['split'](':')[0x1],_0x1dcfa9=this['_getChangeFromId'](_0x51caaf);if(!_0x1dcfa9)return null;const _0x318fda='add'==_0x1dcfa9['type']?'insertion':'deletion',_0x37f14d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x318fda];return _0x1dcfa9['data']['isSuggestion']&&_0x37f14d['push']('ck-suggestion-marker-'+_0x318fda+'-new'),this['activeChange']==_0x1dcfa9&&_0x37f14d['push']('ck-suggestion-marker--active'),{'classes':_0x37f14d,'attributes':{'data-change-id':_0x51caaf}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1e6b86=>{_0x1e6b86['on']('element:pre',(_0x6a5fc9,_0x151e20,_0x23bf2f)=>{const _0xbe5832=_0x151e20['viewItem']['getChild'](0x0);if(!_0xbe5832||!_0xbe5832['is']('element','code'))return;if(!_0x23bf2f['consumable']['consume'](_0xbe5832,{'attributes':['vid_start','vid_end']}))return;const _0x394e1e=_0x151e20['modelRange']['start']['nodeAfter'];_0x23bf2f['writer']['setAttribute']('vid_start',_0xbe5832['getAttribute']('vid_start'),_0x394e1e),_0x23bf2f['writer']['setAttribute']('vid_end',_0xbe5832['getAttribute']('vid_end'),_0x394e1e);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2ba96a=>{_0x2ba96a['on']('element',(_0x2e6fb2,_0x2a3878,_0x5c4e3e)=>{if(!_0x5c4e3e['consumable']['consume'](_0x2a3878['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2a3878['modelRange']['isCollapsed'])return;const _0x5a8c3e=_0x2a3878['modelRange']['start']['nodeAfter'];_0x5a8c3e['hasAttribute']('vid_start')||_0x5a8c3e['hasAttribute']('vid')||(_0x5c4e3e['writer']['setAttribute']('vid_start',_0x2a3878['viewItem']['getAttribute']('vid_start'),_0x5a8c3e),_0x5c4e3e['writer']['setAttribute']('vid_end',_0x2a3878['viewItem']['getAttribute']('vid_end'),_0x5a8c3e));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5e0ecf=>_0x5e0ecf['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5160f9,[,_0x3bdefa])=>{['vid_start','vid_end','vid']['includes'](_0x3bdefa)&&(_0x5160f9['return']=!0x0,_0x5160f9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x108c92=>{_0x108c92['on']('attribute:vid',(_0x187832,_0xd3f6cf,_0x12fe17)=>{if('\x20'!=_0xd3f6cf['item']['data']||_0xd3f6cf['item']['parent']['maxOffset']>0x1)return;if(!_0x12fe17['consumable']['consume'](_0xd3f6cf['item'],_0x187832['name']))return;const _0x524bbf=_0x12fe17['writer'],_0x5610a4=_0x12fe17['mapper']['toViewRange'](_0xd3f6cf['range']);_0x524bbf['wrap'](_0x5610a4,_0x524bbf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0xbbf2ae){const _0x4c7495=_0xbbf2ae['plugins']['get']('RevisionViewer');return(_0x2ad6d7,_0x9dcb52,_0x2ff574)=>{const _0x22cfae=_0x9dcb52['markerName']['split'](':')[0x1],_0x1d20ad=_0x4c7495['_getChangeFromId'](_0x22cfae);if(!_0x1d20ad)return null;const _0xe056d4='add'==_0x1d20ad['type']?'split':'merge';if(!_0x2ff574['consumable']['test'](_0x9dcb52['markerRange'],_0x2ad6d7['name']))return;const _0x1d7231=_0x9dcb52['markerRange']['getWalker'](),_0x1974e2=_0x9dcb52['markerRange']['start'],_0xf5174=_0xbbf2ae['model']['schema'];let _0xb463f6=null,_0x272ad1=null,_0x3ed7e4=!0x1,_0x23f0b6=!0x1;for(const _0x23d5ec of _0x1d7231){const _0x328724=_0x23d5ec['item'];_0x3ed7e4=_0x3ed7e4||_0xf5174['isContent'](_0x328724);const _0x4d3ad6=_0x2ff574['mapper']['toViewElement'](_0x328724);if(_0x4d3ad6&&_0x4d3ad6['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x23d5ec['type']&&(_0xf5174['isBlock'](_0x328724)&&!_0xf5174['isLimit'](_0x328724)&&(_0x328724['nextSibling']||_0x1974e2['isAtEnd']?_0xb463f6&&_0xb463f6['parent']==_0x328724||(_0xb463f6=_0x328724,_0x23718c(_0x23d5ec['previousPosition']),_0x23f0b6=!0x0):_0x272ad1=_0x272ad1||_0x23d5ec['previousPosition']));}function _0x23718c(_0x2decd2){const _0x108f12=_0x2ff574['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xe056d4}),_0x1f42ca=_0x2ff574['mapper']['toViewPosition'](_0x2decd2);_0x1d20ad['data']['isSuggestion']&&_0x2ff574['writer']['addClass']('ck-suggestion-marker-'+_0xe056d4+'-new',_0x108f12),_0x4c7495['activeChange']==_0x1d20ad&&_0x2ff574['writer']['addClass']('ck-suggestion-marker--active',_0x108f12),_0x2ff574['writer']['insert'](_0x1f42ca,_0x108f12),_0x2ff574['mapper']['bindElementToMarker'](_0x108f12,_0x9dcb52['markerName']);}_0x3ed7e4||_0x23f0b6||!_0x272ad1||_0x23718c(_0x272ad1);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x5a998c,_0x298f78,_0x200786)=>{const _0xc654e9=_0x200786['mapper']['markerNameToElements'](_0x298f78['markerName']);if(_0xc654e9){for(const _0x4740ed of _0xc654e9)(_0x4740ed['hasClass']('ck-suggestion-marker-split')||_0x4740ed['hasClass']('ck-suggestion-marker-merge'))&&(_0x200786['mapper']['unbindElementFromMarkerName'](_0x4740ed,_0x298f78['markerName']),_0x200786['writer']['remove'](_0x4740ed));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x4f9bba,_0xf2e899,_0x1e7ab0)=>{const _0x1db561=_0xf2e899['markerName']['split'](':')[0x1],_0x42dc6d=this['_getChangeFromId'](_0x1db561);if(!_0x42dc6d)return null;const _0x35b5ca='add'==_0x42dc6d['type']?'split':'merge';if(_0x1e7ab0['consumable']['test'](_0xf2e899['markerRange'],_0x4f9bba['name']))for(const _0x5f5f9f of _0xf2e899['markerRange']['getItems']()){if(!_0x5f5f9f['is']('element','softBreak'))continue;const _0x12f95d=_0x1e7ab0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x35b5ca}),_0x32d86b=_0x1e7ab0['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x5f5f9f));_0x42dc6d['data']['isSuggestion']&&_0x1e7ab0['writer']['addClass']('ck-suggestion-marker-'+_0x35b5ca+'-new',_0x12f95d),this['activeChange']==_0x42dc6d&&_0x1e7ab0['writer']['addClass']('ck-suggestion-marker--active',_0x12f95d),_0x1e7ab0['writer']['insert'](_0x32d86b,_0x12f95d),_0x1e7ab0['mapper']['bindElementToMarker'](_0x12f95d,_0xf2e899['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x5b474f=>{for(const _0x1d22db of this['editor']['model']['document']['getRootNames']()){const _0x41fecc=this['editor']['model']['document']['getRoot'](_0x1d22db),_0x24d744=this['editor']['editing']['view']['document']['getRoot'](_0x1d22db);if(_0x24d744){const _0x3a4148=_0x41fecc['getAttribute']('revisionHistoryAttachChange');if(_0x5b474f['removeAttribute']('data-change-id',_0x24d744),_0x5b474f['removeClass']('ck-revision-history-root-add',_0x24d744),_0x5b474f['removeClass']('ck-revision-history-root-remove',_0x24d744),_0x5b474f['removeClass']('ck-revision-history-root--active',_0x24d744),_0x3a4148){const _0x508a2a=this['_getChangeFromId'](_0x3a4148);if(!_0x508a2a)return null;_0x5b474f['setAttribute']('data-change-id',_0x3a4148,_0x24d744),_0x5b474f['addClass']('ck-revision-history-root-'+_0x508a2a['type'],_0x24d744),this['activeChange']==_0x508a2a&&_0x5b474f['addClass']('ck-revision-history-root--active',_0x24d744);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x425750=>'revision-comment:'+_0x425750,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x57fd70=>'revision-suggestion:'+_0x57fd70,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x203cbc=>({'name':'suggestion:'+_0x203cbc,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x1d6b5a=>{const _0x48215e=_0x1d6b5a['markerName']['split'](':')[0x1];return'insertion'!=_0x48215e&&'deletion'!=_0x48215e?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x48215e]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x33f3f1,_0x5c9867,_0xfb4f2)=>{const _0x5c121f=_0xfb4f2['mapper']['markerNameToElements'](_0x5c9867['markerName']);if(_0x5c121f){for(const _0xcab011 of _0x5c121f)_0xcab011['is']('uiElement')&&(_0xfb4f2['mapper']['unbindElementFromMarkerName'](_0xcab011,_0x5c9867['markerName']),_0xfb4f2['writer']['remove'](_0xcab011));}},{'priority':'high'});}['_getChangeFromId'](_0xb46124){return this['_changeIdToChange']['get'](_0xb46124);}['_getViewForChange'](_0x4f489d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x4f489d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x1ba882,_0x5a5c82,_0x5abc8d,_0x17fd5b)=>{_0x17fd5b&&this['_balloon']['remove'](_0x17fd5b),_0x5abc8d&&(this['_balloon']['add']({'view':_0x5abc8d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x195ea0=this['editor']['editing'],_0x29008a=this['_getChangeFromId'](_0x5abc8d['changeId']);let _0x31971b;if(_0x29008a['data']['isOnRoot']){const _0x37193e=_0x195ea0['view']['getDomRoot'](_0x29008a['rootName']);_0x31971b=Array['from'](_0x37193e['getClientRects']());}else{const _0x28356a=this['editor']['model']['markers']['get']('revision:'+_0x5abc8d['changeId']);_0x31971b=Array['from'](_0x195ea0['mapper']['markerNameToElements'](_0x28356a['name']))['map'](_0x2d9c78=>_0x195ea0['view']['domConverter']['mapViewToDom'](_0x2d9c78))['map'](_0x3772a4=>Array['from'](_0x3772a4['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x31971b[0x0];return _0x31971b['find'](_0x5925e2=>_0x5925e2['top']-0x3<=this['_activeViewTarget']['y']&&_0x5925e2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5925e2['left']-0x3<=this['_activeViewTarget']['x']&&_0x5925e2['right']+0x3>=this['_activeViewTarget']['x'])||_0x31971b[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2034fa,_0x34e8ef,_0x4a0380,_0x57d74a)=>{this['activeView']=_0x4a0380?this['_getViewForChange'](_0x4a0380):null,this['editor']['model']['change'](()=>{const _0x2541fb=this['editor']['editing'];_0x57d74a&&(_0x57d74a['data']['isOnRoot']?_0x2541fb['view']['change'](_0x15be50=>{_0x15be50['removeClass']('ck-revision-history-root--active',_0x2541fb['view']['document']['getRoot'](_0x57d74a['rootName']));}):_0x2541fb['reconvertMarker']('revision:'+_0x57d74a['id'])),_0x4a0380&&(_0x4a0380['data']['isOnRoot']?_0x2541fb['view']['change'](_0x4993e0=>{_0x4993e0['addClass']('ck-revision-history-root--active',_0x2541fb['view']['document']['getRoot'](_0x4a0380['rootName']));}):_0x2541fb['reconvertMarker']('revision:'+_0x4a0380['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x5e13db,_0x3ecc68)=>{if(this['activeChange'])return;const _0xb1e8f0=this['_findChangeIdFromDomTarget'](_0x3ecc68['target']),_0x30efdc=this['_changeIdToChange']['get'](_0xb1e8f0);_0x30efdc?(this['_activeViewTarget']={'x':_0x3ecc68['domEvent']['x'],'y':_0x3ecc68['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x30efdc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5da2ef,_0x574af4)=>{const _0x44a0c8=this['_findChangeIdFromDomTarget'](_0x574af4['target']),_0x3434c6=this['_changeIdToChange']['get'](_0x44a0c8);_0x3434c6?(this['_activeViewTarget']={'x':_0x574af4['domEvent']['x'],'y':_0x574af4['domEvent']['y']},_0x3434c6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3434c6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5d170b){do{const _0x3ab59d=_0x5d170b['getAttribute']('data-change-id');if(_0x3ab59d)return _0x3ab59d;_0x5d170b=_0x5d170b['parent'];}while(_0x5d170b);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x23d6c5=>{for(const _0x1be905 of this['editor']['model']['markers'])_0x23d6c5['removeMarker'](_0x1be905);});}}function Z(_0x5b20a1,_0x407162){return(_0x2959e7,_0x3678e5,_0x4e9971)=>{if(!_0x4e9971['consumable']['test'](_0x3678e5['markerRange'],_0x2959e7['name']))return;const _0x3c387c=_0x3678e5['markerRange']['getWalker'](),_0x3e108d=_0x3678e5['markerRange']['start'],_0x527ae1=_0x5b20a1['model']['schema'];let _0x3e9949=null,_0xc270ca=null,_0x48afc1=!0x1,_0x110eea=!0x1;for(const _0x55a54a of _0x3c387c){const _0x18b8d8=_0x55a54a['item'];_0x48afc1=_0x48afc1||_0x527ae1['isContent'](_0x18b8d8);const _0x50d8a4=_0x4e9971['mapper']['toViewElement'](_0x18b8d8);if(_0x50d8a4&&_0x50d8a4['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x55a54a['type']&&(_0x527ae1['isBlock'](_0x18b8d8)&&!_0x527ae1['isLimit'](_0x18b8d8)&&(_0x18b8d8['nextSibling']||_0x3e108d['isAtEnd']?_0x3e9949&&_0x3e9949['parent']==_0x18b8d8||(_0x3e9949=_0x18b8d8,_0x1e647a(_0x55a54a['previousPosition']),_0x110eea=!0x0):_0xc270ca=_0xc270ca||_0x55a54a['previousPosition']));}function _0x1e647a(_0x2cae9d){const _0x4a35cd=_0x4e9971['mapper']['toViewPosition'](_0x2cae9d),_0x2cbc42=_0x4e9971['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x407162});_0x4e9971['writer']['insert'](_0x4a35cd,_0x2cbc42),_0x4e9971['mapper']['bindElementToMarker'](_0x2cbc42,_0x3678e5['markerName']);}_0x48afc1||_0x110eea||!_0xc270ca||_0x1e647a(_0xc270ca);};}class _t extends _0x205cee{constructor(_0x4b9624){super(_0x4b9624);const _0x33ee8c=_0x4b9624['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x33ee8c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x33ee8c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x62b836=this['editor'],_0x41d8ae=_0x62b836['plugins']['get'](d),_0x391e08=_0x41d8ae['isReady']?_0x41d8ae['diff']['newRevisionId']:null;_0x62b836['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x391e08);}['refresh'](){const {isReady:_0x5b6487,isEnabled:_0x159f1b,repository:_0x1e4ef3,diff:_0x5076c5}=this['editor']['plugins']['get'](d),_0x1ef058=_0x5076c5&&_0x1e4ef3['getLaterVisibleRevision'](_0x5076c5['newRevisionId']);this['isEnabled']=_0x5b6487&&_0x159f1b&&Boolean(_0x1ef058);}}class yt extends _0x205cee{['_step'];constructor(_0x3c656d,{direction:_0x53f845}){super(_0x3c656d);const _0x180c15=_0x3c656d['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x53f845?0x1:-0x1,this['listenTo'](_0x180c15,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x180c15,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x180c15,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x970897=this['editor'],_0x308866=_0x970897['plugins']['get'](d),{isNavigationMode:_0x4cb4d4,currentChangeNumber:_0x27b8be}=_0x308866;let _0x13b839;if(_0x308866['activeChange']=_0x4cb4d4?_0x308866['diff']['changes']['get'](_0x27b8be+this['_step']):_0x308866['diff']['changes']['first'],_0x308866['activeChange']['data']['isOnRoot'])_0x13b839=_0x970897['editing']['view']['getDomRoot'](_0x308866['activeChange']['rootName']);else{const _0x543c6d=_0x970897['model']['markers']['get']('revision:'+_0x308866['activeChange']['id']);_0x13b839=_0x5bc31a(_0x970897['editing'],_0x543c6d);}_0x121837({'target':_0x13b839,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x187d5d,currentChangeNumber:_0x4056d6,numberOfChanges:_0x4abc34,isReady:_0x128be1,isEnabled:_0xec86d}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0xec86d&&_0x128be1&&_0x4abc34)&&(!_0x187d5d||(0x1===this['_step']?_0x4056d6<_0x4abc34-0x1:_0x4056d6>0x0));}}class _i extends _0x477074{constructor(_0x32e58c){super(_0x32e58c);const _0x4de6bf=this['bindTemplate'],_0x47227b=new _0x3a8e36(_0x32e58c),_0x3d828d=new _0x3a8e36(_0x32e58c);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',(_0x4f3c12,_0x3d768f)=>_0x4f3c12&&_0x3d768f>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1fa68e,_0x2801e3,_0xacf802,_0x325dec)=>{if(!_0x1fa68e)return m(_0x32e58c,'Loading...');if(!_0xacf802)return m(_0x32e58c,'No\x20changes');const _0x1fc4c5=m(_0x32e58c,'NUMBER_OF_CHANGES',_0xacf802);return _0x325dec?m(_0x32e58c,'X_OF_Y_CHANGES',[_0x2801e3+0x1,_0xacf802]):_0x1fc4c5;}),_0x47227b['set']({'label':m(_0x32e58c,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x3d828d['set']({'label':m(_0x32e58c,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x47227b['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3d828d['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x47227b['on']('execute',()=>this['fire']('execute','backward')),_0x3d828d['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',_0x4de6bf['if']('_isStatusLabelVisible','ck-hidden',_0x5d9517=>!_0x5d9517)]},'children':[{'text':_0x4de6bf['to']('isNavigationMode',_0x2df804=>_0x2df804?m(_0x32e58c,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x32e58c,'Total')+':\x20')}]},{'text':_0x4de6bf['to']('_statusText')}]},new _0x43a1be(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x47227b,_0x3d828d]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x56b833{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2b7964=this['editor']['editing']['view'];_0x2b7964['change'](_0x495ea1=>{for(const _0x429922 of _0x2b7964['document']['roots'])_0x495ea1['addClass'](ce,_0x429922);});}['hide'](){const _0x58559d=this['editor']['editing']['view'];_0x58559d['change'](_0x54868f=>{for(const _0x3bec91 of _0x58559d['document']['roots'])_0x54868f['removeClass'](ce,_0x3bec91);});}}class g extends _0x56b833{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x5208da=this['editor'],_0x250363=_0x5208da['plugins']['get'](d),_0x46724d=_0x5208da['plugins']['get'](le);_0x5208da['ui']['componentFactory']['add']('exitToEditing',_0x30d4f9=>{const _0x9e1317=new _0x3a8e36(_0x30d4f9);return _0x9e1317['set']({'label':m(_0x30d4f9,'Back\x20to\x20editing'),'icon':_0x530a55['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x9e1317,'execute',()=>{_0x5208da['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x9e1317;}),_0x5208da['ui']['componentFactory']['add']('restoreRevision',_0x5f37ac=>{const _0x4e06d2=new _0x3a8e36(_0x5f37ac);return _0x4e06d2['set']({'label':m(_0x5f37ac,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x4e06d2['bind']('isEnabled')['to'](_0x5208da['commands']['get']('restoreRevision')),this['listenTo'](_0x4e06d2,'execute',()=>_0x5208da['execute']('restoreRevision')),_0x4e06d2;}),_0x5208da['ui']['componentFactory']['add']('changesNavigation',_0x55c28b=>{const _0x344854=new _i(_0x55c28b),_0x3a5ec1=_0x5208da['commands']['get']('showPreviousChange'),_0x6755d7=_0x5208da['commands']['get']('showNextChange');return _0x344854['bind']('isBackwardNavigationEnabled')['to'](_0x3a5ec1,'isEnabled'),_0x344854['bind']('isForwardNavigationEnabled')['to'](_0x6755d7,'isEnabled'),_0x344854['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x250363),this['listenTo'](_0x344854,'execute',(_0x3c96d2,_0x4e47a6)=>{_0x5208da['execute']('forward'===_0x4e47a6?'showNextChange':'showPreviousChange');}),_0x344854;}),_0x46724d['show'](),_0x250363['on']('change:isReady',(_0x4ff6f6,_0x540e65,_0x1e430d)=>{_0x1e430d?_0x46724d['hide']():_0x46724d['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x246fae,_0xb28cf0){super(_0x246fae,_0xb28cf0);const _0x3342a8=this['bindTemplate'];this['set']({'label':m(_0x246fae,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x246fae,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3342a8['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x49072f=this['fieldView']['element'];this['_tooltipString']=_0x49072f['scrollWidth']>_0x49072f['clientWidth']&&_0x49072f['value']||'';}}class ti extends _0x477074{constructor(_0x36d73f,_0x106787,_0xbe8e8f){super(_0x36d73f);const _0x33f628=new _0x4abb36();_0x33f628['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x5d592f=['ck','ck-revision-history-sidebar__revision-author'];_0xbe8e8f&&_0x5d592f['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3abf4f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x36d73f,_0xbe8e8f?'Revision\x20creator':'Revision\x20author')},'children':[_0x33f628,_0x106787['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5d592f},'children':_0x3abf4f});}}function ni(_0x14d9bc,_0x48ae9c){const _0x538291=_0x14d9bc['bindTemplate'],_0xc9f40d=_0x14d9bc['locale'],_0x439bcc=_0x1f9b8d(_0xc9f40d);_0x439bcc['panelPosition']='sw';const _0x4036c2=function(_0x179deb,_0x2ce1d4){const _0xee50d0=function(_0x34b937,_0x104ab1){const _0x4f358f=_0x34b937['locale'],_0x249391={'Compare\x20against\x20selected':m(_0x4f358f,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x4f358f,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x4f358f,'Restore\x20this\x20revision')};return _0x104ab1['map'](_0x1b1cc7=>{const _0x22b2df=_0x249391[_0x1b1cc7['name']];return _0x22b2df&&_0x22b2df!==_0x1b1cc7['name']&&(_0x1b1cc7['name']=_0x22b2df),_0x1b1cc7;});}(_0x179deb,_0x2ce1d4),_0x5738f1=new _0x2f5228();for(const _0x509347 of _0xee50d0){const _0x4ffa96={'type':'button','model':new to({'label':_0x509347['name'],'class':_0x509347['class'],'withText':!0x0,'role':'menuitem','_action':_0x509347['action']})};_0x4ffa96['model']['bind']('isEnabled')['to'](_0x179deb,'isActionsDropdownOpen',_0x5b164b=>'function'!=typeof _0x509347['isEnabled']||(!_0x5b164b||_0x509347['isEnabled'](_0x179deb))),_0x5738f1['add'](_0x4ffa96);}return _0x5738f1;}(_0x14d9bc,_0x48ae9c);return _0x14d9bc['bind']('isActionsDropdownOpen')['to'](_0x439bcc,'isOpen'),_0x439bcc['buttonView']['set']({'label':m(_0xc9f40d,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x530a55['threeVerticalDots']}),_0x439bcc['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x538291['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x538291['to'](_0x4e3380=>_0x4e3380['stopPropagation']())}}),_0x439bcc['on']('execute',_0x214e62=>{_0x14d9bc['isReady']&&'function'==typeof _0x214e62['source']['_action']&&_0x214e62['source']['_action'](_0x14d9bc);}),_0x213961(_0x439bcc,_0x4036c2,{'role':'menu'}),_0x439bcc['listenTo'](_0x14d9bc,'change:isActionsDropdownOpen',(_0x283d58,_0x2249be,_0x1cc2e8)=>{if(_0x1cc2e8)for(const _0x5492c1 of _0x439bcc['listView']['items']){const _0x4dc73d=_0x5492c1['children']['first'],_0x16f351=_0x48ae9c['find'](_0x4cd75e=>_0x4cd75e['action']===_0x4dc73d['_action'])['isVisible'];_0x5492c1['isVisible']=void 0x0===_0x16f351||_0x16f351(_0x14d9bc);}}),_0x439bcc;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x1f4564(_0x477074){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x279e48,_0x25792c,_0x5f3738,_0x4ea368){super(_0x279e48);const _0xc7b2af=this['bindTemplate'],_0x8551c2=function(_0x458673,_0x550b7b){const _0x332655=Array['from'](_0x550b7b['authors'])['filter'](_0x24d8de=>_0x24d8de!=_0x550b7b['creator']);return _0x550b7b['creator']&&_0x332655['unshift'](_0x550b7b['creator']),_0x332655['map'](_0x3fbb4f=>new ti(_0x458673,_0x3fbb4f,_0x3fbb4f==_0x550b7b['creator']));}(_0x279e48,_0x25792c);this['id']=_0x25792c['id'],this['_revision']=_0x25792c,this['_requireRevisionName']=_0x4ea368,this['bind']('name','createdAt')['to'](_0x25792c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x1cede7=>{return _0x2618ea=_0x279e48['uiLanguage'],(_0xd05951=_0x1cede7)['toLocaleDateString'](_0x2618ea,{'month':'long','day':'numeric'})+',\x20'+_0xd05951['toLocaleTimeString'](_0x2618ea,{'hour':'numeric','minute':'numeric'});var _0x2618ea,_0xd05951;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x279e48,_0x21209c),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x57f722=>_0x57f722||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x21fad8,_0x5196ee)=>_0x21fad8&&_0x5196ee),this['revisionActionsView']=_0x5f3738&&_0x5f3738['length']?ni(this,_0x5f3738):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xc7b2af['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xc7b2af['if']('isEnabled','ck-disabled',_0x5aea37=>!_0x5aea37),_0xc7b2af['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xc7b2af['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xc7b2af['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':_0xc7b2af['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':_0x8551c2}]},this['revisionActionsView']],'on':{'click':_0xc7b2af['to'](_0xb867cf=>{_0xb867cf['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x32e934=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x32e934,'change',()=>{this['_requireRevisionName']&&!_0x32e934['value']||this['fire']('setName',{'id':this['id'],'name':_0x32e934['value']}),_0x32e934['value']||(_0x32e934['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0x3384f9,_0x1f6041){const _0x47e943=_0x36401b['fromJSDate'](_0x3384f9)['setLocale'](_0x1f6041),_0x1ae58f=_0x36401b['local'](),_0x54ef73=_0x1ae58f['minus']({'days':0x1})['startOf']('day');let _0x9ef1ee,_0x2a3c5c;return _0x47e943['hasSame'](_0x1ae58f,'day')?(_0x9ef1ee=_0x47e943['startOf']('day')['toJSDate'](),_0x2a3c5c=_0x47e943['toRelativeCalendar']()):_0x47e943['hasSame'](_0x54ef73,'day')?(_0x9ef1ee=_0x54ef73['toJSDate'](),_0x2a3c5c=_0x47e943['toRelativeCalendar']()):_0x47e943['hasSame'](_0x1ae58f,'week')?(_0x9ef1ee=_0x47e943['startOf']('week')['toJSDate'](),_0x2a3c5c=_0x47e943['weekdayLong']||''):_0x47e943['hasSame'](_0x1ae58f,'year')?(_0x9ef1ee=_0x47e943['startOf']('month')['toJSDate'](),_0x2a3c5c=_0x47e943['monthLong']||''):(_0x9ef1ee=_0x47e943['startOf']('year')['toJSDate'](),_0x2a3c5c=String(_0x47e943['year'])),{'startDate':_0x9ef1ee,'localizedPeriodName':_0x2a3c5c};}class mi extends _0x477074{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x47e760,_0x280014,_0x2e75d2,_0x4b6d90){super(_0x47e760);const _0x5a375c=di(_0x280014,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x280014,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2e75d2,this['_requireRevisionName']=_0x4b6d90,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':_0x5a375c}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3abd5c){const _0x5a1c7b=new ai(this['locale'],_0x3abd5c,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x5a1c7b);}['removeRevision'](_0x1f64a0){const _0x2512a6=this['revisionViews']['find'](_0x26493a=>_0x26493a['id']===_0x1f64a0['id']);this['revisionViews']['remove'](_0x2512a6);}}class as extends _0x477074{constructor(_0x1fc9b0){super(_0x1fc9b0);const _0x1bbf5f=new _0x4abb36();_0x1bbf5f['content']=_0x530a55['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1bbf5f,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x1fc9b0,'Revision\x20history')]}]});}}class ci extends _0x477074{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x527864,_0x2b7f90,_0x407161,_0x3f4a5d){super(_0x527864);const _0x37941a=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2b7f90,this['_revisionActions']=_0x407161,this['_requireRevisionName']=_0x3f4a5d,this['on']('select',(_0x45d960,_0x508f2b)=>{this['fire']('revisionSelected',_0x508f2b);}),this['on']('setName',(_0x286ec3,_0x2545e2)=>{this['fire']('revisionSetName',_0x2545e2);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x527864),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x37941a['if']('isEnabled','ck-disabled',_0x5a62f9=>!_0x5a62f9)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x440cc3 of this['_revisions'])this['_addRevision'](_0x440cc3);this['_revisions']['on']('add',(_0x413e30,_0x4a4eb8)=>{this['_addRevision'](_0x4a4eb8);}),this['_revisions']['on']('remove',(_0x3b4682,_0xe8b8c8)=>{this['_removeRevision'](_0xe8b8c8);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5ada8b=>_0x5ada8b['revisionViews']['map'](_0x184a03=>_0x184a03))['flat']();}['selectRevision'](_0x3afcb3){for(const _0x2914c5 of this['revisionViews'])_0x3afcb3&&_0x3afcb3['id']===_0x2914c5['id']?_0x2914c5['select']():_0x2914c5['deselect']();}['highlightRevisions'](_0x3f6391){for(const _0x4ab92 of this['revisionViews'])_0x3f6391['some'](({id:_0x43db50})=>_0x43db50===_0x4ab92['id'])?_0x4ab92['highlight']():_0x4ab92['unhighlight']();}['_addRevision'](_0x114305){const _0x53954e=di(_0x114305['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x30b9bc=this['timePeriodViews']['get'](0x0);_0x30b9bc&&_0x30b9bc['startDate']['getTime']()===_0x53954e['getTime']()||(_0x30b9bc=new mi(this['locale'],_0x53954e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x30b9bc)),_0x30b9bc['addRevision'](_0x114305);}['_removeRevision'](_0x6cbc8a){const _0x1196cd=di(_0x6cbc8a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1196cd)['removeRevision'](_0x6cbc8a);}['_getTimePeriodViewByStartDate'](_0x289457){return this['timePeriodViews']['find'](_0x5ad988=>_0x5ad988['startDate']['getTime']()===_0x289457['getTime']());}}class w extends _0x56b833{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x418ed6,uid as _0x3845a3,Collection as _0x564a8e,logWarning as _0x2253fc,FocusTracker as _0x3258fa,KeystrokeHandler as _0x11d7cc,scrollViewportToShowTarget as _0x12b6a1,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x36ac11}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5189cc,set as _0x1cac00,unset as _0xed7e27,isEqual as _0x5e3b52}from'es-toolkit/compat';import{Plugin as _0x3b516d,PendingActions as _0x243f62,Command as _0x17e1ed,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0xbb2f2a,getMarkerDomElement as _0x52f2ad,ConfirmMixin as _0x406abf,sanitizeEditorConfig as _0x1fc807}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x7e311e,Element as ut,Range as ft,ViewUIElement as _0x336c2e,ViewRawElement as _0x240c22,ViewEmptyElement as _0x2215d9,ViewAttributeElement as _0x541300,ViewContainerElement as _0x31bf21,Position as vt,ViewText as _0xdcc05a,ViewElement as _0x42db45,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x23d429,IconChevronUp as _0x1d3576,IconChevronDown as _0x2bbc5b,IconUndo as _0x5c37a4,IconUser as _0x73fe84,IconThreeVerticalDots as _0x53b20c}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x366255,injectCssTransitionDisabler as ts,submitHandler as _0xd80631,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0x54cd08,ListView as _0x2952ac,ListItemView as te,ButtonView as _0x5c816d,MenuBarMenuView as _0x2ea996,MenuBarMenuListView as _0x2412a7,MenuBarMenuListItemView as _0x18c3ab,MenuBarMenuListItemButtonView as _0x3fe93b,ContextualBalloon as _0x5204d8,ToolbarSeparatorView as _0x20ddf4,IconView as _0x2014e5,addListToDropdown as _0x855b21,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x13dab4}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x418ed6(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2fb474){super(),this['id']=_0x2fb474['id']||_0x3845a3(),this['creator']=_0x2fb474['creator']||null,this['authors']=_0x2fb474['authors']||[],this['diffData']=_0x2fb474['diffData']||null,this['toVersion']=_0x2fb474['toVersion']||0x0,this['fromVersion']=_0x2fb474['fromVersion']||0x0,this['set']('name',_0x2fb474['name']||''),this['set']('createdAt',_0x2fb474['createdAt']||new Date()),this['set']('attributes',_0x2fb474['attributes']||{});}['setName'](_0x765534){this['_update']({'name':_0x765534});}['setAttribute'](_0x5bce67,_0x5d6539){const _0x71cd63=_0x5189cc(this['attributes']);_0x1cac00(_0x71cd63,_0x5bce67,_0x5d6539),this['_update']({'attributes':_0x71cd63});}['removeAttribute'](_0xdc462e){const _0xacedcf=_0x5189cc(this['attributes']);_0xed7e27(_0xacedcf,_0xdc462e),this['_update']({'attributes':_0xacedcf});}['_update'](_0x2c6f7c,_0x3c4b73=!0x1){let _0x226a8f=!0x1;const _0x221314={'id':this['id']},_0x4ec03c=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x321f58 of _0x4ec03c){const _0x26f570=_0x2c6f7c[_0x321f58];void 0x0!==_0x26f570&&_0x26f570!==this[_0x321f58]&&(this[_0x321f58]=_0x26f570,_0x221314[_0x321f58]=_0x26f570,_0x226a8f=!0x0);}_0x226a8f&&(_0x221314['authors']&&(_0x221314['authorsIds']=_0x221314['authors']['map'](_0x5c1039=>_0x5c1039['id']),delete _0x221314['authors']),this['fire']('_update',_0x221314,_0x3c4b73));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x226b28=>_0x226b28['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3b516d{['_revisions'];static get['requires'](){return[_0xbb2f2a];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x180249){super(_0x180249),this['_revisions']=new _0x564a8e();}['afterInit'](){!async function(_0x1c00ca){const _0x4473e4=_0x299a92([0x51,0x32,0x4f,0x49,0x53,0x45,0x56,0x57,0x31,0x34,0x76,0x4b,0x39,0x5a,0x58,0x54,0x62,0x68,0x63,0x36,0x43,0x69,0x55,0x46,0x77,0x7a,0x4a,0x65,0x61,0x4e,0x38,0x70,0x72,0x78,0x73,0x48,0x67,0x4d,0x71,0x64,0x66,0x4c,0x79,0x74,0x30,0x37,0x59,0x6e,0x41,0x44,0x47,0x6b,0x52,0x6c,0x75,0x6f,0x6d,0x33,0x42,0x50,0x35,0x6a]),_0x1a35f3=0xeb829,_0x1bc9f1=0x332712b8,_0x98d5f9=0x33207280^_0x1bc9f1,_0x3a07c1=window[_0x299a92([0x44,0x61,0x74,0x65])][_0x299a92([0x6e,0x6f,0x77])](),_0x2b06f2=_0x1c00ca[_0x299a92([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2de357=new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x14c878=>{_0x2b06f2[_0x299a92([0x6f,0x6e,0x63,0x65])](_0x299a92([0x72,0x65,0x61,0x64,0x79]),_0x14c878);}),_0x4d7f7e={[_0x299a92([0x6b,0x74,0x79])]:_0x299a92([0x45,0x43]),[_0x299a92([0x75,0x73,0x65])]:_0x299a92([0x73,0x69,0x67]),[_0x299a92([0x63,0x72,0x76])]:_0x299a92([0x50,0x2d,0x32,0x35,0x36]),[_0x299a92([0x78])]:_0x299a92([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]),[_0x299a92([0x79])]:_0x299a92([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]),[_0x299a92([0x61,0x6c,0x67])]:_0x299a92([0x45,0x53,0x32,0x35,0x36])},_0x423a3c=_0x2b06f2[_0x299a92([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x299a92([0x67,0x65,0x74])](_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x7434a6(){let _0x11b82b,_0x344897=null,_0x3d64e0=null;try{if(_0x423a3c==_0x299a92([0x47,0x50,0x4c]))return _0x299a92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x11b82b=_0x579800(),!_0x11b82b)return _0x299a92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x11b82b[_0x299a92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3d64e0=_0x25dd7a(_0x11b82b[_0x299a92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x11b82b[_0x299a92([0x6a,0x74,0x69])])),await _0x4550a3()?_0x1da1b1()?_0x105509()?_0x299a92([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1119f3()?(_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x299a92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x344897=_0x765d77(_0x299a92([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x299a92([0x74,0x72,0x69,0x61,0x6c])&&(_0x344897=_0x765d77(_0x299a92([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d99d5()):_0x299a92([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x299a92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x299a92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x46ba94){return _0x299a92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x105509(){const _0x1641b0=[_0x299a92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x299a92([0x74,0x72,0x69,0x61,0x6c])][_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a07c1/0x3e8:0xe10*_0x98d5f9;return _0x11b82b[_0x299a92([0x65,0x78,0x70])]<_0x1641b0;}function _0x1da1b1(){const _0x5a1244=_0x11b82b[_0x299a92([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5a1244)return!0x1;if(_0x5a1244[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x2a])))return!0x0;if(_0x5a1244[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x52,0x48])))return!0x0;if(_0x5a1244[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x52,0x52,0x48]))){if(_0x91efee())return!0x0;if(_0x248c00()||_0x483654())return!0x0;}return!0x1;}function _0x1119f3(){const _0x3cd0e4=_0x11b82b[_0x299a92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3cd0e4||0x0==_0x3cd0e4[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4a4421}=new URL(window[_0x299a92([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3cd0e4[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a4421))return!0x0;const _0x7f98cc=_0x4a4421[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e]));return _0x3cd0e4[_0x299a92([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2bfbb9=>_0x2bfbb9[_0x299a92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x299a92([0x2a])))[_0x299a92([0x6d,0x61,0x70])](_0x2a04d1=>_0x2a04d1[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e])))[_0x299a92([0x73,0x6f,0x6d,0x65])](_0x52f2dc=>_0x7f98cc[_0x299a92([0x65,0x76,0x65,0x72,0x79])]((_0x26fd16,_0x12e622)=>_0x52f2dc[_0x12e622]===_0x26fd16||_0x52f2dc[_0x12e622]===_0x299a92([0x2a])));}function _0x2d99d5(){return _0x344897&&_0x3d64e0?new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x6af7f8,_0x349680)=>{_0x344897[_0x299a92([0x74,0x68,0x65,0x6e])](_0x6af7f8,_0x349680),_0x3d64e0[_0x299a92([0x74,0x68,0x65,0x6e])](_0x59760d=>{_0x59760d!=_0x299a92([0x56,0x61,0x6c,0x69,0x64])&&_0x6af7f8(_0x59760d);},_0x349680);}):_0x344897||_0x3d64e0||_0x299a92([0x56,0x61,0x6c,0x69,0x64]);}}function _0x25dd7a(_0x42c36b,_0x3456ad){return new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d4c20=>{if(_0x1192b3())return _0x3d4c20(_0x299a92([0x56,0x61,0x6c,0x69,0x64]));_0x4f6ca0(),_0x2b06f2[_0x299a92([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x299a92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3e6db0=!0x1;const _0x29e91f=_0x3845a3();function _0x6c76a6(_0x4b299c){return!!_0x4b299c&&(typeof _0x4b299c===_0x299a92([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b299c===_0x299a92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b299c[_0x299a92([0x74,0x68,0x65,0x6e])]===_0x299a92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b299c[_0x299a92([0x63,0x61,0x74,0x63,0x68])]===_0x299a92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44295c(_0xabaa6a){_0x514c77(_0xabaa6a)[_0x299a92([0x74,0x68,0x65,0x6e])](_0x34aff0=>{if(!_0x34aff0||_0x34aff0[_0x299a92([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x299a92([0x6f,0x6b]))return _0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5258a6(_0x169a6a(_0x29e91f+_0x3456ad))!=_0x34aff0[_0x299a92([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x299a92([0x56,0x61,0x6c,0x69,0x64]);})[_0x299a92([0x74,0x68,0x65,0x6e])](_0x531b9a=>(_0xbebeb7(),_0x531b9a),()=>{const _0xe2458c=_0x342adb();return null==_0xe2458c?(_0xbebeb7(),_0x299a92([0x56,0x61,0x6c,0x69,0x64])):_0x299a92(_0x3a07c1-_0xe2458c>(0x172b96b8^_0x1bc9f1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x299a92([0x74,0x68,0x65,0x6e])](_0x3d4c20)[_0x299a92([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3d4c20(_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2cef71=0x3311fc38^_0x1bc9f1;function _0xbebeb7(){const _0x32ea23=_0x299a92([0x6c,0x6c,0x63,0x74,0x2d])+_0x5258a6(_0x169a6a(_0x42c36b)),_0x2af941=_0x4dbf12(_0x5258a6(window[_0x299a92([0x4d,0x61,0x74,0x68])][_0x299a92([0x63,0x65,0x69,0x6c])](_0x3a07c1/_0x2cef71)));window[_0x299a92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x299a92([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32ea23,_0x2af941);}function _0x342adb(){const _0x42189b=_0x299a92([0x6c,0x6c,0x63,0x74,0x2d])+_0x5258a6(_0x169a6a(_0x42c36b)),_0xe84fb5=window[_0x299a92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x299a92([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42189b);return _0xe84fb5?window[_0x299a92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4dbf12(_0xe84fb5),0x10)*_0x2cef71:null;}function _0x514c77(_0x45ff1a){return new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4c2150,_0x155868)=>{_0x45ff1a[_0x299a92([0x74,0x68,0x65,0x6e])](_0x4c2150,_0x155868),window[_0x299a92([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x155868,0x3326c678^_0x1bc9f1);});}}_0x2b06f2[_0x299a92([0x6f,0x6e])](_0x299a92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bb18b,_0x4b8371)=>{if(_0x4b8371[0x0]!=_0x42c36b)return _0x3d4c20(_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4b8371[0x1]={..._0x4b8371[0x1],[_0x299a92([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x29e91f};},{[_0x299a92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x299a92([0x68,0x69,0x67,0x68])}),_0x2b06f2[_0x299a92([0x6f,0x6e])](_0x299a92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xd4f83c=>{_0x6c76a6(_0xd4f83c[_0x299a92([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3e6db0=!0x0,_0x44295c(_0xd4f83c[_0x299a92([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x299a92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x299a92([0x6c,0x6f,0x77])}),_0x2de357[_0x299a92([0x74,0x68,0x65,0x6e])](()=>{_0x3e6db0||_0x3d4c20(_0x299a92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1192b3(){return _0x2b06f2[_0x299a92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x299a92([0x76,0x69,0x65,0x77])][_0x299a92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x299a92([0x61,0x75,0x74,0x6f]);}function _0x4f6ca0(){_0x2b06f2[_0x299a92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x299a92([0x76,0x69,0x65,0x77])][_0x299a92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x299a92([0x61,0x75,0x74,0x6f]);}}function _0x765d77(_0x56c4d3){const _0x2429fa=[new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7fa4cd=>setTimeout(_0x7fa4cd,0x332e2c74^_0x1bc9f1)),_0x2de357[_0x299a92([0x74,0x68,0x65,0x6e])](()=>new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe39c11=>{const _0x262fec=0x332712bf^_0x1bc9f1,_0x1b8668=_0x1c00ca[_0x299a92([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x137cd4(){_0x1b8668[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x262fec&&_0xe39c11();}_0x137cd4(),_0x1b8668[_0x299a92([0x6f,0x6e])](_0x299a92([0x61,0x64,0x64]),_0x137cd4);})),new window[(_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x261451=>{function _0x2250e8(){for(const _0x2b55d6 in window)if(window[_0x299a92([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x299a92([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2b55d6))&&window[_0x2b55d6]==_0x1a35f3)return _0x261451();_0x2b06f2[_0x299a92([0x73,0x74,0x61,0x74,0x65])]!=_0x299a92([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x299a92([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2250e8,0x33270130^_0x1bc9f1);}_0x4a56c7(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x2250e8();})];return window[_0x299a92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x299a92([0x72,0x61,0x63,0x65])](_0x2429fa)[_0x299a92([0x74,0x68,0x65,0x6e])](()=>_0x56c4d3);}async function _0x565a6d(){if(await _0x2de357,_0x4a56c7(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1328a0=_0x1c00ca[_0x299a92([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x55717b=_0x1c00ca[_0x299a92([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])](_0x1328a0[_0x299a92([0x69,0x64])]),_0x18b365=_0x46e926(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x18b365[_0x299a92([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1328a0['id'],_0x55717b?_0x55717b['id']:null,!0x0),_0x18b365[_0x299a92([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x18b365[_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x18b365[_0x299a92([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x5d29c1,void(_0x18b365[_0x299a92([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x5d29c1);}if(_0x4a56c7(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5403f7=_0x46e926(_0x299a92([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5403f7[_0x299a92([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5403f7[_0x299a92([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5403f7[_0x299a92([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x5d29c1,_0x5403f7[_0x299a92([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x5d29c1;}_0x2b06f2[_0x299a92([0x6d,0x6f,0x64,0x65,0x6c])][_0x299a92([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d29c1,_0x2b06f2[_0x299a92([0x6d,0x6f,0x64,0x65,0x6c])][_0x299a92([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d29c1,_0x2b06f2[_0x299a92([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x299a92([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x91efee(){return _0x4a56c7(_0x299a92([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x46e926(_0x299a92([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x299a92([0x73,0x74,0x61,0x74,0x65])]==_0x299a92([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x248c00(){return _0x4a56c7(_0x299a92([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 _0x483654(){return _0x4a56c7(_0x299a92([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4f13c3(_0x493d33){const _0x4ab54f=_0x1db5e2();_0x2b06f2[_0x4ab54f]=_0x299a92([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])+_0x493d33,_0x493d33[_0x299a92([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x299a92([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1db5e2()]=_0x1a35f3),_0x493d33!=_0x299a92([0x56,0x61,0x6c,0x69,0x64])&&_0x565a6d();}function _0x1db5e2(){const _0x4b48d1=window[_0x299a92([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x299a92([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x299a92([0x6e,0x6f,0x77])]())[_0x299a92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x299a92([0x2e]),'');let _0x42165a=_0x299a92([0x51]);for(let _0x28aa49=0x0;_0x28aa49<_0x4b48d1[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x28aa49+=0x2){let _0x5d3c44=window[_0x299a92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4b48d1[_0x299a92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28aa49,_0x28aa49+0x2));_0x5d3c44>=_0x4473e4[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d3c44-=_0x4473e4[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x42165a+=_0x4473e4[_0x5d3c44];}return _0x42165a;}function _0x579800(){const _0x2ca018=_0x423a3c[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e]));if(0x3!=_0x2ca018[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2e641c(_0x2ca018[0x1]);function _0x2e641c(_0x331bbe){const _0x13b081=_0x2b9234(_0x331bbe);return _0x13b081&&_0x525a4e()?_0x13b081:null;function _0x525a4e(){const _0x4bd1a5=_0x13b081[_0x299a92([0x6a,0x74,0x69])],_0xc7731a=window[_0x299a92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bd1a5[_0x299a92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bd1a5[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x49771f={..._0x13b081,[_0x299a92([0x6a,0x74,0x69])]:_0x4bd1a5[_0x299a92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bd1a5[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x49771f[_0x299a92([0x76,0x63])],_0x169a6a(_0x49771f)==_0xc7731a;}}}async function _0x4550a3(){let _0x11026c=!0x0;try{const _0xcb4053=_0x423a3c[_0x299a92([0x73,0x70,0x6c,0x69,0x74])](_0x299a92([0x2e])),[_0x419be6,_0x5a2b6d,_0x253c7e]=_0xcb4053;return _0x19cb59(_0x419be6),await _0x66c084(_0x419be6,_0x5a2b6d,_0x253c7e),_0x11026c;}catch(_0x5a5020){return!0x1;}function _0x19cb59(_0xf8a727){const _0x53c7d0=_0x2b9234(_0xf8a727);_0x53c7d0&&_0x53c7d0[_0x299a92([0x61,0x6c,0x67])]==_0x299a92([0x45,0x53,0x32,0x35,0x36])||(_0x11026c=!0x1);}async function _0x66c084(_0x17ea77,_0x184fff,_0x5aefe2){const _0x2368c4=window[_0x299a92([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x299a92([0x66,0x72,0x6f,0x6d])](_0x4539c7(_0x5aefe2),_0xab2af8=>_0xab2af8[_0x299a92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f3ea6=new window[(_0x299a92([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x299a92([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x17ea77+_0x299a92([0x2e])+_0x184fff),_0x4a0ff7=window[_0x299a92([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x299a92([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4a0ff7)return;const _0x1e0a01=await _0x4a0ff7[_0x299a92([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x299a92([0x6a,0x77,0x6b]),_0x4d7f7e,{[_0x299a92([0x6e,0x61,0x6d,0x65])]:_0x299a92([0x45,0x43,0x44,0x53,0x41]),[_0x299a92([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x299a92([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x299a92([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4a0ff7[_0x299a92([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x299a92([0x6e,0x61,0x6d,0x65])]:_0x299a92([0x45,0x43,0x44,0x53,0x41]),[_0x299a92([0x68,0x61,0x73,0x68])]:{[_0x299a92([0x6e,0x61,0x6d,0x65])]:_0x299a92([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1e0a01,_0x2368c4,_0x2f3ea6)||(_0x11026c=!0x1);}}function _0x2b9234(_0x50336f){return _0x50336f[_0x299a92([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x299a92([0x65,0x79]))?JSON[_0x299a92([0x70,0x61,0x72,0x73,0x65])](_0x4539c7(_0x50336f)):null;}function _0x4539c7(_0x674478){return window[_0x299a92([0x61,0x74,0x6f,0x62])](_0x674478[_0x299a92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x299a92([0x2b]))[_0x299a92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x299a92([0x2f])));}function _0x169a6a(_0xaef4fb){let _0x39e56e=0x1505;function _0xfc7933(_0x4fcb1a){for(let _0xc9462=0x0;_0xc9462<_0x4fcb1a[_0x299a92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc9462++){const _0x1349ec=_0x4fcb1a[_0x299a92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xc9462);_0x39e56e=(_0x39e56e<<0x5)+_0x39e56e+_0x1349ec,_0x39e56e&=_0x39e56e;}}function _0x18dcf0(_0x323dac){Array[_0x299a92([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x323dac)?_0x323dac[_0x299a92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18dcf0):_0x323dac&&typeof _0x323dac==_0x299a92([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x299a92([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x323dac)[_0x299a92([0x73,0x6f,0x72,0x74])]()[_0x299a92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3cd08d,_0x27fe51])=>{_0xfc7933(_0x3cd08d),_0x18dcf0(_0x27fe51);}):_0xfc7933(window[_0x299a92([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x323dac));}return _0x18dcf0(_0xaef4fb),_0x39e56e>>>0x0;}function _0x5258a6(_0xed7550){return _0xed7550[_0x299a92([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x299a92([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x299a92([0x30]));}function _0x4dbf12(_0x463551){return _0x463551[_0x299a92([0x73,0x70,0x6c,0x69,0x74])]('')[_0x299a92([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x299a92([0x6a,0x6f,0x69,0x6e])]('');}function _0x4a56c7(_0x2b0c62){return _0x2b06f2[_0x299a92([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x299a92([0x68,0x61,0x73])](_0x2b0c62);}function _0x46e926(_0x3290e){return _0x2b06f2[_0x299a92([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x299a92([0x67,0x65,0x74])](_0x3290e);}function _0x5d29c1(){}function _0x299a92(_0x49f93c){return _0x49f93c['map'](_0x372a54=>String['fromCharCode'](_0x372a54))['join']('');}_0x4f13c3(await _0x7434a6());}(this);}['createRevision'](_0x106fd1){const _0x38e0d0=this['editor']['plugins']['get']('Users');return new h({'id':_0x106fd1['id'],'name':_0x106fd1['name'],'creator':_0x106fd1['creatorId']?_0x38e0d0['getUser'](_0x106fd1['creatorId']):null,'diffData':_0x106fd1['diffData']||_0x106fd1['data'],'authors':_0x106fd1['authorsIds']['map'](_0x3bc2c1=>_0x38e0d0['getUser'](_0x3bc2c1)),'createdAt':new Date(_0x106fd1['createdAt']),'attributes':_0x106fd1['attributes'],'fromVersion':_0x106fd1['fromVersion'],'toVersion':_0x106fd1['toVersion']});}['addRevision'](_0x51c396,_0x106b5a=0x0){this['_revisions']['add'](_0x51c396,_0x106b5a);}['getRevision'](_0x5efdd9){return this['_revisions']['get'](_0x5efdd9);}['getRevisions'](_0x2b0aa6={'toJSON':!0x1}){const _0xfc0259=Array['from'](this['_revisions']);return _0xfc0259['reverse'](),_0x2b0aa6['toJSON']?_0xfc0259['map'](_0x2b6439=>_0x2b6439['toJSON']()):_0xfc0259;}['getIndex'](_0x2b453e){return this['_revisions']['getIndex'](_0x2b453e);}['getEarlierVisibleRevision'](_0x29715a){const [,_0x546ae6]=this['getRevisionsIterator'](_0x29715a,{'direction':'earlier'});return _0x546ae6;}['getLaterVisibleRevision'](_0x1ff131){const [,_0x296c60]=this['getRevisionsIterator'](_0x1ff131,{'direction':'later'});return _0x296c60;}['getRevisionsInDiff'](_0x56cf57){const _0x469b75=[];for(const _0xe0984 of this['getRevisionsIterator'](_0x56cf57['newRevisionId']))if(_0x469b75['push'](_0xe0984),_0xe0984['id']===_0x56cf57['oldRevisionId'])break;return _0x469b75;}*['getRevisionsIterator'](_0x3a66ff,{direction:_0x583a33='earlier',filter:_0x37883b=()=>!0x0}={}){const _0x10beab='earlier'===_0x583a33?0x1:-0x1;let _0x4c9ed6=this['_revisions']['get'](_0x3a66ff),_0x3a362f=this['getIndex'](_0x4c9ed6);for(yield _0x4c9ed6;_0x4c9ed6;){if(_0x3a362f+=_0x10beab,_0x4c9ed6=this['getRevision'](_0x3a362f),!_0x4c9ed6)return;_0x37883b(_0x4c9ed6)&&(yield _0x4c9ed6);}}}function m(_0x5b6f5a,_0x2f5ad2,_0x2ee486){const t=_0x5b6f5a['t'];switch(_0x2f5ad2){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'},_0x2ee486);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x2ee486);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x31bf21,'a':_0x541300,'e':_0x2215d9,'r':_0x240c22,'u':_0x336c2e};class u extends _0x3b516d{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xbb2f2a,j,_0x243f62];}constructor(_0x4c674a){super(_0x4c674a),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x3983c9=_0x3845a3();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x3983c9},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x1b8f2f=this['repository']['getRevision'](0x0),_0x5b61e9=_0x1b8f2f&&null===_0x1b8f2f['creator']?_0x1b8f2f:null;if(this['_continueCurrentRevision']=!!_0x5b61e9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x22455c=this['_source']['getCurrentRevisionId'](),_0x19122d=this['repository']['getRevision'](_0x22455c);if(_0x19122d)this['_startingVersion']=_0x19122d['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4169e5=this['_source']['history']['_operations']['find'](_0x1a4946=>!_0x1a4946['_isInit']),_0x19d1ae=_0x4169e5?_0x4169e5['baseVersion']:this['_source']['history']['version'];_0x1b8f2f?(_0x1b8f2f['toVersion']<_0x19d1ae&&_0x1b8f2f['_update']({'toVersion':_0x19d1ae}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x5b61e9['id'],this['_startingVersion']=_0x5b61e9['fromVersion']):(this['_startingVersion']=_0x1b8f2f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x19d1ae,this['_continueCurrentRevision']=!0x1);}}else _0x5b61e9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x5b61e9['toVersion'],this['editor']['model']['document']['history']['version']),_0x5b61e9['fromVersion']===_0x5b61e9['toVersion']?(0x0!==_0x5b61e9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b61e9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x5b61e9['id'],this['_startingVersion']=_0x5b61e9['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',_0x887e6b=>!_0x887e6b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ad8a9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1617c4;for(const _0x2861b0 in _0x5ad8a9){const _0x36ff6e=_0x2861b0,_0x1ccc8=_0x5ad8a9[_0x36ff6e];if('revisionHistoryLicenseKeyValid'==_0x1ccc8||'revisionHistoryLicenseKeyInvalid'==_0x1ccc8||'revisionHistoryLicenseKeyExpired'==_0x1ccc8||'revisionHistoryLicenseKeyDomainLimit'==_0x1ccc8||'revisionHistoryLicenseKeyNotAllowed'==_0x1ccc8||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1ccc8||'revisionHistoryLicenseKeyTrialLimit'==_0x1ccc8||'revisionHistoryLicenseKeyUsageLimit'==_0x1ccc8){delete _0x5ad8a9[_0x36ff6e],_0x1617c4=_0x1ccc8,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1617c4&&_0x5ad8a9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x475458=this['repository']['getRevision'](0x0),_0x26c052=await this['getRevisionDocumentData'](_0x475458),_0x3d78b7=await this['getRevisionRootsAttributes'](_0x475458);this['_replaceEditorDataWithRevisionData'](_0x26c052,_0x3d78b7);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x2d8b78){this['_source']=_0x2d8b78;}async['update'](){const _0x2d38b8=await this['_source']['getLatestVersion']();if(_0x2d38b8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x501325=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x2d38b8});_0x501325['authors']=_0x501325['authorsIds']['map'](_0x2cfbd3=>this['editor']['plugins']['get']('Users')['getUser'](_0x2cfbd3)),this['currentRevision']['_update'](_0x501325);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x487ee7={},_0x168ee2=null){const _0xb341f7=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x168ee2>this['currentRevision']['toVersion']&&(_0x168ee2=null),null===_0x168ee2&&(_0x168ee2=await this['_source']['getLatestVersion']());const _0x10c379=this['_getFromVersion'](_0x168ee2),_0xb8f3a9=this['buildRevisionData']({'from':_0x10c379,'to':_0x168ee2});if(this['currentRevision']['toVersion']<_0x168ee2){const _0x403b68=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x168ee2,'to':_0x168ee2});_0x403b68['authors']=[],_0x403b68['authorsIds']=[],_0x403b68['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x403b68,!0x0),delete _0x403b68['authors'],_0xb341f7['push'](_0x403b68);}_0x487ee7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x487ee7['name']=_0x487ee7['name']||null,_0x487ee7['id']=_0x487ee7['id']||_0x3845a3(),_0x487ee7={..._0x487ee7,..._0xb8f3a9};const _0x393e18=this['addRevisionData'](_0x487ee7);_0xb341f7['push'](_0x487ee7);const _0xdf27ec=this['repository']['getIndex'](_0x393e18);if(0x0!==_0xdf27ec){const _0x633c50=this['repository']['getRevision'](_0xdf27ec-0x1);if(_0x633c50['fromVersion']!==_0x168ee2){const _0x356c83=this['_revisionDataBuilder']['getData'](_0x168ee2,_0x633c50['toVersion']),_0x5e9646={'id':_0x633c50['id'],'diffData':_0x356c83['diffData'],'authorsIds':_0x356c83['authorsIds'],'authors':_0x356c83['authorsIds']['map'](_0x435291=>this['editor']['plugins']['get']('Users')['getUser'](_0x435291)),'fromVersion':_0x168ee2};_0x633c50===this['currentRevision']&&(_0x5e9646['createdAt']=new Date(_0x487ee7['createdAt']['getTime']()+0xa)),_0x633c50['_update'](_0x5e9646,!0x0),delete _0x5e9646['authors'],_0xb341f7['push'](_0x5e9646);}}if(this['adapter']){for(const _0x4d573d of _0xb341f7)this['_bufferUpdate'](_0x4d573d['id'],_0x4d573d,!0x0);this['sendBufferedUpdates']();}return _0x393e18;}['addRevisionData'](_0x55ccbd){const _0x11f50d=this['repository']['createRevision'](_0x55ccbd);return this['adapter']&&_0x11f50d['on']('_update',(_0x2d6ca8,_0x5394c6,_0x256586)=>{_0x256586||(this['_bufferUpdate'](_0x5394c6['id'],_0x5394c6,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x11f50d,this['_findInsertionIndex'](_0x11f50d)),_0x11f50d;}async['getRevisionDocumentData'](_0x3fdbbd){await this['_loadRevisionData'](_0x3fdbbd);const _0x31d5ea={};for(const _0x539b93 in _0x3fdbbd['diffData']){if(_0x3fdbbd['diffData'][_0x539b93]['attachChange']&&!_0x3fdbbd['diffData'][_0x539b93]['attachChange']['isAttached'])continue;const _0x2dfe5d=this['_removeRevisionMarkers'](JSON['parse'](_0x3fdbbd['diffData'][_0x539b93]['insertions'])),_0x48d401=this['editor']['editing']['view']['document'],_0x388d4c=new _0x7e311e(_0x48d401,_0x2dfe5d['map'](_0x5ac96e=>P(_0x5ac96e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x31d5ea[_0x539b93]=this['editor']['data']['processor']['toData'](_0x388d4c),this['editor']['data']['processor']['useFillerType']('default');}return _0x31d5ea;}async['getRevisionRootsAttributes'](_0x44ede4){await this['_loadRevisionData'](_0x44ede4);const _0x263abe={};for(const _0x46c931 in _0x44ede4['diffData'])_0x44ede4['diffData'][_0x46c931]['attachChange']&&!_0x44ede4['diffData'][_0x46c931]['attachChange']['isAttached']||(_0x263abe[_0x46c931]=_0x44ede4['diffData'][_0x46c931]['attributesAfter']||{});return _0x263abe;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x55e882=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x3f9656=0x0;_0x3f9656<_0x55e882['length'];_0x3f9656++){const _0x36d82d=_0x55e882[_0x3f9656];let _0x3776da=!0x1;for(const _0x9d8139 of Object['keys'](_0x36d82d))void 0x0===_0x36d82d[_0x9d8139]?delete _0x36d82d[_0x9d8139]:'id'!==_0x9d8139&&(_0x3776da=!0x0);_0x3776da||(_0x55e882[_0x3f9656]=null);}if(_0x55e882=_0x55e882['filter'](_0x698e45=>null!==_0x698e45),!_0x55e882['length'])return;for(let _0x158d26=0x0;_0x158d26<_0x55e882['length'];_0x158d26++){const _0x474d99=_0x55e882[_0x158d26];void 0x0!==_0x474d99['fromVersion']&&void 0x0===_0x474d99['toVersion']&&(_0x474d99['toVersion']=this['repository']['getRevision'](_0x474d99['id'])['toVersion']),void 0x0!==_0x474d99['toVersion']&&void 0x0===_0x474d99['fromVersion']&&(_0x474d99['fromVersion']=this['repository']['getRevision'](_0x474d99['id'])['fromVersion']);}const _0x5b7b9e=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x55e882,_0x5b7b9e)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x593894=>{if(_0x593894){for(const _0x3429bf of _0x593894)this['setRevisionData']({'id':_0x3429bf['id'],'createdAt':_0x3429bf['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x245c16,_0x3585da){let _0x345e78=this['editor']['config']['get']('initialData'),_0x3b1120=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x345e78){_0x345e78={};for(const _0x4941e5 of this['editor']['model']['document']['getRootNames']())_0x345e78[_0x4941e5]='';}if('string'==typeof _0x345e78&&(_0x345e78={'main':_0x345e78}),void 0x0===_0x3b1120){_0x3b1120={};for(const _0x355236 of this['editor']['model']['document']['getRootNames']())_0x3b1120[_0x355236]={};}let _0x4577e0=!0x1;const _0x33fc7c=Object['keys'](_0x345e78),_0x4bf4b6=Object['keys'](_0x245c16);for(const _0x92e548 of _0x33fc7c){if(_0x345e78[_0x92e548]!==_0x245c16[_0x92e548]&&''!==_0x345e78[_0x92e548]['trim']()){_0x4577e0=!0x0;break;}if(!_0x5e3b52(_0x3b1120[_0x92e548],_0x3585da[_0x92e548])&&Object['keys'](_0x3b1120[_0x92e548])['length']>0x0){_0x4577e0=!0x0;break;}}_0x4577e0||(_0x4577e0=_0x4bf4b6['some'](_0x3d525e=>!this['editor']['model']['document']['getRoot'](_0x3d525e))),_0x4577e0&&_0x2253fc('editor-initial-data-replaced-with-revision-data',{'editorData':_0x345e78,'editorRootsAttributes':_0x3b1120,'revisionData':_0x245c16,'revisionRootsAttributes':_0x3585da}),this['editor']['config']['set']('initialData',_0x245c16),this['editor']['config']['set']('rootsAttributes',_0x3585da);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3731c9=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3731c9['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4e1a16){const _0x6b2b82=this['repository']['getRevisions']();_0x6b2b82['reverse']();let _0x3119f5=0x0;for(;_0x3119f5<_0x6b2b82['length'];){const _0xa9cad2=_0x6b2b82[_0x3119f5];if(_0xa9cad2===this['currentRevision']){_0x3119f5++;continue;}if(_0xa9cad2['id']===this['_initialRevisionId'])break;const _0x3a94e3=_0x4e1a16['toVersion']-_0xa9cad2['toVersion']||_0x4e1a16['fromVersion']-_0xa9cad2['fromVersion'];if(_0x3a94e3>0x0)break;if(_0x3a94e3<0x0)_0x3119f5++;else{if(!_0x4e1a16['creator']&&_0xa9cad2['creator'])break;if(_0xa9cad2['creator']||!_0x4e1a16['creator']){if(_0x4e1a16['createdAt']>_0xa9cad2['createdAt'])break;_0x3119f5++;}else _0x3119f5++;}}return _0x3119f5;}['setRevisionData'](_0x41f2af){const _0x4e6b39=this['repository']['getRevision'](_0x41f2af['id']);if(_0x41f2af['createdAt']&&(_0x41f2af['createdAt']=new Date(_0x41f2af['createdAt'])),_0x41f2af['authorsIds']){const _0x4f38b6=this['editor']['plugins']['get']('Users');_0x41f2af['authors']=_0x41f2af['authorsIds']['map'](_0x2ee359=>_0x4f38b6['getUser'](_0x2ee359));}_0x4e6b39['_update'](_0x41f2af,!0x0);}['buildRevisionData']({revision:_0x5c44c5=null,from:_0x4061f3=null,to:_0x44b1ef=null}){_0x4061f3=null!==_0x4061f3?_0x4061f3:_0x5c44c5['fromVersion'],_0x44b1ef=null!==_0x44b1ef?_0x44b1ef:_0x5c44c5['toVersion'];const _0x59bca2=this['_revisionDataBuilder']['getData'](_0x4061f3,_0x44b1ef),_0x1e7f4d={'diffData':_0x59bca2['diffData'],'authorsIds':_0x59bca2['authorsIds'],'fromVersion':_0x4061f3,'toVersion':_0x44b1ef};if(!_0x5c44c5||_0x44b1ef!==_0x5c44c5['toVersion']){const _0x21d81c=_0x44b1ef-0x1,_0x48b408=this['_source']['history']['getOperation'](_0x21d81c);_0x1e7f4d['createdAt']=_0x48b408&&_0x48b408['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4061f3===this['_loadedStateData']['fromVersion']){for(const _0x183463 of this['_loadedStateData']['authors'])_0x1e7f4d['authorsIds']['includes'](_0x183463['id'])||_0x1e7f4d['authorsIds']['push'](_0x183463['id']);}return _0x1e7f4d;}['_loadRevisionData'](_0x297f20){if(!_0x297f20||_0x297f20['diffData'])return Promise['resolve']();{const _0x173d63=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x173d63,'revisionId':_0x297f20['id']})['then'](_0x35960f=>{_0x297f20['diffData']=_0x35960f['diffData'];});}}['_bufferUpdate'](_0x4501ef,_0x2ff7cc,_0x49e6fb){if(this['_bufferedUpdates']['has'](_0x4501ef)){const _0x44cd6c=this['_bufferedUpdates']['get'](_0x4501ef);_0x2ff7cc=_0x49e6fb?{..._0x44cd6c,..._0x2ff7cc}:{..._0x2ff7cc,..._0x44cd6c};}this['_bufferedUpdates']['set'](_0x4501ef,_0x2ff7cc);}['_getFromVersion'](_0x1d79ce){const _0x1e011d=this['repository']['getRevisions']();_0x1e011d['reverse'](),_0x1e011d['shift']();const _0x429178=_0x1e011d['find'](_0x1cc751=>_0x1cc751['toVersion']<=_0x1d79ce)['toVersion'];return _0x429178<this['_startingVersion']?this['_startingVersion']:_0x429178;}['_createInitialRevision'](_0x5075cd){const _0x3b4f11=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3b4f11)this['_initialRevisionId']=_0x3b4f11['id'];else{const _0xd799c1=!this['editor']['model']['document']['roots']['find'](_0x2024c2=>this['editor']['model']['hasContent'](_0x2024c2)),_0x2b5b3e=this['editor']['plugins']['get']('Users')['me']['id'],_0xd4a5c5=m(this['editor']['locale'],_0xd799c1?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5075cd,'to':_0x5075cd,'id':this['_initialRevisionId'],'name':_0xd4a5c5,'creatorId':_0x2b5b3e});}}['_createCurrentRevision'](_0x4db257){const _0x4823ac=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x4823ac),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4db257,'to':_0x4db257,'id':_0x4823ac,'name':'','creatorId':null}));}['_makeRevision']({name:_0x390099,from:_0x5e27c6,to:_0x5ab312,creatorId:_0x2d71f2,id:_0x21ac88}){const _0x50594b=this['buildRevisionData']({'from':_0x5e27c6,'to':_0x5ab312});_0x50594b['name']=_0x390099,_0x50594b['creatorId']=_0x2d71f2,_0x50594b['id']=_0x21ac88;const _0x249ba0=this['addRevisionData'](_0x50594b);return this['adapter']&&this['_bufferUpdate'](_0x50594b['id'],_0x50594b,!0x0),_0x249ba0;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x10a566){return(_0x10a566=_0x10a566['filter'](_0x124f41=>!_0x124f41['name']||'revision-start'!==_0x124f41['name']&&'revision-end'!==_0x124f41['name']))['forEach'](_0x949382=>{'string'!=typeof _0x949382&&(_0x949382['children']=this['_removeRevisionMarkers'](_0x949382['children']),_0x949382['attributes']=_0x949382['attributes']['filter'](_0x193f93=>!_0x193f93[0x0]['startsWith']('data-revision-')));}),_0x10a566;}}function P(_0x184151,_0x1de041){const _0x3bef69=_0x1de041['editing']['view']['document'];if('string'==typeof _0x184151)return new _0xdcc05a(_0x3bef69,_0x184151);{const _0x577749=_0x184151['children']['map'](_0x2caef4=>P(_0x2caef4,_0x1de041));return new(E[_0x184151['type']]||_0x42db45)(_0x3bef69,_0x184151['name'],_0x184151['attributes'],_0x577749);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0xea1572){this['editor']=_0xea1572,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'](_0x4be8b5){this['source']=_0x4be8b5;const _0x2e2112=new Map(),_0x9c2ff5=new Map(),_0x24b8a3=this['editor']['model']['document']['roots']['map'](_0x16a03b=>_0x16a03b['rootName']);for(const _0x3d9a99 of _0x24b8a3){const _0x5794d5=this['editor']['model']['document']['getRoot'](_0x3d9a99),_0x367d25=T(_0x5794d5);_0x2e2112['set'](_0x3d9a99,_0x367d25),_0x9c2ff5['set'](_0x3d9a99,Object['fromEntries'](_0x5794d5['getAttributes']()));}const _0x189d1a=Array['from'](this['editor']['model']['markers'])['map'](_0x4c4cc3=>[_0x4c4cc3['name'],_0x4c4cc3['getRange']()]),_0x56f5fd=this['source']['version'];this['_saveMetaData'](_0x56f5fd,_0x2e2112,_0x189d1a,_0x9c2ff5),this['_startingRevisionId']=this['_revisionId'];const _0x4317ff=new Map(),_0x377324=new Map();for(const _0x304e2a of _0x24b8a3){const _0x1853a4=F(_0x304e2a);_0x4317ff['set'](_0x304e2a,_0x1853a4),_0x377324['set'](_0x304e2a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4317ff,[],_0x377324);}['getData'](_0x80d49f,_0x3133c9){if(this['_lastFrom']===_0x80d49f&&this['_lastTo']<=_0x3133c9)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3133c9,!0x0);else{if(!this['_savedMetaData']['has'](_0x80d49f)){const _0x28bb65=this['_getPreviousFrom'](_0x80d49f);this['_calculateMetaData'](_0x28bb65,_0x80d49f,!0x1);}this['_calculateMetaData'](_0x80d49f,_0x3133c9,!0x0);}return this['_lastFrom']=_0x80d49f,this['_lastTo']=_0x3133c9,this['_getState']();}['loadState'](_0x1124bf){this['_reset'](),this['_lastFrom']=_0x1124bf['fromVersion'],this['_lastTo']=_0x1124bf['toVersion'];for(const _0x2f2900 in _0x1124bf['diffData']){const _0x1d049b=_0x1124bf['diffData'][_0x2f2900]['attachChange'],_0x3a7a4f=_0x5189cc(_0x1124bf['diffData'][_0x2f2900]['attributesBefore'])||{},_0x1eb222=this['_makeModelFromViewString'](_0x1124bf['diffData'][_0x2f2900]['deletions']);_0x1eb222['rootName']=_0x2f2900,_0x1eb222['_isAttached']=!_0x1d049b||!_0x1d049b['isAttached'],_0x1eb222['isAttached']=()=>_0x1eb222['_isAttached'],this['_baseRoots']['set'](_0x2f2900,_0x1eb222),this['_baseRootsAttributes']['set'](_0x2f2900,_0x3a7a4f),_0x1d049b&&this['_touchedRoots']['set'](_0x2f2900,_0x1d049b);const _0x494082=this['_makeIdsRoot'](_0x1eb222);this['_baseIdsRoots']['set'](_0x2f2900,_0x494082);for(const [_0xf3e45f,_0x5761be]of _0x1eb222['markers']){if(!_0xf3e45f['startsWith']('revision:'))continue;const _0x325109=_0xf3e45f['split'](':')[0x2];for(const _0x87e0ae of _0x5761be['getWalker']({'singleCharacters':!0x0})){const _0x48b42e=this['_getVidAttributeName'](_0x87e0ae),_0x3ae428='elementEnd'==_0x87e0ae['type']?_0x87e0ae['previousPosition']['path']['slice'](0x0,-0x1):_0x87e0ae['previousPosition']['path'],_0x549a70=_0x494082['getNodeByPath'](_0x3ae428)['getAttribute'](_0x48b42e);this['_touched']['set'](_0x549a70,{'userId':_0x325109});}}}this['_startingRevisionId']=this['_revisionId'];const _0x110552=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x325213=>!this['_touched']['has'](_0x325213));let _0x10e03a=0x0;const _0x1c8d08=new Map();for(const _0x20a911 in _0x1124bf['diffData']){const _0x3e56a2=_0x1124bf['diffData'][_0x20a911]['attachChange'],_0x1ba9e8=_0x5189cc(_0x1124bf['diffData'][_0x20a911]['attributesAfter'])||{},_0x329451=this['_makeModelFromViewString'](_0x1124bf['diffData'][_0x20a911]['insertions']);_0x329451['rootName']=_0x20a911,_0x329451['_isAttached']=!_0x3e56a2||_0x3e56a2['isAttached'],_0x329451['isAttached']=()=>_0x329451['_isAttached'],this['_diffRoots']['set'](_0x20a911,_0x329451),this['_diffRootsAttributes']['set'](_0x20a911,_0x1ba9e8);const _0x2e11db=this['_makeIdsRoot'](_0x329451,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x20a911,_0x2e11db),_0x1c8d08['set'](_0x20a911,_0x329451['isAttached']()?_0x1ba9e8:{});for(const [_0x50bddb,_0x34adcb]of _0x329451['markers']){if(!_0x50bddb['startsWith']('revision:'))continue;const _0x304d25=_0x50bddb['split'](':')[0x2];for(const _0x1a12bd of _0x34adcb['getWalker']({'singleCharacters':!0x0})){const _0x4f4fd0=this['_getVidAttributeName'](_0x1a12bd),_0x5e1d33=this['_revisionId']++,_0x159c3e='elementEnd'==_0x1a12bd['type']?_0x1a12bd['previousPosition']['path']['slice'](0x0,-0x1):_0x1a12bd['previousPosition']['path'];_0x2e11db['getNodeByPath'](_0x159c3e)['_setAttribute'](_0x4f4fd0,_0x5e1d33),this['_touched']['set'](_0x5e1d33,{'userId':_0x304d25});}}for(const _0x2d264c of this['editor']['model']['createRangeIn'](_0x329451)['getWalker']({'singleCharacters':!0x0})){const _0x55aed5=this['_getVidAttributeName'](_0x2d264c),_0x4d3ff9='elementEnd'==_0x2d264c['type']?_0x2d264c['previousPosition']['path']['slice'](0x0,-0x1):_0x2d264c['previousPosition']['path'],_0x3286d2=_0x2e11db['getNodeByPath'](_0x4d3ff9);_0x3286d2['getAttribute'](_0x55aed5)>0x0||_0x3286d2['_setAttribute'](_0x55aed5,_0x110552[_0x10e03a++]);}for(const [_0x23da5c,_0x4ee80f]of _0x329451['markers'])_0x23da5c['startsWith']('revision:')||this['_markers']['set'](_0x23da5c,_0x4ee80f);}const _0x2428e8=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2428e8),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2428e8,0x1));const _0x188541=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x188541),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x188541,0x1));const _0x58be19=Array['from'](this['_diffRoots'])['map'](([_0x17853f,_0x2f8203])=>[_0x17853f,T(_0x2f8203)]);this['_saveMetaData'](this['_lastTo'],_0x58be19,this['_markers'],_0x1c8d08);}['_makeModelFromViewString'](_0x346a20){const _0x386111=JSON['parse'](_0x346a20),_0xe8c9f8=this['editor']['editing']['view']['document'],_0x44aa5b=new _0x7e311e(_0xe8c9f8,_0x386111['map'](_0x2403ea=>P(_0x2403ea,this['editor'])));return this['editor']['data']['toModel'](_0x44aa5b);}['_saveMetaData'](_0x347be0,_0x2c2189,_0x3fb411,_0x877b2c){const _0xed9f00=new Map(_0x2c2189),_0x526184=new Map(_0x5189cc(_0x877b2c)),_0x6f134f=new Map();for(const [_0x1ee444,_0x4242cb]of _0x3fb411)_0x6f134f['set'](_0x1ee444,{'start':_0x4242cb['start']['clone'](),'end':_0x4242cb['end']['clone'](),'rootName':_0x4242cb['root']['rootName']});this['_savedMetaData']['set'](_0x347be0,{'roots':_0xed9f00,'markers':_0x6f134f,'rootsAttributes':_0x526184});}['_removeMetaData'](_0x4c86a9){this['_savedMetaData']['delete'](_0x4c86a9);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x35bf38,_0x2e6426=null){let _0x3ecf30=null;_0x35bf38['is']('documentFragment')||(_0x3ecf30=new ut(_0x35bf38['name'],{'vid_start':null===_0x2e6426?this['_revisionId']++:_0x2e6426++}));const _0x37fa3b=[];for(const _0x4cea9d of _0x35bf38['getChildren']())if(_0x4cea9d['is']('element')){_0x37fa3b['push'](this['_makeIdsRoot'](_0x4cea9d,_0x2e6426));const _0x2d0845=_0x37fa3b[_0x37fa3b['length']-0x1];null!==_0x2e6426&&(_0x2e6426=_0x2d0845['is']('element','$text')?_0x2d0845['getAttribute']('vid')+0x1:_0x2d0845['getAttribute']('vid_end')+0x1);}else{for(let _0x4148fb=0x0;_0x4148fb<_0x4cea9d['offsetSize'];_0x4148fb++)_0x37fa3b['push'](new ut('$text',{'vid':null===_0x2e6426?this['_revisionId']++:_0x2e6426++}));}if(_0x35bf38['is']('documentFragment')){const _0x3af425=F(_0x35bf38['rootName']);return _0x3af425['_insertChild'](0x0,_0x37fa3b),_0x3af425;}return _0x3ecf30['_setAttribute']('vid_end',null===_0x2e6426?this['_revisionId']++:_0x2e6426++),_0x3ecf30['_insertChild'](0x0,_0x37fa3b),_0x3ecf30;}['_calculateMetaData'](_0xa5077b,_0x2cd82e,_0x7ea1b){this['_reset']();const {roots:_0x565338,markers:_0x1db151,rootsAttributes:_0xacdff5}=this['_savedMetaData']['get'](_0xa5077b);this['_baseRoots']=new Map(_0x565338),this['_baseRootsAttributes']=new Map(_0x5189cc(_0xacdff5));for(const [_0x20a032,_0x171238]of this['_baseRoots'])if('$graveyard'!==_0x20a032&&(this['_diffRoots']['set'](_0x20a032,T(_0x171238)),this['_diffRootsAttributes']=new Map(_0x5189cc(_0xacdff5)),_0x7ea1b)){const _0x523e1b=this['_revisionId'];this['_idsRoots']['set'](_0x20a032,this['_makeIdsRoot'](_0x171238)),this['_baseIdsRoots']['set'](_0x20a032,this['_makeIdsRoot'](_0x171238,_0x523e1b));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x7ea1b&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x228ad9,_0x29864c]of _0x1db151){const _0x20c2d8=this['_baseRoots']['get'](_0x29864c['rootName']),_0x3d614f=this['_diffRoots']['get'](_0x29864c['rootName']),_0x55630a=new ft(this['_fixPosition'](_0x29864c['start'],_0x20c2d8),this['_fixPosition'](_0x29864c['end'],_0x20c2d8)),_0x37a906=this['_fixRange'](_0x55630a,_0x3d614f);_0x20c2d8['markers']['set'](_0x228ad9,_0x55630a),this['_markers']['set'](_0x228ad9,_0x37a906);}this['_applyOperations'](_0xa5077b,_0x2cd82e,_0x7ea1b);}['_applyOperations'](_0x5f5ba0,_0x2718fa,_0x51ee6b){for(const _0x23ed79 of this['source']['getOperations'](_0x5f5ba0,_0x2718fa))this['_handleOperation'](_0x23ed79,_0x51ee6b);for(const _0x583e19 of this['_diffRoots']['values']())_0x583e19['markers']['clear']();for(const [_0x313d05,_0x381835]of this['_markers']){this['_diffRoots']['get'](_0x381835['root']['rootName'])['markers']['set'](_0x313d05,_0x381835['clone']());}const _0x5af5be=new Map(),_0x1a4fe9=new Map();for(const [_0x49854a,_0x2f84f3]of this['_diffRoots'])_0x5af5be['set'](_0x49854a,T(_0x2f84f3)),_0x1a4fe9['set'](_0x49854a,this['_diffRootsAttributes']['get'](_0x49854a));this['_saveMetaData'](_0x2718fa,_0x5af5be,this['_markers'],_0x1a4fe9);}['_getPreviousFrom'](_0x2585ec){const _0xbcdd9a=Array['from'](this['_savedMetaData']['keys']());_0xbcdd9a['sort']((_0x4bda59,_0x448333)=>_0x4bda59-_0x448333),_0xbcdd9a['reverse']();for(const _0x47e7d8 of _0xbcdd9a)if(_0x47e7d8<_0x2585ec)return _0x47e7d8;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3b6152,_0x355629){const _0x5b39a7=Array['from'](_0x355629['markers'])['map'](([_0x8cbbf3,_0x2df53f])=>[_0x8cbbf3,this['_fixRange'](_0x2df53f,_0x3b6152)]);_0x3b6152['markers']=new Map(_0x5b39a7);}['_transformMarkers'](_0x45de69){for(const _0x2613e0 of this['_markers']['values']()){const _0x325d9e=_0x2613e0['getTransformedByOperation'](_0x45de69),_0x3f9643=ft['_createFromRanges'](_0x325d9e);_0x2613e0['start']=_0x3f9643['start'],_0x2613e0['end']=_0x3f9643['end'];}}['_handleOperation'](_0x50013e,_0x1e3210){if('addRoot'!=_0x50013e['type']&&'detachRoot'!=_0x50013e['type']){if('insert'==_0x50013e['type']){const _0x4ad8f8=_0x50013e['position']['root']['rootName'];this['_diffRoots']['has'](_0x4ad8f8)||(this['_diffRoots']['set'](_0x4ad8f8,F(_0x4ad8f8,!0x0)),this['_diffRootsAttributes']['set'](_0x4ad8f8,{}),_0x1e3210&&this['_idsRoots']['set'](_0x4ad8f8,F(_0x4ad8f8,!0x0)));}else{if('addRootAttribute'==_0x50013e['type']||'removeRootAttribute'==_0x50013e['type']||'changeRootAttribute'==_0x50013e['type'])return void this['_handleRootAttributeOperation'](_0x50013e);'marker'==_0x50013e['type']&&this['_handleMarkerOperation'](_0x50013e);}if('marker'!==_0x50013e['type']){const _0x59530b=this['_cloneOperation'](_0x50013e,this['_diffRoots']);_0x59530b['_execute'](),this['_transformMarkers'](_0x59530b);}if(_0x1e3210)switch(_0x50013e['type']){case'insert':this['_handleInsertOperation'](_0x50013e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50013e);break;case'merge':this['_handleMergeOperation'](_0x50013e);break;case'split':this['_handleSplitOperation'](_0x50013e);}}else this['_handleRootOperation'](_0x50013e,_0x1e3210);}['_cloneOperation'](_0x1083f9,_0x374d3c){const _0x54f2e9=_0x1083f9['clone']();return _0x54f2e9['_authorId']=_0x1083f9['_authorId'],this['_fixOperation'](_0x54f2e9,_0x374d3c),_0x54f2e9;}['_getBaseVids'](_0xdf5128){return _0xdf5128['map'](_0x1f22d6=>{const _0x4e5e1c=this['_getVidAttributeName'](_0x1f22d6);return Number(_0x1f22d6['item']['getAttribute'](_0x4e5e1c));});}['_generateTape'](_0x46fcee,_0x1188c9){if(_0x46fcee['is']('element','$text'))_0x1188c9['push']({'item':_0x46fcee,'type':'text'});else{_0x46fcee['is']('element')&&_0x1188c9['push']({'item':_0x46fcee,'type':'elementStart'});for(const _0x4670c0 of _0x46fcee['getChildren']())this['_generateTape'](_0x4670c0,_0x1188c9);_0x46fcee['is']('element')&&_0x1188c9['push']({'item':_0x46fcee,'type':'elementEnd'});}return _0x1188c9;}['_getState'](){const _0x558ada=new Map(this['_touched']),_0x7fe8b8=new Map(_0x558ada),_0x23bffd=new Map(),_0x2e42bc={'insertions':{},'deletions':{}},_0x5213c5={'insertions':{},'deletions':{}},_0x10885f=new Map(),_0xe992d0=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0xe992d0['delete']('$graveyard');for(const _0x109205 of _0xe992d0){const _0x5555fa=this['_diffRoots']['get'](_0x109205)||F(_0x109205,!0x1),_0xc5b9e4=this['_baseRoots']['get'](_0x109205)||F(_0x109205,!0x1);_0x5555fa['isAttached']()||_0xc5b9e4['isAttached']()?(_0x2e42bc['insertions'][_0x109205]=T(_0x5555fa),_0x2e42bc['deletions'][_0x109205]=T(_0xc5b9e4),this['_copyMarkers'](_0x2e42bc['deletions'][_0x109205],_0xc5b9e4),this['_copyMarkers'](_0x2e42bc['insertions'][_0x109205],_0x5555fa),_0x5213c5['insertions'][_0x109205]=this['_generateTape'](this['_idsRoots']['get'](_0x109205),[]),_0x5213c5['deletions'][_0x109205]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x109205)||F(_0x109205,!0x1),[])):_0xe992d0['delete'](_0x109205);}for(const _0x998b9c of _0xe992d0){const _0x5865ef=_0x5213c5['insertions'][_0x998b9c];for(const _0x5c268b of _0x5865ef){const _0x349939=this['_getVidAttributeName'](_0x5c268b),_0x3d2eed=_0x5c268b['item']['getAttribute'](_0x349939);_0x7fe8b8['delete'](_0x3d2eed),_0x3d2eed>=this['_startingRevisionId']&&_0x23bffd['set'](_0x3d2eed,_0x558ada['get'](_0x3d2eed));}}for(const _0x140b0c of _0xe992d0){const _0x46e9ca=_0x5213c5['insertions'][_0x140b0c],_0x297ea4=this['_getBaseVids'](_0x5213c5['deletions'][_0x140b0c]);let _0x339c84=0x0;for(const _0xed237d of _0x46e9ca){const _0x1cfb69=this['_getVidAttributeName'](_0xed237d),_0x175f3c=_0xed237d['item']['getAttribute'](_0x1cfb69);if(!_0x23bffd['has'](_0x175f3c)&&!_0x10885f['has'](_0x175f3c)){if(_0x7fe8b8['has'](_0x175f3c))_0x339c84++;else{if(_0x175f3c!=_0x297ea4[_0x339c84]){const _0x19007d=_0x558ada['get'](_0x175f3c)||_0x558ada['get'](_0x297ea4[_0x339c84]);for(;_0x175f3c!=_0x297ea4[_0x339c84];)_0x7fe8b8['has'](_0x297ea4[_0x339c84])||(_0x10885f['set'](_0x297ea4[_0x339c84],_0x19007d),_0x558ada['set'](_0x297ea4[_0x339c84],_0x19007d)),_0x339c84++;}_0x339c84++;}}}}for(const _0x2fd611 of _0xe992d0){const _0x186dda=_0x5213c5['insertions'][_0x2fd611];for(const _0x68816e of _0x186dda){const _0x5edb62=this['_getVidAttributeName'](_0x68816e),_0x297d87=_0x68816e['item']['getAttribute'](_0x5edb62);if(_0x10885f['has'](_0x297d87)){const _0x1f597e=_0x10885f['get'](_0x297d87);_0x7fe8b8['has'](_0x297d87)||_0x7fe8b8['set'](_0x297d87,{..._0x1f597e}),_0x23bffd['set'](_0x297d87,{..._0x1f597e});}}}for(const _0x3c31df of _0x7fe8b8['keys']())_0x3c31df>=this['_startingRevisionId']&&_0x7fe8b8['delete'](_0x3c31df);const _0xa6729b=new Map();for(const _0x3c2e77 of _0xe992d0){let _0x1720e0=_0x5213c5['insertions'][_0x3c2e77];for(const _0x26291a of _0x1720e0)if(_0x26291a['item']['is']('element','tableCell')){const _0x3d18b4=this['_getVidAttributeName'](_0x26291a),_0xde5ff9=_0x26291a['item']['getAttribute'](_0x3d18b4);if(_0x23bffd['has'](_0xde5ff9)){const _0x2cc4af=_0x26291a['item']['parent']['parent']['getAttribute']('vid_start'),_0x395b32=_0xa6729b['get'](_0x2cc4af)||new Set();_0x395b32['add'](_0x23bffd['get'](_0xde5ff9)['userId']),_0xa6729b['set'](_0x2cc4af,_0x395b32);}}_0x1720e0=_0x5213c5['deletions'][_0x3c2e77];for(const _0x192b15 of _0x1720e0)if(_0x192b15['item']['is']('element','tableCell')){const _0x153270=this['_getVidAttributeName'](_0x192b15),_0x194a44=_0x192b15['item']['getAttribute'](_0x153270);if(_0x7fe8b8['has'](_0x194a44)){const _0x2112e9=_0x192b15['item']['parent']['parent']['getAttribute']('vid_start'),_0x251d25=_0xa6729b['get'](_0x2112e9)||new Set();_0x251d25['add'](_0x7fe8b8['get'](_0x194a44)['userId']),_0xa6729b['set'](_0x2112e9,_0x251d25);}}for(const _0x4a8944 of _0xa6729b['keys']())(_0x23bffd['has'](_0x4a8944)||_0x7fe8b8['has'](_0x4a8944))&&_0xa6729b['delete'](_0x4a8944);}for(const _0x18e62c of _0xe992d0){const _0x1bb79c=_0x5213c5['insertions'][_0x18e62c];let _0x44af92=null,_0x322c71=null;for(const _0x589655 of _0x1bb79c){const _0x481707=this['_getVidAttributeName'](_0x589655),_0x4c57c8=_0x589655['item']['getAttribute'](_0x481707),_0x71948b=_0xa6729b['get'](_0x4c57c8);_0x71948b&&'elementStart'==_0x589655['type']&&(_0x44af92=Array['from'](_0x71948b)[0x0],_0x322c71=_0x589655['item']['getAttribute']('vid_end')),_0x44af92&&(_0x7fe8b8['set'](_0x4c57c8,{'userId':_0x44af92}),_0x23bffd['set'](_0x4c57c8,{'userId':_0x44af92})),_0x4c57c8==_0x322c71&&(_0x44af92=null,_0x322c71=null);}}const _0x4b8d61={},_0x2c9710=new Set();for(const _0x1b1dad of _0xe992d0){const _0x2f3369=_0x2e42bc['deletions'][_0x1b1dad],_0x416128=_0x2e42bc['insertions'][_0x1b1dad];for(const {userId:_0x236e87}of this['_touchedMarkers']['values']())null!==_0x236e87&&_0x2c9710['add'](_0x236e87);for(const {userId:_0x21df9b}of this['_touchedRoots']['values']())null!==_0x21df9b&&_0x2c9710['add'](_0x21df9b);this['_markChanges'](_0x416128,_0x5213c5['insertions'][_0x1b1dad],_0x23bffd,'insertion',_0x2c9710),this['_markChanges'](_0x2f3369,_0x5213c5['deletions'][_0x1b1dad],_0x7fe8b8,'deletion',_0x2c9710),_0x4b8d61[_0x1b1dad]={'insertions':this['_prepareViewToSave'](_0x416128),'deletions':this['_prepareViewToSave'](_0x2f3369),'attachChange':this['_touchedRoots']['get'](_0x1b1dad)||null,'attributesBefore':_0x5189cc(this['_baseRootsAttributes']['get'](_0x1b1dad))||{},'attributesAfter':_0x5189cc(this['_diffRootsAttributes']['get'](_0x1b1dad))};}return{'diffData':_0x4b8d61,'authorsIds':Array['from'](_0x2c9710)};}['_processRootBeforeSave'](_0x3e1340){for(const [,_0x388b27]of _0x3e1340['markers']){const _0xce0a6a=_0x388b27['start']['getAncestors']()['filter'](_0x5a1968=>'tableCell'==_0x5a1968['name']);for(const _0x371115 of _0xce0a6a)0x1==_0x371115['childCount']&&_0x371115['getChild'](0x0)['is']('element','paragraph')&&_0x371115['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x192674){this['_processRootBeforeSave'](_0x192674);const _0x84178f=this['editor']['data']['toView'](_0x192674,{}),_0x4482c6=Array['from'](_0x84178f['getChildren']())['map'](_0x546593=>this['_getViewJson'](_0x546593));return JSON['stringify'](_0x4482c6);}['_getViewJson'](_0x35deb2){if(_0x35deb2['is']('$text'))return _0x35deb2['data'];{const _0x446b05=_0x35deb2;return{'type':Object['keys'](E)['find'](_0x3152e6=>_0x35deb2 instanceof E[_0x3152e6]),'name':_0x446b05['name'],'attributes':Array['from'](_0x446b05['getAttributes']()),'children':Array['from'](_0x446b05['getChildren']())['map'](_0x11f4d3=>this['_getViewJson'](_0x11f4d3))};}}['_markChanges'](_0x337a67,_0x1fab93,_0x537b74,_0x39e72e,_0x4c96cb){let _0x36365c=null,_0x21acb2=null,_0x2af28e=0x0;const _0x155284=this['editor']['model'];for(let _0x1fd4ca=0x0;_0x1fd4ca<_0x1fab93['length'];_0x1fd4ca++){const _0x3bb858=this['_getVidAttributeName'](_0x1fab93[_0x1fd4ca]),_0x128677=_0x1fab93[_0x1fd4ca]['item']['getAttribute'](_0x3bb858),_0x3b2b6e=_0x537b74['get'](_0x128677),_0x24bda6=_0x1fd4ca==_0x1fab93['length']-0x1;(!_0x36365c&&_0x3b2b6e&&(_0x36365c=_0x3b2b6e,_0x21acb2=_0x1fab93[_0x1fd4ca]),_0x36365c&&(!_0x3b2b6e||_0x3b2b6e['userId']!=_0x36365c['userId']))&&(_0x203926(_0x3b2b6e,B(_0x21acb2,_0x337a67,_0x155284),B(_0x1fab93[_0x1fd4ca],_0x337a67,_0x155284)),_0x36365c=_0x3b2b6e||null,_0x21acb2=_0x3b2b6e?_0x1fab93[_0x1fd4ca]:null),_0x36365c&&_0x24bda6&&_0x203926(_0x3b2b6e,B(_0x21acb2,_0x337a67,_0x155284),J(_0x1fab93[_0x1fd4ca],_0x337a67,_0x155284));}function _0x203926(_0x7f7dd6,_0x4fdd9e,_0x5a857a){const _0xe7c569=_0x36365c['userId'],_0x449cc7='revision:'+_0x39e72e+':'+_0xe7c569+':'+_0x2af28e++,_0x25f40c=_0x155284['createRange'](_0x4fdd9e,_0x5a857a);_0x337a67['markers']['set'](_0x449cc7,_0x25f40c),null!==_0xe7c569&&_0x4c96cb['add'](_0xe7c569);}}['_getVidAttributeName'](_0x24faae){switch(_0x24faae['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x33fd01,_0x4a1374){_0x33fd01['baseVersion']=null;for(const _0x3c65d1 in _0x33fd01){const _0x40369a=_0x33fd01[_0x3c65d1];if(_0x40369a instanceof vt){const _0x59ea76=_0x4a1374['get'](_0x40369a['root']['rootName']);_0x33fd01[_0x3c65d1]=this['_fixPosition'](_0x40369a,_0x59ea76);}if(_0x40369a instanceof ft){const _0x12ece0=_0x4a1374['get'](_0x40369a['root']['rootName']);_0x33fd01[_0x3c65d1]=this['_fixRange'](_0x40369a,_0x12ece0);}'root'===_0x3c65d1&&(_0x33fd01['root']=_0x4a1374['get'](_0x33fd01['root']['rootName']));}}['_fixRange'](_0x3e5d9a,_0x30fdee){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3e5d9a['start'],_0x30fdee),this['_fixPosition'](_0x3e5d9a['end'],_0x30fdee));}['_fixPosition'](_0x423930,_0x248ac4){return this['editor']['model']['createPositionFromPath'](_0x248ac4,_0x423930['path'],_0x423930['stickiness']);}['_handleInsertOperation'](_0x22c540){const _0x139b07=this['_idsRoots']['get'](_0x22c540['position']['root']['rootName']),_0x47d839=this['_fixPosition'](_0x22c540['position'],_0x139b07),_0x378e04=null===_0x22c540['_authorId']?null:_0x22c540['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x5adb7c=_0x47d839['parent'],_0x5e2ad3=this['_revisionId'],_0x4d9c08=[];for(const _0x336d16 of _0x22c540['nodes'])if(_0x336d16['is']('element'))_0x4d9c08['push'](this['_makeIdsRoot'](_0x336d16));else{for(let _0x33c832=0x0;_0x33c832<_0x336d16['offsetSize'];_0x33c832++)_0x4d9c08['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x518e16=this['_revisionId'];for(let _0x5f00ac=_0x5e2ad3;_0x5f00ac<_0x518e16;_0x5f00ac++)this['_touched']['set'](_0x5f00ac,{'userId':_0x378e04});_0x5adb7c['_insertChild'](_0x47d839['offset'],_0x4d9c08);}['_handleMoveOperation'](_0x2c06c0){(_0x2c06c0=this['_cloneOperation'](_0x2c06c0,this['_idsRoots']))['_execute']();const _0x49f6ce=null===_0x2c06c0['_authorId']?null:_0x2c06c0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x467d09=_0x2c06c0['getMovedRangeStart'](),_0x31db75=_0x467d09['parent'],_0x58a51d=_0x467d09['offset'];!function _0x577ee6(_0x11756b,_0xd4a6d3,_0x523db1,_0x24a989){for(let _0xfc48a9=_0x523db1;_0xfc48a9<_0x24a989;_0xfc48a9++){const _0xff1c03=_0xd4a6d3['getChild'](_0xfc48a9);_0xff1c03['is']('element','$text')?_0x11756b['set'](_0xff1c03['getAttribute']('vid'),{'userId':_0x49f6ce}):(_0x11756b['set'](_0xff1c03['getAttribute']('vid_start'),{'userId':_0x49f6ce}),_0x577ee6(_0x11756b,_0xff1c03,0x0,_0xff1c03['childCount']),_0x11756b['set'](_0xff1c03['getAttribute']('vid_end'),{'userId':_0x49f6ce}));}}(this['_touched'],_0x31db75,_0x58a51d,_0x58a51d+_0x2c06c0['howMany']);}['_handleMergeOperation'](_0x31941e){const _0x1ac2e3=null===(_0x31941e=this['_cloneOperation'](_0x31941e,this['_idsRoots']))['_authorId']?null:_0x31941e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a199=_0x31941e['targetPosition']['parent'],_0x34736b=_0x31941e['sourcePosition']['parent'],_0x2b949e=_0x44a199['getAttribute']('vid_end'),_0x42e0d0=_0x34736b['getAttribute']('vid_start');_0x44a199['_setAttribute']('vid_end',_0x34736b['getAttribute']('vid_end')),_0x34736b['_setAttribute']('vid_end',_0x2b949e),this['_touched']['set'](_0x42e0d0,{'userId':_0x1ac2e3}),this['_touched']['set'](_0x2b949e,{'userId':_0x1ac2e3}),_0x31941e['_execute']();}['_handleSplitOperation'](_0x3c7323){const _0xc8ca1a=null===(_0x3c7323=this['_cloneOperation'](_0x3c7323,this['_idsRoots']))['_authorId']?null:_0x3c7323['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4283a3=_0x3c7323['graveyardPosition'],_0x224da9=_0x3c7323['splitPosition']['parent'];_0x3c7323['_execute']();const _0x5c0876=_0x224da9['getAttribute']('vid_end'),_0x58279e=_0x3c7323['insertionPosition']['nodeAfter'];if(_0x4283a3){const _0x121eaa=_0x58279e['getAttribute']('vid_end'),_0xd682bc=_0x224da9['getAttribute']('vid_end');_0x224da9['_setAttribute']('vid_end',_0x121eaa),_0x58279e['_setAttribute']('vid_end',_0xd682bc),this['_touched']['set'](_0x224da9['getAttribute']('vid_end'),{'userId':_0xc8ca1a}),this['_touched']['set'](_0x58279e['getAttribute']('vid_start'),{'userId':_0xc8ca1a});}else{const _0x637ece=this['_revisionId']++,_0x2ed373=this['_revisionId']++;_0x224da9['_setAttribute']('vid_end',_0x637ece),_0x58279e['_setAttribute']('vid_start',_0x2ed373),_0x58279e['_setAttribute']('vid_end',_0x5c0876),this['_touched']['set'](_0x637ece,{'userId':_0xc8ca1a}),this['_touched']['set'](_0x2ed373,{'userId':_0xc8ca1a});}}['_handleMarkerOperation'](_0x1eaa71){if(!_0x1eaa71['affectsData'])return;const _0xbe87eb=(_0x1eaa71=this['_cloneOperation'](_0x1eaa71,this['_diffRoots']))['oldRange']?_0x1eaa71['oldRange']['root']:null,_0x56253f=_0x1eaa71['newRange']?_0x1eaa71['newRange']['root']:null;_0xbe87eb&&this['_markers']['delete'](_0x1eaa71['name']),_0x56253f&&this['_markers']['set'](_0x1eaa71['name'],_0x1eaa71['newRange']['clone']());const _0x215f9e=null===_0x1eaa71['_authorId']?null:_0x1eaa71['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xfc80fe=_0x1eaa71['name'];if(!this['_touchedMarkers']['has'](_0xfc80fe))return void this['_touchedMarkers']['set'](_0xfc80fe,{'range':_0x1eaa71['oldRange'],'userId':_0x215f9e});const _0x1cd4d6=this['_touchedMarkers']['get'](_0xfc80fe),_0x3ae52b=_0x1cd4d6['range'],_0x5cdfbd=_0x1eaa71['newRange'];null==_0x3ae52b&&null==_0x5cdfbd||_0x3ae52b&&_0x5cdfbd&&_0x3ae52b['isEqual'](_0x5cdfbd)?this['_touchedMarkers']['delete'](_0x1eaa71['name']):_0x1cd4d6['userId']=_0x215f9e;}['_handleRootOperation'](_0x3817b1,_0x5f054a){this['_diffRoots']['has'](_0x3817b1['rootName'])?this['_diffRoots']['get'](_0x3817b1['rootName'])['_isAttached']=_0x3817b1['isAdd']:(this['_diffRoots']['set'](_0x3817b1['rootName'],F(_0x3817b1['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3817b1['rootName'],{}),_0x5f054a&&this['_idsRoots']['set'](_0x3817b1['rootName'],F(_0x3817b1['rootName'],!0x0)));const _0x2093ad=null===_0x3817b1['_authorId']?null:_0x3817b1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x177ae6=this['_touchedRoots']['get'](_0x3817b1['rootName']);_0x177ae6&&_0x177ae6['userId']===_0x2093ad?this['_touchedRoots']['delete'](_0x3817b1['rootName']):this['_touchedRoots']['set'](_0x3817b1['rootName'],{'userId':_0x2093ad,'isAttached':_0x3817b1['isAdd']});}['_handleRootAttributeOperation'](_0x52a475){const _0x11405f=this['_diffRootsAttributes']['get'](_0x52a475['root']['rootName']);null===_0x52a475['newValue']?delete _0x11405f[_0x52a475['key']]:_0x11405f[_0x52a475['key']]=_0x52a475['newValue'];}}function T(_0x4bf55e){const _0x43c0c2=F(_0x4bf55e['rootName'],_0x4bf55e['isAttached']());for(const _0x355f07 of _0x4bf55e['getChildren']()){const _0x3ac154=_0x355f07['_clone'](!0x0);_0x43c0c2['_appendChild'](_0x3ac154);}return _0x43c0c2;}function F(_0x559ea9,_0xea25b7=!0x0){const _0x4a377e=new gt();return _0x4a377e['rootName']=_0x559ea9,_0x4a377e['_isAttached']=_0xea25b7,_0x4a377e['isAttached']=()=>_0x4a377e['_isAttached'],_0x4a377e;}function B(_0x476c0a,_0x2f9f78,_0x17aab2){const _0x50f39c='elementEnd'==_0x476c0a['type']?_0x17aab2['createPositionAt'](_0x476c0a['item'],'end'):_0x17aab2['createPositionBefore'](_0x476c0a['item']);return _0x17aab2['createPositionFromPath'](_0x2f9f78,_0x50f39c['path'],_0x50f39c['stickiness']);}function J(_0x47a505,_0x673461,_0x3aff0c){const _0x29c54b='elementStart'==_0x47a505['type']?_0x3aff0c['createPositionAt'](_0x47a505['item'],0x0):_0x3aff0c['createPositionAfter'](_0x47a505['item']);return _0x3aff0c['createPositionFromPath'](_0x673461,_0x29c54b['path'],_0x29c54b['stickiness']);}class os extends _0x366255{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x28f855,_0x3e3217){super(_0x28f855),this['focusTracker']=new _0x3258fa(),this['keystrokes']=new _0x11d7cc(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3e3217),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xd80631({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0xb627e6=_0x1100e4=>_0x1100e4['stopPropagation']();this['keystrokes']['set']('arrowright',_0xb627e6),this['keystrokes']['set']('arrowleft',_0xb627e6),this['keystrokes']['set']('arrowup',_0xb627e6),this['keystrokes']['set']('arrowdown',_0xb627e6);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x4476e1){this['revisionNameInputView']['fieldView']['element']['value']=_0x4476e1['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x564d76){const _0x6e188b=new at(this['locale'],ti),_0x3506c4=_0x6e188b['fieldView'];_0x3506c4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xd49617=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x564d76&&(_0xd49617+='\x20('+m(this['locale'],'optional')+')'),(_0x6e188b['label']=_0xd49617,_0x3506c4['on']('input',()=>{this['revisionNameInputValue']=_0x3506c4['element']['value']['trim']();}),_0x6e188b);}}class f extends _0x3b516d{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x3e6880=this['editor'],_0x5d768a=_0x3e6880['plugins']['get']('RevisionTracker');_0x3e6880['ui']['componentFactory']['add']('revisionHistory',_0x21baef=>{const _0x127c95=_0x54cd08(_0x21baef),_0x40a9d8=_0x127c95['panelView']['children'],_0x376b64=new _0x2952ac(_0x21baef),_0x213fac=new te(_0x21baef),_0x2845ec=new _0x5c816d(_0x21baef),_0x5c5a44=new te(_0x21baef),_0xfeac39=new _0x5c816d(_0x21baef);return _0x127c95['bind']('isEnabled')['to'](_0x5d768a,'isReady',_0x5d768a,'isEnabled',_0x3e6880,'isReadOnly',(_0x12bc92,_0x3e8e00,_0x1b6f24)=>_0x12bc92&&_0x3e8e00&&!_0x1b6f24),_0x127c95['buttonView']['set']({'icon':_0x23d429,'label':m(_0x21baef,'Revision\x20history'),'tooltip':!0x0}),_0x2845ec['set']({'label':m(_0x21baef,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2845ec['bind']('isEnabled')['to'](_0x5d768a,'isReady',_0x5d768a,'isEnabled',_0x3e6880,'isReadOnly',(_0x8382a9,_0xb9e198,_0x2e6eb4)=>_0x8382a9&&_0xb9e198&&!_0x2e6eb4),_0x2845ec['on']('execute',()=>this['_showDialog']()),_0xfeac39['set']({'label':m(_0x21baef,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0xfeac39['bind']('isEnabled')['to'](_0x5d768a,'isReady',_0x3e6880,'isReadOnly',(_0x20d4d5,_0x3e7012)=>_0x20d4d5&&!_0x3e7012),_0xfeac39['on']('execute',()=>{_0x3e6880['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x127c95['isOpen']=!0x1,_0x3e6880['editing']['view']['focus']();}),_0x213fac['children']['add'](_0x2845ec),_0x5c5a44['children']['add'](_0xfeac39),_0x376b64['role']='menu',_0x376b64['items']['addMany']([_0x213fac,_0x5c5a44]),_0x40a9d8['add'](_0x376b64),_0x127c95;}),_0x3e6880['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x4ce89f=this['editor'],_0x17b571=_0x4ce89f['locale'],_0x4654f0=new _0x2ea996(_0x17b571),_0x4bad13=new _0x2412a7(_0x17b571);_0x4654f0['buttonView']['set']({'icon':_0x23d429,'label':m(_0x17b571,'Revision\x20history')});const _0x181dec=new _0x18c3ab(_0x17b571,_0x4654f0),_0xcf1dd7=new _0x3fe93b(_0x17b571);_0xcf1dd7['set']({'label':m(_0x17b571,'Save\x20current\x20revision')}),_0xcf1dd7['delegate']('execute')['to'](_0x4654f0),_0xcf1dd7['on']('execute',()=>{this['_showDialog']();}),_0x181dec['children']['add'](_0xcf1dd7),_0x4bad13['items']['add'](_0x181dec);const _0x3d39a7=new _0x18c3ab(_0x17b571,_0x4654f0),_0x3d0736=new _0x3fe93b(_0x17b571);return _0x3d0736['set']({'label':m(_0x17b571,'Open\x20revision\x20history')}),_0x3d0736['delegate']('execute')['to'](_0x4654f0),_0x3d0736['on']('execute',()=>{_0x4ce89f['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x3d39a7['children']['add'](_0x3d0736),_0x4bad13['items']['add'](_0x3d39a7),_0x4654f0['panelView']['children']['add'](_0x4bad13),_0x4654f0;}['_showDialog'](){const _0x2fcad2=this['editor'],_0x33865f=_0x2fcad2['locale'],_0x6336de=_0x2fcad2['plugins']['get']('Dialog'),_0x4d7f23=_0x2fcad2['plugins']['get']('RevisionTracker');function _0x2dbabf(_0x3050d6){_0x2fcad2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3050d6['revisionName']?_0x3050d6['revisionNameInputView']['errorText']=m(_0x33865f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2fcad2['plugins']['get'](u)['saveRevision']({'name':_0x3050d6['revisionName']}),_0x6336de['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2dbabf(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x6336de['show']({'id':'revisionSave','title':m(_0x33865f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x2fcad2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x6336de['hide']()},{'label':m(_0x2fcad2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2a4d6e){_0x2a4d6e['bind']('isEnabled')['to'](_0x4d7f23,'isReady',_0x4d7f23,'isEnabled',_0x2fcad2,'isReadOnly',(_0x22526d,_0x5454b3,_0x2a8b18)=>_0x22526d&&_0x5454b3&&!_0x2a8b18);},'onExecute':()=>_0x2dbabf(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0xec89b9=this['editor'],_0x15fb5c=_0xec89b9['locale'];this['_saveRevisionFormView']=new os(_0x15fb5c,_0xec89b9['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x366255{['changeId'];['_model'];constructor(_0x78d099,_0x5b5213){super(_0x78d099),this['_model']=_0x5b5213,this['changeId']=_0x5b5213['id'];const _0x767701=this['bindTemplate'],_0x333a41=m(_0x78d099,_0x5b5213['data']['isSuggestion']?'Suggested\x20by':'add'==_0x5b5213['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x5b5213['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x767701['to']('type',_0x4099d0=>'ck-revision-change__'+_0x4099d0)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x333a41}]},{'text':'\x20'+_0x5b5213['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x418ed6(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1ec7f7){super(),this['id']=_0x1ec7f7['id']||_0x3845a3(),this['author']=_0x1ec7f7['author'],this['type']=_0x1ec7f7['type'],this['data']=_0x1ec7f7['data']||{},this['rootName']=_0x1ec7f7['rootName'],this['set']('createdAt',_0x1ec7f7['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class c{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x573df7,_0x49a54c){this['newRevisionId']=_0x573df7,this['oldRevisionId']=_0x49a54c,this['changes']=new _0x564a8e();}['_setChanges'](_0x1ab562){for(const _0x476705 of _0x1ab562)this['changes']['add'](_0x476705);}}const Y={'c':_0x31bf21,'a':_0x541300,'e':_0x2215d9,'r':_0x240c22,'u':_0x336c2e};class d extends _0x3b516d{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0xbb2f2a,_0x5204d8,j];}constructor(_0x165b9a){super(_0x165b9a),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x31b2f0,_0x4c432f,_0x4c6c82)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5ade63=>{for(const _0x155426 of this['editor']['editing']['view']['document']['roots'])_0x4c6c82?_0x5ade63['removeClass']('ck-editor__editable__overlay',_0x155426):_0x5ade63['addClass']('ck-editor__editable__overlay',_0x155426);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x31aeb9=>null!==_0x31aeb9),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4edd3c,_0x3b35f3,_0x1c833e)=>_0x4edd3c&&_0x1c833e?_0x3b35f3['changes']['getIndex'](_0x1c833e):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x256aa3,_0x2ea0c4)=>_0x256aa3?_0x2ea0c4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x5204d8);}['init'](){const _0x2dbcdc=this['editor'],_0x9d9997=new yt(_0x2dbcdc,{'direction':'backward'}),_0x2fd6e6=new yt(_0x2dbcdc,{'direction':'forward'});(_0x2dbcdc['commands']['add']('showPreviousChange',_0x9d9997),_0x2dbcdc['commands']['add']('showNextChange',_0x2fd6e6),_0x2dbcdc['commands']['add']('restoreRevision',new _t(_0x2dbcdc)),this['on']('change:numberOfChanges',()=>{_0x9d9997['refresh'](),_0x2fd6e6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dbcdc['enableReadOnlyMode']('revision-viewer'),_0x2dbcdc['plugins']['has']('WidgetToolbarRepository'))&&_0x2dbcdc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x50a7fe){await this['loadRevisionData'](_0x50a7fe);const _0x487149={};for(const _0x5b85ac in _0x50a7fe['diffData']){if(_0x50a7fe['diffData'][_0x5b85ac]['attachChange']&&!_0x50a7fe['diffData'][_0x5b85ac]['attachChange']['isAttached'])continue;const _0x1fff80=this['_removeRevisionMarkers'](JSON['parse'](_0x50a7fe['diffData'][_0x5b85ac]['insertions'])),_0x3f8579=this['editor']['editing']['view']['document'],_0x5def6c=new _0x7e311e(_0x3f8579,_0x1fff80['map'](_0xdf0bb5=>this['_getViewObj'](_0xdf0bb5)));this['editor']['data']['processor']['useFillerType']('marked'),_0x487149[_0x5b85ac]=this['editor']['data']['processor']['toData'](_0x5def6c),this['editor']['data']['processor']['useFillerType']('default');}return _0x487149;}async['getRevisionRootsAttributes'](_0x97f8ab){await this['loadRevisionData'](_0x97f8ab);const _0x14e83a={};for(const _0x4e0add in _0x97f8ab['diffData'])_0x97f8ab['diffData'][_0x4e0add]['attachChange']&&!_0x97f8ab['diffData'][_0x4e0add]['attachChange']['isAttached']||(_0x14e83a[_0x4e0add]=_0x97f8ab['diffData'][_0x4e0add]['attributesAfter']||{});return _0x14e83a;}['_removeRevisionMarkers'](_0x578703){return(_0x578703=_0x578703['filter'](_0x2e89a4=>!_0x2e89a4['name']||'revision-start'!==_0x2e89a4['name']&&'revision-end'!==_0x2e89a4['name']))['forEach'](_0x571ce3=>{'string'!=typeof _0x571ce3&&(_0x571ce3['children']=this['_removeRevisionMarkers'](_0x571ce3['children']),_0x571ce3['attributes']=_0x571ce3['attributes']['filter'](_0x54a793=>!_0x54a793[0x0]['startsWith']('data-revision-')));}),_0x578703;}async['compare'](_0x384551,_0xa952c1,_0x51a299=!0x1){if(!this['isEnabled'])return;const _0x3389db=this['diff'],_0x34e200=this['repository'],_0x120812='string'==typeof _0x384551?_0x34e200['getRevision'](_0x384551):_0x384551,_0x15542b='string'==typeof _0xa952c1?_0x34e200['getRevision'](_0xa952c1):_0xa952c1,_0x537e4f=_0x120812['id'],_0x38c72b=_0x15542b?_0x15542b['id']:null;if(!_0x51a299&&this['diff']&&this['diff']['newRevisionId']===_0x537e4f&&this['diff']['oldRevisionId']===_0x38c72b)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x537e4f,_0x38c72b);const _0x4edec4=this['_getRevisionsRange'](_0x120812,_0x15542b,!0x0)['map'](_0x233dd9=>this['loadRevisionData'](_0x233dd9));return _0x4edec4['push'](new Promise(_0x545e95=>{setTimeout(_0x545e95,0x14);})),Promise['all'](_0x4edec4)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x534738=this['_getDiff'](_0x537e4f,_0x38c72b);for(const _0x335b30 of _0x534738['changes'])this['_changeIdToChange']['set'](_0x335b30['id'],_0x335b30);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5dfd56=>{for(const _0x59149a of this['editor']['model']['document']['getRootNames']())_0x5dfd56['detachRoot'](_0x59149a);for(const _0x355b6f of Object['keys'](_0x534738['model'])){const _0x107468=_0x5dfd56['addRoot'](_0x355b6f);for(const _0x4d0032 of Object['keys'](_0x534738['attributes'][_0x355b6f]))_0x5dfd56['setAttribute'](_0x4d0032,_0x534738['attributes'][_0x355b6f][_0x4d0032],_0x107468);_0x5dfd56['insert'](_0x534738['model'][_0x355b6f],_0x107468,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x534738['changes'])),this['isReady']=!0x0;})['catch'](_0x36bb63=>{console['error'](_0x36bb63),this['_cleanUp'](),_0x3389db&&(this['diff']=_0x3389db),this['isReady']=!0x0;});}['addRevisionData'](_0x19b73e,_0x325a14){const _0x15059f=this['repository']['createRevision'](_0x19b73e);return _0x15059f['on']('_update',(_0x43e1be,_0x2c6c77,_0x4b469a)=>_0x325a14(_0x2c6c77,_0x4b469a,_0x15059f)),this['repository']['addRevision'](_0x15059f),_0x15059f;}['loadRevisionData'](_0x3c0eb6){if(!_0x3c0eb6||_0x3c0eb6['diffData'])return Promise['resolve']();{const _0x232c1e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x232c1e,'revisionId':_0x3c0eb6['id']})['then'](_0x176c94=>{_0x3c0eb6['_update']({'diffData':_0x176c94['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x29d56c=>{for(const _0x26fdf2 of this['editor']['model']['document']['getRootNames']())_0x29d56c['detachRoot'](_0x26fdf2);});}['_sortAndFilterDiffChanges'](_0x474afd){const _0x5125c8=[],_0x4f618c=new Map();for(const _0x4aad33 of this['editor']['model']['document']['getRootNames']()){const _0x1a7e05=this['editor']['editing']['view']['getDomRoot'](_0x4aad33);if(!_0x1a7e05)continue;const _0x4b0697=_0x1a7e05['getClientRects']()['item'](0x0);_0x4b0697&&(_0x5125c8['push'](_0x4aad33),_0x4f618c['set'](_0x4aad33,_0x4b0697));}return _0x5125c8['sort']((_0x286432,_0x4b29c8)=>{const _0x5ba5f3=_0x4f618c['get'](_0x286432),_0x57b218=_0x4f618c['get'](_0x4b29c8);return _0x5ba5f3['y']-_0x57b218['y']||_0x5ba5f3['x']-_0x57b218['x'];}),(_0x474afd=_0x474afd['filter'](_0x57c741=>_0x5125c8['includes'](_0x57c741['rootName'])))['sort']((_0x1828f7,_0x59ded0)=>_0x5125c8['indexOf'](_0x1828f7['rootName'])-_0x5125c8['indexOf'](_0x59ded0['rootName'])),_0x474afd;}['_makeTape'](_0x298fcc){const _0x5d1e73=Array['from'](_0x298fcc['markers'])['filter'](([_0x59a5d1,_0x560298])=>_0x59a5d1['startsWith']('revision:')&&!_0x560298['isCollapsed']),_0x1b3261=Array['from'](this['editor']['model']['createRangeIn'](_0x298fcc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x5d1e73['length'])for(const _0x196116 of _0x1b3261){const [_0x2125a1,_0x11972f]=_0x5d1e73[0x0],[,_0x2b0071,_0x4f00c8]=_0x2125a1['split'](':');if(_0x11972f['end']['isEqual'](_0x196116['nextPosition'])&&_0x5d1e73['shift'](),(_0x196116['previousPosition']['isEqual'](_0x11972f['start'])||_0x196116['previousPosition']['isAfter'](_0x11972f['start']))&&('insertion'==_0x2b0071?_0x196116['isAdded']={'userId':_0x4f00c8}:'deletion'==_0x2b0071&&(_0x196116['isRemoved']={'userId':_0x4f00c8})),0x0==_0x5d1e73['length'])break;}return _0x1b3261;}['_refreshStartEndIndex'](_0x4c70b4){const _0x19652e=new Map();for(let _0x13ebb8=0x0;_0x13ebb8<_0x4c70b4['length'];_0x13ebb8++)'text'===_0x4c70b4[_0x13ebb8]['type']?(_0x4c70b4[_0x13ebb8]['item']['startIndex']=_0x13ebb8,_0x4c70b4[_0x13ebb8]['item']['endIndex']=_0x13ebb8):('elementStart'===_0x4c70b4[_0x13ebb8]['type']?_0x4c70b4[_0x13ebb8]['item']['startIndex']=_0x13ebb8:'elementEnd'===_0x4c70b4[_0x13ebb8]['type']&&(_0x4c70b4[_0x13ebb8]['item']['endIndex']=_0x13ebb8),_0x19652e['set'](_0x4c70b4[_0x13ebb8]['id'],_0x13ebb8));for(const _0x5b8dff of _0x19652e['values']())'elementStart'===_0x4c70b4[_0x5b8dff]['type']?_0x4c70b4[_0x5b8dff]['item']['endIndex']=_0x19652e['get'](_0x4c70b4[_0x5b8dff]['pairId']):'elementEnd'===_0x4c70b4[_0x5b8dff]['type']&&(_0x4c70b4[_0x5b8dff]['item']['startIndex']=_0x19652e['get'](_0x4c70b4[_0x5b8dff]['pairId']));}['_processTape'](_0x41b17c){for(let _0x441e7b=0x0;_0x441e7b<_0x41b17c['length'];_0x441e7b++){if('elementStart'===_0x41b17c[_0x441e7b]['type'])_0x41b17c[_0x441e7b]['item']['startIndex']=_0x441e7b;else{if('elementEnd'===_0x41b17c[_0x441e7b]['type']){_0x41b17c[_0x441e7b]['item']['endIndex']=_0x441e7b;const _0x53b918=_0x41b17c[_0x441e7b]['item']['startIndex'];_0x41b17c[_0x53b918]['pairId']=_0x41b17c[_0x441e7b]['id'],_0x41b17c[_0x441e7b]['pairId']=_0x41b17c[_0x53b918]['id'];}else _0x41b17c[_0x441e7b]['item']['startIndex']=_0x441e7b,_0x41b17c[_0x441e7b]['item']['endIndex']=_0x441e7b,_0x41b17c[_0x441e7b]['pairId']=null;}_0x41b17c[_0x441e7b]['markersStart']||(_0x41b17c[_0x441e7b]['markersStart']=[],_0x41b17c[_0x441e7b]['markersEnd']=[]);}}['_markInsertions'](_0x5a8d3f,_0x27201b){const _0x3f61f7=_0x5a8d3f['filter'](_0x28ba59=>!_0x28ba59['isAdded']);for(let _0x400b4c=0x0;_0x400b4c<_0x27201b['length'];_0x400b4c++)_0x27201b[_0x400b4c]['isAdded']&&(_0x3f61f7[_0x400b4c]['isAdded']=_0x27201b[_0x400b4c]['isAdded']);}['_makeModelFromViewString'](_0x1b8f9c){const _0x1430b3=JSON['parse'](_0x1b8f9c),_0x1a1b23=this['editor']['editing']['view']['document'],_0x56badf=new _0x7e311e(_0x1a1b23,_0x1430b3['map'](_0x3fc0a7=>this['_getViewObj'](_0x3fc0a7)));return this['editor']['data']['toModel'](_0x56badf);}['_getViewObj'](_0x495989){const _0x26de5e=this['editor']['editing']['view']['document'];if('string'==typeof _0x495989)return new _0xdcc05a(_0x26de5e,_0x495989);{const _0x52b9ce=_0x495989['children']['map'](_0x2afbdc=>this['_getViewObj'](_0x2afbdc));return new(Y[_0x495989['type']]||_0x42db45)(_0x26de5e,_0x495989['name'],_0x495989['attributes'],_0x52b9ce);}}['_getDiff'](_0x113ed5,_0x11150b=null){const _0x1480f9=this['repository']['getRevision'](_0x113ed5),_0x51a5e4=_0x11150b?this['repository']['getRevision'](_0x11150b):null,_0x213a98=this['_getRevisionsRange'](_0x1480f9,_0x51a5e4),_0x1d9847=_0x213a98[_0x213a98['length']-0x1],_0x26898c=new Map(),_0x3b72e3={'model':{},'attributes':{},'changes':[]},_0x45244c=new Set(),_0x2b89f0=new Map();for(let _0x4ebb97=_0x213a98['length']-0x1;_0x4ebb97>=0x0;_0x4ebb97--){const _0x532538=_0x213a98[_0x4ebb97];for(const _0x7815b3 of Object['keys'](_0x532538['diffData']))if(_0x532538['diffData'][_0x7815b3]['attachChange']){const _0x3a5f7e=_0x532538['diffData'][_0x7815b3]['attachChange'];_0x3a5f7e['isAttached']?(_0x45244c['add'](_0x7815b3),_0x2b89f0['has'](_0x7815b3)&&_0x2b89f0['get'](_0x7815b3)['userId']==_0x3a5f7e['userId']?_0x2b89f0['delete'](_0x7815b3):_0x2b89f0['set'](_0x7815b3,_0x3a5f7e)):_0x2b89f0['has'](_0x7815b3)?(_0x45244c['delete'](_0x7815b3),_0x2b89f0['delete'](_0x7815b3)):(_0x45244c['add'](_0x7815b3),_0x2b89f0['set'](_0x7815b3,_0x3a5f7e));}else _0x45244c['add'](_0x7815b3);}for(const _0x127be1 of _0x45244c){const _0x17a1d9=_0x2b89f0['has'](_0x127be1)&&!_0x2b89f0['get'](_0x127be1)['isAttached'];let _0x355c82=_0x17a1d9?_0x213a98['length']-0x1:0x0;const _0x41aace=_0x17a1d9?-0x1:0x1;for(;_0x213a98[_0x355c82];){const _0x2f9250=_0x213a98[_0x355c82];if(_0x2f9250['diffData'][_0x127be1]){const _0x1280e1=_0x17a1d9?_0x2f9250['diffData'][_0x127be1]['attributesBefore']:_0x2f9250['diffData'][_0x127be1]['attributesAfter'];_0x3b72e3['attributes'][_0x127be1]=_0x1280e1?_0x5189cc(_0x1280e1):{};break;}_0x355c82+=_0x41aace;}}for(const _0x1bd1f7 of _0x213a98){_0x1bd1f7['model']={};for(const _0x5ee56f of _0x1bd1f7['authors'])_0x26898c['set'](_0x5ee56f['id'],_0x5ee56f);for(const _0x3aaef6 of _0x45244c){const _0x14f6d8=_0x1bd1f7['diffData'][_0x3aaef6]?_0x1bd1f7['diffData'][_0x3aaef6]['insertions']:'[]',_0x327ce9=_0x1bd1f7['diffData'][_0x3aaef6]?_0x1bd1f7['diffData'][_0x3aaef6]['deletions']:'[]';_0x1bd1f7['model'][_0x3aaef6]={'insertions':this['_makeModelFromViewString'](_0x14f6d8),'deletions':this['_makeModelFromViewString'](_0x327ce9)};}}for(const _0x54a584 of _0x45244c){let _0x5abc85=null,_0x3a6261=0x0;const _0x35b41f=new Map(Array['from'](_0x1480f9['model'][_0x54a584]['insertions']['markers'])['filter'](([_0x802a02])=>!_0x802a02['startsWith']('revision:')));let _0x14aef4=0x0;for(const _0x5980fa of _0x213a98){const _0x44f3c2=this['_makeTape'](_0x5980fa['model'][_0x54a584]['insertions']);_0x5980fa==_0x1480f9?(_0x5abc85=_0x44f3c2,_0x3a6261=_0x5abc85['length'],_0x5abc85['forEach'](_0x2d390e=>{_0x2d390e['id']=_0x14aef4++;}),this['_processTape'](_0x5abc85)):this['_markInsertions'](_0x5abc85,_0x44f3c2);const _0x8862b1=_0x5abc85['filter'](_0x1b30a6=>!_0x1b30a6['isAdded'])['map'](_0x332d44=>_0x332d44['id']);let _0x2b0274=0x0;const _0x9336c0=this['_makeTape'](_0x5980fa['model'][_0x54a584]['deletions']);_0x9336c0['forEach'](_0x110313=>{_0x110313['isRemoved']?_0x110313['id']=_0x3a6261++:_0x110313['id']=_0x8862b1[_0x2b0274++];}),this['_processTape'](_0x9336c0),this['_setDistance'](_0x5abc85,'isAdded'),this['_setDistance'](_0x9336c0,'isRemoved'),_0x5980fa==_0x1480f9&&this['_markMarkers'](_0x5abc85,_0x35b41f),_0x5abc85=this['_joinTapes'](_0x5abc85,_0x9336c0),this['_refreshStartEndIndex'](_0x5abc85),this['_setDistance'](_0x5abc85,'isRemoved');}_0x5abc85=_0x5abc85['filter'](_0x4a67f6=>!(_0x4a67f6['isAdded']&&_0x4a67f6['isRemoved']));const _0x15355a=new Map(_0x1d9847['model'][_0x54a584]['deletions']['markers']),_0x18825e=new Set(_0x35b41f['keys']());for(const _0x381138 of _0x15355a['keys']())_0x18825e['delete'](_0x381138);this['_markSuggestions'](_0x5abc85,_0x18825e),this['_fixObsoleteTags'](_0x5abc85),_0x5abc85=this['_removeMissingPairs'](_0x5abc85),_0x5abc85=this['_markMismatchedRemovedTags'](_0x5abc85),_0x5abc85=this['_removeUnsupportedChanges'](_0x5abc85);const {root:_0x176d15,changes:_0x264e53}=this['_makeModelFromTape'](_0x5abc85,_0x26898c,_0x54a584);_0x3b72e3['model'][_0x54a584]=_0x176d15;const _0x18d1ad=_0x2b89f0['get'](_0x54a584);if(_0x18d1ad){const _0x3b7f6f=_0x26898c['get'](_0x18d1ad['userId']),_0x56ca5a=new r({'author':_0x3b7f6f,'type':_0x18d1ad['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x54a584});_0x264e53['unshift'](_0x56ca5a),_0x3b72e3['attributes'][_0x54a584]['revisionHistoryAttachChange']=_0x56ca5a['id'];}_0x3b72e3['changes']=_0x3b72e3['changes']['concat'](_0x264e53);}return _0x3b72e3;}['_markMarkers'](_0x374c27,_0x4a18e5){for(let _0x5529ed=0x0;_0x5529ed<_0x374c27['length'];_0x5529ed++)for(const [_0x5664c7,_0x4a52e5]of _0x4a18e5)_0x4a52e5['start']['isEqual'](_0x374c27[_0x5529ed]['previousPosition'])&&_0x374c27[_0x5529ed]['markersStart']['push'](_0x5664c7),_0x4a52e5['end']['isEqual'](_0x374c27[_0x5529ed]['nextPosition'])&&_0x374c27[_0x5529ed]['markersEnd']['push'](_0x5664c7);}['_joinTapes'](_0x2fb380,_0x588eef){let _0x4a55ef=[],_0x4ef902=0x0,_0x1e4145=0x0;for(;_0x4ef902<_0x2fb380['length']||_0x1e4145<_0x588eef['length'];){const _0x3316bc=_0x2fb380[_0x4ef902]||{},_0x464373=_0x588eef[_0x1e4145]||{};if(_0x3316bc['id']==_0x464373['id'])_0x4ef902++,_0x1e4145++,_0x4a55ef['push'](_0x3316bc);else{if(_0x464373['isRemoved']&&_0x3316bc['isAdded']){const {commonTape:_0x593b5c,iEnd:_0x36ec83,jEnd:_0x3491ce}=this['_threeWayMerge'](_0x2fb380,_0x4ef902,_0x588eef,_0x1e4145);_0x4a55ef=_0x4a55ef['concat'](_0x593b5c),_0x4ef902=_0x36ec83,_0x1e4145=_0x3491ce;}else _0x464373['isRemoved']?(_0x1e4145++,_0x4a55ef['push'](_0x464373)):(_0x4ef902++,_0x4a55ef['push'](_0x3316bc));}}return _0x4a55ef;}['_markSuggestions'](_0x40a53d,_0x3e6184){const _0x5991dd=[];for(let _0x52356d=0x0;_0x52356d<_0x40a53d['length'];_0x52356d++){for(let _0x1999db=0x0;_0x1999db<_0x40a53d[_0x52356d]['markersStart']['length'];_0x1999db++){const _0x190e3b=_0x40a53d[_0x52356d]['markersStart'][_0x1999db];if(!_0x3e6184['has'](_0x190e3b))continue;const {group:_0x41e646,type:_0x1d0e6a,authorId:_0x5e4e44}=_0x5eaeae(_0x190e3b);'revision-suggestion'!=_0x41e646||'insertion'!=_0x1d0e6a&&'deletion'!=_0x1d0e6a||(_0x5991dd['unshift']({'type':_0x1d0e6a,'name':_0x190e3b,'userId':_0x5e4e44}),_0x40a53d[_0x52356d]['markersStart']['splice'](_0x1999db,0x1),_0x1999db--);}_0x150130(_0x40a53d[_0x52356d]);for(let _0x5a6f86=0x0;_0x5a6f86<_0x40a53d[_0x52356d]['markersEnd']['length'];_0x5a6f86++){const _0x300855=_0x40a53d[_0x52356d]['markersEnd'][_0x5a6f86];if(!_0x3e6184['has'](_0x300855))continue;const {group:_0x423356,type:_0x2a8c67}=_0x5eaeae(_0x300855);if('revision-suggestion'!=_0x423356||'insertion'!=_0x2a8c67&&'deletion'!=_0x2a8c67)continue;_0x40a53d[_0x52356d]['markersEnd']['splice'](_0x5a6f86,0x1),_0x5a6f86--;const _0x873e3a=_0x5991dd['findIndex'](_0x1b2d69=>_0x1b2d69['name']==_0x300855);_0x873e3a>-0x1&&_0x5991dd['splice'](_0x873e3a,0x1);}}function _0x5eaeae(_0xb8238){const _0x2b9f47=_0xb8238['split'](':');return{'group':_0x2b9f47[0x0],'type':_0x2b9f47[0x1],'subType':_0x2b9f47['length']>=0x5?_0x2b9f47[0x2]:null,'id':_0x2b9f47['length']<0x5?_0x2b9f47[0x2]:_0x2b9f47[0x3],'authorId':_0x2b9f47['length']<0x5?_0x2b9f47[0x3]:_0x2b9f47[0x4],'markerCount':0x6==_0x2b9f47['length']?_0x2b9f47[0x5]:null};}function _0x150130(_0x200cb3){for(let _0x32921f=0x0;_0x32921f<_0x5991dd['length'];_0x32921f++){if(_0x200cb3['isAdded']&&'insertion'==_0x5991dd[_0x32921f]['type'])return _0x200cb3['isAddSuggestion']=_0x5991dd[_0x32921f],void delete _0x200cb3['isAdded'];if(!_0x200cb3['isAdded']&&!_0x200cb3['isRemoved']&&'deletion'==_0x5991dd[_0x32921f]['type'])return void(_0x200cb3['isRemoveSuggestion']=_0x5991dd[_0x32921f]);}}}['_setDistance'](_0x191b17,_0x467372){let _0x173a42=0x0,_0x473c53=!0x1;const _0x30273f=new Map();for(const _0x4aa0f0 of _0x191b17)_0x4aa0f0[_0x467372]?_0x473c53&&(_0x173a42++,_0x473c53=!0x1):(_0x173a42++,_0x473c53=!0x0),_0x30273f['set'](_0x4aa0f0['id'],_0x173a42);for(let _0x312535=0x0;_0x312535<_0x191b17['length'];_0x312535++){if('isRemoved'==_0x467372&&_0x191b17[_0x312535]['isAdded']||'isAdded'==_0x467372&&_0x191b17[_0x312535]['isRemoved'])continue;if('text'==_0x191b17[_0x312535]['type']){_0x191b17[_0x312535]['distance']=0x0;continue;}const _0x271b97=_0x30273f['get'](_0x191b17[_0x312535]['pairId']),_0x1fe899=_0x30273f['get'](_0x191b17[_0x312535]['id']);_0x191b17[_0x312535]['distance']=_0x271b97-_0x1fe899;}}['_getRevisionsRange'](_0x2770f0,_0x3ab31f,_0x2885e9=!0x1){const _0x5cf631=[];let _0x4ab77c=this['repository']['getIndex'](_0x2770f0),_0x3fb294=this['repository']['getIndex'](_0x3ab31f);for(-0x1==_0x3fb294&&(_0x3fb294=this['repository']['_revisions']['length'],_0x2885e9=!0x1);_0x4ab77c<_0x3fb294;)_0x5cf631['push'](this['repository']['getRevision'](_0x4ab77c)),_0x4ab77c++;return _0x2885e9&&_0x5cf631['push'](this['repository']['getRevision'](_0x4ab77c)),_0x5cf631;}['_threeWayMerge'](_0x56113f,_0x35f43c,_0x18153c,_0x2d4b30){const _0x291f06=this['editor']['model']['schema'];let _0x79887f=_0x35f43c;for(;_0x56113f[_0x79887f]&&_0x56113f[_0x79887f]['isAdded'];)_0x79887f++;let _0x52883e=_0x2d4b30;for(;_0x18153c[_0x52883e]&&_0x18153c[_0x52883e]['isRemoved'];)_0x52883e++;_0x331bd1(_0x56113f,_0x35f43c,_0x79887f),_0x331bd1(_0x18153c,_0x2d4b30,_0x52883e);const _0x46e0da=_0x18153c['slice'](_0x2d4b30,_0x52883e)['concat'](_0x56113f['slice'](_0x35f43c,_0x79887f));return _0x46e0da['sort']((_0x3f2f67,_0x44de61)=>_0x3f2f67['side']!=_0x44de61['side']?_0x3f2f67['side']-_0x44de61['side']:_0x3f2f67['level']!=_0x44de61['level']?_0x3f2f67['level']-_0x44de61['level']:_0x3f2f67['distance']!=_0x44de61['distance']?_0x44de61['distance']-_0x3f2f67['distance']:!!_0x3f2f67['isAdded']!=!!_0x44de61['isAdded']?-0x1==_0x3f2f67['side']||0x0==_0x3f2f67['side']?_0x3f2f67['isAdded']?-0x1:0x1:_0x3f2f67['isAdded']?0x1:-0x1:_0x3f2f67['index']-_0x44de61['index']),{'commonTape':_0x46e0da,'iEnd':_0x79887f,'jEnd':_0x52883e};function _0x331bd1(_0x3f6f02,_0x104e92,_0x12ecb3){let _0xbcffe4=-0x1,_0x10971e=Number['POSITIVE_INFINITY'],_0x45cf2d=!0x0;for(let _0x3e4ecc=_0x104e92;_0x3e4ecc<_0x12ecb3;_0x3e4ecc++)if(_0x291f06['isInline'](_0x3f6f02[_0x3e4ecc]['item'])||(_0x45cf2d=!0x1),_0x3f6f02[_0x3e4ecc]['item']['startIndex']<_0x104e92&&(_0xbcffe4=_0x3e4ecc),_0x3f6f02[_0x3e4ecc]['item']['endIndex']>=_0x12ecb3){_0x10971e=_0x3e4ecc;break;}_0x45cf2d&&(_0xbcffe4=_0x12ecb3-0x1);for(let _0x11424e=_0x104e92;_0x11424e<_0x12ecb3;_0x11424e++)_0x3f6f02[_0x11424e]['side']=_0x11424e<=_0xbcffe4?-0x1:_0x11424e<_0x10971e?0x0:0x1,_0x3f6f02[_0x11424e]['index']=_0x11424e;let _0x4a3b1b=0x0;for(let _0x409ae2=_0x104e92;_0x409ae2<=_0xbcffe4;_0x409ae2++)0x0==_0x3f6f02[_0x409ae2]['distance']?_0x3f6f02[_0x409ae2]['level']=_0x4a3b1b:(_0x4a3b1b++,_0x3f6f02[_0x409ae2]['level']=_0x4a3b1b,_0x4a3b1b++);for(let _0x46726c=_0x104e92;_0x46726c<_0x12ecb3;_0x46726c++)0x0==_0x3f6f02[_0x46726c]['side']&&(_0x3f6f02[_0x46726c]['level']=_0x4a3b1b);_0x4a3b1b=0x0;for(let _0xf0c0bf=_0x12ecb3-0x1;_0xf0c0bf>=_0x10971e;_0xf0c0bf--)0x0==_0x3f6f02[_0xf0c0bf]['distance']?_0x3f6f02[_0xf0c0bf]['level']=_0x4a3b1b:(_0x4a3b1b--,_0x3f6f02[_0xf0c0bf]['level']=_0x4a3b1b,_0x4a3b1b--);}}['_fixObsoleteTags'](_0x3b4ded){const _0x39ccc6=new Map(),_0x48b2c9=this['editor']['model']['schema'];for(let _0x2737b5=0x1;_0x2737b5<_0x3b4ded['length'];_0x2737b5++){let _0x37a0fe,_0x6055b6,_0x28ebb2;const _0x2685cb=_0x3b4ded[_0x2737b5],_0x35fe3d=_0x3b4ded[_0x2737b5-0x1];if('text'==_0x2685cb['type'])continue;if(_0x2685cb['type']!=_0x35fe3d['type'])continue;if(!_0x48b2c9['isBlock'](_0x35fe3d['item'])||_0x48b2c9['isLimit'](_0x35fe3d['item']))continue;if(!_0x48b2c9['isBlock'](_0x2685cb['item'])||_0x48b2c9['isLimit'](_0x2685cb['item']))continue;if((_0x3b4ded[_0x2737b5]['isAdded']||_0x3b4ded[_0x2737b5]['isAddSuggestion'])&&_0x3b4ded[_0x2737b5-0x1]['isRemoved'])_0x37a0fe=_0x3b4ded[_0x2737b5],_0x6055b6=_0x3b4ded[_0x2737b5-0x1],_0x28ebb2=_0x2737b5-0x1;else{if(!_0x3b4ded[_0x2737b5]['isRemoved']||!_0x3b4ded[_0x2737b5-0x1]['isAdded']&&!_0x3b4ded[_0x2737b5-0x1]['isAddSuggestion'])continue;_0x37a0fe=_0x3b4ded[_0x2737b5-0x1],_0x6055b6=_0x3b4ded[_0x2737b5],_0x28ebb2=_0x2737b5;}const _0x3f104b=_0x37a0fe['level']==_0x6055b6['level'],_0xcc647e=Math['abs'](_0x37a0fe['level'])<Math['abs'](_0x6055b6['level'])&&0x0==_0x6055b6['distance'];(_0x3f104b||_0xcc647e)&&(_0x39ccc6['set'](_0x6055b6['id'],_0x37a0fe['id']),_0x3b4ded['splice'](_0x28ebb2,0x1),_0x2737b5--,_0x37a0fe['isAdded']=!0x1);}for(let _0xcfe98d=0x0;_0xcfe98d<_0x3b4ded['length'];_0xcfe98d++)_0x39ccc6['has'](_0x3b4ded[_0xcfe98d]['pairId'])&&(_0x3b4ded[_0xcfe98d]['pairId']=_0x39ccc6['get'](_0x3b4ded[_0xcfe98d]['pairId']));}['_removeMissingPairs'](_0x16910b){const _0x53e76e=new Set(_0x16910b['map'](_0x218b33=>_0x218b33['id']));for(let _0x200ee3=0x0;_0x200ee3<_0x16910b['length'];_0x200ee3++)_0x53e76e['has'](_0x16910b[_0x200ee3]['pairId'])||0x0==_0x16910b[_0x200ee3]['distance']||(_0x16910b[_0x200ee3]['isIncorrect']=!0x0);return _0x16910b['filter'](_0x1d6d28=>!_0x1d6d28['isIncorrect']);}['_markMismatchedRemovedTags'](_0x398e26){const _0x3852dd=new Set();for(let _0x7a4212=0x0;_0x7a4212<_0x398e26['length'];_0x7a4212++){if(_0x3852dd['has'](_0x398e26[_0x7a4212]['id'])&&_0x398e26[_0x7a4212]['isRemoved']&&(_0x398e26[_0x7a4212]['isIncorrect']=!0x0),_0x398e26[_0x7a4212]['isIncorrect'])continue;if(0x0==_0x398e26[_0x7a4212]['distance'])continue;if('elementStart'!=_0x398e26[_0x7a4212]['type'])continue;if(null==_0x398e26[_0x7a4212]['pairId'])continue;let _0x452950=_0x7a4212+0x1,_0x1674f9=0x0;for(;_0x398e26[_0x452950]['id']!=_0x398e26[_0x7a4212]['pairId'];)'elementStart'==_0x398e26[_0x452950]['type']?_0x1674f9++:'elementEnd'==_0x398e26[_0x452950]['type']&&_0x1674f9--,_0x452950++;if(0x0!=_0x1674f9){if(_0x398e26[_0x7a4212]['isRemoved'])_0x398e26[_0x7a4212]['isIncorrect']=!0x0;else{for(;_0x452950!=_0x7a4212;)_0x398e26[_0x452950]['isRemoved']&&0x0!=_0x398e26[_0x452950]['distance']&&(_0x398e26[_0x452950]['isIncorrect']=!0x0,_0x3852dd['add'](_0x398e26[_0x452950]['pairId'])),_0x452950--;}}}return _0x398e26['filter'](_0x2b25b0=>!_0x2b25b0['isIncorrect']);}['_removeUnsupportedChanges'](_0x7561e){const _0x5da598=this['editor']['model']['schema'];for(let _0x28ff4f=0x0;_0x28ff4f<_0x7561e['length'];_0x28ff4f++){if(!(_0x7561e[_0x28ff4f]['isAdded']||_0x7561e[_0x28ff4f]['isAddSuggestion']||_0x7561e[_0x28ff4f]['isRemoved']||_0x7561e[_0x28ff4f]['isRemoveSuggestion']))continue;if(0x0==_0x7561e[_0x28ff4f]['distance'])continue;const _0x18aaa4=_0x7561e[_0x28ff4f]['item'];_0x5da598['isBlock'](_0x18aaa4)||_0x5da598['isLimit'](_0x18aaa4)||(_0x7561e[_0x28ff4f]['isAdded']&&delete _0x7561e[_0x28ff4f]['isAdded'],_0x7561e[_0x28ff4f]['isAddSuggestion']&&delete _0x7561e[_0x28ff4f]['isAddSuggestion'],_0x7561e[_0x28ff4f]['isRemoveSuggestion']&&delete _0x7561e[_0x28ff4f]['isRemoveSuggestion'],_0x7561e[_0x28ff4f]['isRemoved']&&(_0x7561e[_0x28ff4f]['isIncorrect']=!0x0));}return _0x7561e['filter'](_0x3239bc=>!_0x3239bc['isIncorrect']);}['_makeModelFromTape'](_0x3dccbf,_0x468014,_0x57804e){const _0x9242ad=new gt(),_0x2168f3=[],_0x86f1a1=new Map(),_0x4e300a=this['editor']['model'],_0x5bca41=_0x4e300a['schema'],_0x21f375=[_0x9242ad],_0xa726c2={},_0x1c601a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1cb188=null;const _0x50aa86=[0x0];for(let _0x36bb52=0x0;_0x36bb52<_0x3dccbf['length'];_0x36bb52++)if('elementStart'===_0x3dccbf[_0x36bb52]['type']){_0x3dccbf[_0x36bb52]['previousPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86);const _0x3c11a2=new ut(_0x3dccbf[_0x36bb52]['item']['name'],_0x3dccbf[_0x36bb52]['item']['getAttributes']());_0x21f375[0x0]['_appendChild'](_0x3c11a2),_0x50aa86['push'](0x0),_0x21f375['unshift'](_0x3c11a2),_0x3dccbf[_0x36bb52]['nextPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86);}else'elementEnd'===_0x3dccbf[_0x36bb52]['type']?(_0x21f375['shift'](),_0x3dccbf[_0x36bb52]['previousPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86),_0x50aa86['pop'](),_0x50aa86[_0x50aa86['length']-0x1]++,_0x3dccbf[_0x36bb52]['nextPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86)):(_0x3dccbf[_0x36bb52]['previousPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86),_0x1cb188?_0x1cb188['_data']+=_0x3dccbf[_0x36bb52]['item']['data']:_0x1cb188=new wt(_0x3dccbf[_0x36bb52]['item']['data'],_0x3dccbf[_0x36bb52]['item']['getAttributes']()),_0x3dccbf[_0x36bb52+0x1]&&'text'===_0x3dccbf[_0x36bb52+0x1]['type']&&_0x49351b(_0x1cb188,_0x3dccbf[_0x36bb52+0x1]['item'])||(_0x21f375[0x0]['_appendChild'](_0x1cb188),_0x1cb188=null),_0x50aa86[_0x50aa86['length']-0x1]+=_0x3dccbf[_0x36bb52]['item']['offsetSize'],_0x3dccbf[_0x36bb52]['nextPosition']=_0x4e300a['createPositionFromPath'](_0x9242ad,_0x50aa86));for(let _0x5274c8=0x0;_0x5274c8<_0x3dccbf['length'];_0x5274c8++){const _0x48092e=_0x3dccbf[_0x5274c8]['previousPosition'],_0x3c312d=_0x3dccbf[_0x5274c8]['nextPosition'];for(const _0x48bd0d of _0x3dccbf[_0x5274c8]['markersStart'])_0x86f1a1['set'](_0x48bd0d,{'start':_0x48092e,'end':null});_0x1bcfd4('isRemoveSuggestion',_0x5274c8,_0x48092e,_0x3c312d),_0x1bcfd4('isAddSuggestion',_0x5274c8,_0x48092e,_0x3c312d),_0x1bcfd4('isRemoved',_0x5274c8,_0x48092e,_0x3c312d),_0x1bcfd4('isAdded',_0x5274c8,_0x48092e,_0x3c312d);for(const _0x304d79 of _0x3dccbf[_0x5274c8]['markersEnd']){_0x86f1a1['get'](_0x304d79)['end']=_0x3c312d;}}for(const [_0x2e0b7e,_0x583a59]of _0x86f1a1){const _0x1122ca=this['editor']['model']['createRange'](_0x583a59['start'],_0x583a59['end']);_0x9242ad['markers']['set'](_0x2e0b7e,_0x1122ca);}return _0x2168f3['sort']((_0x14b65a,_0x47466e)=>{const _0x41744e=_0x9242ad['markers']['get']('revision:'+_0x14b65a['id']),_0x325592=_0x9242ad['markers']['get']('revision:'+_0x47466e['id']);return _0x41744e['start']['isBefore'](_0x325592['start'])?-0x1:_0x41744e['start']['isAfter'](_0x325592['start'])?0x1:_0x41744e['end']['isBefore'](_0x325592['end'])?-0x1:_0x41744e['end']['isAfter'](_0x325592['end'])?0x1:'add'===_0x14b65a['type']?-0x1:0x1;}),{'root':_0x9242ad,'changes':_0x2168f3};function _0x1bcfd4(_0x2c4101,_0x4a4612,_0x2f8e53,_0x1be45f){const _0x21ec26=!!_0x3dccbf[_0x4a4612][_0x2c4101],_0x32bc54=_0x21ec26?_0x3dccbf[_0x4a4612][_0x2c4101]['userId']:null,_0x5970fe=_0x4a4612===_0x3dccbf['length']-0x1,_0x41efbd=_0x1c601a[_0x2c4101][0x0],_0x4bb739=_0x5bca41['isObject'](_0x3dccbf[_0x4a4612]['item']);!_0xa726c2[_0x2c4101]&&_0x21ec26?_0xa726c2[_0x2c4101]={'start':_0x2f8e53,'tapeItem':_0x3dccbf[_0x4a4612],'userId':_0x32bc54,'type':_0x2c4101}:_0xa726c2[_0x2c4101]&&!_0x21ec26?(_0xa726c2[_0x2c4101]['end']=_0x2f8e53,_0x157983(_0xa726c2[_0x2c4101]),_0xa726c2[_0x2c4101]=null):_0xa726c2[_0x2c4101]&&_0x21ec26&&_0xa726c2[_0x2c4101]['userId']!==_0x32bc54&&(_0xa726c2[_0x2c4101]['end']=_0x2f8e53,_0x41efbd&&_0x41efbd['userId']===_0xa726c2[_0x2c4101]['userId']||_0x157983(_0xa726c2[_0x2c4101]),_0xa726c2[_0x2c4101]={'start':_0x2f8e53,'tapeItem':_0x3dccbf[_0x4a4612],'userId':_0x32bc54,'type':_0x2c4101}),_0xa726c2[_0x2c4101]&&_0x4bb739&&('elementStart'!==_0x3dccbf[_0x4a4612]['type']||_0x41efbd&&_0x41efbd['userId']===_0x32bc54||_0x1c601a[_0x2c4101]['unshift']({'userId':_0x32bc54,'object':_0x3dccbf[_0x4a4612]['item'],'change':_0xa726c2[_0x2c4101]}),'elementEnd'===_0x3dccbf[_0x4a4612]['type']&&_0x41efbd&&_0x41efbd['object']===_0x3dccbf[_0x4a4612]['item']&&(_0x1c601a[_0x2c4101]['shift'](),_0xa726c2[_0x2c4101]=_0x41efbd['change'])),_0xa726c2[_0x2c4101]&&_0x5970fe&&(_0xa726c2[_0x2c4101]['end']=_0x1be45f,_0x157983(_0xa726c2[_0x2c4101]),_0xa726c2[_0x2c4101]=null);}function _0x157983({start:_0x19b36c,end:_0x4c8217,tapeItem:_0xbc9f3,userId:_0x5cb8bd,type:_0x3d6786}){const _0x6da308=_0xbc9f3['item'],_0x8cd3db=_0x4e300a['schema']['isBlock'](_0x6da308)&&!_0x4e300a['schema']['isLimit'](_0x6da308),_0x5c5aee=_0x19b36c['nodeAfter']==_0x4c8217['parent']&&_0x4c8217['isAtStart'];if(_0x8cd3db&&_0x5c5aee)return;const _0x25acf4=_0x4e300a['createRange'](_0x19b36c,_0x4c8217),_0x54c08b=_0x468014['get'](_0x5cb8bd),_0x701ced=new r({'author':_0x54c08b,'type':'isAdded'==_0x3d6786||'isAddSuggestion'==_0x3d6786?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x3d6786||'isRemoveSuggestion'==_0x3d6786},'createdAt':new Date(),'rootName':_0x57804e});_0x2168f3['push'](_0x701ced),_0x9242ad['markers']['set']('revision:'+_0x701ced['id'],_0x25acf4);}function _0x49351b(_0x3b7975,_0xba7f2e){const _0x413146=_0x3b7975['getAttributes'](),_0x156097=_0xba7f2e['getAttributes']();for(const _0x2f8197 of _0x413146){if(_0x2f8197[0x1]!==_0xba7f2e['getAttribute'](_0x2f8197[0x0]))return!0x1;_0x156097['next']();}return _0x156097['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x3f4aea=>{const _0x439d0c=_0x3f4aea['markerName']['split'](':')[0x1],_0x5ce74b=this['_getChangeFromId'](_0x439d0c);if(!_0x5ce74b)return null;const _0x5f1769='add'==_0x5ce74b['type']?'insertion':'deletion',_0x529cf4=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5f1769];return _0x5ce74b['data']['isSuggestion']&&_0x529cf4['push']('ck-suggestion-marker-'+_0x5f1769+'-new'),this['activeChange']==_0x5ce74b&&_0x529cf4['push']('ck-suggestion-marker--active'),{'classes':_0x529cf4,'attributes':{'data-change-id':_0x439d0c}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x259622=>{_0x259622['on']('element:pre',(_0xa323a7,_0xc6963,_0x1dc74d)=>{const _0x1dbe5b=_0xc6963['viewItem']['getChild'](0x0);if(!_0x1dbe5b||!_0x1dbe5b['is']('element','code'))return;if(!_0x1dc74d['consumable']['consume'](_0x1dbe5b,{'attributes':['vid_start','vid_end']}))return;const _0x2cf4c6=_0xc6963['modelRange']['start']['nodeAfter'];_0x1dc74d['writer']['setAttribute']('vid_start',_0x1dbe5b['getAttribute']('vid_start'),_0x2cf4c6),_0x1dc74d['writer']['setAttribute']('vid_end',_0x1dbe5b['getAttribute']('vid_end'),_0x2cf4c6);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x21f5d7=>{_0x21f5d7['on']('element',(_0x21adb4,_0x357bb7,_0x1edefd)=>{if(!_0x1edefd['consumable']['consume'](_0x357bb7['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x357bb7['modelRange']['isCollapsed'])return;const _0x4b4217=_0x357bb7['modelRange']['start']['nodeAfter'];_0x4b4217['hasAttribute']('vid_start')||_0x4b4217['hasAttribute']('vid')||(_0x1edefd['writer']['setAttribute']('vid_start',_0x357bb7['viewItem']['getAttribute']('vid_start'),_0x4b4217),_0x1edefd['writer']['setAttribute']('vid_end',_0x357bb7['viewItem']['getAttribute']('vid_end'),_0x4b4217));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5029f5=>_0x5029f5['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x2093fb,[,_0x55a56b])=>{['vid_start','vid_end','vid']['includes'](_0x55a56b)&&(_0x2093fb['return']=!0x0,_0x2093fb['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x8deed7=>{_0x8deed7['on']('attribute:vid',(_0x327193,_0x2698de,_0x5cf35d)=>{if('\x20'!=_0x2698de['item']['data']||_0x2698de['item']['parent']['maxOffset']>0x1)return;if(!_0x5cf35d['consumable']['consume'](_0x2698de['item'],_0x327193['name']))return;const _0x4dad0f=_0x5cf35d['writer'],_0x3aecca=_0x5cf35d['mapper']['toViewRange'](_0x2698de['range']);_0x4dad0f['wrap'](_0x3aecca,_0x4dad0f['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x134740){const _0x1c122c=_0x134740['plugins']['get']('RevisionViewer');return(_0x160869,_0x10b6eb,_0x552867)=>{const _0x7d00ec=_0x10b6eb['markerName']['split'](':')[0x1],_0x38fcd9=_0x1c122c['_getChangeFromId'](_0x7d00ec);if(!_0x38fcd9)return null;const _0x3854c1='add'==_0x38fcd9['type']?'split':'merge';if(!_0x552867['consumable']['test'](_0x10b6eb['markerRange'],_0x160869['name']))return;const _0xc877e7=_0x10b6eb['markerRange']['getWalker'](),_0x4e021f=_0x10b6eb['markerRange']['start'],_0xe182d2=_0x134740['model']['schema'];let _0x50fa97=null,_0x3d3bbc=null,_0x11092b=!0x1,_0x2ee522=!0x1;for(const _0x4f7d1c of _0xc877e7){const _0x5f49cc=_0x4f7d1c['item'];_0x11092b=_0x11092b||_0xe182d2['isContent'](_0x5f49cc);const _0x4dc3e3=_0x552867['mapper']['toViewElement'](_0x5f49cc);if(_0x4dc3e3&&_0x4dc3e3['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4f7d1c['type']&&(_0xe182d2['isBlock'](_0x5f49cc)&&!_0xe182d2['isLimit'](_0x5f49cc)&&(_0x5f49cc['nextSibling']||_0x4e021f['isAtEnd']?_0x50fa97&&_0x50fa97['parent']==_0x5f49cc||(_0x50fa97=_0x5f49cc,_0x4af04e(_0x4f7d1c['previousPosition']),_0x2ee522=!0x0):_0x3d3bbc=_0x3d3bbc||_0x4f7d1c['previousPosition']));}function _0x4af04e(_0x5c8ec6){const _0x7d5ff=_0x552867['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3854c1}),_0x563165=_0x552867['mapper']['toViewPosition'](_0x5c8ec6);_0x38fcd9['data']['isSuggestion']&&_0x552867['writer']['addClass']('ck-suggestion-marker-'+_0x3854c1+'-new',_0x7d5ff),_0x1c122c['activeChange']==_0x38fcd9&&_0x552867['writer']['addClass']('ck-suggestion-marker--active',_0x7d5ff),_0x552867['writer']['insert'](_0x563165,_0x7d5ff),_0x552867['mapper']['bindElementToMarker'](_0x7d5ff,_0x10b6eb['markerName']);}_0x11092b||_0x2ee522||!_0x3d3bbc||_0x4af04e(_0x3d3bbc);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x2839ec,_0x28be03,_0x40ba68)=>{const _0x49d440=_0x40ba68['mapper']['markerNameToElements'](_0x28be03['markerName']);if(_0x49d440){for(const _0x59f54f of _0x49d440)(_0x59f54f['hasClass']('ck-suggestion-marker-split')||_0x59f54f['hasClass']('ck-suggestion-marker-merge'))&&(_0x40ba68['mapper']['unbindElementFromMarkerName'](_0x59f54f,_0x28be03['markerName']),_0x40ba68['writer']['remove'](_0x59f54f));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x36d0cc,_0xd8ab85,_0x303830)=>{const _0x234371=_0xd8ab85['markerName']['split'](':')[0x1],_0x253774=this['_getChangeFromId'](_0x234371);if(!_0x253774)return null;const _0xd45c6e='add'==_0x253774['type']?'split':'merge';if(_0x303830['consumable']['test'](_0xd8ab85['markerRange'],_0x36d0cc['name']))for(const _0x240432 of _0xd8ab85['markerRange']['getItems']()){if(!_0x240432['is']('element','softBreak'))continue;const _0xd0f896=_0x303830['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0xd45c6e}),_0x2e58a8=_0x303830['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x240432));_0x253774['data']['isSuggestion']&&_0x303830['writer']['addClass']('ck-suggestion-marker-'+_0xd45c6e+'-new',_0xd0f896),this['activeChange']==_0x253774&&_0x303830['writer']['addClass']('ck-suggestion-marker--active',_0xd0f896),_0x303830['writer']['insert'](_0x2e58a8,_0xd0f896),_0x303830['mapper']['bindElementToMarker'](_0xd0f896,_0xd8ab85['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1dace5=>{for(const _0x3d3026 of this['editor']['model']['document']['getRootNames']()){const _0x4fbd53=this['editor']['model']['document']['getRoot'](_0x3d3026),_0x26ce1d=this['editor']['editing']['view']['document']['getRoot'](_0x3d3026);if(_0x26ce1d){const _0x29ad98=_0x4fbd53['getAttribute']('revisionHistoryAttachChange');if(_0x1dace5['removeAttribute']('data-change-id',_0x26ce1d),_0x1dace5['removeClass']('ck-revision-history-root-add',_0x26ce1d),_0x1dace5['removeClass']('ck-revision-history-root-remove',_0x26ce1d),_0x1dace5['removeClass']('ck-revision-history-root--active',_0x26ce1d),_0x29ad98){const _0x123142=this['_getChangeFromId'](_0x29ad98);if(!_0x123142)return null;_0x1dace5['setAttribute']('data-change-id',_0x29ad98,_0x26ce1d),_0x1dace5['addClass']('ck-revision-history-root-'+_0x123142['type'],_0x26ce1d),this['activeChange']==_0x123142&&_0x1dace5['addClass']('ck-revision-history-root--active',_0x26ce1d);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x2f1cb2=>'revision-comment:'+_0x2f1cb2,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x40bd17=>'revision-suggestion:'+_0x40bd17,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xcf3986=>({'name':'suggestion:'+_0xcf3986,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x31df23=>{const _0x405661=_0x31df23['markerName']['split'](':')[0x1];return'insertion'!=_0x405661&&'deletion'!=_0x405661?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x405661]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0xbc3190,_0x4082f5,_0x267f13)=>{const _0x3257a9=_0x267f13['mapper']['markerNameToElements'](_0x4082f5['markerName']);if(_0x3257a9){for(const _0x26728b of _0x3257a9)_0x26728b['is']('uiElement')&&(_0x267f13['mapper']['unbindElementFromMarkerName'](_0x26728b,_0x4082f5['markerName']),_0x267f13['writer']['remove'](_0x26728b));}},{'priority':'high'});}['_getChangeFromId'](_0x8021b7){return this['_changeIdToChange']['get'](_0x8021b7);}['_getViewForChange'](_0x23be27){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x23be27),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x5022eb,_0x3c0255,_0x2d0df0,_0x5467a5)=>{_0x5467a5&&this['_balloon']['remove'](_0x5467a5),_0x2d0df0&&(this['_balloon']['add']({'view':_0x2d0df0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x40bb40=this['editor']['editing'],_0x214abc=this['_getChangeFromId'](_0x2d0df0['changeId']);let _0x36e887;if(_0x214abc['data']['isOnRoot']){const _0x27561a=_0x40bb40['view']['getDomRoot'](_0x214abc['rootName']);_0x36e887=Array['from'](_0x27561a['getClientRects']());}else{const _0x19a9dd=this['editor']['model']['markers']['get']('revision:'+_0x2d0df0['changeId']);_0x36e887=Array['from'](_0x40bb40['mapper']['markerNameToElements'](_0x19a9dd['name']))['map'](_0x4410c1=>_0x40bb40['view']['domConverter']['mapViewToDom'](_0x4410c1))['map'](_0x1c0143=>Array['from'](_0x1c0143['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x36e887[0x0];return _0x36e887['find'](_0x381778=>_0x381778['top']-0x3<=this['_activeViewTarget']['y']&&_0x381778['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x381778['left']-0x3<=this['_activeViewTarget']['x']&&_0x381778['right']+0x3>=this['_activeViewTarget']['x'])||_0x36e887[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x234f51,_0x22c700,_0x5a7b91,_0xd12f50)=>{this['activeView']=_0x5a7b91?this['_getViewForChange'](_0x5a7b91):null,this['editor']['model']['change'](()=>{const _0x406106=this['editor']['editing'];_0xd12f50&&(_0xd12f50['data']['isOnRoot']?_0x406106['view']['change'](_0x1a526e=>{_0x1a526e['removeClass']('ck-revision-history-root--active',_0x406106['view']['document']['getRoot'](_0xd12f50['rootName']));}):_0x406106['reconvertMarker']('revision:'+_0xd12f50['id'])),_0x5a7b91&&(_0x5a7b91['data']['isOnRoot']?_0x406106['view']['change'](_0x83876a=>{_0x83876a['addClass']('ck-revision-history-root--active',_0x406106['view']['document']['getRoot'](_0x5a7b91['rootName']));}):_0x406106['reconvertMarker']('revision:'+_0x5a7b91['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x1199aa,_0x203b8e)=>{if(this['activeChange'])return;const _0x477a8d=this['_findChangeIdFromDomTarget'](_0x203b8e['target']),_0x547b87=this['_changeIdToChange']['get'](_0x477a8d);_0x547b87?(this['_activeViewTarget']={'x':_0x203b8e['domEvent']['x'],'y':_0x203b8e['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x547b87)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1f6aa5,_0x26381b)=>{const _0x439995=this['_findChangeIdFromDomTarget'](_0x26381b['target']),_0x4f2840=this['_changeIdToChange']['get'](_0x439995);_0x4f2840?(this['_activeViewTarget']={'x':_0x26381b['domEvent']['x'],'y':_0x26381b['domEvent']['y']},_0x4f2840===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x4f2840):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1107b8){do{const _0x5ba2fc=_0x1107b8['getAttribute']('data-change-id');if(_0x5ba2fc)return _0x5ba2fc;_0x1107b8=_0x1107b8['parent'];}while(_0x1107b8);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x14cc55=>{for(const _0x1c35c1 of this['editor']['model']['markers'])_0x14cc55['removeMarker'](_0x1c35c1);});}}function Z(_0x5b94fe,_0x2d6be1){return(_0x52f89a,_0x44e08a,_0x4eb8dd)=>{if(!_0x4eb8dd['consumable']['test'](_0x44e08a['markerRange'],_0x52f89a['name']))return;const _0x5bb527=_0x44e08a['markerRange']['getWalker'](),_0x11991e=_0x44e08a['markerRange']['start'],_0x5eecfd=_0x5b94fe['model']['schema'];let _0x50f196=null,_0x5e97b4=null,_0x367f6b=!0x1,_0x2bb6b2=!0x1;for(const _0x4a17aa of _0x5bb527){const _0xe05f75=_0x4a17aa['item'];_0x367f6b=_0x367f6b||_0x5eecfd['isContent'](_0xe05f75);const _0xf44f59=_0x4eb8dd['mapper']['toViewElement'](_0xe05f75);if(_0xf44f59&&_0xf44f59['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x4a17aa['type']&&(_0x5eecfd['isBlock'](_0xe05f75)&&!_0x5eecfd['isLimit'](_0xe05f75)&&(_0xe05f75['nextSibling']||_0x11991e['isAtEnd']?_0x50f196&&_0x50f196['parent']==_0xe05f75||(_0x50f196=_0xe05f75,_0x533fa9(_0x4a17aa['previousPosition']),_0x2bb6b2=!0x0):_0x5e97b4=_0x5e97b4||_0x4a17aa['previousPosition']));}function _0x533fa9(_0x27f8e6){const _0x5bc5b2=_0x4eb8dd['mapper']['toViewPosition'](_0x27f8e6),_0x2e9f55=_0x4eb8dd['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2d6be1});_0x4eb8dd['writer']['insert'](_0x5bc5b2,_0x2e9f55),_0x4eb8dd['mapper']['bindElementToMarker'](_0x2e9f55,_0x44e08a['markerName']);}_0x367f6b||_0x2bb6b2||!_0x5e97b4||_0x533fa9(_0x5e97b4);};}class _t extends _0x17e1ed{constructor(_0x2b951a){super(_0x2b951a);const _0x110c91=_0x2b951a['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x110c91,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x110c91,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x4a1e84=this['editor'],_0x464a47=_0x4a1e84['plugins']['get'](d),_0x3ab855=_0x464a47['isReady']?_0x464a47['diff']['newRevisionId']:null;_0x4a1e84['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x3ab855);}['refresh'](){const {isReady:_0x3f39d6,isEnabled:_0x2ed56e,repository:_0x420aec,diff:_0xf8def}=this['editor']['plugins']['get'](d),_0x8226bc=_0xf8def&&_0x420aec['getLaterVisibleRevision'](_0xf8def['newRevisionId']);this['isEnabled']=_0x3f39d6&&_0x2ed56e&&Boolean(_0x8226bc);}}class yt extends _0x17e1ed{['_step'];constructor(_0x42e8c9,{direction:_0x6835ec}){super(_0x42e8c9);const _0x231f57=_0x42e8c9['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x6835ec?0x1:-0x1,this['listenTo'](_0x231f57,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x231f57,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x231f57,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x146b26=this['editor'],_0x469c80=_0x146b26['plugins']['get'](d),{isNavigationMode:_0x2bb053,currentChangeNumber:_0x1f6ee9}=_0x469c80;let _0x2862ff;if(_0x469c80['activeChange']=_0x2bb053?_0x469c80['diff']['changes']['get'](_0x1f6ee9+this['_step']):_0x469c80['diff']['changes']['first'],_0x469c80['activeChange']['data']['isOnRoot'])_0x2862ff=_0x146b26['editing']['view']['getDomRoot'](_0x469c80['activeChange']['rootName']);else{const _0x3af138=_0x146b26['model']['markers']['get']('revision:'+_0x469c80['activeChange']['id']);_0x2862ff=_0x52f2ad(_0x146b26['editing'],_0x3af138);}_0x12b6a1({'target':_0x2862ff,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x22f013,currentChangeNumber:_0x11c5a6,numberOfChanges:_0x2e2e8e,isReady:_0x1e9281,isEnabled:_0x53dbb9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x53dbb9&&_0x1e9281&&_0x2e2e8e)&&(!_0x22f013||(0x1===this['_step']?_0x11c5a6<_0x2e2e8e-0x1:_0x11c5a6>0x0));}}class li extends _0x366255{constructor(_0xea7712){super(_0xea7712);const _0x108d2f=this['bindTemplate'],_0x454611=new _0x5c816d(_0xea7712),_0x3fc9eb=new _0x5c816d(_0xea7712);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',(_0xd0ca5d,_0x9e660d)=>_0xd0ca5d&&_0x9e660d>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4844b8,_0x3b3b59,_0x41cb23,_0xcb51dd)=>{if(!_0x4844b8)return m(_0xea7712,'Loading...');if(!_0x41cb23)return m(_0xea7712,'No\x20changes');const _0xd591e6=m(_0xea7712,'NUMBER_OF_CHANGES',_0x41cb23);return _0xcb51dd?m(_0xea7712,'X_OF_Y_CHANGES',[_0x3b3b59+0x1,_0x41cb23]):_0xd591e6;}),_0x454611['set']({'label':m(_0xea7712,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1d3576}),_0x3fc9eb['set']({'label':m(_0xea7712,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2bbc5b}),_0x454611['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x3fc9eb['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x454611['on']('execute',()=>this['fire']('execute','backward')),_0x3fc9eb['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',_0x108d2f['if']('_isStatusLabelVisible','ck-hidden',_0x167ae5=>!_0x167ae5)]},'children':[{'text':_0x108d2f['to']('isNavigationMode',_0x128347=>_0x128347?m(_0xea7712,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0xea7712,'Total')+':\x20')}]},{'text':_0x108d2f['to']('_statusText')}]},new _0x20ddf4(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x454611,_0x3fc9eb]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3b516d{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x221a04=this['editor']['editing']['view'];_0x221a04['change'](_0x4c9ccf=>{for(const _0x2e5fbe of _0x221a04['document']['roots'])_0x4c9ccf['addClass'](ce,_0x2e5fbe);});}['hide'](){const _0x53dabb=this['editor']['editing']['view'];_0x53dabb['change'](_0x99c318=>{for(const _0xcbffe0 of _0x53dabb['document']['roots'])_0x99c318['removeClass'](ce,_0xcbffe0);});}}class w extends _0x3b516d{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x1b6c0f=this['editor'],_0x1a63e0=_0x1b6c0f['plugins']['get'](d),_0x2a0ef2=_0x1b6c0f['plugins']['get'](le);_0x1b6c0f['ui']['componentFactory']['add']('exitToEditing',_0x502c50=>{const _0x4babb4=new _0x5c816d(_0x502c50);return _0x4babb4['set']({'label':m(_0x502c50,'Back\x20to\x20editing'),'icon':_0x5c37a4,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4babb4,'execute',()=>{_0x1b6c0f['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4babb4;}),_0x1b6c0f['ui']['componentFactory']['add']('restoreRevision',_0x169e47=>{const _0x37ca05=new _0x5c816d(_0x169e47);return _0x37ca05['set']({'label':m(_0x169e47,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x37ca05['bind']('isEnabled')['to'](_0x1b6c0f['commands']['get']('restoreRevision')),this['listenTo'](_0x37ca05,'execute',()=>_0x1b6c0f['execute']('restoreRevision')),_0x37ca05;}),_0x1b6c0f['ui']['componentFactory']['add']('changesNavigation',_0x5df9a1=>{const _0x5ab0ee=new li(_0x5df9a1),_0x5053da=_0x1b6c0f['commands']['get']('showPreviousChange'),_0x53f1fd=_0x1b6c0f['commands']['get']('showNextChange');return _0x5ab0ee['bind']('isBackwardNavigationEnabled')['to'](_0x5053da,'isEnabled'),_0x5ab0ee['bind']('isForwardNavigationEnabled')['to'](_0x53f1fd,'isEnabled'),_0x5ab0ee['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1a63e0),this['listenTo'](_0x5ab0ee,'execute',(_0x996836,_0x3461d4)=>{_0x1b6c0f['execute']('forward'===_0x3461d4?'showNextChange':'showPreviousChange');}),_0x5ab0ee;}),_0x2a0ef2['show'](),_0x1a63e0['on']('change:isReady',(_0x54e95e,_0x3a73ad,_0x423ec6)=>{_0x423ec6?_0x2a0ef2['hide']():_0x2a0ef2['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x425f84,_0x57a6a7){super(_0x425f84,_0x57a6a7);const _0x550bc1=this['bindTemplate'];this['set']({'label':m(_0x425f84,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x425f84,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x550bc1['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x132cb3=this['fieldView']['element'];this['_tooltipString']=_0x132cb3['scrollWidth']>_0x132cb3['clientWidth']&&_0x132cb3['value']||'';}}class oi extends _0x366255{constructor(_0x36b635,_0x31689c,_0x5327fc){super(_0x36b635);const _0x12e210=new _0x2014e5();_0x12e210['set']({'content':_0x73fe84,'viewBox':'0\x200\x2011\x2010'});const _0x5cb05a=['ck','ck-revision-history-sidebar__revision-author'];_0x5327fc&&_0x5cb05a['push']('ck-revision-history-sidebar__revision-author_creator');const _0x406bb8=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x36b635,_0x5327fc?'Revision\x20creator':'Revision\x20author')},'children':[_0x12e210,_0x31689c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5cb05a},'children':_0x406bb8});}}function ni(_0xcd15f6,_0x5116b0){const _0x2f3a40=_0xcd15f6['bindTemplate'],_0x2c17a1=_0xcd15f6['locale'],_0x11d2d5=_0x54cd08(_0x2c17a1);_0x11d2d5['panelPosition']='sw';const _0x1d22d7=function(_0x1f69f1,_0x31f686){const _0xf14894=function(_0x1dbaf6,_0x501ac1){const _0x599351=_0x1dbaf6['locale'],_0x19b1a8={'Compare\x20against\x20selected':m(_0x599351,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x599351,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x599351,'Restore\x20this\x20revision')};return _0x501ac1['map'](_0x47a30e=>{const _0x11b36d=_0x19b1a8[_0x47a30e['name']];return _0x11b36d&&_0x11b36d!==_0x47a30e['name']&&(_0x47a30e['name']=_0x11b36d),_0x47a30e;});}(_0x1f69f1,_0x31f686),_0x3fa16d=new _0x564a8e();for(const _0x1969b8 of _0xf14894){const _0x56c759={'type':'button','model':new to({'label':_0x1969b8['name'],'class':_0x1969b8['class'],'withText':!0x0,'role':'menuitem','_action':_0x1969b8['action']})};_0x56c759['model']['bind']('isEnabled')['to'](_0x1f69f1,'isActionsDropdownOpen',_0x468af=>'function'!=typeof _0x1969b8['isEnabled']||(!_0x468af||_0x1969b8['isEnabled'](_0x1f69f1))),_0x3fa16d['add'](_0x56c759);}return _0x3fa16d;}(_0xcd15f6,_0x5116b0);return _0xcd15f6['bind']('isActionsDropdownOpen')['to'](_0x11d2d5,'isOpen'),_0x11d2d5['buttonView']['set']({'label':m(_0x2c17a1,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x53b20c}),_0x11d2d5['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x2f3a40['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x2f3a40['to'](_0x5a91f2=>_0x5a91f2['stopPropagation']())}}),_0x11d2d5['on']('execute',_0x576be0=>{_0xcd15f6['isReady']&&'function'==typeof _0x576be0['source']['_action']&&_0x576be0['source']['_action'](_0xcd15f6);}),_0x855b21(_0x11d2d5,_0x1d22d7,{'role':'menu'}),_0x11d2d5['listenTo'](_0xcd15f6,'change:isActionsDropdownOpen',(_0x3c4214,_0x26d474,_0x198694)=>{if(_0x198694)for(const _0x4aa935 of _0x11d2d5['listView']['items']){const _0x105d12=_0x4aa935['children']['first'],_0x367aa3=_0x5116b0['find'](_0x1d9201=>_0x1d9201['action']===_0x105d12['_action'])['isVisible'];_0x4aa935['isVisible']=void 0x0===_0x367aa3||_0x367aa3(_0xcd15f6);}}),_0x11d2d5;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x406abf(_0x366255){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x3f4683,_0x3a546a,_0x526c3f,_0x3e8a63){super(_0x3f4683);const _0x1b1486=this['bindTemplate'],_0x2dd409=function(_0x2cf391,_0x20e75d){const _0x4f7dc9=Array['from'](_0x20e75d['authors'])['filter'](_0x21ed94=>_0x21ed94!=_0x20e75d['creator']);return _0x20e75d['creator']&&_0x4f7dc9['unshift'](_0x20e75d['creator']),_0x4f7dc9['map'](_0x2efd04=>new oi(_0x2cf391,_0x2efd04,_0x2efd04==_0x20e75d['creator']));}(_0x3f4683,_0x3a546a);this['id']=_0x3a546a['id'],this['_revision']=_0x3a546a,this['_requireRevisionName']=_0x3e8a63,this['bind']('name','createdAt')['to'](_0x3a546a),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x398a43=>{return _0x2fb10a=_0x3f4683['uiLanguage'],(_0x48a5a4=_0x398a43)['toLocaleDateString'](_0x2fb10a,{'month':'long','day':'numeric'})+',\x20'+_0x48a5a4['toLocaleTimeString'](_0x2fb10a,{'hour':'numeric','minute':'numeric'});var _0x2fb10a,_0x48a5a4;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x3f4683,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x233b11=>_0x233b11||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x26ee6a,_0x5c1c3e)=>_0x26ee6a&&_0x5c1c3e),this['revisionActionsView']=_0x526c3f&&_0x526c3f['length']?ni(this,_0x526c3f):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1b1486['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1b1486['if']('isEnabled','ck-disabled',_0x1bfb5b=>!_0x1bfb5b),_0x1b1486['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1b1486['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1b1486['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':_0x1b1486['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':_0x2dd409}]},this['revisionActionsView']],'on':{'click':_0x1b1486['to'](_0x25987c=>{_0x25987c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4c5825=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4c5825,'change',()=>{this['_requireRevisionName']&&!_0x4c5825['value']||this['fire']('setName',{'id':this['id'],'name':_0x4c5825['value']}),_0x4c5825['value']||(_0x4c5825['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x2f2dca,_0x4cf6a9){const _0x5eb1f8=_0x13dab4['fromJSDate'](_0x2f2dca)['setLocale'](_0x4cf6a9),_0x5f46b3=_0x13dab4['local'](),_0x17d2c9=_0x5f46b3['minus']({'days':0x1})['startOf']('day');let _0x4784f0,_0x5d046b;return _0x5eb1f8['hasSame'](_0x5f46b3,'day')?(_0x4784f0=_0x5eb1f8['startOf']('day')['toJSDate'](),_0x5d046b=_0x5eb1f8['toRelativeCalendar']()):_0x5eb1f8['hasSame'](_0x17d2c9,'day')?(_0x4784f0=_0x17d2c9['toJSDate'](),_0x5d046b=_0x5eb1f8['toRelativeCalendar']()):_0x5eb1f8['hasSame'](_0x5f46b3,'week')?(_0x4784f0=_0x5eb1f8['startOf']('week')['toJSDate'](),_0x5d046b=_0x5eb1f8['weekdayLong']||''):_0x5eb1f8['hasSame'](_0x5f46b3,'year')?(_0x4784f0=_0x5eb1f8['startOf']('month')['toJSDate'](),_0x5d046b=_0x5eb1f8['monthLong']||''):(_0x4784f0=_0x5eb1f8['startOf']('year')['toJSDate'](),_0x5d046b=String(_0x5eb1f8['year'])),{'startDate':_0x4784f0,'localizedPeriodName':_0x5d046b};}class _i extends _0x366255{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3333aa,_0x45e96a,_0x2dc758,_0x418134){super(_0x3333aa);const _0x2bc321=mi(_0x45e96a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x45e96a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2dc758,this['_requireRevisionName']=_0x418134,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':_0x2bc321}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xbce2c9){const _0x154768=new ai(this['locale'],_0xbce2c9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x154768);}['removeRevision'](_0x31dc8a){const _0x218e91=this['revisionViews']['find'](_0xeff411=>_0xeff411['id']===_0x31dc8a['id']);this['revisionViews']['remove'](_0x218e91);}}class as extends _0x366255{constructor(_0x5bcd7b){super(_0x5bcd7b);const _0x3d7676=new _0x2014e5();_0x3d7676['content']=_0x23d429,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x3d7676,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x5bcd7b,'Revision\x20history')]}]});}}class vi extends _0x366255{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4374d3,_0x1cb406,_0x457b2e,_0x1e0bbb){super(_0x4374d3);const _0x130f83=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x1cb406,this['_revisionActions']=_0x457b2e,this['_requireRevisionName']=_0x1e0bbb,this['on']('select',(_0x1e8845,_0x14e368)=>{this['fire']('revisionSelected',_0x14e368);}),this['on']('setName',(_0x571e51,_0x25f552)=>{this['fire']('revisionSetName',_0x25f552);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x4374d3),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x130f83['if']('isEnabled','ck-disabled',_0x544956=>!_0x544956)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1b5ebb of this['_revisions'])this['_addRevision'](_0x1b5ebb);this['_revisions']['on']('add',(_0x32875f,_0x34cbf4)=>{this['_addRevision'](_0x34cbf4);}),this['_revisions']['on']('remove',(_0x3065b1,_0x2fac58)=>{this['_removeRevision'](_0x2fac58);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x546444=>_0x546444['revisionViews']['map'](_0x57d0c4=>_0x57d0c4))['flat']();}['selectRevision'](_0x426369){for(const _0x16a272 of this['revisionViews'])_0x426369&&_0x426369['id']===_0x16a272['id']?_0x16a272['select']():_0x16a272['deselect']();}['highlightRevisions'](_0x109a4e){for(const _0x696011 of this['revisionViews'])_0x109a4e['some'](({id:_0x989ac9})=>_0x989ac9===_0x696011['id'])?_0x696011['highlight']():_0x696011['unhighlight']();}['_addRevision'](_0xf6465b){const _0x49b089=mi(_0xf6465b['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xd71f59=this['timePeriodViews']['get'](0x0);_0xd71f59&&_0xd71f59['startDate']['getTime']()===_0x49b089['getTime']()||(_0xd71f59=new _i(this['locale'],_0x49b089,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xd71f59)),_0xd71f59['addRevision'](_0xf6465b);}['_removeRevision'](_0x17c202){const _0x7c96e1=mi(_0x17c202['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x7c96e1)['removeRevision'](_0x17c202);}['_getTimePeriodViewByStartDate'](_0xbc6290){return this['timePeriodViews']['find'](_0x1d4438=>_0x1d4438['startDate']['getTime']()===_0xbc6290['getTime']());}}class g extends _0x3b516d{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x546ea2){super(_0x546ea2),this['_revisionViewer']=_0x546ea2['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x72689e=this['_revisionsRepository']['_revisions'],_0x568ba6=this['_createRevisionActions'](),_0x2cdec4=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x72689e,_0x568ba6,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',(_0x2b44d1,_0xfd3125)=>{_0xfd3125['revisionViews']['on']('add',(_0x3870c5,_0x4854c8)=>{_0x4854c8['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)),_0x2cdec4['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0xebdd5d=this['_revisionsRepository']['getRevision'](0x0);if(_0xebdd5d){const _0xac4ff6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xebdd5d['id']);this['_revisionViewer']['compare'](_0xebdd5d,_0xac4ff6);}}['_handleRevisionSelected'](_0x2e2dad,_0x4c448d){const _0x19227e=this['_revisionsRepository']['getRevision'](_0x4c448d['id']),_0x19fbb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x19227e['id']);this['_revisionViewer']['compare'](_0x19227e,_0x19fbb);}['_handleRevisionSetName'](_0x208df2,_0x51bf12){this['_revisionsRepository']['getRevision'](_0x51bf12['id'])['setName'](_0x51bf12['name']);}['_handleDiffChange'](_0x42a3f4,_0x4913f8,_0x252886){const _0x2c502=this['_revisionsRepository']['getRevisionsInDiff'](_0x252886);_0x2c502['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x2c502),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x2c502[0x0]));}['_createRevisionActions'](){const _0x430ee4=this['editor'],_0x44f348=w['availableRevisionActions'],_0x10c96b=_0x430ee4['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x10c96b['length'])return _0x10c96b['map'](_0x1b7d25=>{const _0x9248f1='string'==typeof _0x1b7d25?Object['assign']({},_0x44f348[_0x1b7d25]):_0x1b7d25;return _0x9248f1['action']=_0x9248f1['action']['bind'](this,_0x430ee4),_0x9248f1['isVisible']&&(_0x9248f1['isVisible']=_0x9248f1['isVisible']['bind'](this,_0x430ee4)),_0x9248f1;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x458f36},_0x321d58)=>{const _0x39ca2b=_0x458f36['get'](d),_0x5953d0=_0x39ca2b['repository'];let _0x6b15d9=_0x39ca2b['diff']['newRevisionId'],_0x207b35=_0x321d58['id'];_0x5953d0['getIndex'](_0x6b15d9)>_0x5953d0['getIndex'](_0x207b35)&&([_0x6b15d9,_0x207b35]=[_0x207b35,_0x6b15d9]),_0x39ca2b['compare'](_0x6b15d9,_0x207b35);},'isVisible':({plugins:_0x1bf8e7},_0x598865)=>{const _0x185c77=_0x1bf8e7['get'](d);return!(_0x185c77['repository']['getRevisionsInDiff'](_0x185c77['diff'])['length']>0x2)&&!_0x598865['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x589c15,{id:_0x7a0ec})=>{_0x589c15['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x7a0ec);},'isVisible':({plugins:_0x2d81a1},_0x42ff55)=>!!_0x2d81a1['get'](d)['repository']['getLaterVisibleRevision'](_0x42ff55['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x50c831},{id:_0x31a747,revisionNameView:_0x3f841c})=>{const _0x2ac560=_0x50c831['get'](d),_0x47b9ad=_0x2ac560['repository']['getEarlierVisibleRevision'](_0x31a747);_0x2ac560['compare'](_0x31a747,_0x47b9ad),_0x3f841c['focus'](),_0x3f841c['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x348bc4,_0x5009a8){super(_0x348bc4),this['_view']=_0x5009a8,this['_toolbarConfig']=ot(_0x348bc4['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x24f5f9){const _0xb4f8ce=this['editor'],_0x496d22=this['view'],_0x3cc678=_0xb4f8ce['editing']['view'],_0x178870=_0x496d22['editable'],_0x370f3c=_0x3cc678['document']['getRoot']();_0x178870['name']=_0x370f3c['rootName'],_0x496d22['render']();const _0x4e5fcb=_0x178870['element'];this['setEditableElement'](_0x178870['name'],_0x4e5fcb),_0x496d22['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3cc678['attachDomRoot'](_0x4e5fcb),this['_elementReplacer']['replace'](_0x24f5f9,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x805558=this['view'],_0x4b7cf8=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4b7cf8['detachDomRoot'](_0x805558['editable']['name']),_0x805558['destroy']();}['_initToolbar'](){const _0x4c849d=this['view'];_0x4c849d['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4c849d['stickyPanel']['limiterElement']=_0x4c849d['element'],_0x4c849d['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x51e859})=>_0x51e859),_0x4c849d['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4c849d['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4fb2b2,_0x5bdd1f,_0x3265c5={}){super(_0x4fb2b2),this['stickyPanel']=new ut(_0x4fb2b2),this['toolbar']=new lt(_0x4fb2b2,{'shouldGroupWhenFull':_0x3265c5['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x4fb2b2,_0x5bdd1f);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x1d1c1f,_0x4f32a5){super(_0x4f32a5),this['sourceElement']=_0x1d1c1f,this['model']['document']['createRoot']();const _0x18aed2=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x18aed2);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3597be,_0x1e047e){const _0x5a4b48=new this(_0x3597be,_0x1e047e);return await _0x5a4b48['initPlugins'](),await _0x5a4b48['ui']['init'](_0x3597be),await _0x5a4b48['data']['init'](_0x5a4b48['config']['get']('initialData')||''),_0x5a4b48['fire']('ready'),_0x5a4b48;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x56b833{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x90a7ee){function _0xb4e2df(_0x405718){return _0x405718['map'](_0xd2e4a8=>String['fromCharCode'](_0xd2e4a8))['join']('');}super(_0x90a7ee),this['result']='end',_0x90a7ee[_0xb4e2df([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xb4e2df([0x76,0x69,0x65,0x77])][_0xb4e2df([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xb4e2df([0x61,0x75,0x74,0x6f]),_0x90a7ee[_0xb4e2df([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0xb4e2df([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xb4e2df([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0xb4e2df([0x73,0x74,0x61,0x74,0x75,0x73])]:_0xb4e2df([0x6f,0x6b])});}}class k extends _0x56b833{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x4e906f){if(super(_0x4e906f),!this['editor']['config']['get']('revisionHistory'))throw new _0x3c4052('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3fd2e5=>this['_showRevisionViewer']({..._0x3fd2e5,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x3e3926=>this['_closeRevisionViewer'](_0x3e3926)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x15015c=>this['_restoreRevision'](_0x15015c)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x2c2e47){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x2c2e47;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x261304){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x261304);}['getRevision'](_0x22cb94){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x22cb94);}['getRevisions'](_0x2c6aa8){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2c6aa8||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x142dd8=this['editor'],_0x1a1ad8=_0x3d69c0(_0x142dd8,p),_0x46943b=_0x142dd8['plugins']['get']('RevisionTracker'),_0x174ef8=_0x142dd8['plugins']['get']('Users')['users'];return _0x1a1ad8['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1a1ad8['lazyRoots'],(_0x1a1ad8['plugins']['push'](Rt,d,g,class extends _0x56b833{static get['requires'](){return[d,'Users'];}['init'](){const _0x54a975=this['editor']['plugins']['get']('Users');for(const _0x70b841 of _0x174ef8)_0x70b841['isAnonymous']||_0x54a975['getUser'](_0x70b841['id'])||_0x54a975['addUser'](_0x70b841);const _0x37c98b=_0x46943b['repository']['getRevisions']();let _0x148700=null;const _0x586d74=this['editor']['plugins']['get']('RevisionViewer');_0x586d74['adapter']=_0x46943b['adapter'],_0x586d74['bind']('isEnabled')['to'](_0x46943b),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x142dd8,'isReadOnly',_0x4f877e=>!_0x4f877e);for(const _0x1dc018 of _0x37c98b){const _0x477ce3=null===_0x1dc018['creator'];if(_0x477ce3&&_0x1dc018['toVersion']===_0x1dc018['fromVersion'])continue;const _0x3a2356=_0x1dc018['toJSON']();_0x586d74['addRevisionData'](_0x3a2356,(_0x3597c8,_0x1d092b,_0x3358a8)=>{if(_0x477ce3){if(_0x148700)_0x148700['_update'](_0x3597c8,_0x1d092b);else{if(!_0x1d092b){const _0x418f12=_0x3358a8['toJSON']();_0x418f12['id']=_0x3e6a21(),_0x46943b['saveRevision'](_0x418f12,_0x3358a8['toVersion'])['then'](_0x2408cd=>{_0x148700=_0x2408cd;});}}}else _0x1dc018['_update'](_0x3597c8,_0x1d092b);});}}},w),_0x1a1ad8);}['_enhanceShowRevisionViewerCallback'](){const _0x9fe53e=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1d7ff9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5a07d5=this['editor']['plugins']['get']('Autosave');await _0x5a07d5['save']();}else await _0x1d7ff9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5ee2e6=this['editor']['plugins']['get']('Dialog');_0x5ee2e6['isOpen']&&_0x5ee2e6['hide']();}const _0x5c00bb=this['_getRevisionViewerEditorConfig']();return _0x9fe53e(_0x5c00bb)['then'](_0x1a1fa5=>{return(this['_viewerEditor']=_0x1a1fa5,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1a1fa5;})['catch'](_0x6490fa=>(console['error'](_0x6490fa),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1712b0=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1712b0(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x41c6cb=this['editor']['plugins']['get']('Annotations');_0x41c6cb['refreshVisibility'](),_0x41c6cb['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3c62f5){const _0x549301=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3459fa=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x45a6ff=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x45a6ff,_0x3c62f5)['then'](_0x21ecdb=>(_0x3459fa['style']['display']='block',_0x549301['style']['display']='none',_0x21ecdb));}['_closeRevisionViewer'](_0x235720){const _0x269ffe=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x269ffe['style']['display']='',_0x235720['destroy']();}async['_restoreRevision'](_0x67a9c2){const _0x40e6fd=this['editor'],_0x5b67ea=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x590eae=_0x40e6fd['plugins']['get']('RevisionTracker'),_0x3a7927=_0x5b67ea['repository']['getRevision'](_0x67a9c2);let _0x3f47c7,_0x23795f,_0xa9cfbc;try{_0x3f47c7=await _0x5b67ea['getRevisionData'](_0x3a7927),_0x23795f=await _0x5b67ea['getRevisionRootsAttributes'](_0x3a7927);}catch(_0x4f51a3){return void console['error'](_0x4f51a3);}_0x40e6fd['model']['change'](_0x4332d0=>{for(const _0x452788 of Array['from'](_0x40e6fd['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x4332d0['removeMarker'](_0x452788);}),_0x5b67ea['isReady']=!0x1,_0x40e6fd['model']['enqueueChange'](_0xb9cbb9=>{_0xb9cbb9['setSelection'](null),_0xb9cbb9['removeSelectionAttribute'](_0x40e6fd['model']['document']['selection']['getAttributeKeys']());const _0x4e8763=Object['keys'](_0x3f47c7);for(const _0x4c10ac of _0x40e6fd['model']['document']['roots'])'$graveyard'!=_0x4c10ac['rootName']&&_0x4c10ac['isAttached']()&&!_0x4e8763['includes'](_0x4c10ac['rootName'])&&_0xb9cbb9['detachRoot'](_0x4c10ac);for(const _0x308d99 of _0x4e8763){let _0x1742c5=_0x40e6fd['model']['document']['getRoot'](_0x308d99);_0x1742c5&&_0x1742c5['isAttached']()||(_0x1742c5=_0xb9cbb9['addRoot'](_0x308d99));const _0x1d4228=_0x23795f[_0x308d99],_0x12353d=Object['keys'](_0x1d4228),_0x524141=_0x3f47c7[_0x308d99];for(const _0x1f2712 of _0x1742c5['getAttributeKeys']())_0x12353d['includes'](_0x1f2712)||_0xb9cbb9['removeAttribute'](_0x1f2712,_0x1742c5);for(const _0x5b46f0 of _0x12353d)_0xb9cbb9['setAttribute'](_0x5b46f0,_0x23795f[_0x308d99][_0x5b46f0],_0x1742c5);_0xb9cbb9['remove'](_0xb9cbb9['createRangeIn'](_0x1742c5)),_0xb9cbb9['insert'](_0x40e6fd['data']['parse'](_0x524141,_0x1742c5),_0x1742c5,0x0);}});const _0x6e2ca9=m(_0x40e6fd['locale'],'Restored');if(_0x3a7927['name'])_0xa9cfbc=-0x1==_0x3a7927['name']['indexOf'](_0x6e2ca9)?_0x6e2ca9+':\x20'+_0x3a7927['name']:_0x3a7927['name'];else _0xa9cfbc=_0x6e2ca9+':\x20'+(_0x3a7927['createdAt']['toLocaleDateString'](_0x40e6fd['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3a7927['createdAt']['toLocaleTimeString'](_0x40e6fd['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x590eae['saveRevision']({'name':_0xa9cfbc}),_0x5b67ea['isReady']=!0x0,_0x40e6fd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1c5e0c){super(_0x1c5e0c),this['_revisionViewer']=_0x1c5e0c['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x59a40a=this['_revisionsRepository']['_revisions'],_0x5473a6=this['_createRevisionActions'](),_0x3e293b=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x59a40a,_0x5473a6,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',(_0x18c429,_0x30503d)=>{_0x30503d['revisionViews']['on']('add',(_0x282983,_0x51780a)=>{_0x51780a['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)),_0x3e293b['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x500f1b=this['_revisionsRepository']['getRevision'](0x0);if(_0x500f1b){const _0x3bb4be=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x500f1b['id']);this['_revisionViewer']['compare'](_0x500f1b,_0x3bb4be);}}['_handleRevisionSelected'](_0x356e22,_0x56ecbf){const _0x2000e6=this['_revisionsRepository']['getRevision'](_0x56ecbf['id']),_0x3b1f9b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2000e6['id']);this['_revisionViewer']['compare'](_0x2000e6,_0x3b1f9b);}['_handleRevisionSetName'](_0x5a8130,_0x4c198c){this['_revisionsRepository']['getRevision'](_0x4c198c['id'])['setName'](_0x4c198c['name']);}['_handleDiffChange'](_0x36fa86,_0x2fd383,_0x7ac458){const _0x417543=this['_revisionsRepository']['getRevisionsInDiff'](_0x7ac458);_0x417543['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x417543),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x417543[0x0]));}['_createRevisionActions'](){const _0x44a4da=this['editor'],_0x5ccd7d=g['availableRevisionActions'],_0x2954f6=_0x44a4da['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2954f6['length'])return _0x2954f6['map'](_0x5d7e41=>{const _0x4b9214='string'==typeof _0x5d7e41?Object['assign']({},_0x5ccd7d[_0x5d7e41]):_0x5d7e41;return _0x4b9214['action']=_0x4b9214['action']['bind'](this,_0x44a4da),_0x4b9214['isVisible']&&(_0x4b9214['isVisible']=_0x4b9214['isVisible']['bind'](this,_0x44a4da)),_0x4b9214;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x20d66a},_0xb82233)=>{const _0x44f0e2=_0x20d66a['get'](d),_0x4cd4d3=_0x44f0e2['repository'];let _0x174888=_0x44f0e2['diff']['newRevisionId'],_0x49cb68=_0xb82233['id'];_0x4cd4d3['getIndex'](_0x174888)>_0x4cd4d3['getIndex'](_0x49cb68)&&([_0x174888,_0x49cb68]=[_0x49cb68,_0x174888]),_0x44f0e2['compare'](_0x174888,_0x49cb68);},'isVisible':({plugins:_0x2be1a0},_0x3f671a)=>{const _0x65b0a7=_0x2be1a0['get'](d);return!(_0x65b0a7['repository']['getRevisionsInDiff'](_0x65b0a7['diff'])['length']>0x2)&&!_0x3f671a['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x11f07a,{id:_0x10a289})=>{_0x11f07a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x10a289);},'isVisible':({plugins:_0x2c1792},_0x56aa5e)=>!!_0x2c1792['get'](d)['repository']['getLaterVisibleRevision'](_0x56aa5e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x1ea4dd},{id:_0x2dd1d7,revisionNameView:_0x53b671})=>{const _0x817581=_0x1ea4dd['get'](d),_0x4b471c=_0x817581['repository']['getEarlierVisibleRevision'](_0x2dd1d7);_0x817581['compare'](_0x2dd1d7,_0x4b471c),_0x53b671['focus'](),_0x53b671['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5969b8,_0x362274){super(_0x5969b8),this['_view']=_0x362274,this['_toolbarConfig']=ot(_0x5969b8['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x484765){const _0x235e2c=this['editor'],_0x1e5e58=this['view'],_0x4e57c4=_0x235e2c['editing']['view'],_0x5ef5fd=_0x1e5e58['editable'],_0x38a600=_0x4e57c4['document']['getRoot']();_0x5ef5fd['name']=_0x38a600['rootName'],_0x1e5e58['render']();const _0x38488d=_0x5ef5fd['element'];this['setEditableElement'](_0x5ef5fd['name'],_0x38488d),_0x1e5e58['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x4e57c4['attachDomRoot'](_0x38488d),this['_elementReplacer']['replace'](_0x484765,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3c1355=this['view'],_0x27018a=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x27018a['detachDomRoot'](_0x3c1355['editable']['name']),_0x3c1355['destroy']();}['_initToolbar'](){const _0x15874a=this['view'];_0x15874a['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x15874a['stickyPanel']['limiterElement']=_0x15874a['element'],_0x15874a['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x1481fe})=>_0x1481fe),_0x15874a['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x15874a['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x41f9e8,_0x4f184d,_0x5336ef={}){super(_0x41f9e8),this['stickyPanel']=new lt(_0x41f9e8),this['toolbar']=new nt(_0x41f9e8,{'shouldGroupWhenFull':_0x5336ef['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x41f9e8,_0x4f184d);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0xeada27,_0x3bbcbb){super(_0x3bbcbb),this['sourceElement']=_0xeada27,this['model']['document']['createRoot']();const _0x3246a8=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3246a8);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x1c7162,_0x524cc9){const _0x2c4505=new this(_0x1c7162,_0x524cc9);return await _0x2c4505['initPlugins'](),await _0x2c4505['ui']['init'](_0x1c7162),await _0x2c4505['data']['init'](_0x2c4505['config']['get']('initialData')||''),_0x2c4505['fire']('ready'),_0x2c4505;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3b516d{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x148a7c){function _0x1114ed(_0x3412a9){return _0x3412a9['map'](_0x3bc74b=>String['fromCharCode'](_0x3bc74b))['join']('');}super(_0x148a7c),this['result']='end',_0x148a7c[_0x1114ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1114ed([0x76,0x69,0x65,0x77])][_0x1114ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1114ed([0x61,0x75,0x74,0x6f]),_0x148a7c[_0x1114ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1114ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1114ed([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1114ed([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1114ed([0x6f,0x6b])});}}class k extends _0x3b516d{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4862ae){if(super(_0x4862ae),!this['editor']['config']['get']('revisionHistory'))throw new _0x36ac11('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x142f5e=>this['_showRevisionViewer']({..._0x142f5e,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4386d4=>this['_closeRevisionViewer'](_0x4386d4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0xe8be46=>this['_restoreRevision'](_0xe8be46)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x389a97){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x389a97;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3d4ae6){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3d4ae6);}['getRevision'](_0x571f57){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x571f57);}['getRevisions'](_0x7c57b2){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x7c57b2||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1623da=this['editor'],_0x564590=_0x1fc807(_0x1623da,p),_0x2b8bea=_0x1623da['plugins']['get']('RevisionTracker'),_0x58095b=_0x1623da['plugins']['get']('Users')['users'];return _0x564590['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x564590['lazyRoots'],(_0x564590['plugins']['push'](Rt,d,w,class extends _0x3b516d{static get['requires'](){return[d,'Users'];}['init'](){const _0xe71e22=this['editor']['plugins']['get']('Users');for(const _0x2b1822 of _0x58095b)_0x2b1822['isAnonymous']||_0xe71e22['getUser'](_0x2b1822['id'])||_0xe71e22['addUser'](_0x2b1822);const _0x1099cb=_0x2b8bea['repository']['getRevisions']();let _0x5dc1c5=null;const _0x4f641b=this['editor']['plugins']['get']('RevisionViewer');_0x4f641b['adapter']=_0x2b8bea['adapter'],_0x4f641b['bind']('isEnabled')['to'](_0x2b8bea),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1623da,'isReadOnly',_0x372b70=>!_0x372b70);for(const _0x11e3d7 of _0x1099cb){const _0x39b78b=null===_0x11e3d7['creator'];if(_0x39b78b&&_0x11e3d7['toVersion']===_0x11e3d7['fromVersion'])continue;const _0x22160d=_0x11e3d7['toJSON']();_0x4f641b['addRevisionData'](_0x22160d,(_0x10e96b,_0x14802b,_0x41942a)=>{if(_0x39b78b){if(_0x5dc1c5)_0x5dc1c5['_update'](_0x10e96b,_0x14802b);else{if(!_0x14802b){const _0x59a454=_0x41942a['toJSON']();_0x59a454['id']=_0x3845a3(),_0x2b8bea['saveRevision'](_0x59a454,_0x41942a['toVersion'])['then'](_0x31afbe=>{_0x5dc1c5=_0x31afbe;});}}}else _0x11e3d7['_update'](_0x10e96b,_0x14802b);});}}},g),_0x564590);}['_enhanceShowRevisionViewerCallback'](){const _0x5e5b3c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1cab44=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4032b2=this['editor']['plugins']['get']('Autosave');await _0x4032b2['save']();}else await _0x1cab44['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x40a446=this['editor']['plugins']['get']('Dialog');_0x40a446['isOpen']&&_0x40a446['hide']();}const _0x4e7c61=this['_getRevisionViewerEditorConfig']();return _0x5e5b3c(_0x4e7c61)['then'](_0x2049f6=>{return(this['_viewerEditor']=_0x2049f6,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2049f6;})['catch'](_0x126499=>(console['error'](_0x126499),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2cb430=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2cb430(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x35d938=this['editor']['plugins']['get']('Annotations');_0x35d938['refreshVisibility'](),_0x35d938['refreshPositioning']();}})));}['_showRevisionViewer'](_0x3df561){const _0x2b544d=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5de28c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x33a922=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x33a922,_0x3df561)['then'](_0x532c73=>(_0x5de28c['style']['display']='block',_0x2b544d['style']['display']='none',_0x532c73));}['_closeRevisionViewer'](_0x15ce8f){const _0x293ca8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x293ca8['style']['display']='',_0x15ce8f['destroy']();}async['_restoreRevision'](_0x598450){const _0x29b80d=this['editor'],_0x454c0c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x2dfbf7=_0x29b80d['plugins']['get']('RevisionTracker'),_0x45db13=_0x454c0c['repository']['getRevision'](_0x598450);let _0x4a9aad,_0x4b9071,_0x328231;try{_0x4a9aad=await _0x454c0c['getRevisionData'](_0x45db13),_0x4b9071=await _0x454c0c['getRevisionRootsAttributes'](_0x45db13);}catch(_0xb4d824){return void console['error'](_0xb4d824);}_0x29b80d['model']['change'](_0x2107a8=>{for(const _0x3ace18 of Array['from'](_0x29b80d['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2107a8['removeMarker'](_0x3ace18);}),_0x454c0c['isReady']=!0x1,_0x29b80d['model']['enqueueChange'](_0x3d8322=>{_0x3d8322['setSelection'](null),_0x3d8322['removeSelectionAttribute'](_0x29b80d['model']['document']['selection']['getAttributeKeys']());const _0x1e71b6=Object['keys'](_0x4a9aad);for(const _0x4018d4 of _0x29b80d['model']['document']['roots'])'$graveyard'!=_0x4018d4['rootName']&&_0x4018d4['isAttached']()&&!_0x1e71b6['includes'](_0x4018d4['rootName'])&&_0x3d8322['detachRoot'](_0x4018d4);for(const _0x5197ca of _0x1e71b6){let _0x3e262a=_0x29b80d['model']['document']['getRoot'](_0x5197ca);_0x3e262a&&_0x3e262a['isAttached']()||(_0x3e262a=_0x3d8322['addRoot'](_0x5197ca));const _0x4bc10a=_0x4b9071[_0x5197ca],_0xb5756c=Object['keys'](_0x4bc10a),_0x13a4a2=_0x4a9aad[_0x5197ca];for(const _0x3f8147 of _0x3e262a['getAttributeKeys']())_0xb5756c['includes'](_0x3f8147)||_0x3d8322['removeAttribute'](_0x3f8147,_0x3e262a);for(const _0x20d662 of _0xb5756c)_0x3d8322['setAttribute'](_0x20d662,_0x4b9071[_0x5197ca][_0x20d662],_0x3e262a);_0x3d8322['remove'](_0x3d8322['createRangeIn'](_0x3e262a)),_0x3d8322['insert'](_0x29b80d['data']['parse'](_0x13a4a2,_0x3e262a),_0x3e262a,0x0);}});const _0xa6f644=m(_0x29b80d['locale'],'Restored');if(_0x45db13['name'])_0x328231=-0x1==_0x45db13['name']['indexOf'](_0xa6f644)?_0xa6f644+':\x20'+_0x45db13['name']:_0x45db13['name'];else _0x328231=_0xa6f644+':\x20'+(_0x45db13['createdAt']['toLocaleDateString'](_0x29b80d['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x45db13['createdAt']['toLocaleTimeString'](_0x29b80d['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x2dfbf7['saveRevision']({'name':_0x328231}),_0x454c0c['isReady']=!0x0,_0x29b80d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};