@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250418.0 → 0.0.0-nightly-20250420.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 (180) 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/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +11 -11
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionhistoryutils.js +1 -1
  159. package/src/revisionsrepository.js +1 -1
  160. package/src/revisiontracker.js +1 -1
  161. package/src/revisionviewer.js +1 -1
  162. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  163. package/src/ui/revision/revisionauthorview.js +1 -1
  164. package/src/ui/revision/revisionnameview.js +1 -1
  165. package/src/ui/revision/revisionview.js +2 -2
  166. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  167. package/src/ui/revision/subrevisionview.js +1 -1
  168. package/src/ui/revision/utils.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  170. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  174. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  175. package/src/ui/revisionssidebar/utils.js +1 -1
  176. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  177. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  179. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  180. package/src/utils/common-translations.js +1 -1
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x540212,uid as _0x5d960a,Collection as _0x47a699,logWarning as _0x46a28f,FocusTracker as _0x3488cf,KeystrokeHandler as _0x2c3272,scrollViewportToShowTarget as _0x3d77b2,ResizeObserver as nt,ElementReplacer as ot,CKEditorError as _0x8198d0}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4fdf13,set as _0x3a2bd1,unset as _0x5f4dc0,isEqual as _0x3d32b5}from'es-toolkit/compat';import{Plugin as _0x5f2429,PendingActions as _0x25b081,Command as _0x31ac0e,ElementApiMixin as _0x262cbd,Editor as _0x1d5234}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3be340,getMarkerDomElement as _0x585a8a,ConfirmMixin as ti,sanitizeEditorConfig as _0x3f10c5}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x135b78,ViewAttributeElement as _0x26a553,ViewEmptyElement as _0x21ea0a,ViewRawElement as _0x580101,ViewUIElement as _0x1719aa,ViewDocumentFragment as _0x2770a8,ViewText as _0x1f28ef,ViewElement as _0x4a0765,Element as ut,Range as lt,Position as ft,DocumentFragment as vt,Text as gt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3811bd,IconChevronUp as _0x1ae082,IconChevronDown as _0x2e8c11,IconUndo as _0x2dbb84,IconUser as _0x4ad50a,IconThreeVerticalDots as _0x265579}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x3247c2,submitHandler as _0x10cc82,LabeledFieldView as _0x49fa80,createLabeledInputText as _0x32ab91,createDropdown as _0x3b8770,ListView as _0x34576f,ListItemView as _0x1f2ffe,ButtonView as te,MenuBarMenuView as _0x3e5b05,MenuBarMenuListView as _0x4e1c6c,MenuBarMenuListItemView as _0xcf675f,MenuBarMenuListItemButtonView as _0x38c9e3,ContextualBalloon as _0x35abee,ToolbarSeparatorView as _0x28d5aa,IconView as _0x1ed181,addListToDropdown as _0x325e90,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0xe16333}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x540212(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x20bd02){super(),this['id']=_0x20bd02['id']||_0x5d960a(),this['creator']=_0x20bd02['creator']||null,this['authors']=_0x20bd02['authors']||[],this['diffData']=_0x20bd02['diffData']||null,this['toVersion']=_0x20bd02['toVersion']||0x0,this['fromVersion']=_0x20bd02['fromVersion']||0x0,this['set']('name',_0x20bd02['name']||''),this['set']('createdAt',_0x20bd02['createdAt']||new Date()),this['set']('attributes',_0x20bd02['attributes']||{});}['setName'](_0x24ffb6){this['_update']({'name':_0x24ffb6});}['setAttribute'](_0x386101,_0x38c155){const _0x1bd830=_0x4fdf13(this['attributes']);_0x3a2bd1(_0x1bd830,_0x386101,_0x38c155),this['_update']({'attributes':_0x1bd830});}['removeAttribute'](_0x1010a3){const _0x538719=_0x4fdf13(this['attributes']);_0x5f4dc0(_0x538719,_0x1010a3),this['_update']({'attributes':_0x538719});}['_update'](_0x52fb14,_0xae44a3=!0x1){let _0x767c89=!0x1;const _0x1bd33b={'id':this['id']},_0x2bbee2=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xe39271 of _0x2bbee2){const _0x52039a=_0x52fb14[_0xe39271];void 0x0!==_0x52039a&&_0x52039a!==this[_0xe39271]&&(this[_0xe39271]=_0x52039a,_0x1bd33b[_0xe39271]=_0x52039a,_0x767c89=!0x0);}_0x767c89&&(_0x1bd33b['authors']&&(_0x1bd33b['authorsIds']=_0x1bd33b['authors']['map'](_0x46377d=>_0x46377d['id']),delete _0x1bd33b['authors']),this['fire']('_update',_0x1bd33b,_0xae44a3));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x4392a7=>_0x4392a7['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x5f2429{['_revisions'];static get['requires'](){return[_0x3be340];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x412eef){super(_0x412eef),this['_revisions']=new _0x47a699();}['afterInit'](){!async function(_0x572f1e){const _0x3adefb=_0x1ab37d([0x6a,0x6c,0x79,0x75,0x35,0x31,0x49,0x6e,0x68,0x64,0x73,0x5a,0x4c,0x6f,0x53,0x62,0x61,0x69,0x77,0x34,0x43,0x66,0x4b,0x59,0x57,0x6b,0x4e,0x76,0x67,0x7a,0x55,0x78,0x4f,0x63,0x45,0x52,0x71,0x47,0x50,0x56,0x37,0x39,0x44,0x6d,0x48,0x30,0x36,0x38,0x65,0x42,0x58,0x4a,0x54,0x4d,0x41,0x74,0x70,0x33,0x51,0x46,0x72,0x32]),_0x564b80=0xeb829,_0x470374=0x3754aa22,_0x47e8fd=0x3753cf42^_0x470374,_0x5bc186=window[_0x1ab37d([0x44,0x61,0x74,0x65])][_0x1ab37d([0x6e,0x6f,0x77])](),_0x582407=_0x572f1e[_0x1ab37d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1975f0=new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5ab451=>{_0x582407[_0x1ab37d([0x6f,0x6e,0x63,0x65])](_0x1ab37d([0x72,0x65,0x61,0x64,0x79]),_0x5ab451);}),_0x25cd32={[_0x1ab37d([0x6b,0x74,0x79])]:_0x1ab37d([0x45,0x43]),[_0x1ab37d([0x75,0x73,0x65])]:_0x1ab37d([0x73,0x69,0x67]),[_0x1ab37d([0x63,0x72,0x76])]:_0x1ab37d([0x50,0x2d,0x32,0x35,0x36]),[_0x1ab37d([0x78])]:_0x1ab37d([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]),[_0x1ab37d([0x79])]:_0x1ab37d([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]),[_0x1ab37d([0x61,0x6c,0x67])]:_0x1ab37d([0x45,0x53,0x32,0x35,0x36])},_0x5a566c=_0x582407[_0x1ab37d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ab37d([0x67,0x65,0x74])](_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4142a6(){let _0x3cf404,_0x22eb45=null,_0x6f02d2=null;try{if(_0x5a566c==_0x1ab37d([0x47,0x50,0x4c]))return _0x1ab37d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cf404=_0x4b779f(),!_0x3cf404)return _0x1ab37d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cf404[_0x1ab37d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x6f02d2=_0x44d414(_0x3cf404[_0x1ab37d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cf404[_0x1ab37d([0x6a,0x74,0x69])])),await _0x3c2eec()?_0x2a2b57()?_0x1eccb8()?_0x1ab37d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1c70f4()?(_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab37d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x22eb45=_0x13df19(_0x1ab37d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ab37d([0x74,0x72,0x69,0x61,0x6c])&&(_0x22eb45=_0x13df19(_0x1ab37d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x37d0dc()):_0x1ab37d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab37d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ab37d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1ff35b){return _0x1ab37d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1eccb8(){const _0x4e87a8=[_0x1ab37d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ab37d([0x74,0x72,0x69,0x61,0x6c])][_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bc186/0x3e8:0xe10*_0x47e8fd;return _0x3cf404[_0x1ab37d([0x65,0x78,0x70])]<_0x4e87a8;}function _0x2a2b57(){const _0x56432a=_0x3cf404[_0x1ab37d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x56432a)return!0x1;if(_0x56432a[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x2a])))return!0x0;if(_0x56432a[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x52,0x48])))return!0x0;if(_0x56432a[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x52,0x52,0x48]))){if(_0x253468())return!0x0;if(_0x82b475()||_0x3238f7())return!0x0;}return!0x1;}function _0x1c70f4(){const _0x4360df=_0x3cf404[_0x1ab37d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4360df||0x0==_0x4360df[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5f29f1}=new URL(window[_0x1ab37d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4360df[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f29f1))return!0x0;const _0x41b6c8=_0x5f29f1[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e]));return _0x4360df[_0x1ab37d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x35204b=>_0x35204b[_0x1ab37d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ab37d([0x2a])))[_0x1ab37d([0x6d,0x61,0x70])](_0x13eee9=>_0x13eee9[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e])))[_0x1ab37d([0x73,0x6f,0x6d,0x65])](_0x38b37a=>_0x41b6c8[_0x1ab37d([0x65,0x76,0x65,0x72,0x79])]((_0x5e67ee,_0xa11172)=>_0x38b37a[_0xa11172]===_0x5e67ee||_0x38b37a[_0xa11172]===_0x1ab37d([0x2a])));}function _0x37d0dc(){return _0x22eb45&&_0x6f02d2?new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x415b0a,_0x374b7b)=>{_0x22eb45[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x415b0a,_0x374b7b),_0x6f02d2[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x4c317b=>{_0x4c317b!=_0x1ab37d([0x56,0x61,0x6c,0x69,0x64])&&_0x415b0a(_0x4c317b);},_0x374b7b);}):_0x22eb45||_0x6f02d2||_0x1ab37d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x44d414(_0xe3e193,_0x510658){return new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fe173=>{if(_0x14ad6f())return _0x2fe173(_0x1ab37d([0x56,0x61,0x6c,0x69,0x64]));_0x577d16(),_0x582407[_0x1ab37d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ab37d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3c9976=!0x1;const _0x22741a=_0x5d960a();function _0x4dd2e7(_0x2bdfe4){return!!_0x2bdfe4&&(typeof _0x2bdfe4===_0x1ab37d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2bdfe4===_0x1ab37d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2bdfe4[_0x1ab37d([0x74,0x68,0x65,0x6e])]===_0x1ab37d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2bdfe4[_0x1ab37d([0x63,0x61,0x74,0x63,0x68])]===_0x1ab37d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x424b78(_0xbb3749){_0x56019b(_0xbb3749)[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x5ab09b=>{if(!_0x5ab09b||_0x5ab09b[_0x1ab37d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ab37d([0x6f,0x6b]))return _0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c4f91(_0x299d43(_0x22741a+_0x510658))!=_0x5ab09b[_0x1ab37d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ab37d([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x2e7923=>(_0x2fa3af(),_0x2e7923),()=>{const _0x33c719=_0x1afb0e();return null==_0x33c719?(_0x2fa3af(),_0x1ab37d([0x56,0x61,0x6c,0x69,0x64])):_0x1ab37d(_0x5bc186-_0x33c719>(0x13582e22^_0x470374)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x2fe173)[_0x1ab37d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2fe173(_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x579294=0x376244a2^_0x470374;function _0x2fa3af(){const _0x53d438=_0x1ab37d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c4f91(_0x299d43(_0xe3e193)),_0x42ba64=_0xe62ce8(_0x2c4f91(window[_0x1ab37d([0x4d,0x61,0x74,0x68])][_0x1ab37d([0x63,0x65,0x69,0x6c])](_0x5bc186/_0x579294)));window[_0x1ab37d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab37d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53d438,_0x42ba64);}function _0x1afb0e(){const _0x16f656=_0x1ab37d([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c4f91(_0x299d43(_0xe3e193)),_0x4c7e4f=window[_0x1ab37d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ab37d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x16f656);return _0x4c7e4f?window[_0x1ab37d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe62ce8(_0x4c7e4f),0x10)*_0x579294:null;}function _0x56019b(_0x224f2e){return new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52705c,_0x58faa2)=>{_0x224f2e[_0x1ab37d([0x74,0x68,0x65,0x6e])](_0x52705c,_0x58faa2),window[_0x1ab37d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x58faa2,0x37557ee2^_0x470374);});}}_0x582407[_0x1ab37d([0x6f,0x6e])](_0x1ab37d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x40fc47,_0x5c67f7)=>{if(_0x5c67f7[0x0]!=_0xe3e193)return _0x2fe173(_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5c67f7[0x1]={..._0x5c67f7[0x1],[_0x1ab37d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x22741a};},{[_0x1ab37d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab37d([0x68,0x69,0x67,0x68])}),_0x582407[_0x1ab37d([0x6f,0x6e])](_0x1ab37d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x584a9e=>{_0x4dd2e7(_0x584a9e[_0x1ab37d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3c9976=!0x0,_0x424b78(_0x584a9e[_0x1ab37d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ab37d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ab37d([0x6c,0x6f,0x77])}),_0x1975f0[_0x1ab37d([0x74,0x68,0x65,0x6e])](()=>{_0x3c9976||_0x2fe173(_0x1ab37d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x14ad6f(){return _0x582407[_0x1ab37d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab37d([0x76,0x69,0x65,0x77])][_0x1ab37d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ab37d([0x61,0x75,0x74,0x6f]);}function _0x577d16(){_0x582407[_0x1ab37d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ab37d([0x76,0x69,0x65,0x77])][_0x1ab37d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ab37d([0x61,0x75,0x74,0x6f]);}}function _0x13df19(_0x44cda8){const _0x568b38=[new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x529b85=>setTimeout(_0x529b85,0x375d94ee^_0x470374)),_0x1975f0[_0x1ab37d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fe7ef=>{const _0x4fe59=0x3754aa25^_0x470374,_0x41f71d=_0x572f1e[_0x1ab37d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x4d73e9(){_0x41f71d[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4fe59&&_0x4fe7ef();}_0x4d73e9(),_0x41f71d[_0x1ab37d([0x6f,0x6e])](_0x1ab37d([0x61,0x64,0x64]),_0x4d73e9);})),new window[(_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bf585=>{function _0x6a4173(){for(const _0x2b9be6 in window)if(window[_0x1ab37d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x1ab37d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2b9be6))&&window[_0x2b9be6]==_0x564b80)return _0x4bf585();_0x582407[_0x1ab37d([0x73,0x74,0x61,0x74,0x65])]!=_0x1ab37d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x1ab37d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x6a4173,0x3754b9aa^_0x470374);}_0x55d5b8(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x6a4173();})];return window[_0x1ab37d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ab37d([0x72,0x61,0x63,0x65])](_0x568b38)[_0x1ab37d([0x74,0x68,0x65,0x6e])](()=>_0x44cda8);}async function _0xa162a8(){if(await _0x1975f0,_0x55d5b8(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1221f8=_0x572f1e[_0x1ab37d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x185d45=_0x572f1e[_0x1ab37d([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])](_0x1221f8[_0x1ab37d([0x69,0x64])]),_0x9d38fd=_0x5b90a4(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x9d38fd[_0x1ab37d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1221f8['id'],_0x185d45?_0x185d45['id']:null,!0x0),_0x9d38fd[_0x1ab37d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x9d38fd[_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x9d38fd[_0x1ab37d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x439af3,void(_0x9d38fd[_0x1ab37d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x439af3);}if(_0x55d5b8(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x1ef185=_0x5b90a4(_0x1ab37d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x1ef185[_0x1ab37d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1ef185[_0x1ab37d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1ef185[_0x1ab37d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x439af3,_0x1ef185[_0x1ab37d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x439af3;}_0x582407[_0x1ab37d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab37d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x439af3,_0x582407[_0x1ab37d([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ab37d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x439af3,_0x582407[_0x1ab37d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ab37d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x253468(){return _0x55d5b8(_0x1ab37d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5b90a4(_0x1ab37d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x1ab37d([0x73,0x74,0x61,0x74,0x65])]==_0x1ab37d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x82b475(){return _0x55d5b8(_0x1ab37d([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 _0x3238f7(){return _0x55d5b8(_0x1ab37d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x3b4f32(_0x5878d4){const _0x1e12e6=_0x2f17d();_0x582407[_0x1e12e6]=_0x1ab37d([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])+_0x5878d4,_0x5878d4[_0x1ab37d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x1ab37d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2f17d()]=_0x564b80),_0x5878d4!=_0x1ab37d([0x56,0x61,0x6c,0x69,0x64])&&_0xa162a8();}function _0x2f17d(){const _0x2f2ed4=window[_0x1ab37d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ab37d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ab37d([0x6e,0x6f,0x77])]())[_0x1ab37d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ab37d([0x2e]),'');let _0x152a43=_0x1ab37d([0x6a]);for(let _0x36b690=0x0;_0x36b690<_0x2f2ed4[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36b690+=0x2){let _0x13d8c4=window[_0x1ab37d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f2ed4[_0x1ab37d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36b690,_0x36b690+0x2));_0x13d8c4>=_0x3adefb[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x13d8c4-=_0x3adefb[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x152a43+=_0x3adefb[_0x13d8c4];}return _0x152a43;}function _0x4b779f(){const _0x5d3a81=_0x5a566c[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e]));if(0x3!=_0x5d3a81[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x117d44(_0x5d3a81[0x1]);function _0x117d44(_0x44c217){const _0x36a512=_0x2afa30(_0x44c217);return _0x36a512&&_0x4375c8()?_0x36a512:null;function _0x4375c8(){const _0x101471=_0x36a512[_0x1ab37d([0x6a,0x74,0x69])],_0x5e3b0f=window[_0x1ab37d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x101471[_0x1ab37d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x101471[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x33858d={..._0x36a512,[_0x1ab37d([0x6a,0x74,0x69])]:_0x101471[_0x1ab37d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x101471[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x33858d[_0x1ab37d([0x76,0x63])],_0x299d43(_0x33858d)==_0x5e3b0f;}}}async function _0x3c2eec(){let _0xbe835a=!0x0;try{const _0x3f2ce3=_0x5a566c[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])](_0x1ab37d([0x2e])),[_0x20511f,_0x595077,_0x3d3662]=_0x3f2ce3;return _0x44bdc4(_0x20511f),await _0x4b1f32(_0x20511f,_0x595077,_0x3d3662),_0xbe835a;}catch(_0x1111d6){return!0x1;}function _0x44bdc4(_0x240fde){const _0x21a867=_0x2afa30(_0x240fde);_0x21a867&&_0x21a867[_0x1ab37d([0x61,0x6c,0x67])]==_0x1ab37d([0x45,0x53,0x32,0x35,0x36])||(_0xbe835a=!0x1);}async function _0x4b1f32(_0xf2bf7,_0x4dd08c,_0xd28aca){const _0x346d89=window[_0x1ab37d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ab37d([0x66,0x72,0x6f,0x6d])](_0xca418d(_0xd28aca),_0x5ecdaf=>_0x5ecdaf[_0x1ab37d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x182fe7=new window[(_0x1ab37d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ab37d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf2bf7+_0x1ab37d([0x2e])+_0x4dd08c),_0x53aa5e=window[_0x1ab37d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ab37d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53aa5e)return;const _0x5449b2=await _0x53aa5e[_0x1ab37d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ab37d([0x6a,0x77,0x6b]),_0x25cd32,{[_0x1ab37d([0x6e,0x61,0x6d,0x65])]:_0x1ab37d([0x45,0x43,0x44,0x53,0x41]),[_0x1ab37d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ab37d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ab37d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53aa5e[_0x1ab37d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ab37d([0x6e,0x61,0x6d,0x65])]:_0x1ab37d([0x45,0x43,0x44,0x53,0x41]),[_0x1ab37d([0x68,0x61,0x73,0x68])]:{[_0x1ab37d([0x6e,0x61,0x6d,0x65])]:_0x1ab37d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5449b2,_0x346d89,_0x182fe7)||(_0xbe835a=!0x1);}}function _0x2afa30(_0x4bf752){return _0x4bf752[_0x1ab37d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ab37d([0x65,0x79]))?JSON[_0x1ab37d([0x70,0x61,0x72,0x73,0x65])](_0xca418d(_0x4bf752)):null;}function _0xca418d(_0x207a19){return window[_0x1ab37d([0x61,0x74,0x6f,0x62])](_0x207a19[_0x1ab37d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ab37d([0x2b]))[_0x1ab37d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ab37d([0x2f])));}function _0x299d43(_0xec340b){let _0x18584d=0x1505;function _0xac8196(_0x36634c){for(let _0x57910c=0x0;_0x57910c<_0x36634c[_0x1ab37d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57910c++){const _0x11b339=_0x36634c[_0x1ab37d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57910c);_0x18584d=(_0x18584d<<0x5)+_0x18584d+_0x11b339,_0x18584d&=_0x18584d;}}function _0x1f3ba1(_0x4ccc57){Array[_0x1ab37d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4ccc57)?_0x4ccc57[_0x1ab37d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1f3ba1):_0x4ccc57&&typeof _0x4ccc57==_0x1ab37d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ab37d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4ccc57)[_0x1ab37d([0x73,0x6f,0x72,0x74])]()[_0x1ab37d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd7bc1f,_0x1e1e50])=>{_0xac8196(_0xd7bc1f),_0x1f3ba1(_0x1e1e50);}):_0xac8196(window[_0x1ab37d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4ccc57));}return _0x1f3ba1(_0xec340b),_0x18584d>>>0x0;}function _0x2c4f91(_0x282afd){return _0x282afd[_0x1ab37d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ab37d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ab37d([0x30]));}function _0xe62ce8(_0x34e326){return _0x34e326[_0x1ab37d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ab37d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ab37d([0x6a,0x6f,0x69,0x6e])]('');}function _0x55d5b8(_0x3e9487){return _0x582407[_0x1ab37d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab37d([0x68,0x61,0x73])](_0x3e9487);}function _0x5b90a4(_0x1fc92d){return _0x582407[_0x1ab37d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x1ab37d([0x67,0x65,0x74])](_0x1fc92d);}function _0x439af3(){}function _0x1ab37d(_0x511ed4){return _0x511ed4['map'](_0x59452f=>String['fromCharCode'](_0x59452f))['join']('');}_0x3b4f32(await _0x4142a6());}(this);}['createRevision'](_0x466c0d){const _0x16fd42=this['editor']['plugins']['get']('Users');return new h({'id':_0x466c0d['id'],'name':_0x466c0d['name'],'creator':_0x466c0d['creatorId']?_0x16fd42['getUser'](_0x466c0d['creatorId']):null,'diffData':_0x466c0d['diffData']||_0x466c0d['data'],'authors':_0x466c0d['authorsIds']['map'](_0x295c26=>_0x16fd42['getUser'](_0x295c26)),'createdAt':new Date(_0x466c0d['createdAt']),'attributes':_0x466c0d['attributes'],'fromVersion':_0x466c0d['fromVersion'],'toVersion':_0x466c0d['toVersion']});}['addRevision'](_0x4b9051,_0x487238=0x0){this['_revisions']['add'](_0x4b9051,_0x487238);}['getRevision'](_0x15e9cb){return this['_revisions']['get'](_0x15e9cb);}['getRevisions'](_0x3a148b={'toJSON':!0x1}){const _0x49058f=Array['from'](this['_revisions']);return _0x49058f['reverse'](),_0x3a148b['toJSON']?_0x49058f['map'](_0x2072d2=>_0x2072d2['toJSON']()):_0x49058f;}['getIndex'](_0x10fa6c){return this['_revisions']['getIndex'](_0x10fa6c);}['getEarlierVisibleRevision'](_0x460043){const [,_0x2f440f]=this['getRevisionsIterator'](_0x460043,{'direction':'earlier'});return _0x2f440f;}['getLaterVisibleRevision'](_0x43f5f1){const [,_0x2fb5ee]=this['getRevisionsIterator'](_0x43f5f1,{'direction':'later'});return _0x2fb5ee;}['getRevisionsInDiff'](_0x77292b){const _0x2dd0a4=[];for(const _0x25efc5 of this['getRevisionsIterator'](_0x77292b['newRevisionId']))if(_0x2dd0a4['push'](_0x25efc5),_0x25efc5['id']===_0x77292b['oldRevisionId'])break;return _0x2dd0a4;}*['getRevisionsIterator'](_0x3992d7,{direction:_0x5e8ac6='earlier',filter:_0x54d3fd=()=>!0x0}={}){const _0x197ff7='earlier'===_0x5e8ac6?0x1:-0x1;let _0x1dafb7=this['_revisions']['get'](_0x3992d7),_0xf8f89c=this['getIndex'](_0x1dafb7);for(yield _0x1dafb7;_0x1dafb7;){if(_0xf8f89c+=_0x197ff7,_0x1dafb7=this['getRevision'](_0xf8f89c),!_0x1dafb7)return;_0x54d3fd(_0x1dafb7)&&(yield _0x1dafb7);}}}class V extends _0x5f2429{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x135b78,'c'],[_0x26a553,'a'],[_0x21ea0a,'e'],[_0x580101,'r'],[_0x1719aa,'u']]);['_typeCharToViewClass']=new Map([['c',_0x135b78],['a',_0x26a553],['e',_0x21ea0a],['r',_0x580101],['u',_0x1719aa]]);async['loadRevisionData'](_0xcb6325,_0x57d181){if(_0xcb6325['diffData']||!_0x57d181)return;const _0x4ae73d=this['editor']['config']['get']('collaboration.channelId'),_0x1aab9a=await _0x57d181['getRevision']({'channelId':_0x4ae73d,'revisionId':_0xcb6325['id']});_0xcb6325['diffData']=_0x1aab9a['diffData'];}['getRevisionDocumentData'](_0x1ef68f){const _0x52c870={};for(const _0x300c5c in _0x1ef68f['diffData']){if(_0x1ef68f['diffData'][_0x300c5c]['attachChange']&&!_0x1ef68f['diffData'][_0x300c5c]['attachChange']['isAttached'])continue;const _0x4379ba=this['_removeRevisionMarkers'](JSON['parse'](_0x1ef68f['diffData'][_0x300c5c]['insertions'])),_0x2e95cb=this['editor']['editing']['view']['document'],_0x2abbbe=new _0x2770a8(_0x2e95cb,_0x4379ba['map'](_0x3dcd70=>this['_getViewFromDiffObj'](_0x3dcd70,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x52c870[_0x300c5c]=this['editor']['data']['processor']['toData'](_0x2abbbe),this['editor']['data']['processor']['useFillerType']('default');}return _0x52c870;}['getRevisionRootsAttributes'](_0x42fe90){const _0x3d4cd3={};for(const _0x55a99b in _0x42fe90['diffData'])_0x42fe90['diffData'][_0x55a99b]['attachChange']&&!_0x42fe90['diffData'][_0x55a99b]['attachChange']['isAttached']||(_0x3d4cd3[_0x55a99b]=_0x42fe90['diffData'][_0x55a99b]['attributesAfter']||{});return _0x3d4cd3;}['_getTypeCharForViewElement'](_0x2a1d28){return this['_viewClassToTypeChar']['get'](_0x2a1d28['constructor']);}['_getViewFromDiffObj'](_0x128da8,_0x5e3653){const _0x126ec4=this['editor']['editing']['view']['document'];if('string'==typeof _0x128da8)return new _0x1f28ef(_0x126ec4,_0x128da8);{let _0x388898,_0x1f95fb;_0x1f95fb='u'==_0x128da8['type']||'r'==_0x128da8['type']?[]:_0x128da8['children']['map'](_0x464d3b=>this['_getViewFromDiffObj'](_0x464d3b,_0x5e3653));const _0x193586=this['_typeCharToViewClass']['get'](_0x128da8['type'])||_0x4a0765,_0x1cc918=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x388898=new _0x193586(_0x126ec4,_0x128da8['name'],_0x128da8['attributes'],_0x1f95fb),'u'==_0x128da8['type']&&_0x128da8['children'][0x0]){const _0x36718f=_0x128da8['children'][0x0];if(_0x388898['render']=function(_0x800932){const _0xee2723=_0x800932['createElement']('div');return _0xee2723['innerHTML']=_0x36718f,_0xee2723['childNodes'][0x0];},_0x5e3653){const _0x41f73a=new _0x2770a8(_0x126ec4);_0x41f73a['_appendChild'](_0x388898);const _0x1b9774=Array['from'](_0x1cc918['viewChildrenToDom'](_0x41f73a,{'bind':!0x1})),_0xe7ee54=_0x1cc918['domDocument']['createElement']('div');_0xe7ee54['append'](..._0x1b9774),_0x388898=Array['from'](_0x1cc918['domChildrenToView'](_0xe7ee54))[0x0];}}else{if('r'==_0x128da8['type']&&_0x128da8['children'][0x0]){const _0x1d09d0=_0x128da8['children'][0x0];if(_0x388898['render']=function(_0x1c37d8){_0x1c37d8['innerHTML']=_0x1d09d0;},_0x5e3653){const _0x589748=new _0x2770a8(_0x126ec4);_0x589748['_appendChild'](_0x388898);const _0x3c4e67=Array['from'](_0x1cc918['viewChildrenToDom'](_0x589748,{'bind':!0x1})),_0x2b7c9a=_0x1cc918['domDocument']['createElement']('div');_0x2b7c9a['append'](..._0x3c4e67);const _0x22fd73=Array['from'](_0x1cc918['domChildrenToView'](_0x2b7c9a));_0x22fd73['length']>0x1?_0x388898['_appendChild'](_0x22fd73):_0x388898=_0x22fd73[0x0];}}}if(_0x128da8['customProperties']){for(const [_0x42687e,_0xd4608a]of _0x128da8['customProperties'])_0x388898['_setCustomProperty'](_0x42687e,_0xd4608a);}const _0x21013f=void 0x0===_0x128da8['fillerOffset']?null:_0x128da8['fillerOffset'];return null!==_0x21013f&&(_0x388898['getFillerOffset']=()=>_0x21013f),_0x388898;}}['_makeModelFromViewString'](_0x3d1b01){const _0x1e708b=JSON['parse'](_0x3d1b01),_0x56d6eb=this['editor']['editing']['view']['document'],_0xdbf54d=new _0x2770a8(_0x56d6eb,_0x1e708b['map'](_0x5f4bc4=>this['_getViewFromDiffObj'](_0x5f4bc4,!0x0)));return this['editor']['data']['toModel'](_0xdbf54d);}['_removeRevisionMarkers'](_0x16a00c){return(_0x16a00c=_0x16a00c['filter'](_0x5eb43b=>!_0x5eb43b['name']||'revision-start'!==_0x5eb43b['name']&&'revision-end'!==_0x5eb43b['name']))['forEach'](_0x2a51bc=>{'string'!=typeof _0x2a51bc&&(_0x2a51bc['children']=this['_removeRevisionMarkers'](_0x2a51bc['children']),_0x2a51bc['attributes']=_0x2a51bc['attributes']['filter'](_0x55c918=>!_0x55c918[0x0]['startsWith']('data-revision-')));}),_0x16a00c;}}function g(_0x35df38,_0xa7bc1e,_0x27af8c){const t=_0x35df38['t'];switch(_0xa7bc1e){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'},_0x27af8c);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x27af8c);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x5f2429{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3be340,I,V,_0x25b081];}constructor(_0x362c99){super(_0x362c99),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x402bff=_0x5d960a();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x402bff},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x34e939=this['repository']['getRevision'](0x0),_0x1de907=_0x34e939&&null===_0x34e939['creator']?_0x34e939:null;if(this['_continueCurrentRevision']=!!_0x1de907&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0xf9e4b=this['_source']['getCurrentRevisionId'](),_0x332a9e=this['repository']['getRevision'](_0xf9e4b);if(_0x332a9e)this['_startingVersion']=_0x332a9e['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x20a199=this['_source']['history']['_operations']['find'](_0x53121f=>!_0x53121f['_isInit']),_0x2966b3=_0x20a199?_0x20a199['baseVersion']:this['_source']['history']['version'];_0x34e939?(_0x34e939['toVersion']<_0x2966b3&&_0x34e939['_update']({'toVersion':_0x2966b3}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1de907['id'],this['_startingVersion']=_0x1de907['fromVersion']):(this['_startingVersion']=_0x34e939['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x2966b3,this['_continueCurrentRevision']=!0x1);}}else _0x1de907&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1de907['toVersion'],this['editor']['model']['document']['history']['version']),_0x1de907['fromVersion']===_0x1de907['toVersion']?(0x0!==_0x1de907['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1de907['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1de907['id'],this['_startingVersion']=_0x1de907['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',_0x154829=>!_0x154829),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x596db9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x37d305;for(const _0x58fda0 in _0x596db9){const _0x2dbfce=_0x58fda0,_0x17788d=_0x596db9[_0x2dbfce];if('revisionHistoryLicenseKeyValid'==_0x17788d||'revisionHistoryLicenseKeyInvalid'==_0x17788d||'revisionHistoryLicenseKeyExpired'==_0x17788d||'revisionHistoryLicenseKeyDomainLimit'==_0x17788d||'revisionHistoryLicenseKeyNotAllowed'==_0x17788d||'revisionHistoryLicenseKeyEvaluationLimit'==_0x17788d||'revisionHistoryLicenseKeyTrialLimit'==_0x17788d||'revisionHistoryLicenseKeyUsageLimit'==_0x17788d){delete _0x596db9[_0x2dbfce],_0x37d305=_0x17788d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x37d305&&_0x596db9['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x37d305&&_0x596db9['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x37d305&&_0x596db9['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x37d305&&_0x596db9['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x37d305&&_0x596db9['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x37d305&&_0x596db9['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x37d305&&_0x596db9['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x26e029=this['repository']['getRevision'](0x0),_0x5d64bc=await this['getRevisionDocumentData'](_0x26e029),_0x4df8a2=await this['getRevisionRootsAttributes'](_0x26e029);this['_replaceEditorDataWithRevisionData'](_0x5d64bc,_0x4df8a2);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5433b1){this['_source']=_0x5433b1;}async['update'](){const _0x4b35c1=await this['_source']['getLatestVersion']();if(_0x4b35c1>this['currentRevision']['toVersion']){await this['_loadState']();const _0x213f8a=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4b35c1});_0x213f8a['authors']=_0x213f8a['authorsIds']['map'](_0x3b31ec=>this['editor']['plugins']['get']('Users')['getUser'](_0x3b31ec)),this['currentRevision']['_update'](_0x213f8a);}}async['saveRevision'](_0xd4a330={},_0x294af5=null){const _0x2dfb09=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x294af5>this['currentRevision']['toVersion']&&(_0x294af5=null),null===_0x294af5&&(_0x294af5=await this['_source']['getLatestVersion']());const _0x349710=this['_getFromVersion'](_0x294af5),_0x319179=this['buildRevisionData']({'from':_0x349710,'to':_0x294af5});if(this['currentRevision']['toVersion']<_0x294af5){const _0x429f65=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x294af5,'to':_0x294af5});_0x429f65['authors']=[],_0x429f65['authorsIds']=[],_0x429f65['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x429f65,!0x0),delete _0x429f65['authors'],_0x2dfb09['push'](_0x429f65);}_0xd4a330['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xd4a330['name']=_0xd4a330['name']||null,_0xd4a330['id']=_0xd4a330['id']||_0x5d960a(),_0xd4a330={..._0xd4a330,..._0x319179};const _0x323f6b=this['addRevisionData'](_0xd4a330);_0x2dfb09['push'](_0xd4a330);const _0x4dcd20=this['repository']['getIndex'](_0x323f6b);if(0x0!==_0x4dcd20){const _0x194411=this['repository']['getRevision'](_0x4dcd20-0x1);if(_0x194411['fromVersion']!==_0x294af5){const _0x51906e=this['_revisionDataBuilder']['getData'](_0x294af5,_0x194411['toVersion']),_0x1dbaa4={'id':_0x194411['id'],'diffData':_0x51906e['diffData'],'authorsIds':_0x51906e['authorsIds'],'authors':_0x51906e['authorsIds']['map'](_0x5d9fc8=>this['editor']['plugins']['get']('Users')['getUser'](_0x5d9fc8)),'fromVersion':_0x294af5};_0x194411===this['currentRevision']&&(_0x1dbaa4['createdAt']=new Date(_0xd4a330['createdAt']['getTime']()+0xa)),_0x194411['_update'](_0x1dbaa4,!0x0),delete _0x1dbaa4['authors'],_0x2dfb09['push'](_0x1dbaa4);}}if(this['adapter']){for(const _0x562455 of _0x2dfb09)this['_bufferUpdate'](_0x562455['id'],_0x562455,!0x0);this['sendBufferedUpdates']();}return _0x323f6b;}['addRevisionData'](_0x2435ac){const _0x4b6fe8=this['repository']['createRevision'](_0x2435ac);return this['adapter']&&_0x4b6fe8['on']('_update',(_0x594ffa,_0x3e1384,_0xbfc289)=>{_0xbfc289||(this['_bufferUpdate'](_0x3e1384['id'],_0x3e1384,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4b6fe8,this['_findInsertionIndex'](_0x4b6fe8)),_0x4b6fe8;}async['getRevisionDocumentData'](_0x11f7f1){return await this['_utils']['loadRevisionData'](_0x11f7f1,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x11f7f1);}async['getRevisionRootsAttributes'](_0x355fdd){return await this['_utils']['loadRevisionData'](_0x355fdd,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x355fdd);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x2e4f74=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x51fc1a=0x0;_0x51fc1a<_0x2e4f74['length'];_0x51fc1a++){const _0x4b26a9=_0x2e4f74[_0x51fc1a];let _0x2c4517=!0x1;for(const _0x264ade of Object['keys'](_0x4b26a9))void 0x0===_0x4b26a9[_0x264ade]?delete _0x4b26a9[_0x264ade]:'id'!==_0x264ade&&(_0x2c4517=!0x0);_0x2c4517||(_0x2e4f74[_0x51fc1a]=null);}if(_0x2e4f74=_0x2e4f74['filter'](_0x191fa0=>null!==_0x191fa0),!_0x2e4f74['length'])return;for(let _0x41a6c0=0x0;_0x41a6c0<_0x2e4f74['length'];_0x41a6c0++){const _0x581dbb=_0x2e4f74[_0x41a6c0];void 0x0!==_0x581dbb['fromVersion']&&void 0x0===_0x581dbb['toVersion']&&(_0x581dbb['toVersion']=this['repository']['getRevision'](_0x581dbb['id'])['toVersion']),void 0x0!==_0x581dbb['toVersion']&&void 0x0===_0x581dbb['fromVersion']&&(_0x581dbb['fromVersion']=this['repository']['getRevision'](_0x581dbb['id'])['fromVersion']);}const _0x47c9f1=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x2e4f74,_0x47c9f1)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x172698=>{if(_0x172698){for(const _0x523c3b of _0x172698)this['setRevisionData']({'id':_0x523c3b['id'],'createdAt':_0x523c3b['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x2b3f42=null,from:_0x5b32f6=null,to:_0x1c2dfd=null}){_0x5b32f6=null!==_0x5b32f6?_0x5b32f6:_0x2b3f42['fromVersion'],_0x1c2dfd=null!==_0x1c2dfd?_0x1c2dfd:_0x2b3f42['toVersion'];const _0x58ba16=this['_revisionDataBuilder']['getData'](_0x5b32f6,_0x1c2dfd),_0x3f7d34={'diffData':_0x58ba16['diffData'],'authorsIds':_0x58ba16['authorsIds'],'fromVersion':_0x5b32f6,'toVersion':_0x1c2dfd};if(!_0x2b3f42||_0x1c2dfd!==_0x2b3f42['toVersion']){const _0x1d1fe1=_0x1c2dfd-0x1,_0x14bd0d=this['_source']['history']['getOperation'](_0x1d1fe1);_0x3f7d34['createdAt']=_0x14bd0d&&_0x14bd0d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x5b32f6===this['_loadedStateData']['fromVersion']){for(const _0x3a56c7 of this['_loadedStateData']['authors'])_0x3f7d34['authorsIds']['includes'](_0x3a56c7['id'])||_0x3f7d34['authorsIds']['push'](_0x3a56c7['id']);}return _0x3f7d34;}['_bufferUpdate'](_0x386cd3,_0x166477,_0x5daf3b){if(this['_bufferedUpdates']['has'](_0x386cd3)){const _0x37cae4=this['_bufferedUpdates']['get'](_0x386cd3);_0x166477=_0x5daf3b?{..._0x37cae4,..._0x166477}:{..._0x166477,..._0x37cae4};}this['_bufferedUpdates']['set'](_0x386cd3,_0x166477);}['setRevisionData'](_0x3b9533){const _0x4ab6b6=this['repository']['getRevision'](_0x3b9533['id']);if(_0x3b9533['createdAt']&&(_0x3b9533['createdAt']=new Date(_0x3b9533['createdAt'])),_0x3b9533['authorsIds']){const _0x136b1d=this['editor']['plugins']['get']('Users');_0x3b9533['authors']=_0x3b9533['authorsIds']['map'](_0x3f1c0c=>_0x136b1d['getUser'](_0x3f1c0c));}_0x4ab6b6['_update'](_0x3b9533,!0x0);}['_createInitialRevision'](_0x48e7ca){const _0x1632b0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1632b0)this['_initialRevisionId']=_0x1632b0['id'];else{const _0x30d810=!this['editor']['model']['document']['roots']['find'](_0x30e1e2=>this['editor']['model']['hasContent'](_0x30e1e2)),_0x20a302=this['editor']['plugins']['get']('Users')['me']['id'],_0x57f261=g(this['editor']['locale'],_0x30d810?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x48e7ca,'to':_0x48e7ca,'id':this['_initialRevisionId'],'name':_0x57f261,'creatorId':_0x20a302});}}['_createCurrentRevision'](_0x46a54b){const _0x24363a=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x24363a),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x46a54b,'to':_0x46a54b,'id':_0x24363a,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x433fca,_0x329149){let _0x594e71=this['editor']['config']['get']('initialData'),_0x5ba630=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x594e71){_0x594e71={};for(const _0x221590 of this['editor']['model']['document']['getRootNames']())_0x594e71[_0x221590]='';}if('string'==typeof _0x594e71&&(_0x594e71={'main':_0x594e71}),void 0x0===_0x5ba630){_0x5ba630={};for(const _0x362e26 of this['editor']['model']['document']['getRootNames']())_0x5ba630[_0x362e26]={};}let _0x29b8e0=!0x1;const _0x32d291=Object['keys'](_0x594e71),_0x5619cf=Object['keys'](_0x433fca);for(const _0x5e1385 of _0x32d291){if(_0x594e71[_0x5e1385]!==_0x433fca[_0x5e1385]&&''!==_0x594e71[_0x5e1385]['trim']()){_0x29b8e0=!0x0;break;}if(!_0x3d32b5(_0x5ba630[_0x5e1385],_0x329149[_0x5e1385])&&Object['keys'](_0x5ba630[_0x5e1385])['length']>0x0){_0x29b8e0=!0x0;break;}}_0x29b8e0||(_0x29b8e0=_0x5619cf['some'](_0x3bc89a=>!this['editor']['model']['document']['getRoot'](_0x3bc89a))),_0x29b8e0&&_0x46a28f('editor-initial-data-replaced-with-revision-data',{'editorData':_0x594e71,'editorRootsAttributes':_0x5ba630,'revisionData':_0x433fca,'revisionRootsAttributes':_0x329149}),this['editor']['config']['set']('initialData',_0x433fca),this['editor']['config']['set']('rootsAttributes',_0x329149);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x521e2b=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x521e2b['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x15a61e){const _0x548515=this['repository']['getRevisions']();_0x548515['reverse']();let _0x572be8=0x0;for(;_0x572be8<_0x548515['length'];){const _0x1b9006=_0x548515[_0x572be8];if(_0x1b9006===this['currentRevision']){_0x572be8++;continue;}if(_0x1b9006['id']===this['_initialRevisionId'])break;const _0x21a201=_0x15a61e['toVersion']-_0x1b9006['toVersion']||_0x15a61e['fromVersion']-_0x1b9006['fromVersion'];if(_0x21a201>0x0)break;if(_0x21a201<0x0)_0x572be8++;else{if(!_0x15a61e['creator']&&_0x1b9006['creator'])break;if(_0x1b9006['creator']||!_0x15a61e['creator']){if(_0x15a61e['createdAt']>_0x1b9006['createdAt'])break;_0x572be8++;}else _0x572be8++;}}return _0x572be8;}['_getFromVersion'](_0x108566){const _0x49d8ec=this['repository']['getRevisions']();_0x49d8ec['reverse'](),_0x49d8ec['shift']();const _0x40c894=_0x49d8ec['find'](_0x3df8ea=>_0x3df8ea['toVersion']<=_0x108566)['toVersion'];return _0x40c894<this['_startingVersion']?this['_startingVersion']:_0x40c894;}['_makeRevision']({name:_0x341a0d,from:_0x2c00ea,to:_0x3e9970,creatorId:_0x2444a6,id:_0x288bd7}){const _0xee1c5e=this['buildRevisionData']({'from':_0x2c00ea,'to':_0x3e9970});_0xee1c5e['name']=_0x341a0d,_0xee1c5e['creatorId']=_0x2444a6,_0xee1c5e['id']=_0x288bd7;const _0x51a212=this['addRevisionData'](_0xee1c5e);return this['adapter']&&this['_bufferUpdate'](_0xee1c5e['id'],_0xee1c5e,!0x0),_0x51a212;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x50bff1){this['editor']=_0x50bff1,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'](_0x1335ab){this['source']=_0x1335ab;const _0x5ebf31=new Map(),_0x491bee=new Map(),_0xd50505=this['editor']['model']['document']['roots']['map'](_0x5486f0=>_0x5486f0['rootName']);for(const _0x304d6b of _0xd50505){const _0x17d0d8=this['editor']['model']['document']['getRoot'](_0x304d6b),_0x3f4734=N(_0x17d0d8);_0x5ebf31['set'](_0x304d6b,_0x3f4734),_0x491bee['set'](_0x304d6b,Object['fromEntries'](_0x17d0d8['getAttributes']()));}const _0x3d7cd0=Array['from'](this['editor']['model']['markers'])['map'](_0x2cb3db=>[_0x2cb3db['name'],_0x2cb3db['getRange']()]),_0x428fd9=this['source']['version'];this['_saveMetaData'](_0x428fd9,_0x5ebf31,_0x3d7cd0,_0x491bee),this['_startingRevisionId']=this['_revisionId'];const _0x47b432=new Map(),_0x42835c=new Map();for(const _0x470575 of _0xd50505){const _0x1d3c80=P(_0x470575);_0x47b432['set'](_0x470575,_0x1d3c80),_0x42835c['set'](_0x470575,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x47b432,[],_0x42835c);}['getData'](_0x695ba7,_0x50e574){if(this['_lastFrom']===_0x695ba7&&this['_lastTo']<=_0x50e574)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x50e574,!0x0);else{if(!this['_savedMetaData']['has'](_0x695ba7)){const _0x5f1181=this['_getPreviousFrom'](_0x695ba7);this['_calculateMetaData'](_0x5f1181,_0x695ba7,!0x1);}this['_calculateMetaData'](_0x695ba7,_0x50e574,!0x0);}return this['_lastFrom']=_0x695ba7,this['_lastTo']=_0x50e574,this['_getState']();}['loadState'](_0x435b26){const _0x197f89=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x435b26['fromVersion'],this['_lastTo']=_0x435b26['toVersion'];for(const _0x551ef1 in _0x435b26['diffData']){const _0x2ebf3b=_0x435b26['diffData'][_0x551ef1]['attachChange'],_0x46cdd6=_0x4fdf13(_0x435b26['diffData'][_0x551ef1]['attributesBefore'])||{},_0x5762b3=_0x197f89['_makeModelFromViewString'](_0x435b26['diffData'][_0x551ef1]['deletions']);_0x5762b3['rootName']=_0x551ef1,_0x5762b3['_isAttached']=!_0x2ebf3b||!_0x2ebf3b['isAttached'],_0x5762b3['isAttached']=()=>_0x5762b3['_isAttached'],this['_baseRoots']['set'](_0x551ef1,_0x5762b3),this['_baseRootsAttributes']['set'](_0x551ef1,_0x46cdd6),_0x2ebf3b&&this['_touchedRoots']['set'](_0x551ef1,_0x2ebf3b);const _0x36524e=this['_makeIdsRoot'](_0x5762b3);this['_baseIdsRoots']['set'](_0x551ef1,_0x36524e);for(const [_0x593769,_0xbe1501]of _0x5762b3['markers']){if(!_0x593769['startsWith']('revision:'))continue;const _0x3c808c=_0x593769['split'](':')[0x2];for(const _0x430057 of _0xbe1501['getWalker']({'singleCharacters':!0x0})){const _0x2e8e41=this['_getVidAttributeName'](_0x430057),_0x5cf119='elementEnd'==_0x430057['type']?_0x430057['previousPosition']['path']['slice'](0x0,-0x1):_0x430057['previousPosition']['path'],_0x1043d9=_0x36524e['getNodeByPath'](_0x5cf119)['getAttribute'](_0x2e8e41);this['_touched']['set'](_0x1043d9,{'userId':_0x3c808c});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2206ca=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x3ebc88=>!this['_touched']['has'](_0x3ebc88));let _0x3e14e9=0x0;const _0x20b744=new Map();for(const _0x3f88ef in _0x435b26['diffData']){const _0x49ae53=_0x435b26['diffData'][_0x3f88ef]['attachChange'],_0x38ad24=_0x4fdf13(_0x435b26['diffData'][_0x3f88ef]['attributesAfter'])||{},_0x4b8855=_0x197f89['_makeModelFromViewString'](_0x435b26['diffData'][_0x3f88ef]['insertions']);_0x4b8855['rootName']=_0x3f88ef,_0x4b8855['_isAttached']=!_0x49ae53||_0x49ae53['isAttached'],_0x4b8855['isAttached']=()=>_0x4b8855['_isAttached'],this['_diffRoots']['set'](_0x3f88ef,_0x4b8855),this['_diffRootsAttributes']['set'](_0x3f88ef,_0x38ad24);const _0x1498ae=this['_makeIdsRoot'](_0x4b8855,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3f88ef,_0x1498ae),_0x20b744['set'](_0x3f88ef,_0x4b8855['isAttached']()?_0x38ad24:{});for(const [_0x213e6f,_0x49182f]of _0x4b8855['markers']){if(!_0x213e6f['startsWith']('revision:'))continue;const _0x2e9024=_0x213e6f['split'](':')[0x2];for(const _0x5d3467 of _0x49182f['getWalker']({'singleCharacters':!0x0})){const _0x4de55e=this['_getVidAttributeName'](_0x5d3467),_0x12c125=this['_revisionId']++,_0x3e169a='elementEnd'==_0x5d3467['type']?_0x5d3467['previousPosition']['path']['slice'](0x0,-0x1):_0x5d3467['previousPosition']['path'];_0x1498ae['getNodeByPath'](_0x3e169a)['_setAttribute'](_0x4de55e,_0x12c125),this['_touched']['set'](_0x12c125,{'userId':_0x2e9024});}}for(const _0x22d31f of this['editor']['model']['createRangeIn'](_0x4b8855)['getWalker']({'singleCharacters':!0x0})){const _0xe31550=this['_getVidAttributeName'](_0x22d31f),_0x5bd975='elementEnd'==_0x22d31f['type']?_0x22d31f['previousPosition']['path']['slice'](0x0,-0x1):_0x22d31f['previousPosition']['path'],_0x40532a=_0x1498ae['getNodeByPath'](_0x5bd975);_0x40532a['getAttribute'](_0xe31550)>0x0||_0x40532a['_setAttribute'](_0xe31550,_0x2206ca[_0x3e14e9++]);}for(const [_0x54c1ea,_0x2c6985]of _0x4b8855['markers'])_0x54c1ea['startsWith']('revision:')||this['_markers']['set'](_0x54c1ea,_0x2c6985);}const _0x1c873b=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0x1c873b),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x1c873b,0x1));const _0x59a43f=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x59a43f),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x59a43f,0x1));const _0x394214=Array['from'](this['_diffRoots'])['map'](([_0x2d944a,_0x520c56])=>[_0x2d944a,N(_0x520c56)]);this['_saveMetaData'](this['_lastTo'],_0x394214,this['_markers'],_0x20b744);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x24cbf7,_0x15f874,_0x200e3d,_0x374412){const _0x94ca40=new Map(_0x15f874),_0x437a85=new Map(_0x4fdf13(_0x374412)),_0x4c131a=new Map();for(const [_0xfc13e3,_0x56d6f5]of _0x200e3d)_0x4c131a['set'](_0xfc13e3,{'start':_0x56d6f5['start']['clone'](),'end':_0x56d6f5['end']['clone'](),'rootName':_0x56d6f5['root']['rootName']});this['_savedMetaData']['set'](_0x24cbf7,{'roots':_0x94ca40,'markers':_0x4c131a,'rootsAttributes':_0x437a85});}['_removeMetaData'](_0x3cf9d5){this['_savedMetaData']['delete'](_0x3cf9d5);}['_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'](_0x1dbda7,_0xb39eee=null){let _0x534dfd=null;_0x1dbda7['is']('documentFragment')||(_0x534dfd=new ut(_0x1dbda7['name'],{'vid_start':null===_0xb39eee?this['_revisionId']++:_0xb39eee++}));const _0x38257f=[];for(const _0x267a45 of _0x1dbda7['getChildren']())if(_0x267a45['is']('element')){_0x38257f['push'](this['_makeIdsRoot'](_0x267a45,_0xb39eee));const _0xa04b89=_0x38257f[_0x38257f['length']-0x1];null!==_0xb39eee&&(_0xb39eee=_0xa04b89['is']('element','$text')?_0xa04b89['getAttribute']('vid')+0x1:_0xa04b89['getAttribute']('vid_end')+0x1);}else{for(let _0x47a2e3=0x0;_0x47a2e3<_0x267a45['offsetSize'];_0x47a2e3++)_0x38257f['push'](new ut('$text',{'vid':null===_0xb39eee?this['_revisionId']++:_0xb39eee++}));}if(_0x1dbda7['is']('documentFragment')){const _0x313f59=P(_0x1dbda7['rootName']);return _0x313f59['_insertChild'](0x0,_0x38257f),_0x313f59;}return _0x534dfd['_setAttribute']('vid_end',null===_0xb39eee?this['_revisionId']++:_0xb39eee++),_0x534dfd['_insertChild'](0x0,_0x38257f),_0x534dfd;}['_calculateMetaData'](_0x28bd6c,_0x25ffe8,_0x496dfb){this['_reset']();const {roots:_0x17df08,markers:_0x1106b8,rootsAttributes:_0x435faa}=this['_savedMetaData']['get'](_0x28bd6c);this['_baseRoots']=new Map(_0x17df08),this['_baseRootsAttributes']=new Map(_0x4fdf13(_0x435faa));for(const [_0xd02dab,_0x39f033]of this['_baseRoots'])if('$graveyard'!==_0xd02dab&&(this['_diffRoots']['set'](_0xd02dab,N(_0x39f033)),this['_diffRootsAttributes']=new Map(_0x4fdf13(_0x435faa)),_0x496dfb)){const _0x4890a1=this['_revisionId'];this['_idsRoots']['set'](_0xd02dab,this['_makeIdsRoot'](_0x39f033)),this['_baseIdsRoots']['set'](_0xd02dab,this['_makeIdsRoot'](_0x39f033,_0x4890a1));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x496dfb&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x2fd236,_0x191b32]of _0x1106b8){const _0x26b224=this['_baseRoots']['get'](_0x191b32['rootName']),_0xb1b239=this['_diffRoots']['get'](_0x191b32['rootName']),_0x2e4642=new lt(this['_fixPosition'](_0x191b32['start'],_0x26b224),this['_fixPosition'](_0x191b32['end'],_0x26b224)),_0x5daa06=this['_fixRange'](_0x2e4642,_0xb1b239);_0x26b224['markers']['set'](_0x2fd236,_0x2e4642),this['_markers']['set'](_0x2fd236,_0x5daa06);}this['_applyOperations'](_0x28bd6c,_0x25ffe8,_0x496dfb);}['_applyOperations'](_0x5afcef,_0x426fa4,_0x44d16b){for(const _0x150675 of this['source']['getOperations'](_0x5afcef,_0x426fa4))this['_handleOperation'](_0x150675,_0x44d16b);for(const _0x2c36e1 of this['_diffRoots']['values']())_0x2c36e1['markers']['clear']();for(const [_0x1060eb,_0x5b1c11]of this['_markers']){this['_diffRoots']['get'](_0x5b1c11['root']['rootName'])['markers']['set'](_0x1060eb,_0x5b1c11['clone']());}const _0x98d5b1=new Map(),_0x14b96b=new Map();for(const [_0x584b96,_0x1fceca]of this['_diffRoots'])_0x98d5b1['set'](_0x584b96,N(_0x1fceca)),_0x14b96b['set'](_0x584b96,this['_diffRootsAttributes']['get'](_0x584b96));this['_saveMetaData'](_0x426fa4,_0x98d5b1,this['_markers'],_0x14b96b);}['_getPreviousFrom'](_0x417388){const _0x3ab405=Array['from'](this['_savedMetaData']['keys']());_0x3ab405['sort']((_0x146e33,_0x40ad1e)=>_0x146e33-_0x40ad1e),_0x3ab405['reverse']();for(const _0x439046 of _0x3ab405)if(_0x439046<_0x417388)return _0x439046;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x556760,_0x41c6e7){const _0x651000=Array['from'](_0x41c6e7['markers'])['map'](([_0x5d2f6e,_0x5a21a8])=>[_0x5d2f6e,this['_fixRange'](_0x5a21a8,_0x556760)]);_0x556760['markers']=new Map(_0x651000);}['_transformMarkers'](_0x39d2cd){for(const _0x22dac2 of this['_markers']['values']()){const _0x45d16b=_0x22dac2['getTransformedByOperation'](_0x39d2cd),_0x3e0966=lt['_createFromRanges'](_0x45d16b);_0x22dac2['start']=_0x3e0966['start'],_0x22dac2['end']=_0x3e0966['end'];}}['_handleOperation'](_0x5c58d4,_0x114df7){if('addRoot'!=_0x5c58d4['type']&&'detachRoot'!=_0x5c58d4['type']){if('insert'==_0x5c58d4['type']){const _0x1b523b=_0x5c58d4['position']['root']['rootName'];this['_diffRoots']['has'](_0x1b523b)||(this['_diffRoots']['set'](_0x1b523b,P(_0x1b523b,!0x0)),this['_diffRootsAttributes']['set'](_0x1b523b,{}),_0x114df7&&this['_idsRoots']['set'](_0x1b523b,P(_0x1b523b,!0x0)));}else{if('addRootAttribute'==_0x5c58d4['type']||'removeRootAttribute'==_0x5c58d4['type']||'changeRootAttribute'==_0x5c58d4['type'])return void this['_handleRootAttributeOperation'](_0x5c58d4);'marker'==_0x5c58d4['type']&&this['_handleMarkerOperation'](_0x5c58d4);}if('marker'!==_0x5c58d4['type']){const _0x284ed2=this['_cloneOperation'](_0x5c58d4,this['_diffRoots']);_0x284ed2['_execute'](),this['_transformMarkers'](_0x284ed2);}if(_0x114df7)switch(_0x5c58d4['type']){case'insert':this['_handleInsertOperation'](_0x5c58d4);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c58d4);break;case'merge':this['_handleMergeOperation'](_0x5c58d4);break;case'split':this['_handleSplitOperation'](_0x5c58d4);}}else this['_handleRootOperation'](_0x5c58d4,_0x114df7);}['_cloneOperation'](_0x28b8df,_0x5510dd){const _0x40bbf1=_0x28b8df['clone']();return _0x40bbf1['_authorId']=_0x28b8df['_authorId'],this['_fixOperation'](_0x40bbf1,_0x5510dd),_0x40bbf1;}['_getBaseVids'](_0x2c80f3){return _0x2c80f3['map'](_0x4e76b3=>{const _0x52fca8=this['_getVidAttributeName'](_0x4e76b3);return Number(_0x4e76b3['item']['getAttribute'](_0x52fca8));});}['_generateTape'](_0x5a8c89,_0x9a6e05){if(_0x5a8c89['is']('element','$text'))_0x9a6e05['push']({'item':_0x5a8c89,'type':'text'});else{_0x5a8c89['is']('element')&&_0x9a6e05['push']({'item':_0x5a8c89,'type':'elementStart'});for(const _0x2b213e of _0x5a8c89['getChildren']())this['_generateTape'](_0x2b213e,_0x9a6e05);_0x5a8c89['is']('element')&&_0x9a6e05['push']({'item':_0x5a8c89,'type':'elementEnd'});}return _0x9a6e05;}['_getState'](){const _0x3e3088=new Map(this['_touched']),_0x1295e3=new Map(_0x3e3088),_0x2ddc33=new Map(),_0x22c50d={'insertions':{},'deletions':{}},_0x15636c={'insertions':{},'deletions':{}},_0x1605f4=new Map(),_0x39b67a=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x39b67a['delete']('$graveyard');for(const _0x154333 of _0x39b67a){const _0xb7f070=this['_diffRoots']['get'](_0x154333)||P(_0x154333,!0x1),_0x412bf4=this['_baseRoots']['get'](_0x154333)||P(_0x154333,!0x1);_0xb7f070['isAttached']()||_0x412bf4['isAttached']()?(_0x22c50d['insertions'][_0x154333]=N(_0xb7f070),_0x22c50d['deletions'][_0x154333]=N(_0x412bf4),this['_copyMarkers'](_0x22c50d['deletions'][_0x154333],_0x412bf4),this['_copyMarkers'](_0x22c50d['insertions'][_0x154333],_0xb7f070),_0x15636c['insertions'][_0x154333]=this['_generateTape'](this['_idsRoots']['get'](_0x154333),[]),_0x15636c['deletions'][_0x154333]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x154333)||P(_0x154333,!0x1),[])):_0x39b67a['delete'](_0x154333);}for(const _0x1b3135 of _0x39b67a){const _0x35226e=_0x15636c['insertions'][_0x1b3135];for(const _0x72ee1d of _0x35226e){const _0xada53b=this['_getVidAttributeName'](_0x72ee1d),_0x3aff0c=_0x72ee1d['item']['getAttribute'](_0xada53b);_0x1295e3['delete'](_0x3aff0c),_0x3aff0c>=this['_startingRevisionId']&&_0x2ddc33['set'](_0x3aff0c,_0x3e3088['get'](_0x3aff0c));}}for(const _0x574a69 of _0x39b67a){const _0x2242f6=_0x15636c['insertions'][_0x574a69],_0x3d6b03=this['_getBaseVids'](_0x15636c['deletions'][_0x574a69]);let _0x582708=0x0;for(const _0x55970c of _0x2242f6){const _0x5cae64=this['_getVidAttributeName'](_0x55970c),_0x499414=_0x55970c['item']['getAttribute'](_0x5cae64);if(!_0x2ddc33['has'](_0x499414)&&!_0x1605f4['has'](_0x499414)){if(_0x1295e3['has'](_0x499414))_0x582708++;else{if(_0x499414!=_0x3d6b03[_0x582708]){const _0x1df182=_0x3e3088['get'](_0x499414)||_0x3e3088['get'](_0x3d6b03[_0x582708]);for(;_0x499414!=_0x3d6b03[_0x582708];)_0x1295e3['has'](_0x3d6b03[_0x582708])||(_0x1605f4['set'](_0x3d6b03[_0x582708],_0x1df182),_0x3e3088['set'](_0x3d6b03[_0x582708],_0x1df182)),_0x582708++;}_0x582708++;}}}}for(const _0x4cbab2 of _0x39b67a){const _0x45e34a=_0x15636c['insertions'][_0x4cbab2];for(const _0x581ef4 of _0x45e34a){const _0x15455c=this['_getVidAttributeName'](_0x581ef4),_0x4c3294=_0x581ef4['item']['getAttribute'](_0x15455c);if(_0x1605f4['has'](_0x4c3294)){const _0x148a8f=_0x1605f4['get'](_0x4c3294);_0x1295e3['has'](_0x4c3294)||_0x1295e3['set'](_0x4c3294,{..._0x148a8f}),_0x2ddc33['set'](_0x4c3294,{..._0x148a8f});}}}for(const _0x4305ac of _0x1295e3['keys']())_0x4305ac>=this['_startingRevisionId']&&_0x1295e3['delete'](_0x4305ac);const _0x728280=new Map();for(const _0x42898a of _0x39b67a){let _0x37bad0=_0x15636c['insertions'][_0x42898a];for(const _0x58a0d9 of _0x37bad0)if(_0x58a0d9['item']['is']('element','tableCell')){const _0x5115d6=this['_getVidAttributeName'](_0x58a0d9),_0x5e2d2e=_0x58a0d9['item']['getAttribute'](_0x5115d6);if(_0x2ddc33['has'](_0x5e2d2e)){const _0x32cf50=_0x58a0d9['item']['parent']['parent']['getAttribute']('vid_start'),_0x24c99b=_0x728280['get'](_0x32cf50)||new Set();_0x24c99b['add'](_0x2ddc33['get'](_0x5e2d2e)['userId']),_0x728280['set'](_0x32cf50,_0x24c99b);}}_0x37bad0=_0x15636c['deletions'][_0x42898a];for(const _0x28707d of _0x37bad0)if(_0x28707d['item']['is']('element','tableCell')){const _0x3d8c44=this['_getVidAttributeName'](_0x28707d),_0x24d667=_0x28707d['item']['getAttribute'](_0x3d8c44);if(_0x1295e3['has'](_0x24d667)){const _0x110e17=_0x28707d['item']['parent']['parent']['getAttribute']('vid_start'),_0x548565=_0x728280['get'](_0x110e17)||new Set();_0x548565['add'](_0x1295e3['get'](_0x24d667)['userId']),_0x728280['set'](_0x110e17,_0x548565);}}for(const _0x194b09 of _0x728280['keys']())(_0x2ddc33['has'](_0x194b09)||_0x1295e3['has'](_0x194b09))&&_0x728280['delete'](_0x194b09);}for(const _0x4e040f of _0x39b67a){const _0x568efb=_0x15636c['insertions'][_0x4e040f];let _0x45376c=null,_0x33d1a5=null;for(const _0x26848a of _0x568efb){const _0x580b96=this['_getVidAttributeName'](_0x26848a),_0x485f1e=_0x26848a['item']['getAttribute'](_0x580b96),_0x4ea707=_0x728280['get'](_0x485f1e);_0x4ea707&&'elementStart'==_0x26848a['type']&&(_0x45376c=Array['from'](_0x4ea707)[0x0],_0x33d1a5=_0x26848a['item']['getAttribute']('vid_end')),_0x45376c&&(_0x1295e3['set'](_0x485f1e,{'userId':_0x45376c}),_0x2ddc33['set'](_0x485f1e,{'userId':_0x45376c})),_0x485f1e==_0x33d1a5&&(_0x45376c=null,_0x33d1a5=null);}}const _0x445f35={},_0x3c1156=new Set();for(const _0x3749e8 of _0x39b67a){const _0xd247f3=_0x22c50d['deletions'][_0x3749e8],_0xe1b930=_0x22c50d['insertions'][_0x3749e8];for(const {userId:_0x23fd0c}of this['_touchedMarkers']['values']())null!==_0x23fd0c&&_0x3c1156['add'](_0x23fd0c);for(const {userId:_0x1654be}of this['_touchedRoots']['values']())null!==_0x1654be&&_0x3c1156['add'](_0x1654be);this['_markChanges'](_0xe1b930,_0x15636c['insertions'][_0x3749e8],_0x2ddc33,'insertion',_0x3c1156),this['_markChanges'](_0xd247f3,_0x15636c['deletions'][_0x3749e8],_0x1295e3,'deletion',_0x3c1156),_0x445f35[_0x3749e8]={'insertions':this['_prepareViewToSave'](_0xe1b930),'deletions':this['_prepareViewToSave'](_0xd247f3),'attachChange':this['_touchedRoots']['get'](_0x3749e8)||null,'attributesBefore':_0x4fdf13(this['_baseRootsAttributes']['get'](_0x3749e8))||{},'attributesAfter':_0x4fdf13(this['_diffRootsAttributes']['get'](_0x3749e8))};}return{'diffData':_0x445f35,'authorsIds':Array['from'](_0x3c1156)};}['_processRootBeforeSave'](_0x264111){for(const [,_0x3e36de]of _0x264111['markers']){const _0x3d4f44=_0x3e36de['start']['getAncestors']()['filter'](_0x768cfe=>'tableCell'==_0x768cfe['name']);for(const _0x2e51cd of _0x3d4f44)0x1==_0x2e51cd['childCount']&&_0x2e51cd['getChild'](0x0)['is']('element','paragraph')&&_0x2e51cd['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xb0e863){this['_processRootBeforeSave'](_0xb0e863);const _0x4437fe=this['editor']['data']['toView'](_0xb0e863,{}),_0x188f5f=Array['from'](_0x4437fe['getChildren']())['map'](_0x32cb39=>this['_getViewJson'](_0x32cb39));return JSON['stringify'](_0x188f5f);}['_getViewJson'](_0x850207){if(_0x850207['is']('$text'))return _0x850207['data'];{const _0x58f115=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x2b9964=_0x850207,_0x231cbf=this['editor']['data']['htmlProcessor']['domConverter'],_0x51af5f={'type':_0x58f115['_getTypeCharForViewElement'](_0x2b9964),'name':_0x2b9964['name'],'attributes':Array['from'](_0x2b9964['getAttributes']()),'children':Array['from'](_0x2b9964['getChildren']())['map'](_0x42e821=>this['_getViewJson'](_0x42e821))};if(_0x850207['is']('uiElement')&&'$comment'!=_0x850207['name']){const _0x1fdfb7=_0x850207['render'](_0x231cbf['domDocument'],_0x231cbf);_0x51af5f['children']['push'](_0x1fdfb7['outerHTML']);}else{if(_0x850207['is']('rawElement')){const _0x2e2ae9=_0x231cbf['domDocument']['createElement'](_0x2b9964['name']);_0x850207['render'](_0x2e2ae9,_0x231cbf),_0x51af5f['children']['push'](_0x2e2ae9['innerHTML']);}}const _0x5b2cbd=Array['from'](_0x2b9964['getCustomProperties']());_0x5b2cbd['length']>0x0&&(_0x51af5f['customProperties']=_0x5b2cbd);const _0xfaebfa=_0x2b9964['getFillerOffset']();return null!==_0xfaebfa&&(_0x51af5f['fillerOffset']=_0xfaebfa),_0x51af5f;}}['_markChanges'](_0x2e543b,_0x1d8eeb,_0x412f49,_0x2beb2c,_0x18ae78){let _0x54075b=null,_0x14be5a=null,_0x2064c6=0x0;const _0x307478=this['editor']['model'];for(let _0x516f45=0x0;_0x516f45<_0x1d8eeb['length'];_0x516f45++){const _0x27b9ca=this['_getVidAttributeName'](_0x1d8eeb[_0x516f45]),_0x42b724=_0x1d8eeb[_0x516f45]['item']['getAttribute'](_0x27b9ca),_0x5549bd=_0x412f49['get'](_0x42b724),_0x16f353=_0x516f45==_0x1d8eeb['length']-0x1;(!_0x54075b&&_0x5549bd&&(_0x54075b=_0x5549bd,_0x14be5a=_0x1d8eeb[_0x516f45]),_0x54075b&&(!_0x5549bd||_0x5549bd['userId']!=_0x54075b['userId']))&&(_0x1d0572(_0x5549bd,F(_0x14be5a,_0x2e543b,_0x307478),F(_0x1d8eeb[_0x516f45],_0x2e543b,_0x307478)),_0x54075b=_0x5549bd||null,_0x14be5a=_0x5549bd?_0x1d8eeb[_0x516f45]:null),_0x54075b&&_0x16f353&&_0x1d0572(_0x5549bd,F(_0x14be5a,_0x2e543b,_0x307478),B(_0x1d8eeb[_0x516f45],_0x2e543b,_0x307478));}function _0x1d0572(_0x31386b,_0x110e85,_0x430f61){const _0x105df1=_0x54075b['userId'],_0x5935b8='revision:'+_0x2beb2c+':'+_0x105df1+':'+_0x2064c6++,_0x395bd8=_0x307478['createRange'](_0x110e85,_0x430f61);_0x2e543b['markers']['set'](_0x5935b8,_0x395bd8),null!==_0x105df1&&_0x18ae78['add'](_0x105df1);}}['_getVidAttributeName'](_0x5e2725){switch(_0x5e2725['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x2dd7de,_0x4f4c94){_0x2dd7de['baseVersion']=null;for(const _0x12562f in _0x2dd7de){const _0x365e05=_0x2dd7de[_0x12562f];if(_0x365e05 instanceof ft){const _0x44acd6=_0x4f4c94['get'](_0x365e05['root']['rootName']);_0x2dd7de[_0x12562f]=this['_fixPosition'](_0x365e05,_0x44acd6);}if(_0x365e05 instanceof lt){const _0x18c0cc=_0x4f4c94['get'](_0x365e05['root']['rootName']);_0x2dd7de[_0x12562f]=this['_fixRange'](_0x365e05,_0x18c0cc);}'root'===_0x12562f&&(_0x2dd7de['root']=_0x4f4c94['get'](_0x2dd7de['root']['rootName']));}}['_fixRange'](_0x4ebaf9,_0xa36a45){return this['editor']['model']['createRange'](this['_fixPosition'](_0x4ebaf9['start'],_0xa36a45),this['_fixPosition'](_0x4ebaf9['end'],_0xa36a45));}['_fixPosition'](_0x14de3e,_0x4f08cc){return this['editor']['model']['createPositionFromPath'](_0x4f08cc,_0x14de3e['path'],_0x14de3e['stickiness']);}['_handleInsertOperation'](_0x27e944){const _0x1689bc=this['_idsRoots']['get'](_0x27e944['position']['root']['rootName']),_0x21617f=this['_fixPosition'](_0x27e944['position'],_0x1689bc),_0x494317=null===_0x27e944['_authorId']?null:_0x27e944['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24158=_0x21617f['parent'],_0x1f8b21=this['_revisionId'],_0xd59ff7=[];for(const _0x44206c of _0x27e944['nodes'])if(_0x44206c['is']('element'))_0xd59ff7['push'](this['_makeIdsRoot'](_0x44206c));else{for(let _0x4757ba=0x0;_0x4757ba<_0x44206c['offsetSize'];_0x4757ba++)_0xd59ff7['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3bbf2f=this['_revisionId'];for(let _0xec8917=_0x1f8b21;_0xec8917<_0x3bbf2f;_0xec8917++)this['_touched']['set'](_0xec8917,{'userId':_0x494317});_0x24158['_insertChild'](_0x21617f['offset'],_0xd59ff7);}['_handleMoveOperation'](_0x49d0ee){(_0x49d0ee=this['_cloneOperation'](_0x49d0ee,this['_idsRoots']))['_execute']();const _0x51328b=null===_0x49d0ee['_authorId']?null:_0x49d0ee['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x438b31=_0x49d0ee['getMovedRangeStart'](),_0x513f57=_0x438b31['parent'],_0x33e0ce=_0x438b31['offset'];!function _0x5b0a1a(_0x269225,_0x35d201,_0x17dba2,_0xe6ce4a){for(let _0x5545a7=_0x17dba2;_0x5545a7<_0xe6ce4a;_0x5545a7++){const _0x5c067f=_0x35d201['getChild'](_0x5545a7);_0x5c067f['is']('element','$text')?_0x269225['set'](_0x5c067f['getAttribute']('vid'),{'userId':_0x51328b}):(_0x269225['set'](_0x5c067f['getAttribute']('vid_start'),{'userId':_0x51328b}),_0x5b0a1a(_0x269225,_0x5c067f,0x0,_0x5c067f['childCount']),_0x269225['set'](_0x5c067f['getAttribute']('vid_end'),{'userId':_0x51328b}));}}(this['_touched'],_0x513f57,_0x33e0ce,_0x33e0ce+_0x49d0ee['howMany']);}['_handleMergeOperation'](_0x56fa3b){const _0xe06425=null===(_0x56fa3b=this['_cloneOperation'](_0x56fa3b,this['_idsRoots']))['_authorId']?null:_0x56fa3b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1fdf77=_0x56fa3b['targetPosition']['parent'],_0x5e5654=_0x56fa3b['sourcePosition']['parent'],_0x5b383d=_0x1fdf77['getAttribute']('vid_end'),_0x28806a=_0x5e5654['getAttribute']('vid_start');_0x1fdf77['_setAttribute']('vid_end',_0x5e5654['getAttribute']('vid_end')),_0x5e5654['_setAttribute']('vid_end',_0x5b383d),this['_touched']['set'](_0x28806a,{'userId':_0xe06425}),this['_touched']['set'](_0x5b383d,{'userId':_0xe06425}),_0x56fa3b['_execute']();}['_handleSplitOperation'](_0x502f92){const _0x4249a6=null===(_0x502f92=this['_cloneOperation'](_0x502f92,this['_idsRoots']))['_authorId']?null:_0x502f92['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44a350=_0x502f92['graveyardPosition'],_0x494801=_0x502f92['splitPosition']['parent'];_0x502f92['_execute']();const _0x45bc92=_0x494801['getAttribute']('vid_end'),_0xf6188c=_0x502f92['insertionPosition']['nodeAfter'];if(_0x44a350){const _0x56ffb2=_0xf6188c['getAttribute']('vid_end'),_0x1f8212=_0x494801['getAttribute']('vid_end');_0x494801['_setAttribute']('vid_end',_0x56ffb2),_0xf6188c['_setAttribute']('vid_end',_0x1f8212),this['_touched']['set'](_0x494801['getAttribute']('vid_end'),{'userId':_0x4249a6}),this['_touched']['set'](_0xf6188c['getAttribute']('vid_start'),{'userId':_0x4249a6});}else{const _0x2bd637=this['_revisionId']++,_0x2cd810=this['_revisionId']++;_0x494801['_setAttribute']('vid_end',_0x2bd637),_0xf6188c['_setAttribute']('vid_start',_0x2cd810),_0xf6188c['_setAttribute']('vid_end',_0x45bc92),this['_touched']['set'](_0x2bd637,{'userId':_0x4249a6}),this['_touched']['set'](_0x2cd810,{'userId':_0x4249a6});}}['_handleMarkerOperation'](_0x44d19f){if(!_0x44d19f['affectsData'])return;const _0x51708e=(_0x44d19f=this['_cloneOperation'](_0x44d19f,this['_diffRoots']))['oldRange']?_0x44d19f['oldRange']['root']:null,_0x8d7caf=_0x44d19f['newRange']?_0x44d19f['newRange']['root']:null;_0x51708e&&this['_markers']['delete'](_0x44d19f['name']),_0x8d7caf&&this['_markers']['set'](_0x44d19f['name'],_0x44d19f['newRange']['clone']());const _0x5c8520=null===_0x44d19f['_authorId']?null:_0x44d19f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x21cb01=_0x44d19f['name'];if(!this['_touchedMarkers']['has'](_0x21cb01))return void this['_touchedMarkers']['set'](_0x21cb01,{'range':_0x44d19f['oldRange'],'userId':_0x5c8520});const _0x59a309=this['_touchedMarkers']['get'](_0x21cb01),_0x4d3678=_0x59a309['range'],_0x49087b=_0x44d19f['newRange'];null==_0x4d3678&&null==_0x49087b||_0x4d3678&&_0x49087b&&_0x4d3678['isEqual'](_0x49087b)?this['_touchedMarkers']['delete'](_0x44d19f['name']):_0x59a309['userId']=_0x5c8520;}['_handleRootOperation'](_0x13bf63,_0x2d8eaa){this['_diffRoots']['has'](_0x13bf63['rootName'])?this['_diffRoots']['get'](_0x13bf63['rootName'])['_isAttached']=_0x13bf63['isAdd']:(this['_diffRoots']['set'](_0x13bf63['rootName'],P(_0x13bf63['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x13bf63['rootName'],{}),_0x2d8eaa&&this['_idsRoots']['set'](_0x13bf63['rootName'],P(_0x13bf63['rootName'],!0x0)));const _0x48e6d0=null===_0x13bf63['_authorId']?null:_0x13bf63['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x231880=this['_touchedRoots']['get'](_0x13bf63['rootName']);_0x231880&&_0x231880['userId']===_0x48e6d0?this['_touchedRoots']['delete'](_0x13bf63['rootName']):this['_touchedRoots']['set'](_0x13bf63['rootName'],{'userId':_0x48e6d0,'isAttached':_0x13bf63['isAdd']});}['_handleRootAttributeOperation'](_0x4d5c54){const _0x344ec7=this['_diffRootsAttributes']['get'](_0x4d5c54['root']['rootName']);null===_0x4d5c54['newValue']?delete _0x344ec7[_0x4d5c54['key']]:_0x344ec7[_0x4d5c54['key']]=_0x4d5c54['newValue'];}}function N(_0x18c783){const _0xd2396b=P(_0x18c783['rootName'],_0x18c783['isAttached']());for(const _0x416de0 of _0x18c783['getChildren']()){const _0x419c62=_0x416de0['_clone'](!0x0);_0xd2396b['_appendChild'](_0x419c62);}return _0xd2396b;}function P(_0x4aab69,_0x35b26e=!0x0){const _0x3b26fb=new vt();return _0x3b26fb['rootName']=_0x4aab69,_0x3b26fb['_isAttached']=_0x35b26e,_0x3b26fb['isAttached']=()=>_0x3b26fb['_isAttached'],_0x3b26fb;}function F(_0x31cf80,_0x1e4c97,_0x234adb){const _0x5d148d='elementEnd'==_0x31cf80['type']?_0x234adb['createPositionAt'](_0x31cf80['item'],'end'):_0x234adb['createPositionBefore'](_0x31cf80['item']);return _0x234adb['createPositionFromPath'](_0x1e4c97,_0x5d148d['path'],_0x5d148d['stickiness']);}function B(_0x5a9237,_0x15faf0,_0x122d05){const _0x4d7153='elementStart'==_0x5a9237['type']?_0x122d05['createPositionAt'](_0x5a9237['item'],0x0):_0x122d05['createPositionAfter'](_0x5a9237['item']);return _0x122d05['createPositionFromPath'](_0x15faf0,_0x4d7153['path'],_0x4d7153['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x3a1019,_0x132f35){super(_0x3a1019),this['focusTracker']=new _0x3488cf(),this['keystrokes']=new _0x2c3272(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x132f35),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x3247c2(this);}['render'](){super['render'](),_0x10cc82({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x56133e=_0x3714ef=>_0x3714ef['stopPropagation']();this['keystrokes']['set']('arrowright',_0x56133e),this['keystrokes']['set']('arrowleft',_0x56133e),this['keystrokes']['set']('arrowup',_0x56133e),this['keystrokes']['set']('arrowdown',_0x56133e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x7d0008){this['revisionNameInputView']['fieldView']['element']['value']=_0x7d0008['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x15c994){const _0x2b2b37=new _0x49fa80(this['locale'],_0x32ab91),_0x40ca9f=_0x2b2b37['fieldView'];_0x40ca9f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x32f412=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x15c994&&(_0x32f412+='\x20('+g(this['locale'],'optional')+')'),(_0x2b2b37['label']=_0x32f412,_0x40ca9f['on']('input',()=>{this['revisionNameInputValue']=_0x40ca9f['element']['value']['trim']();}),_0x2b2b37);}}class f extends _0x5f2429{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x5efde0=this['editor'],_0x56f161=_0x5efde0['plugins']['get']('RevisionTracker');_0x5efde0['ui']['componentFactory']['add']('revisionHistory',_0x31c0c9=>{const _0x59db16=_0x3b8770(_0x31c0c9),_0xa46c1a=_0x59db16['panelView']['children'],_0x334b65=new _0x34576f(_0x31c0c9),_0x5596f8=new _0x1f2ffe(_0x31c0c9),_0x175d07=new te(_0x31c0c9),_0x23bcb1=new _0x1f2ffe(_0x31c0c9),_0x10a81e=new te(_0x31c0c9);return _0x59db16['bind']('isEnabled')['to'](_0x56f161,'isReady',_0x56f161,'isEnabled',_0x5efde0,'isReadOnly',(_0x3b70c2,_0x2b2ac9,_0x242bb3)=>_0x3b70c2&&_0x2b2ac9&&!_0x242bb3),_0x59db16['buttonView']['set']({'icon':_0x3811bd,'label':g(_0x31c0c9,'Revision\x20history'),'tooltip':!0x0}),_0x175d07['set']({'label':g(_0x31c0c9,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x175d07['bind']('isEnabled')['to'](_0x56f161,'isReady',_0x56f161,'isEnabled',_0x5efde0,'isReadOnly',(_0xe63339,_0x2a1e74,_0x159fbd)=>_0xe63339&&_0x2a1e74&&!_0x159fbd),_0x175d07['on']('execute',()=>this['_showDialog']()),_0x10a81e['set']({'label':g(_0x31c0c9,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x10a81e['bind']('isEnabled')['to'](_0x56f161,'isReady',_0x5efde0,'isReadOnly',(_0x3bb4a,_0x5d3ee2)=>_0x3bb4a&&!_0x5d3ee2),_0x10a81e['on']('execute',()=>{_0x5efde0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x59db16['isOpen']=!0x1,_0x5efde0['editing']['view']['focus']();}),_0x5596f8['children']['add'](_0x175d07),_0x23bcb1['children']['add'](_0x10a81e),_0x334b65['role']='menu',_0x334b65['items']['addMany']([_0x5596f8,_0x23bcb1]),_0xa46c1a['add'](_0x334b65),_0x59db16;}),_0x5efde0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x28cfd9=this['editor'],_0x534291=_0x28cfd9['locale'],_0x270ec9=new _0x3e5b05(_0x534291),_0x35f25e=new _0x4e1c6c(_0x534291);_0x270ec9['buttonView']['set']({'icon':_0x3811bd,'label':g(_0x534291,'Revision\x20history')});const _0x507f2f=new _0xcf675f(_0x534291,_0x270ec9),_0x35d768=new _0x38c9e3(_0x534291);_0x35d768['set']({'label':g(_0x534291,'Save\x20current\x20revision')}),_0x35d768['delegate']('execute')['to'](_0x270ec9),_0x35d768['on']('execute',()=>{this['_showDialog']();}),_0x507f2f['children']['add'](_0x35d768),_0x35f25e['items']['add'](_0x507f2f);const _0x36c1af=new _0xcf675f(_0x534291,_0x270ec9),_0x1455ad=new _0x38c9e3(_0x534291);return _0x1455ad['set']({'label':g(_0x534291,'Open\x20revision\x20history')}),_0x1455ad['delegate']('execute')['to'](_0x270ec9),_0x1455ad['on']('execute',()=>{_0x28cfd9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x36c1af['children']['add'](_0x1455ad),_0x35f25e['items']['add'](_0x36c1af),_0x270ec9['panelView']['children']['add'](_0x35f25e),_0x270ec9;}['_showDialog'](){const _0x4db902=this['editor'],_0xf7f1ab=_0x4db902['locale'],_0x257055=_0x4db902['plugins']['get']('Dialog'),_0x9974e=_0x4db902['plugins']['get']('RevisionTracker');function _0x15e803(_0x448990){_0x4db902['config']['get']('revisionHistory.requireRevisionName')&&''===_0x448990['revisionName']?_0x448990['revisionNameInputView']['errorText']=g(_0xf7f1ab,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4db902['plugins']['get'](u)['saveRevision']({'name':_0x448990['revisionName']}),_0x257055['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x15e803(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x257055['show']({'id':'revisionSave','title':g(_0xf7f1ab,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4db902['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x257055['hide']()},{'label':g(_0x4db902['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x5c4e45){_0x5c4e45['bind']('isEnabled')['to'](_0x9974e,'isReady',_0x9974e,'isEnabled',_0x4db902,'isReadOnly',(_0x3f3f24,_0x463e0c,_0x3453b6)=>_0x3f3f24&&_0x463e0c&&!_0x3453b6);},'onExecute':()=>_0x15e803(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4e0b89=this['editor'],_0x5712fd=_0x4e0b89['locale'];this['_saveRevisionFormView']=new hs(_0x5712fd,_0x4e0b89['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends ts{['changeId'];['_model'];constructor(_0x1b78e7,_0x46f1fc){super(_0x1b78e7),this['_model']=_0x46f1fc,this['changeId']=_0x46f1fc['id'];const _0x3c2957=this['bindTemplate'],_0x4e00c8=g(_0x1b78e7,_0x46f1fc['data']['isSuggestion']?'Suggested\x20by':'add'==_0x46f1fc['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x46f1fc['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x3c2957['to']('type',_0x314d2b=>'ck-revision-change__'+_0x314d2b)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4e00c8}]},{'text':'\x20'+_0x46f1fc['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x540212(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xdf9d90){super(),this['id']=_0xdf9d90['id']||_0x5d960a(),this['author']=_0xdf9d90['author'],this['type']=_0xdf9d90['type'],this['data']=_0xdf9d90['data']||{},this['rootName']=_0xdf9d90['rootName'],this['set']('createdAt',_0xdf9d90['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(_0x5ed46a,_0x1c9806){this['newRevisionId']=_0x5ed46a,this['oldRevisionId']=_0x1c9806,this['changes']=new _0x47a699();}['_setChanges'](_0x411210){for(const _0x5627d8 of _0x411210)this['changes']['add'](_0x5627d8);}}class m extends _0x5f2429{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3be340,_0x35abee,I,V];}constructor(_0x44cb0f){super(_0x44cb0f),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x3c517b,_0x15f029,_0x5bf1c5)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3bdf31=>{for(const _0x32bb64 of this['editor']['editing']['view']['document']['roots'])_0x5bf1c5?_0x3bdf31['removeClass']('ck-editor__editable__overlay',_0x32bb64):_0x3bdf31['addClass']('ck-editor__editable__overlay',_0x32bb64);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2164d7=>null!==_0x2164d7),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0xe9ded6,_0x16bd1e,_0x23bf95)=>_0xe9ded6&&_0x23bf95?_0x16bd1e['changes']['getIndex'](_0x23bf95):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xe39654,_0x5f05d4)=>_0xe39654?_0x5f05d4['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x35abee);}['init'](){const _0x19aa89=this['editor'],_0x1bbcde=new wt(_0x19aa89,{'direction':'backward'}),_0x3a73d6=new wt(_0x19aa89,{'direction':'forward'});(_0x19aa89['commands']['add']('showPreviousChange',_0x1bbcde),_0x19aa89['commands']['add']('showNextChange',_0x3a73d6),_0x19aa89['commands']['add']('restoreRevision',new mt(_0x19aa89)),this['on']('change:numberOfChanges',()=>{_0x1bbcde['refresh'](),_0x3a73d6['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x19aa89['enableReadOnlyMode']('revision-viewer'),_0x19aa89['plugins']['has']('WidgetToolbarRepository'))&&_0x19aa89['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x3cc697){return await this['_utils']['loadRevisionData'](_0x3cc697,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x3cc697);}async['getRevisionRootsAttributes'](_0x5f0146){return await this['_utils']['loadRevisionData'](_0x5f0146,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x5f0146);}async['compare'](_0x34e027,_0x46296e,_0x3223dc=!0x1){if(!this['isEnabled'])return;const _0x3f2eb8=this['diff'],_0x26c959=this['repository'],_0x370a81='string'==typeof _0x34e027?_0x26c959['getRevision'](_0x34e027):_0x34e027,_0x3626be='string'==typeof _0x46296e?_0x26c959['getRevision'](_0x46296e):_0x46296e,_0x5dd489=_0x370a81['id'],_0x523447=_0x3626be?_0x3626be['id']:null;if(!_0x3223dc&&this['diff']&&this['diff']['newRevisionId']===_0x5dd489&&this['diff']['oldRevisionId']===_0x523447)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x5dd489,_0x523447);const _0x5af2b8=this['_getRevisionsRange'](_0x370a81,_0x3626be,!0x0)['map'](_0x4423c2=>this['_utils']['loadRevisionData'](_0x4423c2,this['adapter']));return _0x5af2b8['push'](new Promise(_0x248df2=>{setTimeout(_0x248df2,0x14);})),Promise['all'](_0x5af2b8)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1af211=this['_getDiff'](_0x5dd489,_0x523447);for(const _0x4f222b of _0x1af211['changes'])this['_changeIdToChange']['set'](_0x4f222b['id'],_0x4f222b);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0xaf8bb9=>{for(const _0x7452e0 of this['editor']['model']['document']['getRootNames']())_0xaf8bb9['detachRoot'](_0x7452e0);for(const _0x54ad80 of Object['keys'](_0x1af211['model'])){const _0x2700a9=_0xaf8bb9['addRoot'](_0x54ad80);for(const _0x29bf98 of Object['keys'](_0x1af211['attributes'][_0x54ad80]))_0xaf8bb9['setAttribute'](_0x29bf98,_0x1af211['attributes'][_0x54ad80][_0x29bf98],_0x2700a9);_0xaf8bb9['insert'](_0x1af211['model'][_0x54ad80],_0x2700a9,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1af211['changes'])),this['isReady']=!0x0;})['catch'](_0x2513c1=>{console['error'](_0x2513c1),this['_cleanUp'](),_0x3f2eb8&&(this['diff']=_0x3f2eb8),this['isReady']=!0x0;});}['addRevisionData'](_0x3634f6,_0x4753f8){const _0x266f54=this['repository']['createRevision'](_0x3634f6);return _0x266f54['on']('_update',(_0x31097b,_0x205ad0,_0x593786)=>_0x4753f8(_0x205ad0,_0x593786,_0x266f54)),this['repository']['addRevision'](_0x266f54),_0x266f54;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x553075=>{for(const _0x1fec55 of this['editor']['model']['document']['getRootNames']())_0x553075['detachRoot'](_0x1fec55);});}['_sortAndFilterDiffChanges'](_0x420c0f){const _0x4401e8=[],_0x925676=new Map();for(const _0x279c3e of this['editor']['model']['document']['getRootNames']()){const _0x439db6=this['editor']['editing']['view']['getDomRoot'](_0x279c3e);if(!_0x439db6)continue;const _0x4c4e7f=_0x439db6['getClientRects']()['item'](0x0);_0x4c4e7f&&(_0x4401e8['push'](_0x279c3e),_0x925676['set'](_0x279c3e,_0x4c4e7f));}return _0x4401e8['sort']((_0x4c6078,_0x3e7ccb)=>{const _0x1b9e1f=_0x925676['get'](_0x4c6078),_0x2a6ec5=_0x925676['get'](_0x3e7ccb);return _0x1b9e1f['y']-_0x2a6ec5['y']||_0x1b9e1f['x']-_0x2a6ec5['x'];}),(_0x420c0f=_0x420c0f['filter'](_0x449430=>_0x4401e8['includes'](_0x449430['rootName'])))['sort']((_0x5b5058,_0x41c0a6)=>_0x4401e8['indexOf'](_0x5b5058['rootName'])-_0x4401e8['indexOf'](_0x41c0a6['rootName'])),_0x420c0f;}['_makeTape'](_0x20f7a8){const _0x183648=Array['from'](_0x20f7a8['markers'])['filter'](([_0x5a3422,_0x899c60])=>_0x5a3422['startsWith']('revision:')&&!_0x899c60['isCollapsed']),_0x432c31=Array['from'](this['editor']['model']['createRangeIn'](_0x20f7a8)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x183648['length'])for(const _0x29cf04 of _0x432c31){const [_0x201786,_0x506c2f]=_0x183648[0x0],[,_0x33fc03,_0x488231]=_0x201786['split'](':');if(_0x506c2f['end']['isEqual'](_0x29cf04['nextPosition'])&&_0x183648['shift'](),(_0x29cf04['previousPosition']['isEqual'](_0x506c2f['start'])||_0x29cf04['previousPosition']['isAfter'](_0x506c2f['start']))&&('insertion'==_0x33fc03?_0x29cf04['isAdded']={'userId':_0x488231}:'deletion'==_0x33fc03&&(_0x29cf04['isRemoved']={'userId':_0x488231})),0x0==_0x183648['length'])break;}return _0x432c31;}['_refreshStartEndIndex'](_0x3ffd06){const _0x1a7cc3=new Map();for(let _0x3a55a6=0x0;_0x3a55a6<_0x3ffd06['length'];_0x3a55a6++)'text'===_0x3ffd06[_0x3a55a6]['type']?(_0x3ffd06[_0x3a55a6]['item']['startIndex']=_0x3a55a6,_0x3ffd06[_0x3a55a6]['item']['endIndex']=_0x3a55a6):('elementStart'===_0x3ffd06[_0x3a55a6]['type']?_0x3ffd06[_0x3a55a6]['item']['startIndex']=_0x3a55a6:'elementEnd'===_0x3ffd06[_0x3a55a6]['type']&&(_0x3ffd06[_0x3a55a6]['item']['endIndex']=_0x3a55a6),_0x1a7cc3['set'](_0x3ffd06[_0x3a55a6]['id'],_0x3a55a6));for(const _0xb4756e of _0x1a7cc3['values']())'elementStart'===_0x3ffd06[_0xb4756e]['type']?_0x3ffd06[_0xb4756e]['item']['endIndex']=_0x1a7cc3['get'](_0x3ffd06[_0xb4756e]['pairId']):'elementEnd'===_0x3ffd06[_0xb4756e]['type']&&(_0x3ffd06[_0xb4756e]['item']['startIndex']=_0x1a7cc3['get'](_0x3ffd06[_0xb4756e]['pairId']));}['_processTape'](_0x10d9b1){for(let _0xd5b9d5=0x0;_0xd5b9d5<_0x10d9b1['length'];_0xd5b9d5++){if('elementStart'===_0x10d9b1[_0xd5b9d5]['type'])_0x10d9b1[_0xd5b9d5]['item']['startIndex']=_0xd5b9d5;else{if('elementEnd'===_0x10d9b1[_0xd5b9d5]['type']){_0x10d9b1[_0xd5b9d5]['item']['endIndex']=_0xd5b9d5;const _0x1c53d1=_0x10d9b1[_0xd5b9d5]['item']['startIndex'];_0x10d9b1[_0x1c53d1]['pairId']=_0x10d9b1[_0xd5b9d5]['id'],_0x10d9b1[_0xd5b9d5]['pairId']=_0x10d9b1[_0x1c53d1]['id'];}else _0x10d9b1[_0xd5b9d5]['item']['startIndex']=_0xd5b9d5,_0x10d9b1[_0xd5b9d5]['item']['endIndex']=_0xd5b9d5,_0x10d9b1[_0xd5b9d5]['pairId']=null;}_0x10d9b1[_0xd5b9d5]['markersStart']||(_0x10d9b1[_0xd5b9d5]['markersStart']=[],_0x10d9b1[_0xd5b9d5]['markersEnd']=[]);}}['_markInsertions'](_0x4990a2,_0x2a8cb4){const _0x358175=_0x4990a2['filter'](_0x487914=>!_0x487914['isAdded']);for(let _0x305d40=0x0;_0x305d40<_0x2a8cb4['length'];_0x305d40++)_0x2a8cb4[_0x305d40]['isAdded']&&(_0x358175[_0x305d40]['isAdded']=_0x2a8cb4[_0x305d40]['isAdded']);}['_getDiff'](_0x3e5a67,_0x5b9d9e=null){const _0x253870=this['repository']['getRevision'](_0x3e5a67),_0x3fa21e=_0x5b9d9e?this['repository']['getRevision'](_0x5b9d9e):null,_0x1d196a=this['_getRevisionsRange'](_0x253870,_0x3fa21e),_0x21a58a=_0x1d196a[_0x1d196a['length']-0x1],_0x1525c9=new Map(),_0x3dc397={'model':{},'attributes':{},'changes':[]},_0x2e5873=new Set(),_0x1300e9=new Map();for(let _0x20e70c=_0x1d196a['length']-0x1;_0x20e70c>=0x0;_0x20e70c--){const _0x5a9e95=_0x1d196a[_0x20e70c];for(const _0x33df0b of Object['keys'](_0x5a9e95['diffData']))if(_0x5a9e95['diffData'][_0x33df0b]['attachChange']){const _0x33b944=_0x5a9e95['diffData'][_0x33df0b]['attachChange'];_0x33b944['isAttached']?(_0x2e5873['add'](_0x33df0b),_0x1300e9['has'](_0x33df0b)&&_0x1300e9['get'](_0x33df0b)['userId']==_0x33b944['userId']?_0x1300e9['delete'](_0x33df0b):_0x1300e9['set'](_0x33df0b,_0x33b944)):_0x1300e9['has'](_0x33df0b)?(_0x2e5873['delete'](_0x33df0b),_0x1300e9['delete'](_0x33df0b)):(_0x2e5873['add'](_0x33df0b),_0x1300e9['set'](_0x33df0b,_0x33b944));}else _0x2e5873['add'](_0x33df0b);}for(const _0x1335fb of _0x2e5873){const _0x2b5968=_0x1300e9['has'](_0x1335fb)&&!_0x1300e9['get'](_0x1335fb)['isAttached'];let _0x20db02=_0x2b5968?_0x1d196a['length']-0x1:0x0;const _0x519d9f=_0x2b5968?-0x1:0x1;for(;_0x1d196a[_0x20db02];){const _0x3ca0a7=_0x1d196a[_0x20db02];if(_0x3ca0a7['diffData'][_0x1335fb]){const _0x178a62=_0x2b5968?_0x3ca0a7['diffData'][_0x1335fb]['attributesBefore']:_0x3ca0a7['diffData'][_0x1335fb]['attributesAfter'];_0x3dc397['attributes'][_0x1335fb]=_0x178a62?_0x4fdf13(_0x178a62):{};break;}_0x20db02+=_0x519d9f;}}for(const _0xd3a46e of _0x1d196a){_0xd3a46e['model']={};for(const _0x56b1f5 of _0xd3a46e['authors'])_0x1525c9['set'](_0x56b1f5['id'],_0x56b1f5);for(const _0x4cb8f3 of _0x2e5873){const _0x5a08e6=_0xd3a46e['diffData'][_0x4cb8f3]?_0xd3a46e['diffData'][_0x4cb8f3]['insertions']:'[]',_0x1ee3f7=_0xd3a46e['diffData'][_0x4cb8f3]?_0xd3a46e['diffData'][_0x4cb8f3]['deletions']:'[]';_0xd3a46e['model'][_0x4cb8f3]={'insertions':this['_utils']['_makeModelFromViewString'](_0x5a08e6),'deletions':this['_utils']['_makeModelFromViewString'](_0x1ee3f7)};}}for(const _0x42806c of _0x2e5873){let _0x191125=null,_0x4e0b7c=0x0;const _0xfda3da=new Map(Array['from'](_0x253870['model'][_0x42806c]['insertions']['markers'])['filter'](([_0x435056])=>!_0x435056['startsWith']('revision:')));let _0x5d4379=0x0;for(const _0xaeb2ee of _0x1d196a){const _0x1cf7e1=this['_makeTape'](_0xaeb2ee['model'][_0x42806c]['insertions']);_0xaeb2ee==_0x253870?(_0x191125=_0x1cf7e1,_0x4e0b7c=_0x191125['length'],_0x191125['forEach'](_0x34149b=>{_0x34149b['id']=_0x5d4379++;}),this['_processTape'](_0x191125)):this['_markInsertions'](_0x191125,_0x1cf7e1);const _0x344ba2=_0x191125['filter'](_0x46b063=>!_0x46b063['isAdded'])['map'](_0x3f5090=>_0x3f5090['id']);let _0x5bef3f=0x0;const _0x40f085=this['_makeTape'](_0xaeb2ee['model'][_0x42806c]['deletions']);_0x40f085['forEach'](_0x55ec85=>{_0x55ec85['isRemoved']?_0x55ec85['id']=_0x4e0b7c++:_0x55ec85['id']=_0x344ba2[_0x5bef3f++];}),this['_processTape'](_0x40f085),this['_setDistance'](_0x191125,'isAdded'),this['_setDistance'](_0x40f085,'isRemoved'),_0xaeb2ee==_0x253870&&this['_markMarkers'](_0x191125,_0xfda3da),_0x191125=this['_joinTapes'](_0x191125,_0x40f085),this['_refreshStartEndIndex'](_0x191125),this['_setDistance'](_0x191125,'isRemoved');}_0x191125=_0x191125['filter'](_0x1eb723=>!(_0x1eb723['isAdded']&&_0x1eb723['isRemoved']));const _0x224804=new Map(_0x21a58a['model'][_0x42806c]['deletions']['markers']),_0x19aa03=new Set(_0xfda3da['keys']());for(const _0x321675 of _0x224804['keys']())_0x19aa03['delete'](_0x321675);this['_markSuggestions'](_0x191125,_0x19aa03),this['_fixObsoleteTags'](_0x191125),_0x191125=this['_removeMissingPairs'](_0x191125),_0x191125=this['_markMismatchedRemovedTags'](_0x191125),_0x191125=this['_removeUnsupportedChanges'](_0x191125);const {root:_0x4675f0,changes:_0x61a857}=this['_makeModelFromTape'](_0x191125,_0x1525c9,_0x42806c);_0x3dc397['model'][_0x42806c]=_0x4675f0;const _0x3af38a=_0x1300e9['get'](_0x42806c);if(_0x3af38a){const _0x4b3388=_0x1525c9['get'](_0x3af38a['userId']),_0x111708=new r({'author':_0x4b3388,'type':_0x3af38a['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x42806c});_0x61a857['unshift'](_0x111708),_0x3dc397['attributes'][_0x42806c]['revisionHistoryAttachChange']=_0x111708['id'];}_0x3dc397['changes']=_0x3dc397['changes']['concat'](_0x61a857);}return _0x3dc397;}['_markMarkers'](_0x1ba3f0,_0x21fce6){for(let _0x408cb7=0x0;_0x408cb7<_0x1ba3f0['length'];_0x408cb7++)for(const [_0x4580f1,_0x464592]of _0x21fce6)!_0x464592['isCollapsed']&&_0x464592['start']['isEqual'](_0x1ba3f0[_0x408cb7]['previousPosition'])&&_0x1ba3f0[_0x408cb7]['markersStart']['push'](_0x4580f1),_0x464592['end']['isEqual'](_0x1ba3f0[_0x408cb7]['nextPosition'])&&_0x1ba3f0[_0x408cb7]['markersEnd']['push'](_0x4580f1);}['_joinTapes'](_0xcd5976,_0x563e8b){let _0x2a9ef9=[],_0x86fac3=0x0,_0x2543fb=0x0;for(;_0x86fac3<_0xcd5976['length']||_0x2543fb<_0x563e8b['length'];){const _0x13f434=_0xcd5976[_0x86fac3]||{},_0x2656a1=_0x563e8b[_0x2543fb]||{};if(_0x13f434['id']==_0x2656a1['id'])_0x86fac3++,_0x2543fb++,_0x2a9ef9['push'](_0x13f434);else{if(_0x2656a1['isRemoved']&&_0x13f434['isAdded']){const {commonTape:_0x332a60,iEnd:_0x3c0007,jEnd:_0x3439f0}=this['_threeWayMerge'](_0xcd5976,_0x86fac3,_0x563e8b,_0x2543fb);_0x2a9ef9=_0x2a9ef9['concat'](_0x332a60),_0x86fac3=_0x3c0007,_0x2543fb=_0x3439f0;}else _0x2656a1['isRemoved']?(_0x2543fb++,_0x2a9ef9['push'](_0x2656a1)):(_0x86fac3++,_0x2a9ef9['push'](_0x13f434));}}return _0x2a9ef9;}['_markSuggestions'](_0x5c71a3,_0x29f40d){const _0x2eef9b=[];for(let _0x449a20=0x0;_0x449a20<_0x5c71a3['length'];_0x449a20++){for(let _0x501748=0x0;_0x501748<_0x5c71a3[_0x449a20]['markersStart']['length'];_0x501748++){const _0x535e8d=_0x5c71a3[_0x449a20]['markersStart'][_0x501748];if(!_0x29f40d['has'](_0x535e8d))continue;const {group:_0x2f8bf1,type:_0x3b0665,authorId:_0x47587f}=_0x15543d(_0x535e8d);'revision-suggestion'!=_0x2f8bf1||'insertion'!=_0x3b0665&&'deletion'!=_0x3b0665||(_0x2eef9b['unshift']({'type':_0x3b0665,'name':_0x535e8d,'userId':_0x47587f}),_0x5c71a3[_0x449a20]['markersStart']['splice'](_0x501748,0x1),_0x501748--);}_0x290858(_0x5c71a3[_0x449a20]);for(let _0x17a2c9=0x0;_0x17a2c9<_0x5c71a3[_0x449a20]['markersEnd']['length'];_0x17a2c9++){const _0x47cd40=_0x5c71a3[_0x449a20]['markersEnd'][_0x17a2c9];if(!_0x29f40d['has'](_0x47cd40))continue;const {group:_0x48d4a6,type:_0x16e1c4}=_0x15543d(_0x47cd40);if('revision-suggestion'!=_0x48d4a6||'insertion'!=_0x16e1c4&&'deletion'!=_0x16e1c4)continue;_0x5c71a3[_0x449a20]['markersEnd']['splice'](_0x17a2c9,0x1),_0x17a2c9--;const _0xf4c909=_0x2eef9b['findIndex'](_0x391d0f=>_0x391d0f['name']==_0x47cd40);_0xf4c909>-0x1&&_0x2eef9b['splice'](_0xf4c909,0x1);}}function _0x15543d(_0x2899c3){const _0x3bd97c=_0x2899c3['split'](':');return{'group':_0x3bd97c[0x0],'type':_0x3bd97c[0x1],'subType':_0x3bd97c['length']>=0x5?_0x3bd97c[0x2]:null,'id':_0x3bd97c['length']<0x5?_0x3bd97c[0x2]:_0x3bd97c[0x3],'authorId':_0x3bd97c['length']<0x5?_0x3bd97c[0x3]:_0x3bd97c[0x4],'markerCount':0x6==_0x3bd97c['length']?_0x3bd97c[0x5]:null};}function _0x290858(_0x1002ee){for(let _0x33e72b=0x0;_0x33e72b<_0x2eef9b['length'];_0x33e72b++){if(_0x1002ee['isAdded']&&'insertion'==_0x2eef9b[_0x33e72b]['type'])return _0x1002ee['isAddSuggestion']=_0x2eef9b[_0x33e72b],void delete _0x1002ee['isAdded'];if(!_0x1002ee['isAdded']&&!_0x1002ee['isRemoved']&&'deletion'==_0x2eef9b[_0x33e72b]['type'])return void(_0x1002ee['isRemoveSuggestion']=_0x2eef9b[_0x33e72b]);}}}['_setDistance'](_0xbd8be7,_0x482712){let _0xd775e8=0x0,_0x101cee=!0x1;const _0x403b79=new Map();for(const _0x131afd of _0xbd8be7)_0x131afd[_0x482712]?_0x101cee&&(_0xd775e8++,_0x101cee=!0x1):(_0xd775e8++,_0x101cee=!0x0),_0x403b79['set'](_0x131afd['id'],_0xd775e8);for(let _0x8fbb6c=0x0;_0x8fbb6c<_0xbd8be7['length'];_0x8fbb6c++){if('isRemoved'==_0x482712&&_0xbd8be7[_0x8fbb6c]['isAdded']||'isAdded'==_0x482712&&_0xbd8be7[_0x8fbb6c]['isRemoved'])continue;if('text'==_0xbd8be7[_0x8fbb6c]['type']){_0xbd8be7[_0x8fbb6c]['distance']=0x0;continue;}const _0x4460a8=_0x403b79['get'](_0xbd8be7[_0x8fbb6c]['pairId']),_0x4eae92=_0x403b79['get'](_0xbd8be7[_0x8fbb6c]['id']);_0xbd8be7[_0x8fbb6c]['distance']=_0x4460a8-_0x4eae92;}}['_getRevisionsRange'](_0x36f274,_0x28bc48,_0x292647=!0x1){const _0x40709f=[];let _0x14bdd8=this['repository']['getIndex'](_0x36f274),_0xb7ea41=this['repository']['getIndex'](_0x28bc48);for(-0x1==_0xb7ea41&&(_0xb7ea41=this['repository']['_revisions']['length'],_0x292647=!0x1);_0x14bdd8<_0xb7ea41;)_0x40709f['push'](this['repository']['getRevision'](_0x14bdd8)),_0x14bdd8++;return _0x292647&&_0x40709f['push'](this['repository']['getRevision'](_0x14bdd8)),_0x40709f;}['_threeWayMerge'](_0x1c08ab,_0x5559fc,_0x16a1d7,_0x8171fc){const _0x1b6ca4=this['editor']['model']['schema'];let _0x246fd7=_0x5559fc;for(;_0x1c08ab[_0x246fd7]&&_0x1c08ab[_0x246fd7]['isAdded'];)_0x246fd7++;let _0x3d026d=_0x8171fc;for(;_0x16a1d7[_0x3d026d]&&_0x16a1d7[_0x3d026d]['isRemoved'];)_0x3d026d++;_0x1df9c1(_0x1c08ab,_0x5559fc,_0x246fd7),_0x1df9c1(_0x16a1d7,_0x8171fc,_0x3d026d);const _0x979a62=_0x16a1d7['slice'](_0x8171fc,_0x3d026d)['concat'](_0x1c08ab['slice'](_0x5559fc,_0x246fd7));return _0x979a62['sort']((_0x597db1,_0x194243)=>_0x597db1['side']!=_0x194243['side']?_0x597db1['side']-_0x194243['side']:_0x597db1['level']!=_0x194243['level']?_0x597db1['level']-_0x194243['level']:_0x597db1['distance']!=_0x194243['distance']?_0x194243['distance']-_0x597db1['distance']:!!_0x597db1['isAdded']!=!!_0x194243['isAdded']?-0x1==_0x597db1['side']||0x0==_0x597db1['side']?_0x597db1['isAdded']?-0x1:0x1:_0x597db1['isAdded']?0x1:-0x1:_0x597db1['index']-_0x194243['index']),{'commonTape':_0x979a62,'iEnd':_0x246fd7,'jEnd':_0x3d026d};function _0x1df9c1(_0x11e9e5,_0x535e17,_0x28ad11){let _0x41bc37=-0x1,_0x2beb50=Number['POSITIVE_INFINITY'],_0x2e921c=!0x0;for(let _0x48935a=_0x535e17;_0x48935a<_0x28ad11;_0x48935a++)if(_0x1b6ca4['isInline'](_0x11e9e5[_0x48935a]['item'])||(_0x2e921c=!0x1),_0x11e9e5[_0x48935a]['item']['startIndex']<_0x535e17&&(_0x41bc37=_0x48935a),_0x11e9e5[_0x48935a]['item']['endIndex']>=_0x28ad11){_0x2beb50=_0x48935a;break;}_0x2e921c&&(_0x41bc37=_0x28ad11-0x1);for(let _0x48a5c8=_0x535e17;_0x48a5c8<_0x28ad11;_0x48a5c8++)_0x11e9e5[_0x48a5c8]['side']=_0x48a5c8<=_0x41bc37?-0x1:_0x48a5c8<_0x2beb50?0x0:0x1,_0x11e9e5[_0x48a5c8]['index']=_0x48a5c8;let _0x4f3f22=0x0;for(let _0x3c5646=_0x535e17;_0x3c5646<=_0x41bc37;_0x3c5646++)0x0==_0x11e9e5[_0x3c5646]['distance']?_0x11e9e5[_0x3c5646]['level']=_0x4f3f22:(_0x4f3f22++,_0x11e9e5[_0x3c5646]['level']=_0x4f3f22,_0x4f3f22++);for(let _0x241bbc=_0x535e17;_0x241bbc<_0x28ad11;_0x241bbc++)0x0==_0x11e9e5[_0x241bbc]['side']&&(_0x11e9e5[_0x241bbc]['level']=_0x4f3f22);_0x4f3f22=0x0;for(let _0x5b0b06=_0x28ad11-0x1;_0x5b0b06>=_0x2beb50;_0x5b0b06--)0x0==_0x11e9e5[_0x5b0b06]['distance']?_0x11e9e5[_0x5b0b06]['level']=_0x4f3f22:(_0x4f3f22--,_0x11e9e5[_0x5b0b06]['level']=_0x4f3f22,_0x4f3f22--);}}['_fixObsoleteTags'](_0x2efebf){const _0x471b8d=new Map(),_0x2a2add=this['editor']['model']['schema'];for(let _0x2574de=0x1;_0x2574de<_0x2efebf['length'];_0x2574de++){let _0x129b1b,_0x5bf39e,_0x188d1c;const _0x4a4600=_0x2efebf[_0x2574de],_0x3fa606=_0x2efebf[_0x2574de-0x1];if('text'==_0x4a4600['type'])continue;if(_0x4a4600['type']!=_0x3fa606['type'])continue;if(!_0x2a2add['isBlock'](_0x3fa606['item'])||_0x2a2add['isLimit'](_0x3fa606['item']))continue;if(!_0x2a2add['isBlock'](_0x4a4600['item'])||_0x2a2add['isLimit'](_0x4a4600['item']))continue;if((_0x2efebf[_0x2574de]['isAdded']||_0x2efebf[_0x2574de]['isAddSuggestion'])&&_0x2efebf[_0x2574de-0x1]['isRemoved'])_0x129b1b=_0x2efebf[_0x2574de],_0x5bf39e=_0x2efebf[_0x2574de-0x1],_0x188d1c=_0x2574de-0x1;else{if(!_0x2efebf[_0x2574de]['isRemoved']||!_0x2efebf[_0x2574de-0x1]['isAdded']&&!_0x2efebf[_0x2574de-0x1]['isAddSuggestion'])continue;_0x129b1b=_0x2efebf[_0x2574de-0x1],_0x5bf39e=_0x2efebf[_0x2574de],_0x188d1c=_0x2574de;}const _0xf0eec3=_0x129b1b['level']==_0x5bf39e['level'],_0x9c291c=Math['abs'](_0x129b1b['level'])<Math['abs'](_0x5bf39e['level'])&&0x0==_0x5bf39e['distance'];(_0xf0eec3||_0x9c291c)&&(_0x471b8d['set'](_0x5bf39e['id'],_0x129b1b['id']),_0x2efebf['splice'](_0x188d1c,0x1),_0x2574de--,_0x129b1b['isAdded']=!0x1);}for(let _0x1aa1a1=0x0;_0x1aa1a1<_0x2efebf['length'];_0x1aa1a1++)_0x471b8d['has'](_0x2efebf[_0x1aa1a1]['pairId'])&&(_0x2efebf[_0x1aa1a1]['pairId']=_0x471b8d['get'](_0x2efebf[_0x1aa1a1]['pairId']));}['_removeMissingPairs'](_0x121f27){const _0x2aacb8=new Set(_0x121f27['map'](_0x165c1b=>_0x165c1b['id']));for(let _0x1bc184=0x0;_0x1bc184<_0x121f27['length'];_0x1bc184++)_0x2aacb8['has'](_0x121f27[_0x1bc184]['pairId'])||0x0==_0x121f27[_0x1bc184]['distance']||(_0x121f27[_0x1bc184]['isIncorrect']=!0x0);return _0x121f27['filter'](_0x5cbc0b=>!_0x5cbc0b['isIncorrect']);}['_markMismatchedRemovedTags'](_0xdf62d){const _0xa7530c=new Set();for(let _0x1c94c9=0x0;_0x1c94c9<_0xdf62d['length'];_0x1c94c9++){if(_0xa7530c['has'](_0xdf62d[_0x1c94c9]['id'])&&_0xdf62d[_0x1c94c9]['isRemoved']&&(_0xdf62d[_0x1c94c9]['isIncorrect']=!0x0),_0xdf62d[_0x1c94c9]['isIncorrect'])continue;if(0x0==_0xdf62d[_0x1c94c9]['distance'])continue;if('elementStart'!=_0xdf62d[_0x1c94c9]['type'])continue;if(null==_0xdf62d[_0x1c94c9]['pairId'])continue;let _0x24c057=_0x1c94c9+0x1,_0x3357fb=0x0;for(;_0xdf62d[_0x24c057]['id']!=_0xdf62d[_0x1c94c9]['pairId'];)'elementStart'==_0xdf62d[_0x24c057]['type']?_0x3357fb++:'elementEnd'==_0xdf62d[_0x24c057]['type']&&_0x3357fb--,_0x24c057++;if(0x0!=_0x3357fb){if(_0xdf62d[_0x1c94c9]['isRemoved'])_0xdf62d[_0x1c94c9]['isIncorrect']=!0x0;else{for(;_0x24c057!=_0x1c94c9;)_0xdf62d[_0x24c057]['isRemoved']&&0x0!=_0xdf62d[_0x24c057]['distance']&&(_0xdf62d[_0x24c057]['isIncorrect']=!0x0,_0xa7530c['add'](_0xdf62d[_0x24c057]['pairId'])),_0x24c057--;}}}return _0xdf62d['filter'](_0x540b80=>!_0x540b80['isIncorrect']);}['_removeUnsupportedChanges'](_0x54527a){const _0x26630c=this['editor']['model']['schema'];for(let _0x151f32=0x0;_0x151f32<_0x54527a['length'];_0x151f32++){if(!(_0x54527a[_0x151f32]['isAdded']||_0x54527a[_0x151f32]['isAddSuggestion']||_0x54527a[_0x151f32]['isRemoved']||_0x54527a[_0x151f32]['isRemoveSuggestion']))continue;if(0x0==_0x54527a[_0x151f32]['distance'])continue;const _0x2e94d2=_0x54527a[_0x151f32]['item'];_0x26630c['isBlock'](_0x2e94d2)||_0x26630c['isLimit'](_0x2e94d2)||(_0x54527a[_0x151f32]['isAdded']&&delete _0x54527a[_0x151f32]['isAdded'],_0x54527a[_0x151f32]['isAddSuggestion']&&delete _0x54527a[_0x151f32]['isAddSuggestion'],_0x54527a[_0x151f32]['isRemoveSuggestion']&&delete _0x54527a[_0x151f32]['isRemoveSuggestion'],_0x54527a[_0x151f32]['isRemoved']&&(_0x54527a[_0x151f32]['isIncorrect']=!0x0));}return _0x54527a['filter'](_0x438b86=>!_0x438b86['isIncorrect']);}['_makeModelFromTape'](_0x1270b6,_0x54a80f,_0x39e8e1){const _0xc6454d=new vt(),_0x428e97=[],_0x573538=new Map(),_0x1801a6=this['editor']['model'],_0x2b4326=_0x1801a6['schema'],_0x1dc65e=[_0xc6454d],_0x2f79ea={},_0x592418={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x18a0a8=null;const _0x14a46c=[0x0];for(let _0x191a9e=0x0;_0x191a9e<_0x1270b6['length'];_0x191a9e++)if('elementStart'===_0x1270b6[_0x191a9e]['type']){_0x1270b6[_0x191a9e]['previousPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c);const _0x105d5d=new ut(_0x1270b6[_0x191a9e]['item']['name'],_0x1270b6[_0x191a9e]['item']['getAttributes']());_0x1dc65e[0x0]['_appendChild'](_0x105d5d),_0x14a46c['push'](0x0),_0x1dc65e['unshift'](_0x105d5d),_0x1270b6[_0x191a9e]['nextPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c);}else'elementEnd'===_0x1270b6[_0x191a9e]['type']?(_0x1dc65e['shift'](),_0x1270b6[_0x191a9e]['previousPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c),_0x14a46c['pop'](),_0x14a46c[_0x14a46c['length']-0x1]++,_0x1270b6[_0x191a9e]['nextPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c)):(_0x1270b6[_0x191a9e]['previousPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c),_0x18a0a8?_0x18a0a8['_data']+=_0x1270b6[_0x191a9e]['item']['data']:_0x18a0a8=new gt(_0x1270b6[_0x191a9e]['item']['data'],_0x1270b6[_0x191a9e]['item']['getAttributes']()),_0x1270b6[_0x191a9e+0x1]&&'text'===_0x1270b6[_0x191a9e+0x1]['type']&&_0x95d37a(_0x18a0a8,_0x1270b6[_0x191a9e+0x1]['item'])||(_0x1dc65e[0x0]['_appendChild'](_0x18a0a8),_0x18a0a8=null),_0x14a46c[_0x14a46c['length']-0x1]+=_0x1270b6[_0x191a9e]['item']['offsetSize'],_0x1270b6[_0x191a9e]['nextPosition']=_0x1801a6['createPositionFromPath'](_0xc6454d,_0x14a46c));for(let _0x3aafa9=0x0;_0x3aafa9<_0x1270b6['length'];_0x3aafa9++){const _0x1f72b7=_0x1270b6[_0x3aafa9]['previousPosition'],_0x34adf2=_0x1270b6[_0x3aafa9]['nextPosition'];for(const _0x5e0c20 of _0x1270b6[_0x3aafa9]['markersStart'])_0x573538['set'](_0x5e0c20,{'start':_0x1f72b7,'end':null});_0x3a5f84('isRemoveSuggestion',_0x3aafa9,_0x1f72b7,_0x34adf2),_0x3a5f84('isAddSuggestion',_0x3aafa9,_0x1f72b7,_0x34adf2),_0x3a5f84('isRemoved',_0x3aafa9,_0x1f72b7,_0x34adf2),_0x3a5f84('isAdded',_0x3aafa9,_0x1f72b7,_0x34adf2);for(const _0x2e9034 of _0x1270b6[_0x3aafa9]['markersEnd']){const _0x576c1f=_0x573538['get'](_0x2e9034);_0x576c1f?_0x576c1f['end']=_0x34adf2:_0x573538['set'](_0x2e9034,{'start':_0x34adf2,'end':_0x34adf2});}}for(const [_0x5aec89,_0x395a09]of _0x573538){const _0x521d37=this['editor']['model']['createRange'](_0x395a09['start'],_0x395a09['end']);_0xc6454d['markers']['set'](_0x5aec89,_0x521d37);}return _0x428e97['sort']((_0x4a8397,_0x2bcd18)=>{const _0x14ed00=_0xc6454d['markers']['get']('revision:'+_0x4a8397['id']),_0x3121e0=_0xc6454d['markers']['get']('revision:'+_0x2bcd18['id']);return _0x14ed00['start']['isBefore'](_0x3121e0['start'])?-0x1:_0x14ed00['start']['isAfter'](_0x3121e0['start'])?0x1:_0x14ed00['end']['isBefore'](_0x3121e0['end'])?-0x1:_0x14ed00['end']['isAfter'](_0x3121e0['end'])?0x1:'add'===_0x4a8397['type']?-0x1:0x1;}),{'root':_0xc6454d,'changes':_0x428e97};function _0x3a5f84(_0xd40126,_0x275280,_0x2b1383,_0x1beb33){const _0x8bc23a=!!_0x1270b6[_0x275280][_0xd40126],_0x535b6a=_0x8bc23a?_0x1270b6[_0x275280][_0xd40126]['userId']:null,_0x5ed95e=_0x275280===_0x1270b6['length']-0x1,_0x4d86c4=_0x592418[_0xd40126][0x0],_0x37006c=_0x2b4326['isObject'](_0x1270b6[_0x275280]['item']);!_0x2f79ea[_0xd40126]&&_0x8bc23a?_0x2f79ea[_0xd40126]={'start':_0x2b1383,'tapeItem':_0x1270b6[_0x275280],'userId':_0x535b6a,'type':_0xd40126}:_0x2f79ea[_0xd40126]&&!_0x8bc23a?(_0x2f79ea[_0xd40126]['end']=_0x2b1383,_0x37ac06(_0x2f79ea[_0xd40126]),_0x2f79ea[_0xd40126]=null):_0x2f79ea[_0xd40126]&&_0x8bc23a&&_0x2f79ea[_0xd40126]['userId']!==_0x535b6a&&(_0x2f79ea[_0xd40126]['end']=_0x2b1383,_0x4d86c4&&_0x4d86c4['userId']===_0x2f79ea[_0xd40126]['userId']||_0x37ac06(_0x2f79ea[_0xd40126]),_0x2f79ea[_0xd40126]={'start':_0x2b1383,'tapeItem':_0x1270b6[_0x275280],'userId':_0x535b6a,'type':_0xd40126}),_0x2f79ea[_0xd40126]&&_0x37006c&&('elementStart'!==_0x1270b6[_0x275280]['type']||_0x4d86c4&&_0x4d86c4['userId']===_0x535b6a||_0x592418[_0xd40126]['unshift']({'userId':_0x535b6a,'object':_0x1270b6[_0x275280]['item'],'change':_0x2f79ea[_0xd40126]}),'elementEnd'===_0x1270b6[_0x275280]['type']&&_0x4d86c4&&_0x4d86c4['object']===_0x1270b6[_0x275280]['item']&&(_0x592418[_0xd40126]['shift'](),_0x2f79ea[_0xd40126]=_0x4d86c4['change'])),_0x2f79ea[_0xd40126]&&_0x5ed95e&&(_0x2f79ea[_0xd40126]['end']=_0x1beb33,_0x37ac06(_0x2f79ea[_0xd40126]),_0x2f79ea[_0xd40126]=null);}function _0x37ac06({start:_0x998f36,end:_0x16512b,tapeItem:_0x272954,userId:_0x56a7b5,type:_0x5ac1f0}){const _0x5cf8e4=_0x272954['item'],_0x121627=_0x1801a6['schema']['isBlock'](_0x5cf8e4)&&!_0x1801a6['schema']['isLimit'](_0x5cf8e4),_0x591f56=_0x998f36['nodeAfter']==_0x16512b['parent']&&_0x16512b['isAtStart'];if(_0x121627&&_0x591f56)return;const _0x3e55ce=_0x1801a6['createRange'](_0x998f36,_0x16512b),_0x2c81cb=_0x54a80f['get'](_0x56a7b5),_0xc6604e=new r({'author':_0x2c81cb,'type':'isAdded'==_0x5ac1f0||'isAddSuggestion'==_0x5ac1f0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x5ac1f0||'isRemoveSuggestion'==_0x5ac1f0},'createdAt':new Date(),'rootName':_0x39e8e1});_0x428e97['push'](_0xc6604e),_0xc6454d['markers']['set']('revision:'+_0xc6604e['id'],_0x3e55ce);}function _0x95d37a(_0x552c38,_0x4a43b3){const _0x4f51c0=_0x552c38['getAttributes'](),_0x361cd0=_0x4a43b3['getAttributes']();for(const _0x4eb6ae of _0x4f51c0){if(_0x4eb6ae[0x1]!==_0x4a43b3['getAttribute'](_0x4eb6ae[0x0]))return!0x1;_0x361cd0['next']();}return _0x361cd0['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x479089=>{const _0x22c96d=_0x479089['markerName']['split'](':')[0x1],_0x59b4ba=this['_getChangeFromId'](_0x22c96d);if(!_0x59b4ba)return null;const _0x1b2fce='add'==_0x59b4ba['type']?'insertion':'deletion',_0x1968e7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1b2fce];return _0x59b4ba['data']['isSuggestion']&&_0x1968e7['push']('ck-suggestion-marker-'+_0x1b2fce+'-new'),this['activeChange']==_0x59b4ba&&_0x1968e7['push']('ck-suggestion-marker--active'),{'classes':_0x1968e7,'attributes':{'data-change-id':_0x22c96d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x4ae8c0=>{_0x4ae8c0['on']('element:pre',(_0x378d9b,_0x5a4b65,_0x6477be)=>{const _0x5198b8=_0x5a4b65['viewItem']['getChild'](0x0);if(!_0x5198b8||!_0x5198b8['is']('element','code'))return;if(!_0x6477be['consumable']['consume'](_0x5198b8,{'attributes':['vid_start','vid_end']}))return;const _0x1d6195=_0x5a4b65['modelRange']['start']['nodeAfter'];_0x6477be['writer']['setAttribute']('vid_start',_0x5198b8['getAttribute']('vid_start'),_0x1d6195),_0x6477be['writer']['setAttribute']('vid_end',_0x5198b8['getAttribute']('vid_end'),_0x1d6195);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x2aaec5=>{_0x2aaec5['on']('element',(_0x1c1a16,_0x51ee44,_0x28674a)=>{if(!_0x28674a['consumable']['consume'](_0x51ee44['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x51ee44['modelRange']['isCollapsed'])return;const _0x3f51c2=_0x51ee44['modelRange']['start']['nodeAfter'];_0x3f51c2['hasAttribute']('vid_start')||_0x3f51c2['hasAttribute']('vid')||(_0x28674a['writer']['setAttribute']('vid_start',_0x51ee44['viewItem']['getAttribute']('vid_start'),_0x3f51c2),_0x28674a['writer']['setAttribute']('vid_end',_0x51ee44['viewItem']['getAttribute']('vid_end'),_0x3f51c2));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x527751=>_0x527751['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x7b0f33,[,_0x52b8ea])=>{['vid_start','vid_end','vid']['includes'](_0x52b8ea)&&(_0x7b0f33['return']=!0x0,_0x7b0f33['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x36c103=>{_0x36c103['on']('attribute:vid',(_0x5b3f9f,_0x3082de,_0x3f1944)=>{if('\x20'!=_0x3082de['item']['data']||_0x3082de['item']['parent']['maxOffset']>0x1)return;if(!_0x3f1944['consumable']['consume'](_0x3082de['item'],_0x5b3f9f['name']))return;const _0x5281f5=_0x3f1944['writer'],_0x47ea7f=_0x3f1944['mapper']['toViewRange'](_0x3082de['range']);_0x5281f5['wrap'](_0x47ea7f,_0x5281f5['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1356d4){const _0xe04447=_0x1356d4['plugins']['get']('RevisionViewer');return(_0x29e498,_0x57f725,_0x4467d5)=>{const _0x2d0068=_0x57f725['markerName']['split'](':')[0x1],_0x30cbd3=_0xe04447['_getChangeFromId'](_0x2d0068);if(!_0x30cbd3)return null;const _0x498c7a='add'==_0x30cbd3['type']?'split':'merge';if(!_0x4467d5['consumable']['test'](_0x57f725['markerRange'],_0x29e498['name']))return;const _0xf6451a=_0x57f725['markerRange']['getWalker'](),_0x3c22c2=_0x57f725['markerRange']['start'],_0xfdfe31=_0x1356d4['model']['schema'];let _0x1e9fa0=null,_0xa21477=null,_0x5f8c79=!0x1,_0x36a9a3=!0x1;for(const _0x331515 of _0xf6451a){const _0x2a0b43=_0x331515['item'];_0x5f8c79=_0x5f8c79||_0xfdfe31['isContent'](_0x2a0b43);const _0x8d95c=_0x4467d5['mapper']['toViewElement'](_0x2a0b43);if(_0x8d95c&&_0x8d95c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x331515['type']&&(_0xfdfe31['isBlock'](_0x2a0b43)&&!_0xfdfe31['isLimit'](_0x2a0b43)&&(_0x2a0b43['nextSibling']||_0x3c22c2['isAtEnd']?_0x1e9fa0&&_0x1e9fa0['parent']==_0x2a0b43||(_0x1e9fa0=_0x2a0b43,_0x17a83d(_0x331515['previousPosition']),_0x36a9a3=!0x0):_0xa21477=_0xa21477||_0x331515['previousPosition']));}function _0x17a83d(_0x26797a){const _0x2d684a=_0x4467d5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x498c7a}),_0x335e14=_0x4467d5['mapper']['toViewPosition'](_0x26797a);_0x30cbd3['data']['isSuggestion']&&_0x4467d5['writer']['addClass']('ck-suggestion-marker-'+_0x498c7a+'-new',_0x2d684a),_0xe04447['activeChange']==_0x30cbd3&&_0x4467d5['writer']['addClass']('ck-suggestion-marker--active',_0x2d684a),_0x4467d5['writer']['insert'](_0x335e14,_0x2d684a),_0x4467d5['mapper']['bindElementToMarker'](_0x2d684a,_0x57f725['markerName']);}_0x5f8c79||_0x36a9a3||!_0xa21477||_0x17a83d(_0xa21477);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3629cc,_0x38c5c6,_0x27244c)=>{const _0x573e6d=_0x27244c['mapper']['markerNameToElements'](_0x38c5c6['markerName']);if(_0x573e6d){for(const _0x3f3fcf of _0x573e6d)(_0x3f3fcf['hasClass']('ck-suggestion-marker-split')||_0x3f3fcf['hasClass']('ck-suggestion-marker-merge'))&&(_0x27244c['mapper']['unbindElementFromMarkerName'](_0x3f3fcf,_0x38c5c6['markerName']),_0x27244c['writer']['remove'](_0x3f3fcf));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x7dbec1,_0x272982,_0x4c082f)=>{const _0x7f9ffc=_0x272982['markerName']['split'](':')[0x1],_0x30ee21=this['_getChangeFromId'](_0x7f9ffc);if(!_0x30ee21)return null;const _0x46e3d4='add'==_0x30ee21['type']?'split':'merge';if(_0x4c082f['consumable']['test'](_0x272982['markerRange'],_0x7dbec1['name']))for(const _0x184738 of _0x272982['markerRange']['getItems']()){if(!_0x184738['is']('element','softBreak'))continue;const _0x1ca8e8=_0x4c082f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x46e3d4}),_0x56e517=_0x4c082f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x184738));_0x30ee21['data']['isSuggestion']&&_0x4c082f['writer']['addClass']('ck-suggestion-marker-'+_0x46e3d4+'-new',_0x1ca8e8),this['activeChange']==_0x30ee21&&_0x4c082f['writer']['addClass']('ck-suggestion-marker--active',_0x1ca8e8),_0x4c082f['writer']['insert'](_0x56e517,_0x1ca8e8),_0x4c082f['mapper']['bindElementToMarker'](_0x1ca8e8,_0x272982['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x2cdc6f=>{for(const _0x33c4e5 of this['editor']['model']['document']['getRootNames']()){const _0x498424=this['editor']['model']['document']['getRoot'](_0x33c4e5),_0x44ba81=this['editor']['editing']['view']['document']['getRoot'](_0x33c4e5);if(_0x44ba81){const _0x3eb6c0=_0x498424['getAttribute']('revisionHistoryAttachChange');if(_0x2cdc6f['removeAttribute']('data-change-id',_0x44ba81),_0x2cdc6f['removeClass']('ck-revision-history-root-add',_0x44ba81),_0x2cdc6f['removeClass']('ck-revision-history-root-remove',_0x44ba81),_0x2cdc6f['removeClass']('ck-revision-history-root--active',_0x44ba81),_0x3eb6c0){const _0x27ff19=this['_getChangeFromId'](_0x3eb6c0);if(!_0x27ff19)return null;_0x2cdc6f['setAttribute']('data-change-id',_0x3eb6c0,_0x44ba81),_0x2cdc6f['addClass']('ck-revision-history-root-'+_0x27ff19['type'],_0x44ba81),this['activeChange']==_0x27ff19&&_0x2cdc6f['addClass']('ck-revision-history-root--active',_0x44ba81);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3d1d96=>'revision-comment:'+_0x3d1d96,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x47e48c=>'revision-suggestion:'+_0x47e48c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x56a6eb=>({'name':'suggestion:'+_0x56a6eb,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x41100b=>{const _0x110d70=_0x41100b['markerName']['split'](':')[0x1];return'insertion'!=_0x110d70&&'deletion'!=_0x110d70?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x110d70]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x125a62,_0x1ad56f,_0x370b66)=>{const _0x3cd19a=_0x370b66['mapper']['markerNameToElements'](_0x1ad56f['markerName']);if(_0x3cd19a){for(const _0x522dc3 of _0x3cd19a)_0x522dc3['is']('uiElement')&&(_0x370b66['mapper']['unbindElementFromMarkerName'](_0x522dc3,_0x1ad56f['markerName']),_0x370b66['writer']['remove'](_0x522dc3));}},{'priority':'high'});}['_getChangeFromId'](_0x1feca5){return this['_changeIdToChange']['get'](_0x1feca5);}['_getViewForChange'](_0x2b6d0d){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x2b6d0d),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x263279,_0x31b2e6,_0x2864b3,_0x3f1072)=>{_0x3f1072&&this['_balloon']['remove'](_0x3f1072),_0x2864b3&&(this['_balloon']['add']({'view':_0x2864b3,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2a0cf4=this['editor']['editing'],_0x295ca2=this['_getChangeFromId'](_0x2864b3['changeId']);let _0x2c3f76;if(_0x295ca2['data']['isOnRoot']){const _0x416cff=_0x2a0cf4['view']['getDomRoot'](_0x295ca2['rootName']);_0x2c3f76=Array['from'](_0x416cff['getClientRects']());}else{const _0x3c6876=this['editor']['model']['markers']['get']('revision:'+_0x2864b3['changeId']);_0x2c3f76=Array['from'](_0x2a0cf4['mapper']['markerNameToElements'](_0x3c6876['name']))['map'](_0x2eaa93=>_0x2a0cf4['view']['domConverter']['mapViewToDom'](_0x2eaa93))['map'](_0x4c5898=>Array['from'](_0x4c5898['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2c3f76[0x0];return _0x2c3f76['find'](_0x4e6b3e=>_0x4e6b3e['top']-0x3<=this['_activeViewTarget']['y']&&_0x4e6b3e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4e6b3e['left']-0x3<=this['_activeViewTarget']['x']&&_0x4e6b3e['right']+0x3>=this['_activeViewTarget']['x'])||_0x2c3f76[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3c840c,_0x219046,_0x4f3db5,_0x530d28)=>{this['activeView']=_0x4f3db5?this['_getViewForChange'](_0x4f3db5):null,this['editor']['model']['change'](()=>{const _0x38a3d8=this['editor']['editing'];_0x530d28&&(_0x530d28['data']['isOnRoot']?_0x38a3d8['view']['change'](_0x30d152=>{_0x30d152['removeClass']('ck-revision-history-root--active',_0x38a3d8['view']['document']['getRoot'](_0x530d28['rootName']));}):_0x38a3d8['reconvertMarker']('revision:'+_0x530d28['id'])),_0x4f3db5&&(_0x4f3db5['data']['isOnRoot']?_0x38a3d8['view']['change'](_0x5de1db=>{_0x5de1db['addClass']('ck-revision-history-root--active',_0x38a3d8['view']['document']['getRoot'](_0x4f3db5['rootName']));}):_0x38a3d8['reconvertMarker']('revision:'+_0x4f3db5['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4d4257,_0x1d79c0)=>{if(this['activeChange'])return;const _0x59aff6=this['_findChangeIdFromDomTarget'](_0x1d79c0['target']),_0x4ebefc=this['_changeIdToChange']['get'](_0x59aff6);_0x4ebefc?(this['_activeViewTarget']={'x':_0x1d79c0['domEvent']['x'],'y':_0x1d79c0['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4ebefc)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x5ec8be,_0x46dbbf)=>{const _0x1d06f0=this['_findChangeIdFromDomTarget'](_0x46dbbf['target']),_0x138a11=this['_changeIdToChange']['get'](_0x1d06f0);_0x138a11?(this['_activeViewTarget']={'x':_0x46dbbf['domEvent']['x'],'y':_0x46dbbf['domEvent']['y']},_0x138a11===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x138a11):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x6b3850){do{const _0x4d8a25=_0x6b3850['getAttribute']('data-change-id');if(_0x4d8a25)return _0x4d8a25;_0x6b3850=_0x6b3850['parent'];}while(_0x6b3850);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x344754=>{for(const _0x2ea1a9 of this['editor']['model']['markers'])_0x344754['removeMarker'](_0x2ea1a9);});}}function X(_0x5ab94b,_0x25f0d0){return(_0x5513c9,_0x3ec6ac,_0x45c787)=>{if(!_0x45c787['consumable']['test'](_0x3ec6ac['markerRange'],_0x5513c9['name']))return;const _0x263011=_0x3ec6ac['markerRange']['getWalker'](),_0x321c72=_0x3ec6ac['markerRange']['start'],_0x525b94=_0x5ab94b['model']['schema'];let _0x399f4f=null,_0x40c36b=null,_0x22d684=!0x1,_0x283a53=!0x1;for(const _0x51cf53 of _0x263011){const _0x250366=_0x51cf53['item'];_0x22d684=_0x22d684||_0x525b94['isContent'](_0x250366);const _0x187e70=_0x45c787['mapper']['toViewElement'](_0x250366);if(_0x187e70&&_0x187e70['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x51cf53['type']&&(_0x525b94['isBlock'](_0x250366)&&!_0x525b94['isLimit'](_0x250366)&&(_0x250366['nextSibling']||_0x321c72['isAtEnd']?_0x399f4f&&_0x399f4f['parent']==_0x250366||(_0x399f4f=_0x250366,_0xed9350(_0x51cf53['previousPosition']),_0x283a53=!0x0):_0x40c36b=_0x40c36b||_0x51cf53['previousPosition']));}function _0xed9350(_0x8bdde0){const _0x204dcf=_0x45c787['mapper']['toViewPosition'](_0x8bdde0),_0x13900e=_0x45c787['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x25f0d0});_0x45c787['writer']['insert'](_0x204dcf,_0x13900e),_0x45c787['mapper']['bindElementToMarker'](_0x13900e,_0x3ec6ac['markerName']);}_0x22d684||_0x283a53||!_0x40c36b||_0xed9350(_0x40c36b);};}class mt extends _0x31ac0e{constructor(_0x143e68){super(_0x143e68);const _0x5ea90c=_0x143e68['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x5ea90c,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5ea90c,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2ae790=this['editor'],_0xcb3fc=_0x2ae790['plugins']['get'](m),_0x234316=_0xcb3fc['isReady']?_0xcb3fc['diff']['newRevisionId']:null;_0x2ae790['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x234316);}['refresh'](){const {isReady:_0x2a271a,isEnabled:_0x2b71f7,repository:_0x5ecb24,diff:_0x148413}=this['editor']['plugins']['get'](m),_0x3610f2=_0x148413&&_0x5ecb24['getLaterVisibleRevision'](_0x148413['newRevisionId']);this['isEnabled']=_0x2a271a&&_0x2b71f7&&Boolean(_0x3610f2);}}class wt extends _0x31ac0e{['_step'];constructor(_0x254c83,{direction:_0x1d35bd}){super(_0x254c83);const _0x5d4510=_0x254c83['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0x1d35bd?0x1:-0x1,this['listenTo'](_0x5d4510,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5d4510,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5d4510,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x96230e=this['editor'],_0xc5cd76=_0x96230e['plugins']['get'](m),{isNavigationMode:_0x5b0382,currentChangeNumber:_0x4d7912}=_0xc5cd76;let _0x21de77;if(_0xc5cd76['activeChange']=_0x5b0382?_0xc5cd76['diff']['changes']['get'](_0x4d7912+this['_step']):_0xc5cd76['diff']['changes']['first'],_0xc5cd76['activeChange']['data']['isOnRoot'])_0x21de77=_0x96230e['editing']['view']['getDomRoot'](_0xc5cd76['activeChange']['rootName']);else{const _0x4d0c1c=_0x96230e['model']['markers']['get']('revision:'+_0xc5cd76['activeChange']['id']);_0x21de77=_0x585a8a(_0x96230e['editing'],_0x4d0c1c);}_0x3d77b2({'target':_0x21de77,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0xf64d0,currentChangeNumber:_0x5eab94,numberOfChanges:_0x446f5c,isReady:_0x59d3fe,isEnabled:_0x1975c6}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0x1975c6&&_0x59d3fe&&_0x446f5c)&&(!_0xf64d0||(0x1===this['_step']?_0x5eab94<_0x446f5c-0x1:_0x5eab94>0x0));}}class _i extends ts{constructor(_0x50b68e){super(_0x50b68e);const _0x249b38=this['bindTemplate'],_0x1ad2f1=new te(_0x50b68e),_0x4616b4=new te(_0x50b68e);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',(_0x41d366,_0x16d73b)=>_0x41d366&&_0x16d73b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x491d0a,_0x3e60fb,_0x1ba0c5,_0xbf6e47)=>{if(!_0x491d0a)return g(_0x50b68e,'Loading...');if(!_0x1ba0c5)return g(_0x50b68e,'No\x20changes');const _0x5888d8=g(_0x50b68e,'NUMBER_OF_CHANGES',_0x1ba0c5);return _0xbf6e47?g(_0x50b68e,'X_OF_Y_CHANGES',[_0x3e60fb+0x1,_0x1ba0c5]):_0x5888d8;}),_0x1ad2f1['set']({'label':g(_0x50b68e,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x1ae082}),_0x4616b4['set']({'label':g(_0x50b68e,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x2e8c11}),_0x1ad2f1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4616b4['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ad2f1['on']('execute',()=>this['fire']('execute','backward')),_0x4616b4['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',_0x249b38['if']('_isStatusLabelVisible','ck-hidden',_0x2caaa6=>!_0x2caaa6)]},'children':[{'text':_0x249b38['to']('isNavigationMode',_0x2877e3=>_0x2877e3?g(_0x50b68e,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x50b68e,'Total')+':\x20')}]},{'text':_0x249b38['to']('_statusText')}]},new _0x28d5aa(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ad2f1,_0x4616b4]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x5f2429{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x37465e=this['editor']['editing']['view'];_0x37465e['change'](_0xfc7e07=>{for(const _0x34838d of _0x37465e['document']['roots'])_0xfc7e07['addClass'](le,_0x34838d);});}['hide'](){const _0xeb98c8=this['editor']['editing']['view'];_0xeb98c8['change'](_0x108de5=>{for(const _0x13d8ef of _0xeb98c8['document']['roots'])_0x108de5['removeClass'](le,_0x13d8ef);});}}class R extends _0x5f2429{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,ge];}['init'](){const _0x2e275d=this['editor'],_0x14278a=_0x2e275d['plugins']['get'](m),_0x4458fc=_0x2e275d['plugins']['get'](ge);_0x2e275d['ui']['componentFactory']['add']('exitToEditing',_0x2d265e=>{const _0x572190=new te(_0x2d265e);return _0x572190['set']({'label':g(_0x2d265e,'Back\x20to\x20editing'),'icon':_0x2dbb84,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x572190,'execute',()=>{_0x2e275d['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x572190;}),_0x2e275d['ui']['componentFactory']['add']('restoreRevision',_0x1debb9=>{const _0x3a567f=new te(_0x1debb9);return _0x3a567f['set']({'label':g(_0x1debb9,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3a567f['bind']('isEnabled')['to'](_0x2e275d['commands']['get']('restoreRevision')),this['listenTo'](_0x3a567f,'execute',()=>_0x2e275d['execute']('restoreRevision')),_0x3a567f;}),_0x2e275d['ui']['componentFactory']['add']('changesNavigation',_0x172baf=>{const _0x57a633=new _i(_0x172baf),_0x2f9ebf=_0x2e275d['commands']['get']('showPreviousChange'),_0x44603e=_0x2e275d['commands']['get']('showNextChange');return _0x57a633['bind']('isBackwardNavigationEnabled')['to'](_0x2f9ebf,'isEnabled'),_0x57a633['bind']('isForwardNavigationEnabled')['to'](_0x44603e,'isEnabled'),_0x57a633['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x14278a),this['listenTo'](_0x57a633,'execute',(_0x215bd1,_0x35c0eb)=>{_0x2e275d['execute']('forward'===_0x35c0eb?'showNextChange':'showPreviousChange');}),_0x57a633;}),_0x4458fc['show'](),_0x14278a['on']('change:isReady',(_0x218ac2,_0x5785d9,_0x567dc7)=>{_0x567dc7?_0x4458fc['hide']():_0x4458fc['show']();});}}class at extends _0x49fa80{['_resizeObserver']=null;constructor(_0x3cee07,_0x4877e4){super(_0x3cee07,_0x4877e4);const _0x11377b=this['bindTemplate'];this['set']({'label':g(_0x3cee07,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x3cee07,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x11377b['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new nt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x48c7de=this['fieldView']['element'];this['_tooltipString']=_0x48c7de['scrollWidth']>_0x48c7de['clientWidth']&&_0x48c7de['value']||'';}}class si extends ts{constructor(_0x5295c7,_0x4389ce,_0x5349aa){super(_0x5295c7);const _0xe35e53=new _0x1ed181();_0xe35e53['set']({'content':_0x4ad50a,'viewBox':'0\x200\x2011\x2010'});const _0x1ed4c7=['ck','ck-revision-history-sidebar__revision-author'];_0x5349aa&&_0x1ed4c7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x43e172=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x5295c7,_0x5349aa?'Revision\x20creator':'Revision\x20author')},'children':[_0xe35e53,_0x4389ce['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x1ed4c7},'children':_0x43e172});}}function oi(_0x33cbc0,_0x55a477){const _0x3ed4f5=_0x33cbc0['bindTemplate'],_0x5d6059=_0x33cbc0['locale'],_0x1f0dfb=_0x3b8770(_0x5d6059);_0x1f0dfb['panelPosition']='sw';const _0x14be61=function(_0x1c5a2c,_0x175ae9){const _0x301c0a=function(_0x114dc2,_0x3fa262){const _0x529edf=_0x114dc2['locale'],_0x4b4aca={'Compare\x20against\x20selected':g(_0x529edf,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x529edf,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x529edf,'Restore\x20this\x20revision')};return _0x3fa262['map'](_0x103d40=>{const _0x324f7a=_0x4b4aca[_0x103d40['name']];return _0x324f7a&&_0x324f7a!==_0x103d40['name']&&(_0x103d40['name']=_0x324f7a),_0x103d40;});}(_0x1c5a2c,_0x175ae9),_0x4be94b=new _0x47a699();for(const _0x55500f of _0x301c0a){const _0x54ec1a={'type':'button','model':new to({'label':_0x55500f['name'],'class':_0x55500f['class'],'withText':!0x0,'role':'menuitem','_action':_0x55500f['action']})};_0x54ec1a['model']['bind']('isEnabled')['to'](_0x1c5a2c,'isActionsDropdownOpen',_0x5a05d3=>'function'!=typeof _0x55500f['isEnabled']||(!_0x5a05d3||_0x55500f['isEnabled'](_0x1c5a2c))),_0x4be94b['add'](_0x54ec1a);}return _0x4be94b;}(_0x33cbc0,_0x55a477);return _0x33cbc0['bind']('isActionsDropdownOpen')['to'](_0x1f0dfb,'isOpen'),_0x1f0dfb['buttonView']['set']({'label':g(_0x5d6059,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x265579}),_0x1f0dfb['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3ed4f5['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3ed4f5['to'](_0x3e68fd=>_0x3e68fd['stopPropagation']())}}),_0x1f0dfb['on']('execute',_0xa42f6e=>{_0x33cbc0['isReady']&&'function'==typeof _0xa42f6e['source']['_action']&&_0xa42f6e['source']['_action'](_0x33cbc0);}),_0x325e90(_0x1f0dfb,_0x14be61,{'role':'menu'}),_0x1f0dfb['listenTo'](_0x33cbc0,'change:isActionsDropdownOpen',(_0x2eed79,_0x3c8701,_0x338ece)=>{if(_0x338ece)for(const _0x5ba451 of _0x1f0dfb['listView']['items']){const _0x44c370=_0x5ba451['children']['first'],_0x5a6872=_0x55a477['find'](_0x2984b2=>_0x2984b2['action']===_0x44c370['_action'])['isVisible'];_0x5ba451['isVisible']=void 0x0===_0x5a6872||_0x5a6872(_0x33cbc0);}}),_0x1f0dfb;}class hi extends/* #__PURE__ -- @preserve */
26
- ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4cd654,_0x139c01,_0x3f8a89,_0x1b6e35){super(_0x4cd654);const _0xf0586=this['bindTemplate'],_0x38cff9=function(_0x52b2b2,_0x590b14){const _0x3560a0=Array['from'](_0x590b14['authors'])['filter'](_0x333595=>_0x333595!=_0x590b14['creator']);return _0x590b14['creator']&&_0x3560a0['unshift'](_0x590b14['creator']),_0x3560a0['map'](_0x4ec801=>new si(_0x52b2b2,_0x4ec801,_0x4ec801==_0x590b14['creator']));}(_0x4cd654,_0x139c01);this['id']=_0x139c01['id'],this['_revision']=_0x139c01,this['_requireRevisionName']=_0x1b6e35,this['bind']('name','createdAt')['to'](_0x139c01),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x27474f=>{return _0x97a10d=_0x4cd654['uiLanguage'],(_0x2d600e=_0x27474f)['toLocaleDateString'](_0x97a10d,{'month':'long','day':'numeric'})+',\x20'+_0x2d600e['toLocaleTimeString'](_0x97a10d,{'hour':'numeric','minute':'numeric'});var _0x97a10d,_0x2d600e;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new at(_0x4cd654,_0x32ab91),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2d7880=>_0x2d7880||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x57fbbf,_0x799385)=>_0x57fbbf&&_0x799385),this['revisionActionsView']=_0x3f8a89&&_0x3f8a89['length']?oi(this,_0x3f8a89):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0xf0586['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0xf0586['if']('isEnabled','ck-disabled',_0x30cb3c=>!_0x30cb3c),_0xf0586['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0xf0586['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0xf0586['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':_0xf0586['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':_0x38cff9}]},this['revisionActionsView']],'on':{'click':_0xf0586['to'](_0x8bacb4=>{_0x8bacb4['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x4fc3cd=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x4fc3cd,'change',()=>{this['_requireRevisionName']&&!_0x4fc3cd['value']||this['fire']('setName',{'id':this['id'],'name':_0x4fc3cd['value']}),_0x4fc3cd['value']||(_0x4fc3cd['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ai(_0x553326,_0x58b336){const _0xaca013=_0xe16333['fromJSDate'](_0x553326)['setLocale'](_0x58b336),_0x58186a=_0xe16333['local'](),_0x2ce0fa=_0x58186a['minus']({'days':0x1})['startOf']('day');let _0x1dbf80,_0x3ebad9;return _0xaca013['hasSame'](_0x58186a,'day')?(_0x1dbf80=_0xaca013['startOf']('day')['toJSDate'](),_0x3ebad9=_0xaca013['toRelativeCalendar']()):_0xaca013['hasSame'](_0x2ce0fa,'day')?(_0x1dbf80=_0x2ce0fa['toJSDate'](),_0x3ebad9=_0xaca013['toRelativeCalendar']()):_0xaca013['hasSame'](_0x58186a,'week')?(_0x1dbf80=_0xaca013['startOf']('week')['toJSDate'](),_0x3ebad9=_0xaca013['weekdayLong']||''):_0xaca013['hasSame'](_0x58186a,'year')?(_0x1dbf80=_0xaca013['startOf']('month')['toJSDate'](),_0x3ebad9=_0xaca013['monthLong']||''):(_0x1dbf80=_0xaca013['startOf']('year')['toJSDate'](),_0x3ebad9=String(_0xaca013['year'])),{'startDate':_0x1dbf80,'localizedPeriodName':_0x3ebad9};}class di extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x33ab11,_0x563f83,_0x2986db,_0x43257d){super(_0x33ab11);const _0x5bf4cc=ai(_0x563f83,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x563f83,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x2986db,this['_requireRevisionName']=_0x43257d,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':_0x5bf4cc}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0xb454da){const _0x10c8d0=new hi(this['locale'],_0xb454da,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x10c8d0);}['removeRevision'](_0x2333c7){const _0xee206a=this['revisionViews']['find'](_0x5ae2bc=>_0x5ae2bc['id']===_0x2333c7['id']);this['revisionViews']['remove'](_0xee206a);}}class as extends ts{constructor(_0x273826){super(_0x273826);const _0x4c4613=new _0x1ed181();_0x4c4613['content']=_0x3811bd,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4c4613,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x273826,'Revision\x20history')]}]});}}class ni extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x16848c,_0x12684c,_0x52f925,_0x530c69){super(_0x16848c);const _0x593b4c=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x12684c,this['_revisionActions']=_0x52f925,this['_requireRevisionName']=_0x530c69,this['on']('select',(_0x284aea,_0x2d7d29)=>{this['fire']('revisionSelected',_0x2d7d29);}),this['on']('setName',(_0x2f04b5,_0x140df1)=>{this['fire']('revisionSetName',_0x140df1);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x16848c),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x593b4c['if']('isEnabled','ck-disabled',_0x4be774=>!_0x4be774)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1f0480 of this['_revisions'])this['_addRevision'](_0x1f0480);this['_revisions']['on']('add',(_0x1d8cde,_0x47f2fe)=>{this['_addRevision'](_0x47f2fe);}),this['_revisions']['on']('remove',(_0x57efe5,_0x5f39f2)=>{this['_removeRevision'](_0x5f39f2);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x2af5b5=>_0x2af5b5['revisionViews']['map'](_0x41bd5d=>_0x41bd5d))['flat']();}['selectRevision'](_0x4c116d){for(const _0x175543 of this['revisionViews'])_0x4c116d&&_0x4c116d['id']===_0x175543['id']?_0x175543['select']():_0x175543['deselect']();}['highlightRevisions'](_0xdf2cf5){for(const _0x50cd2c of this['revisionViews'])_0xdf2cf5['some'](({id:_0x4ee710})=>_0x4ee710===_0x50cd2c['id'])?_0x50cd2c['highlight']():_0x50cd2c['unhighlight']();}['_addRevision'](_0x1663df){const _0x1675ca=ai(_0x1663df['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x368133=this['timePeriodViews']['get'](0x0);_0x368133&&_0x368133['startDate']['getTime']()===_0x1675ca['getTime']()||(_0x368133=new di(this['locale'],_0x1675ca,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x368133)),_0x368133['addRevision'](_0x1663df);}['_removeRevision'](_0x158cc5){const _0x2096cd=ai(_0x158cc5['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x2096cd)['removeRevision'](_0x158cc5);}['_getTimePeriodViewByStartDate'](_0x38be2b){return this['timePeriodViews']['find'](_0x1301b4=>_0x1301b4['startDate']['getTime']()===_0x38be2b['getTime']());}}class d extends _0x5f2429{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x220d32,uid as _0x48e51d,Collection as _0x1e4ab6,logWarning as _0x1499b0,FocusTracker as _0x28705a,KeystrokeHandler as _0x447715,scrollViewportToShowTarget as _0x260bfa,ResizeObserver as at,ElementReplacer as ot,CKEditorError as _0x540ac1}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x9b4a86,set as _0x31f0b2,unset as _0x36c847,isEqual as _0x45fe94}from'es-toolkit/compat';import{Plugin as _0x408cb2,PendingActions as _0x1ddb70,Command as _0x118e1a,ElementApiMixin as _0x540714,Editor as _0x5e69a8}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x53f292,getMarkerDomElement as _0x31274c,ConfirmMixin as _0x1dfd9d,sanitizeEditorConfig as _0x53a116}from'ckeditor5-collaboration/dist/index.js';import{ViewContainerElement as _0x64bca,ViewAttributeElement as _0x314a3f,ViewEmptyElement as _0x2afb29,ViewRawElement as _0x1d18e4,ViewUIElement as _0x4ecb21,ViewDocumentFragment as _0x2392cc,ViewText as _0x42fa9a,ViewElement as _0xe23e7a,Element as ut,Range as ft,Position as vt,DocumentFragment as gt,Text as mt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x27f22e,IconChevronUp as _0x581ca3,IconChevronDown as _0x1389a3,IconUndo as _0x1c97b5,IconUser as _0x6ff887,IconThreeVerticalDots as _0x53e952}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x58bc5e,injectCssTransitionDisabler as ts,submitHandler as _0x2a9be1,LabeledFieldView as nt,createLabeledInputText as ti,createDropdown as _0x5b3759,ListView as _0x428bf3,ListItemView as te,ButtonView as _0x389322,MenuBarMenuView as _0x453f55,MenuBarMenuListView as _0x4ce8a1,MenuBarMenuListItemView as _0x4ff6ce,MenuBarMenuListItemButtonView as _0x146077,ContextualBalloon as _0x29946a,ToolbarSeparatorView as _0x37b8f2,IconView as _0x190534,addListToDropdown as _0x107ab3,ViewModel as to,EditorUI as st,normalizeToolbarConfig as et,BoxedEditorUIView as rt,StickyPanelView as ht,ToolbarView as dt,InlineEditableUIView as ct}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x47501c}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
+ _0x220d32(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3f3a04){super(),this['id']=_0x3f3a04['id']||_0x48e51d(),this['creator']=_0x3f3a04['creator']||null,this['authors']=_0x3f3a04['authors']||[],this['diffData']=_0x3f3a04['diffData']||null,this['toVersion']=_0x3f3a04['toVersion']||0x0,this['fromVersion']=_0x3f3a04['fromVersion']||0x0,this['set']('name',_0x3f3a04['name']||''),this['set']('createdAt',_0x3f3a04['createdAt']||new Date()),this['set']('attributes',_0x3f3a04['attributes']||{});}['setName'](_0x501ed8){this['_update']({'name':_0x501ed8});}['setAttribute'](_0xf2a97e,_0x366dfe){const _0x44f306=_0x9b4a86(this['attributes']);_0x31f0b2(_0x44f306,_0xf2a97e,_0x366dfe),this['_update']({'attributes':_0x44f306});}['removeAttribute'](_0x3f6d56){const _0x14c617=_0x9b4a86(this['attributes']);_0x36c847(_0x14c617,_0x3f6d56),this['_update']({'attributes':_0x14c617});}['_update'](_0x3c9702,_0x4ea57a=!0x1){let _0x11a074=!0x1;const _0x1677e3={'id':this['id']},_0x4741c6=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x127f1c of _0x4741c6){const _0x35689c=_0x3c9702[_0x127f1c];void 0x0!==_0x35689c&&_0x35689c!==this[_0x127f1c]&&(this[_0x127f1c]=_0x35689c,_0x1677e3[_0x127f1c]=_0x35689c,_0x11a074=!0x0);}_0x11a074&&(_0x1677e3['authors']&&(_0x1677e3['authorsIds']=_0x1677e3['authors']['map'](_0x2cc746=>_0x2cc746['id']),delete _0x1677e3['authors']),this['fire']('_update',_0x1677e3,_0x4ea57a));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3c027c=>_0x3c027c['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class I extends _0x408cb2{['_revisions'];static get['requires'](){return[_0x53f292];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x47604e){super(_0x47604e),this['_revisions']=new _0x1e4ab6();}['afterInit'](){!async function(_0x1240dc){const _0x52bff3=_0x483709([0x6f,0x4a,0x74,0x51,0x46,0x4d,0x77,0x35,0x30,0x66,0x39,0x37,0x72,0x52,0x63,0x53,0x4e,0x6b,0x70,0x44,0x32,0x54,0x68,0x6e,0x33,0x49,0x55,0x4f,0x78,0x31,0x61,0x58,0x56,0x36,0x6a,0x73,0x57,0x5a,0x6c,0x4b,0x65,0x4c,0x42,0x59,0x43,0x64,0x71,0x67,0x41,0x75,0x50,0x47,0x45,0x34,0x7a,0x62,0x79,0x69,0x6d,0x48,0x38,0x76]),_0x309bbe=0xeb829,_0x377697=0x49e53daf,_0xd8473a=0x49e2583f^_0x377697,_0x33e560=window[_0x483709([0x44,0x61,0x74,0x65])][_0x483709([0x6e,0x6f,0x77])](),_0x369ff0=_0x1240dc[_0x483709([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x334234=new window[(_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c4b49=>{_0x369ff0[_0x483709([0x6f,0x6e,0x63,0x65])](_0x483709([0x72,0x65,0x61,0x64,0x79]),_0x3c4b49);}),_0x27b437={[_0x483709([0x6b,0x74,0x79])]:_0x483709([0x45,0x43]),[_0x483709([0x75,0x73,0x65])]:_0x483709([0x73,0x69,0x67]),[_0x483709([0x63,0x72,0x76])]:_0x483709([0x50,0x2d,0x32,0x35,0x36]),[_0x483709([0x78])]:_0x483709([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]),[_0x483709([0x79])]:_0x483709([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]),[_0x483709([0x61,0x6c,0x67])]:_0x483709([0x45,0x53,0x32,0x35,0x36])},_0x3d8856=_0x369ff0[_0x483709([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x483709([0x67,0x65,0x74])](_0x483709([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x60251d(){let _0x26d47d,_0x5b858e=null,_0x33153a=null;try{if(_0x3d8856==_0x483709([0x47,0x50,0x4c]))return _0x483709([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x26d47d=_0x1218f0(),!_0x26d47d)return _0x483709([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x26d47d[_0x483709([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x33153a=_0x3d1ea7(_0x26d47d[_0x483709([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x26d47d[_0x483709([0x6a,0x74,0x69])])),await _0x4929d7()?_0x510dfc()?_0x4b4583()?_0x483709([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x22c3f5()?(_0x26d47d[_0x483709([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x483709([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b858e=_0x29b399(_0x483709([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x26d47d[_0x483709([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x483709([0x74,0x72,0x69,0x61,0x6c])&&(_0x5b858e=_0x29b399(_0x483709([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1dcf10()):_0x483709([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x483709([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x483709([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x588c2a){return _0x483709([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4b4583(){const _0x275d64=[_0x483709([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x483709([0x74,0x72,0x69,0x61,0x6c])][_0x483709([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x26d47d[_0x483709([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x33e560/0x3e8:0xe10*_0xd8473a;return _0x26d47d[_0x483709([0x65,0x78,0x70])]<_0x275d64;}function _0x510dfc(){const _0x5d1d5c=_0x26d47d[_0x483709([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x5d1d5c)return!0x1;if(_0x5d1d5c[_0x483709([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483709([0x2a])))return!0x0;if(_0x5d1d5c[_0x483709([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483709([0x52,0x48])))return!0x0;if(_0x5d1d5c[_0x483709([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483709([0x52,0x52,0x48]))){if(_0x5b9735())return!0x0;if(_0x268b93()||_0x59ade3())return!0x0;}return!0x1;}function _0x22c3f5(){const _0xc59d10=_0x26d47d[_0x483709([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xc59d10||0x0==_0xc59d10[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d6a37}=new URL(window[_0x483709([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xc59d10[_0x483709([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d6a37))return!0x0;const _0x547f44=_0x2d6a37[_0x483709([0x73,0x70,0x6c,0x69,0x74])](_0x483709([0x2e]));return _0xc59d10[_0x483709([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1afde7=>_0x1afde7[_0x483709([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x483709([0x2a])))[_0x483709([0x6d,0x61,0x70])](_0x5ddca4=>_0x5ddca4[_0x483709([0x73,0x70,0x6c,0x69,0x74])](_0x483709([0x2e])))[_0x483709([0x73,0x6f,0x6d,0x65])](_0x5249d3=>_0x547f44[_0x483709([0x65,0x76,0x65,0x72,0x79])]((_0x5bb74d,_0x590bad)=>_0x5249d3[_0x590bad]===_0x5bb74d||_0x5249d3[_0x590bad]===_0x483709([0x2a])));}function _0x1dcf10(){return _0x5b858e&&_0x33153a?new window[(_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x165b08,_0x20b7cc)=>{_0x5b858e[_0x483709([0x74,0x68,0x65,0x6e])](_0x165b08,_0x20b7cc),_0x33153a[_0x483709([0x74,0x68,0x65,0x6e])](_0x406f9c=>{_0x406f9c!=_0x483709([0x56,0x61,0x6c,0x69,0x64])&&_0x165b08(_0x406f9c);},_0x20b7cc);}):_0x5b858e||_0x33153a||_0x483709([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d1ea7(_0x570820,_0x3a0ee0){return new window[(_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4566d0=>{if(_0x4b3b43())return _0x4566d0(_0x483709([0x56,0x61,0x6c,0x69,0x64]));_0x28d407(),_0x369ff0[_0x483709([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x483709([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x179656=!0x1;const _0x4db52b=_0x48e51d();function _0x5689f4(_0x339ac1){return!!_0x339ac1&&(typeof _0x339ac1===_0x483709([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x339ac1===_0x483709([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x339ac1[_0x483709([0x74,0x68,0x65,0x6e])]===_0x483709([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x339ac1[_0x483709([0x63,0x61,0x74,0x63,0x68])]===_0x483709([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x571ca7(_0x3fa97c){_0x2c178d(_0x3fa97c)[_0x483709([0x74,0x68,0x65,0x6e])](_0x425e03=>{if(!_0x425e03||_0x425e03[_0x483709([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x483709([0x6f,0x6b]))return _0x483709([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17bc17(_0x51b6d4(_0x4db52b+_0x3a0ee0))!=_0x425e03[_0x483709([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x483709([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x483709([0x56,0x61,0x6c,0x69,0x64]);})[_0x483709([0x74,0x68,0x65,0x6e])](_0x281b63=>(_0x30c6fc(),_0x281b63),()=>{const _0x331183=_0x2a12a5();return null==_0x331183?(_0x30c6fc(),_0x483709([0x56,0x61,0x6c,0x69,0x64])):_0x483709(_0x33e560-_0x331183>(0x6de9b9af^_0x377697)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x483709([0x74,0x68,0x65,0x6e])](_0x4566d0)[_0x483709([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4566d0(_0x483709([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a14e8=0x49d3d32f^_0x377697;function _0x30c6fc(){const _0x2fdf20=_0x483709([0x6c,0x6c,0x63,0x74,0x2d])+_0x17bc17(_0x51b6d4(_0x570820)),_0x1b54f8=_0x18d2dc(_0x17bc17(window[_0x483709([0x4d,0x61,0x74,0x68])][_0x483709([0x63,0x65,0x69,0x6c])](_0x33e560/_0x4a14e8)));window[_0x483709([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x483709([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2fdf20,_0x1b54f8);}function _0x2a12a5(){const _0xfda2d9=_0x483709([0x6c,0x6c,0x63,0x74,0x2d])+_0x17bc17(_0x51b6d4(_0x570820)),_0x5a1211=window[_0x483709([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x483709([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xfda2d9);return _0x5a1211?window[_0x483709([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x18d2dc(_0x5a1211),0x10)*_0x4a14e8:null;}function _0x2c178d(_0x369add){return new window[(_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cc5fb,_0x4873ed)=>{_0x369add[_0x483709([0x74,0x68,0x65,0x6e])](_0x4cc5fb,_0x4873ed),window[_0x483709([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4873ed,0x49e4e96f^_0x377697);});}}_0x369ff0[_0x483709([0x6f,0x6e])](_0x483709([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8a2a65,_0x51261e)=>{if(_0x51261e[0x0]!=_0x570820)return _0x4566d0(_0x483709([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x51261e[0x1]={..._0x51261e[0x1],[_0x483709([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4db52b};},{[_0x483709([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x483709([0x68,0x69,0x67,0x68])}),_0x369ff0[_0x483709([0x6f,0x6e])](_0x483709([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3bc32c=>{_0x5689f4(_0x3bc32c[_0x483709([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x179656=!0x0,_0x571ca7(_0x3bc32c[_0x483709([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x483709([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x483709([0x6c,0x6f,0x77])}),_0x334234[_0x483709([0x74,0x68,0x65,0x6e])](()=>{_0x179656||_0x4566d0(_0x483709([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4b3b43(){return _0x369ff0[_0x483709([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x483709([0x76,0x69,0x65,0x77])][_0x483709([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x483709([0x61,0x75,0x74,0x6f]);}function _0x28d407(){_0x369ff0[_0x483709([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x483709([0x76,0x69,0x65,0x77])][_0x483709([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x483709([0x61,0x75,0x74,0x6f]);}}function _0x29b399(_0x3bb189){const _0x3af873=[new window[(_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37b6db=>setTimeout(_0x37b6db,0x49ec0363^_0x377697)),_0x334234[_0x483709([0x74,0x68,0x65,0x6e])](()=>new window[(_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x233db5=>{const _0x1d5e90=0x49e53da8^_0x377697,_0x4d4999=_0x1240dc[_0x483709([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x7eaa4c(){_0x4d4999[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1d5e90&&_0x233db5();}_0x7eaa4c(),_0x4d4999[_0x483709([0x6f,0x6e])](_0x483709([0x61,0x64,0x64]),_0x7eaa4c);})),new window[(_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d9f98=>{function _0x13ef30(){for(const _0x3f8eec in window)if(window[_0x483709([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x483709([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3f8eec))&&window[_0x3f8eec]==_0x309bbe)return _0x3d9f98();_0x369ff0[_0x483709([0x73,0x74,0x61,0x74,0x65])]!=_0x483709([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x483709([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x13ef30,0x49e52e27^_0x377697);}_0x3f011f(_0x483709([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x13ef30();})];return window[_0x483709([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x483709([0x72,0x61,0x63,0x65])](_0x3af873)[_0x483709([0x74,0x68,0x65,0x6e])](()=>_0x3bb189);}async function _0x2f91ce(){if(await _0x334234,_0x3f011f(_0x483709([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x53c4c8=_0x1240dc[_0x483709([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x1e65c1=_0x1240dc[_0x483709([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])](_0x53c4c8[_0x483709([0x69,0x64])]),_0x2ba347=_0x5a6cc5(_0x483709([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2ba347[_0x483709([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x53c4c8['id'],_0x1e65c1?_0x1e65c1['id']:null,!0x0),_0x2ba347[_0x483709([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x483709([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2ba347[_0x483709([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2ba347[_0x483709([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x460896,void(_0x2ba347[_0x483709([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x460896);}if(_0x3f011f(_0x483709([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x41f452=_0x5a6cc5(_0x483709([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x41f452[_0x483709([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x483709([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x41f452[_0x483709([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x41f452[_0x483709([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x460896,_0x41f452[_0x483709([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x460896;}_0x369ff0[_0x483709([0x6d,0x6f,0x64,0x65,0x6c])][_0x483709([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x460896,_0x369ff0[_0x483709([0x6d,0x6f,0x64,0x65,0x6c])][_0x483709([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x460896,_0x369ff0[_0x483709([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x483709([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5b9735(){return _0x3f011f(_0x483709([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a6cc5(_0x483709([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x483709([0x73,0x74,0x61,0x74,0x65])]==_0x483709([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x268b93(){return _0x3f011f(_0x483709([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 _0x59ade3(){return _0x3f011f(_0x483709([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x4a6571(_0x1cac09){const _0x31b41f=_0x2cf6ad();_0x369ff0[_0x31b41f]=_0x483709([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])+_0x1cac09,_0x1cac09[_0x483709([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x483709([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x2cf6ad()]=_0x309bbe),_0x1cac09!=_0x483709([0x56,0x61,0x6c,0x69,0x64])&&_0x2f91ce();}function _0x2cf6ad(){const _0x1f8567=window[_0x483709([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x483709([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x483709([0x6e,0x6f,0x77])]())[_0x483709([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x483709([0x2e]),'');let _0x21fd9c=_0x483709([0x6f]);for(let _0x23bd7e=0x0;_0x23bd7e<_0x1f8567[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x23bd7e+=0x2){let _0x45123c=window[_0x483709([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f8567[_0x483709([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x23bd7e,_0x23bd7e+0x2));_0x45123c>=_0x52bff3[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45123c-=_0x52bff3[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x21fd9c+=_0x52bff3[_0x45123c];}return _0x21fd9c;}function _0x1218f0(){const _0x5059ea=_0x3d8856[_0x483709([0x73,0x70,0x6c,0x69,0x74])](_0x483709([0x2e]));if(0x3!=_0x5059ea[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x411086(_0x5059ea[0x1]);function _0x411086(_0x44e70d){const _0x375cf9=_0x386002(_0x44e70d);return _0x375cf9&&_0x361ba6()?_0x375cf9:null;function _0x361ba6(){const _0x21c87a=_0x375cf9[_0x483709([0x6a,0x74,0x69])],_0x184def=window[_0x483709([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c87a[_0x483709([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21c87a[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x18c939={..._0x375cf9,[_0x483709([0x6a,0x74,0x69])]:_0x21c87a[_0x483709([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21c87a[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x18c939[_0x483709([0x76,0x63])],_0x51b6d4(_0x18c939)==_0x184def;}}}async function _0x4929d7(){let _0x3d20bf=!0x0;try{const _0x55086b=_0x3d8856[_0x483709([0x73,0x70,0x6c,0x69,0x74])](_0x483709([0x2e])),[_0x18e24e,_0x476284,_0x298dae]=_0x55086b;return _0x5596fd(_0x18e24e),await _0x5a8e77(_0x18e24e,_0x476284,_0x298dae),_0x3d20bf;}catch(_0x4352e2){return!0x1;}function _0x5596fd(_0x214602){const _0x7374fa=_0x386002(_0x214602);_0x7374fa&&_0x7374fa[_0x483709([0x61,0x6c,0x67])]==_0x483709([0x45,0x53,0x32,0x35,0x36])||(_0x3d20bf=!0x1);}async function _0x5a8e77(_0x494f55,_0x1f32e7,_0x513025){const _0x527e35=window[_0x483709([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x483709([0x66,0x72,0x6f,0x6d])](_0x3e2132(_0x513025),_0x2beae4=>_0x2beae4[_0x483709([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4de135=new window[(_0x483709([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x483709([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x494f55+_0x483709([0x2e])+_0x1f32e7),_0x5af251=window[_0x483709([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x483709([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5af251)return;const _0x5a613c=await _0x5af251[_0x483709([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x483709([0x6a,0x77,0x6b]),_0x27b437,{[_0x483709([0x6e,0x61,0x6d,0x65])]:_0x483709([0x45,0x43,0x44,0x53,0x41]),[_0x483709([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x483709([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x483709([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5af251[_0x483709([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x483709([0x6e,0x61,0x6d,0x65])]:_0x483709([0x45,0x43,0x44,0x53,0x41]),[_0x483709([0x68,0x61,0x73,0x68])]:{[_0x483709([0x6e,0x61,0x6d,0x65])]:_0x483709([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5a613c,_0x527e35,_0x4de135)||(_0x3d20bf=!0x1);}}function _0x386002(_0xd1f54){return _0xd1f54[_0x483709([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x483709([0x65,0x79]))?JSON[_0x483709([0x70,0x61,0x72,0x73,0x65])](_0x3e2132(_0xd1f54)):null;}function _0x3e2132(_0x5cb642){return window[_0x483709([0x61,0x74,0x6f,0x62])](_0x5cb642[_0x483709([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x483709([0x2b]))[_0x483709([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x483709([0x2f])));}function _0x51b6d4(_0x3e796c){let _0x13d2f9=0x1505;function _0x5b4970(_0xd70607){for(let _0x174d4d=0x0;_0x174d4d<_0xd70607[_0x483709([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x174d4d++){const _0x152e8d=_0xd70607[_0x483709([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x174d4d);_0x13d2f9=(_0x13d2f9<<0x5)+_0x13d2f9+_0x152e8d,_0x13d2f9&=_0x13d2f9;}}function _0x5aa7ad(_0x324b1f){Array[_0x483709([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x324b1f)?_0x324b1f[_0x483709([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5aa7ad):_0x324b1f&&typeof _0x324b1f==_0x483709([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x483709([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x324b1f)[_0x483709([0x73,0x6f,0x72,0x74])]()[_0x483709([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x21101a,_0xb7bd9])=>{_0x5b4970(_0x21101a),_0x5aa7ad(_0xb7bd9);}):_0x5b4970(window[_0x483709([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x324b1f));}return _0x5aa7ad(_0x3e796c),_0x13d2f9>>>0x0;}function _0x17bc17(_0x2d19ff){return _0x2d19ff[_0x483709([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x483709([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x483709([0x30]));}function _0x18d2dc(_0x30a8f9){return _0x30a8f9[_0x483709([0x73,0x70,0x6c,0x69,0x74])]('')[_0x483709([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x483709([0x6a,0x6f,0x69,0x6e])]('');}function _0x3f011f(_0x1b5891){return _0x369ff0[_0x483709([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x483709([0x68,0x61,0x73])](_0x1b5891);}function _0x5a6cc5(_0x1d6a54){return _0x369ff0[_0x483709([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x483709([0x67,0x65,0x74])](_0x1d6a54);}function _0x460896(){}function _0x483709(_0x231860){return _0x231860['map'](_0x3d848e=>String['fromCharCode'](_0x3d848e))['join']('');}_0x4a6571(await _0x60251d());}(this);}['createRevision'](_0x171400){const _0x15f0cf=this['editor']['plugins']['get']('Users');return new h({'id':_0x171400['id'],'name':_0x171400['name'],'creator':_0x171400['creatorId']?_0x15f0cf['getUser'](_0x171400['creatorId']):null,'diffData':_0x171400['diffData']||_0x171400['data'],'authors':_0x171400['authorsIds']['map'](_0x154f16=>_0x15f0cf['getUser'](_0x154f16)),'createdAt':new Date(_0x171400['createdAt']),'attributes':_0x171400['attributes'],'fromVersion':_0x171400['fromVersion'],'toVersion':_0x171400['toVersion']});}['addRevision'](_0x294a6a,_0x54271b=0x0){this['_revisions']['add'](_0x294a6a,_0x54271b);}['getRevision'](_0x19baa7){return this['_revisions']['get'](_0x19baa7);}['getRevisions'](_0x10ee78={'toJSON':!0x1}){const _0x2ffc99=Array['from'](this['_revisions']);return _0x2ffc99['reverse'](),_0x10ee78['toJSON']?_0x2ffc99['map'](_0x243eca=>_0x243eca['toJSON']()):_0x2ffc99;}['getIndex'](_0x5757ee){return this['_revisions']['getIndex'](_0x5757ee);}['getEarlierVisibleRevision'](_0x24dffd){const [,_0x71ac6a]=this['getRevisionsIterator'](_0x24dffd,{'direction':'earlier'});return _0x71ac6a;}['getLaterVisibleRevision'](_0x15269e){const [,_0x5e4fc6]=this['getRevisionsIterator'](_0x15269e,{'direction':'later'});return _0x5e4fc6;}['getRevisionsInDiff'](_0x1d81c1){const _0x2850d8=[];for(const _0x1f99e1 of this['getRevisionsIterator'](_0x1d81c1['newRevisionId']))if(_0x2850d8['push'](_0x1f99e1),_0x1f99e1['id']===_0x1d81c1['oldRevisionId'])break;return _0x2850d8;}*['getRevisionsIterator'](_0x11a45e,{direction:_0x32f1fc='earlier',filter:_0x53b806=()=>!0x0}={}){const _0x3bfa62='earlier'===_0x32f1fc?0x1:-0x1;let _0x23db82=this['_revisions']['get'](_0x11a45e),_0x81ff68=this['getIndex'](_0x23db82);for(yield _0x23db82;_0x23db82;){if(_0x81ff68+=_0x3bfa62,_0x23db82=this['getRevision'](_0x81ff68),!_0x23db82)return;_0x53b806(_0x23db82)&&(yield _0x23db82);}}}class V extends _0x408cb2{static get['pluginName'](){return'RevisionHistoryUtils';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['_viewClassToTypeChar']=new Map([[_0x64bca,'c'],[_0x314a3f,'a'],[_0x2afb29,'e'],[_0x1d18e4,'r'],[_0x4ecb21,'u']]);['_typeCharToViewClass']=new Map([['c',_0x64bca],['a',_0x314a3f],['e',_0x2afb29],['r',_0x1d18e4],['u',_0x4ecb21]]);async['loadRevisionData'](_0x1c99c1,_0xc4082a){if(_0x1c99c1['diffData']||!_0xc4082a)return;const _0x5bd553=this['editor']['config']['get']('collaboration.channelId'),_0x4333c5=await _0xc4082a['getRevision']({'channelId':_0x5bd553,'revisionId':_0x1c99c1['id']});_0x1c99c1['diffData']=_0x4333c5['diffData'];}['getRevisionDocumentData'](_0x39461e){const _0x3588d8={};for(const _0x47e575 in _0x39461e['diffData']){if(_0x39461e['diffData'][_0x47e575]['attachChange']&&!_0x39461e['diffData'][_0x47e575]['attachChange']['isAttached'])continue;const _0x1fc49d=this['_removeRevisionMarkers'](JSON['parse'](_0x39461e['diffData'][_0x47e575]['insertions'])),_0x480c0b=this['editor']['editing']['view']['document'],_0x5d3988=new _0x2392cc(_0x480c0b,_0x1fc49d['map'](_0xfc9356=>this['_getViewFromDiffObj'](_0xfc9356,!0x1)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3588d8[_0x47e575]=this['editor']['data']['processor']['toData'](_0x5d3988),this['editor']['data']['processor']['useFillerType']('default');}return _0x3588d8;}['getRevisionRootsAttributes'](_0x12d013){const _0x2e56c2={};for(const _0x4c6d63 in _0x12d013['diffData'])_0x12d013['diffData'][_0x4c6d63]['attachChange']&&!_0x12d013['diffData'][_0x4c6d63]['attachChange']['isAttached']||(_0x2e56c2[_0x4c6d63]=_0x12d013['diffData'][_0x4c6d63]['attributesAfter']||{});return _0x2e56c2;}['_getTypeCharForViewElement'](_0x5622a3){return this['_viewClassToTypeChar']['get'](_0x5622a3['constructor']);}['_getViewFromDiffObj'](_0x1eb0d0,_0x1d64be){const _0x35f2ec=this['editor']['editing']['view']['document'];if('string'==typeof _0x1eb0d0)return new _0x42fa9a(_0x35f2ec,_0x1eb0d0);{let _0x4bf621,_0x256306;_0x256306='u'==_0x1eb0d0['type']||'r'==_0x1eb0d0['type']?[]:_0x1eb0d0['children']['map'](_0x549b9a=>this['_getViewFromDiffObj'](_0x549b9a,_0x1d64be));const _0x4ca56d=this['_typeCharToViewClass']['get'](_0x1eb0d0['type'])||_0xe23e7a,_0x54fe67=this['editor']['data']['htmlProcessor']['domConverter'];if(_0x4bf621=new _0x4ca56d(_0x35f2ec,_0x1eb0d0['name'],_0x1eb0d0['attributes'],_0x256306),'u'==_0x1eb0d0['type']&&_0x1eb0d0['children'][0x0]){const _0x52570e=_0x1eb0d0['children'][0x0];if(_0x4bf621['render']=function(_0x140acc){const _0x4947a1=_0x140acc['createElement']('div');return _0x4947a1['innerHTML']=_0x52570e,_0x4947a1['childNodes'][0x0];},_0x1d64be){const _0x23aff7=new _0x2392cc(_0x35f2ec);_0x23aff7['_appendChild'](_0x4bf621);const _0x5e0ed9=Array['from'](_0x54fe67['viewChildrenToDom'](_0x23aff7,{'bind':!0x1})),_0x41e3a4=_0x54fe67['domDocument']['createElement']('div');_0x41e3a4['append'](..._0x5e0ed9),_0x4bf621=Array['from'](_0x54fe67['domChildrenToView'](_0x41e3a4))[0x0];}}else{if('r'==_0x1eb0d0['type']&&_0x1eb0d0['children'][0x0]){const _0x4e183c=_0x1eb0d0['children'][0x0];if(_0x4bf621['render']=function(_0x5c0d6d){_0x5c0d6d['innerHTML']=_0x4e183c;},_0x1d64be){const _0x4e185b=new _0x2392cc(_0x35f2ec);_0x4e185b['_appendChild'](_0x4bf621);const _0x5d033f=Array['from'](_0x54fe67['viewChildrenToDom'](_0x4e185b,{'bind':!0x1})),_0xeca634=_0x54fe67['domDocument']['createElement']('div');_0xeca634['append'](..._0x5d033f);const _0x48cb11=Array['from'](_0x54fe67['domChildrenToView'](_0xeca634));_0x48cb11['length']>0x1?_0x4bf621['_appendChild'](_0x48cb11):_0x4bf621=_0x48cb11[0x0];}}}if(_0x1eb0d0['customProperties']){for(const [_0x4da58d,_0x48f8a8]of _0x1eb0d0['customProperties'])_0x4bf621['_setCustomProperty'](_0x4da58d,_0x48f8a8);}const _0x3146cb=void 0x0===_0x1eb0d0['fillerOffset']?null:_0x1eb0d0['fillerOffset'];return null!==_0x3146cb&&(_0x4bf621['getFillerOffset']=()=>_0x3146cb),_0x4bf621;}}['_makeModelFromViewString'](_0x4cc53c){const _0x14fc0e=JSON['parse'](_0x4cc53c),_0x1db3b3=this['editor']['editing']['view']['document'],_0x31e244=new _0x2392cc(_0x1db3b3,_0x14fc0e['map'](_0x59afad=>this['_getViewFromDiffObj'](_0x59afad,!0x0)));return this['editor']['data']['toModel'](_0x31e244);}['_removeRevisionMarkers'](_0x24ef64){return(_0x24ef64=_0x24ef64['filter'](_0x274969=>!_0x274969['name']||'revision-start'!==_0x274969['name']&&'revision-end'!==_0x274969['name']))['forEach'](_0x874005=>{'string'!=typeof _0x874005&&(_0x874005['children']=this['_removeRevisionMarkers'](_0x874005['children']),_0x874005['attributes']=_0x874005['attributes']['filter'](_0x772a0b=>!_0x772a0b[0x0]['startsWith']('data-revision-')));}),_0x24ef64;}}function g(_0x287b4a,_0x47c6a5,_0x146fa8){const t=_0x287b4a['t'];switch(_0x47c6a5){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'},_0x146fa8);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x146fa8);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}class u extends _0x408cb2{['licenseKey'];['_licenseKeyCheckInterval'];['currentRevision']=null;['repository'];['adapter']=null;['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_utils'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x53f292,I,V,_0x1ddb70];}constructor(_0x22a5cc){super(_0x22a5cc),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['_revisionDataBuilder']=new x(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5de0a5=_0x48e51d();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5de0a5},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0xc1c73b=this['repository']['getRevision'](0x0),_0xcbdd0d=_0xc1c73b&&null===_0xc1c73b['creator']?_0xc1c73b:null;if(this['_continueCurrentRevision']=!!_0xcbdd0d&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x2c130a=this['_source']['getCurrentRevisionId'](),_0x5786f6=this['repository']['getRevision'](_0x2c130a);if(_0x5786f6)this['_startingVersion']=_0x5786f6['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x759f6a=this['_source']['history']['_operations']['find'](_0x270ea4=>!_0x270ea4['_isInit']),_0x35d77c=_0x759f6a?_0x759f6a['baseVersion']:this['_source']['history']['version'];_0xc1c73b?(_0xc1c73b['toVersion']<_0x35d77c&&_0xc1c73b['_update']({'toVersion':_0x35d77c}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0xcbdd0d['id'],this['_startingVersion']=_0xcbdd0d['fromVersion']):(this['_startingVersion']=_0xc1c73b['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x35d77c,this['_continueCurrentRevision']=!0x1);}}else _0xcbdd0d&&(this['editor']['model']['document']['history']['version']=Math['max'](_0xcbdd0d['toVersion'],this['editor']['model']['document']['history']['version']),_0xcbdd0d['fromVersion']===_0xcbdd0d['toVersion']?(0x0!==_0xcbdd0d['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0xcbdd0d['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0xcbdd0d['id'],this['_startingVersion']=_0xcbdd0d['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',_0x48265f=>!_0x48265f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1114ce=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x44eacd;for(const _0x2ced28 in _0x1114ce){const _0xf96421=_0x2ced28,_0x13f14e=_0x1114ce[_0xf96421];if('revisionHistoryLicenseKeyValid'==_0x13f14e||'revisionHistoryLicenseKeyInvalid'==_0x13f14e||'revisionHistoryLicenseKeyExpired'==_0x13f14e||'revisionHistoryLicenseKeyDomainLimit'==_0x13f14e||'revisionHistoryLicenseKeyNotAllowed'==_0x13f14e||'revisionHistoryLicenseKeyEvaluationLimit'==_0x13f14e||'revisionHistoryLicenseKeyTrialLimit'==_0x13f14e||'revisionHistoryLicenseKeyUsageLimit'==_0x13f14e){delete _0x1114ce[_0xf96421],_0x44eacd=_0x13f14e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x44eacd&&_0x1114ce['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x44eacd&&_0x1114ce['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x44eacd&&_0x1114ce['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x44eacd&&_0x1114ce['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x44eacd&&_0x1114ce['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x44eacd&&_0x1114ce['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x44eacd&&_0x1114ce['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x10f2fe=this['repository']['getRevision'](0x0),_0x3d9064=await this['getRevisionDocumentData'](_0x10f2fe),_0x4643f5=await this['getRevisionRootsAttributes'](_0x10f2fe);this['_replaceEditorDataWithRevisionData'](_0x3d9064,_0x4643f5);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x56716f){this['_source']=_0x56716f;}async['update'](){const _0x287763=await this['_source']['getLatestVersion']();if(_0x287763>this['currentRevision']['toVersion']){await this['_loadState']();const _0x44f7d8=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x287763});_0x44f7d8['authors']=_0x44f7d8['authorsIds']['map'](_0x486a6b=>this['editor']['plugins']['get']('Users')['getUser'](_0x486a6b)),this['currentRevision']['_update'](_0x44f7d8);}}async['saveRevision'](_0x2ab0cd={},_0x2a9198=null){const _0x3e417d=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2a9198>this['currentRevision']['toVersion']&&(_0x2a9198=null),null===_0x2a9198&&(_0x2a9198=await this['_source']['getLatestVersion']());const _0x2fc65a=this['_getFromVersion'](_0x2a9198),_0x3b84bc=this['buildRevisionData']({'from':_0x2fc65a,'to':_0x2a9198});if(this['currentRevision']['toVersion']<_0x2a9198){const _0xaa4243=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2a9198,'to':_0x2a9198});_0xaa4243['authors']=[],_0xaa4243['authorsIds']=[],_0xaa4243['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xaa4243,!0x0),delete _0xaa4243['authors'],_0x3e417d['push'](_0xaa4243);}_0x2ab0cd['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x2ab0cd['name']=_0x2ab0cd['name']||null,_0x2ab0cd['id']=_0x2ab0cd['id']||_0x48e51d(),_0x2ab0cd={..._0x2ab0cd,..._0x3b84bc};const _0x1da85c=this['addRevisionData'](_0x2ab0cd);_0x3e417d['push'](_0x2ab0cd);const _0x5aff20=this['repository']['getIndex'](_0x1da85c);if(0x0!==_0x5aff20){const _0x589cbe=this['repository']['getRevision'](_0x5aff20-0x1);if(_0x589cbe['fromVersion']!==_0x2a9198){const _0x4a11ad=this['_revisionDataBuilder']['getData'](_0x2a9198,_0x589cbe['toVersion']),_0x575bb9={'id':_0x589cbe['id'],'diffData':_0x4a11ad['diffData'],'authorsIds':_0x4a11ad['authorsIds'],'authors':_0x4a11ad['authorsIds']['map'](_0xe29ef8=>this['editor']['plugins']['get']('Users')['getUser'](_0xe29ef8)),'fromVersion':_0x2a9198};_0x589cbe===this['currentRevision']&&(_0x575bb9['createdAt']=new Date(_0x2ab0cd['createdAt']['getTime']()+0xa)),_0x589cbe['_update'](_0x575bb9,!0x0),delete _0x575bb9['authors'],_0x3e417d['push'](_0x575bb9);}}if(this['adapter']){for(const _0x15af21 of _0x3e417d)this['_bufferUpdate'](_0x15af21['id'],_0x15af21,!0x0);this['sendBufferedUpdates']();}return _0x1da85c;}['addRevisionData'](_0x876861){const _0x14dc29=this['repository']['createRevision'](_0x876861);return this['adapter']&&_0x14dc29['on']('_update',(_0x559e8e,_0x44d48b,_0x3fa10d)=>{_0x3fa10d||(this['_bufferUpdate'](_0x44d48b['id'],_0x44d48b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x14dc29,this['_findInsertionIndex'](_0x14dc29)),_0x14dc29;}async['getRevisionDocumentData'](_0x2e36bd){return await this['_utils']['loadRevisionData'](_0x2e36bd,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x2e36bd);}async['getRevisionRootsAttributes'](_0x72b146){return await this['_utils']['loadRevisionData'](_0x72b146,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x72b146);}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x500f18=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x481a7b=0x0;_0x481a7b<_0x500f18['length'];_0x481a7b++){const _0x347989=_0x500f18[_0x481a7b];let _0x357651=!0x1;for(const _0x1b46ba of Object['keys'](_0x347989))void 0x0===_0x347989[_0x1b46ba]?delete _0x347989[_0x1b46ba]:'id'!==_0x1b46ba&&(_0x357651=!0x0);_0x357651||(_0x500f18[_0x481a7b]=null);}if(_0x500f18=_0x500f18['filter'](_0x1bce74=>null!==_0x1bce74),!_0x500f18['length'])return;for(let _0x31e367=0x0;_0x31e367<_0x500f18['length'];_0x31e367++){const _0x55405a=_0x500f18[_0x31e367];void 0x0!==_0x55405a['fromVersion']&&void 0x0===_0x55405a['toVersion']&&(_0x55405a['toVersion']=this['repository']['getRevision'](_0x55405a['id'])['toVersion']),void 0x0!==_0x55405a['toVersion']&&void 0x0===_0x55405a['fromVersion']&&(_0x55405a['fromVersion']=this['repository']['getRevision'](_0x55405a['id'])['fromVersion']);}const _0x37b1c2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x500f18,_0x37b1c2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5ed4cc=>{if(_0x5ed4cc){for(const _0x34d25a of _0x5ed4cc)this['setRevisionData']({'id':_0x34d25a['id'],'createdAt':_0x34d25a['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['buildRevisionData']({revision:_0x384675=null,from:_0x52f541=null,to:_0x4cdad6=null}){_0x52f541=null!==_0x52f541?_0x52f541:_0x384675['fromVersion'],_0x4cdad6=null!==_0x4cdad6?_0x4cdad6:_0x384675['toVersion'];const _0x3cba44=this['_revisionDataBuilder']['getData'](_0x52f541,_0x4cdad6),_0x4d565f={'diffData':_0x3cba44['diffData'],'authorsIds':_0x3cba44['authorsIds'],'fromVersion':_0x52f541,'toVersion':_0x4cdad6};if(!_0x384675||_0x4cdad6!==_0x384675['toVersion']){const _0x283cdd=_0x4cdad6-0x1,_0x3d637c=this['_source']['history']['getOperation'](_0x283cdd);_0x4d565f['createdAt']=_0x3d637c&&_0x3d637c['createdAt']||new Date();}if(this['_loadedStateData']&&_0x52f541===this['_loadedStateData']['fromVersion']){for(const _0xc65713 of this['_loadedStateData']['authors'])_0x4d565f['authorsIds']['includes'](_0xc65713['id'])||_0x4d565f['authorsIds']['push'](_0xc65713['id']);}return _0x4d565f;}['_bufferUpdate'](_0x531746,_0x4ddaaf,_0x8c86b5){if(this['_bufferedUpdates']['has'](_0x531746)){const _0x58ad7b=this['_bufferedUpdates']['get'](_0x531746);_0x4ddaaf=_0x8c86b5?{..._0x58ad7b,..._0x4ddaaf}:{..._0x4ddaaf,..._0x58ad7b};}this['_bufferedUpdates']['set'](_0x531746,_0x4ddaaf);}['setRevisionData'](_0x380590){const _0xeda9b0=this['repository']['getRevision'](_0x380590['id']);if(_0x380590['createdAt']&&(_0x380590['createdAt']=new Date(_0x380590['createdAt'])),_0x380590['authorsIds']){const _0x251803=this['editor']['plugins']['get']('Users');_0x380590['authors']=_0x380590['authorsIds']['map'](_0x4b4f93=>_0x251803['getUser'](_0x4b4f93));}_0xeda9b0['_update'](_0x380590,!0x0);}['_createInitialRevision'](_0x340f13){const _0x400b0a=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x400b0a)this['_initialRevisionId']=_0x400b0a['id'];else{const _0x23a8a5=!this['editor']['model']['document']['roots']['find'](_0x484765=>this['editor']['model']['hasContent'](_0x484765)),_0x2c8fb2=this['editor']['plugins']['get']('Users')['me']['id'],_0x72f630=g(this['editor']['locale'],_0x23a8a5?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x340f13,'to':_0x340f13,'id':this['_initialRevisionId'],'name':_0x72f630,'creatorId':_0x2c8fb2});}}['_createCurrentRevision'](_0x3e1e20){const _0xce2a1f=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xce2a1f),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x3e1e20,'to':_0x3e1e20,'id':_0xce2a1f,'name':'','creatorId':null}));}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_utils']['loadRevisionData'](this['currentRevision'],this['adapter']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}['_replaceEditorDataWithRevisionData'](_0x3f3efd,_0x4bd1cc){let _0xf56bbe=this['editor']['config']['get']('initialData'),_0x13d65d=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xf56bbe){_0xf56bbe={};for(const _0x4273f7 of this['editor']['model']['document']['getRootNames']())_0xf56bbe[_0x4273f7]='';}if('string'==typeof _0xf56bbe&&(_0xf56bbe={'main':_0xf56bbe}),void 0x0===_0x13d65d){_0x13d65d={};for(const _0x388cdb of this['editor']['model']['document']['getRootNames']())_0x13d65d[_0x388cdb]={};}let _0x105d89=!0x1;const _0x1e3acf=Object['keys'](_0xf56bbe),_0x3abc1b=Object['keys'](_0x3f3efd);for(const _0xb78575 of _0x1e3acf){if(_0xf56bbe[_0xb78575]!==_0x3f3efd[_0xb78575]&&''!==_0xf56bbe[_0xb78575]['trim']()){_0x105d89=!0x0;break;}if(!_0x45fe94(_0x13d65d[_0xb78575],_0x4bd1cc[_0xb78575])&&Object['keys'](_0x13d65d[_0xb78575])['length']>0x0){_0x105d89=!0x0;break;}}_0x105d89||(_0x105d89=_0x3abc1b['some'](_0x299407=>!this['editor']['model']['document']['getRoot'](_0x299407))),_0x105d89&&_0x1499b0('editor-initial-data-replaced-with-revision-data',{'editorData':_0xf56bbe,'editorRootsAttributes':_0x13d65d,'revisionData':_0x3f3efd,'revisionRootsAttributes':_0x4bd1cc}),this['editor']['config']['set']('initialData',_0x3f3efd),this['editor']['config']['set']('rootsAttributes',_0x4bd1cc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xdd3da3=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xdd3da3['add'](g(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x4e1c1c){const _0x344dc9=this['repository']['getRevisions']();_0x344dc9['reverse']();let _0x340dec=0x0;for(;_0x340dec<_0x344dc9['length'];){const _0x2ddb8c=_0x344dc9[_0x340dec];if(_0x2ddb8c===this['currentRevision']){_0x340dec++;continue;}if(_0x2ddb8c['id']===this['_initialRevisionId'])break;const _0x288061=_0x4e1c1c['toVersion']-_0x2ddb8c['toVersion']||_0x4e1c1c['fromVersion']-_0x2ddb8c['fromVersion'];if(_0x288061>0x0)break;if(_0x288061<0x0)_0x340dec++;else{if(!_0x4e1c1c['creator']&&_0x2ddb8c['creator'])break;if(_0x2ddb8c['creator']||!_0x4e1c1c['creator']){if(_0x4e1c1c['createdAt']>_0x2ddb8c['createdAt'])break;_0x340dec++;}else _0x340dec++;}}return _0x340dec;}['_getFromVersion'](_0x558ca7){const _0x563d59=this['repository']['getRevisions']();_0x563d59['reverse'](),_0x563d59['shift']();const _0x5f5dcf=_0x563d59['find'](_0x3038fc=>_0x3038fc['toVersion']<=_0x558ca7)['toVersion'];return _0x5f5dcf<this['_startingVersion']?this['_startingVersion']:_0x5f5dcf;}['_makeRevision']({name:_0x7ecfa6,from:_0x1725a2,to:_0x228777,creatorId:_0x34ae42,id:_0x104da6}){const _0x30ee2d=this['buildRevisionData']({'from':_0x1725a2,'to':_0x228777});_0x30ee2d['name']=_0x7ecfa6,_0x30ee2d['creatorId']=_0x34ae42,_0x30ee2d['id']=_0x104da6;const _0x2118b2=this['addRevisionData'](_0x30ee2d);return this['adapter']&&this['_bufferUpdate'](_0x30ee2d['id'],_0x30ee2d,!0x0),_0x2118b2;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}}class x{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x3edbec){this['editor']=_0x3edbec,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'](_0x417d1b){this['source']=_0x417d1b;const _0x365dae=new Map(),_0x10e9de=new Map(),_0x550899=this['editor']['model']['document']['roots']['map'](_0x14424a=>_0x14424a['rootName']);for(const _0x234555 of _0x550899){const _0x9638cc=this['editor']['model']['document']['getRoot'](_0x234555),_0x102764=N(_0x9638cc);_0x365dae['set'](_0x234555,_0x102764),_0x10e9de['set'](_0x234555,Object['fromEntries'](_0x9638cc['getAttributes']()));}const _0xfaf32e=Array['from'](this['editor']['model']['markers'])['map'](_0x2e5198=>[_0x2e5198['name'],_0x2e5198['getRange']()]),_0x18b1ee=this['source']['version'];this['_saveMetaData'](_0x18b1ee,_0x365dae,_0xfaf32e,_0x10e9de),this['_startingRevisionId']=this['_revisionId'];const _0x351421=new Map(),_0xdcb188=new Map();for(const _0x57a1d5 of _0x550899){const _0x5141d8=P(_0x57a1d5);_0x351421['set'](_0x57a1d5,_0x5141d8),_0xdcb188['set'](_0x57a1d5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x351421,[],_0xdcb188);}['getData'](_0x3ba0f3,_0x425e30){if(this['_lastFrom']===_0x3ba0f3&&this['_lastTo']<=_0x425e30)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x425e30,!0x0);else{if(!this['_savedMetaData']['has'](_0x3ba0f3)){const _0x22bc1c=this['_getPreviousFrom'](_0x3ba0f3);this['_calculateMetaData'](_0x22bc1c,_0x3ba0f3,!0x1);}this['_calculateMetaData'](_0x3ba0f3,_0x425e30,!0x0);}return this['_lastFrom']=_0x3ba0f3,this['_lastTo']=_0x425e30,this['_getState']();}['loadState'](_0x55d573){const _0x2ec4da=this['editor']['plugins']['get']('RevisionHistoryUtils');this['_reset'](),this['_lastFrom']=_0x55d573['fromVersion'],this['_lastTo']=_0x55d573['toVersion'];for(const _0x54de9d in _0x55d573['diffData']){const _0x4c4901=_0x55d573['diffData'][_0x54de9d]['attachChange'],_0x160dc6=_0x9b4a86(_0x55d573['diffData'][_0x54de9d]['attributesBefore'])||{},_0x5a0c93=_0x2ec4da['_makeModelFromViewString'](_0x55d573['diffData'][_0x54de9d]['deletions']);_0x5a0c93['rootName']=_0x54de9d,_0x5a0c93['_isAttached']=!_0x4c4901||!_0x4c4901['isAttached'],_0x5a0c93['isAttached']=()=>_0x5a0c93['_isAttached'],this['_baseRoots']['set'](_0x54de9d,_0x5a0c93),this['_baseRootsAttributes']['set'](_0x54de9d,_0x160dc6),_0x4c4901&&this['_touchedRoots']['set'](_0x54de9d,_0x4c4901);const _0x3cd2d2=this['_makeIdsRoot'](_0x5a0c93);this['_baseIdsRoots']['set'](_0x54de9d,_0x3cd2d2);for(const [_0x5a7c86,_0x38857c]of _0x5a0c93['markers']){if(!_0x5a7c86['startsWith']('revision:'))continue;const _0x543edd=_0x5a7c86['split'](':')[0x2];for(const _0xb7002a of _0x38857c['getWalker']({'singleCharacters':!0x0})){const _0x39b57c=this['_getVidAttributeName'](_0xb7002a),_0x5938f0='elementEnd'==_0xb7002a['type']?_0xb7002a['previousPosition']['path']['slice'](0x0,-0x1):_0xb7002a['previousPosition']['path'],_0x43bf40=_0x3cd2d2['getNodeByPath'](_0x5938f0)['getAttribute'](_0x39b57c);this['_touched']['set'](_0x43bf40,{'userId':_0x543edd});}}}this['_startingRevisionId']=this['_revisionId'];const _0x193778=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x519a55=>!this['_touched']['has'](_0x519a55));let _0x29c328=0x0;const _0x37910b=new Map();for(const _0x3bf98f in _0x55d573['diffData']){const _0x49c1bd=_0x55d573['diffData'][_0x3bf98f]['attachChange'],_0x559c2f=_0x9b4a86(_0x55d573['diffData'][_0x3bf98f]['attributesAfter'])||{},_0x5bb956=_0x2ec4da['_makeModelFromViewString'](_0x55d573['diffData'][_0x3bf98f]['insertions']);_0x5bb956['rootName']=_0x3bf98f,_0x5bb956['_isAttached']=!_0x49c1bd||_0x49c1bd['isAttached'],_0x5bb956['isAttached']=()=>_0x5bb956['_isAttached'],this['_diffRoots']['set'](_0x3bf98f,_0x5bb956),this['_diffRootsAttributes']['set'](_0x3bf98f,_0x559c2f);const _0x476a89=this['_makeIdsRoot'](_0x5bb956,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x3bf98f,_0x476a89),_0x37910b['set'](_0x3bf98f,_0x5bb956['isAttached']()?_0x559c2f:{});for(const [_0x3d9d1f,_0x120c5a]of _0x5bb956['markers']){if(!_0x3d9d1f['startsWith']('revision:'))continue;const _0x67c5d1=_0x3d9d1f['split'](':')[0x2];for(const _0x2d28b0 of _0x120c5a['getWalker']({'singleCharacters':!0x0})){const _0x4b2ce4=this['_getVidAttributeName'](_0x2d28b0),_0x2ef72e=this['_revisionId']++,_0x31590f='elementEnd'==_0x2d28b0['type']?_0x2d28b0['previousPosition']['path']['slice'](0x0,-0x1):_0x2d28b0['previousPosition']['path'];_0x476a89['getNodeByPath'](_0x31590f)['_setAttribute'](_0x4b2ce4,_0x2ef72e),this['_touched']['set'](_0x2ef72e,{'userId':_0x67c5d1});}}for(const _0x385970 of this['editor']['model']['createRangeIn'](_0x5bb956)['getWalker']({'singleCharacters':!0x0})){const _0x3a6293=this['_getVidAttributeName'](_0x385970),_0x5b8d91='elementEnd'==_0x385970['type']?_0x385970['previousPosition']['path']['slice'](0x0,-0x1):_0x385970['previousPosition']['path'],_0x5c8b03=_0x476a89['getNodeByPath'](_0x5b8d91);_0x5c8b03['getAttribute'](_0x3a6293)>0x0||_0x5c8b03['_setAttribute'](_0x3a6293,_0x193778[_0x29c328++]);}for(const [_0x30af37,_0x164764]of _0x5bb956['markers'])_0x30af37['startsWith']('revision:')||this['_markers']['set'](_0x30af37,_0x164764);}const _0xc0c4ce=P('$graveyard');this['_baseRoots']['set']('$graveyard',_0xc0c4ce),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc0c4ce,0x1));const _0x188690=P('$graveyard');this['_diffRoots']['set']('$graveyard',_0x188690),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x188690,0x1));const _0x5c6311=Array['from'](this['_diffRoots'])['map'](([_0x15409c,_0x54fe8d])=>[_0x15409c,N(_0x54fe8d)]);this['_saveMetaData'](this['_lastTo'],_0x5c6311,this['_markers'],_0x37910b);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_saveMetaData'](_0x511549,_0x290318,_0x932704,_0x13cea3){const _0x1b5ab0=new Map(_0x290318),_0x3882b5=new Map(_0x9b4a86(_0x13cea3)),_0xf65ca0=new Map();for(const [_0xb183e0,_0x288131]of _0x932704)_0xf65ca0['set'](_0xb183e0,{'start':_0x288131['start']['clone'](),'end':_0x288131['end']['clone'](),'rootName':_0x288131['root']['rootName']});this['_savedMetaData']['set'](_0x511549,{'roots':_0x1b5ab0,'markers':_0xf65ca0,'rootsAttributes':_0x3882b5});}['_removeMetaData'](_0x3936f0){this['_savedMetaData']['delete'](_0x3936f0);}['_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'](_0x1405d0,_0x32fa3d=null){let _0x3b04f9=null;_0x1405d0['is']('documentFragment')||(_0x3b04f9=new ut(_0x1405d0['name'],{'vid_start':null===_0x32fa3d?this['_revisionId']++:_0x32fa3d++}));const _0x6ecf1e=[];for(const _0x22ae73 of _0x1405d0['getChildren']())if(_0x22ae73['is']('element')){_0x6ecf1e['push'](this['_makeIdsRoot'](_0x22ae73,_0x32fa3d));const _0x51a05a=_0x6ecf1e[_0x6ecf1e['length']-0x1];null!==_0x32fa3d&&(_0x32fa3d=_0x51a05a['is']('element','$text')?_0x51a05a['getAttribute']('vid')+0x1:_0x51a05a['getAttribute']('vid_end')+0x1);}else{for(let _0x5ae947=0x0;_0x5ae947<_0x22ae73['offsetSize'];_0x5ae947++)_0x6ecf1e['push'](new ut('$text',{'vid':null===_0x32fa3d?this['_revisionId']++:_0x32fa3d++}));}if(_0x1405d0['is']('documentFragment')){const _0x1adf9f=P(_0x1405d0['rootName']);return _0x1adf9f['_insertChild'](0x0,_0x6ecf1e),_0x1adf9f;}return _0x3b04f9['_setAttribute']('vid_end',null===_0x32fa3d?this['_revisionId']++:_0x32fa3d++),_0x3b04f9['_insertChild'](0x0,_0x6ecf1e),_0x3b04f9;}['_calculateMetaData'](_0x4b28d3,_0x559310,_0x30b7a1){this['_reset']();const {roots:_0x2369d0,markers:_0x53a805,rootsAttributes:_0x1a7601}=this['_savedMetaData']['get'](_0x4b28d3);this['_baseRoots']=new Map(_0x2369d0),this['_baseRootsAttributes']=new Map(_0x9b4a86(_0x1a7601));for(const [_0x188215,_0x29cb3c]of this['_baseRoots'])if('$graveyard'!==_0x188215&&(this['_diffRoots']['set'](_0x188215,N(_0x29cb3c)),this['_diffRootsAttributes']=new Map(_0x9b4a86(_0x1a7601)),_0x30b7a1)){const _0x376830=this['_revisionId'];this['_idsRoots']['set'](_0x188215,this['_makeIdsRoot'](_0x29cb3c)),this['_baseIdsRoots']['set'](_0x188215,this['_makeIdsRoot'](_0x29cb3c,_0x376830));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',N(this['_baseRoots']['get']('$graveyard'))),_0x30b7a1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1b3aaa,_0x57c1d5]of _0x53a805){const _0x2e9d06=this['_baseRoots']['get'](_0x57c1d5['rootName']),_0x1e281b=this['_diffRoots']['get'](_0x57c1d5['rootName']),_0x26577e=new ft(this['_fixPosition'](_0x57c1d5['start'],_0x2e9d06),this['_fixPosition'](_0x57c1d5['end'],_0x2e9d06)),_0x1b88ca=this['_fixRange'](_0x26577e,_0x1e281b);_0x2e9d06['markers']['set'](_0x1b3aaa,_0x26577e),this['_markers']['set'](_0x1b3aaa,_0x1b88ca);}this['_applyOperations'](_0x4b28d3,_0x559310,_0x30b7a1);}['_applyOperations'](_0x1bfb29,_0x133513,_0x3da605){for(const _0x31ddb6 of this['source']['getOperations'](_0x1bfb29,_0x133513))this['_handleOperation'](_0x31ddb6,_0x3da605);for(const _0xde3a4a of this['_diffRoots']['values']())_0xde3a4a['markers']['clear']();for(const [_0x2a9b84,_0x5f0167]of this['_markers']){this['_diffRoots']['get'](_0x5f0167['root']['rootName'])['markers']['set'](_0x2a9b84,_0x5f0167['clone']());}const _0x91712a=new Map(),_0x1552ee=new Map();for(const [_0x2f9ad5,_0x5a57b1]of this['_diffRoots'])_0x91712a['set'](_0x2f9ad5,N(_0x5a57b1)),_0x1552ee['set'](_0x2f9ad5,this['_diffRootsAttributes']['get'](_0x2f9ad5));this['_saveMetaData'](_0x133513,_0x91712a,this['_markers'],_0x1552ee);}['_getPreviousFrom'](_0x24c848){const _0xd35cab=Array['from'](this['_savedMetaData']['keys']());_0xd35cab['sort']((_0x5b3bb6,_0x4ffd9c)=>_0x5b3bb6-_0x4ffd9c),_0xd35cab['reverse']();for(const _0x1eed15 of _0xd35cab)if(_0x1eed15<_0x24c848)return _0x1eed15;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x201ca1,_0x422e1a){const _0x18b463=Array['from'](_0x422e1a['markers'])['map'](([_0x18464a,_0x48ebac])=>[_0x18464a,this['_fixRange'](_0x48ebac,_0x201ca1)]);_0x201ca1['markers']=new Map(_0x18b463);}['_transformMarkers'](_0x1e8132){for(const _0x4dab20 of this['_markers']['values']()){const _0x1b6b25=_0x4dab20['getTransformedByOperation'](_0x1e8132),_0x35e5cc=ft['_createFromRanges'](_0x1b6b25);_0x4dab20['start']=_0x35e5cc['start'],_0x4dab20['end']=_0x35e5cc['end'];}}['_handleOperation'](_0x5c2530,_0x3ab185){if('addRoot'!=_0x5c2530['type']&&'detachRoot'!=_0x5c2530['type']){if('insert'==_0x5c2530['type']){const _0x250b37=_0x5c2530['position']['root']['rootName'];this['_diffRoots']['has'](_0x250b37)||(this['_diffRoots']['set'](_0x250b37,P(_0x250b37,!0x0)),this['_diffRootsAttributes']['set'](_0x250b37,{}),_0x3ab185&&this['_idsRoots']['set'](_0x250b37,P(_0x250b37,!0x0)));}else{if('addRootAttribute'==_0x5c2530['type']||'removeRootAttribute'==_0x5c2530['type']||'changeRootAttribute'==_0x5c2530['type'])return void this['_handleRootAttributeOperation'](_0x5c2530);'marker'==_0x5c2530['type']&&this['_handleMarkerOperation'](_0x5c2530);}if('marker'!==_0x5c2530['type']){const _0x325db5=this['_cloneOperation'](_0x5c2530,this['_diffRoots']);_0x325db5['_execute'](),this['_transformMarkers'](_0x325db5);}if(_0x3ab185)switch(_0x5c2530['type']){case'insert':this['_handleInsertOperation'](_0x5c2530);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5c2530);break;case'merge':this['_handleMergeOperation'](_0x5c2530);break;case'split':this['_handleSplitOperation'](_0x5c2530);}}else this['_handleRootOperation'](_0x5c2530,_0x3ab185);}['_cloneOperation'](_0x13e5e7,_0xc4e8a2){const _0x2559de=_0x13e5e7['clone']();return _0x2559de['_authorId']=_0x13e5e7['_authorId'],this['_fixOperation'](_0x2559de,_0xc4e8a2),_0x2559de;}['_getBaseVids'](_0x21c983){return _0x21c983['map'](_0x313271=>{const _0x3a123c=this['_getVidAttributeName'](_0x313271);return Number(_0x313271['item']['getAttribute'](_0x3a123c));});}['_generateTape'](_0x1084da,_0x5344ac){if(_0x1084da['is']('element','$text'))_0x5344ac['push']({'item':_0x1084da,'type':'text'});else{_0x1084da['is']('element')&&_0x5344ac['push']({'item':_0x1084da,'type':'elementStart'});for(const _0x1d68aa of _0x1084da['getChildren']())this['_generateTape'](_0x1d68aa,_0x5344ac);_0x1084da['is']('element')&&_0x5344ac['push']({'item':_0x1084da,'type':'elementEnd'});}return _0x5344ac;}['_getState'](){const _0x2714b2=new Map(this['_touched']),_0x3f821e=new Map(_0x2714b2),_0x1d9187=new Map(),_0x1d2e87={'insertions':{},'deletions':{}},_0x53337c={'insertions':{},'deletions':{}},_0x41f5d2=new Map(),_0x4e8416=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x4e8416['delete']('$graveyard');for(const _0x44135c of _0x4e8416){const _0x3cd509=this['_diffRoots']['get'](_0x44135c)||P(_0x44135c,!0x1),_0x31db96=this['_baseRoots']['get'](_0x44135c)||P(_0x44135c,!0x1);_0x3cd509['isAttached']()||_0x31db96['isAttached']()?(_0x1d2e87['insertions'][_0x44135c]=N(_0x3cd509),_0x1d2e87['deletions'][_0x44135c]=N(_0x31db96),this['_copyMarkers'](_0x1d2e87['deletions'][_0x44135c],_0x31db96),this['_copyMarkers'](_0x1d2e87['insertions'][_0x44135c],_0x3cd509),_0x53337c['insertions'][_0x44135c]=this['_generateTape'](this['_idsRoots']['get'](_0x44135c),[]),_0x53337c['deletions'][_0x44135c]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x44135c)||P(_0x44135c,!0x1),[])):_0x4e8416['delete'](_0x44135c);}for(const _0x245905 of _0x4e8416){const _0x1504cc=_0x53337c['insertions'][_0x245905];for(const _0x884da6 of _0x1504cc){const _0x572eca=this['_getVidAttributeName'](_0x884da6),_0x2a0e90=_0x884da6['item']['getAttribute'](_0x572eca);_0x3f821e['delete'](_0x2a0e90),_0x2a0e90>=this['_startingRevisionId']&&_0x1d9187['set'](_0x2a0e90,_0x2714b2['get'](_0x2a0e90));}}for(const _0x4798a4 of _0x4e8416){const _0x3101b3=_0x53337c['insertions'][_0x4798a4],_0x2cb469=this['_getBaseVids'](_0x53337c['deletions'][_0x4798a4]);let _0x176bdb=0x0;for(const _0x2d1aaa of _0x3101b3){const _0x53b52f=this['_getVidAttributeName'](_0x2d1aaa),_0x5a95a2=_0x2d1aaa['item']['getAttribute'](_0x53b52f);if(!_0x1d9187['has'](_0x5a95a2)&&!_0x41f5d2['has'](_0x5a95a2)){if(_0x3f821e['has'](_0x5a95a2))_0x176bdb++;else{if(_0x5a95a2!=_0x2cb469[_0x176bdb]){const _0x6f42c7=_0x2714b2['get'](_0x5a95a2)||_0x2714b2['get'](_0x2cb469[_0x176bdb]);for(;_0x5a95a2!=_0x2cb469[_0x176bdb];)_0x3f821e['has'](_0x2cb469[_0x176bdb])||(_0x41f5d2['set'](_0x2cb469[_0x176bdb],_0x6f42c7),_0x2714b2['set'](_0x2cb469[_0x176bdb],_0x6f42c7)),_0x176bdb++;}_0x176bdb++;}}}}for(const _0x7c895 of _0x4e8416){const _0x11bc1b=_0x53337c['insertions'][_0x7c895];for(const _0x384b66 of _0x11bc1b){const _0x5797c7=this['_getVidAttributeName'](_0x384b66),_0x127efa=_0x384b66['item']['getAttribute'](_0x5797c7);if(_0x41f5d2['has'](_0x127efa)){const _0x4322e0=_0x41f5d2['get'](_0x127efa);_0x3f821e['has'](_0x127efa)||_0x3f821e['set'](_0x127efa,{..._0x4322e0}),_0x1d9187['set'](_0x127efa,{..._0x4322e0});}}}for(const _0x163f07 of _0x3f821e['keys']())_0x163f07>=this['_startingRevisionId']&&_0x3f821e['delete'](_0x163f07);const _0x3ff409=new Map();for(const _0x1fc40b of _0x4e8416){let _0x4f010a=_0x53337c['insertions'][_0x1fc40b];for(const _0x434287 of _0x4f010a)if(_0x434287['item']['is']('element','tableCell')){const _0x3b2730=this['_getVidAttributeName'](_0x434287),_0x43a44d=_0x434287['item']['getAttribute'](_0x3b2730);if(_0x1d9187['has'](_0x43a44d)){const _0x2d59cf=_0x434287['item']['parent']['parent']['getAttribute']('vid_start'),_0x260287=_0x3ff409['get'](_0x2d59cf)||new Set();_0x260287['add'](_0x1d9187['get'](_0x43a44d)['userId']),_0x3ff409['set'](_0x2d59cf,_0x260287);}}_0x4f010a=_0x53337c['deletions'][_0x1fc40b];for(const _0xad0536 of _0x4f010a)if(_0xad0536['item']['is']('element','tableCell')){const _0x45a837=this['_getVidAttributeName'](_0xad0536),_0x45a8ff=_0xad0536['item']['getAttribute'](_0x45a837);if(_0x3f821e['has'](_0x45a8ff)){const _0x13ef39=_0xad0536['item']['parent']['parent']['getAttribute']('vid_start'),_0x1360c4=_0x3ff409['get'](_0x13ef39)||new Set();_0x1360c4['add'](_0x3f821e['get'](_0x45a8ff)['userId']),_0x3ff409['set'](_0x13ef39,_0x1360c4);}}for(const _0x2dea02 of _0x3ff409['keys']())(_0x1d9187['has'](_0x2dea02)||_0x3f821e['has'](_0x2dea02))&&_0x3ff409['delete'](_0x2dea02);}for(const _0x1c4268 of _0x4e8416){const _0x4c188d=_0x53337c['insertions'][_0x1c4268];let _0x2bd2bc=null,_0x163de3=null;for(const _0x7dac66 of _0x4c188d){const _0xaf2172=this['_getVidAttributeName'](_0x7dac66),_0x5785cb=_0x7dac66['item']['getAttribute'](_0xaf2172),_0x4516d7=_0x3ff409['get'](_0x5785cb);_0x4516d7&&'elementStart'==_0x7dac66['type']&&(_0x2bd2bc=Array['from'](_0x4516d7)[0x0],_0x163de3=_0x7dac66['item']['getAttribute']('vid_end')),_0x2bd2bc&&(_0x3f821e['set'](_0x5785cb,{'userId':_0x2bd2bc}),_0x1d9187['set'](_0x5785cb,{'userId':_0x2bd2bc})),_0x5785cb==_0x163de3&&(_0x2bd2bc=null,_0x163de3=null);}}const _0xaada78={},_0xbf7ea8=new Set();for(const _0x453dd9 of _0x4e8416){const _0x12a4d6=_0x1d2e87['deletions'][_0x453dd9],_0x4cd3b4=_0x1d2e87['insertions'][_0x453dd9];for(const {userId:_0x70b007}of this['_touchedMarkers']['values']())null!==_0x70b007&&_0xbf7ea8['add'](_0x70b007);for(const {userId:_0x2a99fa}of this['_touchedRoots']['values']())null!==_0x2a99fa&&_0xbf7ea8['add'](_0x2a99fa);this['_markChanges'](_0x4cd3b4,_0x53337c['insertions'][_0x453dd9],_0x1d9187,'insertion',_0xbf7ea8),this['_markChanges'](_0x12a4d6,_0x53337c['deletions'][_0x453dd9],_0x3f821e,'deletion',_0xbf7ea8),_0xaada78[_0x453dd9]={'insertions':this['_prepareViewToSave'](_0x4cd3b4),'deletions':this['_prepareViewToSave'](_0x12a4d6),'attachChange':this['_touchedRoots']['get'](_0x453dd9)||null,'attributesBefore':_0x9b4a86(this['_baseRootsAttributes']['get'](_0x453dd9))||{},'attributesAfter':_0x9b4a86(this['_diffRootsAttributes']['get'](_0x453dd9))};}return{'diffData':_0xaada78,'authorsIds':Array['from'](_0xbf7ea8)};}['_processRootBeforeSave'](_0x21d60a){for(const [,_0x58c5fe]of _0x21d60a['markers']){const _0x1ac44b=_0x58c5fe['start']['getAncestors']()['filter'](_0x17c892=>'tableCell'==_0x17c892['name']);for(const _0x464183 of _0x1ac44b)0x1==_0x464183['childCount']&&_0x464183['getChild'](0x0)['is']('element','paragraph')&&_0x464183['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x45a6cc){this['_processRootBeforeSave'](_0x45a6cc);const _0xb2a354=this['editor']['data']['toView'](_0x45a6cc,{}),_0x2d5fa8=Array['from'](_0xb2a354['getChildren']())['map'](_0x33eb2d=>this['_getViewJson'](_0x33eb2d));return JSON['stringify'](_0x2d5fa8);}['_getViewJson'](_0x4e89eb){if(_0x4e89eb['is']('$text'))return _0x4e89eb['data'];{const _0xb32e28=this['editor']['plugins']['get']('RevisionHistoryUtils'),_0x23e911=_0x4e89eb,_0x18e7e0=this['editor']['data']['htmlProcessor']['domConverter'],_0xde0b6f={'type':_0xb32e28['_getTypeCharForViewElement'](_0x23e911),'name':_0x23e911['name'],'attributes':Array['from'](_0x23e911['getAttributes']()),'children':Array['from'](_0x23e911['getChildren']())['map'](_0x2e9f56=>this['_getViewJson'](_0x2e9f56))};if(_0x4e89eb['is']('uiElement')&&'$comment'!=_0x4e89eb['name']){const _0x1bf4b9=_0x4e89eb['render'](_0x18e7e0['domDocument'],_0x18e7e0);_0xde0b6f['children']['push'](_0x1bf4b9['outerHTML']);}else{if(_0x4e89eb['is']('rawElement')){const _0x2de7b0=_0x18e7e0['domDocument']['createElement'](_0x23e911['name']);_0x4e89eb['render'](_0x2de7b0,_0x18e7e0),_0xde0b6f['children']['push'](_0x2de7b0['innerHTML']);}}const _0x12c257=Array['from'](_0x23e911['getCustomProperties']());_0x12c257['length']>0x0&&(_0xde0b6f['customProperties']=_0x12c257);const _0x3d37b0=_0x23e911['getFillerOffset']();return null!==_0x3d37b0&&(_0xde0b6f['fillerOffset']=_0x3d37b0),_0xde0b6f;}}['_markChanges'](_0x43d081,_0x11e9c1,_0x44cd74,_0x96eadc,_0x21aab1){let _0x106c52=null,_0x5265fb=null,_0x5a658d=0x0;const _0x34a52c=this['editor']['model'];for(let _0x350dc9=0x0;_0x350dc9<_0x11e9c1['length'];_0x350dc9++){const _0x2cc654=this['_getVidAttributeName'](_0x11e9c1[_0x350dc9]),_0x4679ea=_0x11e9c1[_0x350dc9]['item']['getAttribute'](_0x2cc654),_0x53a294=_0x44cd74['get'](_0x4679ea),_0x4edd98=_0x350dc9==_0x11e9c1['length']-0x1;(!_0x106c52&&_0x53a294&&(_0x106c52=_0x53a294,_0x5265fb=_0x11e9c1[_0x350dc9]),_0x106c52&&(!_0x53a294||_0x53a294['userId']!=_0x106c52['userId']))&&(_0x41023e(_0x53a294,F(_0x5265fb,_0x43d081,_0x34a52c),F(_0x11e9c1[_0x350dc9],_0x43d081,_0x34a52c)),_0x106c52=_0x53a294||null,_0x5265fb=_0x53a294?_0x11e9c1[_0x350dc9]:null),_0x106c52&&_0x4edd98&&_0x41023e(_0x53a294,F(_0x5265fb,_0x43d081,_0x34a52c),B(_0x11e9c1[_0x350dc9],_0x43d081,_0x34a52c));}function _0x41023e(_0xbabd36,_0x425528,_0x243928){const _0x4c90f8=_0x106c52['userId'],_0x1b5c89='revision:'+_0x96eadc+':'+_0x4c90f8+':'+_0x5a658d++,_0x774fc4=_0x34a52c['createRange'](_0x425528,_0x243928);_0x43d081['markers']['set'](_0x1b5c89,_0x774fc4),null!==_0x4c90f8&&_0x21aab1['add'](_0x4c90f8);}}['_getVidAttributeName'](_0xd36368){switch(_0xd36368['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x5e5e04,_0x1000ec){_0x5e5e04['baseVersion']=null;for(const _0x57b38c in _0x5e5e04){const _0x4483a5=_0x5e5e04[_0x57b38c];if(_0x4483a5 instanceof vt){const _0xa85a18=_0x1000ec['get'](_0x4483a5['root']['rootName']);_0x5e5e04[_0x57b38c]=this['_fixPosition'](_0x4483a5,_0xa85a18);}if(_0x4483a5 instanceof ft){const _0x574703=_0x1000ec['get'](_0x4483a5['root']['rootName']);_0x5e5e04[_0x57b38c]=this['_fixRange'](_0x4483a5,_0x574703);}'root'===_0x57b38c&&(_0x5e5e04['root']=_0x1000ec['get'](_0x5e5e04['root']['rootName']));}}['_fixRange'](_0x2ccd12,_0x233547){return this['editor']['model']['createRange'](this['_fixPosition'](_0x2ccd12['start'],_0x233547),this['_fixPosition'](_0x2ccd12['end'],_0x233547));}['_fixPosition'](_0x592836,_0x107e79){return this['editor']['model']['createPositionFromPath'](_0x107e79,_0x592836['path'],_0x592836['stickiness']);}['_handleInsertOperation'](_0x2bb6c1){const _0x33ad2a=this['_idsRoots']['get'](_0x2bb6c1['position']['root']['rootName']),_0x17edec=this['_fixPosition'](_0x2bb6c1['position'],_0x33ad2a),_0x3e5857=null===_0x2bb6c1['_authorId']?null:_0x2bb6c1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x471ff8=_0x17edec['parent'],_0x15f00e=this['_revisionId'],_0x533faf=[];for(const _0x4a4aae of _0x2bb6c1['nodes'])if(_0x4a4aae['is']('element'))_0x533faf['push'](this['_makeIdsRoot'](_0x4a4aae));else{for(let _0x597ce2=0x0;_0x597ce2<_0x4a4aae['offsetSize'];_0x597ce2++)_0x533faf['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x45f913=this['_revisionId'];for(let _0x31770d=_0x15f00e;_0x31770d<_0x45f913;_0x31770d++)this['_touched']['set'](_0x31770d,{'userId':_0x3e5857});_0x471ff8['_insertChild'](_0x17edec['offset'],_0x533faf);}['_handleMoveOperation'](_0x13ca46){(_0x13ca46=this['_cloneOperation'](_0x13ca46,this['_idsRoots']))['_execute']();const _0x1799c1=null===_0x13ca46['_authorId']?null:_0x13ca46['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x577486=_0x13ca46['getMovedRangeStart'](),_0x53ef7f=_0x577486['parent'],_0x29e905=_0x577486['offset'];!function _0x59f40a(_0x3874aa,_0x23c848,_0x535281,_0x512530){for(let _0x4fd071=_0x535281;_0x4fd071<_0x512530;_0x4fd071++){const _0x3bed53=_0x23c848['getChild'](_0x4fd071);_0x3bed53['is']('element','$text')?_0x3874aa['set'](_0x3bed53['getAttribute']('vid'),{'userId':_0x1799c1}):(_0x3874aa['set'](_0x3bed53['getAttribute']('vid_start'),{'userId':_0x1799c1}),_0x59f40a(_0x3874aa,_0x3bed53,0x0,_0x3bed53['childCount']),_0x3874aa['set'](_0x3bed53['getAttribute']('vid_end'),{'userId':_0x1799c1}));}}(this['_touched'],_0x53ef7f,_0x29e905,_0x29e905+_0x13ca46['howMany']);}['_handleMergeOperation'](_0xae2788){const _0x43ddcd=null===(_0xae2788=this['_cloneOperation'](_0xae2788,this['_idsRoots']))['_authorId']?null:_0xae2788['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x30e94d=_0xae2788['targetPosition']['parent'],_0xe71740=_0xae2788['sourcePosition']['parent'],_0x3ad882=_0x30e94d['getAttribute']('vid_end'),_0x42afc4=_0xe71740['getAttribute']('vid_start');_0x30e94d['_setAttribute']('vid_end',_0xe71740['getAttribute']('vid_end')),_0xe71740['_setAttribute']('vid_end',_0x3ad882),this['_touched']['set'](_0x42afc4,{'userId':_0x43ddcd}),this['_touched']['set'](_0x3ad882,{'userId':_0x43ddcd}),_0xae2788['_execute']();}['_handleSplitOperation'](_0x5dbd7e){const _0x17fb9b=null===(_0x5dbd7e=this['_cloneOperation'](_0x5dbd7e,this['_idsRoots']))['_authorId']?null:_0x5dbd7e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b3bb8=_0x5dbd7e['graveyardPosition'],_0x2e0d14=_0x5dbd7e['splitPosition']['parent'];_0x5dbd7e['_execute']();const _0x6e1780=_0x2e0d14['getAttribute']('vid_end'),_0x19a117=_0x5dbd7e['insertionPosition']['nodeAfter'];if(_0x2b3bb8){const _0x156f03=_0x19a117['getAttribute']('vid_end'),_0x2329d2=_0x2e0d14['getAttribute']('vid_end');_0x2e0d14['_setAttribute']('vid_end',_0x156f03),_0x19a117['_setAttribute']('vid_end',_0x2329d2),this['_touched']['set'](_0x2e0d14['getAttribute']('vid_end'),{'userId':_0x17fb9b}),this['_touched']['set'](_0x19a117['getAttribute']('vid_start'),{'userId':_0x17fb9b});}else{const _0x268dbb=this['_revisionId']++,_0x120ee4=this['_revisionId']++;_0x2e0d14['_setAttribute']('vid_end',_0x268dbb),_0x19a117['_setAttribute']('vid_start',_0x120ee4),_0x19a117['_setAttribute']('vid_end',_0x6e1780),this['_touched']['set'](_0x268dbb,{'userId':_0x17fb9b}),this['_touched']['set'](_0x120ee4,{'userId':_0x17fb9b});}}['_handleMarkerOperation'](_0x46a7a9){if(!_0x46a7a9['affectsData'])return;const _0x58fb34=(_0x46a7a9=this['_cloneOperation'](_0x46a7a9,this['_diffRoots']))['oldRange']?_0x46a7a9['oldRange']['root']:null,_0x1141e9=_0x46a7a9['newRange']?_0x46a7a9['newRange']['root']:null;_0x58fb34&&this['_markers']['delete'](_0x46a7a9['name']),_0x1141e9&&this['_markers']['set'](_0x46a7a9['name'],_0x46a7a9['newRange']['clone']());const _0x4b2049=null===_0x46a7a9['_authorId']?null:_0x46a7a9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3be5b9=_0x46a7a9['name'];if(!this['_touchedMarkers']['has'](_0x3be5b9))return void this['_touchedMarkers']['set'](_0x3be5b9,{'range':_0x46a7a9['oldRange'],'userId':_0x4b2049});const _0x4487ba=this['_touchedMarkers']['get'](_0x3be5b9),_0x535846=_0x4487ba['range'],_0x33bb7f=_0x46a7a9['newRange'];null==_0x535846&&null==_0x33bb7f||_0x535846&&_0x33bb7f&&_0x535846['isEqual'](_0x33bb7f)?this['_touchedMarkers']['delete'](_0x46a7a9['name']):_0x4487ba['userId']=_0x4b2049;}['_handleRootOperation'](_0x9ca6c5,_0x4589a1){this['_diffRoots']['has'](_0x9ca6c5['rootName'])?this['_diffRoots']['get'](_0x9ca6c5['rootName'])['_isAttached']=_0x9ca6c5['isAdd']:(this['_diffRoots']['set'](_0x9ca6c5['rootName'],P(_0x9ca6c5['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x9ca6c5['rootName'],{}),_0x4589a1&&this['_idsRoots']['set'](_0x9ca6c5['rootName'],P(_0x9ca6c5['rootName'],!0x0)));const _0x189ab6=null===_0x9ca6c5['_authorId']?null:_0x9ca6c5['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x242138=this['_touchedRoots']['get'](_0x9ca6c5['rootName']);_0x242138&&_0x242138['userId']===_0x189ab6?this['_touchedRoots']['delete'](_0x9ca6c5['rootName']):this['_touchedRoots']['set'](_0x9ca6c5['rootName'],{'userId':_0x189ab6,'isAttached':_0x9ca6c5['isAdd']});}['_handleRootAttributeOperation'](_0x848e94){const _0x12f385=this['_diffRootsAttributes']['get'](_0x848e94['root']['rootName']);null===_0x848e94['newValue']?delete _0x12f385[_0x848e94['key']]:_0x12f385[_0x848e94['key']]=_0x848e94['newValue'];}}function N(_0x565133){const _0x3aa127=P(_0x565133['rootName'],_0x565133['isAttached']());for(const _0x304a16 of _0x565133['getChildren']()){const _0x439811=_0x304a16['_clone'](!0x0);_0x3aa127['_appendChild'](_0x439811);}return _0x3aa127;}function P(_0x1c3681,_0x441235=!0x0){const _0x11db3e=new gt();return _0x11db3e['rootName']=_0x1c3681,_0x11db3e['_isAttached']=_0x441235,_0x11db3e['isAttached']=()=>_0x11db3e['_isAttached'],_0x11db3e;}function F(_0x19d463,_0xde1c00,_0x348be6){const _0x570e86='elementEnd'==_0x19d463['type']?_0x348be6['createPositionAt'](_0x19d463['item'],'end'):_0x348be6['createPositionBefore'](_0x19d463['item']);return _0x348be6['createPositionFromPath'](_0xde1c00,_0x570e86['path'],_0x570e86['stickiness']);}function B(_0x1b7c8c,_0x56fbb4,_0x5cb0c7){const _0x5dc882='elementStart'==_0x1b7c8c['type']?_0x5cb0c7['createPositionAt'](_0x1b7c8c['item'],0x0):_0x5cb0c7['createPositionAfter'](_0x1b7c8c['item']);return _0x5cb0c7['createPositionFromPath'](_0x56fbb4,_0x5dc882['path'],_0x5dc882['stickiness']);}class os extends _0x58bc5e{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1b5c72,_0xd65fd4){super(_0x1b5c72),this['focusTracker']=new _0x28705a(),this['keystrokes']=new _0x447715(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0xd65fd4),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x2a9be1({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2e5284=_0x4fa1ec=>_0x4fa1ec['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e5284),this['keystrokes']['set']('arrowleft',_0x2e5284),this['keystrokes']['set']('arrowup',_0x2e5284),this['keystrokes']['set']('arrowdown',_0x2e5284);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x595c74){this['revisionNameInputView']['fieldView']['element']['value']=_0x595c74['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5e4cbd){const _0x4cc57d=new nt(this['locale'],ti),_0x29ab6d=_0x4cc57d['fieldView'];_0x29ab6d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x583019=g(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5e4cbd&&(_0x583019+='\x20('+g(this['locale'],'optional')+')'),(_0x4cc57d['label']=_0x583019,_0x29ab6d['on']('input',()=>{this['revisionNameInputValue']=_0x29ab6d['element']['value']['trim']();}),_0x4cc57d);}}class f extends _0x408cb2{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0x19c46e=this['editor'],_0x3ee577=_0x19c46e['plugins']['get']('RevisionTracker');_0x19c46e['ui']['componentFactory']['add']('revisionHistory',_0x44fc4c=>{const _0x54bc6a=_0x5b3759(_0x44fc4c),_0x26be1e=_0x54bc6a['panelView']['children'],_0x1925dd=new _0x428bf3(_0x44fc4c),_0x1c45c4=new te(_0x44fc4c),_0x4166d1=new _0x389322(_0x44fc4c),_0x4aff24=new te(_0x44fc4c),_0x3407bc=new _0x389322(_0x44fc4c);return _0x54bc6a['bind']('isEnabled')['to'](_0x3ee577,'isReady',_0x3ee577,'isEnabled',_0x19c46e,'isReadOnly',(_0x3dea33,_0x418905,_0x24f400)=>_0x3dea33&&_0x418905&&!_0x24f400),_0x54bc6a['buttonView']['set']({'icon':_0x27f22e,'label':g(_0x44fc4c,'Revision\x20history'),'tooltip':!0x0}),_0x4166d1['set']({'label':g(_0x44fc4c,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x4166d1['bind']('isEnabled')['to'](_0x3ee577,'isReady',_0x3ee577,'isEnabled',_0x19c46e,'isReadOnly',(_0x1046fa,_0xdeaada,_0xbcf718)=>_0x1046fa&&_0xdeaada&&!_0xbcf718),_0x4166d1['on']('execute',()=>this['_showDialog']()),_0x3407bc['set']({'label':g(_0x44fc4c,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3407bc['bind']('isEnabled')['to'](_0x3ee577,'isReady',_0x19c46e,'isReadOnly',(_0x2fe006,_0x1cd719)=>_0x2fe006&&!_0x1cd719),_0x3407bc['on']('execute',()=>{_0x19c46e['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x54bc6a['isOpen']=!0x1,_0x19c46e['editing']['view']['focus']();}),_0x1c45c4['children']['add'](_0x4166d1),_0x4aff24['children']['add'](_0x3407bc),_0x1925dd['role']='menu',_0x1925dd['items']['addMany']([_0x1c45c4,_0x4aff24]),_0x26be1e['add'](_0x1925dd),_0x54bc6a;}),_0x19c46e['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1e36ba=this['editor'],_0x1278ea=_0x1e36ba['locale'],_0x2dfc6e=new _0x453f55(_0x1278ea),_0x76a255=new _0x4ce8a1(_0x1278ea);_0x2dfc6e['buttonView']['set']({'icon':_0x27f22e,'label':g(_0x1278ea,'Revision\x20history')});const _0x1ad511=new _0x4ff6ce(_0x1278ea,_0x2dfc6e),_0x17d3ad=new _0x146077(_0x1278ea);_0x17d3ad['set']({'label':g(_0x1278ea,'Save\x20current\x20revision')}),_0x17d3ad['delegate']('execute')['to'](_0x2dfc6e),_0x17d3ad['on']('execute',()=>{this['_showDialog']();}),_0x1ad511['children']['add'](_0x17d3ad),_0x76a255['items']['add'](_0x1ad511);const _0x57d4d1=new _0x4ff6ce(_0x1278ea,_0x2dfc6e),_0x27895e=new _0x146077(_0x1278ea);return _0x27895e['set']({'label':g(_0x1278ea,'Open\x20revision\x20history')}),_0x27895e['delegate']('execute')['to'](_0x2dfc6e),_0x27895e['on']('execute',()=>{_0x1e36ba['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x57d4d1['children']['add'](_0x27895e),_0x76a255['items']['add'](_0x57d4d1),_0x2dfc6e['panelView']['children']['add'](_0x76a255),_0x2dfc6e;}['_showDialog'](){const _0x4776ba=this['editor'],_0x2f86f0=_0x4776ba['locale'],_0x2b1f7d=_0x4776ba['plugins']['get']('Dialog'),_0x24682d=_0x4776ba['plugins']['get']('RevisionTracker');function _0x988d88(_0x129c64){_0x4776ba['config']['get']('revisionHistory.requireRevisionName')&&''===_0x129c64['revisionName']?_0x129c64['revisionNameInputView']['errorText']=g(_0x2f86f0,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x4776ba['plugins']['get'](u)['saveRevision']({'name':_0x129c64['revisionName']}),_0x2b1f7d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x988d88(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x2b1f7d['show']({'id':'revisionSave','title':g(_0x2f86f0,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':g(_0x4776ba['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x2b1f7d['hide']()},{'label':g(_0x4776ba['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x43d810){_0x43d810['bind']('isEnabled')['to'](_0x24682d,'isReady',_0x24682d,'isEnabled',_0x4776ba,'isReadOnly',(_0x5a9826,_0x27d738,_0x49e835)=>_0x5a9826&&_0x27d738&&!_0x49e835);},'onExecute':()=>_0x988d88(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3e7131=this['editor'],_0x17e08f=_0x3e7131['locale'];this['_saveRevisionFormView']=new os(_0x17e08f,_0x3e7131['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Q extends _0x58bc5e{['changeId'];['_model'];constructor(_0x2cce76,_0x20478e){super(_0x2cce76),this['_model']=_0x20478e,this['changeId']=_0x20478e['id'];const _0x1f1b07=this['bindTemplate'],_0x168ec4=g(_0x2cce76,_0x20478e['data']['isSuggestion']?'Suggested\x20by':'add'==_0x20478e['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x20478e['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1f1b07['to']('type',_0x43f6d7=>'ck-revision-change__'+_0x43f6d7)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x168ec4}]},{'text':'\x20'+_0x20478e['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x220d32(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4e158d){super(),this['id']=_0x4e158d['id']||_0x48e51d(),this['author']=_0x4e158d['author'],this['type']=_0x4e158d['type'],this['data']=_0x4e158d['data']||{},this['rootName']=_0x4e158d['rootName'],this['set']('createdAt',_0x4e158d['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(_0x236908,_0x236953){this['newRevisionId']=_0x236908,this['oldRevisionId']=_0x236953,this['changes']=new _0x1e4ab6();}['_setChanges'](_0x27927f){for(const _0x57bbf9 of _0x27927f)this['changes']['add'](_0x57bbf9);}}class m extends _0x408cb2{['repository'];['adapter']=null;['_utils'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x53f292,_0x29946a,I,V];}constructor(_0x1e1599){super(_0x1e1599),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_utils']=this['editor']['plugins']['get']('RevisionHistoryUtils'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x14a7f5,_0x34dee8,_0x2111af)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x8eb0cf=>{for(const _0x13488b of this['editor']['editing']['view']['document']['roots'])_0x2111af?_0x8eb0cf['removeClass']('ck-editor__editable__overlay',_0x13488b):_0x8eb0cf['addClass']('ck-editor__editable__overlay',_0x13488b);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1ca579=>null!==_0x1ca579),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x3dc677,_0x29ce11,_0x1d4fd1)=>_0x3dc677&&_0x1d4fd1?_0x29ce11['changes']['getIndex'](_0x1d4fd1):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x177de9,_0x14152b)=>_0x177de9?_0x14152b['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['_balloon']=this['editor']['plugins']['get'](_0x29946a);}['init'](){const _0x5670fd=this['editor'],_0x1dd3fd=new pt(_0x5670fd,{'direction':'backward'}),_0x5ce875=new pt(_0x5670fd,{'direction':'forward'});(_0x5670fd['commands']['add']('showPreviousChange',_0x1dd3fd),_0x5670fd['commands']['add']('showNextChange',_0x5ce875),_0x5670fd['commands']['add']('restoreRevision',new wt(_0x5670fd)),this['on']('change:numberOfChanges',()=>{_0x1dd3fd['refresh'](),_0x5ce875['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5670fd['enableReadOnlyMode']('revision-viewer'),_0x5670fd['plugins']['has']('WidgetToolbarRepository'))&&_0x5670fd['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionDocumentData'](_0x423153){return await this['_utils']['loadRevisionData'](_0x423153,this['adapter']),this['_utils']['getRevisionDocumentData'](_0x423153);}async['getRevisionRootsAttributes'](_0x1e4a83){return await this['_utils']['loadRevisionData'](_0x1e4a83,this['adapter']),this['_utils']['getRevisionRootsAttributes'](_0x1e4a83);}async['compare'](_0x19cc07,_0xb4d0b2,_0x5b744f=!0x1){if(!this['isEnabled'])return;const _0x2425e6=this['diff'],_0x14735c=this['repository'],_0x560e4a='string'==typeof _0x19cc07?_0x14735c['getRevision'](_0x19cc07):_0x19cc07,_0x3fc4f6='string'==typeof _0xb4d0b2?_0x14735c['getRevision'](_0xb4d0b2):_0xb4d0b2,_0x522b86=_0x560e4a['id'],_0x25d8c7=_0x3fc4f6?_0x3fc4f6['id']:null;if(!_0x5b744f&&this['diff']&&this['diff']['newRevisionId']===_0x522b86&&this['diff']['oldRevisionId']===_0x25d8c7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x522b86,_0x25d8c7);const _0x416952=this['_getRevisionsRange'](_0x560e4a,_0x3fc4f6,!0x0)['map'](_0x3b306a=>this['_utils']['loadRevisionData'](_0x3b306a,this['adapter']));return _0x416952['push'](new Promise(_0x3f0939=>{setTimeout(_0x3f0939,0x14);})),Promise['all'](_0x416952)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x25bd8a=this['_getDiff'](_0x522b86,_0x25d8c7);for(const _0x3bdef4 of _0x25bd8a['changes'])this['_changeIdToChange']['set'](_0x3bdef4['id'],_0x3bdef4);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x126d3b=>{for(const _0x181bf2 of this['editor']['model']['document']['getRootNames']())_0x126d3b['detachRoot'](_0x181bf2);for(const _0x834bb8 of Object['keys'](_0x25bd8a['model'])){const _0x57190b=_0x126d3b['addRoot'](_0x834bb8);for(const _0x8534bf of Object['keys'](_0x25bd8a['attributes'][_0x834bb8]))_0x126d3b['setAttribute'](_0x8534bf,_0x25bd8a['attributes'][_0x834bb8][_0x8534bf],_0x57190b);_0x126d3b['insert'](_0x25bd8a['model'][_0x834bb8],_0x57190b,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x25bd8a['changes'])),this['isReady']=!0x0;})['catch'](_0x10a868=>{console['error'](_0x10a868),this['_cleanUp'](),_0x2425e6&&(this['diff']=_0x2425e6),this['isReady']=!0x0;});}['addRevisionData'](_0xc1fee1,_0x4c2829){const _0x440490=this['repository']['createRevision'](_0xc1fee1);return _0x440490['on']('_update',(_0x1c5384,_0x34aa8d,_0x5720d1)=>_0x4c2829(_0x34aa8d,_0x5720d1,_0x440490)),this['repository']['addRevision'](_0x440490),_0x440490;}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x3fe060=>{for(const _0x3b856c of this['editor']['model']['document']['getRootNames']())_0x3fe060['detachRoot'](_0x3b856c);});}['_sortAndFilterDiffChanges'](_0x52b607){const _0x489e89=[],_0x240cd7=new Map();for(const _0x44619c of this['editor']['model']['document']['getRootNames']()){const _0x2c1508=this['editor']['editing']['view']['getDomRoot'](_0x44619c);if(!_0x2c1508)continue;const _0x4ada39=_0x2c1508['getClientRects']()['item'](0x0);_0x4ada39&&(_0x489e89['push'](_0x44619c),_0x240cd7['set'](_0x44619c,_0x4ada39));}return _0x489e89['sort']((_0x21a864,_0x1b7c9f)=>{const _0x905a14=_0x240cd7['get'](_0x21a864),_0x59af29=_0x240cd7['get'](_0x1b7c9f);return _0x905a14['y']-_0x59af29['y']||_0x905a14['x']-_0x59af29['x'];}),(_0x52b607=_0x52b607['filter'](_0x166c27=>_0x489e89['includes'](_0x166c27['rootName'])))['sort']((_0x2cab43,_0x5e5b3c)=>_0x489e89['indexOf'](_0x2cab43['rootName'])-_0x489e89['indexOf'](_0x5e5b3c['rootName'])),_0x52b607;}['_makeTape'](_0x23c7ce){const _0x42c87d=Array['from'](_0x23c7ce['markers'])['filter'](([_0x55e2c2,_0x4ce402])=>_0x55e2c2['startsWith']('revision:')&&!_0x4ce402['isCollapsed']),_0x42353c=Array['from'](this['editor']['model']['createRangeIn'](_0x23c7ce)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x42c87d['length'])for(const _0x5f3fa5 of _0x42353c){const [_0x2883b8,_0x2768c4]=_0x42c87d[0x0],[,_0x17978f,_0x2efdab]=_0x2883b8['split'](':');if(_0x2768c4['end']['isEqual'](_0x5f3fa5['nextPosition'])&&_0x42c87d['shift'](),(_0x5f3fa5['previousPosition']['isEqual'](_0x2768c4['start'])||_0x5f3fa5['previousPosition']['isAfter'](_0x2768c4['start']))&&('insertion'==_0x17978f?_0x5f3fa5['isAdded']={'userId':_0x2efdab}:'deletion'==_0x17978f&&(_0x5f3fa5['isRemoved']={'userId':_0x2efdab})),0x0==_0x42c87d['length'])break;}return _0x42353c;}['_refreshStartEndIndex'](_0x32d4b4){const _0xbeff8d=new Map();for(let _0x220468=0x0;_0x220468<_0x32d4b4['length'];_0x220468++)'text'===_0x32d4b4[_0x220468]['type']?(_0x32d4b4[_0x220468]['item']['startIndex']=_0x220468,_0x32d4b4[_0x220468]['item']['endIndex']=_0x220468):('elementStart'===_0x32d4b4[_0x220468]['type']?_0x32d4b4[_0x220468]['item']['startIndex']=_0x220468:'elementEnd'===_0x32d4b4[_0x220468]['type']&&(_0x32d4b4[_0x220468]['item']['endIndex']=_0x220468),_0xbeff8d['set'](_0x32d4b4[_0x220468]['id'],_0x220468));for(const _0x491fe7 of _0xbeff8d['values']())'elementStart'===_0x32d4b4[_0x491fe7]['type']?_0x32d4b4[_0x491fe7]['item']['endIndex']=_0xbeff8d['get'](_0x32d4b4[_0x491fe7]['pairId']):'elementEnd'===_0x32d4b4[_0x491fe7]['type']&&(_0x32d4b4[_0x491fe7]['item']['startIndex']=_0xbeff8d['get'](_0x32d4b4[_0x491fe7]['pairId']));}['_processTape'](_0x91ec12){for(let _0x11687b=0x0;_0x11687b<_0x91ec12['length'];_0x11687b++){if('elementStart'===_0x91ec12[_0x11687b]['type'])_0x91ec12[_0x11687b]['item']['startIndex']=_0x11687b;else{if('elementEnd'===_0x91ec12[_0x11687b]['type']){_0x91ec12[_0x11687b]['item']['endIndex']=_0x11687b;const _0x3ed6af=_0x91ec12[_0x11687b]['item']['startIndex'];_0x91ec12[_0x3ed6af]['pairId']=_0x91ec12[_0x11687b]['id'],_0x91ec12[_0x11687b]['pairId']=_0x91ec12[_0x3ed6af]['id'];}else _0x91ec12[_0x11687b]['item']['startIndex']=_0x11687b,_0x91ec12[_0x11687b]['item']['endIndex']=_0x11687b,_0x91ec12[_0x11687b]['pairId']=null;}_0x91ec12[_0x11687b]['markersStart']||(_0x91ec12[_0x11687b]['markersStart']=[],_0x91ec12[_0x11687b]['markersEnd']=[]);}}['_markInsertions'](_0xab1c57,_0x562359){const _0x1c15fe=_0xab1c57['filter'](_0xadb681=>!_0xadb681['isAdded']);for(let _0x3bf0b7=0x0;_0x3bf0b7<_0x562359['length'];_0x3bf0b7++)_0x562359[_0x3bf0b7]['isAdded']&&(_0x1c15fe[_0x3bf0b7]['isAdded']=_0x562359[_0x3bf0b7]['isAdded']);}['_getDiff'](_0x23e902,_0x51432d=null){const _0xd4d0fb=this['repository']['getRevision'](_0x23e902),_0x46a29a=_0x51432d?this['repository']['getRevision'](_0x51432d):null,_0x49f09f=this['_getRevisionsRange'](_0xd4d0fb,_0x46a29a),_0x53fcac=_0x49f09f[_0x49f09f['length']-0x1],_0x39d924=new Map(),_0x22d370={'model':{},'attributes':{},'changes':[]},_0xc78576=new Set(),_0x538471=new Map();for(let _0xe67b2c=_0x49f09f['length']-0x1;_0xe67b2c>=0x0;_0xe67b2c--){const _0x4f3a20=_0x49f09f[_0xe67b2c];for(const _0x1ee7d2 of Object['keys'](_0x4f3a20['diffData']))if(_0x4f3a20['diffData'][_0x1ee7d2]['attachChange']){const _0x25369c=_0x4f3a20['diffData'][_0x1ee7d2]['attachChange'];_0x25369c['isAttached']?(_0xc78576['add'](_0x1ee7d2),_0x538471['has'](_0x1ee7d2)&&_0x538471['get'](_0x1ee7d2)['userId']==_0x25369c['userId']?_0x538471['delete'](_0x1ee7d2):_0x538471['set'](_0x1ee7d2,_0x25369c)):_0x538471['has'](_0x1ee7d2)?(_0xc78576['delete'](_0x1ee7d2),_0x538471['delete'](_0x1ee7d2)):(_0xc78576['add'](_0x1ee7d2),_0x538471['set'](_0x1ee7d2,_0x25369c));}else _0xc78576['add'](_0x1ee7d2);}for(const _0x22eeb8 of _0xc78576){const _0x5cc48b=_0x538471['has'](_0x22eeb8)&&!_0x538471['get'](_0x22eeb8)['isAttached'];let _0x132011=_0x5cc48b?_0x49f09f['length']-0x1:0x0;const _0x1cb4af=_0x5cc48b?-0x1:0x1;for(;_0x49f09f[_0x132011];){const _0x534d94=_0x49f09f[_0x132011];if(_0x534d94['diffData'][_0x22eeb8]){const _0x5c75f6=_0x5cc48b?_0x534d94['diffData'][_0x22eeb8]['attributesBefore']:_0x534d94['diffData'][_0x22eeb8]['attributesAfter'];_0x22d370['attributes'][_0x22eeb8]=_0x5c75f6?_0x9b4a86(_0x5c75f6):{};break;}_0x132011+=_0x1cb4af;}}for(const _0x21e75a of _0x49f09f){_0x21e75a['model']={};for(const _0xdebeb1 of _0x21e75a['authors'])_0x39d924['set'](_0xdebeb1['id'],_0xdebeb1);for(const _0x53380c of _0xc78576){const _0x153c21=_0x21e75a['diffData'][_0x53380c]?_0x21e75a['diffData'][_0x53380c]['insertions']:'[]',_0x20c68d=_0x21e75a['diffData'][_0x53380c]?_0x21e75a['diffData'][_0x53380c]['deletions']:'[]';_0x21e75a['model'][_0x53380c]={'insertions':this['_utils']['_makeModelFromViewString'](_0x153c21),'deletions':this['_utils']['_makeModelFromViewString'](_0x20c68d)};}}for(const _0xc50f0d of _0xc78576){let _0x16ad7d=null,_0x278ae9=0x0;const _0x1be777=new Map(Array['from'](_0xd4d0fb['model'][_0xc50f0d]['insertions']['markers'])['filter'](([_0x16c280])=>!_0x16c280['startsWith']('revision:')));let _0x49576b=0x0;for(const _0x4e41d9 of _0x49f09f){const _0x150013=this['_makeTape'](_0x4e41d9['model'][_0xc50f0d]['insertions']);_0x4e41d9==_0xd4d0fb?(_0x16ad7d=_0x150013,_0x278ae9=_0x16ad7d['length'],_0x16ad7d['forEach'](_0x3d7640=>{_0x3d7640['id']=_0x49576b++;}),this['_processTape'](_0x16ad7d)):this['_markInsertions'](_0x16ad7d,_0x150013);const _0x35ed9f=_0x16ad7d['filter'](_0x265806=>!_0x265806['isAdded'])['map'](_0x338d8b=>_0x338d8b['id']);let _0x1c7519=0x0;const _0x164520=this['_makeTape'](_0x4e41d9['model'][_0xc50f0d]['deletions']);_0x164520['forEach'](_0x29bacb=>{_0x29bacb['isRemoved']?_0x29bacb['id']=_0x278ae9++:_0x29bacb['id']=_0x35ed9f[_0x1c7519++];}),this['_processTape'](_0x164520),this['_setDistance'](_0x16ad7d,'isAdded'),this['_setDistance'](_0x164520,'isRemoved'),_0x4e41d9==_0xd4d0fb&&this['_markMarkers'](_0x16ad7d,_0x1be777),_0x16ad7d=this['_joinTapes'](_0x16ad7d,_0x164520),this['_refreshStartEndIndex'](_0x16ad7d),this['_setDistance'](_0x16ad7d,'isRemoved');}_0x16ad7d=_0x16ad7d['filter'](_0x1e9747=>!(_0x1e9747['isAdded']&&_0x1e9747['isRemoved']));const _0x59ea26=new Map(_0x53fcac['model'][_0xc50f0d]['deletions']['markers']),_0x14298f=new Set(_0x1be777['keys']());for(const _0x19fb8f of _0x59ea26['keys']())_0x14298f['delete'](_0x19fb8f);this['_markSuggestions'](_0x16ad7d,_0x14298f),this['_fixObsoleteTags'](_0x16ad7d),_0x16ad7d=this['_removeMissingPairs'](_0x16ad7d),_0x16ad7d=this['_markMismatchedRemovedTags'](_0x16ad7d),_0x16ad7d=this['_removeUnsupportedChanges'](_0x16ad7d);const {root:_0x3244b4,changes:_0x3abc20}=this['_makeModelFromTape'](_0x16ad7d,_0x39d924,_0xc50f0d);_0x22d370['model'][_0xc50f0d]=_0x3244b4;const _0x546257=_0x538471['get'](_0xc50f0d);if(_0x546257){const _0x5a590f=_0x39d924['get'](_0x546257['userId']),_0x90b627=new r({'author':_0x5a590f,'type':_0x546257['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc50f0d});_0x3abc20['unshift'](_0x90b627),_0x22d370['attributes'][_0xc50f0d]['revisionHistoryAttachChange']=_0x90b627['id'];}_0x22d370['changes']=_0x22d370['changes']['concat'](_0x3abc20);}return _0x22d370;}['_markMarkers'](_0x2a41b6,_0x2f2874){for(let _0xfb5c5e=0x0;_0xfb5c5e<_0x2a41b6['length'];_0xfb5c5e++)for(const [_0x14e5e3,_0x5168bd]of _0x2f2874)!_0x5168bd['isCollapsed']&&_0x5168bd['start']['isEqual'](_0x2a41b6[_0xfb5c5e]['previousPosition'])&&_0x2a41b6[_0xfb5c5e]['markersStart']['push'](_0x14e5e3),_0x5168bd['end']['isEqual'](_0x2a41b6[_0xfb5c5e]['nextPosition'])&&_0x2a41b6[_0xfb5c5e]['markersEnd']['push'](_0x14e5e3);}['_joinTapes'](_0x4da942,_0x350c41){let _0x5e34c3=[],_0x1b88a2=0x0,_0x5e7d67=0x0;for(;_0x1b88a2<_0x4da942['length']||_0x5e7d67<_0x350c41['length'];){const _0x4b0590=_0x4da942[_0x1b88a2]||{},_0x1e2e3e=_0x350c41[_0x5e7d67]||{};if(_0x4b0590['id']==_0x1e2e3e['id'])_0x1b88a2++,_0x5e7d67++,_0x5e34c3['push'](_0x4b0590);else{if(_0x1e2e3e['isRemoved']&&_0x4b0590['isAdded']){const {commonTape:_0x23b728,iEnd:_0xc66681,jEnd:_0x2be8a6}=this['_threeWayMerge'](_0x4da942,_0x1b88a2,_0x350c41,_0x5e7d67);_0x5e34c3=_0x5e34c3['concat'](_0x23b728),_0x1b88a2=_0xc66681,_0x5e7d67=_0x2be8a6;}else _0x1e2e3e['isRemoved']?(_0x5e7d67++,_0x5e34c3['push'](_0x1e2e3e)):(_0x1b88a2++,_0x5e34c3['push'](_0x4b0590));}}return _0x5e34c3;}['_markSuggestions'](_0x217fa9,_0x15afd5){const _0xba9179=[];for(let _0x19a150=0x0;_0x19a150<_0x217fa9['length'];_0x19a150++){for(let _0x4f13b9=0x0;_0x4f13b9<_0x217fa9[_0x19a150]['markersStart']['length'];_0x4f13b9++){const _0x34ac99=_0x217fa9[_0x19a150]['markersStart'][_0x4f13b9];if(!_0x15afd5['has'](_0x34ac99))continue;const {group:_0x470dee,type:_0x2f0287,authorId:_0x222c64}=_0x3f3535(_0x34ac99);'revision-suggestion'!=_0x470dee||'insertion'!=_0x2f0287&&'deletion'!=_0x2f0287||(_0xba9179['unshift']({'type':_0x2f0287,'name':_0x34ac99,'userId':_0x222c64}),_0x217fa9[_0x19a150]['markersStart']['splice'](_0x4f13b9,0x1),_0x4f13b9--);}_0x2c2326(_0x217fa9[_0x19a150]);for(let _0x2b501f=0x0;_0x2b501f<_0x217fa9[_0x19a150]['markersEnd']['length'];_0x2b501f++){const _0x2249ef=_0x217fa9[_0x19a150]['markersEnd'][_0x2b501f];if(!_0x15afd5['has'](_0x2249ef))continue;const {group:_0x5bf5af,type:_0x457b97}=_0x3f3535(_0x2249ef);if('revision-suggestion'!=_0x5bf5af||'insertion'!=_0x457b97&&'deletion'!=_0x457b97)continue;_0x217fa9[_0x19a150]['markersEnd']['splice'](_0x2b501f,0x1),_0x2b501f--;const _0x373cab=_0xba9179['findIndex'](_0x565d7a=>_0x565d7a['name']==_0x2249ef);_0x373cab>-0x1&&_0xba9179['splice'](_0x373cab,0x1);}}function _0x3f3535(_0x448119){const _0x2149d8=_0x448119['split'](':');return{'group':_0x2149d8[0x0],'type':_0x2149d8[0x1],'subType':_0x2149d8['length']>=0x5?_0x2149d8[0x2]:null,'id':_0x2149d8['length']<0x5?_0x2149d8[0x2]:_0x2149d8[0x3],'authorId':_0x2149d8['length']<0x5?_0x2149d8[0x3]:_0x2149d8[0x4],'markerCount':0x6==_0x2149d8['length']?_0x2149d8[0x5]:null};}function _0x2c2326(_0x553d06){for(let _0x3d4391=0x0;_0x3d4391<_0xba9179['length'];_0x3d4391++){if(_0x553d06['isAdded']&&'insertion'==_0xba9179[_0x3d4391]['type'])return _0x553d06['isAddSuggestion']=_0xba9179[_0x3d4391],void delete _0x553d06['isAdded'];if(!_0x553d06['isAdded']&&!_0x553d06['isRemoved']&&'deletion'==_0xba9179[_0x3d4391]['type'])return void(_0x553d06['isRemoveSuggestion']=_0xba9179[_0x3d4391]);}}}['_setDistance'](_0x37d127,_0x1eaa06){let _0x35496f=0x0,_0x3f78cc=!0x1;const _0x973885=new Map();for(const _0x2e237d of _0x37d127)_0x2e237d[_0x1eaa06]?_0x3f78cc&&(_0x35496f++,_0x3f78cc=!0x1):(_0x35496f++,_0x3f78cc=!0x0),_0x973885['set'](_0x2e237d['id'],_0x35496f);for(let _0x3a8d65=0x0;_0x3a8d65<_0x37d127['length'];_0x3a8d65++){if('isRemoved'==_0x1eaa06&&_0x37d127[_0x3a8d65]['isAdded']||'isAdded'==_0x1eaa06&&_0x37d127[_0x3a8d65]['isRemoved'])continue;if('text'==_0x37d127[_0x3a8d65]['type']){_0x37d127[_0x3a8d65]['distance']=0x0;continue;}const _0x32eb44=_0x973885['get'](_0x37d127[_0x3a8d65]['pairId']),_0x47f9c6=_0x973885['get'](_0x37d127[_0x3a8d65]['id']);_0x37d127[_0x3a8d65]['distance']=_0x32eb44-_0x47f9c6;}}['_getRevisionsRange'](_0x21321e,_0x1c7488,_0xb06319=!0x1){const _0x1642be=[];let _0x53ad01=this['repository']['getIndex'](_0x21321e),_0x104822=this['repository']['getIndex'](_0x1c7488);for(-0x1==_0x104822&&(_0x104822=this['repository']['_revisions']['length'],_0xb06319=!0x1);_0x53ad01<_0x104822;)_0x1642be['push'](this['repository']['getRevision'](_0x53ad01)),_0x53ad01++;return _0xb06319&&_0x1642be['push'](this['repository']['getRevision'](_0x53ad01)),_0x1642be;}['_threeWayMerge'](_0x2bcf75,_0x163521,_0x11ef92,_0x434485){const _0x1f5ea1=this['editor']['model']['schema'];let _0x5a4ff0=_0x163521;for(;_0x2bcf75[_0x5a4ff0]&&_0x2bcf75[_0x5a4ff0]['isAdded'];)_0x5a4ff0++;let _0x34e147=_0x434485;for(;_0x11ef92[_0x34e147]&&_0x11ef92[_0x34e147]['isRemoved'];)_0x34e147++;_0x207b0c(_0x2bcf75,_0x163521,_0x5a4ff0),_0x207b0c(_0x11ef92,_0x434485,_0x34e147);const _0xe9a568=_0x11ef92['slice'](_0x434485,_0x34e147)['concat'](_0x2bcf75['slice'](_0x163521,_0x5a4ff0));return _0xe9a568['sort']((_0x2718fc,_0x2cbb5a)=>_0x2718fc['side']!=_0x2cbb5a['side']?_0x2718fc['side']-_0x2cbb5a['side']:_0x2718fc['level']!=_0x2cbb5a['level']?_0x2718fc['level']-_0x2cbb5a['level']:_0x2718fc['distance']!=_0x2cbb5a['distance']?_0x2cbb5a['distance']-_0x2718fc['distance']:!!_0x2718fc['isAdded']!=!!_0x2cbb5a['isAdded']?-0x1==_0x2718fc['side']||0x0==_0x2718fc['side']?_0x2718fc['isAdded']?-0x1:0x1:_0x2718fc['isAdded']?0x1:-0x1:_0x2718fc['index']-_0x2cbb5a['index']),{'commonTape':_0xe9a568,'iEnd':_0x5a4ff0,'jEnd':_0x34e147};function _0x207b0c(_0x2fec3a,_0x5d7fe5,_0x17e207){let _0x2860c5=-0x1,_0x1823e1=Number['POSITIVE_INFINITY'],_0x42cc79=!0x0;for(let _0x471c6d=_0x5d7fe5;_0x471c6d<_0x17e207;_0x471c6d++)if(_0x1f5ea1['isInline'](_0x2fec3a[_0x471c6d]['item'])||(_0x42cc79=!0x1),_0x2fec3a[_0x471c6d]['item']['startIndex']<_0x5d7fe5&&(_0x2860c5=_0x471c6d),_0x2fec3a[_0x471c6d]['item']['endIndex']>=_0x17e207){_0x1823e1=_0x471c6d;break;}_0x42cc79&&(_0x2860c5=_0x17e207-0x1);for(let _0x36df0c=_0x5d7fe5;_0x36df0c<_0x17e207;_0x36df0c++)_0x2fec3a[_0x36df0c]['side']=_0x36df0c<=_0x2860c5?-0x1:_0x36df0c<_0x1823e1?0x0:0x1,_0x2fec3a[_0x36df0c]['index']=_0x36df0c;let _0x3b488f=0x0;for(let _0x41c35d=_0x5d7fe5;_0x41c35d<=_0x2860c5;_0x41c35d++)0x0==_0x2fec3a[_0x41c35d]['distance']?_0x2fec3a[_0x41c35d]['level']=_0x3b488f:(_0x3b488f++,_0x2fec3a[_0x41c35d]['level']=_0x3b488f,_0x3b488f++);for(let _0x33c0b5=_0x5d7fe5;_0x33c0b5<_0x17e207;_0x33c0b5++)0x0==_0x2fec3a[_0x33c0b5]['side']&&(_0x2fec3a[_0x33c0b5]['level']=_0x3b488f);_0x3b488f=0x0;for(let _0x59f816=_0x17e207-0x1;_0x59f816>=_0x1823e1;_0x59f816--)0x0==_0x2fec3a[_0x59f816]['distance']?_0x2fec3a[_0x59f816]['level']=_0x3b488f:(_0x3b488f--,_0x2fec3a[_0x59f816]['level']=_0x3b488f,_0x3b488f--);}}['_fixObsoleteTags'](_0x4a29c6){const _0x1b3699=new Map(),_0x5bd27b=this['editor']['model']['schema'];for(let _0x2b858d=0x1;_0x2b858d<_0x4a29c6['length'];_0x2b858d++){let _0x450ae2,_0x145e8b,_0x496764;const _0x2b35b3=_0x4a29c6[_0x2b858d],_0x82250f=_0x4a29c6[_0x2b858d-0x1];if('text'==_0x2b35b3['type'])continue;if(_0x2b35b3['type']!=_0x82250f['type'])continue;if(!_0x5bd27b['isBlock'](_0x82250f['item'])||_0x5bd27b['isLimit'](_0x82250f['item']))continue;if(!_0x5bd27b['isBlock'](_0x2b35b3['item'])||_0x5bd27b['isLimit'](_0x2b35b3['item']))continue;if((_0x4a29c6[_0x2b858d]['isAdded']||_0x4a29c6[_0x2b858d]['isAddSuggestion'])&&_0x4a29c6[_0x2b858d-0x1]['isRemoved'])_0x450ae2=_0x4a29c6[_0x2b858d],_0x145e8b=_0x4a29c6[_0x2b858d-0x1],_0x496764=_0x2b858d-0x1;else{if(!_0x4a29c6[_0x2b858d]['isRemoved']||!_0x4a29c6[_0x2b858d-0x1]['isAdded']&&!_0x4a29c6[_0x2b858d-0x1]['isAddSuggestion'])continue;_0x450ae2=_0x4a29c6[_0x2b858d-0x1],_0x145e8b=_0x4a29c6[_0x2b858d],_0x496764=_0x2b858d;}const _0x199896=_0x450ae2['level']==_0x145e8b['level'],_0x4dc7b6=Math['abs'](_0x450ae2['level'])<Math['abs'](_0x145e8b['level'])&&0x0==_0x145e8b['distance'];(_0x199896||_0x4dc7b6)&&(_0x1b3699['set'](_0x145e8b['id'],_0x450ae2['id']),_0x4a29c6['splice'](_0x496764,0x1),_0x2b858d--,_0x450ae2['isAdded']=!0x1);}for(let _0x5d7370=0x0;_0x5d7370<_0x4a29c6['length'];_0x5d7370++)_0x1b3699['has'](_0x4a29c6[_0x5d7370]['pairId'])&&(_0x4a29c6[_0x5d7370]['pairId']=_0x1b3699['get'](_0x4a29c6[_0x5d7370]['pairId']));}['_removeMissingPairs'](_0x470939){const _0x373e79=new Set(_0x470939['map'](_0x2f7e78=>_0x2f7e78['id']));for(let _0x36d07d=0x0;_0x36d07d<_0x470939['length'];_0x36d07d++)_0x373e79['has'](_0x470939[_0x36d07d]['pairId'])||0x0==_0x470939[_0x36d07d]['distance']||(_0x470939[_0x36d07d]['isIncorrect']=!0x0);return _0x470939['filter'](_0x32c94b=>!_0x32c94b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x36cbaf){const _0x3e5f82=new Set();for(let _0x101bab=0x0;_0x101bab<_0x36cbaf['length'];_0x101bab++){if(_0x3e5f82['has'](_0x36cbaf[_0x101bab]['id'])&&_0x36cbaf[_0x101bab]['isRemoved']&&(_0x36cbaf[_0x101bab]['isIncorrect']=!0x0),_0x36cbaf[_0x101bab]['isIncorrect'])continue;if(0x0==_0x36cbaf[_0x101bab]['distance'])continue;if('elementStart'!=_0x36cbaf[_0x101bab]['type'])continue;if(null==_0x36cbaf[_0x101bab]['pairId'])continue;let _0x3afd2c=_0x101bab+0x1,_0x45c009=0x0;for(;_0x36cbaf[_0x3afd2c]['id']!=_0x36cbaf[_0x101bab]['pairId'];)'elementStart'==_0x36cbaf[_0x3afd2c]['type']?_0x45c009++:'elementEnd'==_0x36cbaf[_0x3afd2c]['type']&&_0x45c009--,_0x3afd2c++;if(0x0!=_0x45c009){if(_0x36cbaf[_0x101bab]['isRemoved'])_0x36cbaf[_0x101bab]['isIncorrect']=!0x0;else{for(;_0x3afd2c!=_0x101bab;)_0x36cbaf[_0x3afd2c]['isRemoved']&&0x0!=_0x36cbaf[_0x3afd2c]['distance']&&(_0x36cbaf[_0x3afd2c]['isIncorrect']=!0x0,_0x3e5f82['add'](_0x36cbaf[_0x3afd2c]['pairId'])),_0x3afd2c--;}}}return _0x36cbaf['filter'](_0x8fff34=>!_0x8fff34['isIncorrect']);}['_removeUnsupportedChanges'](_0xb3380e){const _0x3ef57f=this['editor']['model']['schema'];for(let _0x2a1480=0x0;_0x2a1480<_0xb3380e['length'];_0x2a1480++){if(!(_0xb3380e[_0x2a1480]['isAdded']||_0xb3380e[_0x2a1480]['isAddSuggestion']||_0xb3380e[_0x2a1480]['isRemoved']||_0xb3380e[_0x2a1480]['isRemoveSuggestion']))continue;if(0x0==_0xb3380e[_0x2a1480]['distance'])continue;const _0x14b481=_0xb3380e[_0x2a1480]['item'];_0x3ef57f['isBlock'](_0x14b481)||_0x3ef57f['isLimit'](_0x14b481)||(_0xb3380e[_0x2a1480]['isAdded']&&delete _0xb3380e[_0x2a1480]['isAdded'],_0xb3380e[_0x2a1480]['isAddSuggestion']&&delete _0xb3380e[_0x2a1480]['isAddSuggestion'],_0xb3380e[_0x2a1480]['isRemoveSuggestion']&&delete _0xb3380e[_0x2a1480]['isRemoveSuggestion'],_0xb3380e[_0x2a1480]['isRemoved']&&(_0xb3380e[_0x2a1480]['isIncorrect']=!0x0));}return _0xb3380e['filter'](_0x2fc649=>!_0x2fc649['isIncorrect']);}['_makeModelFromTape'](_0x211c4a,_0x3e549a,_0x1f1d81){const _0x3cda0e=new gt(),_0x20c6bc=[],_0x41920d=new Map(),_0x3a096c=this['editor']['model'],_0x47e60d=_0x3a096c['schema'],_0x5c0c01=[_0x3cda0e],_0x4559d0={},_0x390880={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x13f1a5=null;const _0x479ac6=[0x0];for(let _0x2ed6c1=0x0;_0x2ed6c1<_0x211c4a['length'];_0x2ed6c1++)if('elementStart'===_0x211c4a[_0x2ed6c1]['type']){_0x211c4a[_0x2ed6c1]['previousPosition']=_0x3a096c['createPositionFromPath'](_0x3cda0e,_0x479ac6);const _0x3b408d=new ut(_0x211c4a[_0x2ed6c1]['item']['name'],_0x211c4a[_0x2ed6c1]['item']['getAttributes']());_0x5c0c01[0x0]['_appendChild'](_0x3b408d),_0x479ac6['push'](0x0),_0x5c0c01['unshift'](_0x3b408d),_0x211c4a[_0x2ed6c1]['nextPosition']=_0x3a096c['createPositionFromPath'](_0x3cda0e,_0x479ac6);}else'elementEnd'===_0x211c4a[_0x2ed6c1]['type']?(_0x5c0c01['shift'](),_0x211c4a[_0x2ed6c1]['previousPosition']=_0x3a096c['createPositionFromPath'](_0x3cda0e,_0x479ac6),_0x479ac6['pop'](),_0x479ac6[_0x479ac6['length']-0x1]++,_0x211c4a[_0x2ed6c1]['nextPosition']=_0x3a096c['createPositionFromPath'](_0x3cda0e,_0x479ac6)):(_0x211c4a[_0x2ed6c1]['previousPosition']=_0x3a096c['createPositionFromPath'](_0x3cda0e,_0x479ac6),_0x13f1a5?_0x13f1a5['_data']+=_0x211c4a[_0x2ed6c1]['item']['data']:_0x13f1a5=new mt(_0x211c4a[_0x2ed6c1]['item']['data'],_0x211c4a[_0x2ed6c1]['item']['getAttributes']()),_0x211c4a[_0x2ed6c1+0x1]&&'text'===_0x211c4a[_0x2ed6c1+0x1]['type']&&_0x5871e0(_0x13f1a5,_0x211c4a[_0x2ed6c1+0x1]['item'])||(_0x5c0c01[0x0]['_appendChild'](_0x13f1a5),_0x13f1a5=null),_0x479ac6[_0x479ac6['length']-0x1]+=_0x211c4a[_0x2ed6c1]['item']['offsetSize'],_0x211c4a[_0x2ed6c1]['nextPosition']=_0x3a096c['createPositionFromPath'](_0x3cda0e,_0x479ac6));for(let _0x46ed8c=0x0;_0x46ed8c<_0x211c4a['length'];_0x46ed8c++){const _0x816be2=_0x211c4a[_0x46ed8c]['previousPosition'],_0x37d2ee=_0x211c4a[_0x46ed8c]['nextPosition'];for(const _0x2ffd60 of _0x211c4a[_0x46ed8c]['markersStart'])_0x41920d['set'](_0x2ffd60,{'start':_0x816be2,'end':null});_0x10a773('isRemoveSuggestion',_0x46ed8c,_0x816be2,_0x37d2ee),_0x10a773('isAddSuggestion',_0x46ed8c,_0x816be2,_0x37d2ee),_0x10a773('isRemoved',_0x46ed8c,_0x816be2,_0x37d2ee),_0x10a773('isAdded',_0x46ed8c,_0x816be2,_0x37d2ee);for(const _0x11cc99 of _0x211c4a[_0x46ed8c]['markersEnd']){const _0x24ab12=_0x41920d['get'](_0x11cc99);_0x24ab12?_0x24ab12['end']=_0x37d2ee:_0x41920d['set'](_0x11cc99,{'start':_0x37d2ee,'end':_0x37d2ee});}}for(const [_0x311901,_0x3814a5]of _0x41920d){const _0x2b0525=this['editor']['model']['createRange'](_0x3814a5['start'],_0x3814a5['end']);_0x3cda0e['markers']['set'](_0x311901,_0x2b0525);}return _0x20c6bc['sort']((_0x4463f9,_0x3f1a81)=>{const _0x397187=_0x3cda0e['markers']['get']('revision:'+_0x4463f9['id']),_0x3555d9=_0x3cda0e['markers']['get']('revision:'+_0x3f1a81['id']);return _0x397187['start']['isBefore'](_0x3555d9['start'])?-0x1:_0x397187['start']['isAfter'](_0x3555d9['start'])?0x1:_0x397187['end']['isBefore'](_0x3555d9['end'])?-0x1:_0x397187['end']['isAfter'](_0x3555d9['end'])?0x1:'add'===_0x4463f9['type']?-0x1:0x1;}),{'root':_0x3cda0e,'changes':_0x20c6bc};function _0x10a773(_0x1e2b65,_0x41997c,_0x2c07e0,_0x234384){const _0x47e74b=!!_0x211c4a[_0x41997c][_0x1e2b65],_0x392e43=_0x47e74b?_0x211c4a[_0x41997c][_0x1e2b65]['userId']:null,_0x4b417d=_0x41997c===_0x211c4a['length']-0x1,_0x304f31=_0x390880[_0x1e2b65][0x0],_0x3d6510=_0x47e60d['isObject'](_0x211c4a[_0x41997c]['item']);!_0x4559d0[_0x1e2b65]&&_0x47e74b?_0x4559d0[_0x1e2b65]={'start':_0x2c07e0,'tapeItem':_0x211c4a[_0x41997c],'userId':_0x392e43,'type':_0x1e2b65}:_0x4559d0[_0x1e2b65]&&!_0x47e74b?(_0x4559d0[_0x1e2b65]['end']=_0x2c07e0,_0x5469db(_0x4559d0[_0x1e2b65]),_0x4559d0[_0x1e2b65]=null):_0x4559d0[_0x1e2b65]&&_0x47e74b&&_0x4559d0[_0x1e2b65]['userId']!==_0x392e43&&(_0x4559d0[_0x1e2b65]['end']=_0x2c07e0,_0x304f31&&_0x304f31['userId']===_0x4559d0[_0x1e2b65]['userId']||_0x5469db(_0x4559d0[_0x1e2b65]),_0x4559d0[_0x1e2b65]={'start':_0x2c07e0,'tapeItem':_0x211c4a[_0x41997c],'userId':_0x392e43,'type':_0x1e2b65}),_0x4559d0[_0x1e2b65]&&_0x3d6510&&('elementStart'!==_0x211c4a[_0x41997c]['type']||_0x304f31&&_0x304f31['userId']===_0x392e43||_0x390880[_0x1e2b65]['unshift']({'userId':_0x392e43,'object':_0x211c4a[_0x41997c]['item'],'change':_0x4559d0[_0x1e2b65]}),'elementEnd'===_0x211c4a[_0x41997c]['type']&&_0x304f31&&_0x304f31['object']===_0x211c4a[_0x41997c]['item']&&(_0x390880[_0x1e2b65]['shift'](),_0x4559d0[_0x1e2b65]=_0x304f31['change'])),_0x4559d0[_0x1e2b65]&&_0x4b417d&&(_0x4559d0[_0x1e2b65]['end']=_0x234384,_0x5469db(_0x4559d0[_0x1e2b65]),_0x4559d0[_0x1e2b65]=null);}function _0x5469db({start:_0x1c440f,end:_0x1f098c,tapeItem:_0x4aa3fd,userId:_0x5ede29,type:_0x227287}){const _0x47c1bd=_0x4aa3fd['item'],_0x4d8bfc=_0x3a096c['schema']['isBlock'](_0x47c1bd)&&!_0x3a096c['schema']['isLimit'](_0x47c1bd),_0x3ea67e=_0x1c440f['nodeAfter']==_0x1f098c['parent']&&_0x1f098c['isAtStart'];if(_0x4d8bfc&&_0x3ea67e)return;const _0x48b0ed=_0x3a096c['createRange'](_0x1c440f,_0x1f098c),_0x43b1a5=_0x3e549a['get'](_0x5ede29),_0x2496a7=new r({'author':_0x43b1a5,'type':'isAdded'==_0x227287||'isAddSuggestion'==_0x227287?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x227287||'isRemoveSuggestion'==_0x227287},'createdAt':new Date(),'rootName':_0x1f1d81});_0x20c6bc['push'](_0x2496a7),_0x3cda0e['markers']['set']('revision:'+_0x2496a7['id'],_0x48b0ed);}function _0x5871e0(_0xb48d4,_0x87abdd){const _0x5ba973=_0xb48d4['getAttributes'](),_0x8705a4=_0x87abdd['getAttributes']();for(const _0x4e2cb0 of _0x5ba973){if(_0x4e2cb0[0x1]!==_0x87abdd['getAttribute'](_0x4e2cb0[0x0]))return!0x1;_0x8705a4['next']();}return _0x8705a4['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x2c18da=>{const _0x49d5af=_0x2c18da['markerName']['split'](':')[0x1],_0xe150b3=this['_getChangeFromId'](_0x49d5af);if(!_0xe150b3)return null;const _0x1ddb59='add'==_0xe150b3['type']?'insertion':'deletion',_0x33fbd0=['ck-suggestion-marker','ck-suggestion-marker-'+_0x1ddb59];return _0xe150b3['data']['isSuggestion']&&_0x33fbd0['push']('ck-suggestion-marker-'+_0x1ddb59+'-new'),this['activeChange']==_0xe150b3&&_0x33fbd0['push']('ck-suggestion-marker--active'),{'classes':_0x33fbd0,'attributes':{'data-change-id':_0x49d5af}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1252bf=>{_0x1252bf['on']('element:pre',(_0x2802de,_0x19d2f6,_0x34e22e)=>{const _0x1cd95d=_0x19d2f6['viewItem']['getChild'](0x0);if(!_0x1cd95d||!_0x1cd95d['is']('element','code'))return;if(!_0x34e22e['consumable']['consume'](_0x1cd95d,{'attributes':['vid_start','vid_end']}))return;const _0x4ef504=_0x19d2f6['modelRange']['start']['nodeAfter'];_0x34e22e['writer']['setAttribute']('vid_start',_0x1cd95d['getAttribute']('vid_start'),_0x4ef504),_0x34e22e['writer']['setAttribute']('vid_end',_0x1cd95d['getAttribute']('vid_end'),_0x4ef504);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x5edeaa=>{_0x5edeaa['on']('element',(_0x425699,_0x3ed83f,_0x5d4e8f)=>{if(!_0x5d4e8f['consumable']['consume'](_0x3ed83f['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3ed83f['modelRange']['isCollapsed'])return;const _0x5a8c44=_0x3ed83f['modelRange']['start']['nodeAfter'];_0x5a8c44['hasAttribute']('vid_start')||_0x5a8c44['hasAttribute']('vid')||(_0x5d4e8f['writer']['setAttribute']('vid_start',_0x3ed83f['viewItem']['getAttribute']('vid_start'),_0x5a8c44),_0x5d4e8f['writer']['setAttribute']('vid_end',_0x3ed83f['viewItem']['getAttribute']('vid_end'),_0x5a8c44));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x36b849=>_0x36b849['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x641988,[,_0x55a509])=>{['vid_start','vid_end','vid']['includes'](_0x55a509)&&(_0x641988['return']=!0x0,_0x641988['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4660f0=>{_0x4660f0['on']('attribute:vid',(_0x5a8421,_0x331c6e,_0x415322)=>{if('\x20'!=_0x331c6e['item']['data']||_0x331c6e['item']['parent']['maxOffset']>0x1)return;if(!_0x415322['consumable']['consume'](_0x331c6e['item'],_0x5a8421['name']))return;const _0x55a5ef=_0x415322['writer'],_0x18e6d3=_0x415322['mapper']['toViewRange'](_0x331c6e['range']);_0x55a5ef['wrap'](_0x18e6d3,_0x55a5ef['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3279b9){const _0x5cd6c1=_0x3279b9['plugins']['get']('RevisionViewer');return(_0x48576c,_0x12c0f5,_0x4ef629)=>{const _0x3d1adc=_0x12c0f5['markerName']['split'](':')[0x1],_0x3be281=_0x5cd6c1['_getChangeFromId'](_0x3d1adc);if(!_0x3be281)return null;const _0x25ab8e='add'==_0x3be281['type']?'split':'merge';if(!_0x4ef629['consumable']['test'](_0x12c0f5['markerRange'],_0x48576c['name']))return;const _0x77b335=_0x12c0f5['markerRange']['getWalker'](),_0x252cbf=_0x12c0f5['markerRange']['start'],_0x1bdfb8=_0x3279b9['model']['schema'];let _0x42a567=null,_0x32603d=null,_0x12529b=!0x1,_0xd61851=!0x1;for(const _0xf6c61 of _0x77b335){const _0x256122=_0xf6c61['item'];_0x12529b=_0x12529b||_0x1bdfb8['isContent'](_0x256122);const _0x3c34b9=_0x4ef629['mapper']['toViewElement'](_0x256122);if(_0x3c34b9&&_0x3c34b9['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xf6c61['type']&&(_0x1bdfb8['isBlock'](_0x256122)&&!_0x1bdfb8['isLimit'](_0x256122)&&(_0x256122['nextSibling']||_0x252cbf['isAtEnd']?_0x42a567&&_0x42a567['parent']==_0x256122||(_0x42a567=_0x256122,_0x12df95(_0xf6c61['previousPosition']),_0xd61851=!0x0):_0x32603d=_0x32603d||_0xf6c61['previousPosition']));}function _0x12df95(_0x547abe){const _0x4b3dbd=_0x4ef629['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x25ab8e}),_0x6527d=_0x4ef629['mapper']['toViewPosition'](_0x547abe);_0x3be281['data']['isSuggestion']&&_0x4ef629['writer']['addClass']('ck-suggestion-marker-'+_0x25ab8e+'-new',_0x4b3dbd),_0x5cd6c1['activeChange']==_0x3be281&&_0x4ef629['writer']['addClass']('ck-suggestion-marker--active',_0x4b3dbd),_0x4ef629['writer']['insert'](_0x6527d,_0x4b3dbd),_0x4ef629['mapper']['bindElementToMarker'](_0x4b3dbd,_0x12c0f5['markerName']);}_0x12529b||_0xd61851||!_0x32603d||_0x12df95(_0x32603d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x26927d,_0x2b29c0,_0x140d72)=>{const _0x30ae18=_0x140d72['mapper']['markerNameToElements'](_0x2b29c0['markerName']);if(_0x30ae18){for(const _0x59fb40 of _0x30ae18)(_0x59fb40['hasClass']('ck-suggestion-marker-split')||_0x59fb40['hasClass']('ck-suggestion-marker-merge'))&&(_0x140d72['mapper']['unbindElementFromMarkerName'](_0x59fb40,_0x2b29c0['markerName']),_0x140d72['writer']['remove'](_0x59fb40));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x38f9a7,_0x49fbfa,_0x5ad3ea)=>{const _0x50c68b=_0x49fbfa['markerName']['split'](':')[0x1],_0x5338b1=this['_getChangeFromId'](_0x50c68b);if(!_0x5338b1)return null;const _0x3c8009='add'==_0x5338b1['type']?'split':'merge';if(_0x5ad3ea['consumable']['test'](_0x49fbfa['markerRange'],_0x38f9a7['name']))for(const _0x564192 of _0x49fbfa['markerRange']['getItems']()){if(!_0x564192['is']('element','softBreak'))continue;const _0x3d9b90=_0x5ad3ea['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3c8009}),_0x399c9f=_0x5ad3ea['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x564192));_0x5338b1['data']['isSuggestion']&&_0x5ad3ea['writer']['addClass']('ck-suggestion-marker-'+_0x3c8009+'-new',_0x3d9b90),this['activeChange']==_0x5338b1&&_0x5ad3ea['writer']['addClass']('ck-suggestion-marker--active',_0x3d9b90),_0x5ad3ea['writer']['insert'](_0x399c9f,_0x3d9b90),_0x5ad3ea['mapper']['bindElementToMarker'](_0x3d9b90,_0x49fbfa['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x23c5f9=>{for(const _0xd7c72a of this['editor']['model']['document']['getRootNames']()){const _0x2e5071=this['editor']['model']['document']['getRoot'](_0xd7c72a),_0x3425be=this['editor']['editing']['view']['document']['getRoot'](_0xd7c72a);if(_0x3425be){const _0x51cf78=_0x2e5071['getAttribute']('revisionHistoryAttachChange');if(_0x23c5f9['removeAttribute']('data-change-id',_0x3425be),_0x23c5f9['removeClass']('ck-revision-history-root-add',_0x3425be),_0x23c5f9['removeClass']('ck-revision-history-root-remove',_0x3425be),_0x23c5f9['removeClass']('ck-revision-history-root--active',_0x3425be),_0x51cf78){const _0x16e2b4=this['_getChangeFromId'](_0x51cf78);if(!_0x16e2b4)return null;_0x23c5f9['setAttribute']('data-change-id',_0x51cf78,_0x3425be),_0x23c5f9['addClass']('ck-revision-history-root-'+_0x16e2b4['type'],_0x3425be),this['activeChange']==_0x16e2b4&&_0x23c5f9['addClass']('ck-revision-history-root--active',_0x3425be);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x46b099=>'revision-comment:'+_0x46b099,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x8297dd=>'revision-suggestion:'+_0x8297dd,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x54588d=>({'name':'suggestion:'+_0x54588d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x25cb7e=>{const _0x3db4e7=_0x25cb7e['markerName']['split'](':')[0x1];return'insertion'!=_0x3db4e7&&'deletion'!=_0x3db4e7?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3db4e7]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',X(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',X(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x4c9601,_0x9b1203,_0x336179)=>{const _0x348748=_0x336179['mapper']['markerNameToElements'](_0x9b1203['markerName']);if(_0x348748){for(const _0x29c780 of _0x348748)_0x29c780['is']('uiElement')&&(_0x336179['mapper']['unbindElementFromMarkerName'](_0x29c780,_0x9b1203['markerName']),_0x336179['writer']['remove'](_0x29c780));}},{'priority':'high'});}['_getChangeFromId'](_0x7868ca){return this['_changeIdToChange']['get'](_0x7868ca);}['_getViewForChange'](_0x29e872){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Q(this['editor']['locale'],_0x29e872),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x358e25,_0xb7aa01,_0x2ce25d,_0x3bb99a)=>{_0x3bb99a&&this['_balloon']['remove'](_0x3bb99a),_0x2ce25d&&(this['_balloon']['add']({'view':_0x2ce25d,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3bcb32=this['editor']['editing'],_0x2ed889=this['_getChangeFromId'](_0x2ce25d['changeId']);let _0xc4856f;if(_0x2ed889['data']['isOnRoot']){const _0x2dbd6a=_0x3bcb32['view']['getDomRoot'](_0x2ed889['rootName']);_0xc4856f=Array['from'](_0x2dbd6a['getClientRects']());}else{const _0x2782fe=this['editor']['model']['markers']['get']('revision:'+_0x2ce25d['changeId']);_0xc4856f=Array['from'](_0x3bcb32['mapper']['markerNameToElements'](_0x2782fe['name']))['map'](_0x50bcdd=>_0x3bcb32['view']['domConverter']['mapViewToDom'](_0x50bcdd))['map'](_0x9fdcd=>Array['from'](_0x9fdcd['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xc4856f[0x0];return _0xc4856f['find'](_0x26a5fe=>_0x26a5fe['top']-0x3<=this['_activeViewTarget']['y']&&_0x26a5fe['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x26a5fe['left']-0x3<=this['_activeViewTarget']['x']&&_0x26a5fe['right']+0x3>=this['_activeViewTarget']['x'])||_0xc4856f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x102933,_0x127795,_0x2511bb,_0x1b359a)=>{this['activeView']=_0x2511bb?this['_getViewForChange'](_0x2511bb):null,this['editor']['model']['change'](()=>{const _0x219ab5=this['editor']['editing'];_0x1b359a&&(_0x1b359a['data']['isOnRoot']?_0x219ab5['view']['change'](_0x3a191a=>{_0x3a191a['removeClass']('ck-revision-history-root--active',_0x219ab5['view']['document']['getRoot'](_0x1b359a['rootName']));}):_0x219ab5['reconvertMarker']('revision:'+_0x1b359a['id'])),_0x2511bb&&(_0x2511bb['data']['isOnRoot']?_0x219ab5['view']['change'](_0x540aa2=>{_0x540aa2['addClass']('ck-revision-history-root--active',_0x219ab5['view']['document']['getRoot'](_0x2511bb['rootName']));}):_0x219ab5['reconvertMarker']('revision:'+_0x2511bb['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x42b595,_0x2cb0c6)=>{if(this['activeChange'])return;const _0x3f68bf=this['_findChangeIdFromDomTarget'](_0x2cb0c6['target']),_0x41fa23=this['_changeIdToChange']['get'](_0x3f68bf);_0x41fa23?(this['_activeViewTarget']={'x':_0x2cb0c6['domEvent']['x'],'y':_0x2cb0c6['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x41fa23)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4852a8,_0x2b919b)=>{const _0x5c055a=this['_findChangeIdFromDomTarget'](_0x2b919b['target']),_0x3e0341=this['_changeIdToChange']['get'](_0x5c055a);_0x3e0341?(this['_activeViewTarget']={'x':_0x2b919b['domEvent']['x'],'y':_0x2b919b['domEvent']['y']},_0x3e0341===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x3e0341):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x54efcd){do{const _0x4d8b7d=_0x54efcd['getAttribute']('data-change-id');if(_0x4d8b7d)return _0x4d8b7d;_0x54efcd=_0x54efcd['parent'];}while(_0x54efcd);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0xe1b19a=>{for(const _0x5ed9df of this['editor']['model']['markers'])_0xe1b19a['removeMarker'](_0x5ed9df);});}}function X(_0x43bc7c,_0xaf2f02){return(_0x341009,_0xad864,_0x5657a4)=>{if(!_0x5657a4['consumable']['test'](_0xad864['markerRange'],_0x341009['name']))return;const _0x368a1c=_0xad864['markerRange']['getWalker'](),_0x396faf=_0xad864['markerRange']['start'],_0x3f02be=_0x43bc7c['model']['schema'];let _0x136ced=null,_0x5385c6=null,_0x14e916=!0x1,_0x2c3636=!0x1;for(const _0x2b4381 of _0x368a1c){const _0x23220b=_0x2b4381['item'];_0x14e916=_0x14e916||_0x3f02be['isContent'](_0x23220b);const _0x21f994=_0x5657a4['mapper']['toViewElement'](_0x23220b);if(_0x21f994&&_0x21f994['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2b4381['type']&&(_0x3f02be['isBlock'](_0x23220b)&&!_0x3f02be['isLimit'](_0x23220b)&&(_0x23220b['nextSibling']||_0x396faf['isAtEnd']?_0x136ced&&_0x136ced['parent']==_0x23220b||(_0x136ced=_0x23220b,_0x1b93ff(_0x2b4381['previousPosition']),_0x2c3636=!0x0):_0x5385c6=_0x5385c6||_0x2b4381['previousPosition']));}function _0x1b93ff(_0x2dd510){const _0x3a3a7d=_0x5657a4['mapper']['toViewPosition'](_0x2dd510),_0x467fd9=_0x5657a4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0xaf2f02});_0x5657a4['writer']['insert'](_0x3a3a7d,_0x467fd9),_0x5657a4['mapper']['bindElementToMarker'](_0x467fd9,_0xad864['markerName']);}_0x14e916||_0x2c3636||!_0x5385c6||_0x1b93ff(_0x5385c6);};}class wt extends _0x118e1a{constructor(_0x2e55dc){super(_0x2e55dc);const _0x4c23e0=_0x2e55dc['plugins']['get'](m);this['affectsData']=!0x1,this['listenTo'](_0x4c23e0,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4c23e0,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x144508=this['editor'],_0x1cd4e5=_0x144508['plugins']['get'](m),_0x4a3c28=_0x1cd4e5['isReady']?_0x1cd4e5['diff']['newRevisionId']:null;_0x144508['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x4a3c28);}['refresh'](){const {isReady:_0x323b0b,isEnabled:_0x57334d,repository:_0x5cd988,diff:_0x31dfe0}=this['editor']['plugins']['get'](m),_0x3ad895=_0x31dfe0&&_0x5cd988['getLaterVisibleRevision'](_0x31dfe0['newRevisionId']);this['isEnabled']=_0x323b0b&&_0x57334d&&Boolean(_0x3ad895);}}class pt extends _0x118e1a{['_step'];constructor(_0x3ed2db,{direction:_0xe072f1}){super(_0x3ed2db);const _0x1e567d=_0x3ed2db['plugins']['get'](m);this['affectsData']=!0x1,this['_step']='forward'===_0xe072f1?0x1:-0x1,this['listenTo'](_0x1e567d,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1e567d,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1e567d,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5e050f=this['editor'],_0x9c75e8=_0x5e050f['plugins']['get'](m),{isNavigationMode:_0x32f418,currentChangeNumber:_0x3765cc}=_0x9c75e8;let _0x4707b0;if(_0x9c75e8['activeChange']=_0x32f418?_0x9c75e8['diff']['changes']['get'](_0x3765cc+this['_step']):_0x9c75e8['diff']['changes']['first'],_0x9c75e8['activeChange']['data']['isOnRoot'])_0x4707b0=_0x5e050f['editing']['view']['getDomRoot'](_0x9c75e8['activeChange']['rootName']);else{const _0x550430=_0x5e050f['model']['markers']['get']('revision:'+_0x9c75e8['activeChange']['id']);_0x4707b0=_0x31274c(_0x5e050f['editing'],_0x550430);}_0x260bfa({'target':_0x4707b0,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x460184,currentChangeNumber:_0x354ea1,numberOfChanges:_0x5ae6da,isReady:_0x30e203,isEnabled:_0xd7ba35}=this['editor']['plugins']['get'](m);this['isEnabled']=!!(_0xd7ba35&&_0x30e203&&_0x5ae6da)&&(!_0x460184||(0x1===this['_step']?_0x354ea1<_0x5ae6da-0x1:_0x354ea1>0x0));}}class _i extends _0x58bc5e{constructor(_0x27c66a){super(_0x27c66a);const _0x2852f1=this['bindTemplate'],_0x2ce491=new _0x389322(_0x27c66a),_0x55b1bd=new _0x389322(_0x27c66a);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',(_0xbdc68d,_0x329171)=>_0xbdc68d&&_0x329171>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3b877e,_0x59a375,_0x4ec5d2,_0xcd9232)=>{if(!_0x3b877e)return g(_0x27c66a,'Loading...');if(!_0x4ec5d2)return g(_0x27c66a,'No\x20changes');const _0x54942a=g(_0x27c66a,'NUMBER_OF_CHANGES',_0x4ec5d2);return _0xcd9232?g(_0x27c66a,'X_OF_Y_CHANGES',[_0x59a375+0x1,_0x4ec5d2]):_0x54942a;}),_0x2ce491['set']({'label':g(_0x27c66a,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x581ca3}),_0x55b1bd['set']({'label':g(_0x27c66a,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x1389a3}),_0x2ce491['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x55b1bd['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x2ce491['on']('execute',()=>this['fire']('execute','backward')),_0x55b1bd['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',_0x2852f1['if']('_isStatusLabelVisible','ck-hidden',_0x3ecdd2=>!_0x3ecdd2)]},'children':[{'text':_0x2852f1['to']('isNavigationMode',_0x493bef=>_0x493bef?g(_0x27c66a,'EDIT_X_OF_Y_REVISIONS')+':\x20':g(_0x27c66a,'Total')+':\x20')}]},{'text':_0x2852f1['to']('_statusText')}]},new _0x37b8f2(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x2ce491,_0x55b1bd]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x408cb2{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x5186af=this['editor']['editing']['view'];_0x5186af['change'](_0x7f999d=>{for(const _0x3a7d09 of _0x5186af['document']['roots'])_0x7f999d['addClass'](ce,_0x3a7d09);});}['hide'](){const _0x37303c=this['editor']['editing']['view'];_0x37303c['change'](_0x333121=>{for(const _0x43206a of _0x37303c['document']['roots'])_0x333121['removeClass'](ce,_0x43206a);});}}class R extends _0x408cb2{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m,le];}['init'](){const _0x667af8=this['editor'],_0x4f53b=_0x667af8['plugins']['get'](m),_0x4377b4=_0x667af8['plugins']['get'](le);_0x667af8['ui']['componentFactory']['add']('exitToEditing',_0x11bdd1=>{const _0x103461=new _0x389322(_0x11bdd1);return _0x103461['set']({'label':g(_0x11bdd1,'Back\x20to\x20editing'),'icon':_0x1c97b5,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x103461,'execute',()=>{_0x667af8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x103461;}),_0x667af8['ui']['componentFactory']['add']('restoreRevision',_0x212994=>{const _0x36910a=new _0x389322(_0x212994);return _0x36910a['set']({'label':g(_0x212994,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x36910a['bind']('isEnabled')['to'](_0x667af8['commands']['get']('restoreRevision')),this['listenTo'](_0x36910a,'execute',()=>_0x667af8['execute']('restoreRevision')),_0x36910a;}),_0x667af8['ui']['componentFactory']['add']('changesNavigation',_0x39fce1=>{const _0x151481=new _i(_0x39fce1),_0x2412c9=_0x667af8['commands']['get']('showPreviousChange'),_0x3e1540=_0x667af8['commands']['get']('showNextChange');return _0x151481['bind']('isBackwardNavigationEnabled')['to'](_0x2412c9,'isEnabled'),_0x151481['bind']('isForwardNavigationEnabled')['to'](_0x3e1540,'isEnabled'),_0x151481['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x4f53b),this['listenTo'](_0x151481,'execute',(_0x48ba07,_0x1af013)=>{_0x667af8['execute']('forward'===_0x1af013?'showNextChange':'showPreviousChange');}),_0x151481;}),_0x4377b4['show'](),_0x4f53b['on']('change:isReady',(_0x1e13d4,_0x1ae447,_0x927f9f)=>{_0x927f9f?_0x4377b4['hide']():_0x4377b4['show']();});}}class lt extends nt{['_resizeObserver']=null;constructor(_0x5bf0cc,_0x7bf5de){super(_0x5bf0cc,_0x7bf5de);const _0x1be627=this['bindTemplate'];this['set']({'label':g(_0x5bf0cc,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=g(_0x5bf0cc,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1be627['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 _0x490ffd=this['fieldView']['element'];this['_tooltipString']=_0x490ffd['scrollWidth']>_0x490ffd['clientWidth']&&_0x490ffd['value']||'';}}class oi extends _0x58bc5e{constructor(_0x490150,_0xb4ab7a,_0x44ff8e){super(_0x490150);const _0x346a1b=new _0x190534();_0x346a1b['set']({'content':_0x6ff887,'viewBox':'0\x200\x2011\x2010'});const _0x36ed98=['ck','ck-revision-history-sidebar__revision-author'];_0x44ff8e&&_0x36ed98['push']('ck-revision-history-sidebar__revision-author_creator');const _0x1c041f=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':g(_0x490150,_0x44ff8e?'Revision\x20creator':'Revision\x20author')},'children':[_0x346a1b,_0xb4ab7a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x36ed98},'children':_0x1c041f});}}function ni(_0x239ff3,_0x48f900){const _0x4fd69e=_0x239ff3['bindTemplate'],_0x21f721=_0x239ff3['locale'],_0x457e4c=_0x5b3759(_0x21f721);_0x457e4c['panelPosition']='sw';const _0x545bf3=function(_0x4789f1,_0x58f4d7){const _0x15f492=function(_0x15abb2,_0x78f306){const _0x344e41=_0x15abb2['locale'],_0x15d3a6={'Compare\x20against\x20selected':g(_0x344e41,'Compare\x20against\x20selected'),'Name\x20this\x20revision':g(_0x344e41,'Name\x20this\x20revision'),'Restore\x20this\x20revision':g(_0x344e41,'Restore\x20this\x20revision')};return _0x78f306['map'](_0x131bc6=>{const _0x2793a3=_0x15d3a6[_0x131bc6['name']];return _0x2793a3&&_0x2793a3!==_0x131bc6['name']&&(_0x131bc6['name']=_0x2793a3),_0x131bc6;});}(_0x4789f1,_0x58f4d7),_0x9caadb=new _0x1e4ab6();for(const _0x3b8154 of _0x15f492){const _0x201a33={'type':'button','model':new to({'label':_0x3b8154['name'],'class':_0x3b8154['class'],'withText':!0x0,'role':'menuitem','_action':_0x3b8154['action']})};_0x201a33['model']['bind']('isEnabled')['to'](_0x4789f1,'isActionsDropdownOpen',_0x4da133=>'function'!=typeof _0x3b8154['isEnabled']||(!_0x4da133||_0x3b8154['isEnabled'](_0x4789f1))),_0x9caadb['add'](_0x201a33);}return _0x9caadb;}(_0x239ff3,_0x48f900);return _0x239ff3['bind']('isActionsDropdownOpen')['to'](_0x457e4c,'isOpen'),_0x457e4c['buttonView']['set']({'label':g(_0x21f721,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x53e952}),_0x457e4c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x4fd69e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x4fd69e['to'](_0xdb4355=>_0xdb4355['stopPropagation']())}}),_0x457e4c['on']('execute',_0x4668a5=>{_0x239ff3['isReady']&&'function'==typeof _0x4668a5['source']['_action']&&_0x4668a5['source']['_action'](_0x239ff3);}),_0x107ab3(_0x457e4c,_0x545bf3,{'role':'menu'}),_0x457e4c['listenTo'](_0x239ff3,'change:isActionsDropdownOpen',(_0xfe0f9,_0x4c8e90,_0xd3dc48)=>{if(_0xd3dc48)for(const _0x4d7eee of _0x457e4c['listView']['items']){const _0x24052e=_0x4d7eee['children']['first'],_0xab1d12=_0x48f900['find'](_0x5f08c5=>_0x5f08c5['action']===_0x24052e['_action'])['isVisible'];_0x4d7eee['isVisible']=void 0x0===_0xab1d12||_0xab1d12(_0x239ff3);}}),_0x457e4c;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x1dfd9d(_0x58bc5e){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x4bb69c,_0x29ae09,_0x2e1ce1,_0xdbb835){super(_0x4bb69c);const _0x172015=this['bindTemplate'],_0x327184=function(_0x1b0a13,_0x1a3c2d){const _0x3a4cf6=Array['from'](_0x1a3c2d['authors'])['filter'](_0x4eb41d=>_0x4eb41d!=_0x1a3c2d['creator']);return _0x1a3c2d['creator']&&_0x3a4cf6['unshift'](_0x1a3c2d['creator']),_0x3a4cf6['map'](_0x10382e=>new oi(_0x1b0a13,_0x10382e,_0x10382e==_0x1a3c2d['creator']));}(_0x4bb69c,_0x29ae09);this['id']=_0x29ae09['id'],this['_revision']=_0x29ae09,this['_requireRevisionName']=_0xdbb835,this['bind']('name','createdAt')['to'](_0x29ae09),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3773b7=>{return _0x17f618=_0x4bb69c['uiLanguage'],(_0x5ecfd2=_0x3773b7)['toLocaleDateString'](_0x17f618,{'month':'long','day':'numeric'})+',\x20'+_0x5ecfd2['toLocaleTimeString'](_0x17f618,{'hour':'numeric','minute':'numeric'});var _0x17f618,_0x5ecfd2;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new lt(_0x4bb69c,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x38a10a=>_0x38a10a||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x41f3b3,_0x315fdb)=>_0x41f3b3&&_0x315fdb),this['revisionActionsView']=_0x2e1ce1&&_0x2e1ce1['length']?ni(this,_0x2e1ce1):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x172015['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x172015['if']('isEnabled','ck-disabled',_0x317a3a=>!_0x317a3a),_0x172015['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x172015['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x172015['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':_0x172015['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':_0x327184}]},this['revisionActionsView']],'on':{'click':_0x172015['to'](_0x989598=>{_0x989598['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x140a41=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x140a41,'change',()=>{this['_requireRevisionName']&&!_0x140a41['value']||this['fire']('setName',{'id':this['id'],'name':_0x140a41['value']}),_0x140a41['value']||(_0x140a41['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function vi(_0x5d7eeb,_0x16e75b){const _0x341c1b=_0x47501c['fromJSDate'](_0x5d7eeb)['setLocale'](_0x16e75b),_0x2a188f=_0x47501c['local'](),_0x4dead5=_0x2a188f['minus']({'days':0x1})['startOf']('day');let _0x4e9a48,_0x4230c1;return _0x341c1b['hasSame'](_0x2a188f,'day')?(_0x4e9a48=_0x341c1b['startOf']('day')['toJSDate'](),_0x4230c1=_0x341c1b['toRelativeCalendar']()):_0x341c1b['hasSame'](_0x4dead5,'day')?(_0x4e9a48=_0x4dead5['toJSDate'](),_0x4230c1=_0x341c1b['toRelativeCalendar']()):_0x341c1b['hasSame'](_0x2a188f,'week')?(_0x4e9a48=_0x341c1b['startOf']('week')['toJSDate'](),_0x4230c1=_0x341c1b['weekdayLong']||''):_0x341c1b['hasSame'](_0x2a188f,'year')?(_0x4e9a48=_0x341c1b['startOf']('month')['toJSDate'](),_0x4230c1=_0x341c1b['monthLong']||''):(_0x4e9a48=_0x341c1b['startOf']('year')['toJSDate'](),_0x4230c1=String(_0x341c1b['year'])),{'startDate':_0x4e9a48,'localizedPeriodName':_0x4230c1};}class mi extends _0x58bc5e{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x1720c9,_0x49428a,_0x1fede2,_0x2e27e2){super(_0x1720c9);const _0x545848=vi(_0x49428a,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x49428a,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x1fede2,this['_requireRevisionName']=_0x2e27e2,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':_0x545848}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x4354c5){const _0x4f132c=new ai(this['locale'],_0x4354c5,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4f132c);}['removeRevision'](_0x254221){const _0x5abb56=this['revisionViews']['find'](_0x2eac4=>_0x2eac4['id']===_0x254221['id']);this['revisionViews']['remove'](_0x5abb56);}}class as extends _0x58bc5e{constructor(_0x576ee6){super(_0x576ee6);const _0x4d7f81=new _0x190534();_0x4d7f81['content']=_0x27f22e,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4d7f81,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[g(_0x576ee6,'Revision\x20history')]}]});}}class di extends _0x58bc5e{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x399112,_0x280354,_0x33714b,_0x2e1a0b){super(_0x399112);const _0x53379b=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x280354,this['_revisionActions']=_0x33714b,this['_requireRevisionName']=_0x2e1a0b,this['on']('select',(_0x17aaa3,_0x98db11)=>{this['fire']('revisionSelected',_0x98db11);}),this['on']('setName',(_0x4d6194,_0x5f1372)=>{this['fire']('revisionSetName',_0x5f1372);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x399112),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x53379b['if']('isEnabled','ck-disabled',_0x2e0822=>!_0x2e0822)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x1d1506 of this['_revisions'])this['_addRevision'](_0x1d1506);this['_revisions']['on']('add',(_0x2bab49,_0x26436b)=>{this['_addRevision'](_0x26436b);}),this['_revisions']['on']('remove',(_0x268ad7,_0x4da09d)=>{this['_removeRevision'](_0x4da09d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x164ca7=>_0x164ca7['revisionViews']['map'](_0x5eb60d=>_0x5eb60d))['flat']();}['selectRevision'](_0x2a1438){for(const _0x1907c9 of this['revisionViews'])_0x2a1438&&_0x2a1438['id']===_0x1907c9['id']?_0x1907c9['select']():_0x1907c9['deselect']();}['highlightRevisions'](_0x19b58e){for(const _0x25545a of this['revisionViews'])_0x19b58e['some'](({id:_0x193b4d})=>_0x193b4d===_0x25545a['id'])?_0x25545a['highlight']():_0x25545a['unhighlight']();}['_addRevision'](_0x3aad38){const _0x2c3cfe=vi(_0x3aad38['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0xfb8d0a=this['timePeriodViews']['get'](0x0);_0xfb8d0a&&_0xfb8d0a['startDate']['getTime']()===_0x2c3cfe['getTime']()||(_0xfb8d0a=new mi(this['locale'],_0x2c3cfe,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0xfb8d0a)),_0xfb8d0a['addRevision'](_0x3aad38);}['_removeRevision'](_0x16e09f){const _0xb4d9ed=vi(_0x16e09f['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0xb4d9ed)['removeRevision'](_0x16e09f);}['_getTimePeriodViewByStartDate'](_0x10d625){return this['timePeriodViews']['find'](_0x16375b=>_0x16375b['startDate']['getTime']()===_0x10d625['getTime']());}}class d extends _0x408cb2{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- pt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x5f0ec1){super(_0x5f0ec1),this['_revisionViewer']=_0x5f0ec1['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3907e6=this['_revisionsRepository']['_revisions'],_0x4975ab=this['_createRevisionActions'](),_0x5e0940=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ni(this['editor']['locale'],_0x3907e6,_0x4975ab,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',(_0x2631c8,_0x4de6b7)=>{_0x4de6b7['revisionViews']['on']('add',(_0x4ab6f6,_0x35c99c)=>{_0x35c99c['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)),_0x5e0940['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x1b4e16=this['_revisionsRepository']['getRevision'](0x0);if(_0x1b4e16){const _0x26706e=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x1b4e16['id']);this['_revisionViewer']['compare'](_0x1b4e16,_0x26706e);}}['_handleRevisionSelected'](_0x502d74,_0x58cb34){const _0x7bca04=this['_revisionsRepository']['getRevision'](_0x58cb34['id']),_0x2bee4f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x7bca04['id']);this['_revisionViewer']['compare'](_0x7bca04,_0x2bee4f);}['_handleRevisionSetName'](_0x4bc586,_0x5cfddc){this['_revisionsRepository']['getRevision'](_0x5cfddc['id'])['setName'](_0x5cfddc['name']);}['_handleDiffChange'](_0x5286b8,_0x3c6b04,_0x104751){const _0xce4fca=this['_revisionsRepository']['getRevisionsInDiff'](_0x104751);_0xce4fca['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0xce4fca),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0xce4fca[0x0]));}['_createRevisionActions'](){const _0x20417e=this['editor'],_0x371d94=d['availableRevisionActions'],_0xa1aaa=_0x20417e['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0xa1aaa['length'])return _0xa1aaa['map'](_0x4eb078=>{const _0x2052d7='string'==typeof _0x4eb078?Object['assign']({},_0x371d94[_0x4eb078]):_0x4eb078;return _0x2052d7['action']=_0x2052d7['action']['bind'](this,_0x20417e),_0x2052d7['isVisible']&&(_0x2052d7['isVisible']=_0x2052d7['isVisible']['bind'](this,_0x20417e)),_0x2052d7;});}}function pt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xdf45b9},_0x506482)=>{const _0x84b5ef=_0xdf45b9['get'](m),_0x2224ef=_0x84b5ef['repository'];let _0x33b79d=_0x84b5ef['diff']['newRevisionId'],_0x4508da=_0x506482['id'];_0x2224ef['getIndex'](_0x33b79d)>_0x2224ef['getIndex'](_0x4508da)&&([_0x33b79d,_0x4508da]=[_0x4508da,_0x33b79d]),_0x84b5ef['compare'](_0x33b79d,_0x4508da);},'isVisible':({plugins:_0xc2bacf},_0x608154)=>{const _0x4b6a0e=_0xc2bacf['get'](m);return!(_0x4b6a0e['repository']['getRevisionsInDiff'](_0x4b6a0e['diff'])['length']>0x2)&&!_0x608154['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2f793a,{id:_0x570f71})=>{_0x2f793a['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x570f71);},'isVisible':({plugins:_0xcdef36},_0x3eebba)=>!!_0xcdef36['get'](m)['repository']['getLaterVisibleRevision'](_0x3eebba['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x2d7650},{id:_0x4672c4,revisionNameView:_0x396c42})=>{const _0x41cb3c=_0x2d7650['get'](m),_0x5cacbd=_0x41cb3c['repository']['getEarlierVisibleRevision'](_0x4672c4);_0x41cb3c['compare'](_0x4672c4,_0x5cacbd),_0x396c42['focus'](),_0x396c42['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x4ac833,_0x2858fa){super(_0x4ac833),this['_view']=_0x2858fa,this['_toolbarConfig']=et(_0x4ac833['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x517b2a){const _0x381a5d=this['editor'],_0x1e8ac8=this['view'],_0x135db0=_0x381a5d['editing']['view'],_0x5046e0=_0x1e8ac8['editable'],_0x591f76=_0x135db0['document']['getRoot']();_0x5046e0['name']=_0x591f76['rootName'],_0x1e8ac8['render']();const _0x4e6c1b=_0x5046e0['element'];this['setEditableElement'](_0x5046e0['name'],_0x4e6c1b),_0x1e8ac8['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x135db0['attachDomRoot'](_0x4e6c1b),this['_elementReplacer']['replace'](_0x517b2a,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x12b195=this['view'],_0x551d45=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x551d45['detachDomRoot'](_0x12b195['editable']['name']),_0x12b195['destroy']();}['_initToolbar'](){const _0x5f5021=this['view'];_0x5f5021['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5f5021['stickyPanel']['limiterElement']=_0x5f5021['element'],_0x5f5021['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x400842})=>_0x400842),_0x5f5021['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5f5021['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x4315f7,_0x5d6eee,_0x32613f={}){super(_0x4315f7),this['stickyPanel']=new ht(_0x4315f7),this['toolbar']=new dt(_0x4315f7,{'shouldGroupWhenFull':_0x32613f['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x4315f7,_0x5d6eee);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- _0x262cbd(_0x1d5234){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x45a782,_0xd210e0){super(_0xd210e0),this['sourceElement']=_0x45a782,this['model']['document']['createRoot']();const _0x2e7cef=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x2e7cef);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x4e49a4,_0x88c1a8){const _0x245262=new this(_0x4e49a4,_0x88c1a8);return await _0x245262['initPlugins'](),await _0x245262['ui']['init'](_0x4e49a4),await _0x245262['data']['init'](_0x245262['config']['get']('initialData')||''),_0x245262['fire']('ready'),_0x245262;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class _t extends _0x5f2429{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c80f4){function _0x16da60(_0xd9cf2f){return _0xd9cf2f['map'](_0x546f37=>String['fromCharCode'](_0x546f37))['join']('');}super(_0x2c80f4),this['result']='end',_0x2c80f4[_0x16da60([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x16da60([0x76,0x69,0x65,0x77])][_0x16da60([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x16da60([0x61,0x75,0x74,0x6f]),_0x2c80f4[_0x16da60([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x16da60([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x16da60([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x16da60([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x16da60([0x6f,0x6b])});}}class k extends _0x5f2429{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x43b5f2){if(super(_0x43b5f2),!this['editor']['config']['get']('revisionHistory'))throw new _0x8198d0('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x25645b=>this['_showRevisionViewer']({..._0x25645b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x2e2dd6=>this['_closeRevisionViewer'](_0x2e2dd6)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x220a07=>this['_restoreRevision'](_0x220a07)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x227f71){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x227f71;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x55e6f2){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x55e6f2);}['getRevision'](_0x1a9adb){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1a9adb);}['getRevisions'](_0x1ff878){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x1ff878||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1d7d36=this['editor'],_0x4a3769=_0x3f10c5(_0x1d7d36,p),_0x332e3c=_0x1d7d36['plugins']['get']('RevisionTracker'),_0x25c9b4=_0x1d7d36['plugins']['get']('Users')['users'];return _0x4a3769['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x4a3769['lazyRoots'],(_0x4a3769['plugins']['push'](_t,m,R,class extends _0x5f2429{static get['requires'](){return[m,'Users'];}['init'](){const _0x51e492=this['editor']['plugins']['get']('Users');for(const _0x110dc1 of _0x25c9b4)_0x110dc1['isAnonymous']||_0x51e492['getUser'](_0x110dc1['id'])||_0x51e492['addUser'](_0x110dc1);const _0x2c4438=_0x332e3c['repository']['getRevisions']();let _0x1695a2=null;const _0x3dddac=this['editor']['plugins']['get']('RevisionViewer');_0x3dddac['adapter']=_0x332e3c['adapter'],_0x3dddac['bind']('isEnabled')['to'](_0x332e3c),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1d7d36,'isReadOnly',_0x239e5a=>!_0x239e5a);for(const _0x245231 of _0x2c4438){const _0x4a0039=null===_0x245231['creator'];if(_0x4a0039&&_0x245231['toVersion']===_0x245231['fromVersion'])continue;const _0x513766=_0x245231['toJSON']();_0x3dddac['addRevisionData'](_0x513766,(_0x12b3d6,_0x36c070,_0x175b2a)=>{if(_0x4a0039){if(_0x1695a2)_0x1695a2['_update'](_0x12b3d6,_0x36c070);else{if(!_0x36c070){const _0x6728c5=_0x175b2a['toJSON']();_0x6728c5['id']=_0x5d960a(),_0x332e3c['saveRevision'](_0x6728c5,_0x175b2a['toVersion'])['then'](_0x562ebc=>{_0x1695a2=_0x562ebc;});}}}else _0x245231['_update'](_0x12b3d6,_0x36c070);});}}},d),_0x4a3769);}['_enhanceShowRevisionViewerCallback'](){const _0x1451f6=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x4e9fe9=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x488b83=this['editor']['plugins']['get']('Autosave');await _0x488b83['save']();}else await _0x4e9fe9['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x9a9c1=this['editor']['plugins']['get']('Dialog');_0x9a9c1['isOpen']&&_0x9a9c1['hide']();}const _0x1254e9=this['_getRevisionViewerEditorConfig']();return _0x1451f6(_0x1254e9)['then'](_0x4573a2=>{return(this['_viewerEditor']=_0x4573a2,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x4573a2);})['catch'](_0x409d93=>(console['error'](_0x409d93),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x21bef7=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x21bef7(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x14802d=this['editor']['plugins']['get']('Annotations');_0x14802d['refreshVisibility'](),_0x14802d['refreshPositioning']();}})));}['_showRevisionViewer'](_0x1205a0){const _0x7169c5=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x3df107=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x4ae30d=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x4ae30d,_0x1205a0)['then'](_0xaa9ea9=>(_0x3df107['style']['display']='block',_0x7169c5['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0xaa9ea9));}['_closeRevisionViewer'](_0x3fbecd){const _0x250de8=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x250de8['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0x3fbecd['destroy']();}async['_restoreRevision'](_0x43aba4){const _0xd228d1=this['editor'],_0x4b23ba=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x1f6fd3=_0xd228d1['plugins']['get']('RevisionTracker'),_0x1d6f91=_0xd228d1['plugins']['get']('RevisionHistoryUtils'),_0x261df1=_0x4b23ba['repository']['getRevision'](_0x43aba4);let _0xf166f2,_0x261b9d,_0x596aad;try{await _0x1d6f91['loadRevisionData'](_0x261df1,this['adapter']),_0xf166f2=_0x1d6f91['getRevisionDocumentData'](_0x261df1),_0x261b9d=_0x1d6f91['getRevisionRootsAttributes'](_0x261df1);}catch(_0x5766f3){return void console['error'](_0x5766f3);}_0xd228d1['model']['change'](_0x1418c3=>{for(const _0x27ded6 of Array['from'](_0xd228d1['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x1418c3['removeMarker'](_0x27ded6);}),_0x4b23ba['isReady']=!0x1,_0xd228d1['model']['enqueueChange'](_0x525592=>{_0x525592['setSelection'](null),_0x525592['removeSelectionAttribute'](_0xd228d1['model']['document']['selection']['getAttributeKeys']());const _0x5809eb=Object['keys'](_0xf166f2);for(const _0x23fc4 of _0xd228d1['model']['document']['roots'])'$graveyard'!=_0x23fc4['rootName']&&_0x23fc4['isAttached']()&&!_0x5809eb['includes'](_0x23fc4['rootName'])&&_0x525592['detachRoot'](_0x23fc4);for(const _0x3765d8 of _0x5809eb){let _0x435500=_0xd228d1['model']['document']['getRoot'](_0x3765d8);_0x435500&&_0x435500['isAttached']()||(_0x435500=_0x525592['addRoot'](_0x3765d8));const _0x35d95a=_0x261b9d[_0x3765d8],_0x47f31d=Object['keys'](_0x35d95a),_0x25b16b=_0xf166f2[_0x3765d8];for(const _0x10dd06 of _0x435500['getAttributeKeys']())_0x47f31d['includes'](_0x10dd06)||_0x525592['removeAttribute'](_0x10dd06,_0x435500);for(const _0x534c67 of _0x47f31d)_0x525592['setAttribute'](_0x534c67,_0x261b9d[_0x3765d8][_0x534c67],_0x435500);_0x525592['remove'](_0x525592['createRangeIn'](_0x435500)),_0x525592['insert'](_0xd228d1['data']['parse'](_0x25b16b,_0x435500),_0x435500,0x0);}});const _0x162b84=g(_0xd228d1['locale'],'Restored');if(_0x261df1['name'])_0x596aad=-0x1==_0x261df1['name']['indexOf'](_0x162b84)?_0x162b84+':\x20'+_0x261df1['name']:_0x261df1['name'];else _0x596aad=_0x162b84+':\x20'+(_0x261df1['createdAt']['toLocaleDateString'](_0xd228d1['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x261df1['createdAt']['toLocaleTimeString'](_0xd228d1['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x1f6fd3['saveRevision']({'name':_0x596aad}),_0x4b23ba['isReady']=!0x0,_0xd228d1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,ge as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};
28
+ _t();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[m];}constructor(_0x54f097){super(_0x54f097),this['_revisionViewer']=_0x54f097['plugins']['get'](m),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x666e2b=this['_revisionsRepository']['_revisions'],_0x37dabf=this['_createRevisionActions'](),_0x16399d=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x666e2b,_0x37dabf,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',(_0x4a8ab0,_0x231231)=>{_0x231231['revisionViews']['on']('add',(_0x493e80,_0x437c5f)=>{_0x437c5f['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)),_0x16399d['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x39f378=this['_revisionsRepository']['getRevision'](0x0);if(_0x39f378){const _0xe5d925=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x39f378['id']);this['_revisionViewer']['compare'](_0x39f378,_0xe5d925);}}['_handleRevisionSelected'](_0x493182,_0x202ec2){const _0x37bc48=this['_revisionsRepository']['getRevision'](_0x202ec2['id']),_0x1e93fb=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x37bc48['id']);this['_revisionViewer']['compare'](_0x37bc48,_0x1e93fb);}['_handleRevisionSetName'](_0x5b8d89,_0x477412){this['_revisionsRepository']['getRevision'](_0x477412['id'])['setName'](_0x477412['name']);}['_handleDiffChange'](_0x1c7c7a,_0x313bc7,_0x8929b5){const _0x1bfc8d=this['_revisionsRepository']['getRevisionsInDiff'](_0x8929b5);_0x1bfc8d['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x1bfc8d),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x1bfc8d[0x0]));}['_createRevisionActions'](){const _0x431a67=this['editor'],_0x1b5d0b=d['availableRevisionActions'],_0x824f74=_0x431a67['config']['get']('revisionHistory.revisionActions')||d['defaultRevisionActions'];if(_0x824f74['length'])return _0x824f74['map'](_0x3e8ab5=>{const _0x568e65='string'==typeof _0x3e8ab5?Object['assign']({},_0x1b5d0b[_0x3e8ab5]):_0x3e8ab5;return _0x568e65['action']=_0x568e65['action']['bind'](this,_0x431a67),_0x568e65['isVisible']&&(_0x568e65['isVisible']=_0x568e65['isVisible']['bind'](this,_0x431a67)),_0x568e65;});}}function _t(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0xb1b6ec},_0x370fb7)=>{const _0x1053e3=_0xb1b6ec['get'](m),_0xa69890=_0x1053e3['repository'];let _0x405717=_0x1053e3['diff']['newRevisionId'],_0x378cda=_0x370fb7['id'];_0xa69890['getIndex'](_0x405717)>_0xa69890['getIndex'](_0x378cda)&&([_0x405717,_0x378cda]=[_0x378cda,_0x405717]),_0x1053e3['compare'](_0x405717,_0x378cda);},'isVisible':({plugins:_0x6013ad},_0x4ac6c8)=>{const _0x188220=_0x6013ad['get'](m);return!(_0x188220['repository']['getRevisionsInDiff'](_0x188220['diff'])['length']>0x2)&&!_0x4ac6c8['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x10b2ab,{id:_0x46c500})=>{_0x10b2ab['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x46c500);},'isVisible':({plugins:_0xf34e02},_0x4fc518)=>!!_0xf34e02['get'](m)['repository']['getLaterVisibleRevision'](_0x4fc518['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x83fcd2},{id:_0x384d05,revisionNameView:_0x457ed4})=>{const _0x8b856e=_0x83fcd2['get'](m),_0x30a5f8=_0x8b856e['repository']['getEarlierVisibleRevision'](_0x384d05);_0x8b856e['compare'](_0x384d05,_0x30a5f8),_0x457ed4['focus'](),_0x457ed4['fieldView']['select']();}}};}class tt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x5443f1,_0x5357a1){super(_0x5443f1),this['_view']=_0x5357a1,this['_toolbarConfig']=et(_0x5443f1['config']['get']('toolbar')),this['_elementReplacer']=new ot();}get['element'](){return this['view']['element'];}['init'](_0x25c59b){const _0x359c4c=this['editor'],_0x4da4a4=this['view'],_0x2333be=_0x359c4c['editing']['view'],_0x2c1722=_0x4da4a4['editable'],_0x3864a4=_0x2333be['document']['getRoot']();_0x2c1722['name']=_0x3864a4['rootName'],_0x4da4a4['render']();const _0x5cb9cf=_0x2c1722['element'];this['setEditableElement'](_0x2c1722['name'],_0x5cb9cf),_0x4da4a4['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x2333be['attachDomRoot'](_0x5cb9cf),this['_elementReplacer']['replace'](_0x25c59b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1ff23b=this['view'],_0x2615ff=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2615ff['detachDomRoot'](_0x1ff23b['editable']['name']),_0x1ff23b['destroy']();}['_initToolbar'](){const _0x5bbf41=this['view'];_0x5bbf41['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5bbf41['stickyPanel']['limiterElement']=_0x5bbf41['element'],_0x5bbf41['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x394bb0})=>_0x394bb0),_0x5bbf41['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5bbf41['toolbar']);}}class it extends rt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x198f04,_0x4c5d33,_0x4db8a4={}){super(_0x198f04),this['stickyPanel']=new ht(_0x198f04),this['toolbar']=new dt(_0x198f04,{'shouldGroupWhenFull':_0x4db8a4['shouldToolbarGroupWhenFull']}),this['_editable']=new ct(_0x198f04,_0x4c5d33);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
+ _0x540714(_0x5e69a8){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4b5125,_0x8ac384){super(_0x8ac384),this['sourceElement']=_0x4b5125,this['model']['document']['createRoot']();const _0x1c04ed=new it(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new tt(this,_0x1c04ed);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x10337a,_0x27cf9b){const _0x372a5e=new this(_0x10337a,_0x27cf9b);return await _0x372a5e['initPlugins'](),await _0x372a5e['ui']['init'](_0x10337a),await _0x372a5e['data']['init'](_0x372a5e['config']['get']('initialData')||''),_0x372a5e['fire']('ready'),_0x372a5e;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class yt extends _0x408cb2{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x266c21){function _0x586cc1(_0x350c0c){return _0x350c0c['map'](_0x3a032f=>String['fromCharCode'](_0x3a032f))['join']('');}super(_0x266c21),this['result']='end',_0x266c21[_0x586cc1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x586cc1([0x76,0x69,0x65,0x77])][_0x586cc1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x586cc1([0x61,0x75,0x74,0x6f]),_0x266c21[_0x586cc1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x586cc1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x586cc1([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x586cc1([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x586cc1([0x6f,0x6b])});}}class k extends _0x408cb2{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x8da7c){if(super(_0x8da7c),!this['editor']['config']['get']('revisionHistory'))throw new _0x540ac1('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['set']('isRevisionViewerOpen',!0x1),this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x34256b=>this['_showRevisionViewer']({..._0x34256b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x4cb58d=>this['_closeRevisionViewer'](_0x4cb58d)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x2dc410=>this['_restoreRevision'](_0x2dc410)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x28ed09){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x28ed09;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x20b42e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x20b42e);}['getRevision'](_0x39d614){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x39d614);}['getRevisions'](_0x3ce37d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x3ce37d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x5ce7db=this['editor'],_0x41b955=_0x53a116(_0x5ce7db,p),_0x25b2bd=_0x5ce7db['plugins']['get']('RevisionTracker'),_0x39eb23=_0x5ce7db['plugins']['get']('Users')['users'];return _0x41b955['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x41b955['lazyRoots'],(_0x41b955['plugins']['push'](yt,m,R,class extends _0x408cb2{static get['requires'](){return[m,'Users'];}['init'](){const _0x11377f=this['editor']['plugins']['get']('Users');for(const _0x4b01fd of _0x39eb23)_0x4b01fd['isAnonymous']||_0x11377f['getUser'](_0x4b01fd['id'])||_0x11377f['addUser'](_0x4b01fd);const _0x4847e5=_0x25b2bd['repository']['getRevisions']();let _0x4f0f0a=null;const _0x3bb920=this['editor']['plugins']['get']('RevisionViewer');_0x3bb920['adapter']=_0x25b2bd['adapter'],_0x3bb920['bind']('isEnabled')['to'](_0x25b2bd),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x5ce7db,'isReadOnly',_0x58a73d=>!_0x58a73d);for(const _0x160c35 of _0x4847e5){const _0x1c299b=null===_0x160c35['creator'];if(_0x1c299b&&_0x160c35['toVersion']===_0x160c35['fromVersion'])continue;const _0x25e164=_0x160c35['toJSON']();_0x3bb920['addRevisionData'](_0x25e164,(_0x1661de,_0x908aa9,_0x348d35)=>{if(_0x1c299b){if(_0x4f0f0a)_0x4f0f0a['_update'](_0x1661de,_0x908aa9);else{if(!_0x908aa9){const _0x5746fe=_0x348d35['toJSON']();_0x5746fe['id']=_0x48e51d(),_0x25b2bd['saveRevision'](_0x5746fe,_0x348d35['toVersion'])['then'](_0x32e618=>{_0x4f0f0a=_0x32e618;});}}}else _0x160c35['_update'](_0x1661de,_0x908aa9);});}}},d),_0x41b955);}['_enhanceShowRevisionViewerCallback'](){const _0x54fc1d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x1993f7=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x24ade5=this['editor']['plugins']['get']('Autosave');await _0x24ade5['save']();}else await _0x1993f7['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4a69e1=this['editor']['plugins']['get']('Dialog');_0x4a69e1['isOpen']&&_0x4a69e1['hide']();}const _0x364fa2=this['_getRevisionViewerEditorConfig']();return _0x54fc1d(_0x364fa2)['then'](_0x42f405=>{return(this['_viewerEditor']=_0x42f405,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),(this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']='none'),_0x42f405);})['catch'](_0x3a1139=>(console['error'](_0x3a1139),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x5622f9=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('DocumentOutline')&&(this['editor']['plugins']['get']('DocumentOutlineUI')['view']['element']['style']['display']=''),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x5622f9(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x160ba9=this['editor']['plugins']['get']('Annotations');_0x160ba9['refreshVisibility'](),_0x160ba9['refreshPositioning']();}})));}['_showRevisionViewer'](_0x153436){const _0x12b81e=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4a419c=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x525ae8=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x525ae8,_0x153436)['then'](_0x8ecdc8=>(_0x4a419c['style']['display']='block',_0x12b81e['style']['display']='none',this['isRevisionViewerOpen']=!0x0,_0x8ecdc8));}['_closeRevisionViewer'](_0xd982e9){const _0x305f05=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x305f05['style']['display']='',this['isRevisionViewerOpen']=!0x1,_0xd982e9['destroy']();}async['_restoreRevision'](_0x1a19e5){const _0x45f29b=this['editor'],_0x1a054c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4f8f31=_0x45f29b['plugins']['get']('RevisionTracker'),_0x3f12e5=_0x45f29b['plugins']['get']('RevisionHistoryUtils'),_0x4d14fa=_0x1a054c['repository']['getRevision'](_0x1a19e5);let _0x451bb9,_0xc3bef3,_0x31a463;try{await _0x3f12e5['loadRevisionData'](_0x4d14fa,this['adapter']),_0x451bb9=_0x3f12e5['getRevisionDocumentData'](_0x4d14fa),_0xc3bef3=_0x3f12e5['getRevisionRootsAttributes'](_0x4d14fa);}catch(_0x3644e3){return void console['error'](_0x3644e3);}_0x45f29b['model']['change'](_0x39b951=>{for(const _0x808387 of Array['from'](_0x45f29b['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x39b951['removeMarker'](_0x808387);}),_0x1a054c['isReady']=!0x1,_0x45f29b['model']['enqueueChange'](_0x428dac=>{_0x428dac['setSelection'](null),_0x428dac['removeSelectionAttribute'](_0x45f29b['model']['document']['selection']['getAttributeKeys']());const _0x572e07=Object['keys'](_0x451bb9);for(const _0x42ea3e of _0x45f29b['model']['document']['roots'])'$graveyard'!=_0x42ea3e['rootName']&&_0x42ea3e['isAttached']()&&!_0x572e07['includes'](_0x42ea3e['rootName'])&&_0x428dac['detachRoot'](_0x42ea3e);for(const _0x2d2367 of _0x572e07){let _0x3b134c=_0x45f29b['model']['document']['getRoot'](_0x2d2367);_0x3b134c&&_0x3b134c['isAttached']()||(_0x3b134c=_0x428dac['addRoot'](_0x2d2367));const _0x40220d=_0xc3bef3[_0x2d2367],_0x5ba744=Object['keys'](_0x40220d),_0x39a756=_0x451bb9[_0x2d2367];for(const _0x1aeee2 of _0x3b134c['getAttributeKeys']())_0x5ba744['includes'](_0x1aeee2)||_0x428dac['removeAttribute'](_0x1aeee2,_0x3b134c);for(const _0x3c953e of _0x5ba744)_0x428dac['setAttribute'](_0x3c953e,_0xc3bef3[_0x2d2367][_0x3c953e],_0x3b134c);_0x428dac['remove'](_0x428dac['createRangeIn'](_0x3b134c)),_0x428dac['insert'](_0x45f29b['data']['parse'](_0x39a756,_0x3b134c),_0x3b134c,0x0);}});const _0xdafc7b=g(_0x45f29b['locale'],'Restored');if(_0x4d14fa['name'])_0x31a463=-0x1==_0x4d14fa['name']['indexOf'](_0xdafc7b)?_0xdafc7b+':\x20'+_0x4d14fa['name']:_0x4d14fa['name'];else _0x31a463=_0xdafc7b+':\x20'+(_0x4d14fa['createdAt']['toLocaleDateString'](_0x45f29b['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4d14fa['createdAt']['toLocaleTimeString'](_0x45f29b['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4f8f31['saveRevision']({'name':_0x31a463}),_0x1a054c['isReady']=!0x0,_0x45f29b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,V as RevisionHistoryUtils,u as RevisionTracker,m as RevisionViewer,w as RevisionViewerEditor,le as RevisionViewerLoadingOverlay,R as RevisionViewerUI,I as RevisionsRepository,d as RevisionsSidebar};