@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250225.0 → 0.0.0-nightly-next-20250226.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index.js +6 -6
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/bg.js +1 -1
  12. package/dist/translations/bg.umd.js +1 -1
  13. package/dist/translations/bn.js +1 -1
  14. package/dist/translations/bn.umd.js +1 -1
  15. package/dist/translations/bs.js +1 -1
  16. package/dist/translations/bs.umd.js +1 -1
  17. package/dist/translations/ca.js +1 -1
  18. package/dist/translations/ca.umd.js +1 -1
  19. package/dist/translations/cs.js +1 -1
  20. package/dist/translations/cs.umd.js +1 -1
  21. package/dist/translations/da.js +1 -1
  22. package/dist/translations/da.umd.js +1 -1
  23. package/dist/translations/de-ch.js +1 -1
  24. package/dist/translations/de-ch.umd.js +1 -1
  25. package/dist/translations/de.js +1 -1
  26. package/dist/translations/de.umd.js +1 -1
  27. package/dist/translations/el.js +1 -1
  28. package/dist/translations/el.umd.js +1 -1
  29. package/dist/translations/en-au.js +1 -1
  30. package/dist/translations/en-au.umd.js +1 -1
  31. package/dist/translations/en-gb.js +1 -1
  32. package/dist/translations/en-gb.umd.js +1 -1
  33. package/dist/translations/en.js +1 -1
  34. package/dist/translations/en.umd.js +1 -1
  35. package/dist/translations/eo.js +1 -1
  36. package/dist/translations/eo.umd.js +1 -1
  37. package/dist/translations/es-co.js +1 -1
  38. package/dist/translations/es-co.umd.js +1 -1
  39. package/dist/translations/es.js +1 -1
  40. package/dist/translations/es.umd.js +1 -1
  41. package/dist/translations/et.js +1 -1
  42. package/dist/translations/et.umd.js +1 -1
  43. package/dist/translations/eu.js +1 -1
  44. package/dist/translations/eu.umd.js +1 -1
  45. package/dist/translations/fa.js +1 -1
  46. package/dist/translations/fa.umd.js +1 -1
  47. package/dist/translations/fi.js +1 -1
  48. package/dist/translations/fi.umd.js +1 -1
  49. package/dist/translations/fr.js +1 -1
  50. package/dist/translations/fr.umd.js +1 -1
  51. package/dist/translations/gl.js +1 -1
  52. package/dist/translations/gl.umd.js +1 -1
  53. package/dist/translations/gu.js +1 -1
  54. package/dist/translations/gu.umd.js +1 -1
  55. package/dist/translations/he.js +1 -1
  56. package/dist/translations/he.umd.js +1 -1
  57. package/dist/translations/hi.js +1 -1
  58. package/dist/translations/hi.umd.js +1 -1
  59. package/dist/translations/hr.js +1 -1
  60. package/dist/translations/hr.umd.js +1 -1
  61. package/dist/translations/hu.js +1 -1
  62. package/dist/translations/hu.umd.js +1 -1
  63. package/dist/translations/hy.js +1 -1
  64. package/dist/translations/hy.umd.js +1 -1
  65. package/dist/translations/id.js +1 -1
  66. package/dist/translations/id.umd.js +1 -1
  67. package/dist/translations/it.js +1 -1
  68. package/dist/translations/it.umd.js +1 -1
  69. package/dist/translations/ja.js +1 -1
  70. package/dist/translations/ja.umd.js +1 -1
  71. package/dist/translations/jv.js +1 -1
  72. package/dist/translations/jv.umd.js +1 -1
  73. package/dist/translations/kk.js +1 -1
  74. package/dist/translations/kk.umd.js +1 -1
  75. package/dist/translations/km.js +1 -1
  76. package/dist/translations/km.umd.js +1 -1
  77. package/dist/translations/kn.js +1 -1
  78. package/dist/translations/kn.umd.js +1 -1
  79. package/dist/translations/ko.js +1 -1
  80. package/dist/translations/ko.umd.js +1 -1
  81. package/dist/translations/ku.js +1 -1
  82. package/dist/translations/ku.umd.js +1 -1
  83. package/dist/translations/lt.js +1 -1
  84. package/dist/translations/lt.umd.js +1 -1
  85. package/dist/translations/lv.js +1 -1
  86. package/dist/translations/lv.umd.js +1 -1
  87. package/dist/translations/ms.js +1 -1
  88. package/dist/translations/ms.umd.js +1 -1
  89. package/dist/translations/nb.js +1 -1
  90. package/dist/translations/nb.umd.js +1 -1
  91. package/dist/translations/ne.js +1 -1
  92. package/dist/translations/ne.umd.js +1 -1
  93. package/dist/translations/nl.js +1 -1
  94. package/dist/translations/nl.umd.js +1 -1
  95. package/dist/translations/no.js +1 -1
  96. package/dist/translations/no.umd.js +1 -1
  97. package/dist/translations/oc.js +1 -1
  98. package/dist/translations/oc.umd.js +1 -1
  99. package/dist/translations/pl.js +1 -1
  100. package/dist/translations/pl.umd.js +1 -1
  101. package/dist/translations/pt-br.js +1 -1
  102. package/dist/translations/pt-br.umd.js +1 -1
  103. package/dist/translations/pt.js +1 -1
  104. package/dist/translations/pt.umd.js +1 -1
  105. package/dist/translations/ro.js +1 -1
  106. package/dist/translations/ro.umd.js +1 -1
  107. package/dist/translations/ru.js +1 -1
  108. package/dist/translations/ru.umd.js +1 -1
  109. package/dist/translations/si.js +1 -1
  110. package/dist/translations/si.umd.js +1 -1
  111. package/dist/translations/sk.js +1 -1
  112. package/dist/translations/sk.umd.js +1 -1
  113. package/dist/translations/sl.js +1 -1
  114. package/dist/translations/sl.umd.js +1 -1
  115. package/dist/translations/sq.js +1 -1
  116. package/dist/translations/sq.umd.js +1 -1
  117. package/dist/translations/sr-latn.js +1 -1
  118. package/dist/translations/sr-latn.umd.js +1 -1
  119. package/dist/translations/sr.js +1 -1
  120. package/dist/translations/sr.umd.js +1 -1
  121. package/dist/translations/sv.js +1 -1
  122. package/dist/translations/sv.umd.js +1 -1
  123. package/dist/translations/th.js +1 -1
  124. package/dist/translations/th.umd.js +1 -1
  125. package/dist/translations/ti.js +1 -1
  126. package/dist/translations/ti.umd.js +1 -1
  127. package/dist/translations/tk.js +1 -1
  128. package/dist/translations/tk.umd.js +1 -1
  129. package/dist/translations/tr.js +1 -1
  130. package/dist/translations/tr.umd.js +1 -1
  131. package/dist/translations/tt.js +1 -1
  132. package/dist/translations/tt.umd.js +1 -1
  133. package/dist/translations/ug.js +1 -1
  134. package/dist/translations/ug.umd.js +1 -1
  135. package/dist/translations/uk.js +1 -1
  136. package/dist/translations/uk.umd.js +1 -1
  137. package/dist/translations/ur.js +1 -1
  138. package/dist/translations/ur.umd.js +1 -1
  139. package/dist/translations/uz.js +1 -1
  140. package/dist/translations/uz.umd.js +1 -1
  141. package/dist/translations/vi.js +1 -1
  142. package/dist/translations/vi.umd.js +1 -1
  143. package/dist/translations/zh-cn.js +1 -1
  144. package/dist/translations/zh-cn.umd.js +1 -1
  145. package/dist/translations/zh.js +1 -1
  146. package/dist/translations/zh.umd.js +1 -1
  147. package/package.json +11 -11
  148. package/src/changeitem.js +2 -2
  149. package/src/editor/revisionviewereditor.js +2 -2
  150. package/src/editor/revisionviewereditorui.js +1 -1
  151. package/src/editor/revisionviewereditoruiview.js +1 -1
  152. package/src/index.js +1 -1
  153. package/src/revision.js +2 -2
  154. package/src/revisiondiff.js +1 -1
  155. package/src/revisionhistory.js +1 -1
  156. package/src/revisionsrepository.js +1 -1
  157. package/src/revisiontracker.js +1 -1
  158. package/src/revisionviewer.js +1 -1
  159. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  160. package/src/ui/revision/revisionauthorview.js +1 -1
  161. package/src/ui/revision/revisionnameview.js +1 -1
  162. package/src/ui/revision/revisionview.js +2 -2
  163. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  164. package/src/ui/revision/subrevisionview.js +1 -1
  165. package/src/ui/revision/utils.js +1 -1
  166. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  167. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  168. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  169. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  172. package/src/ui/revisionssidebar/utils.js +1 -1
  173. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  174. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  175. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  176. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  177. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x390d75,uid as _0x54786b,Collection as _0x56de22,logWarning as _0x1bfa6f,FocusTracker as _0x1d836e,KeystrokeHandler as _0x453d05,scrollViewportToShowTarget as _0x4f9aa2,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x133ad6}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5b5f9d,set as _0x2a0b8e,unset as _0xdf59fe,isEqual as _0x200c1c}from'es-toolkit/compat';import{Plugin as _0x4191c7,PendingActions as _0x2255d2,Command as _0x44144e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x47cbd6,getMarkerDomElement as _0x96f4b1,ConfirmMixin as _0x4e19c2,sanitizeEditorConfig as _0x41570e}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x9afee9,Element as ut,Range as ft,ViewUIElement as _0x5f3dba,ViewRawElement as _0x32ef1d,ViewEmptyElement as _0x7935d9,ViewAttributeElement as _0xaae474,ViewContainerElement as _0x3c80e1,Position as vt,ViewText as _0x101a1b,ViewElement as _0x15b19e,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3543e9,IconChevronUp as _0x4a6fc4,IconChevronDown as _0x4335ff,IconUndo as _0x3a12c8,IconUser as _0x2ea797,IconThreeVerticalDots as _0x1b4c9e}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x219dee,submitHandler as _0x223a7a,LabeledFieldView as _0x5c04f4,createLabeledInputText as _0x279764,createDropdown as _0x3f5931,ListView as _0x431ea9,ListItemView as _0x2cbd7e,ButtonView as te,MenuBarMenuView as _0x35c560,MenuBarMenuListView as _0x1e5aad,MenuBarMenuListItemView as _0x3f5f57,MenuBarMenuListItemButtonView as _0x4f6d9f,ContextualBalloon as _0x2fb9a1,ToolbarSeparatorView as _0x3b3126,IconView as _0x2d0324,addListToDropdown as _0x2bab52,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 _0x13edb5}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x390d75(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2ba143){super(),this['id']=_0x2ba143['id']||_0x54786b(),this['creator']=_0x2ba143['creator']||null,this['authors']=_0x2ba143['authors']||[],this['diffData']=_0x2ba143['diffData']||null,this['toVersion']=_0x2ba143['toVersion']||0x0,this['fromVersion']=_0x2ba143['fromVersion']||0x0,this['set']('name',_0x2ba143['name']||''),this['set']('createdAt',_0x2ba143['createdAt']||new Date()),this['set']('attributes',_0x2ba143['attributes']||{});}['setName'](_0x16b858){this['_update']({'name':_0x16b858});}['setAttribute'](_0x5a9302,_0x3c746a){const _0xfa8152=_0x5b5f9d(this['attributes']);_0x2a0b8e(_0xfa8152,_0x5a9302,_0x3c746a),this['_update']({'attributes':_0xfa8152});}['removeAttribute'](_0x1d560c){const _0x3de1f0=_0x5b5f9d(this['attributes']);_0xdf59fe(_0x3de1f0,_0x1d560c),this['_update']({'attributes':_0x3de1f0});}['_update'](_0xb6b88d,_0x286904=!0x1){let _0x1ba48b=!0x1;const _0xf6beec={'id':this['id']},_0x19af67=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x47732e of _0x19af67){const _0x309e36=_0xb6b88d[_0x47732e];void 0x0!==_0x309e36&&_0x309e36!==this[_0x47732e]&&(this[_0x47732e]=_0x309e36,_0xf6beec[_0x47732e]=_0x309e36,_0x1ba48b=!0x0);}_0x1ba48b&&(_0xf6beec['authors']&&(_0xf6beec['authorsIds']=_0xf6beec['authors']['map'](_0x30113b=>_0x30113b['id']),delete _0xf6beec['authors']),this['fire']('_update',_0xf6beec,_0x286904));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x21b4ef=>_0x21b4ef['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x4191c7{['_revisions'];static get['requires'](){return[_0x47cbd6];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0xa25176){super(_0xa25176),this['_revisions']=new _0x56de22();}['afterInit'](){!async function(_0x458031){const _0x46d65c=_0x593583([0x4d,0x46,0x62,0x43,0x74,0x65,0x6c,0x55,0x44,0x71,0x64,0x42,0x48,0x66,0x77,0x68,0x4a,0x32,0x75,0x56,0x57,0x4f,0x6b,0x73,0x35,0x79,0x36,0x5a,0x38,0x59,0x53,0x34,0x76,0x58,0x51,0x41,0x6a,0x78,0x69,0x6f,0x61,0x52,0x4b,0x50,0x37,0x72,0x31,0x47,0x49,0x4c,0x7a,0x54,0x39,0x6d,0x4e,0x67,0x6e,0x33,0x70,0x30,0x45,0x63]),_0x4aeee7=0xeb829,_0x207998=0x78f16797,_0x26c5a4=0x78f60717^_0x207998,_0x304f45=window[_0x593583([0x44,0x61,0x74,0x65])][_0x593583([0x6e,0x6f,0x77])](),_0x585022=_0x458031[_0x593583([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xeec81a=new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfad7f9=>{_0x585022[_0x593583([0x6f,0x6e,0x63,0x65])](_0x593583([0x72,0x65,0x61,0x64,0x79]),_0xfad7f9);}),_0x201560={[_0x593583([0x6b,0x74,0x79])]:_0x593583([0x45,0x43]),[_0x593583([0x75,0x73,0x65])]:_0x593583([0x73,0x69,0x67]),[_0x593583([0x63,0x72,0x76])]:_0x593583([0x50,0x2d,0x32,0x35,0x36]),[_0x593583([0x78])]:_0x593583([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]),[_0x593583([0x79])]:_0x593583([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]),[_0x593583([0x61,0x6c,0x67])]:_0x593583([0x45,0x53,0x32,0x35,0x36])},_0x527b71=_0x585022[_0x593583([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x593583([0x67,0x65,0x74])](_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1024a1(){let _0x367c69,_0x5e5658=null,_0x2d9c03=null;try{if(_0x527b71==_0x593583([0x47,0x50,0x4c]))return _0x593583([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x367c69=_0x4b7468(),!_0x367c69)return _0x593583([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x367c69[_0x593583([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d9c03=_0x287160(_0x367c69[_0x593583([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x367c69[_0x593583([0x6a,0x74,0x69])])),await _0x44078c()?_0x4fed13()?_0x15f102()?_0x593583([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5723fe()?(_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593583([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e5658=_0x4be2b9(_0x593583([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593583([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e5658=_0x4be2b9(_0x593583([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14e7e3()):_0x593583([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x593583([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x593583([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x675acc){return _0x593583([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x15f102(){const _0x25c29f=[_0x593583([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x593583([0x74,0x72,0x69,0x61,0x6c])][_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x304f45/0x3e8:0xe10*_0x26c5a4;return _0x367c69[_0x593583([0x65,0x78,0x70])]<_0x25c29f;}function _0x4fed13(){const _0x23d52f=_0x367c69[_0x593583([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x23d52f)return!0x1;if(_0x23d52f[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x2a])))return!0x0;if(_0x23d52f[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x52,0x48])))return!0x0;if(_0x23d52f[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x52,0x52,0x48]))){if(_0x53e0dd())return!0x0;if(_0x39b0fc()||_0xfe69a())return!0x0;}return!0x1;}function _0x5723fe(){const _0x5e405b=_0x367c69[_0x593583([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5e405b||0x0==_0x5e405b[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x20ebc1}=new URL(window[_0x593583([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5e405b[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20ebc1))return!0x0;const _0x5722ce=_0x20ebc1[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e]));return _0x5e405b[_0x593583([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x29ad94=>_0x29ad94[_0x593583([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593583([0x2a])))[_0x593583([0x6d,0x61,0x70])](_0x7aa5fb=>_0x7aa5fb[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e])))[_0x593583([0x73,0x6f,0x6d,0x65])](_0x44542c=>_0x5722ce[_0x593583([0x65,0x76,0x65,0x72,0x79])]((_0xffd425,_0x467c28)=>_0x44542c[_0x467c28]===_0xffd425||_0x44542c[_0x467c28]===_0x593583([0x2a])));}function _0x14e7e3(){return _0x5e5658&&_0x2d9c03?new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54dae7,_0x155bac)=>{_0x5e5658[_0x593583([0x74,0x68,0x65,0x6e])](_0x54dae7,_0x155bac),_0x2d9c03[_0x593583([0x74,0x68,0x65,0x6e])](_0x494714=>{_0x494714!=_0x593583([0x56,0x61,0x6c,0x69,0x64])&&_0x54dae7(_0x494714);},_0x155bac);}):_0x5e5658||_0x2d9c03||_0x593583([0x56,0x61,0x6c,0x69,0x64]);}}function _0x287160(_0x17687a,_0x4c7fff){return new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd68f92=>{if(_0x5a95d5())return _0xd68f92(_0x593583([0x56,0x61,0x6c,0x69,0x64]));_0x2cffed(),_0x585022[_0x593583([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x593583([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x36af4e=!0x1;const _0x154f7c=_0x54786b();function _0x2a61a1(_0xdabd22){return!!_0xdabd22&&(typeof _0xdabd22===_0x593583([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xdabd22===_0x593583([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xdabd22[_0x593583([0x74,0x68,0x65,0x6e])]===_0x593583([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xdabd22[_0x593583([0x63,0x61,0x74,0x63,0x68])]===_0x593583([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x526314(_0x539afa){_0x151cf5(_0x539afa)[_0x593583([0x74,0x68,0x65,0x6e])](_0x346f93=>{if(!_0x346f93||_0x346f93[_0x593583([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x593583([0x6f,0x6b]))return _0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a044d(_0x52cc23(_0x154f7c+_0x4c7fff))!=_0x346f93[_0x593583([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x593583([0x56,0x61,0x6c,0x69,0x64]);})[_0x593583([0x74,0x68,0x65,0x6e])](_0x439a19=>(_0x198295(),_0x439a19),()=>{const _0x1b7505=_0xe25a8();return null==_0x1b7505?(_0x198295(),_0x593583([0x56,0x61,0x6c,0x69,0x64])):_0x593583(_0x304f45-_0x1b7505>(0x5cfde397^_0x207998)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x593583([0x74,0x68,0x65,0x6e])](_0xd68f92)[_0x593583([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd68f92(_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3ef6cb=0x78c78917^_0x207998;function _0x198295(){const _0x14909f=_0x593583([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a044d(_0x52cc23(_0x17687a)),_0x15ff91=_0x78d179(_0x1a044d(window[_0x593583([0x4d,0x61,0x74,0x68])][_0x593583([0x63,0x65,0x69,0x6c])](_0x304f45/_0x3ef6cb)));window[_0x593583([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593583([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14909f,_0x15ff91);}function _0xe25a8(){const _0x19bba3=_0x593583([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a044d(_0x52cc23(_0x17687a)),_0x3c90bb=window[_0x593583([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593583([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x19bba3);return _0x3c90bb?window[_0x593583([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x78d179(_0x3c90bb),0x10)*_0x3ef6cb:null;}function _0x151cf5(_0x12fd53){return new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1310b3,_0x5aabb7)=>{_0x12fd53[_0x593583([0x74,0x68,0x65,0x6e])](_0x1310b3,_0x5aabb7),window[_0x593583([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5aabb7,0x78f0b357^_0x207998);});}}_0x585022[_0x593583([0x6f,0x6e])](_0x593583([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f5d42,_0x591568)=>{if(_0x591568[0x0]!=_0x17687a)return _0xd68f92(_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x591568[0x1]={..._0x591568[0x1],[_0x593583([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x154f7c};},{[_0x593583([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593583([0x68,0x69,0x67,0x68])}),_0x585022[_0x593583([0x6f,0x6e])](_0x593583([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3242d6=>{_0x2a61a1(_0x3242d6[_0x593583([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x36af4e=!0x0,_0x526314(_0x3242d6[_0x593583([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x593583([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593583([0x6c,0x6f,0x77])}),_0xeec81a[_0x593583([0x74,0x68,0x65,0x6e])](()=>{_0x36af4e||_0xd68f92(_0x593583([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a95d5(){return _0x585022[_0x593583([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593583([0x76,0x69,0x65,0x77])][_0x593583([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x593583([0x61,0x75,0x74,0x6f]);}function _0x2cffed(){_0x585022[_0x593583([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593583([0x76,0x69,0x65,0x77])][_0x593583([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x593583([0x61,0x75,0x74,0x6f]);}}function _0x4be2b9(_0x2a3d5c){const _0x236d7d=[new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c6ebc=>setTimeout(_0x2c6ebc,0x78f8595b^_0x207998)),_0xeec81a[_0x593583([0x74,0x68,0x65,0x6e])](()=>new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27e2dd=>{const _0x192221=0x78f16790^_0x207998,_0x3aac28=_0x458031[_0x593583([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x506f0b(){_0x3aac28[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x192221&&_0x27e2dd();}_0x506f0b(),_0x3aac28[_0x593583([0x6f,0x6e])](_0x593583([0x61,0x64,0x64]),_0x506f0b);})),new window[(_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dfd7f=>{function _0xeb826d(){for(const _0x5232d3 in window)if(window[_0x593583([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x593583([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x5232d3))&&window[_0x5232d3]==_0x4aeee7)return _0x3dfd7f();_0x585022[_0x593583([0x73,0x74,0x61,0x74,0x65])]!=_0x593583([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x593583([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xeb826d,0x78f1741f^_0x207998);}_0x1bb5c4(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0xeb826d();})];return window[_0x593583([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x593583([0x72,0x61,0x63,0x65])](_0x236d7d)[_0x593583([0x74,0x68,0x65,0x6e])](()=>_0x2a3d5c);}async function _0x5da52c(){if(await _0xeec81a,_0x1bb5c4(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x522865=_0x458031[_0x593583([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x385153=_0x458031[_0x593583([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])](_0x522865[_0x593583([0x69,0x64])]),_0x1e343b=_0x2170ec(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1e343b[_0x593583([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x522865['id'],_0x385153?_0x385153['id']:null,!0x0),_0x1e343b[_0x593583([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1e343b[_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1e343b[_0x593583([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0xb5934e,void(_0x1e343b[_0x593583([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0xb5934e);}if(_0x1bb5c4(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4c0e58=_0x2170ec(_0x593583([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4c0e58[_0x593583([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4c0e58[_0x593583([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4c0e58[_0x593583([0x75,0x70,0x64,0x61,0x74,0x65])]=_0xb5934e,_0x4c0e58[_0x593583([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0xb5934e;}_0x585022[_0x593583([0x6d,0x6f,0x64,0x65,0x6c])][_0x593583([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xb5934e,_0x585022[_0x593583([0x6d,0x6f,0x64,0x65,0x6c])][_0x593583([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xb5934e,_0x585022[_0x593583([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x593583([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x53e0dd(){return _0x1bb5c4(_0x593583([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x2170ec(_0x593583([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x593583([0x73,0x74,0x61,0x74,0x65])]==_0x593583([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x39b0fc(){return _0x1bb5c4(_0x593583([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 _0xfe69a(){return _0x1bb5c4(_0x593583([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x47e03b(_0x691ea5){const _0x5575e5=_0x41dcd9();_0x585022[_0x5575e5]=_0x593583([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])+_0x691ea5,_0x691ea5[_0x593583([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x593583([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x41dcd9()]=_0x4aeee7),_0x691ea5!=_0x593583([0x56,0x61,0x6c,0x69,0x64])&&_0x5da52c();}function _0x41dcd9(){const _0x1dacc0=window[_0x593583([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x593583([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x593583([0x6e,0x6f,0x77])]())[_0x593583([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x593583([0x2e]),'');let _0x5de233=_0x593583([0x4d]);for(let _0x20ef21=0x0;_0x20ef21<_0x1dacc0[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x20ef21+=0x2){let _0x4014cd=window[_0x593583([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1dacc0[_0x593583([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20ef21,_0x20ef21+0x2));_0x4014cd>=_0x46d65c[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4014cd-=_0x46d65c[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5de233+=_0x46d65c[_0x4014cd];}return _0x5de233;}function _0x4b7468(){const _0x417619=_0x527b71[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e]));if(0x3!=_0x417619[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb10e5c(_0x417619[0x1]);function _0xb10e5c(_0x14574a){const _0x40339a=_0x11e992(_0x14574a);return _0x40339a&&_0x3f837e()?_0x40339a:null;function _0x3f837e(){const _0x4f2258=_0x40339a[_0x593583([0x6a,0x74,0x69])],_0x59b5a1=window[_0x593583([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4f2258[_0x593583([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f2258[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33c9d4={..._0x40339a,[_0x593583([0x6a,0x74,0x69])]:_0x4f2258[_0x593583([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4f2258[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33c9d4[_0x593583([0x76,0x63])],_0x52cc23(_0x33c9d4)==_0x59b5a1;}}}async function _0x44078c(){let _0x3bf357=!0x0;try{const _0x398e1f=_0x527b71[_0x593583([0x73,0x70,0x6c,0x69,0x74])](_0x593583([0x2e])),[_0x5d19be,_0x4e396a,_0x1fd623]=_0x398e1f;return _0x241e28(_0x5d19be),await _0xd25726(_0x5d19be,_0x4e396a,_0x1fd623),_0x3bf357;}catch(_0x5eb5a1){return!0x1;}function _0x241e28(_0x5320c3){const _0x430368=_0x11e992(_0x5320c3);_0x430368&&_0x430368[_0x593583([0x61,0x6c,0x67])]==_0x593583([0x45,0x53,0x32,0x35,0x36])||(_0x3bf357=!0x1);}async function _0xd25726(_0x4e2b79,_0x584f96,_0x564706){const _0x4d3c8c=window[_0x593583([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x593583([0x66,0x72,0x6f,0x6d])](_0x567d56(_0x564706),_0x457fef=>_0x457fef[_0x593583([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x273f11=new window[(_0x593583([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x593583([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e2b79+_0x593583([0x2e])+_0x584f96),_0x3047ff=window[_0x593583([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x593583([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3047ff)return;const _0x1010bd=await _0x3047ff[_0x593583([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x593583([0x6a,0x77,0x6b]),_0x201560,{[_0x593583([0x6e,0x61,0x6d,0x65])]:_0x593583([0x45,0x43,0x44,0x53,0x41]),[_0x593583([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x593583([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x593583([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3047ff[_0x593583([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x593583([0x6e,0x61,0x6d,0x65])]:_0x593583([0x45,0x43,0x44,0x53,0x41]),[_0x593583([0x68,0x61,0x73,0x68])]:{[_0x593583([0x6e,0x61,0x6d,0x65])]:_0x593583([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1010bd,_0x4d3c8c,_0x273f11)||(_0x3bf357=!0x1);}}function _0x11e992(_0x36ec1e){return _0x36ec1e[_0x593583([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x593583([0x65,0x79]))?JSON[_0x593583([0x70,0x61,0x72,0x73,0x65])](_0x567d56(_0x36ec1e)):null;}function _0x567d56(_0x27b45b){return window[_0x593583([0x61,0x74,0x6f,0x62])](_0x27b45b[_0x593583([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x593583([0x2b]))[_0x593583([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x593583([0x2f])));}function _0x52cc23(_0x1741de){let _0x43642e=0x1505;function _0x6dc839(_0x2deec4){for(let _0x46f1bb=0x0;_0x46f1bb<_0x2deec4[_0x593583([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46f1bb++){const _0x2b6c16=_0x2deec4[_0x593583([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46f1bb);_0x43642e=(_0x43642e<<0x5)+_0x43642e+_0x2b6c16,_0x43642e&=_0x43642e;}}function _0x10e48c(_0x205a31){Array[_0x593583([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x205a31)?_0x205a31[_0x593583([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x10e48c):_0x205a31&&typeof _0x205a31==_0x593583([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x593583([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x205a31)[_0x593583([0x73,0x6f,0x72,0x74])]()[_0x593583([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2805d0,_0x43167a])=>{_0x6dc839(_0x2805d0),_0x10e48c(_0x43167a);}):_0x6dc839(window[_0x593583([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x205a31));}return _0x10e48c(_0x1741de),_0x43642e>>>0x0;}function _0x1a044d(_0xea0d67){return _0xea0d67[_0x593583([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x593583([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x593583([0x30]));}function _0x78d179(_0x3ea5ac){return _0x3ea5ac[_0x593583([0x73,0x70,0x6c,0x69,0x74])]('')[_0x593583([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x593583([0x6a,0x6f,0x69,0x6e])]('');}function _0x1bb5c4(_0x1fd4d6){return _0x585022[_0x593583([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x593583([0x68,0x61,0x73])](_0x1fd4d6);}function _0x2170ec(_0xf46a2d){return _0x585022[_0x593583([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x593583([0x67,0x65,0x74])](_0xf46a2d);}function _0xb5934e(){}function _0x593583(_0x5650a0){return _0x5650a0['map'](_0x2009bc=>String['fromCharCode'](_0x2009bc))['join']('');}_0x47e03b(await _0x1024a1());}(this);}['createRevision'](_0x38f7fa){const _0x228f75=this['editor']['plugins']['get']('Users');return new h({'id':_0x38f7fa['id'],'name':_0x38f7fa['name'],'creator':_0x38f7fa['creatorId']?_0x228f75['getUser'](_0x38f7fa['creatorId']):null,'diffData':_0x38f7fa['diffData']||_0x38f7fa['data'],'authors':_0x38f7fa['authorsIds']['map'](_0x537443=>_0x228f75['getUser'](_0x537443)),'createdAt':new Date(_0x38f7fa['createdAt']),'attributes':_0x38f7fa['attributes'],'fromVersion':_0x38f7fa['fromVersion'],'toVersion':_0x38f7fa['toVersion']});}['addRevision'](_0x34b03a,_0x1200cb=0x0){this['_revisions']['add'](_0x34b03a,_0x1200cb);}['getRevision'](_0xb97210){return this['_revisions']['get'](_0xb97210);}['getRevisions'](_0x24add0={'toJSON':!0x1}){const _0x541fa0=Array['from'](this['_revisions']);return _0x541fa0['reverse'](),_0x24add0['toJSON']?_0x541fa0['map'](_0x326732=>_0x326732['toJSON']()):_0x541fa0;}['getIndex'](_0x519176){return this['_revisions']['getIndex'](_0x519176);}['getEarlierVisibleRevision'](_0x2c852b){const [,_0x2d9c14]=this['getRevisionsIterator'](_0x2c852b,{'direction':'earlier'});return _0x2d9c14;}['getLaterVisibleRevision'](_0x511e22){const [,_0x4045d]=this['getRevisionsIterator'](_0x511e22,{'direction':'later'});return _0x4045d;}['getRevisionsInDiff'](_0x1a7bb7){const _0x15a6fa=[];for(const _0x4a0c75 of this['getRevisionsIterator'](_0x1a7bb7['newRevisionId']))if(_0x15a6fa['push'](_0x4a0c75),_0x4a0c75['id']===_0x1a7bb7['oldRevisionId'])break;return _0x15a6fa;}*['getRevisionsIterator'](_0x5d8927,{direction:_0xc1489b='earlier',filter:_0x3a848e=()=>!0x0}={}){const _0x5e7e27='earlier'===_0xc1489b?0x1:-0x1;let _0x179411=this['_revisions']['get'](_0x5d8927),_0x4934d0=this['getIndex'](_0x179411);for(yield _0x179411;_0x179411;){if(_0x4934d0+=_0x5e7e27,_0x179411=this['getRevision'](_0x4934d0),!_0x179411)return;_0x3a848e(_0x179411)&&(yield _0x179411);}}}function m(_0x5a6f98,_0xf6a050,_0xeca27){const t=_0x5a6f98['t'];switch(_0xf6a050){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'},_0xeca27);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0xeca27);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':_0x3c80e1,'a':_0xaae474,'e':_0x7935d9,'r':_0x32ef1d,'u':_0x5f3dba};class u extends _0x4191c7{['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[_0x47cbd6,j,_0x2255d2];}constructor(_0xf08b4d){super(_0xf08b4d),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 _0x335bdb=_0x54786b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x335bdb},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 _0x874c55=this['repository']['getRevision'](0x0),_0x3bf5e1=_0x874c55&&null===_0x874c55['creator']?_0x874c55:null;if(this['_continueCurrentRevision']=!!_0x3bf5e1&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x26183f=this['_source']['getCurrentRevisionId'](),_0x40bda1=this['repository']['getRevision'](_0x26183f);if(_0x40bda1)this['_startingVersion']=_0x40bda1['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x5c6efb=this['_source']['history']['_operations']['find'](_0xce0284=>!_0xce0284['_isInit']),_0x2e918d=_0x5c6efb?_0x5c6efb['baseVersion']:this['_source']['history']['version'];_0x874c55?(_0x874c55['toVersion']<_0x2e918d&&_0x874c55['_update']({'toVersion':_0x2e918d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3bf5e1['id'],this['_startingVersion']=_0x3bf5e1['fromVersion']):(this['_startingVersion']=_0x874c55['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2e918d,this['_continueCurrentRevision']=!0x1);}}else _0x3bf5e1&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3bf5e1['toVersion'],this['editor']['model']['document']['history']['version']),_0x3bf5e1['fromVersion']===_0x3bf5e1['toVersion']?(0x0!==_0x3bf5e1['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3bf5e1['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3bf5e1['id'],this['_startingVersion']=_0x3bf5e1['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',_0x7891ee=>!_0x7891ee),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x428866=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4900a6;for(const _0x57aaab in _0x428866){const _0x27120a=_0x57aaab,_0x1325c7=_0x428866[_0x27120a];if('revisionHistoryLicenseKeyValid'==_0x1325c7||'revisionHistoryLicenseKeyInvalid'==_0x1325c7||'revisionHistoryLicenseKeyExpired'==_0x1325c7||'revisionHistoryLicenseKeyDomainLimit'==_0x1325c7||'revisionHistoryLicenseKeyNotAllowed'==_0x1325c7||'revisionHistoryLicenseKeyEvaluationLimit'==_0x1325c7||'revisionHistoryLicenseKeyTrialLimit'==_0x1325c7||'revisionHistoryLicenseKeyUsageLimit'==_0x1325c7){delete _0x428866[_0x27120a],_0x4900a6=_0x1325c7,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4900a6&&_0x428866['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4900a6&&_0x428866['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4900a6&&_0x428866['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4900a6&&_0x428866['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4900a6&&_0x428866['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4900a6&&_0x428866['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4900a6&&_0x428866['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0xab14c8=this['repository']['getRevision'](0x0),_0x28318a=await this['getRevisionDocumentData'](_0xab14c8),_0xe0cbd8=await this['getRevisionRootsAttributes'](_0xab14c8);this['_replaceEditorDataWithRevisionData'](_0x28318a,_0xe0cbd8);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x3bf90f){this['_source']=_0x3bf90f;}async['update'](){const _0x5a48b4=await this['_source']['getLatestVersion']();if(_0x5a48b4>this['currentRevision']['toVersion']){await this['_loadState']();const _0x231ff5=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x5a48b4});_0x231ff5['authors']=_0x231ff5['authorsIds']['map'](_0x18b17c=>this['editor']['plugins']['get']('Users')['getUser'](_0x18b17c)),this['currentRevision']['_update'](_0x231ff5);}}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'](_0x5f1cd2={},_0x33751a=null){const _0x554a98=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x33751a>this['currentRevision']['toVersion']&&(_0x33751a=null),null===_0x33751a&&(_0x33751a=await this['_source']['getLatestVersion']());const _0xee81d9=this['_getFromVersion'](_0x33751a),_0x3571dd=this['buildRevisionData']({'from':_0xee81d9,'to':_0x33751a});if(this['currentRevision']['toVersion']<_0x33751a){const _0x2de872=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x33751a,'to':_0x33751a});_0x2de872['authors']=[],_0x2de872['authorsIds']=[],_0x2de872['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2de872,!0x0),delete _0x2de872['authors'],_0x554a98['push'](_0x2de872);}_0x5f1cd2['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5f1cd2['name']=_0x5f1cd2['name']||null,_0x5f1cd2['id']=_0x5f1cd2['id']||_0x54786b(),_0x5f1cd2={..._0x5f1cd2,..._0x3571dd};const _0x14e6b0=this['addRevisionData'](_0x5f1cd2);_0x554a98['push'](_0x5f1cd2);const _0x3748f9=this['repository']['getIndex'](_0x14e6b0);if(0x0!==_0x3748f9){const _0x2cf1dc=this['repository']['getRevision'](_0x3748f9-0x1);if(_0x2cf1dc['fromVersion']!==_0x33751a){const _0x4e459e=this['_revisionDataBuilder']['getData'](_0x33751a,_0x2cf1dc['toVersion']),_0x22b311={'id':_0x2cf1dc['id'],'diffData':_0x4e459e['diffData'],'authorsIds':_0x4e459e['authorsIds'],'authors':_0x4e459e['authorsIds']['map'](_0x39f2d1=>this['editor']['plugins']['get']('Users')['getUser'](_0x39f2d1)),'fromVersion':_0x33751a};_0x2cf1dc===this['currentRevision']&&(_0x22b311['createdAt']=new Date(_0x5f1cd2['createdAt']['getTime']()+0xa)),_0x2cf1dc['_update'](_0x22b311,!0x0),delete _0x22b311['authors'],_0x554a98['push'](_0x22b311);}}if(this['adapter']){for(const _0x57c55d of _0x554a98)this['_bufferUpdate'](_0x57c55d['id'],_0x57c55d,!0x0);this['sendBufferedUpdates']();}return _0x14e6b0;}['addRevisionData'](_0x3248b5){const _0x211be2=this['repository']['createRevision'](_0x3248b5);return this['adapter']&&_0x211be2['on']('_update',(_0x27e0f8,_0x453c0f,_0x58d1dd)=>{_0x58d1dd||(this['_bufferUpdate'](_0x453c0f['id'],_0x453c0f,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x211be2,this['_findInsertionIndex'](_0x211be2)),_0x211be2;}async['getRevisionDocumentData'](_0x38fd9f){await this['_loadRevisionData'](_0x38fd9f);const _0x52829f={};for(const _0x195612 in _0x38fd9f['diffData']){if(_0x38fd9f['diffData'][_0x195612]['attachChange']&&!_0x38fd9f['diffData'][_0x195612]['attachChange']['isAttached'])continue;const _0x1dde9e=this['_removeRevisionMarkers'](JSON['parse'](_0x38fd9f['diffData'][_0x195612]['insertions'])),_0x4d6df3=this['editor']['editing']['view']['document'],_0x4992e5=new _0x9afee9(_0x4d6df3,_0x1dde9e['map'](_0x217683=>P(_0x217683,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x52829f[_0x195612]=this['editor']['data']['processor']['toData'](_0x4992e5),this['editor']['data']['processor']['useFillerType']('default');}return _0x52829f;}async['getRevisionRootsAttributes'](_0x23fb28){await this['_loadRevisionData'](_0x23fb28);const _0x3442dc={};for(const _0x397f2d in _0x23fb28['diffData'])_0x23fb28['diffData'][_0x397f2d]['attachChange']&&!_0x23fb28['diffData'][_0x397f2d]['attachChange']['isAttached']||(_0x3442dc[_0x397f2d]=_0x23fb28['diffData'][_0x397f2d]['attributesAfter']||{});return _0x3442dc;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x313f27=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x28012d=0x0;_0x28012d<_0x313f27['length'];_0x28012d++){const _0x2556c4=_0x313f27[_0x28012d];let _0xabf4cc=!0x1;for(const _0x5a4ecb of Object['keys'](_0x2556c4))void 0x0===_0x2556c4[_0x5a4ecb]?delete _0x2556c4[_0x5a4ecb]:'id'!==_0x5a4ecb&&(_0xabf4cc=!0x0);_0xabf4cc||(_0x313f27[_0x28012d]=null);}if(_0x313f27=_0x313f27['filter'](_0x3725b8=>null!==_0x3725b8),!_0x313f27['length'])return;for(let _0x30ed7f=0x0;_0x30ed7f<_0x313f27['length'];_0x30ed7f++){const _0xb8d2d8=_0x313f27[_0x30ed7f];void 0x0!==_0xb8d2d8['fromVersion']&&void 0x0===_0xb8d2d8['toVersion']&&(_0xb8d2d8['toVersion']=this['repository']['getRevision'](_0xb8d2d8['id'])['toVersion']),void 0x0!==_0xb8d2d8['toVersion']&&void 0x0===_0xb8d2d8['fromVersion']&&(_0xb8d2d8['fromVersion']=this['repository']['getRevision'](_0xb8d2d8['id'])['fromVersion']);}const _0x5dc9ea=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x313f27,_0x5dc9ea)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x1ecd56=>{if(_0x1ecd56){for(const _0xb979a7 of _0x1ecd56)this['setRevisionData']({'id':_0xb979a7['id'],'createdAt':_0xb979a7['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x78dee1,_0x4fad6e){let _0x2dcf69=this['editor']['config']['get']('initialData'),_0x377da1=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2dcf69){_0x2dcf69={};for(const _0x1528ee of this['editor']['model']['document']['getRootNames']())_0x2dcf69[_0x1528ee]='';}if('string'==typeof _0x2dcf69&&(_0x2dcf69={'main':_0x2dcf69}),void 0x0===_0x377da1){_0x377da1={};for(const _0x4d7496 of this['editor']['model']['document']['getRootNames']())_0x377da1[_0x4d7496]={};}let _0x605373=!0x1;const _0x11dc8a=Object['keys'](_0x2dcf69),_0x3b70b0=Object['keys'](_0x78dee1);for(const _0x47c98b of _0x11dc8a){if(_0x2dcf69[_0x47c98b]!==_0x78dee1[_0x47c98b]&&''!==_0x2dcf69[_0x47c98b]['trim']()){_0x605373=!0x0;break;}if(!_0x200c1c(_0x377da1[_0x47c98b],_0x4fad6e[_0x47c98b])&&Object['keys'](_0x377da1[_0x47c98b])['length']>0x0){_0x605373=!0x0;break;}}_0x605373||(_0x605373=_0x3b70b0['some'](_0x4e77d3=>!this['editor']['model']['document']['getRoot'](_0x4e77d3))),_0x605373&&_0x1bfa6f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2dcf69,'editorRootsAttributes':_0x377da1,'revisionData':_0x78dee1,'revisionRootsAttributes':_0x4fad6e}),this['editor']['config']['set']('initialData',_0x78dee1),this['editor']['config']['set']('rootsAttributes',_0x4fad6e);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x4af9dc=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x4af9dc['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x55754d){const _0x158fd1=this['repository']['getRevisions']();_0x158fd1['reverse']();let _0x4e7af8=0x0;for(;_0x4e7af8<_0x158fd1['length'];){const _0x3c4100=_0x158fd1[_0x4e7af8];if(_0x3c4100===this['currentRevision']){_0x4e7af8++;continue;}if(_0x3c4100['id']===this['_initialRevisionId'])break;const _0x4786c5=_0x55754d['toVersion']-_0x3c4100['toVersion']||_0x55754d['fromVersion']-_0x3c4100['fromVersion'];if(_0x4786c5>0x0)break;if(_0x4786c5<0x0)_0x4e7af8++;else{if(!_0x55754d['creator']&&_0x3c4100['creator'])break;if(_0x3c4100['creator']||!_0x55754d['creator']){if(_0x55754d['createdAt']>_0x3c4100['createdAt'])break;_0x4e7af8++;}else _0x4e7af8++;}}return _0x4e7af8;}['setRevisionData'](_0x39ec78){const _0x535ae6=this['repository']['getRevision'](_0x39ec78['id']);if(_0x39ec78['createdAt']&&(_0x39ec78['createdAt']=new Date(_0x39ec78['createdAt'])),_0x39ec78['authorsIds']){const _0x241ef6=this['editor']['plugins']['get']('Users');_0x39ec78['authors']=_0x39ec78['authorsIds']['map'](_0x1066e0=>_0x241ef6['getUser'](_0x1066e0));}_0x535ae6['_update'](_0x39ec78,!0x0);}['buildRevisionData']({revision:_0x1dd00f=null,from:_0x2eb378=null,to:_0x1067f4=null}){_0x2eb378=null!==_0x2eb378?_0x2eb378:_0x1dd00f['fromVersion'],_0x1067f4=null!==_0x1067f4?_0x1067f4:_0x1dd00f['toVersion'];const _0x3f9244=this['_revisionDataBuilder']['getData'](_0x2eb378,_0x1067f4),_0x519e50={'diffData':_0x3f9244['diffData'],'authorsIds':_0x3f9244['authorsIds'],'fromVersion':_0x2eb378,'toVersion':_0x1067f4};if(!_0x1dd00f||_0x1067f4!==_0x1dd00f['toVersion']){const _0x54f21b=_0x1067f4-0x1,_0x6028ad=this['_source']['history']['getOperation'](_0x54f21b);_0x519e50['createdAt']=_0x6028ad&&_0x6028ad['createdAt']||new Date();}if(this['_loadedStateData']&&_0x2eb378===this['_loadedStateData']['fromVersion']){for(const _0x71e8c7 of this['_loadedStateData']['authors'])_0x519e50['authorsIds']['includes'](_0x71e8c7['id'])||_0x519e50['authorsIds']['push'](_0x71e8c7['id']);}return _0x519e50;}['_loadRevisionData'](_0xdad250){if(!_0xdad250||_0xdad250['diffData'])return Promise['resolve']();{const _0x1df60f=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1df60f,'revisionId':_0xdad250['id']})['then'](_0x37ebc0=>{_0xdad250['diffData']=_0x37ebc0['diffData'];});}}['_bufferUpdate'](_0x25079f,_0x162f96,_0x5683ab){if(this['_bufferedUpdates']['has'](_0x25079f)){const _0x35be17=this['_bufferedUpdates']['get'](_0x25079f);_0x162f96=_0x5683ab?{..._0x35be17,..._0x162f96}:{..._0x162f96,..._0x35be17};}this['_bufferedUpdates']['set'](_0x25079f,_0x162f96);}['_getFromVersion'](_0x10ef6f){const _0x3a9307=this['repository']['getRevisions']();_0x3a9307['reverse'](),_0x3a9307['shift']();const _0x9bd2e=_0x3a9307['find'](_0x40ace3=>_0x40ace3['toVersion']<=_0x10ef6f)['toVersion'];return _0x9bd2e<this['_startingVersion']?this['_startingVersion']:_0x9bd2e;}['_createInitialRevision'](_0x37d7e3){const _0x1a95b6=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1a95b6)this['_initialRevisionId']=_0x1a95b6['id'];else{const _0x4c05cc=!this['editor']['model']['document']['roots']['find'](_0xa2674d=>this['editor']['model']['hasContent'](_0xa2674d)),_0x324f99=this['editor']['plugins']['get']('Users')['me']['id'],_0x140507=m(this['editor']['locale'],_0x4c05cc?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x37d7e3,'to':_0x37d7e3,'id':this['_initialRevisionId'],'name':_0x140507,'creatorId':_0x324f99});}}['_createCurrentRevision'](_0x21cb3c){const _0x19dc1a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x19dc1a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x21cb3c,'to':_0x21cb3c,'id':_0x19dc1a,'name':'','creatorId':null}));}['_makeRevision']({name:_0x1d37d8,from:_0x448bda,to:_0x3c8803,creatorId:_0x3b6b98,id:_0x494c00}){const _0x7136d2=this['buildRevisionData']({'from':_0x448bda,'to':_0x3c8803});_0x7136d2['name']=_0x1d37d8,_0x7136d2['creatorId']=_0x3b6b98,_0x7136d2['id']=_0x494c00;const _0x2c59af=this['addRevisionData'](_0x7136d2);return this['adapter']&&this['_bufferUpdate'](_0x7136d2['id'],_0x7136d2,!0x0),_0x2c59af;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x352ae0){return(_0x352ae0=_0x352ae0['filter'](_0xf9e1e=>!_0xf9e1e['name']||'revision-start'!==_0xf9e1e['name']&&'revision-end'!==_0xf9e1e['name']))['forEach'](_0x3a8499=>{'string'!=typeof _0x3a8499&&(_0x3a8499['children']=this['_removeRevisionMarkers'](_0x3a8499['children']),_0x3a8499['attributes']=_0x3a8499['attributes']['filter'](_0x356708=>!_0x356708[0x0]['startsWith']('data-revision-')));}),_0x352ae0;}}function P(_0x437138,_0x3353fd){const _0x165c3a=_0x3353fd['editing']['view']['document'];if('string'==typeof _0x437138)return new _0x101a1b(_0x165c3a,_0x437138);{const _0x256a2a=_0x437138['children']['map'](_0x6ca4b3=>P(_0x6ca4b3,_0x3353fd));return new(E[_0x437138['type']]||_0x15b19e)(_0x165c3a,_0x437138['name'],_0x437138['attributes'],_0x256a2a);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3999bc){this['editor']=_0x3999bc,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'](_0x401b20){this['source']=_0x401b20;const _0xc7a555=new Map(),_0xa3fff8=new Map(),_0x3aca87=this['editor']['model']['document']['roots']['map'](_0x5bf8cd=>_0x5bf8cd['rootName']);for(const _0x38ec56 of _0x3aca87){const _0x35dcfe=this['editor']['model']['document']['getRoot'](_0x38ec56),_0xfb50c6=T(_0x35dcfe);_0xc7a555['set'](_0x38ec56,_0xfb50c6),_0xa3fff8['set'](_0x38ec56,Object['fromEntries'](_0x35dcfe['getAttributes']()));}const _0x423113=Array['from'](this['editor']['model']['markers'])['map'](_0x4f9b15=>[_0x4f9b15['name'],_0x4f9b15['getRange']()]),_0x2318cc=this['source']['version'];this['_saveMetaData'](_0x2318cc,_0xc7a555,_0x423113,_0xa3fff8),this['_startingRevisionId']=this['_revisionId'];const _0x21a3bf=new Map(),_0x4e985a=new Map();for(const _0x4d58d7 of _0x3aca87){const _0x49c139=F(_0x4d58d7);_0x21a3bf['set'](_0x4d58d7,_0x49c139),_0x4e985a['set'](_0x4d58d7,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x21a3bf,[],_0x4e985a);}['getData'](_0x2e26cc,_0x1947c2){if(this['_lastFrom']===_0x2e26cc&&this['_lastTo']<=_0x1947c2)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x1947c2,!0x0);else{if(!this['_savedMetaData']['has'](_0x2e26cc)){const _0x300c37=this['_getPreviousFrom'](_0x2e26cc);this['_calculateMetaData'](_0x300c37,_0x2e26cc,!0x1);}this['_calculateMetaData'](_0x2e26cc,_0x1947c2,!0x0);}return this['_lastFrom']=_0x2e26cc,this['_lastTo']=_0x1947c2,this['_getState']();}['loadState'](_0x333ccf){this['_reset'](),this['_lastFrom']=_0x333ccf['fromVersion'],this['_lastTo']=_0x333ccf['toVersion'];for(const _0x142961 in _0x333ccf['diffData']){const _0x55c901=_0x333ccf['diffData'][_0x142961]['attachChange'],_0x16e3db=_0x5b5f9d(_0x333ccf['diffData'][_0x142961]['attributesBefore'])||{},_0x148099=this['_makeModelFromViewString'](_0x333ccf['diffData'][_0x142961]['deletions']);_0x148099['rootName']=_0x142961,_0x148099['_isAttached']=!_0x55c901||!_0x55c901['isAttached'],_0x148099['isAttached']=()=>_0x148099['_isAttached'],this['_baseRoots']['set'](_0x142961,_0x148099),this['_baseRootsAttributes']['set'](_0x142961,_0x16e3db),_0x55c901&&this['_touchedRoots']['set'](_0x142961,_0x55c901);const _0x26d1e7=this['_makeIdsRoot'](_0x148099);this['_baseIdsRoots']['set'](_0x142961,_0x26d1e7);for(const [_0x17523c,_0xebdad7]of _0x148099['markers']){if(!_0x17523c['startsWith']('revision:'))continue;const _0x47af5a=_0x17523c['split'](':')[0x2];for(const _0xe675ad of _0xebdad7['getWalker']({'singleCharacters':!0x0})){const _0x3fa2bb=this['_getVidAttributeName'](_0xe675ad),_0x1f1517='elementEnd'==_0xe675ad['type']?_0xe675ad['previousPosition']['path']['slice'](0x0,-0x1):_0xe675ad['previousPosition']['path'],_0x32f39b=_0x26d1e7['getNodeByPath'](_0x1f1517)['getAttribute'](_0x3fa2bb);this['_touched']['set'](_0x32f39b,{'userId':_0x47af5a});}}}this['_startingRevisionId']=this['_revisionId'];const _0xe7841d=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x5c6d66=>!this['_touched']['has'](_0x5c6d66));let _0x388b7a=0x0;const _0x21d981=new Map();for(const _0x187eb2 in _0x333ccf['diffData']){const _0x57f27d=_0x333ccf['diffData'][_0x187eb2]['attachChange'],_0xd2cd62=_0x5b5f9d(_0x333ccf['diffData'][_0x187eb2]['attributesAfter'])||{},_0x5927fc=this['_makeModelFromViewString'](_0x333ccf['diffData'][_0x187eb2]['insertions']);_0x5927fc['rootName']=_0x187eb2,_0x5927fc['_isAttached']=!_0x57f27d||_0x57f27d['isAttached'],_0x5927fc['isAttached']=()=>_0x5927fc['_isAttached'],this['_diffRoots']['set'](_0x187eb2,_0x5927fc),this['_diffRootsAttributes']['set'](_0x187eb2,_0xd2cd62);const _0x320656=this['_makeIdsRoot'](_0x5927fc,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x187eb2,_0x320656),_0x21d981['set'](_0x187eb2,_0x5927fc['isAttached']()?_0xd2cd62:{});for(const [_0x201758,_0x160860]of _0x5927fc['markers']){if(!_0x201758['startsWith']('revision:'))continue;const _0x4368ab=_0x201758['split'](':')[0x2];for(const _0x43cf0d of _0x160860['getWalker']({'singleCharacters':!0x0})){const _0x1cbbb5=this['_getVidAttributeName'](_0x43cf0d),_0x124514=this['_revisionId']++,_0x5f3f00='elementEnd'==_0x43cf0d['type']?_0x43cf0d['previousPosition']['path']['slice'](0x0,-0x1):_0x43cf0d['previousPosition']['path'];_0x320656['getNodeByPath'](_0x5f3f00)['_setAttribute'](_0x1cbbb5,_0x124514),this['_touched']['set'](_0x124514,{'userId':_0x4368ab});}}for(const _0x1802b3 of this['editor']['model']['createRangeIn'](_0x5927fc)['getWalker']({'singleCharacters':!0x0})){const _0x3f6f0f=this['_getVidAttributeName'](_0x1802b3),_0x3ee4a0='elementEnd'==_0x1802b3['type']?_0x1802b3['previousPosition']['path']['slice'](0x0,-0x1):_0x1802b3['previousPosition']['path'],_0x5e101b=_0x320656['getNodeByPath'](_0x3ee4a0);_0x5e101b['getAttribute'](_0x3f6f0f)>0x0||_0x5e101b['_setAttribute'](_0x3f6f0f,_0xe7841d[_0x388b7a++]);}for(const [_0x2c8398,_0x1437ee]of _0x5927fc['markers'])_0x2c8398['startsWith']('revision:')||this['_markers']['set'](_0x2c8398,_0x1437ee);}const _0x4dec75=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4dec75),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4dec75,0x1));const _0x4229e8=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4229e8),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4229e8,0x1));const _0x25cfe0=Array['from'](this['_diffRoots'])['map'](([_0x566236,_0x2ad438])=>[_0x566236,T(_0x2ad438)]);this['_saveMetaData'](this['_lastTo'],_0x25cfe0,this['_markers'],_0x21d981);}['_makeModelFromViewString'](_0x209a72){const _0x299938=JSON['parse'](_0x209a72),_0x13a1a1=this['editor']['editing']['view']['document'],_0x127616=new _0x9afee9(_0x13a1a1,_0x299938['map'](_0x8fd705=>P(_0x8fd705,this['editor'])));return this['editor']['data']['toModel'](_0x127616);}['_saveMetaData'](_0x384203,_0x620fd0,_0x32d2f6,_0x2e2448){const _0x285939=new Map(_0x620fd0),_0x58dfd7=new Map(_0x5b5f9d(_0x2e2448)),_0x2cbdd7=new Map();for(const [_0x6e942,_0x2aea37]of _0x32d2f6)_0x2cbdd7['set'](_0x6e942,{'start':_0x2aea37['start']['clone'](),'end':_0x2aea37['end']['clone'](),'rootName':_0x2aea37['root']['rootName']});this['_savedMetaData']['set'](_0x384203,{'roots':_0x285939,'markers':_0x2cbdd7,'rootsAttributes':_0x58dfd7});}['_removeMetaData'](_0x5f55e2){this['_savedMetaData']['delete'](_0x5f55e2);}['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'](_0x455e32,_0x2f3532=null){let _0xb01516=null;_0x455e32['is']('documentFragment')||(_0xb01516=new ut(_0x455e32['name'],{'vid_start':null===_0x2f3532?this['_revisionId']++:_0x2f3532++}));const _0x4a0ed7=[];for(const _0x1aee9c of _0x455e32['getChildren']())if(_0x1aee9c['is']('element')){_0x4a0ed7['push'](this['_makeIdsRoot'](_0x1aee9c,_0x2f3532));const _0x19e3ce=_0x4a0ed7[_0x4a0ed7['length']-0x1];null!==_0x2f3532&&(_0x2f3532=_0x19e3ce['is']('element','$text')?_0x19e3ce['getAttribute']('vid')+0x1:_0x19e3ce['getAttribute']('vid_end')+0x1);}else{for(let _0x14b751=0x0;_0x14b751<_0x1aee9c['offsetSize'];_0x14b751++)_0x4a0ed7['push'](new ut('$text',{'vid':null===_0x2f3532?this['_revisionId']++:_0x2f3532++}));}if(_0x455e32['is']('documentFragment')){const _0x2a9fe6=F(_0x455e32['rootName']);return _0x2a9fe6['_insertChild'](0x0,_0x4a0ed7),_0x2a9fe6;}return _0xb01516['_setAttribute']('vid_end',null===_0x2f3532?this['_revisionId']++:_0x2f3532++),_0xb01516['_insertChild'](0x0,_0x4a0ed7),_0xb01516;}['_calculateMetaData'](_0x17abc1,_0x266b1f,_0x298757){this['_reset']();const {roots:_0x45eee9,markers:_0x26c3fc,rootsAttributes:_0x5c5cf3}=this['_savedMetaData']['get'](_0x17abc1);this['_baseRoots']=new Map(_0x45eee9),this['_baseRootsAttributes']=new Map(_0x5b5f9d(_0x5c5cf3));for(const [_0x263178,_0x162bf1]of this['_baseRoots'])if('$graveyard'!==_0x263178&&(this['_diffRoots']['set'](_0x263178,T(_0x162bf1)),this['_diffRootsAttributes']=new Map(_0x5b5f9d(_0x5c5cf3)),_0x298757)){const _0x1e4e09=this['_revisionId'];this['_idsRoots']['set'](_0x263178,this['_makeIdsRoot'](_0x162bf1)),this['_baseIdsRoots']['set'](_0x263178,this['_makeIdsRoot'](_0x162bf1,_0x1e4e09));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x298757&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x40aeea,_0x5624da]of _0x26c3fc){const _0x31f973=this['_baseRoots']['get'](_0x5624da['rootName']),_0x1680e8=this['_diffRoots']['get'](_0x5624da['rootName']),_0x3f6673=new ft(this['_fixPosition'](_0x5624da['start'],_0x31f973),this['_fixPosition'](_0x5624da['end'],_0x31f973)),_0x51dedd=this['_fixRange'](_0x3f6673,_0x1680e8);_0x31f973['markers']['set'](_0x40aeea,_0x3f6673),this['_markers']['set'](_0x40aeea,_0x51dedd);}this['_applyOperations'](_0x17abc1,_0x266b1f,_0x298757);}['_applyOperations'](_0x12fffe,_0x3d9899,_0x412a08){for(const _0x47dd4a of this['source']['getOperations'](_0x12fffe,_0x3d9899))this['_handleOperation'](_0x47dd4a,_0x412a08);for(const _0x280d2a of this['_diffRoots']['values']())_0x280d2a['markers']['clear']();for(const [_0x4773a8,_0x30fe76]of this['_markers']){this['_diffRoots']['get'](_0x30fe76['root']['rootName'])['markers']['set'](_0x4773a8,_0x30fe76['clone']());}const _0xc65cb0=new Map(),_0x5884cd=new Map();for(const [_0x5e5a66,_0x327f79]of this['_diffRoots'])_0xc65cb0['set'](_0x5e5a66,T(_0x327f79)),_0x5884cd['set'](_0x5e5a66,this['_diffRootsAttributes']['get'](_0x5e5a66));this['_saveMetaData'](_0x3d9899,_0xc65cb0,this['_markers'],_0x5884cd);}['_getPreviousFrom'](_0x4d52db){const _0x235d8c=Array['from'](this['_savedMetaData']['keys']());_0x235d8c['sort']((_0x4e9b0a,_0x56db97)=>_0x4e9b0a-_0x56db97),_0x235d8c['reverse']();for(const _0x2e6ad2 of _0x235d8c)if(_0x2e6ad2<_0x4d52db)return _0x2e6ad2;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x527d82,_0x1b1c47){const _0x41555d=Array['from'](_0x1b1c47['markers'])['map'](([_0x474922,_0x280375])=>[_0x474922,this['_fixRange'](_0x280375,_0x527d82)]);_0x527d82['markers']=new Map(_0x41555d);}['_transformMarkers'](_0x3d896a){for(const _0x223f09 of this['_markers']['values']()){const _0xbe092d=_0x223f09['getTransformedByOperation'](_0x3d896a),_0x14e888=ft['_createFromRanges'](_0xbe092d);_0x223f09['start']=_0x14e888['start'],_0x223f09['end']=_0x14e888['end'];}}['_handleOperation'](_0x4ae053,_0x1e8a37){if('addRoot'!=_0x4ae053['type']&&'detachRoot'!=_0x4ae053['type']){if('insert'==_0x4ae053['type']){const _0x3f78be=_0x4ae053['position']['root']['rootName'];this['_diffRoots']['has'](_0x3f78be)||(this['_diffRoots']['set'](_0x3f78be,F(_0x3f78be,!0x0)),this['_diffRootsAttributes']['set'](_0x3f78be,{}),_0x1e8a37&&this['_idsRoots']['set'](_0x3f78be,F(_0x3f78be,!0x0)));}else{if('addRootAttribute'==_0x4ae053['type']||'removeRootAttribute'==_0x4ae053['type']||'changeRootAttribute'==_0x4ae053['type'])return void this['_handleRootAttributeOperation'](_0x4ae053);'marker'==_0x4ae053['type']&&this['_handleMarkerOperation'](_0x4ae053);}if('marker'!==_0x4ae053['type']){const _0x93bec0=this['_cloneOperation'](_0x4ae053,this['_diffRoots']);_0x93bec0['_execute'](),this['_transformMarkers'](_0x93bec0);}if(_0x1e8a37)switch(_0x4ae053['type']){case'insert':this['_handleInsertOperation'](_0x4ae053);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x4ae053);break;case'merge':this['_handleMergeOperation'](_0x4ae053);break;case'split':this['_handleSplitOperation'](_0x4ae053);}}else this['_handleRootOperation'](_0x4ae053,_0x1e8a37);}['_cloneOperation'](_0x552f1e,_0x573594){const _0x5b6de2=_0x552f1e['clone']();return _0x5b6de2['_authorId']=_0x552f1e['_authorId'],this['_fixOperation'](_0x5b6de2,_0x573594),_0x5b6de2;}['_getBaseVids'](_0x5bc641){return _0x5bc641['map'](_0x259d81=>{const _0x1c124a=this['_getVidAttributeName'](_0x259d81);return Number(_0x259d81['item']['getAttribute'](_0x1c124a));});}['_generateTape'](_0x4727cb,_0xecf2d2){if(_0x4727cb['is']('element','$text'))_0xecf2d2['push']({'item':_0x4727cb,'type':'text'});else{_0x4727cb['is']('element')&&_0xecf2d2['push']({'item':_0x4727cb,'type':'elementStart'});for(const _0x5b480b of _0x4727cb['getChildren']())this['_generateTape'](_0x5b480b,_0xecf2d2);_0x4727cb['is']('element')&&_0xecf2d2['push']({'item':_0x4727cb,'type':'elementEnd'});}return _0xecf2d2;}['_getState'](){const _0x779c13=new Map(this['_touched']),_0x17e535=new Map(_0x779c13),_0x25bba0=new Map(),_0x574623={'insertions':{},'deletions':{}},_0xc87fde={'insertions':{},'deletions':{}},_0x27aa7b=new Map(),_0x53cb76=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x53cb76['delete']('$graveyard');for(const _0x17689f of _0x53cb76){const _0x29140a=this['_diffRoots']['get'](_0x17689f)||F(_0x17689f,!0x1),_0x408d14=this['_baseRoots']['get'](_0x17689f)||F(_0x17689f,!0x1);_0x29140a['isAttached']()||_0x408d14['isAttached']()?(_0x574623['insertions'][_0x17689f]=T(_0x29140a),_0x574623['deletions'][_0x17689f]=T(_0x408d14),this['_copyMarkers'](_0x574623['deletions'][_0x17689f],_0x408d14),this['_copyMarkers'](_0x574623['insertions'][_0x17689f],_0x29140a),_0xc87fde['insertions'][_0x17689f]=this['_generateTape'](this['_idsRoots']['get'](_0x17689f),[]),_0xc87fde['deletions'][_0x17689f]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x17689f)||F(_0x17689f,!0x1),[])):_0x53cb76['delete'](_0x17689f);}for(const _0x288893 of _0x53cb76){const _0x3bfbae=_0xc87fde['insertions'][_0x288893];for(const _0x538024 of _0x3bfbae){const _0x54a83a=this['_getVidAttributeName'](_0x538024),_0x263687=_0x538024['item']['getAttribute'](_0x54a83a);_0x17e535['delete'](_0x263687),_0x263687>=this['_startingRevisionId']&&_0x25bba0['set'](_0x263687,_0x779c13['get'](_0x263687));}}for(const _0x5208fd of _0x53cb76){const _0x5480cb=_0xc87fde['insertions'][_0x5208fd],_0x270690=this['_getBaseVids'](_0xc87fde['deletions'][_0x5208fd]);let _0x106831=0x0;for(const _0x2bdfa1 of _0x5480cb){const _0x2964ad=this['_getVidAttributeName'](_0x2bdfa1),_0x50496a=_0x2bdfa1['item']['getAttribute'](_0x2964ad);if(!_0x25bba0['has'](_0x50496a)&&!_0x27aa7b['has'](_0x50496a)){if(_0x17e535['has'](_0x50496a))_0x106831++;else{if(_0x50496a!=_0x270690[_0x106831]){const _0x39f3af=_0x779c13['get'](_0x50496a)||_0x779c13['get'](_0x270690[_0x106831]);for(;_0x50496a!=_0x270690[_0x106831];)_0x17e535['has'](_0x270690[_0x106831])||(_0x27aa7b['set'](_0x270690[_0x106831],_0x39f3af),_0x779c13['set'](_0x270690[_0x106831],_0x39f3af)),_0x106831++;}_0x106831++;}}}}for(const _0x2b14b8 of _0x53cb76){const _0x2c31de=_0xc87fde['insertions'][_0x2b14b8];for(const _0xaa0b9f of _0x2c31de){const _0x373a9f=this['_getVidAttributeName'](_0xaa0b9f),_0x14c662=_0xaa0b9f['item']['getAttribute'](_0x373a9f);if(_0x27aa7b['has'](_0x14c662)){const _0x1c5f51=_0x27aa7b['get'](_0x14c662);_0x17e535['has'](_0x14c662)||_0x17e535['set'](_0x14c662,{..._0x1c5f51}),_0x25bba0['set'](_0x14c662,{..._0x1c5f51});}}}for(const _0x59acf7 of _0x17e535['keys']())_0x59acf7>=this['_startingRevisionId']&&_0x17e535['delete'](_0x59acf7);const _0x5f3454=new Map();for(const _0x3c73a9 of _0x53cb76){let _0xbec8c2=_0xc87fde['insertions'][_0x3c73a9];for(const _0x1e3eec of _0xbec8c2)if(_0x1e3eec['item']['is']('element','tableCell')){const _0x5a37ae=this['_getVidAttributeName'](_0x1e3eec),_0x435e6d=_0x1e3eec['item']['getAttribute'](_0x5a37ae);if(_0x25bba0['has'](_0x435e6d)){const _0x3cb4bf=_0x1e3eec['item']['parent']['parent']['getAttribute']('vid_start'),_0x5b3897=_0x5f3454['get'](_0x3cb4bf)||new Set();_0x5b3897['add'](_0x25bba0['get'](_0x435e6d)['userId']),_0x5f3454['set'](_0x3cb4bf,_0x5b3897);}}_0xbec8c2=_0xc87fde['deletions'][_0x3c73a9];for(const _0x85d01b of _0xbec8c2)if(_0x85d01b['item']['is']('element','tableCell')){const _0x7c467d=this['_getVidAttributeName'](_0x85d01b),_0x1021c0=_0x85d01b['item']['getAttribute'](_0x7c467d);if(_0x17e535['has'](_0x1021c0)){const _0x4e1d5e=_0x85d01b['item']['parent']['parent']['getAttribute']('vid_start'),_0x5cf802=_0x5f3454['get'](_0x4e1d5e)||new Set();_0x5cf802['add'](_0x17e535['get'](_0x1021c0)['userId']),_0x5f3454['set'](_0x4e1d5e,_0x5cf802);}}for(const _0x34c09d of _0x5f3454['keys']())(_0x25bba0['has'](_0x34c09d)||_0x17e535['has'](_0x34c09d))&&_0x5f3454['delete'](_0x34c09d);}for(const _0x4a9012 of _0x53cb76){const _0xa36cee=_0xc87fde['insertions'][_0x4a9012];let _0x11968f=null,_0x428727=null;for(const _0x4b985 of _0xa36cee){const _0x657037=this['_getVidAttributeName'](_0x4b985),_0x6b297=_0x4b985['item']['getAttribute'](_0x657037),_0x37c229=_0x5f3454['get'](_0x6b297);_0x37c229&&'elementStart'==_0x4b985['type']&&(_0x11968f=Array['from'](_0x37c229)[0x0],_0x428727=_0x4b985['item']['getAttribute']('vid_end')),_0x11968f&&(_0x17e535['set'](_0x6b297,{'userId':_0x11968f}),_0x25bba0['set'](_0x6b297,{'userId':_0x11968f})),_0x6b297==_0x428727&&(_0x11968f=null,_0x428727=null);}}const _0x2a42d1={},_0x12edc4=new Set();for(const _0x2b1896 of _0x53cb76){const _0x14d7de=_0x574623['deletions'][_0x2b1896],_0x1933fe=_0x574623['insertions'][_0x2b1896];for(const {userId:_0x269892}of this['_touchedMarkers']['values']())null!==_0x269892&&_0x12edc4['add'](_0x269892);for(const {userId:_0x41423d}of this['_touchedRoots']['values']())null!==_0x41423d&&_0x12edc4['add'](_0x41423d);this['_markChanges'](_0x1933fe,_0xc87fde['insertions'][_0x2b1896],_0x25bba0,'insertion',_0x12edc4),this['_markChanges'](_0x14d7de,_0xc87fde['deletions'][_0x2b1896],_0x17e535,'deletion',_0x12edc4),_0x2a42d1[_0x2b1896]={'insertions':this['_prepareViewToSave'](_0x1933fe),'deletions':this['_prepareViewToSave'](_0x14d7de),'attachChange':this['_touchedRoots']['get'](_0x2b1896)||null,'attributesBefore':_0x5b5f9d(this['_baseRootsAttributes']['get'](_0x2b1896))||{},'attributesAfter':_0x5b5f9d(this['_diffRootsAttributes']['get'](_0x2b1896))};}return{'diffData':_0x2a42d1,'authorsIds':Array['from'](_0x12edc4)};}['_processRootBeforeSave'](_0x17c78a){for(const [,_0xee034f]of _0x17c78a['markers']){const _0x561ca3=_0xee034f['start']['getAncestors']()['filter'](_0x505c2=>'tableCell'==_0x505c2['name']);for(const _0x11a413 of _0x561ca3)0x1==_0x11a413['childCount']&&_0x11a413['getChild'](0x0)['is']('element','paragraph')&&_0x11a413['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x307f2a){this['_processRootBeforeSave'](_0x307f2a);const _0x5c6fae=this['editor']['data']['toView'](_0x307f2a,{}),_0x5f21e6=Array['from'](_0x5c6fae['getChildren']())['map'](_0x399217=>this['_getViewJson'](_0x399217));return JSON['stringify'](_0x5f21e6);}['_getViewJson'](_0x115254){if(_0x115254['is']('$text'))return _0x115254['data'];{const _0x30ab97=_0x115254;return{'type':Object['keys'](E)['find'](_0x4890e3=>_0x115254 instanceof E[_0x4890e3]),'name':_0x30ab97['name'],'attributes':Array['from'](_0x30ab97['getAttributes']()),'children':Array['from'](_0x30ab97['getChildren']())['map'](_0x5a43d1=>this['_getViewJson'](_0x5a43d1))};}}['_markChanges'](_0x3eb512,_0x2594e1,_0x6f908b,_0x7dfb57,_0x9704b7){let _0x2dc563=null,_0x38da52=null,_0x47719a=0x0;const _0x1110fe=this['editor']['model'];for(let _0x589e46=0x0;_0x589e46<_0x2594e1['length'];_0x589e46++){const _0x492f7d=this['_getVidAttributeName'](_0x2594e1[_0x589e46]),_0x180402=_0x2594e1[_0x589e46]['item']['getAttribute'](_0x492f7d),_0x499d0a=_0x6f908b['get'](_0x180402),_0xbf7018=_0x589e46==_0x2594e1['length']-0x1;(!_0x2dc563&&_0x499d0a&&(_0x2dc563=_0x499d0a,_0x38da52=_0x2594e1[_0x589e46]),_0x2dc563&&(!_0x499d0a||_0x499d0a['userId']!=_0x2dc563['userId']))&&(_0x285e56(_0x499d0a,B(_0x38da52,_0x3eb512,_0x1110fe),B(_0x2594e1[_0x589e46],_0x3eb512,_0x1110fe)),_0x2dc563=_0x499d0a||null,_0x38da52=_0x499d0a?_0x2594e1[_0x589e46]:null),_0x2dc563&&_0xbf7018&&_0x285e56(_0x499d0a,B(_0x38da52,_0x3eb512,_0x1110fe),J(_0x2594e1[_0x589e46],_0x3eb512,_0x1110fe));}function _0x285e56(_0x4eeb88,_0x5bfc18,_0x4be009){const _0x6da9b3=_0x2dc563['userId'],_0xc650c4='revision:'+_0x7dfb57+':'+_0x6da9b3+':'+_0x47719a++,_0x554c13=_0x1110fe['createRange'](_0x5bfc18,_0x4be009);_0x3eb512['markers']['set'](_0xc650c4,_0x554c13),null!==_0x6da9b3&&_0x9704b7['add'](_0x6da9b3);}}['_getVidAttributeName'](_0x58b432){switch(_0x58b432['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x498a5c,_0x2ab405){_0x498a5c['baseVersion']=null;for(const _0x2cbcb9 in _0x498a5c){const _0x38f3ec=_0x498a5c[_0x2cbcb9];if(_0x38f3ec instanceof vt){const _0x5cfe95=_0x2ab405['get'](_0x38f3ec['root']['rootName']);_0x498a5c[_0x2cbcb9]=this['_fixPosition'](_0x38f3ec,_0x5cfe95);}if(_0x38f3ec instanceof ft){const _0x14fe60=_0x2ab405['get'](_0x38f3ec['root']['rootName']);_0x498a5c[_0x2cbcb9]=this['_fixRange'](_0x38f3ec,_0x14fe60);}'root'===_0x2cbcb9&&(_0x498a5c['root']=_0x2ab405['get'](_0x498a5c['root']['rootName']));}}['_fixRange'](_0x3cd1a6,_0x251ae9){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3cd1a6['start'],_0x251ae9),this['_fixPosition'](_0x3cd1a6['end'],_0x251ae9));}['_fixPosition'](_0x4f1e1f,_0x50a651){return this['editor']['model']['createPositionFromPath'](_0x50a651,_0x4f1e1f['path'],_0x4f1e1f['stickiness']);}['_handleInsertOperation'](_0x42a4fb){const _0x1cfd8f=this['_idsRoots']['get'](_0x42a4fb['position']['root']['rootName']),_0x5a5296=this['_fixPosition'](_0x42a4fb['position'],_0x1cfd8f),_0x3c0a58=null===_0x42a4fb['_authorId']?null:_0x42a4fb['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4f884a=_0x5a5296['parent'],_0x1fbc39=this['_revisionId'],_0x4cfa5b=[];for(const _0x490135 of _0x42a4fb['nodes'])if(_0x490135['is']('element'))_0x4cfa5b['push'](this['_makeIdsRoot'](_0x490135));else{for(let _0x2c7b8f=0x0;_0x2c7b8f<_0x490135['offsetSize'];_0x2c7b8f++)_0x4cfa5b['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x4f7e44=this['_revisionId'];for(let _0xeadee1=_0x1fbc39;_0xeadee1<_0x4f7e44;_0xeadee1++)this['_touched']['set'](_0xeadee1,{'userId':_0x3c0a58});_0x4f884a['_insertChild'](_0x5a5296['offset'],_0x4cfa5b);}['_handleMoveOperation'](_0x499cfa){(_0x499cfa=this['_cloneOperation'](_0x499cfa,this['_idsRoots']))['_execute']();const _0x3e6029=null===_0x499cfa['_authorId']?null:_0x499cfa['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3aa083=_0x499cfa['getMovedRangeStart'](),_0x30b04d=_0x3aa083['parent'],_0x354b12=_0x3aa083['offset'];!function _0x3d0f13(_0x4b4441,_0x4fedd0,_0xfb956c,_0x3490aa){for(let _0x375124=_0xfb956c;_0x375124<_0x3490aa;_0x375124++){const _0x5d79c7=_0x4fedd0['getChild'](_0x375124);_0x5d79c7['is']('element','$text')?_0x4b4441['set'](_0x5d79c7['getAttribute']('vid'),{'userId':_0x3e6029}):(_0x4b4441['set'](_0x5d79c7['getAttribute']('vid_start'),{'userId':_0x3e6029}),_0x3d0f13(_0x4b4441,_0x5d79c7,0x0,_0x5d79c7['childCount']),_0x4b4441['set'](_0x5d79c7['getAttribute']('vid_end'),{'userId':_0x3e6029}));}}(this['_touched'],_0x30b04d,_0x354b12,_0x354b12+_0x499cfa['howMany']);}['_handleMergeOperation'](_0x1d4c7b){const _0x50088d=null===(_0x1d4c7b=this['_cloneOperation'](_0x1d4c7b,this['_idsRoots']))['_authorId']?null:_0x1d4c7b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3c0cff=_0x1d4c7b['targetPosition']['parent'],_0x234fb5=_0x1d4c7b['sourcePosition']['parent'],_0x2cd316=_0x3c0cff['getAttribute']('vid_end'),_0x19b6eb=_0x234fb5['getAttribute']('vid_start');_0x3c0cff['_setAttribute']('vid_end',_0x234fb5['getAttribute']('vid_end')),_0x234fb5['_setAttribute']('vid_end',_0x2cd316),this['_touched']['set'](_0x19b6eb,{'userId':_0x50088d}),this['_touched']['set'](_0x2cd316,{'userId':_0x50088d}),_0x1d4c7b['_execute']();}['_handleSplitOperation'](_0x1b5bef){const _0x22a6d6=null===(_0x1b5bef=this['_cloneOperation'](_0x1b5bef,this['_idsRoots']))['_authorId']?null:_0x1b5bef['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43528f=_0x1b5bef['graveyardPosition'],_0x53efe6=_0x1b5bef['splitPosition']['parent'];_0x1b5bef['_execute']();const _0x329aa4=_0x53efe6['getAttribute']('vid_end'),_0x3859be=_0x1b5bef['insertionPosition']['nodeAfter'];if(_0x43528f){const _0x27e62f=_0x3859be['getAttribute']('vid_end'),_0x200d99=_0x53efe6['getAttribute']('vid_end');_0x53efe6['_setAttribute']('vid_end',_0x27e62f),_0x3859be['_setAttribute']('vid_end',_0x200d99),this['_touched']['set'](_0x53efe6['getAttribute']('vid_end'),{'userId':_0x22a6d6}),this['_touched']['set'](_0x3859be['getAttribute']('vid_start'),{'userId':_0x22a6d6});}else{const _0x3485eb=this['_revisionId']++,_0x2c865f=this['_revisionId']++;_0x53efe6['_setAttribute']('vid_end',_0x3485eb),_0x3859be['_setAttribute']('vid_start',_0x2c865f),_0x3859be['_setAttribute']('vid_end',_0x329aa4),this['_touched']['set'](_0x3485eb,{'userId':_0x22a6d6}),this['_touched']['set'](_0x2c865f,{'userId':_0x22a6d6});}}['_handleMarkerOperation'](_0x14789c){if(!_0x14789c['affectsData'])return;const _0x23058e=(_0x14789c=this['_cloneOperation'](_0x14789c,this['_diffRoots']))['oldRange']?_0x14789c['oldRange']['root']:null,_0x5ebca5=_0x14789c['newRange']?_0x14789c['newRange']['root']:null;_0x23058e&&this['_markers']['delete'](_0x14789c['name']),_0x5ebca5&&this['_markers']['set'](_0x14789c['name'],_0x14789c['newRange']['clone']());const _0x2ea880=null===_0x14789c['_authorId']?null:_0x14789c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x540420=_0x14789c['name'];if(!this['_touchedMarkers']['has'](_0x540420))return void this['_touchedMarkers']['set'](_0x540420,{'range':_0x14789c['oldRange'],'userId':_0x2ea880});const _0x2ff99c=this['_touchedMarkers']['get'](_0x540420),_0x1e2cee=_0x2ff99c['range'],_0x4a3788=_0x14789c['newRange'];null==_0x1e2cee&&null==_0x4a3788||_0x1e2cee&&_0x4a3788&&_0x1e2cee['isEqual'](_0x4a3788)?this['_touchedMarkers']['delete'](_0x14789c['name']):_0x2ff99c['userId']=_0x2ea880;}['_handleRootOperation'](_0x27cff5,_0xb3afaa){this['_diffRoots']['has'](_0x27cff5['rootName'])?this['_diffRoots']['get'](_0x27cff5['rootName'])['_isAttached']=_0x27cff5['isAdd']:(this['_diffRoots']['set'](_0x27cff5['rootName'],F(_0x27cff5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x27cff5['rootName'],{}),_0xb3afaa&&this['_idsRoots']['set'](_0x27cff5['rootName'],F(_0x27cff5['rootName'],!0x0)));const _0x32fca2=null===_0x27cff5['_authorId']?null:_0x27cff5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37e95e=this['_touchedRoots']['get'](_0x27cff5['rootName']);_0x37e95e&&_0x37e95e['userId']===_0x32fca2?this['_touchedRoots']['delete'](_0x27cff5['rootName']):this['_touchedRoots']['set'](_0x27cff5['rootName'],{'userId':_0x32fca2,'isAttached':_0x27cff5['isAdd']});}['_handleRootAttributeOperation'](_0x4baf6a){const _0x392dfc=this['_diffRootsAttributes']['get'](_0x4baf6a['root']['rootName']);null===_0x4baf6a['newValue']?delete _0x392dfc[_0x4baf6a['key']]:_0x392dfc[_0x4baf6a['key']]=_0x4baf6a['newValue'];}}function T(_0x9f474d){const _0x41a22e=F(_0x9f474d['rootName'],_0x9f474d['isAttached']());for(const _0x3b82dc of _0x9f474d['getChildren']()){const _0x3b4f05=_0x3b82dc['_clone'](!0x0);_0x41a22e['_appendChild'](_0x3b4f05);}return _0x41a22e;}function F(_0x38fc01,_0x5ed084=!0x0){const _0x2c0f70=new gt();return _0x2c0f70['rootName']=_0x38fc01,_0x2c0f70['_isAttached']=_0x5ed084,_0x2c0f70['isAttached']=()=>_0x2c0f70['_isAttached'],_0x2c0f70;}function B(_0x461183,_0x548554,_0x3cefa7){const _0x1c6d62='elementEnd'==_0x461183['type']?_0x3cefa7['createPositionAt'](_0x461183['item'],'end'):_0x3cefa7['createPositionBefore'](_0x461183['item']);return _0x3cefa7['createPositionFromPath'](_0x548554,_0x1c6d62['path'],_0x1c6d62['stickiness']);}function J(_0x42e0ea,_0x20d47f,_0x3e3c48){const _0x5f3b65='elementStart'==_0x42e0ea['type']?_0x3e3c48['createPositionAt'](_0x42e0ea['item'],0x0):_0x3e3c48['createPositionAfter'](_0x42e0ea['item']);return _0x3e3c48['createPositionFromPath'](_0x20d47f,_0x5f3b65['path'],_0x5f3b65['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3374f5,_0xf471fd){super(_0x3374f5),this['focusTracker']=new _0x1d836e(),this['keystrokes']=new _0x453d05(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xf471fd),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x219dee(this);}['render'](){super['render'](),_0x223a7a({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x517328=_0x2c9b4d=>_0x2c9b4d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x517328),this['keystrokes']['set']('arrowleft',_0x517328),this['keystrokes']['set']('arrowup',_0x517328),this['keystrokes']['set']('arrowdown',_0x517328);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1156dc){this['revisionNameInputView']['fieldView']['element']['value']=_0x1156dc['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x23debb){const _0xd72a84=new _0x5c04f4(this['locale'],_0x279764),_0x9038f3=_0xd72a84['fieldView'];_0x9038f3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x372bbc=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x23debb&&(_0x372bbc+='\x20('+m(this['locale'],'optional')+')'),(_0xd72a84['label']=_0x372bbc,_0x9038f3['on']('input',()=>{this['revisionNameInputValue']=_0x9038f3['element']['value']['trim']();}),_0xd72a84);}}class f extends _0x4191c7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x2a8499=this['editor'],_0x3532a0=_0x2a8499['plugins']['get']('RevisionTracker');_0x2a8499['ui']['componentFactory']['add']('revisionHistory',_0x2548cd=>{const _0x15e636=_0x3f5931(_0x2548cd),_0x530eb5=_0x15e636['panelView']['children'],_0x17adea=new _0x431ea9(_0x2548cd),_0x14d41d=new _0x2cbd7e(_0x2548cd),_0x18ee92=new te(_0x2548cd),_0x361457=new _0x2cbd7e(_0x2548cd),_0x164e2a=new te(_0x2548cd);return _0x15e636['bind']('isEnabled')['to'](_0x3532a0,'isReady',_0x3532a0,'isEnabled',_0x2a8499,'isReadOnly',(_0x4e3b11,_0x3bef84,_0x459095)=>_0x4e3b11&&_0x3bef84&&!_0x459095),_0x15e636['buttonView']['set']({'icon':_0x3543e9,'label':m(_0x2548cd,'Revision\x20history'),'tooltip':!0x0}),_0x18ee92['set']({'label':m(_0x2548cd,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x18ee92['bind']('isEnabled')['to'](_0x3532a0,'isReady',_0x3532a0,'isEnabled',_0x2a8499,'isReadOnly',(_0x59faa3,_0x3e8463,_0x24816a)=>_0x59faa3&&_0x3e8463&&!_0x24816a),_0x18ee92['on']('execute',()=>this['_showDialog']()),_0x164e2a['set']({'label':m(_0x2548cd,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x164e2a['bind']('isEnabled')['to'](_0x3532a0,'isReady',_0x2a8499,'isReadOnly',(_0x69f8a0,_0x519348)=>_0x69f8a0&&!_0x519348),_0x164e2a['on']('execute',()=>{_0x2a8499['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x15e636['isOpen']=!0x1,_0x2a8499['editing']['view']['focus']();}),_0x14d41d['children']['add'](_0x18ee92),_0x361457['children']['add'](_0x164e2a),_0x17adea['role']='menu',_0x17adea['items']['addMany']([_0x14d41d,_0x361457]),_0x530eb5['add'](_0x17adea),_0x15e636;}),_0x2a8499['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1c6ba8=this['editor'],_0x357538=_0x1c6ba8['locale'],_0x3225a7=new _0x35c560(_0x357538),_0x33ddfa=new _0x1e5aad(_0x357538);_0x3225a7['buttonView']['set']({'icon':_0x3543e9,'label':m(_0x357538,'Revision\x20history')});const _0x2b311b=new _0x3f5f57(_0x357538,_0x3225a7),_0x42176c=new _0x4f6d9f(_0x357538);_0x42176c['set']({'label':m(_0x357538,'Save\x20current\x20revision')}),_0x42176c['delegate']('execute')['to'](_0x3225a7),_0x42176c['on']('execute',()=>{this['_showDialog']();}),_0x2b311b['children']['add'](_0x42176c),_0x33ddfa['items']['add'](_0x2b311b);const _0x4f1fdc=new _0x3f5f57(_0x357538,_0x3225a7),_0x1349ed=new _0x4f6d9f(_0x357538);return _0x1349ed['set']({'label':m(_0x357538,'Open\x20revision\x20history')}),_0x1349ed['delegate']('execute')['to'](_0x3225a7),_0x1349ed['on']('execute',()=>{_0x1c6ba8['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4f1fdc['children']['add'](_0x1349ed),_0x33ddfa['items']['add'](_0x4f1fdc),_0x3225a7['panelView']['children']['add'](_0x33ddfa),_0x3225a7;}['_showDialog'](){const _0x45f1c8=this['editor'],_0x16a2b4=_0x45f1c8['locale'],_0x5edf76=_0x45f1c8['plugins']['get']('Dialog'),_0x57aa19=_0x45f1c8['plugins']['get']('RevisionTracker');function _0x106684(_0x25e72c){_0x45f1c8['config']['get']('revisionHistory.requireRevisionName')&&''===_0x25e72c['revisionName']?_0x25e72c['revisionNameInputView']['errorText']=m(_0x16a2b4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x45f1c8['plugins']['get'](u)['saveRevision']({'name':_0x25e72c['revisionName']}),_0x5edf76['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x106684(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x5edf76['show']({'id':'revisionSave','title':m(_0x16a2b4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x45f1c8['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x5edf76['hide']()},{'label':m(_0x45f1c8['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x3028e4){_0x3028e4['bind']('isEnabled')['to'](_0x57aa19,'isReady',_0x57aa19,'isEnabled',_0x45f1c8,'isReadOnly',(_0x5f2ff6,_0x2ccaa6,_0xb89ec)=>_0x5f2ff6&&_0x2ccaa6&&!_0xb89ec);},'onExecute':()=>_0x106684(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x289083=this['editor'],_0x34005f=_0x289083['locale'];this['_saveRevisionFormView']=new hs(_0x34005f,_0x289083['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x341a82,_0x2f41ab){super(_0x341a82),this['_model']=_0x2f41ab,this['changeId']=_0x2f41ab['id'];const _0x3a9b55=this['bindTemplate'],_0x158a04=m(_0x341a82,_0x2f41ab['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2f41ab['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2f41ab['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3a9b55['to']('type',_0x3c88ce=>'ck-revision-change__'+_0x3c88ce)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x158a04}]},{'text':'\x20'+_0x2f41ab['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x390d75(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1a41f6){super(),this['id']=_0x1a41f6['id']||_0x54786b(),this['author']=_0x1a41f6['author'],this['type']=_0x1a41f6['type'],this['data']=_0x1a41f6['data']||{},this['rootName']=_0x1a41f6['rootName'],this['set']('createdAt',_0x1a41f6['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(_0x2acbc6,_0x298c88){this['newRevisionId']=_0x2acbc6,this['oldRevisionId']=_0x298c88,this['changes']=new _0x56de22();}['_setChanges'](_0x4321e7){for(const _0x410fce of _0x4321e7)this['changes']['add'](_0x410fce);}}const Y={'c':_0x3c80e1,'a':_0xaae474,'e':_0x7935d9,'r':_0x32ef1d,'u':_0x5f3dba};class d extends _0x4191c7{['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[_0x47cbd6,_0x2fb9a1,j];}constructor(_0x30d8a8){super(_0x30d8a8),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',(_0x1388f2,_0x3ba3cf,_0x4f0673)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x170487=>{for(const _0x5e7627 of this['editor']['editing']['view']['document']['roots'])_0x4f0673?_0x170487['removeClass']('ck-editor__editable__overlay',_0x5e7627):_0x170487['addClass']('ck-editor__editable__overlay',_0x5e7627);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2c541a=>null!==_0x2c541a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xd815f4,_0x586616,_0x59e5ca)=>_0xd815f4&&_0x59e5ca?_0x586616['changes']['getIndex'](_0x59e5ca):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x19b9b4,_0x9c877a)=>_0x19b9b4?_0x9c877a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x2fb9a1);}['init'](){const _0x8f8656=this['editor'],_0x40641d=new _t(_0x8f8656,{'direction':'backward'}),_0x43ee34=new _t(_0x8f8656,{'direction':'forward'});(_0x8f8656['commands']['add']('showPreviousChange',_0x40641d),_0x8f8656['commands']['add']('showNextChange',_0x43ee34),_0x8f8656['commands']['add']('restoreRevision',new wt(_0x8f8656)),this['on']('change:numberOfChanges',()=>{_0x40641d['refresh'](),_0x43ee34['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x8f8656['enableReadOnlyMode']('revision-viewer'),_0x8f8656['plugins']['has']('WidgetToolbarRepository'))&&_0x8f8656['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x4b108c){await this['loadRevisionData'](_0x4b108c);const _0xf437f4={};for(const _0x2f1c3f in _0x4b108c['diffData']){if(_0x4b108c['diffData'][_0x2f1c3f]['attachChange']&&!_0x4b108c['diffData'][_0x2f1c3f]['attachChange']['isAttached'])continue;const _0x4c506a=this['_removeRevisionMarkers'](JSON['parse'](_0x4b108c['diffData'][_0x2f1c3f]['insertions'])),_0x2b349f=this['editor']['editing']['view']['document'],_0x1bff29=new _0x9afee9(_0x2b349f,_0x4c506a['map'](_0x5a1e8a=>this['_getViewObj'](_0x5a1e8a)));this['editor']['data']['processor']['useFillerType']('marked'),_0xf437f4[_0x2f1c3f]=this['editor']['data']['processor']['toData'](_0x1bff29),this['editor']['data']['processor']['useFillerType']('default');}return _0xf437f4;}async['getRevisionRootsAttributes'](_0x370d83){await this['loadRevisionData'](_0x370d83);const _0x1e2942={};for(const _0x36de9c in _0x370d83['diffData'])_0x370d83['diffData'][_0x36de9c]['attachChange']&&!_0x370d83['diffData'][_0x36de9c]['attachChange']['isAttached']||(_0x1e2942[_0x36de9c]=_0x370d83['diffData'][_0x36de9c]['attributesAfter']||{});return _0x1e2942;}['_removeRevisionMarkers'](_0xc84205){return(_0xc84205=_0xc84205['filter'](_0x1d90a5=>!_0x1d90a5['name']||'revision-start'!==_0x1d90a5['name']&&'revision-end'!==_0x1d90a5['name']))['forEach'](_0x28e372=>{'string'!=typeof _0x28e372&&(_0x28e372['children']=this['_removeRevisionMarkers'](_0x28e372['children']),_0x28e372['attributes']=_0x28e372['attributes']['filter'](_0x158b43=>!_0x158b43[0x0]['startsWith']('data-revision-')));}),_0xc84205;}async['compare'](_0x3a803d,_0xbc14fe,_0xa47182=!0x1){if(!this['isEnabled'])return;const _0x1b1bbe=this['diff'],_0x3f0269=this['repository'],_0x533080='string'==typeof _0x3a803d?_0x3f0269['getRevision'](_0x3a803d):_0x3a803d,_0x3a65ed='string'==typeof _0xbc14fe?_0x3f0269['getRevision'](_0xbc14fe):_0xbc14fe,_0x5abb0a=_0x533080['id'],_0x2ccda7=_0x3a65ed?_0x3a65ed['id']:null;if(!_0xa47182&&this['diff']&&this['diff']['newRevisionId']===_0x5abb0a&&this['diff']['oldRevisionId']===_0x2ccda7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5abb0a,_0x2ccda7);const _0x16012c=this['_getRevisionsRange'](_0x533080,_0x3a65ed,!0x0)['map'](_0x30fd74=>this['loadRevisionData'](_0x30fd74));return _0x16012c['push'](new Promise(_0x2be536=>{setTimeout(_0x2be536,0x14);})),Promise['all'](_0x16012c)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x373b53=this['_getDiff'](_0x5abb0a,_0x2ccda7);for(const _0x54c3c5 of _0x373b53['changes'])this['_changeIdToChange']['set'](_0x54c3c5['id'],_0x54c3c5);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x5c44a8=>{for(const _0x307281 of this['editor']['model']['document']['getRootNames']())_0x5c44a8['detachRoot'](_0x307281);for(const _0x5a537e of Object['keys'](_0x373b53['model'])){const _0x3ebe88=_0x5c44a8['addRoot'](_0x5a537e);for(const _0x19e86b of Object['keys'](_0x373b53['attributes'][_0x5a537e]))_0x5c44a8['setAttribute'](_0x19e86b,_0x373b53['attributes'][_0x5a537e][_0x19e86b],_0x3ebe88);_0x5c44a8['insert'](_0x373b53['model'][_0x5a537e],_0x3ebe88,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x373b53['changes'])),this['isReady']=!0x0;})['catch'](_0x28992a=>{console['error'](_0x28992a),this['_cleanUp'](),_0x1b1bbe&&(this['diff']=_0x1b1bbe),this['isReady']=!0x0;});}['addRevisionData'](_0x4d9157,_0x3aab47){const _0xbdfef6=this['repository']['createRevision'](_0x4d9157);return _0xbdfef6['on']('_update',(_0x4ed141,_0x51abfe,_0x1e847a)=>_0x3aab47(_0x51abfe,_0x1e847a,_0xbdfef6)),this['repository']['addRevision'](_0xbdfef6),_0xbdfef6;}['loadRevisionData'](_0x4f199f){if(!_0x4f199f||_0x4f199f['diffData'])return Promise['resolve']();{const _0x576395=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x576395,'revisionId':_0x4f199f['id']})['then'](_0xfb704b=>{_0x4f199f['_update']({'diffData':_0xfb704b['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},_0x28eeb7=>{for(const _0xa0e1df of this['editor']['model']['document']['getRootNames']())_0x28eeb7['detachRoot'](_0xa0e1df);});}['_sortAndFilterDiffChanges'](_0x3f7db2){const _0xaf3e4=[],_0x1eda81=new Map();for(const _0x1fe5e9 of this['editor']['model']['document']['getRootNames']()){const _0x21c73a=this['editor']['editing']['view']['getDomRoot'](_0x1fe5e9);if(!_0x21c73a)continue;const _0x3828dc=_0x21c73a['getClientRects']()['item'](0x0);_0x3828dc&&(_0xaf3e4['push'](_0x1fe5e9),_0x1eda81['set'](_0x1fe5e9,_0x3828dc));}return _0xaf3e4['sort']((_0x162db3,_0x151f21)=>{const _0x15e586=_0x1eda81['get'](_0x162db3),_0x36a864=_0x1eda81['get'](_0x151f21);return _0x15e586['y']-_0x36a864['y']||_0x15e586['x']-_0x36a864['x'];}),(_0x3f7db2=_0x3f7db2['filter'](_0x255b6f=>_0xaf3e4['includes'](_0x255b6f['rootName'])))['sort']((_0x2d305a,_0x4db620)=>_0xaf3e4['indexOf'](_0x2d305a['rootName'])-_0xaf3e4['indexOf'](_0x4db620['rootName'])),_0x3f7db2;}['_makeTape'](_0x3cf3ec){const _0xa08dc=Array['from'](_0x3cf3ec['markers'])['filter'](([_0x17713b,_0xde44e7])=>_0x17713b['startsWith']('revision:')&&!_0xde44e7['isCollapsed']),_0x4b4ae7=Array['from'](this['editor']['model']['createRangeIn'](_0x3cf3ec)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0xa08dc['length'])for(const _0x4469fe of _0x4b4ae7){const [_0x3b023d,_0x48aab2]=_0xa08dc[0x0],[,_0x4c54f0,_0x54c583]=_0x3b023d['split'](':');if(_0x48aab2['end']['isEqual'](_0x4469fe['nextPosition'])&&_0xa08dc['shift'](),(_0x4469fe['previousPosition']['isEqual'](_0x48aab2['start'])||_0x4469fe['previousPosition']['isAfter'](_0x48aab2['start']))&&('insertion'==_0x4c54f0?_0x4469fe['isAdded']={'userId':_0x54c583}:'deletion'==_0x4c54f0&&(_0x4469fe['isRemoved']={'userId':_0x54c583})),0x0==_0xa08dc['length'])break;}return _0x4b4ae7;}['_refreshStartEndIndex'](_0x4a0b9d){const _0x54ab0f=new Map();for(let _0x43e5e3=0x0;_0x43e5e3<_0x4a0b9d['length'];_0x43e5e3++)'text'===_0x4a0b9d[_0x43e5e3]['type']?(_0x4a0b9d[_0x43e5e3]['item']['startIndex']=_0x43e5e3,_0x4a0b9d[_0x43e5e3]['item']['endIndex']=_0x43e5e3):('elementStart'===_0x4a0b9d[_0x43e5e3]['type']?_0x4a0b9d[_0x43e5e3]['item']['startIndex']=_0x43e5e3:'elementEnd'===_0x4a0b9d[_0x43e5e3]['type']&&(_0x4a0b9d[_0x43e5e3]['item']['endIndex']=_0x43e5e3),_0x54ab0f['set'](_0x4a0b9d[_0x43e5e3]['id'],_0x43e5e3));for(const _0x54ec14 of _0x54ab0f['values']())'elementStart'===_0x4a0b9d[_0x54ec14]['type']?_0x4a0b9d[_0x54ec14]['item']['endIndex']=_0x54ab0f['get'](_0x4a0b9d[_0x54ec14]['pairId']):'elementEnd'===_0x4a0b9d[_0x54ec14]['type']&&(_0x4a0b9d[_0x54ec14]['item']['startIndex']=_0x54ab0f['get'](_0x4a0b9d[_0x54ec14]['pairId']));}['_processTape'](_0x1f0ee6){for(let _0x15dee1=0x0;_0x15dee1<_0x1f0ee6['length'];_0x15dee1++){if('elementStart'===_0x1f0ee6[_0x15dee1]['type'])_0x1f0ee6[_0x15dee1]['item']['startIndex']=_0x15dee1;else{if('elementEnd'===_0x1f0ee6[_0x15dee1]['type']){_0x1f0ee6[_0x15dee1]['item']['endIndex']=_0x15dee1;const _0x5e8188=_0x1f0ee6[_0x15dee1]['item']['startIndex'];_0x1f0ee6[_0x5e8188]['pairId']=_0x1f0ee6[_0x15dee1]['id'],_0x1f0ee6[_0x15dee1]['pairId']=_0x1f0ee6[_0x5e8188]['id'];}else _0x1f0ee6[_0x15dee1]['item']['startIndex']=_0x15dee1,_0x1f0ee6[_0x15dee1]['item']['endIndex']=_0x15dee1,_0x1f0ee6[_0x15dee1]['pairId']=null;}_0x1f0ee6[_0x15dee1]['markersStart']||(_0x1f0ee6[_0x15dee1]['markersStart']=[],_0x1f0ee6[_0x15dee1]['markersEnd']=[]);}}['_markInsertions'](_0x5d44b1,_0x29f6e8){const _0x263657=_0x5d44b1['filter'](_0xb35b93=>!_0xb35b93['isAdded']);for(let _0x5b6658=0x0;_0x5b6658<_0x29f6e8['length'];_0x5b6658++)_0x29f6e8[_0x5b6658]['isAdded']&&(_0x263657[_0x5b6658]['isAdded']=_0x29f6e8[_0x5b6658]['isAdded']);}['_makeModelFromViewString'](_0x4db7d6){const _0x46b170=JSON['parse'](_0x4db7d6),_0x4565ee=this['editor']['editing']['view']['document'],_0x515bdf=new _0x9afee9(_0x4565ee,_0x46b170['map'](_0x1d1dc6=>this['_getViewObj'](_0x1d1dc6)));return this['editor']['data']['toModel'](_0x515bdf);}['_getViewObj'](_0x572958){const _0x5521e3=this['editor']['editing']['view']['document'];if('string'==typeof _0x572958)return new _0x101a1b(_0x5521e3,_0x572958);{const _0x2b01a6=_0x572958['children']['map'](_0x345ee8=>this['_getViewObj'](_0x345ee8));return new(Y[_0x572958['type']]||_0x15b19e)(_0x5521e3,_0x572958['name'],_0x572958['attributes'],_0x2b01a6);}}['_getDiff'](_0x3ba309,_0x1109ee=null){const _0x4fa401=this['repository']['getRevision'](_0x3ba309),_0x3f072e=_0x1109ee?this['repository']['getRevision'](_0x1109ee):null,_0x3d5b71=this['_getRevisionsRange'](_0x4fa401,_0x3f072e),_0x3c8fd1=_0x3d5b71[_0x3d5b71['length']-0x1],_0x1bd8f3=new Map(),_0x5ef57f={'model':{},'attributes':{},'changes':[]},_0x5dd265=new Set(),_0x2e9cbb=new Map();for(let _0x511592=_0x3d5b71['length']-0x1;_0x511592>=0x0;_0x511592--){const _0x33d478=_0x3d5b71[_0x511592];for(const _0x158824 of Object['keys'](_0x33d478['diffData']))if(_0x33d478['diffData'][_0x158824]['attachChange']){const _0x2c58f8=_0x33d478['diffData'][_0x158824]['attachChange'];_0x2c58f8['isAttached']?(_0x5dd265['add'](_0x158824),_0x2e9cbb['has'](_0x158824)&&_0x2e9cbb['get'](_0x158824)['userId']==_0x2c58f8['userId']?_0x2e9cbb['delete'](_0x158824):_0x2e9cbb['set'](_0x158824,_0x2c58f8)):_0x2e9cbb['has'](_0x158824)?(_0x5dd265['delete'](_0x158824),_0x2e9cbb['delete'](_0x158824)):(_0x5dd265['add'](_0x158824),_0x2e9cbb['set'](_0x158824,_0x2c58f8));}else _0x5dd265['add'](_0x158824);}for(const _0x4d8942 of _0x5dd265){const _0x4a224c=_0x2e9cbb['has'](_0x4d8942)&&!_0x2e9cbb['get'](_0x4d8942)['isAttached'];let _0x561b4b=_0x4a224c?_0x3d5b71['length']-0x1:0x0;const _0x462d27=_0x4a224c?-0x1:0x1;for(;_0x3d5b71[_0x561b4b];){const _0x5e27db=_0x3d5b71[_0x561b4b];if(_0x5e27db['diffData'][_0x4d8942]){const _0x7354b3=_0x4a224c?_0x5e27db['diffData'][_0x4d8942]['attributesBefore']:_0x5e27db['diffData'][_0x4d8942]['attributesAfter'];_0x5ef57f['attributes'][_0x4d8942]=_0x7354b3?_0x5b5f9d(_0x7354b3):{};break;}_0x561b4b+=_0x462d27;}}for(const _0x92306c of _0x3d5b71){_0x92306c['model']={};for(const _0x5535d0 of _0x92306c['authors'])_0x1bd8f3['set'](_0x5535d0['id'],_0x5535d0);for(const _0x343b66 of _0x5dd265){const _0x1b4dbb=_0x92306c['diffData'][_0x343b66]?_0x92306c['diffData'][_0x343b66]['insertions']:'[]',_0x56fb75=_0x92306c['diffData'][_0x343b66]?_0x92306c['diffData'][_0x343b66]['deletions']:'[]';_0x92306c['model'][_0x343b66]={'insertions':this['_makeModelFromViewString'](_0x1b4dbb),'deletions':this['_makeModelFromViewString'](_0x56fb75)};}}for(const _0x3b618a of _0x5dd265){let _0x4bedba=null,_0x33e147=0x0;const _0x18157e=new Map(Array['from'](_0x4fa401['model'][_0x3b618a]['insertions']['markers'])['filter'](([_0x4869e2])=>!_0x4869e2['startsWith']('revision:')));let _0x6dd562=0x0;for(const _0x482877 of _0x3d5b71){const _0x2e6c07=this['_makeTape'](_0x482877['model'][_0x3b618a]['insertions']);_0x482877==_0x4fa401?(_0x4bedba=_0x2e6c07,_0x33e147=_0x4bedba['length'],_0x4bedba['forEach'](_0x15b3a5=>{_0x15b3a5['id']=_0x6dd562++;}),this['_processTape'](_0x4bedba)):this['_markInsertions'](_0x4bedba,_0x2e6c07);const _0xe1116f=_0x4bedba['filter'](_0xf0071e=>!_0xf0071e['isAdded'])['map'](_0x3806d3=>_0x3806d3['id']);let _0x1468fa=0x0;const _0x31b226=this['_makeTape'](_0x482877['model'][_0x3b618a]['deletions']);_0x31b226['forEach'](_0x55f6b1=>{_0x55f6b1['isRemoved']?_0x55f6b1['id']=_0x33e147++:_0x55f6b1['id']=_0xe1116f[_0x1468fa++];}),this['_processTape'](_0x31b226),this['_setDistance'](_0x4bedba,'isAdded'),this['_setDistance'](_0x31b226,'isRemoved'),_0x482877==_0x4fa401&&this['_markMarkers'](_0x4bedba,_0x18157e),_0x4bedba=this['_joinTapes'](_0x4bedba,_0x31b226),this['_refreshStartEndIndex'](_0x4bedba),this['_setDistance'](_0x4bedba,'isRemoved');}_0x4bedba=_0x4bedba['filter'](_0x1ad1e1=>!(_0x1ad1e1['isAdded']&&_0x1ad1e1['isRemoved']));const _0x3bce00=new Map(_0x3c8fd1['model'][_0x3b618a]['deletions']['markers']),_0x519da9=new Set(_0x18157e['keys']());for(const _0x7d55ea of _0x3bce00['keys']())_0x519da9['delete'](_0x7d55ea);this['_markSuggestions'](_0x4bedba,_0x519da9),this['_fixObsoleteTags'](_0x4bedba),_0x4bedba=this['_removeMissingPairs'](_0x4bedba),_0x4bedba=this['_markMismatchedRemovedTags'](_0x4bedba),_0x4bedba=this['_removeUnsupportedChanges'](_0x4bedba);const {root:_0x464d11,changes:_0x502d07}=this['_makeModelFromTape'](_0x4bedba,_0x1bd8f3,_0x3b618a);_0x5ef57f['model'][_0x3b618a]=_0x464d11;const _0x5333a5=_0x2e9cbb['get'](_0x3b618a);if(_0x5333a5){const _0x414eca=_0x1bd8f3['get'](_0x5333a5['userId']),_0x3931cc=new r({'author':_0x414eca,'type':_0x5333a5['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3b618a});_0x502d07['unshift'](_0x3931cc),_0x5ef57f['attributes'][_0x3b618a]['revisionHistoryAttachChange']=_0x3931cc['id'];}_0x5ef57f['changes']=_0x5ef57f['changes']['concat'](_0x502d07);}return _0x5ef57f;}['_markMarkers'](_0x5f266c,_0x17efbb){for(let _0x80437f=0x0;_0x80437f<_0x5f266c['length'];_0x80437f++)for(const [_0x42e280,_0x19429f]of _0x17efbb)_0x19429f['start']['isEqual'](_0x5f266c[_0x80437f]['previousPosition'])&&_0x5f266c[_0x80437f]['markersStart']['push'](_0x42e280),_0x19429f['end']['isEqual'](_0x5f266c[_0x80437f]['nextPosition'])&&_0x5f266c[_0x80437f]['markersEnd']['push'](_0x42e280);}['_joinTapes'](_0x573401,_0x3826da){let _0x57b724=[],_0x547a70=0x0,_0x21f2c7=0x0;for(;_0x547a70<_0x573401['length']||_0x21f2c7<_0x3826da['length'];){const _0x17250a=_0x573401[_0x547a70]||{},_0x3c3f65=_0x3826da[_0x21f2c7]||{};if(_0x17250a['id']==_0x3c3f65['id'])_0x547a70++,_0x21f2c7++,_0x57b724['push'](_0x17250a);else{if(_0x3c3f65['isRemoved']&&_0x17250a['isAdded']){const {commonTape:_0x1718cb,iEnd:_0x1ef61a,jEnd:_0x215eac}=this['_threeWayMerge'](_0x573401,_0x547a70,_0x3826da,_0x21f2c7);_0x57b724=_0x57b724['concat'](_0x1718cb),_0x547a70=_0x1ef61a,_0x21f2c7=_0x215eac;}else _0x3c3f65['isRemoved']?(_0x21f2c7++,_0x57b724['push'](_0x3c3f65)):(_0x547a70++,_0x57b724['push'](_0x17250a));}}return _0x57b724;}['_markSuggestions'](_0x4689a2,_0x381c28){const _0x1c8531=[];for(let _0x2fce85=0x0;_0x2fce85<_0x4689a2['length'];_0x2fce85++){for(let _0x263497=0x0;_0x263497<_0x4689a2[_0x2fce85]['markersStart']['length'];_0x263497++){const _0x38fde1=_0x4689a2[_0x2fce85]['markersStart'][_0x263497];if(!_0x381c28['has'](_0x38fde1))continue;const {group:_0x3d718f,type:_0x48778e,authorId:_0x5a200b}=_0xa7b4e7(_0x38fde1);'revision-suggestion'!=_0x3d718f||'insertion'!=_0x48778e&&'deletion'!=_0x48778e||(_0x1c8531['unshift']({'type':_0x48778e,'name':_0x38fde1,'userId':_0x5a200b}),_0x4689a2[_0x2fce85]['markersStart']['splice'](_0x263497,0x1),_0x263497--);}_0x264008(_0x4689a2[_0x2fce85]);for(let _0x35fa20=0x0;_0x35fa20<_0x4689a2[_0x2fce85]['markersEnd']['length'];_0x35fa20++){const _0x5eb5d1=_0x4689a2[_0x2fce85]['markersEnd'][_0x35fa20];if(!_0x381c28['has'](_0x5eb5d1))continue;const {group:_0x2d8d77,type:_0x19d69a}=_0xa7b4e7(_0x5eb5d1);if('revision-suggestion'!=_0x2d8d77||'insertion'!=_0x19d69a&&'deletion'!=_0x19d69a)continue;_0x4689a2[_0x2fce85]['markersEnd']['splice'](_0x35fa20,0x1),_0x35fa20--;const _0x1b01ad=_0x1c8531['findIndex'](_0x50784b=>_0x50784b['name']==_0x5eb5d1);_0x1b01ad>-0x1&&_0x1c8531['splice'](_0x1b01ad,0x1);}}function _0xa7b4e7(_0x9c2847){const _0x563490=_0x9c2847['split'](':');return{'group':_0x563490[0x0],'type':_0x563490[0x1],'subType':_0x563490['length']>=0x5?_0x563490[0x2]:null,'id':_0x563490['length']<0x5?_0x563490[0x2]:_0x563490[0x3],'authorId':_0x563490['length']<0x5?_0x563490[0x3]:_0x563490[0x4],'markerCount':0x6==_0x563490['length']?_0x563490[0x5]:null};}function _0x264008(_0x41102c){for(let _0x1d2996=0x0;_0x1d2996<_0x1c8531['length'];_0x1d2996++){if(_0x41102c['isAdded']&&'insertion'==_0x1c8531[_0x1d2996]['type'])return _0x41102c['isAddSuggestion']=_0x1c8531[_0x1d2996],void delete _0x41102c['isAdded'];if(!_0x41102c['isAdded']&&!_0x41102c['isRemoved']&&'deletion'==_0x1c8531[_0x1d2996]['type'])return void(_0x41102c['isRemoveSuggestion']=_0x1c8531[_0x1d2996]);}}}['_setDistance'](_0x4c3be1,_0x273116){let _0x3938ee=0x0,_0x46e59f=!0x1;const _0x54ff58=new Map();for(const _0x4daea1 of _0x4c3be1)_0x4daea1[_0x273116]?_0x46e59f&&(_0x3938ee++,_0x46e59f=!0x1):(_0x3938ee++,_0x46e59f=!0x0),_0x54ff58['set'](_0x4daea1['id'],_0x3938ee);for(let _0x5b6297=0x0;_0x5b6297<_0x4c3be1['length'];_0x5b6297++){if('isRemoved'==_0x273116&&_0x4c3be1[_0x5b6297]['isAdded']||'isAdded'==_0x273116&&_0x4c3be1[_0x5b6297]['isRemoved'])continue;if('text'==_0x4c3be1[_0x5b6297]['type']){_0x4c3be1[_0x5b6297]['distance']=0x0;continue;}const _0x232046=_0x54ff58['get'](_0x4c3be1[_0x5b6297]['pairId']),_0x521487=_0x54ff58['get'](_0x4c3be1[_0x5b6297]['id']);_0x4c3be1[_0x5b6297]['distance']=_0x232046-_0x521487;}}['_getRevisionsRange'](_0x120e72,_0xd1088d,_0x20635e=!0x1){const _0x36dfc6=[];let _0x1068cb=this['repository']['getIndex'](_0x120e72),_0x33ae1a=this['repository']['getIndex'](_0xd1088d);for(-0x1==_0x33ae1a&&(_0x33ae1a=this['repository']['_revisions']['length'],_0x20635e=!0x1);_0x1068cb<_0x33ae1a;)_0x36dfc6['push'](this['repository']['getRevision'](_0x1068cb)),_0x1068cb++;return _0x20635e&&_0x36dfc6['push'](this['repository']['getRevision'](_0x1068cb)),_0x36dfc6;}['_threeWayMerge'](_0x41aebb,_0xe8e253,_0x63c21b,_0x4015fa){const _0xda795=this['editor']['model']['schema'];let _0x2380c7=_0xe8e253;for(;_0x41aebb[_0x2380c7]&&_0x41aebb[_0x2380c7]['isAdded'];)_0x2380c7++;let _0x56940c=_0x4015fa;for(;_0x63c21b[_0x56940c]&&_0x63c21b[_0x56940c]['isRemoved'];)_0x56940c++;_0xaaed95(_0x41aebb,_0xe8e253,_0x2380c7),_0xaaed95(_0x63c21b,_0x4015fa,_0x56940c);const _0x69686c=_0x63c21b['slice'](_0x4015fa,_0x56940c)['concat'](_0x41aebb['slice'](_0xe8e253,_0x2380c7));return _0x69686c['sort']((_0xc2f3af,_0x5f2fc2)=>_0xc2f3af['side']!=_0x5f2fc2['side']?_0xc2f3af['side']-_0x5f2fc2['side']:_0xc2f3af['level']!=_0x5f2fc2['level']?_0xc2f3af['level']-_0x5f2fc2['level']:_0xc2f3af['distance']!=_0x5f2fc2['distance']?_0x5f2fc2['distance']-_0xc2f3af['distance']:!!_0xc2f3af['isAdded']!=!!_0x5f2fc2['isAdded']?-0x1==_0xc2f3af['side']||0x0==_0xc2f3af['side']?_0xc2f3af['isAdded']?-0x1:0x1:_0xc2f3af['isAdded']?0x1:-0x1:_0xc2f3af['index']-_0x5f2fc2['index']),{'commonTape':_0x69686c,'iEnd':_0x2380c7,'jEnd':_0x56940c};function _0xaaed95(_0x242643,_0x4cec6a,_0x3011b5){let _0x3eba50=-0x1,_0x314879=Number['POSITIVE_INFINITY'],_0x49d348=!0x0;for(let _0xaa65cd=_0x4cec6a;_0xaa65cd<_0x3011b5;_0xaa65cd++)if(_0xda795['isInline'](_0x242643[_0xaa65cd]['item'])||(_0x49d348=!0x1),_0x242643[_0xaa65cd]['item']['startIndex']<_0x4cec6a&&(_0x3eba50=_0xaa65cd),_0x242643[_0xaa65cd]['item']['endIndex']>=_0x3011b5){_0x314879=_0xaa65cd;break;}_0x49d348&&(_0x3eba50=_0x3011b5-0x1);for(let _0x5448cb=_0x4cec6a;_0x5448cb<_0x3011b5;_0x5448cb++)_0x242643[_0x5448cb]['side']=_0x5448cb<=_0x3eba50?-0x1:_0x5448cb<_0x314879?0x0:0x1,_0x242643[_0x5448cb]['index']=_0x5448cb;let _0x1add5a=0x0;for(let _0x4431ef=_0x4cec6a;_0x4431ef<=_0x3eba50;_0x4431ef++)0x0==_0x242643[_0x4431ef]['distance']?_0x242643[_0x4431ef]['level']=_0x1add5a:(_0x1add5a++,_0x242643[_0x4431ef]['level']=_0x1add5a,_0x1add5a++);for(let _0x513693=_0x4cec6a;_0x513693<_0x3011b5;_0x513693++)0x0==_0x242643[_0x513693]['side']&&(_0x242643[_0x513693]['level']=_0x1add5a);_0x1add5a=0x0;for(let _0x73bdf2=_0x3011b5-0x1;_0x73bdf2>=_0x314879;_0x73bdf2--)0x0==_0x242643[_0x73bdf2]['distance']?_0x242643[_0x73bdf2]['level']=_0x1add5a:(_0x1add5a--,_0x242643[_0x73bdf2]['level']=_0x1add5a,_0x1add5a--);}}['_fixObsoleteTags'](_0x2e1be5){const _0x66f1b1=new Map(),_0x1a0642=this['editor']['model']['schema'];for(let _0x151d74=0x1;_0x151d74<_0x2e1be5['length'];_0x151d74++){let _0x5f1ae5,_0x12d140,_0x110fc0;const _0x505d6d=_0x2e1be5[_0x151d74],_0x30743c=_0x2e1be5[_0x151d74-0x1];if('text'==_0x505d6d['type'])continue;if(_0x505d6d['type']!=_0x30743c['type'])continue;if(!_0x1a0642['isBlock'](_0x30743c['item'])||_0x1a0642['isLimit'](_0x30743c['item']))continue;if(!_0x1a0642['isBlock'](_0x505d6d['item'])||_0x1a0642['isLimit'](_0x505d6d['item']))continue;if((_0x2e1be5[_0x151d74]['isAdded']||_0x2e1be5[_0x151d74]['isAddSuggestion'])&&_0x2e1be5[_0x151d74-0x1]['isRemoved'])_0x5f1ae5=_0x2e1be5[_0x151d74],_0x12d140=_0x2e1be5[_0x151d74-0x1],_0x110fc0=_0x151d74-0x1;else{if(!_0x2e1be5[_0x151d74]['isRemoved']||!_0x2e1be5[_0x151d74-0x1]['isAdded']&&!_0x2e1be5[_0x151d74-0x1]['isAddSuggestion'])continue;_0x5f1ae5=_0x2e1be5[_0x151d74-0x1],_0x12d140=_0x2e1be5[_0x151d74],_0x110fc0=_0x151d74;}const _0x3da81d=_0x5f1ae5['level']==_0x12d140['level'],_0x4620db=Math['abs'](_0x5f1ae5['level'])<Math['abs'](_0x12d140['level'])&&0x0==_0x12d140['distance'];(_0x3da81d||_0x4620db)&&(_0x66f1b1['set'](_0x12d140['id'],_0x5f1ae5['id']),_0x2e1be5['splice'](_0x110fc0,0x1),_0x151d74--,_0x5f1ae5['isAdded']=!0x1);}for(let _0x5adf19=0x0;_0x5adf19<_0x2e1be5['length'];_0x5adf19++)_0x66f1b1['has'](_0x2e1be5[_0x5adf19]['pairId'])&&(_0x2e1be5[_0x5adf19]['pairId']=_0x66f1b1['get'](_0x2e1be5[_0x5adf19]['pairId']));}['_removeMissingPairs'](_0x28861b){const _0x53a0ac=new Set(_0x28861b['map'](_0x3a6eb7=>_0x3a6eb7['id']));for(let _0x2a536e=0x0;_0x2a536e<_0x28861b['length'];_0x2a536e++)_0x53a0ac['has'](_0x28861b[_0x2a536e]['pairId'])||0x0==_0x28861b[_0x2a536e]['distance']||(_0x28861b[_0x2a536e]['isIncorrect']=!0x0);return _0x28861b['filter'](_0x3bc853=>!_0x3bc853['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3660a4){const _0x3e38bf=new Set();for(let _0x21342b=0x0;_0x21342b<_0x3660a4['length'];_0x21342b++){if(_0x3e38bf['has'](_0x3660a4[_0x21342b]['id'])&&_0x3660a4[_0x21342b]['isRemoved']&&(_0x3660a4[_0x21342b]['isIncorrect']=!0x0),_0x3660a4[_0x21342b]['isIncorrect'])continue;if(0x0==_0x3660a4[_0x21342b]['distance'])continue;if('elementStart'!=_0x3660a4[_0x21342b]['type'])continue;if(null==_0x3660a4[_0x21342b]['pairId'])continue;let _0x167709=_0x21342b+0x1,_0x2c0b0d=0x0;for(;_0x3660a4[_0x167709]['id']!=_0x3660a4[_0x21342b]['pairId'];)'elementStart'==_0x3660a4[_0x167709]['type']?_0x2c0b0d++:'elementEnd'==_0x3660a4[_0x167709]['type']&&_0x2c0b0d--,_0x167709++;if(0x0!=_0x2c0b0d){if(_0x3660a4[_0x21342b]['isRemoved'])_0x3660a4[_0x21342b]['isIncorrect']=!0x0;else{for(;_0x167709!=_0x21342b;)_0x3660a4[_0x167709]['isRemoved']&&0x0!=_0x3660a4[_0x167709]['distance']&&(_0x3660a4[_0x167709]['isIncorrect']=!0x0,_0x3e38bf['add'](_0x3660a4[_0x167709]['pairId'])),_0x167709--;}}}return _0x3660a4['filter'](_0x45e146=>!_0x45e146['isIncorrect']);}['_removeUnsupportedChanges'](_0x1f11d5){const _0x4cff52=this['editor']['model']['schema'];for(let _0x7af6fe=0x0;_0x7af6fe<_0x1f11d5['length'];_0x7af6fe++){if(!(_0x1f11d5[_0x7af6fe]['isAdded']||_0x1f11d5[_0x7af6fe]['isAddSuggestion']||_0x1f11d5[_0x7af6fe]['isRemoved']||_0x1f11d5[_0x7af6fe]['isRemoveSuggestion']))continue;if(0x0==_0x1f11d5[_0x7af6fe]['distance'])continue;const _0x37f09f=_0x1f11d5[_0x7af6fe]['item'];_0x4cff52['isBlock'](_0x37f09f)||_0x4cff52['isLimit'](_0x37f09f)||(_0x1f11d5[_0x7af6fe]['isAdded']&&delete _0x1f11d5[_0x7af6fe]['isAdded'],_0x1f11d5[_0x7af6fe]['isAddSuggestion']&&delete _0x1f11d5[_0x7af6fe]['isAddSuggestion'],_0x1f11d5[_0x7af6fe]['isRemoveSuggestion']&&delete _0x1f11d5[_0x7af6fe]['isRemoveSuggestion'],_0x1f11d5[_0x7af6fe]['isRemoved']&&(_0x1f11d5[_0x7af6fe]['isIncorrect']=!0x0));}return _0x1f11d5['filter'](_0x19527b=>!_0x19527b['isIncorrect']);}['_makeModelFromTape'](_0x528c47,_0x5d986d,_0x1a7f23){const _0x30d880=new gt(),_0x4f191c=[],_0x462993=new Map(),_0x1da6e3=this['editor']['model'],_0x387613=_0x1da6e3['schema'],_0x1de8fe=[_0x30d880],_0xeed2eb={},_0x356f2e={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4a1de2=null;const _0x4cc7f1=[0x0];for(let _0x36f889=0x0;_0x36f889<_0x528c47['length'];_0x36f889++)if('elementStart'===_0x528c47[_0x36f889]['type']){_0x528c47[_0x36f889]['previousPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1);const _0x3f08e8=new ut(_0x528c47[_0x36f889]['item']['name'],_0x528c47[_0x36f889]['item']['getAttributes']());_0x1de8fe[0x0]['_appendChild'](_0x3f08e8),_0x4cc7f1['push'](0x0),_0x1de8fe['unshift'](_0x3f08e8),_0x528c47[_0x36f889]['nextPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1);}else'elementEnd'===_0x528c47[_0x36f889]['type']?(_0x1de8fe['shift'](),_0x528c47[_0x36f889]['previousPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1),_0x4cc7f1['pop'](),_0x4cc7f1[_0x4cc7f1['length']-0x1]++,_0x528c47[_0x36f889]['nextPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1)):(_0x528c47[_0x36f889]['previousPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1),_0x4a1de2?_0x4a1de2['_data']+=_0x528c47[_0x36f889]['item']['data']:_0x4a1de2=new mt(_0x528c47[_0x36f889]['item']['data'],_0x528c47[_0x36f889]['item']['getAttributes']()),_0x528c47[_0x36f889+0x1]&&'text'===_0x528c47[_0x36f889+0x1]['type']&&_0x4d9612(_0x4a1de2,_0x528c47[_0x36f889+0x1]['item'])||(_0x1de8fe[0x0]['_appendChild'](_0x4a1de2),_0x4a1de2=null),_0x4cc7f1[_0x4cc7f1['length']-0x1]+=_0x528c47[_0x36f889]['item']['offsetSize'],_0x528c47[_0x36f889]['nextPosition']=_0x1da6e3['createPositionFromPath'](_0x30d880,_0x4cc7f1));for(let _0x3c70ab=0x0;_0x3c70ab<_0x528c47['length'];_0x3c70ab++){const _0xf7202b=_0x528c47[_0x3c70ab]['previousPosition'],_0x32b06d=_0x528c47[_0x3c70ab]['nextPosition'];for(const _0x77e4d8 of _0x528c47[_0x3c70ab]['markersStart'])_0x462993['set'](_0x77e4d8,{'start':_0xf7202b,'end':null});_0x3d9a93('isRemoveSuggestion',_0x3c70ab,_0xf7202b,_0x32b06d),_0x3d9a93('isAddSuggestion',_0x3c70ab,_0xf7202b,_0x32b06d),_0x3d9a93('isRemoved',_0x3c70ab,_0xf7202b,_0x32b06d),_0x3d9a93('isAdded',_0x3c70ab,_0xf7202b,_0x32b06d);for(const _0x169c9c of _0x528c47[_0x3c70ab]['markersEnd']){_0x462993['get'](_0x169c9c)['end']=_0x32b06d;}}for(const [_0x2785d1,_0x50de12]of _0x462993){const _0xf99a0e=this['editor']['model']['createRange'](_0x50de12['start'],_0x50de12['end']);_0x30d880['markers']['set'](_0x2785d1,_0xf99a0e);}return _0x4f191c['sort']((_0xa8daef,_0x4a41db)=>{const _0x4a217e=_0x30d880['markers']['get']('revision:'+_0xa8daef['id']),_0x302d0f=_0x30d880['markers']['get']('revision:'+_0x4a41db['id']);return _0x4a217e['start']['isBefore'](_0x302d0f['start'])?-0x1:_0x4a217e['start']['isAfter'](_0x302d0f['start'])?0x1:_0x4a217e['end']['isBefore'](_0x302d0f['end'])?-0x1:_0x4a217e['end']['isAfter'](_0x302d0f['end'])?0x1:'add'===_0xa8daef['type']?-0x1:0x1;}),{'root':_0x30d880,'changes':_0x4f191c};function _0x3d9a93(_0xf27cba,_0x239265,_0x5383fe,_0x11d957){const _0x3b9026=!!_0x528c47[_0x239265][_0xf27cba],_0x2b058c=_0x3b9026?_0x528c47[_0x239265][_0xf27cba]['userId']:null,_0x48ec7a=_0x239265===_0x528c47['length']-0x1,_0x3b772f=_0x356f2e[_0xf27cba][0x0],_0x5a536f=_0x387613['isObject'](_0x528c47[_0x239265]['item']);!_0xeed2eb[_0xf27cba]&&_0x3b9026?_0xeed2eb[_0xf27cba]={'start':_0x5383fe,'tapeItem':_0x528c47[_0x239265],'userId':_0x2b058c,'type':_0xf27cba}:_0xeed2eb[_0xf27cba]&&!_0x3b9026?(_0xeed2eb[_0xf27cba]['end']=_0x5383fe,_0x3650a6(_0xeed2eb[_0xf27cba]),_0xeed2eb[_0xf27cba]=null):_0xeed2eb[_0xf27cba]&&_0x3b9026&&_0xeed2eb[_0xf27cba]['userId']!==_0x2b058c&&(_0xeed2eb[_0xf27cba]['end']=_0x5383fe,_0x3b772f&&_0x3b772f['userId']===_0xeed2eb[_0xf27cba]['userId']||_0x3650a6(_0xeed2eb[_0xf27cba]),_0xeed2eb[_0xf27cba]={'start':_0x5383fe,'tapeItem':_0x528c47[_0x239265],'userId':_0x2b058c,'type':_0xf27cba}),_0xeed2eb[_0xf27cba]&&_0x5a536f&&('elementStart'!==_0x528c47[_0x239265]['type']||_0x3b772f&&_0x3b772f['userId']===_0x2b058c||_0x356f2e[_0xf27cba]['unshift']({'userId':_0x2b058c,'object':_0x528c47[_0x239265]['item'],'change':_0xeed2eb[_0xf27cba]}),'elementEnd'===_0x528c47[_0x239265]['type']&&_0x3b772f&&_0x3b772f['object']===_0x528c47[_0x239265]['item']&&(_0x356f2e[_0xf27cba]['shift'](),_0xeed2eb[_0xf27cba]=_0x3b772f['change'])),_0xeed2eb[_0xf27cba]&&_0x48ec7a&&(_0xeed2eb[_0xf27cba]['end']=_0x11d957,_0x3650a6(_0xeed2eb[_0xf27cba]),_0xeed2eb[_0xf27cba]=null);}function _0x3650a6({start:_0xac721d,end:_0x566c49,tapeItem:_0x415e44,userId:_0x131aef,type:_0x5cb9b3}){const _0x535ed1=_0x415e44['item'],_0x8a899=_0x1da6e3['schema']['isBlock'](_0x535ed1)&&!_0x1da6e3['schema']['isLimit'](_0x535ed1),_0x4cf473=_0xac721d['nodeAfter']==_0x566c49['parent']&&_0x566c49['isAtStart'];if(_0x8a899&&_0x4cf473)return;const _0x4742fa=_0x1da6e3['createRange'](_0xac721d,_0x566c49),_0x3e2db4=_0x5d986d['get'](_0x131aef),_0x1ab249=new r({'author':_0x3e2db4,'type':'isAdded'==_0x5cb9b3||'isAddSuggestion'==_0x5cb9b3?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5cb9b3||'isRemoveSuggestion'==_0x5cb9b3},'createdAt':new Date(),'rootName':_0x1a7f23});_0x4f191c['push'](_0x1ab249),_0x30d880['markers']['set']('revision:'+_0x1ab249['id'],_0x4742fa);}function _0x4d9612(_0x322d3d,_0x36d1fe){const _0x77e358=_0x322d3d['getAttributes'](),_0x172275=_0x36d1fe['getAttributes']();for(const _0x48299f of _0x77e358){if(_0x48299f[0x1]!==_0x36d1fe['getAttribute'](_0x48299f[0x0]))return!0x1;_0x172275['next']();}return _0x172275['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x52659b=>{const _0xa2b3b4=_0x52659b['markerName']['split'](':')[0x1],_0x3175b8=this['_getChangeFromId'](_0xa2b3b4);if(!_0x3175b8)return null;const _0x4839ae='add'==_0x3175b8['type']?'insertion':'deletion',_0x817652=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4839ae];return _0x3175b8['data']['isSuggestion']&&_0x817652['push']('ck-suggestion-marker-'+_0x4839ae+'-new'),this['activeChange']==_0x3175b8&&_0x817652['push']('ck-suggestion-marker--active'),{'classes':_0x817652,'attributes':{'data-change-id':_0xa2b3b4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x39a84a=>{_0x39a84a['on']('element:pre',(_0x32df23,_0x44b54,_0x5deec1)=>{const _0x15ba2f=_0x44b54['viewItem']['getChild'](0x0);if(!_0x15ba2f||!_0x15ba2f['is']('element','code'))return;if(!_0x5deec1['consumable']['consume'](_0x15ba2f,{'attributes':['vid_start','vid_end']}))return;const _0x3e868b=_0x44b54['modelRange']['start']['nodeAfter'];_0x5deec1['writer']['setAttribute']('vid_start',_0x15ba2f['getAttribute']('vid_start'),_0x3e868b),_0x5deec1['writer']['setAttribute']('vid_end',_0x15ba2f['getAttribute']('vid_end'),_0x3e868b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x175739=>{_0x175739['on']('element',(_0x56591e,_0x5745d1,_0x5a504c)=>{if(!_0x5a504c['consumable']['consume'](_0x5745d1['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x5745d1['modelRange']['isCollapsed'])return;const _0x171cce=_0x5745d1['modelRange']['start']['nodeAfter'];_0x171cce['hasAttribute']('vid_start')||_0x171cce['hasAttribute']('vid')||(_0x5a504c['writer']['setAttribute']('vid_start',_0x5745d1['viewItem']['getAttribute']('vid_start'),_0x171cce),_0x5a504c['writer']['setAttribute']('vid_end',_0x5745d1['viewItem']['getAttribute']('vid_end'),_0x171cce));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x38bb7e=>_0x38bb7e['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x3743a8,[,_0x224407])=>{['vid_start','vid_end','vid']['includes'](_0x224407)&&(_0x3743a8['return']=!0x0,_0x3743a8['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x5814d7=>{_0x5814d7['on']('attribute:vid',(_0x29cb5d,_0x30754f,_0x3393f9)=>{if('\x20'!=_0x30754f['item']['data']||_0x30754f['item']['parent']['maxOffset']>0x1)return;if(!_0x3393f9['consumable']['consume'](_0x30754f['item'],_0x29cb5d['name']))return;const _0x5f57ee=_0x3393f9['writer'],_0x1941f7=_0x3393f9['mapper']['toViewRange'](_0x30754f['range']);_0x5f57ee['wrap'](_0x1941f7,_0x5f57ee['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1c8d16){const _0x53efe9=_0x1c8d16['plugins']['get']('RevisionViewer');return(_0x2abee7,_0x113063,_0x4c59ef)=>{const _0x18a886=_0x113063['markerName']['split'](':')[0x1],_0x2c8838=_0x53efe9['_getChangeFromId'](_0x18a886);if(!_0x2c8838)return null;const _0x457a18='add'==_0x2c8838['type']?'split':'merge';if(!_0x4c59ef['consumable']['test'](_0x113063['markerRange'],_0x2abee7['name']))return;const _0xd12964=_0x113063['markerRange']['getWalker'](),_0x547c90=_0x113063['markerRange']['start'],_0x5c597e=_0x1c8d16['model']['schema'];let _0x4a725d=null,_0x29ea34=null,_0x8647ce=!0x1,_0x3b3b=!0x1;for(const _0x54518b of _0xd12964){const _0x53ac12=_0x54518b['item'];_0x8647ce=_0x8647ce||_0x5c597e['isContent'](_0x53ac12);const _0x4f214a=_0x4c59ef['mapper']['toViewElement'](_0x53ac12);if(_0x4f214a&&_0x4f214a['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x54518b['type']&&(_0x5c597e['isBlock'](_0x53ac12)&&!_0x5c597e['isLimit'](_0x53ac12)&&(_0x53ac12['nextSibling']||_0x547c90['isAtEnd']?_0x4a725d&&_0x4a725d['parent']==_0x53ac12||(_0x4a725d=_0x53ac12,_0x3befd6(_0x54518b['previousPosition']),_0x3b3b=!0x0):_0x29ea34=_0x29ea34||_0x54518b['previousPosition']));}function _0x3befd6(_0x1b1094){const _0x38337d=_0x4c59ef['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x457a18}),_0x383c67=_0x4c59ef['mapper']['toViewPosition'](_0x1b1094);_0x2c8838['data']['isSuggestion']&&_0x4c59ef['writer']['addClass']('ck-suggestion-marker-'+_0x457a18+'-new',_0x38337d),_0x53efe9['activeChange']==_0x2c8838&&_0x4c59ef['writer']['addClass']('ck-suggestion-marker--active',_0x38337d),_0x4c59ef['writer']['insert'](_0x383c67,_0x38337d),_0x4c59ef['mapper']['bindElementToMarker'](_0x38337d,_0x113063['markerName']);}_0x8647ce||_0x3b3b||!_0x29ea34||_0x3befd6(_0x29ea34);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x53eeed,_0x2dcdd2,_0x20989b)=>{const _0x47e8e8=_0x20989b['mapper']['markerNameToElements'](_0x2dcdd2['markerName']);if(_0x47e8e8){for(const _0xee7bea of _0x47e8e8)(_0xee7bea['hasClass']('ck-suggestion-marker-split')||_0xee7bea['hasClass']('ck-suggestion-marker-merge'))&&(_0x20989b['mapper']['unbindElementFromMarkerName'](_0xee7bea,_0x2dcdd2['markerName']),_0x20989b['writer']['remove'](_0xee7bea));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x37c58c,_0xaedeec,_0x4ce456)=>{const _0x12772b=_0xaedeec['markerName']['split'](':')[0x1],_0xeb3c23=this['_getChangeFromId'](_0x12772b);if(!_0xeb3c23)return null;const _0x3d6cd9='add'==_0xeb3c23['type']?'split':'merge';if(_0x4ce456['consumable']['test'](_0xaedeec['markerRange'],_0x37c58c['name']))for(const _0x22adc4 of _0xaedeec['markerRange']['getItems']()){if(!_0x22adc4['is']('element','softBreak'))continue;const _0x514f17=_0x4ce456['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3d6cd9}),_0x2396c1=_0x4ce456['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x22adc4));_0xeb3c23['data']['isSuggestion']&&_0x4ce456['writer']['addClass']('ck-suggestion-marker-'+_0x3d6cd9+'-new',_0x514f17),this['activeChange']==_0xeb3c23&&_0x4ce456['writer']['addClass']('ck-suggestion-marker--active',_0x514f17),_0x4ce456['writer']['insert'](_0x2396c1,_0x514f17),_0x4ce456['mapper']['bindElementToMarker'](_0x514f17,_0xaedeec['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3cf9aa=>{for(const _0x3fe127 of this['editor']['model']['document']['getRootNames']()){const _0x4276fa=this['editor']['model']['document']['getRoot'](_0x3fe127),_0x6cae92=this['editor']['editing']['view']['document']['getRoot'](_0x3fe127);if(_0x6cae92){const _0x36376e=_0x4276fa['getAttribute']('revisionHistoryAttachChange');if(_0x3cf9aa['removeAttribute']('data-change-id',_0x6cae92),_0x3cf9aa['removeClass']('ck-revision-history-root-add',_0x6cae92),_0x3cf9aa['removeClass']('ck-revision-history-root-remove',_0x6cae92),_0x3cf9aa['removeClass']('ck-revision-history-root--active',_0x6cae92),_0x36376e){const _0x4a7120=this['_getChangeFromId'](_0x36376e);if(!_0x4a7120)return null;_0x3cf9aa['setAttribute']('data-change-id',_0x36376e,_0x6cae92),_0x3cf9aa['addClass']('ck-revision-history-root-'+_0x4a7120['type'],_0x6cae92),this['activeChange']==_0x4a7120&&_0x3cf9aa['addClass']('ck-revision-history-root--active',_0x6cae92);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x8814df=>'revision-comment:'+_0x8814df,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x15ab6a=>'revision-suggestion:'+_0x15ab6a,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x8f36e0=>({'name':'suggestion:'+_0x8f36e0,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4b25c6=>{const _0x32e457=_0x4b25c6['markerName']['split'](':')[0x1];return'insertion'!=_0x32e457&&'deletion'!=_0x32e457?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x32e457]};}}),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',(_0x15de1b,_0x160d12,_0x45045a)=>{const _0xdb5ce=_0x45045a['mapper']['markerNameToElements'](_0x160d12['markerName']);if(_0xdb5ce){for(const _0x2d9b76 of _0xdb5ce)_0x2d9b76['is']('uiElement')&&(_0x45045a['mapper']['unbindElementFromMarkerName'](_0x2d9b76,_0x160d12['markerName']),_0x45045a['writer']['remove'](_0x2d9b76));}},{'priority':'high'});}['_getChangeFromId'](_0x80721e){return this['_changeIdToChange']['get'](_0x80721e);}['_getViewForChange'](_0xf8f9cf){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0xf8f9cf),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2e8518,_0x55af10,_0x285580,_0x4e57aa)=>{_0x4e57aa&&this['_balloon']['remove'](_0x4e57aa),_0x285580&&(this['_balloon']['add']({'view':_0x285580,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x559232=this['editor']['editing'],_0x2d53c6=this['_getChangeFromId'](_0x285580['changeId']);let _0x5b70cd;if(_0x2d53c6['data']['isOnRoot']){const _0x4f67ff=_0x559232['view']['getDomRoot'](_0x2d53c6['rootName']);_0x5b70cd=Array['from'](_0x4f67ff['getClientRects']());}else{const _0x556211=this['editor']['model']['markers']['get']('revision:'+_0x285580['changeId']);_0x5b70cd=Array['from'](_0x559232['mapper']['markerNameToElements'](_0x556211['name']))['map'](_0x14500e=>_0x559232['view']['domConverter']['mapViewToDom'](_0x14500e))['map'](_0x92e42=>Array['from'](_0x92e42['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5b70cd[0x0];return _0x5b70cd['find'](_0x26ae8e=>_0x26ae8e['top']-0x3<=this['_activeViewTarget']['y']&&_0x26ae8e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x26ae8e['left']-0x3<=this['_activeViewTarget']['x']&&_0x26ae8e['right']+0x3>=this['_activeViewTarget']['x'])||_0x5b70cd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32e912,_0x2a60ea,_0x14e0ba,_0xfbdda1)=>{this['activeView']=_0x14e0ba?this['_getViewForChange'](_0x14e0ba):null,this['editor']['model']['change'](()=>{const _0x260c39=this['editor']['editing'];_0xfbdda1&&(_0xfbdda1['data']['isOnRoot']?_0x260c39['view']['change'](_0x51cad4=>{_0x51cad4['removeClass']('ck-revision-history-root--active',_0x260c39['view']['document']['getRoot'](_0xfbdda1['rootName']));}):_0x260c39['reconvertMarker']('revision:'+_0xfbdda1['id'])),_0x14e0ba&&(_0x14e0ba['data']['isOnRoot']?_0x260c39['view']['change'](_0x5ddd68=>{_0x5ddd68['addClass']('ck-revision-history-root--active',_0x260c39['view']['document']['getRoot'](_0x14e0ba['rootName']));}):_0x260c39['reconvertMarker']('revision:'+_0x14e0ba['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x44d483,_0x3d585b)=>{if(this['activeChange'])return;const _0x528ab8=this['_findChangeIdFromDomTarget'](_0x3d585b['target']),_0x298548=this['_changeIdToChange']['get'](_0x528ab8);_0x298548?(this['_activeViewTarget']={'x':_0x3d585b['domEvent']['x'],'y':_0x3d585b['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x298548)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2d987c,_0x390370)=>{const _0x315f01=this['_findChangeIdFromDomTarget'](_0x390370['target']),_0x154e01=this['_changeIdToChange']['get'](_0x315f01);_0x154e01?(this['_activeViewTarget']={'x':_0x390370['domEvent']['x'],'y':_0x390370['domEvent']['y']},_0x154e01===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x154e01):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5e9557){do{const _0x247a6f=_0x5e9557['getAttribute']('data-change-id');if(_0x247a6f)return _0x247a6f;_0x5e9557=_0x5e9557['parent'];}while(_0x5e9557);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5aa1a0=>{for(const _0x345557 of this['editor']['model']['markers'])_0x5aa1a0['removeMarker'](_0x345557);});}}function Z(_0x26c79f,_0x38eebc){return(_0x566333,_0x43624d,_0x5f1df0)=>{if(!_0x5f1df0['consumable']['test'](_0x43624d['markerRange'],_0x566333['name']))return;const _0xa11b63=_0x43624d['markerRange']['getWalker'](),_0x176bb5=_0x43624d['markerRange']['start'],_0x12852f=_0x26c79f['model']['schema'];let _0xa8f15d=null,_0x330240=null,_0x3e5596=!0x1,_0x5ee55c=!0x1;for(const _0x144a02 of _0xa11b63){const _0x35c4ae=_0x144a02['item'];_0x3e5596=_0x3e5596||_0x12852f['isContent'](_0x35c4ae);const _0x5475aa=_0x5f1df0['mapper']['toViewElement'](_0x35c4ae);if(_0x5475aa&&_0x5475aa['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x144a02['type']&&(_0x12852f['isBlock'](_0x35c4ae)&&!_0x12852f['isLimit'](_0x35c4ae)&&(_0x35c4ae['nextSibling']||_0x176bb5['isAtEnd']?_0xa8f15d&&_0xa8f15d['parent']==_0x35c4ae||(_0xa8f15d=_0x35c4ae,_0xf7592b(_0x144a02['previousPosition']),_0x5ee55c=!0x0):_0x330240=_0x330240||_0x144a02['previousPosition']));}function _0xf7592b(_0x30cc3b){const _0x523206=_0x5f1df0['mapper']['toViewPosition'](_0x30cc3b),_0xf5d683=_0x5f1df0['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x38eebc});_0x5f1df0['writer']['insert'](_0x523206,_0xf5d683),_0x5f1df0['mapper']['bindElementToMarker'](_0xf5d683,_0x43624d['markerName']);}_0x3e5596||_0x5ee55c||!_0x330240||_0xf7592b(_0x330240);};}class wt extends _0x44144e{constructor(_0xd9925c){super(_0xd9925c);const _0x1c8b45=_0xd9925c['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1c8b45,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1c8b45,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x48de89=this['editor'],_0x1cb9e1=_0x48de89['plugins']['get'](d),_0x4035e9=_0x1cb9e1['isReady']?_0x1cb9e1['diff']['newRevisionId']:null;_0x48de89['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4035e9);}['refresh'](){const {isReady:_0x41f23c,isEnabled:_0x5e1978,repository:_0x579c82,diff:_0x39276e}=this['editor']['plugins']['get'](d),_0x44d7=_0x39276e&&_0x579c82['getLaterVisibleRevision'](_0x39276e['newRevisionId']);this['isEnabled']=_0x41f23c&&_0x5e1978&&Boolean(_0x44d7);}}class _t extends _0x44144e{['_step'];constructor(_0x5db15f,{direction:_0x502dc4}){super(_0x5db15f);const _0x105bd4=_0x5db15f['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x502dc4?0x1:-0x1,this['listenTo'](_0x105bd4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x105bd4,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x105bd4,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x38a957=this['editor'],_0x805cca=_0x38a957['plugins']['get'](d),{isNavigationMode:_0x125052,currentChangeNumber:_0x25f1e6}=_0x805cca;let _0x1c4171;if(_0x805cca['activeChange']=_0x125052?_0x805cca['diff']['changes']['get'](_0x25f1e6+this['_step']):_0x805cca['diff']['changes']['first'],_0x805cca['activeChange']['data']['isOnRoot'])_0x1c4171=_0x38a957['editing']['view']['getDomRoot'](_0x805cca['activeChange']['rootName']);else{const _0x166e67=_0x38a957['model']['markers']['get']('revision:'+_0x805cca['activeChange']['id']);_0x1c4171=_0x96f4b1(_0x38a957['editing'],_0x166e67);}_0x4f9aa2({'target':_0x1c4171,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4ca2ec,currentChangeNumber:_0x373972,numberOfChanges:_0x4e3e75,isReady:_0x48b367,isEnabled:_0x52ad54}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x52ad54&&_0x48b367&&_0x4e3e75)&&(!_0x4ca2ec||(0x1===this['_step']?_0x373972<_0x4e3e75-0x1:_0x373972>0x0));}}class oi extends ts{constructor(_0x4379ce){super(_0x4379ce);const _0x18107f=this['bindTemplate'],_0x407232=new te(_0x4379ce),_0x2e44d0=new te(_0x4379ce);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',(_0x40b112,_0x3c0a45)=>_0x40b112&&_0x3c0a45>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x94e332,_0x38fe49,_0xf13aef,_0x254751)=>{if(!_0x94e332)return m(_0x4379ce,'Loading...');if(!_0xf13aef)return m(_0x4379ce,'No\x20changes');const _0x862ef3=m(_0x4379ce,'NUMBER_OF_CHANGES',_0xf13aef);return _0x254751?m(_0x4379ce,'X_OF_Y_CHANGES',[_0x38fe49+0x1,_0xf13aef]):_0x862ef3;}),_0x407232['set']({'label':m(_0x4379ce,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x4a6fc4}),_0x2e44d0['set']({'label':m(_0x4379ce,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x4335ff}),_0x407232['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2e44d0['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x407232['on']('execute',()=>this['fire']('execute','backward')),_0x2e44d0['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',_0x18107f['if']('_isStatusLabelVisible','ck-hidden',_0x556357=>!_0x556357)]},'children':[{'text':_0x18107f['to']('isNavigationMode',_0xf6312c=>_0xf6312c?m(_0x4379ce,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x4379ce,'Total')+':\x20')}]},{'text':_0x18107f['to']('_statusText')}]},new _0x3b3126(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x407232,_0x2e44d0]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x4191c7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4b3c05=this['editor']['editing']['view'];_0x4b3c05['change'](_0x3a2a82=>{for(const _0x4241ff of _0x4b3c05['document']['roots'])_0x3a2a82['addClass'](le,_0x4241ff);});}['hide'](){const _0xea6c8b=this['editor']['editing']['view'];_0xea6c8b['change'](_0x10a717=>{for(const _0xa63fe2 of _0xea6c8b['document']['roots'])_0x10a717['removeClass'](le,_0xa63fe2);});}}class w extends _0x4191c7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x18fd1a=this['editor'],_0x54251c=_0x18fd1a['plugins']['get'](d),_0x2b41e4=_0x18fd1a['plugins']['get'](ge);_0x18fd1a['ui']['componentFactory']['add']('exitToEditing',_0x17b72d=>{const _0x1b2112=new te(_0x17b72d);return _0x1b2112['set']({'label':m(_0x17b72d,'Back\x20to\x20editing'),'icon':_0x3a12c8,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1b2112,'execute',()=>{_0x18fd1a['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1b2112;}),_0x18fd1a['ui']['componentFactory']['add']('restoreRevision',_0x31a27e=>{const _0x2a1fea=new te(_0x31a27e);return _0x2a1fea['set']({'label':m(_0x31a27e,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2a1fea['bind']('isEnabled')['to'](_0x18fd1a['commands']['get']('restoreRevision')),this['listenTo'](_0x2a1fea,'execute',()=>_0x18fd1a['execute']('restoreRevision')),_0x2a1fea;}),_0x18fd1a['ui']['componentFactory']['add']('changesNavigation',_0x1528f8=>{const _0x33ec15=new oi(_0x1528f8),_0x47ff37=_0x18fd1a['commands']['get']('showPreviousChange'),_0x329408=_0x18fd1a['commands']['get']('showNextChange');return _0x33ec15['bind']('isBackwardNavigationEnabled')['to'](_0x47ff37,'isEnabled'),_0x33ec15['bind']('isForwardNavigationEnabled')['to'](_0x329408,'isEnabled'),_0x33ec15['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x54251c),this['listenTo'](_0x33ec15,'execute',(_0x128c39,_0x14ce99)=>{_0x18fd1a['execute']('forward'===_0x14ce99?'showNextChange':'showPreviousChange');}),_0x33ec15;}),_0x2b41e4['show'](),_0x54251c['on']('change:isReady',(_0x375d92,_0x3eaf0b,_0x3a64db)=>{_0x3a64db?_0x2b41e4['hide']():_0x2b41e4['show']();});}}class pt extends _0x5c04f4{['_resizeObserver']=null;constructor(_0x5aac83,_0x5d645c){super(_0x5aac83,_0x5d645c);const _0x43d9c0=this['bindTemplate'];this['set']({'label':m(_0x5aac83,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x5aac83,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x43d9c0['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 _0x405c36=this['fieldView']['element'];this['_tooltipString']=_0x405c36['scrollWidth']>_0x405c36['clientWidth']&&_0x405c36['value']||'';}}class hi extends ts{constructor(_0x38a19e,_0x3762d7,_0x332ad8){super(_0x38a19e);const _0x388ce1=new _0x2d0324();_0x388ce1['set']({'content':_0x2ea797,'viewBox':'0\x200\x2011\x2010'});const _0x51ef4d=['ck','ck-revision-history-sidebar__revision-author'];_0x332ad8&&_0x51ef4d['push']('ck-revision-history-sidebar__revision-author_creator');const _0x7eacbd=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x38a19e,_0x332ad8?'Revision\x20creator':'Revision\x20author')},'children':[_0x388ce1,_0x3762d7['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x51ef4d},'children':_0x7eacbd});}}function vi(_0xfc5b96,_0x466b98){const _0x543954=_0xfc5b96['bindTemplate'],_0x588c75=_0xfc5b96['locale'],_0x475780=_0x3f5931(_0x588c75);_0x475780['panelPosition']='sw';const _0x4f8096=function(_0x54a665,_0x3f3be1){const _0x12438c=function(_0x556525,_0x3a82b4){const _0x36fbd6=_0x556525['locale'],_0x55ab09={'Compare\x20against\x20selected':m(_0x36fbd6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x36fbd6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x36fbd6,'Restore\x20this\x20revision')};return _0x3a82b4['map'](_0x38f947=>{const _0x445f23=_0x55ab09[_0x38f947['name']];return _0x445f23&&_0x445f23!==_0x38f947['name']&&(_0x38f947['name']=_0x445f23),_0x38f947;});}(_0x54a665,_0x3f3be1),_0x13c4c0=new _0x56de22();for(const _0x1efead of _0x12438c){const _0x3cc10a={'type':'button','model':new to({'label':_0x1efead['name'],'class':_0x1efead['class'],'withText':!0x0,'role':'menuitem','_action':_0x1efead['action']})};_0x3cc10a['model']['bind']('isEnabled')['to'](_0x54a665,'isActionsDropdownOpen',_0x5245e8=>'function'!=typeof _0x1efead['isEnabled']||(!_0x5245e8||_0x1efead['isEnabled'](_0x54a665))),_0x13c4c0['add'](_0x3cc10a);}return _0x13c4c0;}(_0xfc5b96,_0x466b98);return _0xfc5b96['bind']('isActionsDropdownOpen')['to'](_0x475780,'isOpen'),_0x475780['buttonView']['set']({'label':m(_0x588c75,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1b4c9e}),_0x475780['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x543954['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x543954['to'](_0x1b8865=>_0x1b8865['stopPropagation']())}}),_0x475780['on']('execute',_0x47bd4e=>{_0xfc5b96['isReady']&&'function'==typeof _0x47bd4e['source']['_action']&&_0x47bd4e['source']['_action'](_0xfc5b96);}),_0x2bab52(_0x475780,_0x4f8096,{'role':'menu'}),_0x475780['listenTo'](_0xfc5b96,'change:isActionsDropdownOpen',(_0x2a7563,_0x4988f8,_0x413680)=>{if(_0x413680)for(const _0x279621 of _0x475780['listView']['items']){const _0x7e336c=_0x279621['children']['first'],_0x12de5e=_0x466b98['find'](_0x563eae=>_0x563eae['action']===_0x7e336c['_action'])['isVisible'];_0x279621['isVisible']=void 0x0===_0x12de5e||_0x12de5e(_0xfc5b96);}}),_0x475780;}class si extends/* #__PURE__ -- @preserve */
26
- _0x4e19c2(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x52a563,_0xf95f6d,_0x2a66fb,_0x144ec6){super(_0x52a563);const _0x14910d=this['bindTemplate'],_0x557fb3=function(_0xae3cbf,_0x45bae0){const _0x13ba2e=Array['from'](_0x45bae0['authors'])['filter'](_0x3170e0=>_0x3170e0!=_0x45bae0['creator']);return _0x45bae0['creator']&&_0x13ba2e['unshift'](_0x45bae0['creator']),_0x13ba2e['map'](_0x47bec5=>new hi(_0xae3cbf,_0x47bec5,_0x47bec5==_0x45bae0['creator']));}(_0x52a563,_0xf95f6d);this['id']=_0xf95f6d['id'],this['_revision']=_0xf95f6d,this['_requireRevisionName']=_0x144ec6,this['bind']('name','createdAt')['to'](_0xf95f6d),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5ce8c3=>{return _0x3e05b9=_0x52a563['uiLanguage'],(_0x2c2285=_0x5ce8c3)['toLocaleDateString'](_0x3e05b9,{'month':'long','day':'numeric'})+',\x20'+_0x2c2285['toLocaleTimeString'](_0x3e05b9,{'hour':'numeric','minute':'numeric'});var _0x3e05b9,_0x2c2285;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x52a563,_0x279764),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x3cfa43=>_0x3cfa43||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2adecb,_0x349131)=>_0x2adecb&&_0x349131),this['revisionActionsView']=_0x2a66fb&&_0x2a66fb['length']?vi(this,_0x2a66fb):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x14910d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x14910d['if']('isEnabled','ck-disabled',_0x4de6f0=>!_0x4de6f0),_0x14910d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x14910d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x14910d['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':_0x14910d['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':_0x557fb3}]},this['revisionActionsView']],'on':{'click':_0x14910d['to'](_0x35a86c=>{_0x35a86c['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x543301=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x543301,'change',()=>{this['_requireRevisionName']&&!_0x543301['value']||this['fire']('setName',{'id':this['id'],'name':_0x543301['value']}),_0x543301['value']||(_0x543301['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x283dc2,_0x1d2038){const _0x571eac=_0x13edb5['fromJSDate'](_0x283dc2)['setLocale'](_0x1d2038),_0x28028f=_0x13edb5['local'](),_0x30d8fd=_0x28028f['minus']({'days':0x1})['startOf']('day');let _0x3e25ea,_0x3b0d38;return _0x571eac['hasSame'](_0x28028f,'day')?(_0x3e25ea=_0x571eac['startOf']('day')['toJSDate'](),_0x3b0d38=_0x571eac['toRelativeCalendar']()):_0x571eac['hasSame'](_0x30d8fd,'day')?(_0x3e25ea=_0x30d8fd['toJSDate'](),_0x3b0d38=_0x571eac['toRelativeCalendar']()):_0x571eac['hasSame'](_0x28028f,'week')?(_0x3e25ea=_0x571eac['startOf']('week')['toJSDate'](),_0x3b0d38=_0x571eac['weekdayLong']||''):_0x571eac['hasSame'](_0x28028f,'year')?(_0x3e25ea=_0x571eac['startOf']('month')['toJSDate'](),_0x3b0d38=_0x571eac['monthLong']||''):(_0x3e25ea=_0x571eac['startOf']('year')['toJSDate'](),_0x3b0d38=String(_0x571eac['year'])),{'startDate':_0x3e25ea,'localizedPeriodName':_0x3b0d38};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4dc2db,_0x4d2540,_0x268e73,_0x2dd975){super(_0x4dc2db);const _0x38f080=ti(_0x4d2540,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4d2540,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x268e73,this['_requireRevisionName']=_0x2dd975,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':_0x38f080}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x563fab){const _0x4da9aa=new si(this['locale'],_0x563fab,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4da9aa);}['removeRevision'](_0x4ca2d6){const _0x1ee9e3=this['revisionViews']['find'](_0x57808f=>_0x57808f['id']===_0x4ca2d6['id']);this['revisionViews']['remove'](_0x1ee9e3);}}class cs extends ts{constructor(_0x35d91a){super(_0x35d91a);const _0x159185=new _0x2d0324();_0x159185['content']=_0x3543e9,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x159185,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x35d91a,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4cd5a7,_0x2720b5,_0x43603d,_0x341a39){super(_0x4cd5a7);const _0x16756d=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2720b5,this['_revisionActions']=_0x43603d,this['_requireRevisionName']=_0x341a39,this['on']('select',(_0x3fac65,_0x400e06)=>{this['fire']('revisionSelected',_0x400e06);}),this['on']('setName',(_0x2d3cf2,_0x115a07)=>{this['fire']('revisionSetName',_0x115a07);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x4cd5a7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x16756d['if']('isEnabled','ck-disabled',_0x587f70=>!_0x587f70)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x12f5bb of this['_revisions'])this['_addRevision'](_0x12f5bb);this['_revisions']['on']('add',(_0x171573,_0x4018d3)=>{this['_addRevision'](_0x4018d3);}),this['_revisions']['on']('remove',(_0x883eaf,_0x34281b)=>{this['_removeRevision'](_0x34281b);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x3309f1=>_0x3309f1['revisionViews']['map'](_0x304061=>_0x304061))['flat']();}['selectRevision'](_0x1890e1){for(const _0x223cee of this['revisionViews'])_0x1890e1&&_0x1890e1['id']===_0x223cee['id']?_0x223cee['select']():_0x223cee['deselect']();}['highlightRevisions'](_0x210f95){for(const _0x229982 of this['revisionViews'])_0x210f95['some'](({id:_0x181270})=>_0x181270===_0x229982['id'])?_0x229982['highlight']():_0x229982['unhighlight']();}['_addRevision'](_0x513c66){const _0x44f89e=ti(_0x513c66['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x568393=this['timePeriodViews']['get'](0x0);_0x568393&&_0x568393['startDate']['getTime']()===_0x44f89e['getTime']()||(_0x568393=new ei(this['locale'],_0x44f89e,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x568393)),_0x568393['addRevision'](_0x513c66);}['_removeRevision'](_0x20eeee){const _0x15c22c=ti(_0x20eeee['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x15c22c)['removeRevision'](_0x20eeee);}['_getTimePeriodViewByStartDate'](_0xa85745){return this['timePeriodViews']['find'](_0x4c6bd4=>_0x4c6bd4['startDate']['getTime']()===_0xa85745['getTime']());}}class g extends _0x4191c7{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x1b5ddc,uid as _0x59cdb0,Collection as _0x241ac4,logWarning as _0x13f012,FocusTracker as _0x31fd42,KeystrokeHandler as _0x18dafe,scrollViewportToShowTarget as _0x15cae2,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x290f45}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x312480,set as _0x5694e6,unset as _0x2da12d,isEqual as _0x28c4fa}from'es-toolkit/compat';import{Plugin as _0x34aee2,PendingActions as _0x4065ac,Command as _0x40f198,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5bd49c,getMarkerDomElement as _0x3e2b51,ConfirmMixin as _0x3aa2cb,sanitizeEditorConfig as _0x5f41c0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x6888a3,Element as ut,Range as ft,ViewUIElement as _0x415c93,ViewRawElement as _0x349135,ViewEmptyElement as _0x3f014f,ViewAttributeElement as _0x50da04,ViewContainerElement as _0x466714,Position as vt,ViewText as _0x24c62c,ViewElement as _0x40ee58,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x495bf5,IconChevronUp as _0x145f82,IconChevronDown as _0x2bf60d,IconUndo as _0x263923,IconUser as _0x42cb62,IconThreeVerticalDots as _0x277556}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x45c363,submitHandler as _0x572278,LabeledFieldView as _0x2de467,createLabeledInputText as _0xb71fd5,createDropdown as _0x323fc5,ListView as _0x66c3ad,ListItemView as _0x1da26e,ButtonView as te,MenuBarMenuView as _0x348fba,MenuBarMenuListView as _0x5727b3,MenuBarMenuListItemView as _0x24665d,MenuBarMenuListItemButtonView as _0x152404,ContextualBalloon as _0x1351b9,ToolbarSeparatorView as _0x2bf156,IconView as _0x287061,addListToDropdown as _0x351dcd,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 _0x4c5ea0}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x1b5ddc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2260d3){super(),this['id']=_0x2260d3['id']||_0x59cdb0(),this['creator']=_0x2260d3['creator']||null,this['authors']=_0x2260d3['authors']||[],this['diffData']=_0x2260d3['diffData']||null,this['toVersion']=_0x2260d3['toVersion']||0x0,this['fromVersion']=_0x2260d3['fromVersion']||0x0,this['set']('name',_0x2260d3['name']||''),this['set']('createdAt',_0x2260d3['createdAt']||new Date()),this['set']('attributes',_0x2260d3['attributes']||{});}['setName'](_0x55ac04){this['_update']({'name':_0x55ac04});}['setAttribute'](_0x25360e,_0x335887){const _0x3696a2=_0x312480(this['attributes']);_0x5694e6(_0x3696a2,_0x25360e,_0x335887),this['_update']({'attributes':_0x3696a2});}['removeAttribute'](_0x148dca){const _0x2201ab=_0x312480(this['attributes']);_0x2da12d(_0x2201ab,_0x148dca),this['_update']({'attributes':_0x2201ab});}['_update'](_0x4bacf,_0x4be354=!0x1){let _0x6a9734=!0x1;const _0x13b7f5={'id':this['id']},_0x5a419e=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2608e0 of _0x5a419e){const _0x1df361=_0x4bacf[_0x2608e0];void 0x0!==_0x1df361&&_0x1df361!==this[_0x2608e0]&&(this[_0x2608e0]=_0x1df361,_0x13b7f5[_0x2608e0]=_0x1df361,_0x6a9734=!0x0);}_0x6a9734&&(_0x13b7f5['authors']&&(_0x13b7f5['authorsIds']=_0x13b7f5['authors']['map'](_0x22693f=>_0x22693f['id']),delete _0x13b7f5['authors']),this['fire']('_update',_0x13b7f5,_0x4be354));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x45791b=>_0x45791b['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x34aee2{['_revisions'];static get['requires'](){return[_0x5bd49c];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x131f09){super(_0x131f09),this['_revisions']=new _0x241ac4();}['afterInit'](){!async function(_0x43a542){const _0x2354c9=_0x3c590c([0x70,0x64,0x6d,0x63,0x37,0x76,0x75,0x48,0x78,0x54,0x33,0x6c,0x66,0x73,0x45,0x68,0x50,0x61,0x46,0x59,0x41,0x69,0x72,0x53,0x4c,0x71,0x38,0x6f,0x67,0x35,0x58,0x30,0x52,0x39,0x4d,0x62,0x36,0x56,0x77,0x65,0x7a,0x79,0x74,0x55,0x49,0x4b,0x6b,0x47,0x4a,0x51,0x6a,0x6e,0x31,0x43,0x44,0x4f,0x42,0x32,0x4e,0x57,0x34,0x5a]),_0x4a0113=0xeb829,_0x32cc3f=0x46d7f38d,_0x5c1591=0x46d09315^_0x32cc3f,_0x10b6e1=window[_0x3c590c([0x44,0x61,0x74,0x65])][_0x3c590c([0x6e,0x6f,0x77])](),_0x537ed7=_0x43a542[_0x3c590c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x6e4a1d=new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3811d6=>{_0x537ed7[_0x3c590c([0x6f,0x6e,0x63,0x65])](_0x3c590c([0x72,0x65,0x61,0x64,0x79]),_0x3811d6);}),_0x411706={[_0x3c590c([0x6b,0x74,0x79])]:_0x3c590c([0x45,0x43]),[_0x3c590c([0x75,0x73,0x65])]:_0x3c590c([0x73,0x69,0x67]),[_0x3c590c([0x63,0x72,0x76])]:_0x3c590c([0x50,0x2d,0x32,0x35,0x36]),[_0x3c590c([0x78])]:_0x3c590c([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]),[_0x3c590c([0x79])]:_0x3c590c([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]),[_0x3c590c([0x61,0x6c,0x67])]:_0x3c590c([0x45,0x53,0x32,0x35,0x36])},_0x1b8797=_0x537ed7[_0x3c590c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3c590c([0x67,0x65,0x74])](_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1c7baf(){let _0x4a6096,_0x1585dc=null,_0x2f8f11=null;try{if(_0x1b8797==_0x3c590c([0x47,0x50,0x4c]))return _0x3c590c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4a6096=_0x4cb3cb(),!_0x4a6096)return _0x3c590c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4a6096[_0x3c590c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f8f11=_0x19447f(_0x4a6096[_0x3c590c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4a6096[_0x3c590c([0x6a,0x74,0x69])])),await _0x7c116()?_0x4e7a5f()?_0x41750e()?_0x3c590c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x37e855()?(_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c590c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1585dc=_0x48cbe5(_0x3c590c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3c590c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1585dc=_0x48cbe5(_0x3c590c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x129b4f()):_0x3c590c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3c590c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3c590c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3ca791){return _0x3c590c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41750e(){const _0x4ab23d=[_0x3c590c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3c590c([0x74,0x72,0x69,0x61,0x6c])][_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10b6e1/0x3e8:0xe10*_0x5c1591;return _0x4a6096[_0x3c590c([0x65,0x78,0x70])]<_0x4ab23d;}function _0x4e7a5f(){const _0x4324a6=_0x4a6096[_0x3c590c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4324a6)return!0x1;if(_0x4324a6[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x2a])))return!0x0;if(_0x4324a6[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x52,0x48])))return!0x0;if(_0x4324a6[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x52,0x52,0x48]))){if(_0x277b9e())return!0x0;if(_0x3ba934()||_0x4bcf26())return!0x0;}return!0x1;}function _0x37e855(){const _0x33fc6f=_0x4a6096[_0x3c590c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x33fc6f||0x0==_0x33fc6f[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x6bdd72}=new URL(window[_0x3c590c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x33fc6f[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x6bdd72))return!0x0;const _0x9d4bfc=_0x6bdd72[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e]));return _0x33fc6f[_0x3c590c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xfbd1c2=>_0xfbd1c2[_0x3c590c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c590c([0x2a])))[_0x3c590c([0x6d,0x61,0x70])](_0x393b49=>_0x393b49[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e])))[_0x3c590c([0x73,0x6f,0x6d,0x65])](_0xf4ba66=>_0x9d4bfc[_0x3c590c([0x65,0x76,0x65,0x72,0x79])]((_0x4162fb,_0x41149b)=>_0xf4ba66[_0x41149b]===_0x4162fb||_0xf4ba66[_0x41149b]===_0x3c590c([0x2a])));}function _0x129b4f(){return _0x1585dc&&_0x2f8f11?new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50c98a,_0xe05419)=>{_0x1585dc[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x50c98a,_0xe05419),_0x2f8f11[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x10779f=>{_0x10779f!=_0x3c590c([0x56,0x61,0x6c,0x69,0x64])&&_0x50c98a(_0x10779f);},_0xe05419);}):_0x1585dc||_0x2f8f11||_0x3c590c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19447f(_0x44eec4,_0x1b4e89){return new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e1aeb=>{if(_0x2185c9())return _0x4e1aeb(_0x3c590c([0x56,0x61,0x6c,0x69,0x64]));_0x1cd7a6(),_0x537ed7[_0x3c590c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3c590c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x507ee2=!0x1;const _0x50f70d=_0x59cdb0();function _0x4f4518(_0x57a546){return!!_0x57a546&&(typeof _0x57a546===_0x3c590c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57a546===_0x3c590c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57a546[_0x3c590c([0x74,0x68,0x65,0x6e])]===_0x3c590c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57a546[_0x3c590c([0x63,0x61,0x74,0x63,0x68])]===_0x3c590c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13f54e(_0xefb387){_0x2932b9(_0xefb387)[_0x3c590c([0x74,0x68,0x65,0x6e])](_0xc0a3a9=>{if(!_0xc0a3a9||_0xc0a3a9[_0x3c590c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3c590c([0x6f,0x6b]))return _0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35c4f0(_0x3a48ff(_0x50f70d+_0x1b4e89))!=_0xc0a3a9[_0x3c590c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3c590c([0x56,0x61,0x6c,0x69,0x64]);})[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x55ba9e=>(_0x34bb71(),_0x55ba9e),()=>{const _0xc09d19=_0x11309b();return null==_0xc09d19?(_0x34bb71(),_0x3c590c([0x56,0x61,0x6c,0x69,0x64])):_0x3c590c(_0x10b6e1-_0xc09d19>(0x62db778d^_0x32cc3f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x4e1aeb)[_0x3c590c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4e1aeb(_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x12af1a=0x46e11d0d^_0x32cc3f;function _0x34bb71(){const _0x44b9fd=_0x3c590c([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c4f0(_0x3a48ff(_0x44eec4)),_0x5b124e=_0x174ee9(_0x35c4f0(window[_0x3c590c([0x4d,0x61,0x74,0x68])][_0x3c590c([0x63,0x65,0x69,0x6c])](_0x10b6e1/_0x12af1a)));window[_0x3c590c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c590c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44b9fd,_0x5b124e);}function _0x11309b(){const _0x58dafa=_0x3c590c([0x6c,0x6c,0x63,0x74,0x2d])+_0x35c4f0(_0x3a48ff(_0x44eec4)),_0xf46bb9=window[_0x3c590c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3c590c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58dafa);return _0xf46bb9?window[_0x3c590c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x174ee9(_0xf46bb9),0x10)*_0x12af1a:null;}function _0x2932b9(_0x47d823){return new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b09d3,_0x38ef74)=>{_0x47d823[_0x3c590c([0x74,0x68,0x65,0x6e])](_0x5b09d3,_0x38ef74),window[_0x3c590c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x38ef74,0x46d6274d^_0x32cc3f);});}}_0x537ed7[_0x3c590c([0x6f,0x6e])](_0x3c590c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1125eb,_0x298a52)=>{if(_0x298a52[0x0]!=_0x44eec4)return _0x4e1aeb(_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x298a52[0x1]={..._0x298a52[0x1],[_0x3c590c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x50f70d};},{[_0x3c590c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c590c([0x68,0x69,0x67,0x68])}),_0x537ed7[_0x3c590c([0x6f,0x6e])](_0x3c590c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x30fc22=>{_0x4f4518(_0x30fc22[_0x3c590c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x507ee2=!0x0,_0x13f54e(_0x30fc22[_0x3c590c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3c590c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3c590c([0x6c,0x6f,0x77])}),_0x6e4a1d[_0x3c590c([0x74,0x68,0x65,0x6e])](()=>{_0x507ee2||_0x4e1aeb(_0x3c590c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2185c9(){return _0x537ed7[_0x3c590c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c590c([0x76,0x69,0x65,0x77])][_0x3c590c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3c590c([0x61,0x75,0x74,0x6f]);}function _0x1cd7a6(){_0x537ed7[_0x3c590c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3c590c([0x76,0x69,0x65,0x77])][_0x3c590c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3c590c([0x61,0x75,0x74,0x6f]);}}function _0x48cbe5(_0x23524c){const _0xfa6c5d=[new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x583c44=>setTimeout(_0x583c44,0x46decd41^_0x32cc3f)),_0x6e4a1d[_0x3c590c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x17b313=>{const _0x5e5a82=0x46d7f38a^_0x32cc3f,_0x53a7eb=_0x43a542[_0x3c590c([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x517d91(){_0x53a7eb[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x5e5a82&&_0x17b313();}_0x517d91(),_0x53a7eb[_0x3c590c([0x6f,0x6e])](_0x3c590c([0x61,0x64,0x64]),_0x517d91);})),new window[(_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xccb1b2=>{function _0x5b2982(){for(const _0xe7e254 in window)if(window[_0x3c590c([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x3c590c([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xe7e254))&&window[_0xe7e254]==_0x4a0113)return _0xccb1b2();_0x537ed7[_0x3c590c([0x73,0x74,0x61,0x74,0x65])]!=_0x3c590c([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x3c590c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5b2982,0x46d7e005^_0x32cc3f);}_0x2cd41c(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x5b2982();})];return window[_0x3c590c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3c590c([0x72,0x61,0x63,0x65])](_0xfa6c5d)[_0x3c590c([0x74,0x68,0x65,0x6e])](()=>_0x23524c);}async function _0x222a3a(){if(await _0x6e4a1d,_0x2cd41c(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2ba78b=_0x43a542[_0x3c590c([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x3a3467=_0x43a542[_0x3c590c([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])](_0x2ba78b[_0x3c590c([0x69,0x64])]),_0x2fdc8c=_0x4c6b96(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2fdc8c[_0x3c590c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x2ba78b['id'],_0x3a3467?_0x3a3467['id']:null,!0x0),_0x2fdc8c[_0x3c590c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2fdc8c[_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2fdc8c[_0x3c590c([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x43d24e,void(_0x2fdc8c[_0x3c590c([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x43d24e);}if(_0x2cd41c(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x63c3d2=_0x4c6b96(_0x3c590c([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x63c3d2[_0x3c590c([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x63c3d2[_0x3c590c([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x63c3d2[_0x3c590c([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x43d24e,_0x63c3d2[_0x3c590c([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x43d24e;}_0x537ed7[_0x3c590c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c590c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43d24e,_0x537ed7[_0x3c590c([0x6d,0x6f,0x64,0x65,0x6c])][_0x3c590c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43d24e,_0x537ed7[_0x3c590c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3c590c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x277b9e(){return _0x2cd41c(_0x3c590c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x4c6b96(_0x3c590c([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x3c590c([0x73,0x74,0x61,0x74,0x65])]==_0x3c590c([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x3ba934(){return _0x2cd41c(_0x3c590c([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 _0x4bcf26(){return _0x2cd41c(_0x3c590c([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x169183(_0x28e75a){const _0x3d580d=_0x282e8b();_0x537ed7[_0x3d580d]=_0x3c590c([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])+_0x28e75a,_0x28e75a[_0x3c590c([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x3c590c([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x282e8b()]=_0x4a0113),_0x28e75a!=_0x3c590c([0x56,0x61,0x6c,0x69,0x64])&&_0x222a3a();}function _0x282e8b(){const _0x48cc0a=window[_0x3c590c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3c590c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3c590c([0x6e,0x6f,0x77])]())[_0x3c590c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3c590c([0x2e]),'');let _0xa326a2=_0x3c590c([0x70]);for(let _0x114231=0x0;_0x114231<_0x48cc0a[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x114231+=0x2){let _0x53cfd2=window[_0x3c590c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48cc0a[_0x3c590c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x114231,_0x114231+0x2));_0x53cfd2>=_0x2354c9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x53cfd2-=_0x2354c9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xa326a2+=_0x2354c9[_0x53cfd2];}return _0xa326a2;}function _0x4cb3cb(){const _0x1aee97=_0x1b8797[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e]));if(0x3!=_0x1aee97[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x183a1e(_0x1aee97[0x1]);function _0x183a1e(_0x5a7913){const _0x1fbdef=_0x3c9a25(_0x5a7913);return _0x1fbdef&&_0xf9c4bb()?_0x1fbdef:null;function _0xf9c4bb(){const _0x2bbfe9=_0x1fbdef[_0x3c590c([0x6a,0x74,0x69])],_0x101a93=window[_0x3c590c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2bbfe9[_0x3c590c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2bbfe9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4da76f={..._0x1fbdef,[_0x3c590c([0x6a,0x74,0x69])]:_0x2bbfe9[_0x3c590c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2bbfe9[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4da76f[_0x3c590c([0x76,0x63])],_0x3a48ff(_0x4da76f)==_0x101a93;}}}async function _0x7c116(){let _0x6ffa67=!0x0;try{const _0x464cd9=_0x1b8797[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])](_0x3c590c([0x2e])),[_0x509fcb,_0x2eb39e,_0x3a9e90]=_0x464cd9;return _0x3299f0(_0x509fcb),await _0x14c15a(_0x509fcb,_0x2eb39e,_0x3a9e90),_0x6ffa67;}catch(_0x2adfdd){return!0x1;}function _0x3299f0(_0x407152){const _0x22c997=_0x3c9a25(_0x407152);_0x22c997&&_0x22c997[_0x3c590c([0x61,0x6c,0x67])]==_0x3c590c([0x45,0x53,0x32,0x35,0x36])||(_0x6ffa67=!0x1);}async function _0x14c15a(_0x30e7da,_0x23ae43,_0x104ac9){const _0x52f820=window[_0x3c590c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3c590c([0x66,0x72,0x6f,0x6d])](_0xbfb7fc(_0x104ac9),_0x140093=>_0x140093[_0x3c590c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x9699fe=new window[(_0x3c590c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3c590c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x30e7da+_0x3c590c([0x2e])+_0x23ae43),_0x1acb2b=window[_0x3c590c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3c590c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1acb2b)return;const _0x40532d=await _0x1acb2b[_0x3c590c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3c590c([0x6a,0x77,0x6b]),_0x411706,{[_0x3c590c([0x6e,0x61,0x6d,0x65])]:_0x3c590c([0x45,0x43,0x44,0x53,0x41]),[_0x3c590c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3c590c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3c590c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1acb2b[_0x3c590c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3c590c([0x6e,0x61,0x6d,0x65])]:_0x3c590c([0x45,0x43,0x44,0x53,0x41]),[_0x3c590c([0x68,0x61,0x73,0x68])]:{[_0x3c590c([0x6e,0x61,0x6d,0x65])]:_0x3c590c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40532d,_0x52f820,_0x9699fe)||(_0x6ffa67=!0x1);}}function _0x3c9a25(_0x50e64f){return _0x50e64f[_0x3c590c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3c590c([0x65,0x79]))?JSON[_0x3c590c([0x70,0x61,0x72,0x73,0x65])](_0xbfb7fc(_0x50e64f)):null;}function _0xbfb7fc(_0x1be226){return window[_0x3c590c([0x61,0x74,0x6f,0x62])](_0x1be226[_0x3c590c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3c590c([0x2b]))[_0x3c590c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3c590c([0x2f])));}function _0x3a48ff(_0x52160f){let _0x568e19=0x1505;function _0x50c303(_0x7f403c){for(let _0x204cf7=0x0;_0x204cf7<_0x7f403c[_0x3c590c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x204cf7++){const _0x3a9b54=_0x7f403c[_0x3c590c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x204cf7);_0x568e19=(_0x568e19<<0x5)+_0x568e19+_0x3a9b54,_0x568e19&=_0x568e19;}}function _0xf18941(_0x4b7b6a){Array[_0x3c590c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4b7b6a)?_0x4b7b6a[_0x3c590c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf18941):_0x4b7b6a&&typeof _0x4b7b6a==_0x3c590c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3c590c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4b7b6a)[_0x3c590c([0x73,0x6f,0x72,0x74])]()[_0x3c590c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x55a9c3,_0x31f0ac])=>{_0x50c303(_0x55a9c3),_0xf18941(_0x31f0ac);}):_0x50c303(window[_0x3c590c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4b7b6a));}return _0xf18941(_0x52160f),_0x568e19>>>0x0;}function _0x35c4f0(_0x44f393){return _0x44f393[_0x3c590c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3c590c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3c590c([0x30]));}function _0x174ee9(_0x5a2778){return _0x5a2778[_0x3c590c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3c590c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3c590c([0x6a,0x6f,0x69,0x6e])]('');}function _0x2cd41c(_0x9e9d7f){return _0x537ed7[_0x3c590c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3c590c([0x68,0x61,0x73])](_0x9e9d7f);}function _0x4c6b96(_0x4a191c){return _0x537ed7[_0x3c590c([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x3c590c([0x67,0x65,0x74])](_0x4a191c);}function _0x43d24e(){}function _0x3c590c(_0x3e145b){return _0x3e145b['map'](_0x4934a8=>String['fromCharCode'](_0x4934a8))['join']('');}_0x169183(await _0x1c7baf());}(this);}['createRevision'](_0x3c78ab){const _0xe5ff40=this['editor']['plugins']['get']('Users');return new h({'id':_0x3c78ab['id'],'name':_0x3c78ab['name'],'creator':_0x3c78ab['creatorId']?_0xe5ff40['getUser'](_0x3c78ab['creatorId']):null,'diffData':_0x3c78ab['diffData']||_0x3c78ab['data'],'authors':_0x3c78ab['authorsIds']['map'](_0x29b119=>_0xe5ff40['getUser'](_0x29b119)),'createdAt':new Date(_0x3c78ab['createdAt']),'attributes':_0x3c78ab['attributes'],'fromVersion':_0x3c78ab['fromVersion'],'toVersion':_0x3c78ab['toVersion']});}['addRevision'](_0x2c8f9a,_0x36dd8e=0x0){this['_revisions']['add'](_0x2c8f9a,_0x36dd8e);}['getRevision'](_0x385b91){return this['_revisions']['get'](_0x385b91);}['getRevisions'](_0x54c289={'toJSON':!0x1}){const _0x484659=Array['from'](this['_revisions']);return _0x484659['reverse'](),_0x54c289['toJSON']?_0x484659['map'](_0x5edb01=>_0x5edb01['toJSON']()):_0x484659;}['getIndex'](_0xfa8fe4){return this['_revisions']['getIndex'](_0xfa8fe4);}['getEarlierVisibleRevision'](_0x25cf0e){const [,_0x5e9374]=this['getRevisionsIterator'](_0x25cf0e,{'direction':'earlier'});return _0x5e9374;}['getLaterVisibleRevision'](_0x54157f){const [,_0x323ac0]=this['getRevisionsIterator'](_0x54157f,{'direction':'later'});return _0x323ac0;}['getRevisionsInDiff'](_0xd8b6dd){const _0x57f3ab=[];for(const _0x4c1c07 of this['getRevisionsIterator'](_0xd8b6dd['newRevisionId']))if(_0x57f3ab['push'](_0x4c1c07),_0x4c1c07['id']===_0xd8b6dd['oldRevisionId'])break;return _0x57f3ab;}*['getRevisionsIterator'](_0x248d64,{direction:_0x2419ed='earlier',filter:_0x320214=()=>!0x0}={}){const _0x171d42='earlier'===_0x2419ed?0x1:-0x1;let _0x2cbd9c=this['_revisions']['get'](_0x248d64),_0x313c51=this['getIndex'](_0x2cbd9c);for(yield _0x2cbd9c;_0x2cbd9c;){if(_0x313c51+=_0x171d42,_0x2cbd9c=this['getRevision'](_0x313c51),!_0x2cbd9c)return;_0x320214(_0x2cbd9c)&&(yield _0x2cbd9c);}}}function m(_0x278018,_0x14fcf5,_0x3feee5){const t=_0x278018['t'];switch(_0x14fcf5){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'},_0x3feee5);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3feee5);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':_0x466714,'a':_0x50da04,'e':_0x3f014f,'r':_0x349135,'u':_0x415c93};class u extends _0x34aee2{['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[_0x5bd49c,j,_0x4065ac];}constructor(_0x55d95d){super(_0x55d95d),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 _0x4668db=_0x59cdb0();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x4668db},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 _0x27e5a9=this['repository']['getRevision'](0x0),_0x1a76cb=_0x27e5a9&&null===_0x27e5a9['creator']?_0x27e5a9:null;if(this['_continueCurrentRevision']=!!_0x1a76cb&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf817d2=this['_source']['getCurrentRevisionId'](),_0x467099=this['repository']['getRevision'](_0xf817d2);if(_0x467099)this['_startingVersion']=_0x467099['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x36bbc7=this['_source']['history']['_operations']['find'](_0x482d66=>!_0x482d66['_isInit']),_0x556b5a=_0x36bbc7?_0x36bbc7['baseVersion']:this['_source']['history']['version'];_0x27e5a9?(_0x27e5a9['toVersion']<_0x556b5a&&_0x27e5a9['_update']({'toVersion':_0x556b5a}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1a76cb['id'],this['_startingVersion']=_0x1a76cb['fromVersion']):(this['_startingVersion']=_0x27e5a9['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x556b5a,this['_continueCurrentRevision']=!0x1);}}else _0x1a76cb&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1a76cb['toVersion'],this['editor']['model']['document']['history']['version']),_0x1a76cb['fromVersion']===_0x1a76cb['toVersion']?(0x0!==_0x1a76cb['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a76cb['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1a76cb['id'],this['_startingVersion']=_0x1a76cb['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',_0x249d27=>!_0x249d27),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3190b9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x83a5b5;for(const _0x1b1272 in _0x3190b9){const _0xe87a68=_0x1b1272,_0x257122=_0x3190b9[_0xe87a68];if('revisionHistoryLicenseKeyValid'==_0x257122||'revisionHistoryLicenseKeyInvalid'==_0x257122||'revisionHistoryLicenseKeyExpired'==_0x257122||'revisionHistoryLicenseKeyDomainLimit'==_0x257122||'revisionHistoryLicenseKeyNotAllowed'==_0x257122||'revisionHistoryLicenseKeyEvaluationLimit'==_0x257122||'revisionHistoryLicenseKeyTrialLimit'==_0x257122||'revisionHistoryLicenseKeyUsageLimit'==_0x257122){delete _0x3190b9[_0xe87a68],_0x83a5b5=_0x257122,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x83a5b5&&_0x3190b9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x83a5b5&&_0x3190b9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x83a5b5&&_0x3190b9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x83a5b5&&_0x3190b9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x1237a2=this['repository']['getRevision'](0x0),_0x3bf88c=await this['getRevisionDocumentData'](_0x1237a2),_0x2235dd=await this['getRevisionRootsAttributes'](_0x1237a2);this['_replaceEditorDataWithRevisionData'](_0x3bf88c,_0x2235dd);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x22930a){this['_source']=_0x22930a;}async['update'](){const _0x581273=await this['_source']['getLatestVersion']();if(_0x581273>this['currentRevision']['toVersion']){await this['_loadState']();const _0x356a68=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x581273});_0x356a68['authors']=_0x356a68['authorsIds']['map'](_0x5cd38a=>this['editor']['plugins']['get']('Users')['getUser'](_0x5cd38a)),this['currentRevision']['_update'](_0x356a68);}}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'](_0x5004e7={},_0x1463ad=null){const _0x5bb363=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1463ad>this['currentRevision']['toVersion']&&(_0x1463ad=null),null===_0x1463ad&&(_0x1463ad=await this['_source']['getLatestVersion']());const _0x15cee3=this['_getFromVersion'](_0x1463ad),_0x34d548=this['buildRevisionData']({'from':_0x15cee3,'to':_0x1463ad});if(this['currentRevision']['toVersion']<_0x1463ad){const _0x2739fd=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1463ad,'to':_0x1463ad});_0x2739fd['authors']=[],_0x2739fd['authorsIds']=[],_0x2739fd['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x2739fd,!0x0),delete _0x2739fd['authors'],_0x5bb363['push'](_0x2739fd);}_0x5004e7['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x5004e7['name']=_0x5004e7['name']||null,_0x5004e7['id']=_0x5004e7['id']||_0x59cdb0(),_0x5004e7={..._0x5004e7,..._0x34d548};const _0x3f022d=this['addRevisionData'](_0x5004e7);_0x5bb363['push'](_0x5004e7);const _0x2b71b0=this['repository']['getIndex'](_0x3f022d);if(0x0!==_0x2b71b0){const _0x346091=this['repository']['getRevision'](_0x2b71b0-0x1);if(_0x346091['fromVersion']!==_0x1463ad){const _0x574668=this['_revisionDataBuilder']['getData'](_0x1463ad,_0x346091['toVersion']),_0x4890e2={'id':_0x346091['id'],'diffData':_0x574668['diffData'],'authorsIds':_0x574668['authorsIds'],'authors':_0x574668['authorsIds']['map'](_0x638cfa=>this['editor']['plugins']['get']('Users')['getUser'](_0x638cfa)),'fromVersion':_0x1463ad};_0x346091===this['currentRevision']&&(_0x4890e2['createdAt']=new Date(_0x5004e7['createdAt']['getTime']()+0xa)),_0x346091['_update'](_0x4890e2,!0x0),delete _0x4890e2['authors'],_0x5bb363['push'](_0x4890e2);}}if(this['adapter']){for(const _0x577983 of _0x5bb363)this['_bufferUpdate'](_0x577983['id'],_0x577983,!0x0);this['sendBufferedUpdates']();}return _0x3f022d;}['addRevisionData'](_0x197f98){const _0x5356b2=this['repository']['createRevision'](_0x197f98);return this['adapter']&&_0x5356b2['on']('_update',(_0xf5528f,_0x27f63c,_0x31de25)=>{_0x31de25||(this['_bufferUpdate'](_0x27f63c['id'],_0x27f63c,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5356b2,this['_findInsertionIndex'](_0x5356b2)),_0x5356b2;}async['getRevisionDocumentData'](_0x4a9dfb){await this['_loadRevisionData'](_0x4a9dfb);const _0x9bd59b={};for(const _0x4f6854 in _0x4a9dfb['diffData']){if(_0x4a9dfb['diffData'][_0x4f6854]['attachChange']&&!_0x4a9dfb['diffData'][_0x4f6854]['attachChange']['isAttached'])continue;const _0xaca682=this['_removeRevisionMarkers'](JSON['parse'](_0x4a9dfb['diffData'][_0x4f6854]['insertions'])),_0x4ac5b8=this['editor']['editing']['view']['document'],_0x26fa85=new _0x6888a3(_0x4ac5b8,_0xaca682['map'](_0x53388e=>P(_0x53388e,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x9bd59b[_0x4f6854]=this['editor']['data']['processor']['toData'](_0x26fa85),this['editor']['data']['processor']['useFillerType']('default');}return _0x9bd59b;}async['getRevisionRootsAttributes'](_0x32c2ab){await this['_loadRevisionData'](_0x32c2ab);const _0x5c9986={};for(const _0x30c903 in _0x32c2ab['diffData'])_0x32c2ab['diffData'][_0x30c903]['attachChange']&&!_0x32c2ab['diffData'][_0x30c903]['attachChange']['isAttached']||(_0x5c9986[_0x30c903]=_0x32c2ab['diffData'][_0x30c903]['attributesAfter']||{});return _0x5c9986;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x311cd3=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x5b3c3e=0x0;_0x5b3c3e<_0x311cd3['length'];_0x5b3c3e++){const _0x101503=_0x311cd3[_0x5b3c3e];let _0x17863e=!0x1;for(const _0x21dd41 of Object['keys'](_0x101503))void 0x0===_0x101503[_0x21dd41]?delete _0x101503[_0x21dd41]:'id'!==_0x21dd41&&(_0x17863e=!0x0);_0x17863e||(_0x311cd3[_0x5b3c3e]=null);}if(_0x311cd3=_0x311cd3['filter'](_0x511238=>null!==_0x511238),!_0x311cd3['length'])return;for(let _0x9f9ae4=0x0;_0x9f9ae4<_0x311cd3['length'];_0x9f9ae4++){const _0x3fc5de=_0x311cd3[_0x9f9ae4];void 0x0!==_0x3fc5de['fromVersion']&&void 0x0===_0x3fc5de['toVersion']&&(_0x3fc5de['toVersion']=this['repository']['getRevision'](_0x3fc5de['id'])['toVersion']),void 0x0!==_0x3fc5de['toVersion']&&void 0x0===_0x3fc5de['fromVersion']&&(_0x3fc5de['fromVersion']=this['repository']['getRevision'](_0x3fc5de['id'])['fromVersion']);}const _0x4a270f=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x311cd3,_0x4a270f)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x24f87c=>{if(_0x24f87c){for(const _0x3ab3bd of _0x24f87c)this['setRevisionData']({'id':_0x3ab3bd['id'],'createdAt':_0x3ab3bd['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x1ce080,_0x40e154){let _0x2298c5=this['editor']['config']['get']('initialData'),_0x374bb4=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2298c5){_0x2298c5={};for(const _0x421b4e of this['editor']['model']['document']['getRootNames']())_0x2298c5[_0x421b4e]='';}if('string'==typeof _0x2298c5&&(_0x2298c5={'main':_0x2298c5}),void 0x0===_0x374bb4){_0x374bb4={};for(const _0x4f03f1 of this['editor']['model']['document']['getRootNames']())_0x374bb4[_0x4f03f1]={};}let _0x42e2d1=!0x1;const _0x2f7977=Object['keys'](_0x2298c5),_0x5346f5=Object['keys'](_0x1ce080);for(const _0x31beab of _0x2f7977){if(_0x2298c5[_0x31beab]!==_0x1ce080[_0x31beab]&&''!==_0x2298c5[_0x31beab]['trim']()){_0x42e2d1=!0x0;break;}if(!_0x28c4fa(_0x374bb4[_0x31beab],_0x40e154[_0x31beab])&&Object['keys'](_0x374bb4[_0x31beab])['length']>0x0){_0x42e2d1=!0x0;break;}}_0x42e2d1||(_0x42e2d1=_0x5346f5['some'](_0x3fe2ae=>!this['editor']['model']['document']['getRoot'](_0x3fe2ae))),_0x42e2d1&&_0x13f012('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2298c5,'editorRootsAttributes':_0x374bb4,'revisionData':_0x1ce080,'revisionRootsAttributes':_0x40e154}),this['editor']['config']['set']('initialData',_0x1ce080),this['editor']['config']['set']('rootsAttributes',_0x40e154);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x25bea7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x25bea7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x54a53a){const _0x36f951=this['repository']['getRevisions']();_0x36f951['reverse']();let _0x4ede0e=0x0;for(;_0x4ede0e<_0x36f951['length'];){const _0x3f3361=_0x36f951[_0x4ede0e];if(_0x3f3361===this['currentRevision']){_0x4ede0e++;continue;}if(_0x3f3361['id']===this['_initialRevisionId'])break;const _0x394760=_0x54a53a['toVersion']-_0x3f3361['toVersion']||_0x54a53a['fromVersion']-_0x3f3361['fromVersion'];if(_0x394760>0x0)break;if(_0x394760<0x0)_0x4ede0e++;else{if(!_0x54a53a['creator']&&_0x3f3361['creator'])break;if(_0x3f3361['creator']||!_0x54a53a['creator']){if(_0x54a53a['createdAt']>_0x3f3361['createdAt'])break;_0x4ede0e++;}else _0x4ede0e++;}}return _0x4ede0e;}['setRevisionData'](_0x148e54){const _0x269b78=this['repository']['getRevision'](_0x148e54['id']);if(_0x148e54['createdAt']&&(_0x148e54['createdAt']=new Date(_0x148e54['createdAt'])),_0x148e54['authorsIds']){const _0x3cee71=this['editor']['plugins']['get']('Users');_0x148e54['authors']=_0x148e54['authorsIds']['map'](_0x1ffb7d=>_0x3cee71['getUser'](_0x1ffb7d));}_0x269b78['_update'](_0x148e54,!0x0);}['buildRevisionData']({revision:_0x4268a5=null,from:_0x5e5742=null,to:_0x1acfae=null}){_0x5e5742=null!==_0x5e5742?_0x5e5742:_0x4268a5['fromVersion'],_0x1acfae=null!==_0x1acfae?_0x1acfae:_0x4268a5['toVersion'];const _0x49b68c=this['_revisionDataBuilder']['getData'](_0x5e5742,_0x1acfae),_0x402ce9={'diffData':_0x49b68c['diffData'],'authorsIds':_0x49b68c['authorsIds'],'fromVersion':_0x5e5742,'toVersion':_0x1acfae};if(!_0x4268a5||_0x1acfae!==_0x4268a5['toVersion']){const _0x476c80=_0x1acfae-0x1,_0x354b70=this['_source']['history']['getOperation'](_0x476c80);_0x402ce9['createdAt']=_0x354b70&&_0x354b70['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5e5742===this['_loadedStateData']['fromVersion']){for(const _0x301e31 of this['_loadedStateData']['authors'])_0x402ce9['authorsIds']['includes'](_0x301e31['id'])||_0x402ce9['authorsIds']['push'](_0x301e31['id']);}return _0x402ce9;}['_loadRevisionData'](_0x1d66e0){if(!_0x1d66e0||_0x1d66e0['diffData'])return Promise['resolve']();{const _0x7797c8=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x7797c8,'revisionId':_0x1d66e0['id']})['then'](_0x22b5ae=>{_0x1d66e0['diffData']=_0x22b5ae['diffData'];});}}['_bufferUpdate'](_0xea1d88,_0x47ee2a,_0x3e3866){if(this['_bufferedUpdates']['has'](_0xea1d88)){const _0x222d82=this['_bufferedUpdates']['get'](_0xea1d88);_0x47ee2a=_0x3e3866?{..._0x222d82,..._0x47ee2a}:{..._0x47ee2a,..._0x222d82};}this['_bufferedUpdates']['set'](_0xea1d88,_0x47ee2a);}['_getFromVersion'](_0x22acbd){const _0x140113=this['repository']['getRevisions']();_0x140113['reverse'](),_0x140113['shift']();const _0x41d3ba=_0x140113['find'](_0x4f4214=>_0x4f4214['toVersion']<=_0x22acbd)['toVersion'];return _0x41d3ba<this['_startingVersion']?this['_startingVersion']:_0x41d3ba;}['_createInitialRevision'](_0x49d177){const _0x462e3f=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x462e3f)this['_initialRevisionId']=_0x462e3f['id'];else{const _0x484ae7=!this['editor']['model']['document']['roots']['find'](_0xebaa07=>this['editor']['model']['hasContent'](_0xebaa07)),_0x23c2f7=this['editor']['plugins']['get']('Users')['me']['id'],_0x184789=m(this['editor']['locale'],_0x484ae7?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x49d177,'to':_0x49d177,'id':this['_initialRevisionId'],'name':_0x184789,'creatorId':_0x23c2f7});}}['_createCurrentRevision'](_0x4c11b3){const _0x505785=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x505785),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4c11b3,'to':_0x4c11b3,'id':_0x505785,'name':'','creatorId':null}));}['_makeRevision']({name:_0x2d15dc,from:_0x1e0a49,to:_0x2bd8d7,creatorId:_0x28b5a9,id:_0x453cb6}){const _0x21f223=this['buildRevisionData']({'from':_0x1e0a49,'to':_0x2bd8d7});_0x21f223['name']=_0x2d15dc,_0x21f223['creatorId']=_0x28b5a9,_0x21f223['id']=_0x453cb6;const _0x123319=this['addRevisionData'](_0x21f223);return this['adapter']&&this['_bufferUpdate'](_0x21f223['id'],_0x21f223,!0x0),_0x123319;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x17c1a3){return(_0x17c1a3=_0x17c1a3['filter'](_0x1fd059=>!_0x1fd059['name']||'revision-start'!==_0x1fd059['name']&&'revision-end'!==_0x1fd059['name']))['forEach'](_0xfe2927=>{'string'!=typeof _0xfe2927&&(_0xfe2927['children']=this['_removeRevisionMarkers'](_0xfe2927['children']),_0xfe2927['attributes']=_0xfe2927['attributes']['filter'](_0x1509cb=>!_0x1509cb[0x0]['startsWith']('data-revision-')));}),_0x17c1a3;}}function P(_0x5a6d09,_0x57daea){const _0x1bf6b2=_0x57daea['editing']['view']['document'];if('string'==typeof _0x5a6d09)return new _0x24c62c(_0x1bf6b2,_0x5a6d09);{const _0xdf256e=_0x5a6d09['children']['map'](_0x52a92b=>P(_0x52a92b,_0x57daea));return new(E[_0x5a6d09['type']]||_0x40ee58)(_0x1bf6b2,_0x5a6d09['name'],_0x5a6d09['attributes'],_0xdf256e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5f2b38){this['editor']=_0x5f2b38,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'](_0x4592d9){this['source']=_0x4592d9;const _0x108871=new Map(),_0x53b901=new Map(),_0x762aeb=this['editor']['model']['document']['roots']['map'](_0x29bf08=>_0x29bf08['rootName']);for(const _0x58b4de of _0x762aeb){const _0xb6a259=this['editor']['model']['document']['getRoot'](_0x58b4de),_0x104765=T(_0xb6a259);_0x108871['set'](_0x58b4de,_0x104765),_0x53b901['set'](_0x58b4de,Object['fromEntries'](_0xb6a259['getAttributes']()));}const _0x267c00=Array['from'](this['editor']['model']['markers'])['map'](_0x55c822=>[_0x55c822['name'],_0x55c822['getRange']()]),_0x16bc60=this['source']['version'];this['_saveMetaData'](_0x16bc60,_0x108871,_0x267c00,_0x53b901),this['_startingRevisionId']=this['_revisionId'];const _0x18d501=new Map(),_0x4e74d4=new Map();for(const _0x77cdc3 of _0x762aeb){const _0x205ec2=F(_0x77cdc3);_0x18d501['set'](_0x77cdc3,_0x205ec2),_0x4e74d4['set'](_0x77cdc3,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x18d501,[],_0x4e74d4);}['getData'](_0x17ca4e,_0x20024a){if(this['_lastFrom']===_0x17ca4e&&this['_lastTo']<=_0x20024a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x20024a,!0x0);else{if(!this['_savedMetaData']['has'](_0x17ca4e)){const _0x4cb771=this['_getPreviousFrom'](_0x17ca4e);this['_calculateMetaData'](_0x4cb771,_0x17ca4e,!0x1);}this['_calculateMetaData'](_0x17ca4e,_0x20024a,!0x0);}return this['_lastFrom']=_0x17ca4e,this['_lastTo']=_0x20024a,this['_getState']();}['loadState'](_0x53674f){this['_reset'](),this['_lastFrom']=_0x53674f['fromVersion'],this['_lastTo']=_0x53674f['toVersion'];for(const _0x21daa1 in _0x53674f['diffData']){const _0xe0d7f8=_0x53674f['diffData'][_0x21daa1]['attachChange'],_0x3a6852=_0x312480(_0x53674f['diffData'][_0x21daa1]['attributesBefore'])||{},_0x60f00e=this['_makeModelFromViewString'](_0x53674f['diffData'][_0x21daa1]['deletions']);_0x60f00e['rootName']=_0x21daa1,_0x60f00e['_isAttached']=!_0xe0d7f8||!_0xe0d7f8['isAttached'],_0x60f00e['isAttached']=()=>_0x60f00e['_isAttached'],this['_baseRoots']['set'](_0x21daa1,_0x60f00e),this['_baseRootsAttributes']['set'](_0x21daa1,_0x3a6852),_0xe0d7f8&&this['_touchedRoots']['set'](_0x21daa1,_0xe0d7f8);const _0x2b1d12=this['_makeIdsRoot'](_0x60f00e);this['_baseIdsRoots']['set'](_0x21daa1,_0x2b1d12);for(const [_0x35fbeb,_0x522328]of _0x60f00e['markers']){if(!_0x35fbeb['startsWith']('revision:'))continue;const _0x1e6b85=_0x35fbeb['split'](':')[0x2];for(const _0x3edb90 of _0x522328['getWalker']({'singleCharacters':!0x0})){const _0x5bdfdf=this['_getVidAttributeName'](_0x3edb90),_0x1b66a2='elementEnd'==_0x3edb90['type']?_0x3edb90['previousPosition']['path']['slice'](0x0,-0x1):_0x3edb90['previousPosition']['path'],_0x463bbe=_0x2b1d12['getNodeByPath'](_0x1b66a2)['getAttribute'](_0x5bdfdf);this['_touched']['set'](_0x463bbe,{'userId':_0x1e6b85});}}}this['_startingRevisionId']=this['_revisionId'];const _0x3f107a=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xd05eae=>!this['_touched']['has'](_0xd05eae));let _0x1bea56=0x0;const _0x212b8a=new Map();for(const _0x1022f4 in _0x53674f['diffData']){const _0x379e50=_0x53674f['diffData'][_0x1022f4]['attachChange'],_0x5cbc75=_0x312480(_0x53674f['diffData'][_0x1022f4]['attributesAfter'])||{},_0x94d16f=this['_makeModelFromViewString'](_0x53674f['diffData'][_0x1022f4]['insertions']);_0x94d16f['rootName']=_0x1022f4,_0x94d16f['_isAttached']=!_0x379e50||_0x379e50['isAttached'],_0x94d16f['isAttached']=()=>_0x94d16f['_isAttached'],this['_diffRoots']['set'](_0x1022f4,_0x94d16f),this['_diffRootsAttributes']['set'](_0x1022f4,_0x5cbc75);const _0x541399=this['_makeIdsRoot'](_0x94d16f,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x1022f4,_0x541399),_0x212b8a['set'](_0x1022f4,_0x94d16f['isAttached']()?_0x5cbc75:{});for(const [_0x2af4ea,_0x2fb0a9]of _0x94d16f['markers']){if(!_0x2af4ea['startsWith']('revision:'))continue;const _0x48a54b=_0x2af4ea['split'](':')[0x2];for(const _0x58dc33 of _0x2fb0a9['getWalker']({'singleCharacters':!0x0})){const _0x581c5c=this['_getVidAttributeName'](_0x58dc33),_0x57cc2d=this['_revisionId']++,_0x211e65='elementEnd'==_0x58dc33['type']?_0x58dc33['previousPosition']['path']['slice'](0x0,-0x1):_0x58dc33['previousPosition']['path'];_0x541399['getNodeByPath'](_0x211e65)['_setAttribute'](_0x581c5c,_0x57cc2d),this['_touched']['set'](_0x57cc2d,{'userId':_0x48a54b});}}for(const _0x120b63 of this['editor']['model']['createRangeIn'](_0x94d16f)['getWalker']({'singleCharacters':!0x0})){const _0x18757f=this['_getVidAttributeName'](_0x120b63),_0x278e57='elementEnd'==_0x120b63['type']?_0x120b63['previousPosition']['path']['slice'](0x0,-0x1):_0x120b63['previousPosition']['path'],_0x40ffa6=_0x541399['getNodeByPath'](_0x278e57);_0x40ffa6['getAttribute'](_0x18757f)>0x0||_0x40ffa6['_setAttribute'](_0x18757f,_0x3f107a[_0x1bea56++]);}for(const [_0x36f08e,_0x3b1979]of _0x94d16f['markers'])_0x36f08e['startsWith']('revision:')||this['_markers']['set'](_0x36f08e,_0x3b1979);}const _0x4f21e2=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4f21e2),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4f21e2,0x1));const _0x5c44bd=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x5c44bd),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x5c44bd,0x1));const _0x22c0a4=Array['from'](this['_diffRoots'])['map'](([_0xe880c0,_0x3df861])=>[_0xe880c0,T(_0x3df861)]);this['_saveMetaData'](this['_lastTo'],_0x22c0a4,this['_markers'],_0x212b8a);}['_makeModelFromViewString'](_0x2b48f0){const _0x55018c=JSON['parse'](_0x2b48f0),_0x431264=this['editor']['editing']['view']['document'],_0x591525=new _0x6888a3(_0x431264,_0x55018c['map'](_0x53d034=>P(_0x53d034,this['editor'])));return this['editor']['data']['toModel'](_0x591525);}['_saveMetaData'](_0x30ea7f,_0x5a2555,_0x1d89ee,_0x33c95f){const _0x50f8a7=new Map(_0x5a2555),_0x27421c=new Map(_0x312480(_0x33c95f)),_0x2ff117=new Map();for(const [_0x31024e,_0x30158e]of _0x1d89ee)_0x2ff117['set'](_0x31024e,{'start':_0x30158e['start']['clone'](),'end':_0x30158e['end']['clone'](),'rootName':_0x30158e['root']['rootName']});this['_savedMetaData']['set'](_0x30ea7f,{'roots':_0x50f8a7,'markers':_0x2ff117,'rootsAttributes':_0x27421c});}['_removeMetaData'](_0x141264){this['_savedMetaData']['delete'](_0x141264);}['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'](_0x4b8860,_0x3996ac=null){let _0x16d515=null;_0x4b8860['is']('documentFragment')||(_0x16d515=new ut(_0x4b8860['name'],{'vid_start':null===_0x3996ac?this['_revisionId']++:_0x3996ac++}));const _0x1f682a=[];for(const _0x429304 of _0x4b8860['getChildren']())if(_0x429304['is']('element')){_0x1f682a['push'](this['_makeIdsRoot'](_0x429304,_0x3996ac));const _0x202fbe=_0x1f682a[_0x1f682a['length']-0x1];null!==_0x3996ac&&(_0x3996ac=_0x202fbe['is']('element','$text')?_0x202fbe['getAttribute']('vid')+0x1:_0x202fbe['getAttribute']('vid_end')+0x1);}else{for(let _0x3464b0=0x0;_0x3464b0<_0x429304['offsetSize'];_0x3464b0++)_0x1f682a['push'](new ut('$text',{'vid':null===_0x3996ac?this['_revisionId']++:_0x3996ac++}));}if(_0x4b8860['is']('documentFragment')){const _0x30a88a=F(_0x4b8860['rootName']);return _0x30a88a['_insertChild'](0x0,_0x1f682a),_0x30a88a;}return _0x16d515['_setAttribute']('vid_end',null===_0x3996ac?this['_revisionId']++:_0x3996ac++),_0x16d515['_insertChild'](0x0,_0x1f682a),_0x16d515;}['_calculateMetaData'](_0x52f0fb,_0x38e014,_0x3a1838){this['_reset']();const {roots:_0x333f0b,markers:_0xc08149,rootsAttributes:_0x402a5e}=this['_savedMetaData']['get'](_0x52f0fb);this['_baseRoots']=new Map(_0x333f0b),this['_baseRootsAttributes']=new Map(_0x312480(_0x402a5e));for(const [_0x1c9271,_0x188c50]of this['_baseRoots'])if('$graveyard'!==_0x1c9271&&(this['_diffRoots']['set'](_0x1c9271,T(_0x188c50)),this['_diffRootsAttributes']=new Map(_0x312480(_0x402a5e)),_0x3a1838)){const _0x10e1a1=this['_revisionId'];this['_idsRoots']['set'](_0x1c9271,this['_makeIdsRoot'](_0x188c50)),this['_baseIdsRoots']['set'](_0x1c9271,this['_makeIdsRoot'](_0x188c50,_0x10e1a1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x3a1838&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x186411,_0x4fa6e8]of _0xc08149){const _0x17880d=this['_baseRoots']['get'](_0x4fa6e8['rootName']),_0x455bf3=this['_diffRoots']['get'](_0x4fa6e8['rootName']),_0x2342d6=new ft(this['_fixPosition'](_0x4fa6e8['start'],_0x17880d),this['_fixPosition'](_0x4fa6e8['end'],_0x17880d)),_0x111169=this['_fixRange'](_0x2342d6,_0x455bf3);_0x17880d['markers']['set'](_0x186411,_0x2342d6),this['_markers']['set'](_0x186411,_0x111169);}this['_applyOperations'](_0x52f0fb,_0x38e014,_0x3a1838);}['_applyOperations'](_0x5c2ada,_0x3cabff,_0xb7c693){for(const _0x551864 of this['source']['getOperations'](_0x5c2ada,_0x3cabff))this['_handleOperation'](_0x551864,_0xb7c693);for(const _0x17f69f of this['_diffRoots']['values']())_0x17f69f['markers']['clear']();for(const [_0x51c454,_0x326006]of this['_markers']){this['_diffRoots']['get'](_0x326006['root']['rootName'])['markers']['set'](_0x51c454,_0x326006['clone']());}const _0x1bff90=new Map(),_0x2d471a=new Map();for(const [_0x59b466,_0x252069]of this['_diffRoots'])_0x1bff90['set'](_0x59b466,T(_0x252069)),_0x2d471a['set'](_0x59b466,this['_diffRootsAttributes']['get'](_0x59b466));this['_saveMetaData'](_0x3cabff,_0x1bff90,this['_markers'],_0x2d471a);}['_getPreviousFrom'](_0x3e2508){const _0x6b7ba9=Array['from'](this['_savedMetaData']['keys']());_0x6b7ba9['sort']((_0x59d63c,_0x5547f5)=>_0x59d63c-_0x5547f5),_0x6b7ba9['reverse']();for(const _0x407c88 of _0x6b7ba9)if(_0x407c88<_0x3e2508)return _0x407c88;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3bdd97,_0x34eedf){const _0x5180a0=Array['from'](_0x34eedf['markers'])['map'](([_0x56bff7,_0x10a63d])=>[_0x56bff7,this['_fixRange'](_0x10a63d,_0x3bdd97)]);_0x3bdd97['markers']=new Map(_0x5180a0);}['_transformMarkers'](_0x2e0c13){for(const _0x51a47d of this['_markers']['values']()){const _0x34dc3e=_0x51a47d['getTransformedByOperation'](_0x2e0c13),_0x50be43=ft['_createFromRanges'](_0x34dc3e);_0x51a47d['start']=_0x50be43['start'],_0x51a47d['end']=_0x50be43['end'];}}['_handleOperation'](_0x1b9316,_0x5dc9b2){if('addRoot'!=_0x1b9316['type']&&'detachRoot'!=_0x1b9316['type']){if('insert'==_0x1b9316['type']){const _0x573f83=_0x1b9316['position']['root']['rootName'];this['_diffRoots']['has'](_0x573f83)||(this['_diffRoots']['set'](_0x573f83,F(_0x573f83,!0x0)),this['_diffRootsAttributes']['set'](_0x573f83,{}),_0x5dc9b2&&this['_idsRoots']['set'](_0x573f83,F(_0x573f83,!0x0)));}else{if('addRootAttribute'==_0x1b9316['type']||'removeRootAttribute'==_0x1b9316['type']||'changeRootAttribute'==_0x1b9316['type'])return void this['_handleRootAttributeOperation'](_0x1b9316);'marker'==_0x1b9316['type']&&this['_handleMarkerOperation'](_0x1b9316);}if('marker'!==_0x1b9316['type']){const _0x356eb3=this['_cloneOperation'](_0x1b9316,this['_diffRoots']);_0x356eb3['_execute'](),this['_transformMarkers'](_0x356eb3);}if(_0x5dc9b2)switch(_0x1b9316['type']){case'insert':this['_handleInsertOperation'](_0x1b9316);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x1b9316);break;case'merge':this['_handleMergeOperation'](_0x1b9316);break;case'split':this['_handleSplitOperation'](_0x1b9316);}}else this['_handleRootOperation'](_0x1b9316,_0x5dc9b2);}['_cloneOperation'](_0x20a208,_0x145f68){const _0x37a150=_0x20a208['clone']();return _0x37a150['_authorId']=_0x20a208['_authorId'],this['_fixOperation'](_0x37a150,_0x145f68),_0x37a150;}['_getBaseVids'](_0x4c44ed){return _0x4c44ed['map'](_0x27ef23=>{const _0x4cb871=this['_getVidAttributeName'](_0x27ef23);return Number(_0x27ef23['item']['getAttribute'](_0x4cb871));});}['_generateTape'](_0x5c34b5,_0x3c408f){if(_0x5c34b5['is']('element','$text'))_0x3c408f['push']({'item':_0x5c34b5,'type':'text'});else{_0x5c34b5['is']('element')&&_0x3c408f['push']({'item':_0x5c34b5,'type':'elementStart'});for(const _0x163e83 of _0x5c34b5['getChildren']())this['_generateTape'](_0x163e83,_0x3c408f);_0x5c34b5['is']('element')&&_0x3c408f['push']({'item':_0x5c34b5,'type':'elementEnd'});}return _0x3c408f;}['_getState'](){const _0x48785a=new Map(this['_touched']),_0x596915=new Map(_0x48785a),_0x26ebaa=new Map(),_0x18db75={'insertions':{},'deletions':{}},_0xef33f5={'insertions':{},'deletions':{}},_0xd98071=new Map(),_0x5328ad=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5328ad['delete']('$graveyard');for(const _0x4a8f90 of _0x5328ad){const _0x478cc1=this['_diffRoots']['get'](_0x4a8f90)||F(_0x4a8f90,!0x1),_0x2f1293=this['_baseRoots']['get'](_0x4a8f90)||F(_0x4a8f90,!0x1);_0x478cc1['isAttached']()||_0x2f1293['isAttached']()?(_0x18db75['insertions'][_0x4a8f90]=T(_0x478cc1),_0x18db75['deletions'][_0x4a8f90]=T(_0x2f1293),this['_copyMarkers'](_0x18db75['deletions'][_0x4a8f90],_0x2f1293),this['_copyMarkers'](_0x18db75['insertions'][_0x4a8f90],_0x478cc1),_0xef33f5['insertions'][_0x4a8f90]=this['_generateTape'](this['_idsRoots']['get'](_0x4a8f90),[]),_0xef33f5['deletions'][_0x4a8f90]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4a8f90)||F(_0x4a8f90,!0x1),[])):_0x5328ad['delete'](_0x4a8f90);}for(const _0x20f7e9 of _0x5328ad){const _0x40efd6=_0xef33f5['insertions'][_0x20f7e9];for(const _0x579924 of _0x40efd6){const _0x49f0ac=this['_getVidAttributeName'](_0x579924),_0x5bd2b0=_0x579924['item']['getAttribute'](_0x49f0ac);_0x596915['delete'](_0x5bd2b0),_0x5bd2b0>=this['_startingRevisionId']&&_0x26ebaa['set'](_0x5bd2b0,_0x48785a['get'](_0x5bd2b0));}}for(const _0x158a67 of _0x5328ad){const _0xe39778=_0xef33f5['insertions'][_0x158a67],_0x568959=this['_getBaseVids'](_0xef33f5['deletions'][_0x158a67]);let _0x4bd892=0x0;for(const _0xb43e30 of _0xe39778){const _0xa5df1b=this['_getVidAttributeName'](_0xb43e30),_0x1936b9=_0xb43e30['item']['getAttribute'](_0xa5df1b);if(!_0x26ebaa['has'](_0x1936b9)&&!_0xd98071['has'](_0x1936b9)){if(_0x596915['has'](_0x1936b9))_0x4bd892++;else{if(_0x1936b9!=_0x568959[_0x4bd892]){const _0x35fb1d=_0x48785a['get'](_0x1936b9)||_0x48785a['get'](_0x568959[_0x4bd892]);for(;_0x1936b9!=_0x568959[_0x4bd892];)_0x596915['has'](_0x568959[_0x4bd892])||(_0xd98071['set'](_0x568959[_0x4bd892],_0x35fb1d),_0x48785a['set'](_0x568959[_0x4bd892],_0x35fb1d)),_0x4bd892++;}_0x4bd892++;}}}}for(const _0x1a860b of _0x5328ad){const _0x51c0c1=_0xef33f5['insertions'][_0x1a860b];for(const _0x1817fa of _0x51c0c1){const _0x2fb997=this['_getVidAttributeName'](_0x1817fa),_0x180dae=_0x1817fa['item']['getAttribute'](_0x2fb997);if(_0xd98071['has'](_0x180dae)){const _0x43f195=_0xd98071['get'](_0x180dae);_0x596915['has'](_0x180dae)||_0x596915['set'](_0x180dae,{..._0x43f195}),_0x26ebaa['set'](_0x180dae,{..._0x43f195});}}}for(const _0x539e3a of _0x596915['keys']())_0x539e3a>=this['_startingRevisionId']&&_0x596915['delete'](_0x539e3a);const _0x3fbbd4=new Map();for(const _0x354bd5 of _0x5328ad){let _0x47f61a=_0xef33f5['insertions'][_0x354bd5];for(const _0x253395 of _0x47f61a)if(_0x253395['item']['is']('element','tableCell')){const _0x1262c7=this['_getVidAttributeName'](_0x253395),_0x34ade3=_0x253395['item']['getAttribute'](_0x1262c7);if(_0x26ebaa['has'](_0x34ade3)){const _0x275048=_0x253395['item']['parent']['parent']['getAttribute']('vid_start'),_0x38787d=_0x3fbbd4['get'](_0x275048)||new Set();_0x38787d['add'](_0x26ebaa['get'](_0x34ade3)['userId']),_0x3fbbd4['set'](_0x275048,_0x38787d);}}_0x47f61a=_0xef33f5['deletions'][_0x354bd5];for(const _0x35c06a of _0x47f61a)if(_0x35c06a['item']['is']('element','tableCell')){const _0x1535e5=this['_getVidAttributeName'](_0x35c06a),_0x41bd7b=_0x35c06a['item']['getAttribute'](_0x1535e5);if(_0x596915['has'](_0x41bd7b)){const _0x456b99=_0x35c06a['item']['parent']['parent']['getAttribute']('vid_start'),_0x9a4b0=_0x3fbbd4['get'](_0x456b99)||new Set();_0x9a4b0['add'](_0x596915['get'](_0x41bd7b)['userId']),_0x3fbbd4['set'](_0x456b99,_0x9a4b0);}}for(const _0x333f9c of _0x3fbbd4['keys']())(_0x26ebaa['has'](_0x333f9c)||_0x596915['has'](_0x333f9c))&&_0x3fbbd4['delete'](_0x333f9c);}for(const _0x624daf of _0x5328ad){const _0x4966c9=_0xef33f5['insertions'][_0x624daf];let _0x313924=null,_0x290873=null;for(const _0x32a3a0 of _0x4966c9){const _0x4ab3f6=this['_getVidAttributeName'](_0x32a3a0),_0x3bbefd=_0x32a3a0['item']['getAttribute'](_0x4ab3f6),_0x51cdcb=_0x3fbbd4['get'](_0x3bbefd);_0x51cdcb&&'elementStart'==_0x32a3a0['type']&&(_0x313924=Array['from'](_0x51cdcb)[0x0],_0x290873=_0x32a3a0['item']['getAttribute']('vid_end')),_0x313924&&(_0x596915['set'](_0x3bbefd,{'userId':_0x313924}),_0x26ebaa['set'](_0x3bbefd,{'userId':_0x313924})),_0x3bbefd==_0x290873&&(_0x313924=null,_0x290873=null);}}const _0x4b539a={},_0x5d2c0c=new Set();for(const _0x1b52fe of _0x5328ad){const _0x473e4c=_0x18db75['deletions'][_0x1b52fe],_0x4edc99=_0x18db75['insertions'][_0x1b52fe];for(const {userId:_0x15ef42}of this['_touchedMarkers']['values']())null!==_0x15ef42&&_0x5d2c0c['add'](_0x15ef42);for(const {userId:_0x119bd3}of this['_touchedRoots']['values']())null!==_0x119bd3&&_0x5d2c0c['add'](_0x119bd3);this['_markChanges'](_0x4edc99,_0xef33f5['insertions'][_0x1b52fe],_0x26ebaa,'insertion',_0x5d2c0c),this['_markChanges'](_0x473e4c,_0xef33f5['deletions'][_0x1b52fe],_0x596915,'deletion',_0x5d2c0c),_0x4b539a[_0x1b52fe]={'insertions':this['_prepareViewToSave'](_0x4edc99),'deletions':this['_prepareViewToSave'](_0x473e4c),'attachChange':this['_touchedRoots']['get'](_0x1b52fe)||null,'attributesBefore':_0x312480(this['_baseRootsAttributes']['get'](_0x1b52fe))||{},'attributesAfter':_0x312480(this['_diffRootsAttributes']['get'](_0x1b52fe))};}return{'diffData':_0x4b539a,'authorsIds':Array['from'](_0x5d2c0c)};}['_processRootBeforeSave'](_0x2eade8){for(const [,_0x4c9260]of _0x2eade8['markers']){const _0x16e6ed=_0x4c9260['start']['getAncestors']()['filter'](_0x27f9a0=>'tableCell'==_0x27f9a0['name']);for(const _0x2a20d1 of _0x16e6ed)0x1==_0x2a20d1['childCount']&&_0x2a20d1['getChild'](0x0)['is']('element','paragraph')&&_0x2a20d1['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x43cc2b){this['_processRootBeforeSave'](_0x43cc2b);const _0x27e312=this['editor']['data']['toView'](_0x43cc2b,{}),_0x41e389=Array['from'](_0x27e312['getChildren']())['map'](_0x475c95=>this['_getViewJson'](_0x475c95));return JSON['stringify'](_0x41e389);}['_getViewJson'](_0x31905b){if(_0x31905b['is']('$text'))return _0x31905b['data'];{const _0x5eac8c=_0x31905b;return{'type':Object['keys'](E)['find'](_0x8b6ea6=>_0x31905b instanceof E[_0x8b6ea6]),'name':_0x5eac8c['name'],'attributes':Array['from'](_0x5eac8c['getAttributes']()),'children':Array['from'](_0x5eac8c['getChildren']())['map'](_0x23f881=>this['_getViewJson'](_0x23f881))};}}['_markChanges'](_0x169944,_0x1f0734,_0x295e29,_0x5f107f,_0xc5d007){let _0x578851=null,_0x231c07=null,_0x5a8e0d=0x0;const _0x556f8e=this['editor']['model'];for(let _0x514ed4=0x0;_0x514ed4<_0x1f0734['length'];_0x514ed4++){const _0x135a2d=this['_getVidAttributeName'](_0x1f0734[_0x514ed4]),_0x5cce0a=_0x1f0734[_0x514ed4]['item']['getAttribute'](_0x135a2d),_0x9e95e4=_0x295e29['get'](_0x5cce0a),_0x2abc0b=_0x514ed4==_0x1f0734['length']-0x1;(!_0x578851&&_0x9e95e4&&(_0x578851=_0x9e95e4,_0x231c07=_0x1f0734[_0x514ed4]),_0x578851&&(!_0x9e95e4||_0x9e95e4['userId']!=_0x578851['userId']))&&(_0x4c4eba(_0x9e95e4,B(_0x231c07,_0x169944,_0x556f8e),B(_0x1f0734[_0x514ed4],_0x169944,_0x556f8e)),_0x578851=_0x9e95e4||null,_0x231c07=_0x9e95e4?_0x1f0734[_0x514ed4]:null),_0x578851&&_0x2abc0b&&_0x4c4eba(_0x9e95e4,B(_0x231c07,_0x169944,_0x556f8e),J(_0x1f0734[_0x514ed4],_0x169944,_0x556f8e));}function _0x4c4eba(_0x2784ff,_0x1eb151,_0x5755ec){const _0x4fef61=_0x578851['userId'],_0x11b3e6='revision:'+_0x5f107f+':'+_0x4fef61+':'+_0x5a8e0d++,_0x528ca7=_0x556f8e['createRange'](_0x1eb151,_0x5755ec);_0x169944['markers']['set'](_0x11b3e6,_0x528ca7),null!==_0x4fef61&&_0xc5d007['add'](_0x4fef61);}}['_getVidAttributeName'](_0x599593){switch(_0x599593['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5c3d75,_0x1d2f7a){_0x5c3d75['baseVersion']=null;for(const _0x4f166d in _0x5c3d75){const _0x1ae891=_0x5c3d75[_0x4f166d];if(_0x1ae891 instanceof vt){const _0x2a308c=_0x1d2f7a['get'](_0x1ae891['root']['rootName']);_0x5c3d75[_0x4f166d]=this['_fixPosition'](_0x1ae891,_0x2a308c);}if(_0x1ae891 instanceof ft){const _0x426fbd=_0x1d2f7a['get'](_0x1ae891['root']['rootName']);_0x5c3d75[_0x4f166d]=this['_fixRange'](_0x1ae891,_0x426fbd);}'root'===_0x4f166d&&(_0x5c3d75['root']=_0x1d2f7a['get'](_0x5c3d75['root']['rootName']));}}['_fixRange'](_0x3c0433,_0x532011){return this['editor']['model']['createRange'](this['_fixPosition'](_0x3c0433['start'],_0x532011),this['_fixPosition'](_0x3c0433['end'],_0x532011));}['_fixPosition'](_0x203db2,_0x41ce82){return this['editor']['model']['createPositionFromPath'](_0x41ce82,_0x203db2['path'],_0x203db2['stickiness']);}['_handleInsertOperation'](_0x36c4ac){const _0x161db6=this['_idsRoots']['get'](_0x36c4ac['position']['root']['rootName']),_0x54416e=this['_fixPosition'](_0x36c4ac['position'],_0x161db6),_0x307ae3=null===_0x36c4ac['_authorId']?null:_0x36c4ac['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x45faf1=_0x54416e['parent'],_0x5d990b=this['_revisionId'],_0x5327a9=[];for(const _0x72502a of _0x36c4ac['nodes'])if(_0x72502a['is']('element'))_0x5327a9['push'](this['_makeIdsRoot'](_0x72502a));else{for(let _0x5dfd4d=0x0;_0x5dfd4d<_0x72502a['offsetSize'];_0x5dfd4d++)_0x5327a9['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x1d2363=this['_revisionId'];for(let _0x5ed416=_0x5d990b;_0x5ed416<_0x1d2363;_0x5ed416++)this['_touched']['set'](_0x5ed416,{'userId':_0x307ae3});_0x45faf1['_insertChild'](_0x54416e['offset'],_0x5327a9);}['_handleMoveOperation'](_0x5a2c69){(_0x5a2c69=this['_cloneOperation'](_0x5a2c69,this['_idsRoots']))['_execute']();const _0x2cbea5=null===_0x5a2c69['_authorId']?null:_0x5a2c69['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x46b009=_0x5a2c69['getMovedRangeStart'](),_0x35ffa1=_0x46b009['parent'],_0x221a68=_0x46b009['offset'];!function _0x12a97f(_0xb28424,_0x71006e,_0x53e0b1,_0x35de35){for(let _0x54e93a=_0x53e0b1;_0x54e93a<_0x35de35;_0x54e93a++){const _0x5e0463=_0x71006e['getChild'](_0x54e93a);_0x5e0463['is']('element','$text')?_0xb28424['set'](_0x5e0463['getAttribute']('vid'),{'userId':_0x2cbea5}):(_0xb28424['set'](_0x5e0463['getAttribute']('vid_start'),{'userId':_0x2cbea5}),_0x12a97f(_0xb28424,_0x5e0463,0x0,_0x5e0463['childCount']),_0xb28424['set'](_0x5e0463['getAttribute']('vid_end'),{'userId':_0x2cbea5}));}}(this['_touched'],_0x35ffa1,_0x221a68,_0x221a68+_0x5a2c69['howMany']);}['_handleMergeOperation'](_0x5aba50){const _0x3d257a=null===(_0x5aba50=this['_cloneOperation'](_0x5aba50,this['_idsRoots']))['_authorId']?null:_0x5aba50['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2467b3=_0x5aba50['targetPosition']['parent'],_0x292faa=_0x5aba50['sourcePosition']['parent'],_0x11705a=_0x2467b3['getAttribute']('vid_end'),_0x16946d=_0x292faa['getAttribute']('vid_start');_0x2467b3['_setAttribute']('vid_end',_0x292faa['getAttribute']('vid_end')),_0x292faa['_setAttribute']('vid_end',_0x11705a),this['_touched']['set'](_0x16946d,{'userId':_0x3d257a}),this['_touched']['set'](_0x11705a,{'userId':_0x3d257a}),_0x5aba50['_execute']();}['_handleSplitOperation'](_0x393b11){const _0x28ff56=null===(_0x393b11=this['_cloneOperation'](_0x393b11,this['_idsRoots']))['_authorId']?null:_0x393b11['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2244b6=_0x393b11['graveyardPosition'],_0x11e2ee=_0x393b11['splitPosition']['parent'];_0x393b11['_execute']();const _0x493435=_0x11e2ee['getAttribute']('vid_end'),_0x3f73bf=_0x393b11['insertionPosition']['nodeAfter'];if(_0x2244b6){const _0x1afc5c=_0x3f73bf['getAttribute']('vid_end'),_0x4a4624=_0x11e2ee['getAttribute']('vid_end');_0x11e2ee['_setAttribute']('vid_end',_0x1afc5c),_0x3f73bf['_setAttribute']('vid_end',_0x4a4624),this['_touched']['set'](_0x11e2ee['getAttribute']('vid_end'),{'userId':_0x28ff56}),this['_touched']['set'](_0x3f73bf['getAttribute']('vid_start'),{'userId':_0x28ff56});}else{const _0x2da05a=this['_revisionId']++,_0x262021=this['_revisionId']++;_0x11e2ee['_setAttribute']('vid_end',_0x2da05a),_0x3f73bf['_setAttribute']('vid_start',_0x262021),_0x3f73bf['_setAttribute']('vid_end',_0x493435),this['_touched']['set'](_0x2da05a,{'userId':_0x28ff56}),this['_touched']['set'](_0x262021,{'userId':_0x28ff56});}}['_handleMarkerOperation'](_0x3b0042){if(!_0x3b0042['affectsData'])return;const _0x34b0b8=(_0x3b0042=this['_cloneOperation'](_0x3b0042,this['_diffRoots']))['oldRange']?_0x3b0042['oldRange']['root']:null,_0x2f610f=_0x3b0042['newRange']?_0x3b0042['newRange']['root']:null;_0x34b0b8&&this['_markers']['delete'](_0x3b0042['name']),_0x2f610f&&this['_markers']['set'](_0x3b0042['name'],_0x3b0042['newRange']['clone']());const _0x3ef283=null===_0x3b0042['_authorId']?null:_0x3b0042['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x430c26=_0x3b0042['name'];if(!this['_touchedMarkers']['has'](_0x430c26))return void this['_touchedMarkers']['set'](_0x430c26,{'range':_0x3b0042['oldRange'],'userId':_0x3ef283});const _0x17f066=this['_touchedMarkers']['get'](_0x430c26),_0x122b3b=_0x17f066['range'],_0x221bd5=_0x3b0042['newRange'];null==_0x122b3b&&null==_0x221bd5||_0x122b3b&&_0x221bd5&&_0x122b3b['isEqual'](_0x221bd5)?this['_touchedMarkers']['delete'](_0x3b0042['name']):_0x17f066['userId']=_0x3ef283;}['_handleRootOperation'](_0x2308ba,_0x4fb7cd){this['_diffRoots']['has'](_0x2308ba['rootName'])?this['_diffRoots']['get'](_0x2308ba['rootName'])['_isAttached']=_0x2308ba['isAdd']:(this['_diffRoots']['set'](_0x2308ba['rootName'],F(_0x2308ba['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x2308ba['rootName'],{}),_0x4fb7cd&&this['_idsRoots']['set'](_0x2308ba['rootName'],F(_0x2308ba['rootName'],!0x0)));const _0x5aaa20=null===_0x2308ba['_authorId']?null:_0x2308ba['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcd95c7=this['_touchedRoots']['get'](_0x2308ba['rootName']);_0xcd95c7&&_0xcd95c7['userId']===_0x5aaa20?this['_touchedRoots']['delete'](_0x2308ba['rootName']):this['_touchedRoots']['set'](_0x2308ba['rootName'],{'userId':_0x5aaa20,'isAttached':_0x2308ba['isAdd']});}['_handleRootAttributeOperation'](_0xd713f4){const _0x5f3054=this['_diffRootsAttributes']['get'](_0xd713f4['root']['rootName']);null===_0xd713f4['newValue']?delete _0x5f3054[_0xd713f4['key']]:_0x5f3054[_0xd713f4['key']]=_0xd713f4['newValue'];}}function T(_0x339d7c){const _0x403d72=F(_0x339d7c['rootName'],_0x339d7c['isAttached']());for(const _0x4e8645 of _0x339d7c['getChildren']()){const _0x38134c=_0x4e8645['_clone'](!0x0);_0x403d72['_appendChild'](_0x38134c);}return _0x403d72;}function F(_0x44bc8d,_0x25648d=!0x0){const _0x31526a=new gt();return _0x31526a['rootName']=_0x44bc8d,_0x31526a['_isAttached']=_0x25648d,_0x31526a['isAttached']=()=>_0x31526a['_isAttached'],_0x31526a;}function B(_0x2cb733,_0x229bbc,_0x485db9){const _0xc191be='elementEnd'==_0x2cb733['type']?_0x485db9['createPositionAt'](_0x2cb733['item'],'end'):_0x485db9['createPositionBefore'](_0x2cb733['item']);return _0x485db9['createPositionFromPath'](_0x229bbc,_0xc191be['path'],_0xc191be['stickiness']);}function J(_0x2a2b33,_0x475016,_0x4a7803){const _0x1a855e='elementStart'==_0x2a2b33['type']?_0x4a7803['createPositionAt'](_0x2a2b33['item'],0x0):_0x4a7803['createPositionAfter'](_0x2a2b33['item']);return _0x4a7803['createPositionFromPath'](_0x475016,_0x1a855e['path'],_0x1a855e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x579811,_0x16d60c){super(_0x579811),this['focusTracker']=new _0x31fd42(),this['keystrokes']=new _0x18dafe(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x16d60c),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x45c363(this);}['render'](){super['render'](),_0x572278({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x449aa0=_0x674b3d=>_0x674b3d['stopPropagation']();this['keystrokes']['set']('arrowright',_0x449aa0),this['keystrokes']['set']('arrowleft',_0x449aa0),this['keystrokes']['set']('arrowup',_0x449aa0),this['keystrokes']['set']('arrowdown',_0x449aa0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1fef0d){this['revisionNameInputView']['fieldView']['element']['value']=_0x1fef0d['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2c44da){const _0x121c9e=new _0x2de467(this['locale'],_0xb71fd5),_0x5764bd=_0x121c9e['fieldView'];_0x5764bd['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x41878d=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2c44da&&(_0x41878d+='\x20('+m(this['locale'],'optional')+')'),(_0x121c9e['label']=_0x41878d,_0x5764bd['on']('input',()=>{this['revisionNameInputValue']=_0x5764bd['element']['value']['trim']();}),_0x121c9e);}}class f extends _0x34aee2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5aaa2e=this['editor'],_0x5d85b8=_0x5aaa2e['plugins']['get']('RevisionTracker');_0x5aaa2e['ui']['componentFactory']['add']('revisionHistory',_0x1bd9ea=>{const _0x3d15a5=_0x323fc5(_0x1bd9ea),_0x5a5e6f=_0x3d15a5['panelView']['children'],_0x2ac2b8=new _0x66c3ad(_0x1bd9ea),_0x451953=new _0x1da26e(_0x1bd9ea),_0x26382c=new te(_0x1bd9ea),_0x2b147e=new _0x1da26e(_0x1bd9ea),_0x2d4c1a=new te(_0x1bd9ea);return _0x3d15a5['bind']('isEnabled')['to'](_0x5d85b8,'isReady',_0x5d85b8,'isEnabled',_0x5aaa2e,'isReadOnly',(_0xa221b3,_0xdd19b2,_0x1d4047)=>_0xa221b3&&_0xdd19b2&&!_0x1d4047),_0x3d15a5['buttonView']['set']({'icon':_0x495bf5,'label':m(_0x1bd9ea,'Revision\x20history'),'tooltip':!0x0}),_0x26382c['set']({'label':m(_0x1bd9ea,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x26382c['bind']('isEnabled')['to'](_0x5d85b8,'isReady',_0x5d85b8,'isEnabled',_0x5aaa2e,'isReadOnly',(_0xc180e5,_0x4da10e,_0x50afb3)=>_0xc180e5&&_0x4da10e&&!_0x50afb3),_0x26382c['on']('execute',()=>this['_showDialog']()),_0x2d4c1a['set']({'label':m(_0x1bd9ea,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x2d4c1a['bind']('isEnabled')['to'](_0x5d85b8,'isReady',_0x5aaa2e,'isReadOnly',(_0x1662dd,_0x51686f)=>_0x1662dd&&!_0x51686f),_0x2d4c1a['on']('execute',()=>{_0x5aaa2e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3d15a5['isOpen']=!0x1,_0x5aaa2e['editing']['view']['focus']();}),_0x451953['children']['add'](_0x26382c),_0x2b147e['children']['add'](_0x2d4c1a),_0x2ac2b8['role']='menu',_0x2ac2b8['items']['addMany']([_0x451953,_0x2b147e]),_0x5a5e6f['add'](_0x2ac2b8),_0x3d15a5;}),_0x5aaa2e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1777d6=this['editor'],_0x1f1925=_0x1777d6['locale'],_0x510444=new _0x348fba(_0x1f1925),_0x3bfcf8=new _0x5727b3(_0x1f1925);_0x510444['buttonView']['set']({'icon':_0x495bf5,'label':m(_0x1f1925,'Revision\x20history')});const _0x364e26=new _0x24665d(_0x1f1925,_0x510444),_0x4fb6f2=new _0x152404(_0x1f1925);_0x4fb6f2['set']({'label':m(_0x1f1925,'Save\x20current\x20revision')}),_0x4fb6f2['delegate']('execute')['to'](_0x510444),_0x4fb6f2['on']('execute',()=>{this['_showDialog']();}),_0x364e26['children']['add'](_0x4fb6f2),_0x3bfcf8['items']['add'](_0x364e26);const _0x60cd8e=new _0x24665d(_0x1f1925,_0x510444),_0x213196=new _0x152404(_0x1f1925);return _0x213196['set']({'label':m(_0x1f1925,'Open\x20revision\x20history')}),_0x213196['delegate']('execute')['to'](_0x510444),_0x213196['on']('execute',()=>{_0x1777d6['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x60cd8e['children']['add'](_0x213196),_0x3bfcf8['items']['add'](_0x60cd8e),_0x510444['panelView']['children']['add'](_0x3bfcf8),_0x510444;}['_showDialog'](){const _0x23437b=this['editor'],_0x4d641d=_0x23437b['locale'],_0x300102=_0x23437b['plugins']['get']('Dialog'),_0x1f3ccf=_0x23437b['plugins']['get']('RevisionTracker');function _0x4c214e(_0x11e3cc){_0x23437b['config']['get']('revisionHistory.requireRevisionName')&&''===_0x11e3cc['revisionName']?_0x11e3cc['revisionNameInputView']['errorText']=m(_0x4d641d,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x23437b['plugins']['get'](u)['saveRevision']({'name':_0x11e3cc['revisionName']}),_0x300102['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x4c214e(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x300102['show']({'id':'revisionSave','title':m(_0x4d641d,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x23437b['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x300102['hide']()},{'label':m(_0x23437b['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5949f7){_0x5949f7['bind']('isEnabled')['to'](_0x1f3ccf,'isReady',_0x1f3ccf,'isEnabled',_0x23437b,'isReadOnly',(_0x244ea8,_0xa9605b,_0x13937b)=>_0x244ea8&&_0xa9605b&&!_0x13937b);},'onExecute':()=>_0x4c214e(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x44fde6=this['editor'],_0x15054b=_0x44fde6['locale'];this['_saveRevisionFormView']=new hs(_0x15054b,_0x44fde6['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends ts{['changeId'];['_model'];constructor(_0x586612,_0x556c20){super(_0x586612),this['_model']=_0x556c20,this['changeId']=_0x556c20['id'];const _0x515ed2=this['bindTemplate'],_0xf254ad=m(_0x586612,_0x556c20['data']['isSuggestion']?'Suggested\x20by':'add'==_0x556c20['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x556c20['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x515ed2['to']('type',_0x14acc1=>'ck-revision-change__'+_0x14acc1)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xf254ad}]},{'text':'\x20'+_0x556c20['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x1b5ddc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xa380fa){super(),this['id']=_0xa380fa['id']||_0x59cdb0(),this['author']=_0xa380fa['author'],this['type']=_0xa380fa['type'],this['data']=_0xa380fa['data']||{},this['rootName']=_0xa380fa['rootName'],this['set']('createdAt',_0xa380fa['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(_0xefe709,_0x3af3af){this['newRevisionId']=_0xefe709,this['oldRevisionId']=_0x3af3af,this['changes']=new _0x241ac4();}['_setChanges'](_0x2bcd01){for(const _0x140b5f of _0x2bcd01)this['changes']['add'](_0x140b5f);}}const Y={'c':_0x466714,'a':_0x50da04,'e':_0x3f014f,'r':_0x349135,'u':_0x415c93};class d extends _0x34aee2{['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[_0x5bd49c,_0x1351b9,j];}constructor(_0x232cda){super(_0x232cda),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',(_0x7e57da,_0x12caa2,_0x3549d0)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3e2a88=>{for(const _0x4b404c of this['editor']['editing']['view']['document']['roots'])_0x3549d0?_0x3e2a88['removeClass']('ck-editor__editable__overlay',_0x4b404c):_0x3e2a88['addClass']('ck-editor__editable__overlay',_0x4b404c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x4816f0=>null!==_0x4816f0),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4f6164,_0x1c9be8,_0x1a5a83)=>_0x4f6164&&_0x1a5a83?_0x1c9be8['changes']['getIndex'](_0x1a5a83):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x40d6a0,_0x2114f5)=>_0x40d6a0?_0x2114f5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1351b9);}['init'](){const _0xc41533=this['editor'],_0x4410b3=new _t(_0xc41533,{'direction':'backward'}),_0x541dcc=new _t(_0xc41533,{'direction':'forward'});(_0xc41533['commands']['add']('showPreviousChange',_0x4410b3),_0xc41533['commands']['add']('showNextChange',_0x541dcc),_0xc41533['commands']['add']('restoreRevision',new wt(_0xc41533)),this['on']('change:numberOfChanges',()=>{_0x4410b3['refresh'](),_0x541dcc['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0xc41533['enableReadOnlyMode']('revision-viewer'),_0xc41533['plugins']['has']('WidgetToolbarRepository'))&&_0xc41533['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x2a2d99){await this['loadRevisionData'](_0x2a2d99);const _0x460fe6={};for(const _0x15f3b2 in _0x2a2d99['diffData']){if(_0x2a2d99['diffData'][_0x15f3b2]['attachChange']&&!_0x2a2d99['diffData'][_0x15f3b2]['attachChange']['isAttached'])continue;const _0xd039b7=this['_removeRevisionMarkers'](JSON['parse'](_0x2a2d99['diffData'][_0x15f3b2]['insertions'])),_0x53e3cf=this['editor']['editing']['view']['document'],_0x16d081=new _0x6888a3(_0x53e3cf,_0xd039b7['map'](_0x6c06dc=>this['_getViewObj'](_0x6c06dc)));this['editor']['data']['processor']['useFillerType']('marked'),_0x460fe6[_0x15f3b2]=this['editor']['data']['processor']['toData'](_0x16d081),this['editor']['data']['processor']['useFillerType']('default');}return _0x460fe6;}async['getRevisionRootsAttributes'](_0x2d520f){await this['loadRevisionData'](_0x2d520f);const _0x3af8fb={};for(const _0xae2dd0 in _0x2d520f['diffData'])_0x2d520f['diffData'][_0xae2dd0]['attachChange']&&!_0x2d520f['diffData'][_0xae2dd0]['attachChange']['isAttached']||(_0x3af8fb[_0xae2dd0]=_0x2d520f['diffData'][_0xae2dd0]['attributesAfter']||{});return _0x3af8fb;}['_removeRevisionMarkers'](_0x34e246){return(_0x34e246=_0x34e246['filter'](_0x5ad0c7=>!_0x5ad0c7['name']||'revision-start'!==_0x5ad0c7['name']&&'revision-end'!==_0x5ad0c7['name']))['forEach'](_0x4b8904=>{'string'!=typeof _0x4b8904&&(_0x4b8904['children']=this['_removeRevisionMarkers'](_0x4b8904['children']),_0x4b8904['attributes']=_0x4b8904['attributes']['filter'](_0x20b362=>!_0x20b362[0x0]['startsWith']('data-revision-')));}),_0x34e246;}async['compare'](_0x4b3012,_0x2b44cc,_0x188544=!0x1){if(!this['isEnabled'])return;const _0x2200e4=this['diff'],_0x331764=this['repository'],_0x14df22='string'==typeof _0x4b3012?_0x331764['getRevision'](_0x4b3012):_0x4b3012,_0x4362b8='string'==typeof _0x2b44cc?_0x331764['getRevision'](_0x2b44cc):_0x2b44cc,_0x1ba697=_0x14df22['id'],_0x2f3957=_0x4362b8?_0x4362b8['id']:null;if(!_0x188544&&this['diff']&&this['diff']['newRevisionId']===_0x1ba697&&this['diff']['oldRevisionId']===_0x2f3957)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x1ba697,_0x2f3957);const _0x42c86=this['_getRevisionsRange'](_0x14df22,_0x4362b8,!0x0)['map'](_0x4f0cbd=>this['loadRevisionData'](_0x4f0cbd));return _0x42c86['push'](new Promise(_0x670e50=>{setTimeout(_0x670e50,0x14);})),Promise['all'](_0x42c86)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x38d767=this['_getDiff'](_0x1ba697,_0x2f3957);for(const _0x160371 of _0x38d767['changes'])this['_changeIdToChange']['set'](_0x160371['id'],_0x160371);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1711ee=>{for(const _0x26edb6 of this['editor']['model']['document']['getRootNames']())_0x1711ee['detachRoot'](_0x26edb6);for(const _0x3f3e54 of Object['keys'](_0x38d767['model'])){const _0x4c46dc=_0x1711ee['addRoot'](_0x3f3e54);for(const _0x2d215a of Object['keys'](_0x38d767['attributes'][_0x3f3e54]))_0x1711ee['setAttribute'](_0x2d215a,_0x38d767['attributes'][_0x3f3e54][_0x2d215a],_0x4c46dc);_0x1711ee['insert'](_0x38d767['model'][_0x3f3e54],_0x4c46dc,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x38d767['changes'])),this['isReady']=!0x0;})['catch'](_0x567e2c=>{console['error'](_0x567e2c),this['_cleanUp'](),_0x2200e4&&(this['diff']=_0x2200e4),this['isReady']=!0x0;});}['addRevisionData'](_0x4541c3,_0x2075e1){const _0x2dba18=this['repository']['createRevision'](_0x4541c3);return _0x2dba18['on']('_update',(_0x4f7a63,_0x3e4542,_0x52bbcd)=>_0x2075e1(_0x3e4542,_0x52bbcd,_0x2dba18)),this['repository']['addRevision'](_0x2dba18),_0x2dba18;}['loadRevisionData'](_0x20f37a){if(!_0x20f37a||_0x20f37a['diffData'])return Promise['resolve']();{const _0x2b2bb6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x2b2bb6,'revisionId':_0x20f37a['id']})['then'](_0xb3402d=>{_0x20f37a['_update']({'diffData':_0xb3402d['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},_0x210959=>{for(const _0x4b2dfa of this['editor']['model']['document']['getRootNames']())_0x210959['detachRoot'](_0x4b2dfa);});}['_sortAndFilterDiffChanges'](_0x498c52){const _0x331bf4=[],_0x4399fc=new Map();for(const _0x1e047c of this['editor']['model']['document']['getRootNames']()){const _0x220b0a=this['editor']['editing']['view']['getDomRoot'](_0x1e047c);if(!_0x220b0a)continue;const _0x515c60=_0x220b0a['getClientRects']()['item'](0x0);_0x515c60&&(_0x331bf4['push'](_0x1e047c),_0x4399fc['set'](_0x1e047c,_0x515c60));}return _0x331bf4['sort']((_0x2bd5ab,_0x5e76e3)=>{const _0x2deeec=_0x4399fc['get'](_0x2bd5ab),_0x529deb=_0x4399fc['get'](_0x5e76e3);return _0x2deeec['y']-_0x529deb['y']||_0x2deeec['x']-_0x529deb['x'];}),(_0x498c52=_0x498c52['filter'](_0x31763b=>_0x331bf4['includes'](_0x31763b['rootName'])))['sort']((_0x56b3e1,_0x35468a)=>_0x331bf4['indexOf'](_0x56b3e1['rootName'])-_0x331bf4['indexOf'](_0x35468a['rootName'])),_0x498c52;}['_makeTape'](_0x1c1b2a){const _0x31038a=Array['from'](_0x1c1b2a['markers'])['filter'](([_0x5d387c,_0x3c7e5f])=>_0x5d387c['startsWith']('revision:')&&!_0x3c7e5f['isCollapsed']),_0x130c78=Array['from'](this['editor']['model']['createRangeIn'](_0x1c1b2a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x31038a['length'])for(const _0x5108b7 of _0x130c78){const [_0x4ef0cf,_0xf61017]=_0x31038a[0x0],[,_0x1ba1f2,_0xab1343]=_0x4ef0cf['split'](':');if(_0xf61017['end']['isEqual'](_0x5108b7['nextPosition'])&&_0x31038a['shift'](),(_0x5108b7['previousPosition']['isEqual'](_0xf61017['start'])||_0x5108b7['previousPosition']['isAfter'](_0xf61017['start']))&&('insertion'==_0x1ba1f2?_0x5108b7['isAdded']={'userId':_0xab1343}:'deletion'==_0x1ba1f2&&(_0x5108b7['isRemoved']={'userId':_0xab1343})),0x0==_0x31038a['length'])break;}return _0x130c78;}['_refreshStartEndIndex'](_0xe4ef53){const _0xfbacad=new Map();for(let _0x410a3a=0x0;_0x410a3a<_0xe4ef53['length'];_0x410a3a++)'text'===_0xe4ef53[_0x410a3a]['type']?(_0xe4ef53[_0x410a3a]['item']['startIndex']=_0x410a3a,_0xe4ef53[_0x410a3a]['item']['endIndex']=_0x410a3a):('elementStart'===_0xe4ef53[_0x410a3a]['type']?_0xe4ef53[_0x410a3a]['item']['startIndex']=_0x410a3a:'elementEnd'===_0xe4ef53[_0x410a3a]['type']&&(_0xe4ef53[_0x410a3a]['item']['endIndex']=_0x410a3a),_0xfbacad['set'](_0xe4ef53[_0x410a3a]['id'],_0x410a3a));for(const _0x1f23e4 of _0xfbacad['values']())'elementStart'===_0xe4ef53[_0x1f23e4]['type']?_0xe4ef53[_0x1f23e4]['item']['endIndex']=_0xfbacad['get'](_0xe4ef53[_0x1f23e4]['pairId']):'elementEnd'===_0xe4ef53[_0x1f23e4]['type']&&(_0xe4ef53[_0x1f23e4]['item']['startIndex']=_0xfbacad['get'](_0xe4ef53[_0x1f23e4]['pairId']));}['_processTape'](_0x4d12df){for(let _0x1b8b82=0x0;_0x1b8b82<_0x4d12df['length'];_0x1b8b82++){if('elementStart'===_0x4d12df[_0x1b8b82]['type'])_0x4d12df[_0x1b8b82]['item']['startIndex']=_0x1b8b82;else{if('elementEnd'===_0x4d12df[_0x1b8b82]['type']){_0x4d12df[_0x1b8b82]['item']['endIndex']=_0x1b8b82;const _0x425f8f=_0x4d12df[_0x1b8b82]['item']['startIndex'];_0x4d12df[_0x425f8f]['pairId']=_0x4d12df[_0x1b8b82]['id'],_0x4d12df[_0x1b8b82]['pairId']=_0x4d12df[_0x425f8f]['id'];}else _0x4d12df[_0x1b8b82]['item']['startIndex']=_0x1b8b82,_0x4d12df[_0x1b8b82]['item']['endIndex']=_0x1b8b82,_0x4d12df[_0x1b8b82]['pairId']=null;}_0x4d12df[_0x1b8b82]['markersStart']||(_0x4d12df[_0x1b8b82]['markersStart']=[],_0x4d12df[_0x1b8b82]['markersEnd']=[]);}}['_markInsertions'](_0x61b712,_0x474083){const _0x3c615c=_0x61b712['filter'](_0x544563=>!_0x544563['isAdded']);for(let _0x194add=0x0;_0x194add<_0x474083['length'];_0x194add++)_0x474083[_0x194add]['isAdded']&&(_0x3c615c[_0x194add]['isAdded']=_0x474083[_0x194add]['isAdded']);}['_makeModelFromViewString'](_0x230701){const _0x5b29d8=JSON['parse'](_0x230701),_0x5c1191=this['editor']['editing']['view']['document'],_0x30bdd2=new _0x6888a3(_0x5c1191,_0x5b29d8['map'](_0x250f17=>this['_getViewObj'](_0x250f17)));return this['editor']['data']['toModel'](_0x30bdd2);}['_getViewObj'](_0x3d74c2){const _0x24aea7=this['editor']['editing']['view']['document'];if('string'==typeof _0x3d74c2)return new _0x24c62c(_0x24aea7,_0x3d74c2);{const _0x5671e4=_0x3d74c2['children']['map'](_0x1a1d28=>this['_getViewObj'](_0x1a1d28));return new(Y[_0x3d74c2['type']]||_0x40ee58)(_0x24aea7,_0x3d74c2['name'],_0x3d74c2['attributes'],_0x5671e4);}}['_getDiff'](_0x3fc8b7,_0x19dcde=null){const _0x75aa89=this['repository']['getRevision'](_0x3fc8b7),_0x118a87=_0x19dcde?this['repository']['getRevision'](_0x19dcde):null,_0x55252f=this['_getRevisionsRange'](_0x75aa89,_0x118a87),_0x26f70d=_0x55252f[_0x55252f['length']-0x1],_0x30b3ed=new Map(),_0xfbf4f8={'model':{},'attributes':{},'changes':[]},_0x375bc1=new Set(),_0x84ec4e=new Map();for(let _0x5ee5ec=_0x55252f['length']-0x1;_0x5ee5ec>=0x0;_0x5ee5ec--){const _0x1ab36d=_0x55252f[_0x5ee5ec];for(const _0x4f696c of Object['keys'](_0x1ab36d['diffData']))if(_0x1ab36d['diffData'][_0x4f696c]['attachChange']){const _0x3107c8=_0x1ab36d['diffData'][_0x4f696c]['attachChange'];_0x3107c8['isAttached']?(_0x375bc1['add'](_0x4f696c),_0x84ec4e['has'](_0x4f696c)&&_0x84ec4e['get'](_0x4f696c)['userId']==_0x3107c8['userId']?_0x84ec4e['delete'](_0x4f696c):_0x84ec4e['set'](_0x4f696c,_0x3107c8)):_0x84ec4e['has'](_0x4f696c)?(_0x375bc1['delete'](_0x4f696c),_0x84ec4e['delete'](_0x4f696c)):(_0x375bc1['add'](_0x4f696c),_0x84ec4e['set'](_0x4f696c,_0x3107c8));}else _0x375bc1['add'](_0x4f696c);}for(const _0x369299 of _0x375bc1){const _0x148a71=_0x84ec4e['has'](_0x369299)&&!_0x84ec4e['get'](_0x369299)['isAttached'];let _0x330f26=_0x148a71?_0x55252f['length']-0x1:0x0;const _0x4b6cd1=_0x148a71?-0x1:0x1;for(;_0x55252f[_0x330f26];){const _0x3f920d=_0x55252f[_0x330f26];if(_0x3f920d['diffData'][_0x369299]){const _0x1ae69b=_0x148a71?_0x3f920d['diffData'][_0x369299]['attributesBefore']:_0x3f920d['diffData'][_0x369299]['attributesAfter'];_0xfbf4f8['attributes'][_0x369299]=_0x1ae69b?_0x312480(_0x1ae69b):{};break;}_0x330f26+=_0x4b6cd1;}}for(const _0x92d357 of _0x55252f){_0x92d357['model']={};for(const _0x2fe9d2 of _0x92d357['authors'])_0x30b3ed['set'](_0x2fe9d2['id'],_0x2fe9d2);for(const _0x147663 of _0x375bc1){const _0x2eaf8d=_0x92d357['diffData'][_0x147663]?_0x92d357['diffData'][_0x147663]['insertions']:'[]',_0x2707ef=_0x92d357['diffData'][_0x147663]?_0x92d357['diffData'][_0x147663]['deletions']:'[]';_0x92d357['model'][_0x147663]={'insertions':this['_makeModelFromViewString'](_0x2eaf8d),'deletions':this['_makeModelFromViewString'](_0x2707ef)};}}for(const _0x3a020c of _0x375bc1){let _0x1e37b7=null,_0x3eb5d2=0x0;const _0x43d4e6=new Map(Array['from'](_0x75aa89['model'][_0x3a020c]['insertions']['markers'])['filter'](([_0x327f39])=>!_0x327f39['startsWith']('revision:')));let _0x10e9d9=0x0;for(const _0x4adeb8 of _0x55252f){const _0x3d5145=this['_makeTape'](_0x4adeb8['model'][_0x3a020c]['insertions']);_0x4adeb8==_0x75aa89?(_0x1e37b7=_0x3d5145,_0x3eb5d2=_0x1e37b7['length'],_0x1e37b7['forEach'](_0x48781a=>{_0x48781a['id']=_0x10e9d9++;}),this['_processTape'](_0x1e37b7)):this['_markInsertions'](_0x1e37b7,_0x3d5145);const _0x473925=_0x1e37b7['filter'](_0x3acabf=>!_0x3acabf['isAdded'])['map'](_0x20755a=>_0x20755a['id']);let _0x1aeb76=0x0;const _0x2adc1e=this['_makeTape'](_0x4adeb8['model'][_0x3a020c]['deletions']);_0x2adc1e['forEach'](_0x58d735=>{_0x58d735['isRemoved']?_0x58d735['id']=_0x3eb5d2++:_0x58d735['id']=_0x473925[_0x1aeb76++];}),this['_processTape'](_0x2adc1e),this['_setDistance'](_0x1e37b7,'isAdded'),this['_setDistance'](_0x2adc1e,'isRemoved'),_0x4adeb8==_0x75aa89&&this['_markMarkers'](_0x1e37b7,_0x43d4e6),_0x1e37b7=this['_joinTapes'](_0x1e37b7,_0x2adc1e),this['_refreshStartEndIndex'](_0x1e37b7),this['_setDistance'](_0x1e37b7,'isRemoved');}_0x1e37b7=_0x1e37b7['filter'](_0x505fb0=>!(_0x505fb0['isAdded']&&_0x505fb0['isRemoved']));const _0x591e02=new Map(_0x26f70d['model'][_0x3a020c]['deletions']['markers']),_0x536370=new Set(_0x43d4e6['keys']());for(const _0xe10dff of _0x591e02['keys']())_0x536370['delete'](_0xe10dff);this['_markSuggestions'](_0x1e37b7,_0x536370),this['_fixObsoleteTags'](_0x1e37b7),_0x1e37b7=this['_removeMissingPairs'](_0x1e37b7),_0x1e37b7=this['_markMismatchedRemovedTags'](_0x1e37b7),_0x1e37b7=this['_removeUnsupportedChanges'](_0x1e37b7);const {root:_0x1379e8,changes:_0x27b4fc}=this['_makeModelFromTape'](_0x1e37b7,_0x30b3ed,_0x3a020c);_0xfbf4f8['model'][_0x3a020c]=_0x1379e8;const _0x754c88=_0x84ec4e['get'](_0x3a020c);if(_0x754c88){const _0x377cbe=_0x30b3ed['get'](_0x754c88['userId']),_0xc4faa3=new r({'author':_0x377cbe,'type':_0x754c88['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3a020c});_0x27b4fc['unshift'](_0xc4faa3),_0xfbf4f8['attributes'][_0x3a020c]['revisionHistoryAttachChange']=_0xc4faa3['id'];}_0xfbf4f8['changes']=_0xfbf4f8['changes']['concat'](_0x27b4fc);}return _0xfbf4f8;}['_markMarkers'](_0x3e9018,_0x5981ae){for(let _0x9096bb=0x0;_0x9096bb<_0x3e9018['length'];_0x9096bb++)for(const [_0x4e23a6,_0x501999]of _0x5981ae)_0x501999['start']['isEqual'](_0x3e9018[_0x9096bb]['previousPosition'])&&_0x3e9018[_0x9096bb]['markersStart']['push'](_0x4e23a6),_0x501999['end']['isEqual'](_0x3e9018[_0x9096bb]['nextPosition'])&&_0x3e9018[_0x9096bb]['markersEnd']['push'](_0x4e23a6);}['_joinTapes'](_0x6abd6e,_0x54a989){let _0x1fab1e=[],_0x40cce2=0x0,_0x5936ef=0x0;for(;_0x40cce2<_0x6abd6e['length']||_0x5936ef<_0x54a989['length'];){const _0x93c36e=_0x6abd6e[_0x40cce2]||{},_0xe88c80=_0x54a989[_0x5936ef]||{};if(_0x93c36e['id']==_0xe88c80['id'])_0x40cce2++,_0x5936ef++,_0x1fab1e['push'](_0x93c36e);else{if(_0xe88c80['isRemoved']&&_0x93c36e['isAdded']){const {commonTape:_0x4277f5,iEnd:_0x33f27b,jEnd:_0x4f143d}=this['_threeWayMerge'](_0x6abd6e,_0x40cce2,_0x54a989,_0x5936ef);_0x1fab1e=_0x1fab1e['concat'](_0x4277f5),_0x40cce2=_0x33f27b,_0x5936ef=_0x4f143d;}else _0xe88c80['isRemoved']?(_0x5936ef++,_0x1fab1e['push'](_0xe88c80)):(_0x40cce2++,_0x1fab1e['push'](_0x93c36e));}}return _0x1fab1e;}['_markSuggestions'](_0x32810d,_0x561211){const _0x58a958=[];for(let _0xab11b9=0x0;_0xab11b9<_0x32810d['length'];_0xab11b9++){for(let _0x2f322b=0x0;_0x2f322b<_0x32810d[_0xab11b9]['markersStart']['length'];_0x2f322b++){const _0x1a06ce=_0x32810d[_0xab11b9]['markersStart'][_0x2f322b];if(!_0x561211['has'](_0x1a06ce))continue;const {group:_0x498a54,type:_0x1e0ec6,authorId:_0x1631d2}=_0x4c7b93(_0x1a06ce);'revision-suggestion'!=_0x498a54||'insertion'!=_0x1e0ec6&&'deletion'!=_0x1e0ec6||(_0x58a958['unshift']({'type':_0x1e0ec6,'name':_0x1a06ce,'userId':_0x1631d2}),_0x32810d[_0xab11b9]['markersStart']['splice'](_0x2f322b,0x1),_0x2f322b--);}_0x2b050d(_0x32810d[_0xab11b9]);for(let _0x2353f6=0x0;_0x2353f6<_0x32810d[_0xab11b9]['markersEnd']['length'];_0x2353f6++){const _0x2cda4f=_0x32810d[_0xab11b9]['markersEnd'][_0x2353f6];if(!_0x561211['has'](_0x2cda4f))continue;const {group:_0xf731b4,type:_0x5479fa}=_0x4c7b93(_0x2cda4f);if('revision-suggestion'!=_0xf731b4||'insertion'!=_0x5479fa&&'deletion'!=_0x5479fa)continue;_0x32810d[_0xab11b9]['markersEnd']['splice'](_0x2353f6,0x1),_0x2353f6--;const _0x3c47f3=_0x58a958['findIndex'](_0x4609ea=>_0x4609ea['name']==_0x2cda4f);_0x3c47f3>-0x1&&_0x58a958['splice'](_0x3c47f3,0x1);}}function _0x4c7b93(_0xb5971a){const _0x249d1e=_0xb5971a['split'](':');return{'group':_0x249d1e[0x0],'type':_0x249d1e[0x1],'subType':_0x249d1e['length']>=0x5?_0x249d1e[0x2]:null,'id':_0x249d1e['length']<0x5?_0x249d1e[0x2]:_0x249d1e[0x3],'authorId':_0x249d1e['length']<0x5?_0x249d1e[0x3]:_0x249d1e[0x4],'markerCount':0x6==_0x249d1e['length']?_0x249d1e[0x5]:null};}function _0x2b050d(_0xca4658){for(let _0x2ae8ed=0x0;_0x2ae8ed<_0x58a958['length'];_0x2ae8ed++){if(_0xca4658['isAdded']&&'insertion'==_0x58a958[_0x2ae8ed]['type'])return _0xca4658['isAddSuggestion']=_0x58a958[_0x2ae8ed],void delete _0xca4658['isAdded'];if(!_0xca4658['isAdded']&&!_0xca4658['isRemoved']&&'deletion'==_0x58a958[_0x2ae8ed]['type'])return void(_0xca4658['isRemoveSuggestion']=_0x58a958[_0x2ae8ed]);}}}['_setDistance'](_0x132594,_0x503869){let _0x1cbd84=0x0,_0x217f46=!0x1;const _0x59a606=new Map();for(const _0x7279e6 of _0x132594)_0x7279e6[_0x503869]?_0x217f46&&(_0x1cbd84++,_0x217f46=!0x1):(_0x1cbd84++,_0x217f46=!0x0),_0x59a606['set'](_0x7279e6['id'],_0x1cbd84);for(let _0x25fdd8=0x0;_0x25fdd8<_0x132594['length'];_0x25fdd8++){if('isRemoved'==_0x503869&&_0x132594[_0x25fdd8]['isAdded']||'isAdded'==_0x503869&&_0x132594[_0x25fdd8]['isRemoved'])continue;if('text'==_0x132594[_0x25fdd8]['type']){_0x132594[_0x25fdd8]['distance']=0x0;continue;}const _0x1897c7=_0x59a606['get'](_0x132594[_0x25fdd8]['pairId']),_0x2f1149=_0x59a606['get'](_0x132594[_0x25fdd8]['id']);_0x132594[_0x25fdd8]['distance']=_0x1897c7-_0x2f1149;}}['_getRevisionsRange'](_0x2ec532,_0x887458,_0x43e010=!0x1){const _0x515fba=[];let _0x59461f=this['repository']['getIndex'](_0x2ec532),_0x3644d9=this['repository']['getIndex'](_0x887458);for(-0x1==_0x3644d9&&(_0x3644d9=this['repository']['_revisions']['length'],_0x43e010=!0x1);_0x59461f<_0x3644d9;)_0x515fba['push'](this['repository']['getRevision'](_0x59461f)),_0x59461f++;return _0x43e010&&_0x515fba['push'](this['repository']['getRevision'](_0x59461f)),_0x515fba;}['_threeWayMerge'](_0x5c4dd3,_0x366730,_0x2cd042,_0x4d35fa){const _0x41bfd7=this['editor']['model']['schema'];let _0x5aeb14=_0x366730;for(;_0x5c4dd3[_0x5aeb14]&&_0x5c4dd3[_0x5aeb14]['isAdded'];)_0x5aeb14++;let _0x405f4f=_0x4d35fa;for(;_0x2cd042[_0x405f4f]&&_0x2cd042[_0x405f4f]['isRemoved'];)_0x405f4f++;_0x4e75e(_0x5c4dd3,_0x366730,_0x5aeb14),_0x4e75e(_0x2cd042,_0x4d35fa,_0x405f4f);const _0x2a80f2=_0x2cd042['slice'](_0x4d35fa,_0x405f4f)['concat'](_0x5c4dd3['slice'](_0x366730,_0x5aeb14));return _0x2a80f2['sort']((_0x361de0,_0xa13989)=>_0x361de0['side']!=_0xa13989['side']?_0x361de0['side']-_0xa13989['side']:_0x361de0['level']!=_0xa13989['level']?_0x361de0['level']-_0xa13989['level']:_0x361de0['distance']!=_0xa13989['distance']?_0xa13989['distance']-_0x361de0['distance']:!!_0x361de0['isAdded']!=!!_0xa13989['isAdded']?-0x1==_0x361de0['side']||0x0==_0x361de0['side']?_0x361de0['isAdded']?-0x1:0x1:_0x361de0['isAdded']?0x1:-0x1:_0x361de0['index']-_0xa13989['index']),{'commonTape':_0x2a80f2,'iEnd':_0x5aeb14,'jEnd':_0x405f4f};function _0x4e75e(_0x503adb,_0x4029ee,_0x249baf){let _0x42795f=-0x1,_0x552520=Number['POSITIVE_INFINITY'],_0x68f715=!0x0;for(let _0x5a250a=_0x4029ee;_0x5a250a<_0x249baf;_0x5a250a++)if(_0x41bfd7['isInline'](_0x503adb[_0x5a250a]['item'])||(_0x68f715=!0x1),_0x503adb[_0x5a250a]['item']['startIndex']<_0x4029ee&&(_0x42795f=_0x5a250a),_0x503adb[_0x5a250a]['item']['endIndex']>=_0x249baf){_0x552520=_0x5a250a;break;}_0x68f715&&(_0x42795f=_0x249baf-0x1);for(let _0xb49400=_0x4029ee;_0xb49400<_0x249baf;_0xb49400++)_0x503adb[_0xb49400]['side']=_0xb49400<=_0x42795f?-0x1:_0xb49400<_0x552520?0x0:0x1,_0x503adb[_0xb49400]['index']=_0xb49400;let _0x454dfb=0x0;for(let _0x49f0e7=_0x4029ee;_0x49f0e7<=_0x42795f;_0x49f0e7++)0x0==_0x503adb[_0x49f0e7]['distance']?_0x503adb[_0x49f0e7]['level']=_0x454dfb:(_0x454dfb++,_0x503adb[_0x49f0e7]['level']=_0x454dfb,_0x454dfb++);for(let _0x41a5ed=_0x4029ee;_0x41a5ed<_0x249baf;_0x41a5ed++)0x0==_0x503adb[_0x41a5ed]['side']&&(_0x503adb[_0x41a5ed]['level']=_0x454dfb);_0x454dfb=0x0;for(let _0xbe2c78=_0x249baf-0x1;_0xbe2c78>=_0x552520;_0xbe2c78--)0x0==_0x503adb[_0xbe2c78]['distance']?_0x503adb[_0xbe2c78]['level']=_0x454dfb:(_0x454dfb--,_0x503adb[_0xbe2c78]['level']=_0x454dfb,_0x454dfb--);}}['_fixObsoleteTags'](_0x1c2366){const _0x4d6414=new Map(),_0x1dc234=this['editor']['model']['schema'];for(let _0x472793=0x1;_0x472793<_0x1c2366['length'];_0x472793++){let _0x530713,_0x131b2d,_0x438018;const _0x59ff4f=_0x1c2366[_0x472793],_0x5b1f6c=_0x1c2366[_0x472793-0x1];if('text'==_0x59ff4f['type'])continue;if(_0x59ff4f['type']!=_0x5b1f6c['type'])continue;if(!_0x1dc234['isBlock'](_0x5b1f6c['item'])||_0x1dc234['isLimit'](_0x5b1f6c['item']))continue;if(!_0x1dc234['isBlock'](_0x59ff4f['item'])||_0x1dc234['isLimit'](_0x59ff4f['item']))continue;if((_0x1c2366[_0x472793]['isAdded']||_0x1c2366[_0x472793]['isAddSuggestion'])&&_0x1c2366[_0x472793-0x1]['isRemoved'])_0x530713=_0x1c2366[_0x472793],_0x131b2d=_0x1c2366[_0x472793-0x1],_0x438018=_0x472793-0x1;else{if(!_0x1c2366[_0x472793]['isRemoved']||!_0x1c2366[_0x472793-0x1]['isAdded']&&!_0x1c2366[_0x472793-0x1]['isAddSuggestion'])continue;_0x530713=_0x1c2366[_0x472793-0x1],_0x131b2d=_0x1c2366[_0x472793],_0x438018=_0x472793;}const _0x25077a=_0x530713['level']==_0x131b2d['level'],_0x3cc61a=Math['abs'](_0x530713['level'])<Math['abs'](_0x131b2d['level'])&&0x0==_0x131b2d['distance'];(_0x25077a||_0x3cc61a)&&(_0x4d6414['set'](_0x131b2d['id'],_0x530713['id']),_0x1c2366['splice'](_0x438018,0x1),_0x472793--,_0x530713['isAdded']=!0x1);}for(let _0x4b1da0=0x0;_0x4b1da0<_0x1c2366['length'];_0x4b1da0++)_0x4d6414['has'](_0x1c2366[_0x4b1da0]['pairId'])&&(_0x1c2366[_0x4b1da0]['pairId']=_0x4d6414['get'](_0x1c2366[_0x4b1da0]['pairId']));}['_removeMissingPairs'](_0x26751e){const _0x25f24b=new Set(_0x26751e['map'](_0x3f67fd=>_0x3f67fd['id']));for(let _0x584a84=0x0;_0x584a84<_0x26751e['length'];_0x584a84++)_0x25f24b['has'](_0x26751e[_0x584a84]['pairId'])||0x0==_0x26751e[_0x584a84]['distance']||(_0x26751e[_0x584a84]['isIncorrect']=!0x0);return _0x26751e['filter'](_0x24cf95=>!_0x24cf95['isIncorrect']);}['_markMismatchedRemovedTags'](_0x2c6d21){const _0xf936c1=new Set();for(let _0x49b623=0x0;_0x49b623<_0x2c6d21['length'];_0x49b623++){if(_0xf936c1['has'](_0x2c6d21[_0x49b623]['id'])&&_0x2c6d21[_0x49b623]['isRemoved']&&(_0x2c6d21[_0x49b623]['isIncorrect']=!0x0),_0x2c6d21[_0x49b623]['isIncorrect'])continue;if(0x0==_0x2c6d21[_0x49b623]['distance'])continue;if('elementStart'!=_0x2c6d21[_0x49b623]['type'])continue;if(null==_0x2c6d21[_0x49b623]['pairId'])continue;let _0x581409=_0x49b623+0x1,_0x595414=0x0;for(;_0x2c6d21[_0x581409]['id']!=_0x2c6d21[_0x49b623]['pairId'];)'elementStart'==_0x2c6d21[_0x581409]['type']?_0x595414++:'elementEnd'==_0x2c6d21[_0x581409]['type']&&_0x595414--,_0x581409++;if(0x0!=_0x595414){if(_0x2c6d21[_0x49b623]['isRemoved'])_0x2c6d21[_0x49b623]['isIncorrect']=!0x0;else{for(;_0x581409!=_0x49b623;)_0x2c6d21[_0x581409]['isRemoved']&&0x0!=_0x2c6d21[_0x581409]['distance']&&(_0x2c6d21[_0x581409]['isIncorrect']=!0x0,_0xf936c1['add'](_0x2c6d21[_0x581409]['pairId'])),_0x581409--;}}}return _0x2c6d21['filter'](_0x442d83=>!_0x442d83['isIncorrect']);}['_removeUnsupportedChanges'](_0x334bbf){const _0x26945c=this['editor']['model']['schema'];for(let _0x28737a=0x0;_0x28737a<_0x334bbf['length'];_0x28737a++){if(!(_0x334bbf[_0x28737a]['isAdded']||_0x334bbf[_0x28737a]['isAddSuggestion']||_0x334bbf[_0x28737a]['isRemoved']||_0x334bbf[_0x28737a]['isRemoveSuggestion']))continue;if(0x0==_0x334bbf[_0x28737a]['distance'])continue;const _0x474efc=_0x334bbf[_0x28737a]['item'];_0x26945c['isBlock'](_0x474efc)||_0x26945c['isLimit'](_0x474efc)||(_0x334bbf[_0x28737a]['isAdded']&&delete _0x334bbf[_0x28737a]['isAdded'],_0x334bbf[_0x28737a]['isAddSuggestion']&&delete _0x334bbf[_0x28737a]['isAddSuggestion'],_0x334bbf[_0x28737a]['isRemoveSuggestion']&&delete _0x334bbf[_0x28737a]['isRemoveSuggestion'],_0x334bbf[_0x28737a]['isRemoved']&&(_0x334bbf[_0x28737a]['isIncorrect']=!0x0));}return _0x334bbf['filter'](_0x4ec945=>!_0x4ec945['isIncorrect']);}['_makeModelFromTape'](_0xc416ea,_0x2b5835,_0x46b1a7){const _0x12b3c8=new gt(),_0x47d6c7=[],_0x178a3a=new Map(),_0x540a65=this['editor']['model'],_0x3cb1f8=_0x540a65['schema'],_0x880657=[_0x12b3c8],_0x1d8cec={},_0x5e5841={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5d3555=null;const _0xa30be=[0x0];for(let _0x4dc44c=0x0;_0x4dc44c<_0xc416ea['length'];_0x4dc44c++)if('elementStart'===_0xc416ea[_0x4dc44c]['type']){_0xc416ea[_0x4dc44c]['previousPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be);const _0x3466e7=new ut(_0xc416ea[_0x4dc44c]['item']['name'],_0xc416ea[_0x4dc44c]['item']['getAttributes']());_0x880657[0x0]['_appendChild'](_0x3466e7),_0xa30be['push'](0x0),_0x880657['unshift'](_0x3466e7),_0xc416ea[_0x4dc44c]['nextPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be);}else'elementEnd'===_0xc416ea[_0x4dc44c]['type']?(_0x880657['shift'](),_0xc416ea[_0x4dc44c]['previousPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be),_0xa30be['pop'](),_0xa30be[_0xa30be['length']-0x1]++,_0xc416ea[_0x4dc44c]['nextPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be)):(_0xc416ea[_0x4dc44c]['previousPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be),_0x5d3555?_0x5d3555['_data']+=_0xc416ea[_0x4dc44c]['item']['data']:_0x5d3555=new mt(_0xc416ea[_0x4dc44c]['item']['data'],_0xc416ea[_0x4dc44c]['item']['getAttributes']()),_0xc416ea[_0x4dc44c+0x1]&&'text'===_0xc416ea[_0x4dc44c+0x1]['type']&&_0x43c3f1(_0x5d3555,_0xc416ea[_0x4dc44c+0x1]['item'])||(_0x880657[0x0]['_appendChild'](_0x5d3555),_0x5d3555=null),_0xa30be[_0xa30be['length']-0x1]+=_0xc416ea[_0x4dc44c]['item']['offsetSize'],_0xc416ea[_0x4dc44c]['nextPosition']=_0x540a65['createPositionFromPath'](_0x12b3c8,_0xa30be));for(let _0x47e1e4=0x0;_0x47e1e4<_0xc416ea['length'];_0x47e1e4++){const _0x333962=_0xc416ea[_0x47e1e4]['previousPosition'],_0x1f4b61=_0xc416ea[_0x47e1e4]['nextPosition'];for(const _0x219562 of _0xc416ea[_0x47e1e4]['markersStart'])_0x178a3a['set'](_0x219562,{'start':_0x333962,'end':null});_0x5ccb71('isRemoveSuggestion',_0x47e1e4,_0x333962,_0x1f4b61),_0x5ccb71('isAddSuggestion',_0x47e1e4,_0x333962,_0x1f4b61),_0x5ccb71('isRemoved',_0x47e1e4,_0x333962,_0x1f4b61),_0x5ccb71('isAdded',_0x47e1e4,_0x333962,_0x1f4b61);for(const _0x23b1b8 of _0xc416ea[_0x47e1e4]['markersEnd']){_0x178a3a['get'](_0x23b1b8)['end']=_0x1f4b61;}}for(const [_0x1fac4b,_0x188a3a]of _0x178a3a){const _0x5b4f92=this['editor']['model']['createRange'](_0x188a3a['start'],_0x188a3a['end']);_0x12b3c8['markers']['set'](_0x1fac4b,_0x5b4f92);}return _0x47d6c7['sort']((_0x198161,_0x4ffe48)=>{const _0x3093b9=_0x12b3c8['markers']['get']('revision:'+_0x198161['id']),_0x2fe72c=_0x12b3c8['markers']['get']('revision:'+_0x4ffe48['id']);return _0x3093b9['start']['isBefore'](_0x2fe72c['start'])?-0x1:_0x3093b9['start']['isAfter'](_0x2fe72c['start'])?0x1:_0x3093b9['end']['isBefore'](_0x2fe72c['end'])?-0x1:_0x3093b9['end']['isAfter'](_0x2fe72c['end'])?0x1:'add'===_0x198161['type']?-0x1:0x1;}),{'root':_0x12b3c8,'changes':_0x47d6c7};function _0x5ccb71(_0x488028,_0x193f64,_0x4fcd68,_0x5592ab){const _0x1191fc=!!_0xc416ea[_0x193f64][_0x488028],_0x2d9ccf=_0x1191fc?_0xc416ea[_0x193f64][_0x488028]['userId']:null,_0x5e1beb=_0x193f64===_0xc416ea['length']-0x1,_0x11ea13=_0x5e5841[_0x488028][0x0],_0x2502a5=_0x3cb1f8['isObject'](_0xc416ea[_0x193f64]['item']);!_0x1d8cec[_0x488028]&&_0x1191fc?_0x1d8cec[_0x488028]={'start':_0x4fcd68,'tapeItem':_0xc416ea[_0x193f64],'userId':_0x2d9ccf,'type':_0x488028}:_0x1d8cec[_0x488028]&&!_0x1191fc?(_0x1d8cec[_0x488028]['end']=_0x4fcd68,_0x3edee9(_0x1d8cec[_0x488028]),_0x1d8cec[_0x488028]=null):_0x1d8cec[_0x488028]&&_0x1191fc&&_0x1d8cec[_0x488028]['userId']!==_0x2d9ccf&&(_0x1d8cec[_0x488028]['end']=_0x4fcd68,_0x11ea13&&_0x11ea13['userId']===_0x1d8cec[_0x488028]['userId']||_0x3edee9(_0x1d8cec[_0x488028]),_0x1d8cec[_0x488028]={'start':_0x4fcd68,'tapeItem':_0xc416ea[_0x193f64],'userId':_0x2d9ccf,'type':_0x488028}),_0x1d8cec[_0x488028]&&_0x2502a5&&('elementStart'!==_0xc416ea[_0x193f64]['type']||_0x11ea13&&_0x11ea13['userId']===_0x2d9ccf||_0x5e5841[_0x488028]['unshift']({'userId':_0x2d9ccf,'object':_0xc416ea[_0x193f64]['item'],'change':_0x1d8cec[_0x488028]}),'elementEnd'===_0xc416ea[_0x193f64]['type']&&_0x11ea13&&_0x11ea13['object']===_0xc416ea[_0x193f64]['item']&&(_0x5e5841[_0x488028]['shift'](),_0x1d8cec[_0x488028]=_0x11ea13['change'])),_0x1d8cec[_0x488028]&&_0x5e1beb&&(_0x1d8cec[_0x488028]['end']=_0x5592ab,_0x3edee9(_0x1d8cec[_0x488028]),_0x1d8cec[_0x488028]=null);}function _0x3edee9({start:_0x15e050,end:_0x3892c2,tapeItem:_0x422289,userId:_0x44efee,type:_0x1061b2}){const _0x437199=_0x422289['item'],_0x311070=_0x540a65['schema']['isBlock'](_0x437199)&&!_0x540a65['schema']['isLimit'](_0x437199),_0x34d62a=_0x15e050['nodeAfter']==_0x3892c2['parent']&&_0x3892c2['isAtStart'];if(_0x311070&&_0x34d62a)return;const _0x9bc577=_0x540a65['createRange'](_0x15e050,_0x3892c2),_0x39d200=_0x2b5835['get'](_0x44efee),_0x4a158f=new r({'author':_0x39d200,'type':'isAdded'==_0x1061b2||'isAddSuggestion'==_0x1061b2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1061b2||'isRemoveSuggestion'==_0x1061b2},'createdAt':new Date(),'rootName':_0x46b1a7});_0x47d6c7['push'](_0x4a158f),_0x12b3c8['markers']['set']('revision:'+_0x4a158f['id'],_0x9bc577);}function _0x43c3f1(_0x2e19b5,_0x493fff){const _0x450498=_0x2e19b5['getAttributes'](),_0x449903=_0x493fff['getAttributes']();for(const _0x22073a of _0x450498){if(_0x22073a[0x1]!==_0x493fff['getAttribute'](_0x22073a[0x0]))return!0x1;_0x449903['next']();}return _0x449903['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x524aed=>{const _0x4b758d=_0x524aed['markerName']['split'](':')[0x1],_0x208d54=this['_getChangeFromId'](_0x4b758d);if(!_0x208d54)return null;const _0x1fdf29='add'==_0x208d54['type']?'insertion':'deletion',_0x4aef57=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1fdf29];return _0x208d54['data']['isSuggestion']&&_0x4aef57['push']('ck-suggestion-marker-'+_0x1fdf29+'-new'),this['activeChange']==_0x208d54&&_0x4aef57['push']('ck-suggestion-marker--active'),{'classes':_0x4aef57,'attributes':{'data-change-id':_0x4b758d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x24c4a7=>{_0x24c4a7['on']('element:pre',(_0x164be1,_0x584a95,_0x5a9f52)=>{const _0x30564a=_0x584a95['viewItem']['getChild'](0x0);if(!_0x30564a||!_0x30564a['is']('element','code'))return;if(!_0x5a9f52['consumable']['consume'](_0x30564a,{'attributes':['vid_start','vid_end']}))return;const _0x549fbe=_0x584a95['modelRange']['start']['nodeAfter'];_0x5a9f52['writer']['setAttribute']('vid_start',_0x30564a['getAttribute']('vid_start'),_0x549fbe),_0x5a9f52['writer']['setAttribute']('vid_end',_0x30564a['getAttribute']('vid_end'),_0x549fbe);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x3af4a=>{_0x3af4a['on']('element',(_0x5854e3,_0x554ffa,_0x42bc9e)=>{if(!_0x42bc9e['consumable']['consume'](_0x554ffa['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x554ffa['modelRange']['isCollapsed'])return;const _0x13759c=_0x554ffa['modelRange']['start']['nodeAfter'];_0x13759c['hasAttribute']('vid_start')||_0x13759c['hasAttribute']('vid')||(_0x42bc9e['writer']['setAttribute']('vid_start',_0x554ffa['viewItem']['getAttribute']('vid_start'),_0x13759c),_0x42bc9e['writer']['setAttribute']('vid_end',_0x554ffa['viewItem']['getAttribute']('vid_end'),_0x13759c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x13e371=>_0x13e371['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x468f28,[,_0x4801dd])=>{['vid_start','vid_end','vid']['includes'](_0x4801dd)&&(_0x468f28['return']=!0x0,_0x468f28['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3d2dca=>{_0x3d2dca['on']('attribute:vid',(_0x336f89,_0x2dd4ab,_0x512d16)=>{if('\x20'!=_0x2dd4ab['item']['data']||_0x2dd4ab['item']['parent']['maxOffset']>0x1)return;if(!_0x512d16['consumable']['consume'](_0x2dd4ab['item'],_0x336f89['name']))return;const _0x172fe6=_0x512d16['writer'],_0x4aab5d=_0x512d16['mapper']['toViewRange'](_0x2dd4ab['range']);_0x172fe6['wrap'](_0x4aab5d,_0x172fe6['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x35fefd){const _0x5e87b7=_0x35fefd['plugins']['get']('RevisionViewer');return(_0x410b66,_0x3fe11,_0x5d15e5)=>{const _0x1c9cfb=_0x3fe11['markerName']['split'](':')[0x1],_0x3d70fb=_0x5e87b7['_getChangeFromId'](_0x1c9cfb);if(!_0x3d70fb)return null;const _0x304d84='add'==_0x3d70fb['type']?'split':'merge';if(!_0x5d15e5['consumable']['test'](_0x3fe11['markerRange'],_0x410b66['name']))return;const _0x18a024=_0x3fe11['markerRange']['getWalker'](),_0x451717=_0x3fe11['markerRange']['start'],_0x39ba7e=_0x35fefd['model']['schema'];let _0x15d2c9=null,_0x3101e6=null,_0x48da82=!0x1,_0xb5cb7d=!0x1;for(const _0x251b02 of _0x18a024){const _0x5a441f=_0x251b02['item'];_0x48da82=_0x48da82||_0x39ba7e['isContent'](_0x5a441f);const _0x52f23c=_0x5d15e5['mapper']['toViewElement'](_0x5a441f);if(_0x52f23c&&_0x52f23c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x251b02['type']&&(_0x39ba7e['isBlock'](_0x5a441f)&&!_0x39ba7e['isLimit'](_0x5a441f)&&(_0x5a441f['nextSibling']||_0x451717['isAtEnd']?_0x15d2c9&&_0x15d2c9['parent']==_0x5a441f||(_0x15d2c9=_0x5a441f,_0x2e74dd(_0x251b02['previousPosition']),_0xb5cb7d=!0x0):_0x3101e6=_0x3101e6||_0x251b02['previousPosition']));}function _0x2e74dd(_0x12b0b3){const _0x14c4bd=_0x5d15e5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x304d84}),_0x5414fc=_0x5d15e5['mapper']['toViewPosition'](_0x12b0b3);_0x3d70fb['data']['isSuggestion']&&_0x5d15e5['writer']['addClass']('ck-suggestion-marker-'+_0x304d84+'-new',_0x14c4bd),_0x5e87b7['activeChange']==_0x3d70fb&&_0x5d15e5['writer']['addClass']('ck-suggestion-marker--active',_0x14c4bd),_0x5d15e5['writer']['insert'](_0x5414fc,_0x14c4bd),_0x5d15e5['mapper']['bindElementToMarker'](_0x14c4bd,_0x3fe11['markerName']);}_0x48da82||_0xb5cb7d||!_0x3101e6||_0x2e74dd(_0x3101e6);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3d1ec9,_0x1a0842,_0x59d7c9)=>{const _0xe2667b=_0x59d7c9['mapper']['markerNameToElements'](_0x1a0842['markerName']);if(_0xe2667b){for(const _0x48d269 of _0xe2667b)(_0x48d269['hasClass']('ck-suggestion-marker-split')||_0x48d269['hasClass']('ck-suggestion-marker-merge'))&&(_0x59d7c9['mapper']['unbindElementFromMarkerName'](_0x48d269,_0x1a0842['markerName']),_0x59d7c9['writer']['remove'](_0x48d269));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xa5f4de,_0x57e1d7,_0x2b345c)=>{const _0x8e0ab9=_0x57e1d7['markerName']['split'](':')[0x1],_0x3c07ef=this['_getChangeFromId'](_0x8e0ab9);if(!_0x3c07ef)return null;const _0x3056bf='add'==_0x3c07ef['type']?'split':'merge';if(_0x2b345c['consumable']['test'](_0x57e1d7['markerRange'],_0xa5f4de['name']))for(const _0x135523 of _0x57e1d7['markerRange']['getItems']()){if(!_0x135523['is']('element','softBreak'))continue;const _0x5d6969=_0x2b345c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3056bf}),_0x5ecd59=_0x2b345c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x135523));_0x3c07ef['data']['isSuggestion']&&_0x2b345c['writer']['addClass']('ck-suggestion-marker-'+_0x3056bf+'-new',_0x5d6969),this['activeChange']==_0x3c07ef&&_0x2b345c['writer']['addClass']('ck-suggestion-marker--active',_0x5d6969),_0x2b345c['writer']['insert'](_0x5ecd59,_0x5d6969),_0x2b345c['mapper']['bindElementToMarker'](_0x5d6969,_0x57e1d7['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3a4d06=>{for(const _0x51e7f8 of this['editor']['model']['document']['getRootNames']()){const _0x55d4ba=this['editor']['model']['document']['getRoot'](_0x51e7f8),_0x2cd9cb=this['editor']['editing']['view']['document']['getRoot'](_0x51e7f8);if(_0x2cd9cb){const _0x535880=_0x55d4ba['getAttribute']('revisionHistoryAttachChange');if(_0x3a4d06['removeAttribute']('data-change-id',_0x2cd9cb),_0x3a4d06['removeClass']('ck-revision-history-root-add',_0x2cd9cb),_0x3a4d06['removeClass']('ck-revision-history-root-remove',_0x2cd9cb),_0x3a4d06['removeClass']('ck-revision-history-root--active',_0x2cd9cb),_0x535880){const _0x3d8821=this['_getChangeFromId'](_0x535880);if(!_0x3d8821)return null;_0x3a4d06['setAttribute']('data-change-id',_0x535880,_0x2cd9cb),_0x3a4d06['addClass']('ck-revision-history-root-'+_0x3d8821['type'],_0x2cd9cb),this['activeChange']==_0x3d8821&&_0x3a4d06['addClass']('ck-revision-history-root--active',_0x2cd9cb);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x180085=>'revision-comment:'+_0x180085,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x22e407=>'revision-suggestion:'+_0x22e407,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5e95f8=>({'name':'suggestion:'+_0x5e95f8,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xc17316=>{const _0x3e94c0=_0xc17316['markerName']['split'](':')[0x1];return'insertion'!=_0x3e94c0&&'deletion'!=_0x3e94c0?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3e94c0]};}}),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',(_0xca9856,_0x148114,_0x407b17)=>{const _0x15d848=_0x407b17['mapper']['markerNameToElements'](_0x148114['markerName']);if(_0x15d848){for(const _0x5db679 of _0x15d848)_0x5db679['is']('uiElement')&&(_0x407b17['mapper']['unbindElementFromMarkerName'](_0x5db679,_0x148114['markerName']),_0x407b17['writer']['remove'](_0x5db679));}},{'priority':'high'});}['_getChangeFromId'](_0x365987){return this['_changeIdToChange']['get'](_0x365987);}['_getViewForChange'](_0x43e8fc){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x43e8fc),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2a3a15,_0x554651,_0x3837b6,_0x227964)=>{_0x227964&&this['_balloon']['remove'](_0x227964),_0x3837b6&&(this['_balloon']['add']({'view':_0x3837b6,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1cbe68=this['editor']['editing'],_0x16d36f=this['_getChangeFromId'](_0x3837b6['changeId']);let _0x36e4fd;if(_0x16d36f['data']['isOnRoot']){const _0x462cd1=_0x1cbe68['view']['getDomRoot'](_0x16d36f['rootName']);_0x36e4fd=Array['from'](_0x462cd1['getClientRects']());}else{const _0x1d72e4=this['editor']['model']['markers']['get']('revision:'+_0x3837b6['changeId']);_0x36e4fd=Array['from'](_0x1cbe68['mapper']['markerNameToElements'](_0x1d72e4['name']))['map'](_0x472d89=>_0x1cbe68['view']['domConverter']['mapViewToDom'](_0x472d89))['map'](_0x731733=>Array['from'](_0x731733['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x36e4fd[0x0];return _0x36e4fd['find'](_0x30e39b=>_0x30e39b['top']-0x3<=this['_activeViewTarget']['y']&&_0x30e39b['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x30e39b['left']-0x3<=this['_activeViewTarget']['x']&&_0x30e39b['right']+0x3>=this['_activeViewTarget']['x'])||_0x36e4fd[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1ee75b,_0x4cdd3e,_0x228c30,_0x3225de)=>{this['activeView']=_0x228c30?this['_getViewForChange'](_0x228c30):null,this['editor']['model']['change'](()=>{const _0x2ed578=this['editor']['editing'];_0x3225de&&(_0x3225de['data']['isOnRoot']?_0x2ed578['view']['change'](_0x1adc47=>{_0x1adc47['removeClass']('ck-revision-history-root--active',_0x2ed578['view']['document']['getRoot'](_0x3225de['rootName']));}):_0x2ed578['reconvertMarker']('revision:'+_0x3225de['id'])),_0x228c30&&(_0x228c30['data']['isOnRoot']?_0x2ed578['view']['change'](_0x39d01f=>{_0x39d01f['addClass']('ck-revision-history-root--active',_0x2ed578['view']['document']['getRoot'](_0x228c30['rootName']));}):_0x2ed578['reconvertMarker']('revision:'+_0x228c30['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2ff7dc,_0x10a6e2)=>{if(this['activeChange'])return;const _0x2a5722=this['_findChangeIdFromDomTarget'](_0x10a6e2['target']),_0x44fa28=this['_changeIdToChange']['get'](_0x2a5722);_0x44fa28?(this['_activeViewTarget']={'x':_0x10a6e2['domEvent']['x'],'y':_0x10a6e2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x44fa28)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x228865,_0x2a9ee4)=>{const _0x40929a=this['_findChangeIdFromDomTarget'](_0x2a9ee4['target']),_0xb37d31=this['_changeIdToChange']['get'](_0x40929a);_0xb37d31?(this['_activeViewTarget']={'x':_0x2a9ee4['domEvent']['x'],'y':_0x2a9ee4['domEvent']['y']},_0xb37d31===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0xb37d31):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1b57f7){do{const _0x529d5a=_0x1b57f7['getAttribute']('data-change-id');if(_0x529d5a)return _0x529d5a;_0x1b57f7=_0x1b57f7['parent'];}while(_0x1b57f7);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x13e9b4=>{for(const _0x383571 of this['editor']['model']['markers'])_0x13e9b4['removeMarker'](_0x383571);});}}function Z(_0x3b1fe4,_0x4992fd){return(_0x119f31,_0x3544fc,_0xd4e947)=>{if(!_0xd4e947['consumable']['test'](_0x3544fc['markerRange'],_0x119f31['name']))return;const _0x57857c=_0x3544fc['markerRange']['getWalker'](),_0x21ac06=_0x3544fc['markerRange']['start'],_0x4cde8c=_0x3b1fe4['model']['schema'];let _0x39465d=null,_0x2ac09b=null,_0x51d644=!0x1,_0x4a33e3=!0x1;for(const _0x33c69a of _0x57857c){const _0x52ae42=_0x33c69a['item'];_0x51d644=_0x51d644||_0x4cde8c['isContent'](_0x52ae42);const _0x3b8305=_0xd4e947['mapper']['toViewElement'](_0x52ae42);if(_0x3b8305&&_0x3b8305['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x33c69a['type']&&(_0x4cde8c['isBlock'](_0x52ae42)&&!_0x4cde8c['isLimit'](_0x52ae42)&&(_0x52ae42['nextSibling']||_0x21ac06['isAtEnd']?_0x39465d&&_0x39465d['parent']==_0x52ae42||(_0x39465d=_0x52ae42,_0x4a3d98(_0x33c69a['previousPosition']),_0x4a33e3=!0x0):_0x2ac09b=_0x2ac09b||_0x33c69a['previousPosition']));}function _0x4a3d98(_0x17901c){const _0x42fb20=_0xd4e947['mapper']['toViewPosition'](_0x17901c),_0x3093cc=_0xd4e947['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4992fd});_0xd4e947['writer']['insert'](_0x42fb20,_0x3093cc),_0xd4e947['mapper']['bindElementToMarker'](_0x3093cc,_0x3544fc['markerName']);}_0x51d644||_0x4a33e3||!_0x2ac09b||_0x4a3d98(_0x2ac09b);};}class wt extends _0x40f198{constructor(_0x4e004b){super(_0x4e004b);const _0x364fde=_0x4e004b['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x364fde,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x364fde,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x48befa=this['editor'],_0x22d18c=_0x48befa['plugins']['get'](d),_0x183fd4=_0x22d18c['isReady']?_0x22d18c['diff']['newRevisionId']:null;_0x48befa['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x183fd4);}['refresh'](){const {isReady:_0x46dab5,isEnabled:_0x371c92,repository:_0x25ff70,diff:_0x20f0f9}=this['editor']['plugins']['get'](d),_0x15e31c=_0x20f0f9&&_0x25ff70['getLaterVisibleRevision'](_0x20f0f9['newRevisionId']);this['isEnabled']=_0x46dab5&&_0x371c92&&Boolean(_0x15e31c);}}class _t extends _0x40f198{['_step'];constructor(_0x18572b,{direction:_0x322901}){super(_0x18572b);const _0x1a23dc=_0x18572b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x322901?0x1:-0x1,this['listenTo'](_0x1a23dc,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1a23dc,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1a23dc,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2ea0f4=this['editor'],_0x31bac8=_0x2ea0f4['plugins']['get'](d),{isNavigationMode:_0x306cf5,currentChangeNumber:_0x456f03}=_0x31bac8;let _0x11f924;if(_0x31bac8['activeChange']=_0x306cf5?_0x31bac8['diff']['changes']['get'](_0x456f03+this['_step']):_0x31bac8['diff']['changes']['first'],_0x31bac8['activeChange']['data']['isOnRoot'])_0x11f924=_0x2ea0f4['editing']['view']['getDomRoot'](_0x31bac8['activeChange']['rootName']);else{const _0xe588ed=_0x2ea0f4['model']['markers']['get']('revision:'+_0x31bac8['activeChange']['id']);_0x11f924=_0x3e2b51(_0x2ea0f4['editing'],_0xe588ed);}_0x15cae2({'target':_0x11f924,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4238f2,currentChangeNumber:_0x30f706,numberOfChanges:_0x41122b,isReady:_0x21219c,isEnabled:_0x51d4e7}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x51d4e7&&_0x21219c&&_0x41122b)&&(!_0x4238f2||(0x1===this['_step']?_0x30f706<_0x41122b-0x1:_0x30f706>0x0));}}class li extends ts{constructor(_0x550ef4){super(_0x550ef4);const _0x512118=this['bindTemplate'],_0x1fe010=new te(_0x550ef4),_0x656903=new te(_0x550ef4);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',(_0x13e203,_0x19a685)=>_0x13e203&&_0x19a685>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x4aaf46,_0x4e57db,_0x499ae8,_0x1c943d)=>{if(!_0x4aaf46)return m(_0x550ef4,'Loading...');if(!_0x499ae8)return m(_0x550ef4,'No\x20changes');const _0x10df3d=m(_0x550ef4,'NUMBER_OF_CHANGES',_0x499ae8);return _0x1c943d?m(_0x550ef4,'X_OF_Y_CHANGES',[_0x4e57db+0x1,_0x499ae8]):_0x10df3d;}),_0x1fe010['set']({'label':m(_0x550ef4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x145f82}),_0x656903['set']({'label':m(_0x550ef4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2bf60d}),_0x1fe010['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x656903['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1fe010['on']('execute',()=>this['fire']('execute','backward')),_0x656903['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',_0x512118['if']('_isStatusLabelVisible','ck-hidden',_0x3db335=>!_0x3db335)]},'children':[{'text':_0x512118['to']('isNavigationMode',_0x2e8bbd=>_0x2e8bbd?m(_0x550ef4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x550ef4,'Total')+':\x20')}]},{'text':_0x512118['to']('_statusText')}]},new _0x2bf156(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1fe010,_0x656903]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x34aee2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x9a198e=this['editor']['editing']['view'];_0x9a198e['change'](_0x4f73ac=>{for(const _0x1e9a2b of _0x9a198e['document']['roots'])_0x4f73ac['addClass'](le,_0x1e9a2b);});}['hide'](){const _0x13331e=this['editor']['editing']['view'];_0x13331e['change'](_0x290a17=>{for(const _0x3f5d96 of _0x13331e['document']['roots'])_0x290a17['removeClass'](le,_0x3f5d96);});}}class w extends _0x34aee2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x1c0b2b=this['editor'],_0x44b6e4=_0x1c0b2b['plugins']['get'](d),_0x157280=_0x1c0b2b['plugins']['get'](ge);_0x1c0b2b['ui']['componentFactory']['add']('exitToEditing',_0x3e5830=>{const _0x3a0dd4=new te(_0x3e5830);return _0x3a0dd4['set']({'label':m(_0x3e5830,'Back\x20to\x20editing'),'icon':_0x263923,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x3a0dd4,'execute',()=>{_0x1c0b2b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x3a0dd4;}),_0x1c0b2b['ui']['componentFactory']['add']('restoreRevision',_0x5e07dd=>{const _0x5ac05c=new te(_0x5e07dd);return _0x5ac05c['set']({'label':m(_0x5e07dd,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5ac05c['bind']('isEnabled')['to'](_0x1c0b2b['commands']['get']('restoreRevision')),this['listenTo'](_0x5ac05c,'execute',()=>_0x1c0b2b['execute']('restoreRevision')),_0x5ac05c;}),_0x1c0b2b['ui']['componentFactory']['add']('changesNavigation',_0x32b046=>{const _0x423e47=new li(_0x32b046),_0xe82b39=_0x1c0b2b['commands']['get']('showPreviousChange'),_0xf1e15d=_0x1c0b2b['commands']['get']('showNextChange');return _0x423e47['bind']('isBackwardNavigationEnabled')['to'](_0xe82b39,'isEnabled'),_0x423e47['bind']('isForwardNavigationEnabled')['to'](_0xf1e15d,'isEnabled'),_0x423e47['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x44b6e4),this['listenTo'](_0x423e47,'execute',(_0x5bff98,_0x5a7f3b)=>{_0x1c0b2b['execute']('forward'===_0x5a7f3b?'showNextChange':'showPreviousChange');}),_0x423e47;}),_0x157280['show'](),_0x44b6e4['on']('change:isReady',(_0x1fc0a9,_0x464a8e,_0xfb476e)=>{_0xfb476e?_0x157280['hide']():_0x157280['show']();});}}class pt extends _0x2de467{['_resizeObserver']=null;constructor(_0x2b029c,_0x4455ca){super(_0x2b029c,_0x4455ca);const _0xc44e33=this['bindTemplate'];this['set']({'label':m(_0x2b029c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2b029c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xc44e33['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 _0xbaa088=this['fieldView']['element'];this['_tooltipString']=_0xbaa088['scrollWidth']>_0xbaa088['clientWidth']&&_0xbaa088['value']||'';}}class oi extends ts{constructor(_0x50057f,_0x3e63b8,_0x46440e){super(_0x50057f);const _0x44429d=new _0x287061();_0x44429d['set']({'content':_0x42cb62,'viewBox':'0\x200\x2011\x2010'});const _0xd6ccc2=['ck','ck-revision-history-sidebar__revision-author'];_0x46440e&&_0xd6ccc2['push']('ck-revision-history-sidebar__revision-author_creator');const _0x56c77f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x50057f,_0x46440e?'Revision\x20creator':'Revision\x20author')},'children':[_0x44429d,_0x3e63b8['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0xd6ccc2},'children':_0x56c77f});}}function ai(_0x222892,_0x400f48){const _0x707633=_0x222892['bindTemplate'],_0x589abb=_0x222892['locale'],_0x3fab1b=_0x323fc5(_0x589abb);_0x3fab1b['panelPosition']='sw';const _0x50c173=function(_0x1e7d07,_0xdb13e3){const _0x274c13=function(_0xc0c6a0,_0x4a9c20){const _0x626c89=_0xc0c6a0['locale'],_0x5b01d6={'Compare\x20against\x20selected':m(_0x626c89,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x626c89,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x626c89,'Restore\x20this\x20revision')};return _0x4a9c20['map'](_0x34bf3c=>{const _0x1662ee=_0x5b01d6[_0x34bf3c['name']];return _0x1662ee&&_0x1662ee!==_0x34bf3c['name']&&(_0x34bf3c['name']=_0x1662ee),_0x34bf3c;});}(_0x1e7d07,_0xdb13e3),_0x4735e2=new _0x241ac4();for(const _0x53e804 of _0x274c13){const _0x18e19e={'type':'button','model':new to({'label':_0x53e804['name'],'class':_0x53e804['class'],'withText':!0x0,'role':'menuitem','_action':_0x53e804['action']})};_0x18e19e['model']['bind']('isEnabled')['to'](_0x1e7d07,'isActionsDropdownOpen',_0x27c4b4=>'function'!=typeof _0x53e804['isEnabled']||(!_0x27c4b4||_0x53e804['isEnabled'](_0x1e7d07))),_0x4735e2['add'](_0x18e19e);}return _0x4735e2;}(_0x222892,_0x400f48);return _0x222892['bind']('isActionsDropdownOpen')['to'](_0x3fab1b,'isOpen'),_0x3fab1b['buttonView']['set']({'label':m(_0x589abb,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x277556}),_0x3fab1b['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x707633['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x707633['to'](_0x428156=>_0x428156['stopPropagation']())}}),_0x3fab1b['on']('execute',_0x3a2341=>{_0x222892['isReady']&&'function'==typeof _0x3a2341['source']['_action']&&_0x3a2341['source']['_action'](_0x222892);}),_0x351dcd(_0x3fab1b,_0x50c173,{'role':'menu'}),_0x3fab1b['listenTo'](_0x222892,'change:isActionsDropdownOpen',(_0x111d81,_0x428123,_0xa95248)=>{if(_0xa95248)for(const _0x1012b5 of _0x3fab1b['listView']['items']){const _0x4b475c=_0x1012b5['children']['first'],_0x19c4c7=_0x400f48['find'](_0x39ecab=>_0x39ecab['action']===_0x4b475c['_action'])['isVisible'];_0x1012b5['isVisible']=void 0x0===_0x19c4c7||_0x19c4c7(_0x222892);}}),_0x3fab1b;}class si extends/* #__PURE__ -- @preserve */
26
+ _0x3aa2cb(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x277d46,_0x3beba7,_0x3a542e,_0x413f78){super(_0x277d46);const _0x58c213=this['bindTemplate'],_0x44dc2e=function(_0x2de068,_0x40faae){const _0x3ff5bb=Array['from'](_0x40faae['authors'])['filter'](_0x4092ec=>_0x4092ec!=_0x40faae['creator']);return _0x40faae['creator']&&_0x3ff5bb['unshift'](_0x40faae['creator']),_0x3ff5bb['map'](_0x411628=>new oi(_0x2de068,_0x411628,_0x411628==_0x40faae['creator']));}(_0x277d46,_0x3beba7);this['id']=_0x3beba7['id'],this['_revision']=_0x3beba7,this['_requireRevisionName']=_0x413f78,this['bind']('name','createdAt')['to'](_0x3beba7),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5cd4b8=>{return _0x55a381=_0x277d46['uiLanguage'],(_0x3ddc1a=_0x5cd4b8)['toLocaleDateString'](_0x55a381,{'month':'long','day':'numeric'})+',\x20'+_0x3ddc1a['toLocaleTimeString'](_0x55a381,{'hour':'numeric','minute':'numeric'});var _0x55a381,_0x3ddc1a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x277d46,_0xb71fd5),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x821be7=>_0x821be7||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x260567,_0x4160a4)=>_0x260567&&_0x4160a4),this['revisionActionsView']=_0x3a542e&&_0x3a542e['length']?ai(this,_0x3a542e):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x58c213['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x58c213['if']('isEnabled','ck-disabled',_0x2bcaff=>!_0x2bcaff),_0x58c213['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x58c213['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x58c213['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':_0x58c213['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':_0x44dc2e}]},this['revisionActionsView']],'on':{'click':_0x58c213['to'](_0x3014a2=>{_0x3014a2['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x53440d=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x53440d,'change',()=>{this['_requireRevisionName']&&!_0x53440d['value']||this['fire']('setName',{'id':this['id'],'name':_0x53440d['value']}),_0x53440d['value']||(_0x53440d['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0xe1b3c,_0x48b0ae){const _0x4bfa84=_0x4c5ea0['fromJSDate'](_0xe1b3c)['setLocale'](_0x48b0ae),_0x24b8d4=_0x4c5ea0['local'](),_0x23a5cc=_0x24b8d4['minus']({'days':0x1})['startOf']('day');let _0x348f50,_0x288550;return _0x4bfa84['hasSame'](_0x24b8d4,'day')?(_0x348f50=_0x4bfa84['startOf']('day')['toJSDate'](),_0x288550=_0x4bfa84['toRelativeCalendar']()):_0x4bfa84['hasSame'](_0x23a5cc,'day')?(_0x348f50=_0x23a5cc['toJSDate'](),_0x288550=_0x4bfa84['toRelativeCalendar']()):_0x4bfa84['hasSame'](_0x24b8d4,'week')?(_0x348f50=_0x4bfa84['startOf']('week')['toJSDate'](),_0x288550=_0x4bfa84['weekdayLong']||''):_0x4bfa84['hasSame'](_0x24b8d4,'year')?(_0x348f50=_0x4bfa84['startOf']('month')['toJSDate'](),_0x288550=_0x4bfa84['monthLong']||''):(_0x348f50=_0x4bfa84['startOf']('year')['toJSDate'](),_0x288550=String(_0x4bfa84['year'])),{'startDate':_0x348f50,'localizedPeriodName':_0x288550};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3d54bb,_0x908de5,_0x56e626,_0x3e52d3){super(_0x3d54bb);const _0x1e66eb=ti(_0x908de5,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x908de5,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x56e626,this['_requireRevisionName']=_0x3e52d3,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':_0x1e66eb}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x555d2b){const _0x30b984=new si(this['locale'],_0x555d2b,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x30b984);}['removeRevision'](_0x372697){const _0x492db9=this['revisionViews']['find'](_0x544ad6=>_0x544ad6['id']===_0x372697['id']);this['revisionViews']['remove'](_0x492db9);}}class cs extends ts{constructor(_0x56ce1a){super(_0x56ce1a);const _0x5a1ac4=new _0x287061();_0x5a1ac4['content']=_0x495bf5,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x5a1ac4,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x56ce1a,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5e7da7,_0x397ced,_0x1366bd,_0x1a264b){super(_0x5e7da7);const _0x384857=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x397ced,this['_revisionActions']=_0x1366bd,this['_requireRevisionName']=_0x1a264b,this['on']('select',(_0x501848,_0x246159)=>{this['fire']('revisionSelected',_0x246159);}),this['on']('setName',(_0x51fbaa,_0x340e30)=>{this['fire']('revisionSetName',_0x340e30);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x5e7da7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x384857['if']('isEnabled','ck-disabled',_0x2c4b9a=>!_0x2c4b9a)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x470774 of this['_revisions'])this['_addRevision'](_0x470774);this['_revisions']['on']('add',(_0x5d94c0,_0x238509)=>{this['_addRevision'](_0x238509);}),this['_revisions']['on']('remove',(_0x2be3b0,_0x4ecd46)=>{this['_removeRevision'](_0x4ecd46);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x7ee840=>_0x7ee840['revisionViews']['map'](_0x43bbeb=>_0x43bbeb))['flat']();}['selectRevision'](_0x3e4a71){for(const _0x344de5 of this['revisionViews'])_0x3e4a71&&_0x3e4a71['id']===_0x344de5['id']?_0x344de5['select']():_0x344de5['deselect']();}['highlightRevisions'](_0x4e0ecb){for(const _0x39e16c of this['revisionViews'])_0x4e0ecb['some'](({id:_0x444de5})=>_0x444de5===_0x39e16c['id'])?_0x39e16c['highlight']():_0x39e16c['unhighlight']();}['_addRevision'](_0x4c2ccc){const _0x381643=ti(_0x4c2ccc['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x24634b=this['timePeriodViews']['get'](0x0);_0x24634b&&_0x24634b['startDate']['getTime']()===_0x381643['getTime']()||(_0x24634b=new ei(this['locale'],_0x381643,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x24634b)),_0x24634b['addRevision'](_0x4c2ccc);}['_removeRevision'](_0x49aa28){const _0xdd012=ti(_0x49aa28['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xdd012)['removeRevision'](_0x49aa28);}['_getTimePeriodViewByStartDate'](_0xfcf5d2){return this['timePeriodViews']['find'](_0x1f8e89=>_0x1f8e89['startDate']['getTime']()===_0xfcf5d2['getTime']());}}class g extends _0x34aee2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x294b2f){super(_0x294b2f),this['_revisionViewer']=_0x294b2f['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x4313d7=this['_revisionsRepository']['_revisions'],_0x559144=this['_createRevisionActions'](),_0x30d0de=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x4313d7,_0x559144,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',(_0x30f3fc,_0x8a549f)=>{_0x8a549f['revisionViews']['on']('add',(_0x4a3261,_0x40ab94)=>{_0x40ab94['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)),_0x30d0de['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x188055=this['_revisionsRepository']['getRevision'](0x0);if(_0x188055){const _0x4f7894=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x188055['id']);this['_revisionViewer']['compare'](_0x188055,_0x4f7894);}}['_handleRevisionSelected'](_0x1252ae,_0x34fdf4){const _0x322471=this['_revisionsRepository']['getRevision'](_0x34fdf4['id']),_0x433bc4=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x322471['id']);this['_revisionViewer']['compare'](_0x322471,_0x433bc4);}['_handleRevisionSetName'](_0x4d93d5,_0x404597){this['_revisionsRepository']['getRevision'](_0x404597['id'])['setName'](_0x404597['name']);}['_handleDiffChange'](_0x5ede94,_0x16c1e1,_0x4b17fe){const _0x1be188=this['_revisionsRepository']['getRevisionsInDiff'](_0x4b17fe);_0x1be188['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1be188),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1be188[0x0]));}['_createRevisionActions'](){const _0x48e418=this['editor'],_0x323865=g['availableRevisionActions'],_0x1e5b47=_0x48e418['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x1e5b47['length'])return _0x1e5b47['map'](_0x388a01=>{const _0x3158c9='string'==typeof _0x388a01?Object['assign']({},_0x323865[_0x388a01]):_0x388a01;return _0x3158c9['action']=_0x3158c9['action']['bind'](this,_0x48e418),_0x3158c9['isVisible']&&(_0x3158c9['isVisible']=_0x3158c9['isVisible']['bind'](this,_0x48e418)),_0x3158c9;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x5ea5f4},_0x1aa24d)=>{const _0xd826dd=_0x5ea5f4['get'](d),_0x3916c6=_0xd826dd['repository'];let _0x5d0d7e=_0xd826dd['diff']['newRevisionId'],_0x22e516=_0x1aa24d['id'];_0x3916c6['getIndex'](_0x5d0d7e)>_0x3916c6['getIndex'](_0x22e516)&&([_0x5d0d7e,_0x22e516]=[_0x22e516,_0x5d0d7e]),_0xd826dd['compare'](_0x5d0d7e,_0x22e516);},'isVisible':({plugins:_0x2d05f2},_0x30647d)=>{const _0x1a2975=_0x2d05f2['get'](d);return!(_0x1a2975['repository']['getRevisionsInDiff'](_0x1a2975['diff'])['length']>0x2)&&!_0x30647d['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x13eb55,{id:_0x4b0790})=>{_0x13eb55['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4b0790);},'isVisible':({plugins:_0x35cd8c},_0x13c4b1)=>!!_0x35cd8c['get'](d)['repository']['getLaterVisibleRevision'](_0x13c4b1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x10c463},{id:_0x34a9bd,revisionNameView:_0x358c17})=>{const _0x4ec7c3=_0x10c463['get'](d),_0x54abdb=_0x4ec7c3['repository']['getEarlierVisibleRevision'](_0x34a9bd);_0x4ec7c3['compare'](_0x34a9bd,_0x54abdb),_0x358c17['focus'](),_0x358c17['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4f15bb,_0x447bd4){super(_0x4f15bb),this['_view']=_0x447bd4,this['_toolbarConfig']=ot(_0x4f15bb['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x2c095d){const _0x27954f=this['editor'],_0x3fd3f6=this['view'],_0x21ea4c=_0x27954f['editing']['view'],_0x3f33ca=_0x3fd3f6['editable'],_0x37328c=_0x21ea4c['document']['getRoot']();_0x3f33ca['name']=_0x37328c['rootName'],_0x3fd3f6['render']();const _0x5272ce=_0x3f33ca['element'];this['setEditableElement'](_0x3f33ca['name'],_0x5272ce),_0x3fd3f6['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x21ea4c['attachDomRoot'](_0x5272ce),this['_elementReplacer']['replace'](_0x2c095d,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1b047c=this['view'],_0x521119=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x521119['detachDomRoot'](_0x1b047c['editable']['name']),_0x1b047c['destroy']();}['_initToolbar'](){const _0x232f14=this['view'];_0x232f14['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x232f14['stickyPanel']['limiterElement']=_0x232f14['element'],_0x232f14['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x367346})=>_0x367346),_0x232f14['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x232f14['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x15979f,_0x2c20ed,_0x30be69={}){super(_0x15979f),this['stickyPanel']=new lt(_0x15979f),this['toolbar']=new nt(_0x15979f,{'shouldGroupWhenFull':_0x30be69['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x15979f,_0x2c20ed);}['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(_0x42d5d0,_0x4b5645){super(_0x4b5645),this['sourceElement']=_0x42d5d0,this['model']['document']['createRoot']();const _0x11aa0b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x11aa0b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4f6c4e,_0x18afcb){const _0xa95651=new this(_0x4f6c4e,_0x18afcb);return await _0xa95651['initPlugins'](),await _0xa95651['ui']['init'](_0x4f6c4e),await _0xa95651['data']['init'](_0xa95651['config']['get']('initialData')||''),_0xa95651['fire']('ready'),_0xa95651;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x4191c7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x324be5){function _0x4090fc(_0x4a5574){return _0x4a5574['map'](_0x4310e9=>String['fromCharCode'](_0x4310e9))['join']('');}super(_0x324be5),this['result']='end',_0x324be5[_0x4090fc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4090fc([0x76,0x69,0x65,0x77])][_0x4090fc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4090fc([0x61,0x75,0x74,0x6f]),_0x324be5[_0x4090fc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x4090fc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4090fc([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x4090fc([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x4090fc([0x6f,0x6b])});}}class k extends _0x4191c7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x40f489){if(super(_0x40f489),!this['editor']['config']['get']('revisionHistory'))throw new _0x133ad6('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5cf561=>this['_showRevisionViewer']({..._0x5cf561,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x175c97=>this['_closeRevisionViewer'](_0x175c97)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2e5f10=>this['_restoreRevision'](_0x2e5f10)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x371196){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x371196;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x3c9805){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x3c9805);}['getRevision'](_0x45ab62){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x45ab62);}['getRevisions'](_0x5148d4){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5148d4||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1119a6=this['editor'],_0x92c3b3=_0x41570e(_0x1119a6,p),_0xae7bbf=_0x1119a6['plugins']['get']('RevisionTracker'),_0x5a93f7=_0x1119a6['plugins']['get']('Users')['users'];return _0x92c3b3['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x92c3b3['lazyRoots'],(_0x92c3b3['plugins']['push'](bt,d,w,class extends _0x4191c7{static get['requires'](){return[d,'Users'];}['init'](){const _0x2a9a19=this['editor']['plugins']['get']('Users');for(const _0x319670 of _0x5a93f7)_0x319670['isAnonymous']||_0x2a9a19['getUser'](_0x319670['id'])||_0x2a9a19['addUser'](_0x319670);const _0x7f212=_0xae7bbf['repository']['getRevisions']();let _0xb82483=null;const _0x13c217=this['editor']['plugins']['get']('RevisionViewer');_0x13c217['adapter']=_0xae7bbf['adapter'],_0x13c217['bind']('isEnabled')['to'](_0xae7bbf),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1119a6,'isReadOnly',_0x3da970=>!_0x3da970);for(const _0xba7ee1 of _0x7f212){const _0x1dbed4=null===_0xba7ee1['creator'];if(_0x1dbed4&&_0xba7ee1['toVersion']===_0xba7ee1['fromVersion'])continue;const _0x38c9d5=_0xba7ee1['toJSON']();_0x13c217['addRevisionData'](_0x38c9d5,(_0x1a0858,_0x268255,_0x2311f3)=>{if(_0x1dbed4){if(_0xb82483)_0xb82483['_update'](_0x1a0858,_0x268255);else{if(!_0x268255){const _0x2db7b0=_0x2311f3['toJSON']();_0x2db7b0['id']=_0x54786b(),_0xae7bbf['saveRevision'](_0x2db7b0,_0x2311f3['toVersion'])['then'](_0x2a0148=>{_0xb82483=_0x2a0148;});}}}else _0xba7ee1['_update'](_0x1a0858,_0x268255);});}}},g),_0x92c3b3);}['_enhanceShowRevisionViewerCallback'](){const _0x241efa=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x5303b8=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x43b677=this['editor']['plugins']['get']('Autosave');await _0x43b677['save']();}else await _0x5303b8['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x37912a=this['editor']['plugins']['get']('Dialog');_0x37912a['isOpen']&&_0x37912a['hide']();}const _0x3cdc93=this['_getRevisionViewerEditorConfig']();return _0x241efa(_0x3cdc93)['then'](_0x44cc94=>{return(this['_viewerEditor']=_0x44cc94,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x44cc94;})['catch'](_0x561982=>(console['error'](_0x561982),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5d676f=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'](),_0x5d676f(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x23ba85=this['editor']['plugins']['get']('Annotations');_0x23ba85['refreshVisibility'](),_0x23ba85['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4655d8){const _0x36029e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4d623e=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3d849e=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x3d849e,_0x4655d8)['then'](_0x2e4714=>(_0x4d623e['style']['display']='block',_0x36029e['style']['display']='none',_0x2e4714));}['_closeRevisionViewer'](_0x42b7a6){const _0xcd180d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0xcd180d['style']['display']='',_0x42b7a6['destroy']();}async['_restoreRevision'](_0x272402){const _0x341190=this['editor'],_0x4d19f3=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1612e7=_0x341190['plugins']['get']('RevisionTracker'),_0x2d11e2=_0x4d19f3['repository']['getRevision'](_0x272402);let _0x4739af,_0x156508,_0x26c344;try{_0x4739af=await _0x4d19f3['getRevisionData'](_0x2d11e2),_0x156508=await _0x4d19f3['getRevisionRootsAttributes'](_0x2d11e2);}catch(_0x5b139d){return void console['error'](_0x5b139d);}_0x341190['model']['change'](_0x2b3f1f=>{for(const _0x22250e of Array['from'](_0x341190['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2b3f1f['removeMarker'](_0x22250e);}),_0x4d19f3['isReady']=!0x1,_0x341190['model']['enqueueChange'](_0x360d07=>{_0x360d07['setSelection'](null),_0x360d07['removeSelectionAttribute'](_0x341190['model']['document']['selection']['getAttributeKeys']());const _0x533099=Object['keys'](_0x4739af);for(const _0x4ee580 of _0x341190['model']['document']['roots'])'$graveyard'!=_0x4ee580['rootName']&&_0x4ee580['isAttached']()&&!_0x533099['includes'](_0x4ee580['rootName'])&&_0x360d07['detachRoot'](_0x4ee580);for(const _0x325df8 of _0x533099){let _0x58fe26=_0x341190['model']['document']['getRoot'](_0x325df8);_0x58fe26&&_0x58fe26['isAttached']()||(_0x58fe26=_0x360d07['addRoot'](_0x325df8));const _0x4ad53e=_0x156508[_0x325df8],_0x37ef10=Object['keys'](_0x4ad53e),_0xc141d1=_0x4739af[_0x325df8];for(const _0xb7440c of _0x58fe26['getAttributeKeys']())_0x37ef10['includes'](_0xb7440c)||_0x360d07['removeAttribute'](_0xb7440c,_0x58fe26);for(const _0x529d0f of _0x37ef10)_0x360d07['setAttribute'](_0x529d0f,_0x156508[_0x325df8][_0x529d0f],_0x58fe26);_0x360d07['remove'](_0x360d07['createRangeIn'](_0x58fe26)),_0x360d07['insert'](_0x341190['data']['parse'](_0xc141d1,_0x58fe26),_0x58fe26,0x0);}});const _0x261895=m(_0x341190['locale'],'Restored');if(_0x2d11e2['name'])_0x26c344=-0x1==_0x2d11e2['name']['indexOf'](_0x261895)?_0x261895+':\x20'+_0x2d11e2['name']:_0x2d11e2['name'];else _0x26c344=_0x261895+':\x20'+(_0x2d11e2['createdAt']['toLocaleDateString'](_0x341190['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2d11e2['createdAt']['toLocaleTimeString'](_0x341190['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1612e7['saveRevision']({'name':_0x26c344}),_0x4d19f3['isReady']=!0x0,_0x341190['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ yt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x216398){super(_0x216398),this['_revisionViewer']=_0x216398['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x364f81=this['_revisionsRepository']['_revisions'],_0x58d550=this['_createRevisionActions'](),_0x5959d5=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x364f81,_0x58d550,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',(_0x4384ca,_0x2f814b)=>{_0x2f814b['revisionViews']['on']('add',(_0x41285a,_0x20f967)=>{_0x20f967['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)),_0x5959d5['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x3a7505=this['_revisionsRepository']['getRevision'](0x0);if(_0x3a7505){const _0x2d3c5d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x3a7505['id']);this['_revisionViewer']['compare'](_0x3a7505,_0x2d3c5d);}}['_handleRevisionSelected'](_0xcd801d,_0x119f65){const _0x80dabc=this['_revisionsRepository']['getRevision'](_0x119f65['id']),_0x20b984=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x80dabc['id']);this['_revisionViewer']['compare'](_0x80dabc,_0x20b984);}['_handleRevisionSetName'](_0x45c704,_0x1b12b6){this['_revisionsRepository']['getRevision'](_0x1b12b6['id'])['setName'](_0x1b12b6['name']);}['_handleDiffChange'](_0x4b30c7,_0x256dd3,_0x54100f){const _0x4b2764=this['_revisionsRepository']['getRevisionsInDiff'](_0x54100f);_0x4b2764['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4b2764),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4b2764[0x0]));}['_createRevisionActions'](){const _0xfe489b=this['editor'],_0x569102=g['availableRevisionActions'],_0xb265fc=_0xfe489b['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0xb265fc['length'])return _0xb265fc['map'](_0x3fbb9b=>{const _0xf1dbca='string'==typeof _0x3fbb9b?Object['assign']({},_0x569102[_0x3fbb9b]):_0x3fbb9b;return _0xf1dbca['action']=_0xf1dbca['action']['bind'](this,_0xfe489b),_0xf1dbca['isVisible']&&(_0xf1dbca['isVisible']=_0xf1dbca['isVisible']['bind'](this,_0xfe489b)),_0xf1dbca;});}}function yt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x123677},_0x3880fb)=>{const _0x15ba90=_0x123677['get'](d),_0x242315=_0x15ba90['repository'];let _0x4764c8=_0x15ba90['diff']['newRevisionId'],_0x4973ec=_0x3880fb['id'];_0x242315['getIndex'](_0x4764c8)>_0x242315['getIndex'](_0x4973ec)&&([_0x4764c8,_0x4973ec]=[_0x4973ec,_0x4764c8]),_0x15ba90['compare'](_0x4764c8,_0x4973ec);},'isVisible':({plugins:_0x165d39},_0x1e8709)=>{const _0x3e7c44=_0x165d39['get'](d);return!(_0x3e7c44['repository']['getRevisionsInDiff'](_0x3e7c44['diff'])['length']>0x2)&&!_0x1e8709['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x17dd72,{id:_0x360423})=>{_0x17dd72['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x360423);},'isVisible':({plugins:_0x3d9c47},_0x5e0b7e)=>!!_0x3d9c47['get'](d)['repository']['getLaterVisibleRevision'](_0x5e0b7e['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x17f232},{id:_0x503548,revisionNameView:_0x32df2b})=>{const _0x4315aa=_0x17f232['get'](d),_0x284d4a=_0x4315aa['repository']['getEarlierVisibleRevision'](_0x503548);_0x4315aa['compare'](_0x503548,_0x284d4a),_0x32df2b['focus'](),_0x32df2b['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x14892d,_0x5e4f63){super(_0x14892d),this['_view']=_0x5e4f63,this['_toolbarConfig']=ot(_0x14892d['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x10ac59){const _0x349b98=this['editor'],_0x333484=this['view'],_0x5c2193=_0x349b98['editing']['view'],_0x5d36e1=_0x333484['editable'],_0x4011d9=_0x5c2193['document']['getRoot']();_0x5d36e1['name']=_0x4011d9['rootName'],_0x333484['render']();const _0x29f6e3=_0x5d36e1['element'];this['setEditableElement'](_0x5d36e1['name'],_0x29f6e3),_0x333484['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x5c2193['attachDomRoot'](_0x29f6e3),this['_elementReplacer']['replace'](_0x10ac59,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5c9df9=this['view'],_0x5d8278=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x5d8278['detachDomRoot'](_0x5c9df9['editable']['name']),_0x5c9df9['destroy']();}['_initToolbar'](){const _0x5f3a11=this['view'];_0x5f3a11['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5f3a11['stickyPanel']['limiterElement']=_0x5f3a11['element'],_0x5f3a11['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x39e594})=>_0x39e594),_0x5f3a11['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5f3a11['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x658260,_0x5549c4,_0x21f0b3={}){super(_0x658260),this['stickyPanel']=new lt(_0x658260),this['toolbar']=new nt(_0x658260,{'shouldGroupWhenFull':_0x21f0b3['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x658260,_0x5549c4);}['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(_0x5e71db,_0x4d8a66){super(_0x4d8a66),this['sourceElement']=_0x5e71db,this['model']['document']['createRoot']();const _0x3330d9=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3330d9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x44d1e4,_0x40fef7){const _0xb08b51=new this(_0x44d1e4,_0x40fef7);return await _0xb08b51['initPlugins'](),await _0xb08b51['ui']['init'](_0x44d1e4),await _0xb08b51['data']['init'](_0xb08b51['config']['get']('initialData')||''),_0xb08b51['fire']('ready'),_0xb08b51;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class bt extends _0x34aee2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1f9609){function _0x3bf98a(_0x4aaa5e){return _0x4aaa5e['map'](_0x5e4ca5=>String['fromCharCode'](_0x5e4ca5))['join']('');}super(_0x1f9609),this['result']='end',_0x1f9609[_0x3bf98a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bf98a([0x76,0x69,0x65,0x77])][_0x3bf98a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bf98a([0x61,0x75,0x74,0x6f]),_0x1f9609[_0x3bf98a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3bf98a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bf98a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3bf98a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3bf98a([0x6f,0x6b])});}}class k extends _0x34aee2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x4f1214){if(super(_0x4f1214),!this['editor']['config']['get']('revisionHistory'))throw new _0x290f45('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x3afece=>this['_showRevisionViewer']({..._0x3afece,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5133fc=>this['_closeRevisionViewer'](_0x5133fc)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x58be19=>this['_restoreRevision'](_0x58be19)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x10e68d){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x10e68d;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x1ba14c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x1ba14c);}['getRevision'](_0x5e1f90){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x5e1f90);}['getRevisions'](_0x436ce7){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x436ce7||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x10f455=this['editor'],_0x16774a=_0x5f41c0(_0x10f455,p),_0x30d3f3=_0x10f455['plugins']['get']('RevisionTracker'),_0x2ab77b=_0x10f455['plugins']['get']('Users')['users'];return _0x16774a['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x16774a['lazyRoots'],(_0x16774a['plugins']['push'](bt,d,w,class extends _0x34aee2{static get['requires'](){return[d,'Users'];}['init'](){const _0x366be9=this['editor']['plugins']['get']('Users');for(const _0x44e7df of _0x2ab77b)_0x44e7df['isAnonymous']||_0x366be9['getUser'](_0x44e7df['id'])||_0x366be9['addUser'](_0x44e7df);const _0xe40917=_0x30d3f3['repository']['getRevisions']();let _0x246569=null;const _0x477c39=this['editor']['plugins']['get']('RevisionViewer');_0x477c39['adapter']=_0x30d3f3['adapter'],_0x477c39['bind']('isEnabled')['to'](_0x30d3f3),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x10f455,'isReadOnly',_0x3fd755=>!_0x3fd755);for(const _0x5528fc of _0xe40917){const _0x18eb8f=null===_0x5528fc['creator'];if(_0x18eb8f&&_0x5528fc['toVersion']===_0x5528fc['fromVersion'])continue;const _0x522063=_0x5528fc['toJSON']();_0x477c39['addRevisionData'](_0x522063,(_0x20a39f,_0x158d35,_0x1502ac)=>{if(_0x18eb8f){if(_0x246569)_0x246569['_update'](_0x20a39f,_0x158d35);else{if(!_0x158d35){const _0x44cb6d=_0x1502ac['toJSON']();_0x44cb6d['id']=_0x59cdb0(),_0x30d3f3['saveRevision'](_0x44cb6d,_0x1502ac['toVersion'])['then'](_0x367cde=>{_0x246569=_0x367cde;});}}}else _0x5528fc['_update'](_0x20a39f,_0x158d35);});}}},g),_0x16774a);}['_enhanceShowRevisionViewerCallback'](){const _0xfa039c=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x481ceb=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4e1049=this['editor']['plugins']['get']('Autosave');await _0x4e1049['save']();}else await _0x481ceb['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x5271d2=this['editor']['plugins']['get']('Dialog');_0x5271d2['isOpen']&&_0x5271d2['hide']();}const _0xccd265=this['_getRevisionViewerEditorConfig']();return _0xfa039c(_0xccd265)['then'](_0x2f2281=>{return(this['_viewerEditor']=_0x2f2281,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2f2281;})['catch'](_0x5e5690=>(console['error'](_0x5e5690),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x7be97a=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'](),_0x7be97a(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5c073e=this['editor']['plugins']['get']('Annotations');_0x5c073e['refreshVisibility'](),_0x5c073e['refreshPositioning']();}})));}['_showRevisionViewer'](_0x150a42){const _0x1df620=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1de657=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x37e4e7=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x37e4e7,_0x150a42)['then'](_0x2472cb=>(_0x1de657['style']['display']='block',_0x1df620['style']['display']='none',_0x2472cb));}['_closeRevisionViewer'](_0x3b4884){const _0x51bcf1=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x51bcf1['style']['display']='',_0x3b4884['destroy']();}async['_restoreRevision'](_0x3919ce){const _0x179716=this['editor'],_0x393ae5=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1b32fa=_0x179716['plugins']['get']('RevisionTracker'),_0x2b7e32=_0x393ae5['repository']['getRevision'](_0x3919ce);let _0x266cf4,_0x535aa1,_0x30152a;try{_0x266cf4=await _0x393ae5['getRevisionData'](_0x2b7e32),_0x535aa1=await _0x393ae5['getRevisionRootsAttributes'](_0x2b7e32);}catch(_0x22431f){return void console['error'](_0x22431f);}_0x179716['model']['change'](_0xde574a=>{for(const _0x12609c of Array['from'](_0x179716['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xde574a['removeMarker'](_0x12609c);}),_0x393ae5['isReady']=!0x1,_0x179716['model']['enqueueChange'](_0x30ec91=>{_0x30ec91['setSelection'](null),_0x30ec91['removeSelectionAttribute'](_0x179716['model']['document']['selection']['getAttributeKeys']());const _0x20ac12=Object['keys'](_0x266cf4);for(const _0x561de4 of _0x179716['model']['document']['roots'])'$graveyard'!=_0x561de4['rootName']&&_0x561de4['isAttached']()&&!_0x20ac12['includes'](_0x561de4['rootName'])&&_0x30ec91['detachRoot'](_0x561de4);for(const _0x545eb4 of _0x20ac12){let _0x4b172a=_0x179716['model']['document']['getRoot'](_0x545eb4);_0x4b172a&&_0x4b172a['isAttached']()||(_0x4b172a=_0x30ec91['addRoot'](_0x545eb4));const _0xa594b9=_0x535aa1[_0x545eb4],_0x28a64e=Object['keys'](_0xa594b9),_0x534afc=_0x266cf4[_0x545eb4];for(const _0x23fbf6 of _0x4b172a['getAttributeKeys']())_0x28a64e['includes'](_0x23fbf6)||_0x30ec91['removeAttribute'](_0x23fbf6,_0x4b172a);for(const _0xad1e0c of _0x28a64e)_0x30ec91['setAttribute'](_0xad1e0c,_0x535aa1[_0x545eb4][_0xad1e0c],_0x4b172a);_0x30ec91['remove'](_0x30ec91['createRangeIn'](_0x4b172a)),_0x30ec91['insert'](_0x179716['data']['parse'](_0x534afc,_0x4b172a),_0x4b172a,0x0);}});const _0x2765c8=m(_0x179716['locale'],'Restored');if(_0x2b7e32['name'])_0x30152a=-0x1==_0x2b7e32['name']['indexOf'](_0x2765c8)?_0x2765c8+':\x20'+_0x2b7e32['name']:_0x2b7e32['name'];else _0x30152a=_0x2765c8+':\x20'+(_0x2b7e32['createdAt']['toLocaleDateString'](_0x179716['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x2b7e32['createdAt']['toLocaleTimeString'](_0x179716['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1b32fa['saveRevision']({'name':_0x30152a}),_0x393ae5['isReady']=!0x0,_0x179716['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};