@ckeditor/ckeditor5-revision-history 0.0.0-nightly-next-20250211.0 → 0.0.0-nightly-20250212.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/LICENSE.md +1 -1
  2. package/build/revision-history.js +1 -1
  3. package/ckeditor5-metadata.json +1 -1
  4. package/dist/index.js +6 -6
  5. package/dist/translations/af.js +1 -1
  6. package/dist/translations/af.umd.js +1 -1
  7. package/dist/translations/ar.js +1 -1
  8. package/dist/translations/ar.umd.js +1 -1
  9. package/dist/translations/ast.js +1 -1
  10. package/dist/translations/ast.umd.js +1 -1
  11. package/dist/translations/az.js +1 -1
  12. package/dist/translations/az.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +11 -12
  150. package/src/changeitem.js +2 -2
  151. package/src/editor/revisionviewereditor.js +2 -2
  152. package/src/editor/revisionviewereditorui.js +1 -1
  153. package/src/editor/revisionviewereditoruiview.js +1 -1
  154. package/src/index.js +1 -1
  155. package/src/revision.js +2 -2
  156. package/src/revisiondiff.js +1 -1
  157. package/src/revisionhistory.js +1 -1
  158. package/src/revisionsrepository.js +1 -1
  159. package/src/revisiontracker.js +1 -1
  160. package/src/revisionviewer.js +1 -1
  161. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  162. package/src/ui/revision/revisionauthorview.js +1 -1
  163. package/src/ui/revision/revisionnameview.js +1 -1
  164. package/src/ui/revision/revisionview.js +2 -2
  165. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  166. package/src/ui/revision/subrevisionview.js +1 -1
  167. package/src/ui/revision/utils.js +1 -1
  168. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  169. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  170. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  171. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  172. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  173. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  174. package/src/ui/revisionssidebar/utils.js +1 -1
  175. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  176. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  177. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  178. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  179. package/src/utils/common-translations.js +1 -1
  180. package/theme/icons/arrow-down.svg +1 -0
  181. package/theme/icons/arrow-up.svg +1 -0
  182. package/theme/icons/revision-history.svg +1 -0
  183. package/theme/icons/user.svg +1 -0
package/dist/index.js CHANGED
@@ -20,10 +20,10 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0x33b2e5,uid as _0x3facc5,Collection as _0x12f74d,logWarning as _0x3e52c3,FocusTracker as _0x8dd88d,KeystrokeHandler as _0x501707,scrollViewportToShowTarget as _0x356aef,ResizeObserver as pt,ElementReplacer as ht,CKEditorError as _0x9e8044}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x5c9543,set as _0x3a54d6,unset as _0x15efb3,isEqual as _0x16ab5a}from'es-toolkit/compat';import{Plugin as _0x6878ef,PendingActions as _0x59e4ca,Command as _0x14e675,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3e0391,getMarkerDomElement as _0x6880b8,ConfirmMixin as _0x26fcc7,sanitizeEditorConfig as _0x4d6844}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x15885f,Element as ut,Range as ft,ViewUIElement as _0x151d6e,ViewRawElement as _0x101b60,ViewEmptyElement as _0x2255d2,ViewAttributeElement as _0x58f15a,ViewContainerElement as _0x783e3f,Position as vt,ViewText as _0x5c17c1,ViewElement as _0x43d47e,DocumentFragment as gt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{IconHistory as _0x3427a3,IconChevronUp as _0x2a850c,IconChevronDown as _0x541ed3,IconUndo as _0x52efde,IconUser as _0x4828a2,IconThreeVerticalDots as _0x49d23b}from'@ckeditor/ckeditor5-icons/dist/index.js';import{View as _0x572c6d,injectCssTransitionDisabler as ts,submitHandler as _0x1576d1,LabeledFieldView as at,createLabeledInputText as ti,createDropdown as _0xef6b9b,ListView as _0x999761,ListItemView as te,ButtonView as _0x5c9eb1,MenuBarMenuView as _0x4de212,MenuBarMenuListView as _0x3007fb,MenuBarMenuListItemView as _0x7508de,MenuBarMenuListItemButtonView as _0x29b0b9,ContextualBalloon as _0x1b54bd,ToolbarSeparatorView as _0x54b919,IconView as _0x3c8e1e,addListToDropdown as _0x3dccd9,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x1e67d1}from'luxon';class h extends/* #__PURE__ -- @preserve */
24
- _0x33b2e5(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x160864){super(),this['id']=_0x160864['id']||_0x3facc5(),this['creator']=_0x160864['creator']||null,this['authors']=_0x160864['authors']||[],this['diffData']=_0x160864['diffData']||null,this['toVersion']=_0x160864['toVersion']||0x0,this['fromVersion']=_0x160864['fromVersion']||0x0,this['set']('name',_0x160864['name']||''),this['set']('createdAt',_0x160864['createdAt']||new Date()),this['set']('attributes',_0x160864['attributes']||{});}['setName'](_0x5d0e5c){this['_update']({'name':_0x5d0e5c});}['setAttribute'](_0x1a556d,_0x552d0e){const _0x3e0d67=_0x5c9543(this['attributes']);_0x3a54d6(_0x3e0d67,_0x1a556d,_0x552d0e),this['_update']({'attributes':_0x3e0d67});}['removeAttribute'](_0x181e4f){const _0x106165=_0x5c9543(this['attributes']);_0x15efb3(_0x106165,_0x181e4f),this['_update']({'attributes':_0x106165});}['_update'](_0x3c7ab2,_0x390e3d=!0x1){let _0x18037d=!0x1;const _0x4ef6c6={'id':this['id']},_0x193510=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xcb0ee8 of _0x193510){const _0x1a1609=_0x3c7ab2[_0xcb0ee8];void 0x0!==_0x1a1609&&_0x1a1609!==this[_0xcb0ee8]&&(this[_0xcb0ee8]=_0x1a1609,_0x4ef6c6[_0xcb0ee8]=_0x1a1609,_0x18037d=!0x0);}_0x18037d&&(_0x4ef6c6['authors']&&(_0x4ef6c6['authorsIds']=_0x4ef6c6['authors']['map'](_0x369c4d=>_0x369c4d['id']),delete _0x4ef6c6['authors']),this['fire']('_update',_0x4ef6c6,_0x390e3d));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x24ba4f=>_0x24ba4f['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x6878ef{['_revisions'];static get['requires'](){return[_0x3e0391];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5b42d6){super(_0x5b42d6),this['_revisions']=new _0x12f74d();}['afterInit'](){!async function(_0x5d632f){const _0x426656=_0x310022([0x4b,0x64,0x4e,0x5a,0x68,0x71,0x4d,0x78,0x4f,0x31,0x48,0x6c,0x50,0x37,0x46,0x54,0x59,0x43,0x73,0x63,0x58,0x4c,0x55,0x6b,0x36,0x6f,0x32,0x7a,0x38,0x6e,0x77,0x51,0x6a,0x69,0x53,0x66,0x35,0x49,0x30,0x70,0x6d,0x61,0x45,0x74,0x41,0x72,0x67,0x34,0x4a,0x76,0x65,0x57,0x75,0x56,0x33,0x47,0x39,0x62,0x44,0x42,0x79,0x52]),_0x42a337=0xeb829,_0x225ab7=0x5a1b75d5,_0x2dc0a0=0x5a1c2ae5^_0x225ab7,_0x5ee868=window[_0x310022([0x44,0x61,0x74,0x65])][_0x310022([0x6e,0x6f,0x77])](),_0x325781=_0x5d632f[_0x310022([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x117386=new window[(_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8c43=>{_0x325781[_0x310022([0x6f,0x6e,0x63,0x65])](_0x310022([0x72,0x65,0x61,0x64,0x79]),_0x3b8c43);}),_0x23d130={[_0x310022([0x6b,0x74,0x79])]:_0x310022([0x45,0x43]),[_0x310022([0x75,0x73,0x65])]:_0x310022([0x73,0x69,0x67]),[_0x310022([0x63,0x72,0x76])]:_0x310022([0x50,0x2d,0x32,0x35,0x36]),[_0x310022([0x78])]:_0x310022([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]),[_0x310022([0x79])]:_0x310022([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]),[_0x310022([0x61,0x6c,0x67])]:_0x310022([0x45,0x53,0x32,0x35,0x36])},_0xb7896b=_0x325781[_0x310022([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x310022([0x67,0x65,0x74])](_0x310022([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa954eb(){let _0x270d53,_0x1840f4=null,_0x408a82=null;try{if(_0xb7896b==_0x310022([0x47,0x50,0x4c]))return _0x310022([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x270d53=_0x547fbd(),!_0x270d53)return _0x310022([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x270d53[_0x310022([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x408a82=_0x5a70b7(_0x270d53[_0x310022([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x270d53[_0x310022([0x6a,0x74,0x69])])),await _0x51e123()?_0x49a98c()?_0x103318()?_0x310022([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x233f98()?(_0x270d53[_0x310022([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x310022([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1840f4=_0x22741f(_0x310022([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x270d53[_0x310022([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x310022([0x74,0x72,0x69,0x61,0x6c])&&(_0x1840f4=_0x22741f(_0x310022([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x343802()):_0x310022([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x310022([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x310022([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1c9abb){return _0x310022([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x103318(){const _0x1a9d15=[_0x310022([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x310022([0x74,0x72,0x69,0x61,0x6c])][_0x310022([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x270d53[_0x310022([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5ee868/0x3e8:0xe10*_0x2dc0a0;return _0x270d53[_0x310022([0x65,0x78,0x70])]<_0x1a9d15;}function _0x49a98c(){const _0x44e7e2=_0x270d53[_0x310022([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x44e7e2)return!0x1;if(_0x44e7e2[_0x310022([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310022([0x2a])))return!0x0;if(_0x44e7e2[_0x310022([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310022([0x52,0x48])))return!0x0;if(_0x44e7e2[_0x310022([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310022([0x52,0x52,0x48]))){if(_0x11f509())return!0x0;if(_0x34d4a8()||_0x438a57())return!0x0;}return!0x1;}function _0x233f98(){const _0x5d56b8=_0x270d53[_0x310022([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5d56b8||0x0==_0x5d56b8[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3abfde}=new URL(window[_0x310022([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5d56b8[_0x310022([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3abfde))return!0x0;const _0x4c6ee0=_0x3abfde[_0x310022([0x73,0x70,0x6c,0x69,0x74])](_0x310022([0x2e]));return _0x5d56b8[_0x310022([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x53aedf=>_0x53aedf[_0x310022([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x310022([0x2a])))[_0x310022([0x6d,0x61,0x70])](_0x3c1960=>_0x3c1960[_0x310022([0x73,0x70,0x6c,0x69,0x74])](_0x310022([0x2e])))[_0x310022([0x73,0x6f,0x6d,0x65])](_0x330a63=>_0x4c6ee0[_0x310022([0x65,0x76,0x65,0x72,0x79])]((_0x120139,_0x227920)=>_0x330a63[_0x227920]===_0x120139||_0x330a63[_0x227920]===_0x310022([0x2a])));}function _0x343802(){return _0x1840f4&&_0x408a82?new window[(_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x14e42d,_0x196cac)=>{_0x1840f4[_0x310022([0x74,0x68,0x65,0x6e])](_0x14e42d,_0x196cac),_0x408a82[_0x310022([0x74,0x68,0x65,0x6e])](_0x2704e2=>{_0x2704e2!=_0x310022([0x56,0x61,0x6c,0x69,0x64])&&_0x14e42d(_0x2704e2);},_0x196cac);}):_0x1840f4||_0x408a82||_0x310022([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a70b7(_0x16f8e4,_0x1aba86){return new window[(_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45fd67=>{if(_0x5eacff())return _0x45fd67(_0x310022([0x56,0x61,0x6c,0x69,0x64]));_0x3e0402(),_0x325781[_0x310022([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x310022([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ea966=!0x1;const _0x3743f4=_0x3facc5();function _0x5dce0c(_0x1401cf){return!!_0x1401cf&&(typeof _0x1401cf===_0x310022([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1401cf===_0x310022([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1401cf[_0x310022([0x74,0x68,0x65,0x6e])]===_0x310022([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1401cf[_0x310022([0x63,0x61,0x74,0x63,0x68])]===_0x310022([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5b2e58(_0x462aba){_0x3a9aa1(_0x462aba)[_0x310022([0x74,0x68,0x65,0x6e])](_0x41745a=>{if(!_0x41745a||_0x41745a[_0x310022([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x310022([0x6f,0x6b]))return _0x310022([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5801cf(_0x5fab08(_0x3743f4+_0x1aba86))!=_0x41745a[_0x310022([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x310022([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x310022([0x56,0x61,0x6c,0x69,0x64]);})[_0x310022([0x74,0x68,0x65,0x6e])](_0x1eec27=>(_0x3b0c0a(),_0x1eec27),()=>{const _0x416f12=_0x566498();return null==_0x416f12?(_0x3b0c0a(),_0x310022([0x56,0x61,0x6c,0x69,0x64])):_0x310022(_0x5ee868-_0x416f12>(0x7e17f1d5^_0x225ab7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x310022([0x74,0x68,0x65,0x6e])](_0x45fd67)[_0x310022([0x63,0x61,0x74,0x63,0x68])](()=>{_0x45fd67(_0x310022([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1335c2=0x5a2d9b55^_0x225ab7;function _0x3b0c0a(){const _0x191bd7=_0x310022([0x6c,0x6c,0x63,0x74,0x2d])+_0x5801cf(_0x5fab08(_0x16f8e4)),_0x4e89dc=_0x2e3798(_0x5801cf(window[_0x310022([0x4d,0x61,0x74,0x68])][_0x310022([0x63,0x65,0x69,0x6c])](_0x5ee868/_0x1335c2)));window[_0x310022([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x310022([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x191bd7,_0x4e89dc);}function _0x566498(){const _0x1afa15=_0x310022([0x6c,0x6c,0x63,0x74,0x2d])+_0x5801cf(_0x5fab08(_0x16f8e4)),_0x5d7df2=window[_0x310022([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x310022([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1afa15);return _0x5d7df2?window[_0x310022([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3798(_0x5d7df2),0x10)*_0x1335c2:null;}function _0x3a9aa1(_0x87fd4d){return new window[(_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x116e71,_0x1ed862)=>{_0x87fd4d[_0x310022([0x74,0x68,0x65,0x6e])](_0x116e71,_0x1ed862),window[_0x310022([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ed862,0x5a1aa115^_0x225ab7);});}}_0x325781[_0x310022([0x6f,0x6e])](_0x310022([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x34f290,_0x3dc8d4)=>{if(_0x3dc8d4[0x0]!=_0x16f8e4)return _0x45fd67(_0x310022([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3dc8d4[0x1]={..._0x3dc8d4[0x1],[_0x310022([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3743f4};},{[_0x310022([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x310022([0x68,0x69,0x67,0x68])}),_0x325781[_0x310022([0x6f,0x6e])](_0x310022([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x906640=>{_0x5dce0c(_0x906640[_0x310022([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ea966=!0x0,_0x5b2e58(_0x906640[_0x310022([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x310022([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x310022([0x6c,0x6f,0x77])}),_0x117386[_0x310022([0x74,0x68,0x65,0x6e])](()=>{_0x3ea966||_0x45fd67(_0x310022([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5eacff(){return _0x325781[_0x310022([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x310022([0x76,0x69,0x65,0x77])][_0x310022([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x310022([0x61,0x75,0x74,0x6f]);}function _0x3e0402(){_0x325781[_0x310022([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x310022([0x76,0x69,0x65,0x77])][_0x310022([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x310022([0x61,0x75,0x74,0x6f]);}}function _0x22741f(_0x333d83){const _0x11bc72=[new window[(_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a2186=>setTimeout(_0x4a2186,0x5a124b19^_0x225ab7)),_0x117386[_0x310022([0x74,0x68,0x65,0x6e])](()=>new window[(_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x528056=>{const _0x9dc238=0x5a1b75d2^_0x225ab7,_0x2c7da0=_0x5d632f[_0x310022([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x258025(){_0x2c7da0[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x9dc238&&_0x528056();}_0x258025(),_0x2c7da0[_0x310022([0x6f,0x6e])](_0x310022([0x61,0x64,0x64]),_0x258025);})),new window[(_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a876e=>{function _0x23943b(){for(const _0xa631b4 in window)if(window[_0x310022([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x310022([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xa631b4))&&window[_0xa631b4]==_0x42a337)return _0x3a876e();_0x325781[_0x310022([0x73,0x74,0x61,0x74,0x65])]!=_0x310022([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x310022([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x23943b,0x5a1b665d^_0x225ab7);}_0x1d75cb(_0x310022([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x23943b();})];return window[_0x310022([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x310022([0x72,0x61,0x63,0x65])](_0x11bc72)[_0x310022([0x74,0x68,0x65,0x6e])](()=>_0x333d83);}async function _0x26450c(){if(await _0x117386,_0x1d75cb(_0x310022([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0xe661fd=_0x5d632f[_0x310022([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x56ebb1=_0x5d632f[_0x310022([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])](_0xe661fd[_0x310022([0x69,0x64])]),_0x2364c3=_0x31dbd2(_0x310022([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x2364c3[_0x310022([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0xe661fd['id'],_0x56ebb1?_0x56ebb1['id']:null,!0x0),_0x2364c3[_0x310022([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x310022([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2364c3[_0x310022([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2364c3[_0x310022([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x2a71c7,void(_0x2364c3[_0x310022([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x2a71c7);}if(_0x1d75cb(_0x310022([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4488b1=_0x31dbd2(_0x310022([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4488b1[_0x310022([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x310022([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4488b1[_0x310022([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4488b1[_0x310022([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x2a71c7,_0x4488b1[_0x310022([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x2a71c7;}_0x325781[_0x310022([0x6d,0x6f,0x64,0x65,0x6c])][_0x310022([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2a71c7,_0x325781[_0x310022([0x6d,0x6f,0x64,0x65,0x6c])][_0x310022([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2a71c7,_0x325781[_0x310022([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x310022([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x11f509(){return _0x1d75cb(_0x310022([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x31dbd2(_0x310022([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x310022([0x73,0x74,0x61,0x74,0x65])]==_0x310022([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x34d4a8(){return _0x1d75cb(_0x310022([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 _0x438a57(){return _0x1d75cb(_0x310022([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x51834e(_0x2fd8ec){const _0x4ef4be=_0x4584f4();_0x325781[_0x4ef4be]=_0x310022([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])+_0x2fd8ec,_0x2fd8ec[_0x310022([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x310022([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x4584f4()]=_0x42a337),_0x2fd8ec!=_0x310022([0x56,0x61,0x6c,0x69,0x64])&&_0x26450c();}function _0x4584f4(){const _0x3caf1f=window[_0x310022([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x310022([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x310022([0x6e,0x6f,0x77])]())[_0x310022([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x310022([0x2e]),'');let _0x3681e5=_0x310022([0x4b]);for(let _0xbbe78b=0x0;_0xbbe78b<_0x3caf1f[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xbbe78b+=0x2){let _0xfb9828=window[_0x310022([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3caf1f[_0x310022([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xbbe78b,_0xbbe78b+0x2));_0xfb9828>=_0x426656[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xfb9828-=_0x426656[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3681e5+=_0x426656[_0xfb9828];}return _0x3681e5;}function _0x547fbd(){const _0x513c82=_0xb7896b[_0x310022([0x73,0x70,0x6c,0x69,0x74])](_0x310022([0x2e]));if(0x3!=_0x513c82[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5779bb(_0x513c82[0x1]);function _0x5779bb(_0x3cc998){const _0x4b40d1=_0x485145(_0x3cc998);return _0x4b40d1&&_0x25762a()?_0x4b40d1:null;function _0x25762a(){const _0x5bea69=_0x4b40d1[_0x310022([0x6a,0x74,0x69])],_0x19073f=window[_0x310022([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bea69[_0x310022([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5bea69[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3a6c22={..._0x4b40d1,[_0x310022([0x6a,0x74,0x69])]:_0x5bea69[_0x310022([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5bea69[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3a6c22[_0x310022([0x76,0x63])],_0x5fab08(_0x3a6c22)==_0x19073f;}}}async function _0x51e123(){let _0x2cd17d=!0x0;try{const _0x438cda=_0xb7896b[_0x310022([0x73,0x70,0x6c,0x69,0x74])](_0x310022([0x2e])),[_0x49b3e3,_0x1c2847,_0x4f992a]=_0x438cda;return _0x1994a5(_0x49b3e3),await _0x6f3498(_0x49b3e3,_0x1c2847,_0x4f992a),_0x2cd17d;}catch(_0x30769f){return!0x1;}function _0x1994a5(_0x2702a6){const _0x41310e=_0x485145(_0x2702a6);_0x41310e&&_0x41310e[_0x310022([0x61,0x6c,0x67])]==_0x310022([0x45,0x53,0x32,0x35,0x36])||(_0x2cd17d=!0x1);}async function _0x6f3498(_0x3402a1,_0x4c85e1,_0x3c83de){const _0x5dae26=window[_0x310022([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x310022([0x66,0x72,0x6f,0x6d])](_0x42a1de(_0x3c83de),_0x41d16a=>_0x41d16a[_0x310022([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12e36a=new window[(_0x310022([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x310022([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3402a1+_0x310022([0x2e])+_0x4c85e1),_0x42ef91=window[_0x310022([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x310022([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x42ef91)return;const _0x1126bd=await _0x42ef91[_0x310022([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x310022([0x6a,0x77,0x6b]),_0x23d130,{[_0x310022([0x6e,0x61,0x6d,0x65])]:_0x310022([0x45,0x43,0x44,0x53,0x41]),[_0x310022([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x310022([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x310022([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x42ef91[_0x310022([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x310022([0x6e,0x61,0x6d,0x65])]:_0x310022([0x45,0x43,0x44,0x53,0x41]),[_0x310022([0x68,0x61,0x73,0x68])]:{[_0x310022([0x6e,0x61,0x6d,0x65])]:_0x310022([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1126bd,_0x5dae26,_0x12e36a)||(_0x2cd17d=!0x1);}}function _0x485145(_0x17b002){return _0x17b002[_0x310022([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x310022([0x65,0x79]))?JSON[_0x310022([0x70,0x61,0x72,0x73,0x65])](_0x42a1de(_0x17b002)):null;}function _0x42a1de(_0x4a1d93){return window[_0x310022([0x61,0x74,0x6f,0x62])](_0x4a1d93[_0x310022([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x310022([0x2b]))[_0x310022([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x310022([0x2f])));}function _0x5fab08(_0x334e35){let _0x49ca5f=0x1505;function _0x269398(_0xfc9895){for(let _0x1fe650=0x0;_0x1fe650<_0xfc9895[_0x310022([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fe650++){const _0x4b574d=_0xfc9895[_0x310022([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1fe650);_0x49ca5f=(_0x49ca5f<<0x5)+_0x49ca5f+_0x4b574d,_0x49ca5f&=_0x49ca5f;}}function _0x3d9834(_0x1bf4fd){Array[_0x310022([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1bf4fd)?_0x1bf4fd[_0x310022([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3d9834):_0x1bf4fd&&typeof _0x1bf4fd==_0x310022([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x310022([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1bf4fd)[_0x310022([0x73,0x6f,0x72,0x74])]()[_0x310022([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x220250,_0x19c1da])=>{_0x269398(_0x220250),_0x3d9834(_0x19c1da);}):_0x269398(window[_0x310022([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1bf4fd));}return _0x3d9834(_0x334e35),_0x49ca5f>>>0x0;}function _0x5801cf(_0x2881dd){return _0x2881dd[_0x310022([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x310022([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x310022([0x30]));}function _0x2e3798(_0x560b56){return _0x560b56[_0x310022([0x73,0x70,0x6c,0x69,0x74])]('')[_0x310022([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x310022([0x6a,0x6f,0x69,0x6e])]('');}function _0x1d75cb(_0x507303){return _0x325781[_0x310022([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x310022([0x68,0x61,0x73])](_0x507303);}function _0x31dbd2(_0xcb8e41){return _0x325781[_0x310022([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x310022([0x67,0x65,0x74])](_0xcb8e41);}function _0x2a71c7(){}function _0x310022(_0x2ee26f){return _0x2ee26f['map'](_0xe5dd5f=>String['fromCharCode'](_0xe5dd5f))['join']('');}_0x51834e(await _0xa954eb());}(this);}['createRevision'](_0x3d39e9){const _0x580d5a=this['editor']['plugins']['get']('Users');return new h({'id':_0x3d39e9['id'],'name':_0x3d39e9['name'],'creator':_0x3d39e9['creatorId']?_0x580d5a['getUser'](_0x3d39e9['creatorId']):null,'diffData':_0x3d39e9['diffData']||_0x3d39e9['data'],'authors':_0x3d39e9['authorsIds']['map'](_0x4b6d74=>_0x580d5a['getUser'](_0x4b6d74)),'createdAt':new Date(_0x3d39e9['createdAt']),'attributes':_0x3d39e9['attributes'],'fromVersion':_0x3d39e9['fromVersion'],'toVersion':_0x3d39e9['toVersion']});}['addRevision'](_0x36b514,_0x576371=0x0){this['_revisions']['add'](_0x36b514,_0x576371);}['getRevision'](_0xc47761){return this['_revisions']['get'](_0xc47761);}['getRevisions'](_0x538e6e={'toJSON':!0x1}){const _0x6669be=Array['from'](this['_revisions']);return _0x6669be['reverse'](),_0x538e6e['toJSON']?_0x6669be['map'](_0xd0d639=>_0xd0d639['toJSON']()):_0x6669be;}['getIndex'](_0x1cce55){return this['_revisions']['getIndex'](_0x1cce55);}['getEarlierVisibleRevision'](_0x24a9b3){const [,_0x511476]=this['getRevisionsIterator'](_0x24a9b3,{'direction':'earlier'});return _0x511476;}['getLaterVisibleRevision'](_0x282abe){const [,_0x1f9c5]=this['getRevisionsIterator'](_0x282abe,{'direction':'later'});return _0x1f9c5;}['getRevisionsInDiff'](_0x5901c4){const _0x31e507=[];for(const _0x279864 of this['getRevisionsIterator'](_0x5901c4['newRevisionId']))if(_0x31e507['push'](_0x279864),_0x279864['id']===_0x5901c4['oldRevisionId'])break;return _0x31e507;}*['getRevisionsIterator'](_0xf97efa,{direction:_0xc8e96e='earlier',filter:_0x18ed44=()=>!0x0}={}){const _0x2eecc5='earlier'===_0xc8e96e?0x1:-0x1;let _0x4a96fc=this['_revisions']['get'](_0xf97efa),_0x2c0a68=this['getIndex'](_0x4a96fc);for(yield _0x4a96fc;_0x4a96fc;){if(_0x2c0a68+=_0x2eecc5,_0x4a96fc=this['getRevision'](_0x2c0a68),!_0x4a96fc)return;_0x18ed44(_0x4a96fc)&&(yield _0x4a96fc);}}}function m(_0x4e7f1b,_0x5d854e,_0x1ef5b3){const t=_0x4e7f1b['t'];switch(_0x5d854e){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'},_0x1ef5b3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x1ef5b3);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const E={'c':_0x783e3f,'a':_0x58f15a,'e':_0x2255d2,'r':_0x101b60,'u':_0x151d6e};class u extends _0x6878ef{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3e0391,j,_0x59e4ca];}constructor(_0xdd8f5e){super(_0xdd8f5e),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x289f4e=_0x3facc5();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x289f4e},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x14d09e=this['repository']['getRevision'](0x0),_0x31e185=_0x14d09e&&null===_0x14d09e['creator']?_0x14d09e:null;if(this['_continueCurrentRevision']=!!_0x31e185&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x552550=this['_source']['getCurrentRevisionId'](),_0x241866=this['repository']['getRevision'](_0x552550);if(_0x241866)this['_startingVersion']=_0x241866['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4b3a65=this['_source']['history']['_operations']['find'](_0x26451f=>!_0x26451f['_isInit']),_0x4bfd61=_0x4b3a65?_0x4b3a65['baseVersion']:this['_source']['history']['version'];_0x14d09e?(_0x14d09e['toVersion']<_0x4bfd61&&_0x14d09e['_update']({'toVersion':_0x4bfd61}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x31e185['id'],this['_startingVersion']=_0x31e185['fromVersion']):(this['_startingVersion']=_0x14d09e['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4bfd61,this['_continueCurrentRevision']=!0x1);}}else _0x31e185&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x31e185['toVersion'],this['editor']['model']['document']['history']['version']),_0x31e185['fromVersion']===_0x31e185['toVersion']?(0x0!==_0x31e185['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e185['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x31e185['id'],this['_startingVersion']=_0x31e185['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',_0x22d2ce=>!_0x22d2ce),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2d8867=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c9b06;for(const _0xb5e0d6 in _0x2d8867){const _0x55aa8b=_0xb5e0d6,_0x2dd008=_0x2d8867[_0x55aa8b];if('revisionHistoryLicenseKeyValid'==_0x2dd008||'revisionHistoryLicenseKeyInvalid'==_0x2dd008||'revisionHistoryLicenseKeyExpired'==_0x2dd008||'revisionHistoryLicenseKeyDomainLimit'==_0x2dd008||'revisionHistoryLicenseKeyNotAllowed'==_0x2dd008||'revisionHistoryLicenseKeyEvaluationLimit'==_0x2dd008||'revisionHistoryLicenseKeyTrialLimit'==_0x2dd008||'revisionHistoryLicenseKeyUsageLimit'==_0x2dd008){delete _0x2d8867[_0x55aa8b],_0x5c9b06=_0x2dd008,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5c9b06&&_0x2d8867['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5c9b06&&_0x2d8867['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5c9b06&&_0x2d8867['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5c9b06&&_0x2d8867['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5c9b06&&_0x2d8867['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5c9b06&&_0x2d8867['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5c9b06&&_0x2d8867['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x29eca7=this['repository']['getRevision'](0x0),_0x1c022c=await this['getRevisionDocumentData'](_0x29eca7),_0x1cb960=await this['getRevisionRootsAttributes'](_0x29eca7);this['_replaceEditorDataWithRevisionData'](_0x1c022c,_0x1cb960);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x11277b){this['_source']=_0x11277b;}async['update'](){const _0x43d3c8=await this['_source']['getLatestVersion']();if(_0x43d3c8>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5516a2=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x43d3c8});_0x5516a2['authors']=_0x5516a2['authorsIds']['map'](_0x19ccab=>this['editor']['plugins']['get']('Users')['getUser'](_0x19ccab)),this['currentRevision']['_update'](_0x5516a2);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x28ad3b={},_0x2ca418=null){const _0x2de235=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x2ca418>this['currentRevision']['toVersion']&&(_0x2ca418=null),null===_0x2ca418&&(_0x2ca418=await this['_source']['getLatestVersion']());const _0xa757e2=this['_getFromVersion'](_0x2ca418),_0x391ccf=this['buildRevisionData']({'from':_0xa757e2,'to':_0x2ca418});if(this['currentRevision']['toVersion']<_0x2ca418){const _0xb95a36=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x2ca418,'to':_0x2ca418});_0xb95a36['authors']=[],_0xb95a36['authorsIds']=[],_0xb95a36['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xb95a36,!0x0),delete _0xb95a36['authors'],_0x2de235['push'](_0xb95a36);}_0x28ad3b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x28ad3b['name']=_0x28ad3b['name']||null,_0x28ad3b['id']=_0x28ad3b['id']||_0x3facc5(),_0x28ad3b={..._0x28ad3b,..._0x391ccf};const _0x1a070f=this['addRevisionData'](_0x28ad3b);_0x2de235['push'](_0x28ad3b);const _0x2eed6b=this['repository']['getIndex'](_0x1a070f);if(0x0!==_0x2eed6b){const _0x37858a=this['repository']['getRevision'](_0x2eed6b-0x1);if(_0x37858a['fromVersion']!==_0x2ca418){const _0x5300ea=this['_revisionDataBuilder']['getData'](_0x2ca418,_0x37858a['toVersion']),_0x4b7efc={'id':_0x37858a['id'],'diffData':_0x5300ea['diffData'],'authorsIds':_0x5300ea['authorsIds'],'authors':_0x5300ea['authorsIds']['map'](_0x163e37=>this['editor']['plugins']['get']('Users')['getUser'](_0x163e37)),'fromVersion':_0x2ca418};_0x37858a===this['currentRevision']&&(_0x4b7efc['createdAt']=new Date(_0x28ad3b['createdAt']['getTime']()+0xa)),_0x37858a['_update'](_0x4b7efc,!0x0),delete _0x4b7efc['authors'],_0x2de235['push'](_0x4b7efc);}}if(this['adapter']){for(const _0x4fa0a0 of _0x2de235)this['_bufferUpdate'](_0x4fa0a0['id'],_0x4fa0a0,!0x0);this['sendBufferedUpdates']();}return _0x1a070f;}['addRevisionData'](_0x184d55){const _0x2982c1=this['repository']['createRevision'](_0x184d55);return this['adapter']&&_0x2982c1['on']('_update',(_0x3803ca,_0x45560d,_0x2690b4)=>{_0x2690b4||(this['_bufferUpdate'](_0x45560d['id'],_0x45560d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x2982c1,this['_findInsertionIndex'](_0x2982c1)),_0x2982c1;}async['getRevisionDocumentData'](_0x51a897){await this['_loadRevisionData'](_0x51a897);const _0x3c3b18={};for(const _0x20b750 in _0x51a897['diffData']){if(_0x51a897['diffData'][_0x20b750]['attachChange']&&!_0x51a897['diffData'][_0x20b750]['attachChange']['isAttached'])continue;const _0x81c701=this['_removeRevisionMarkers'](JSON['parse'](_0x51a897['diffData'][_0x20b750]['insertions'])),_0x30c982=this['editor']['editing']['view']['document'],_0x1f2f72=new _0x15885f(_0x30c982,_0x81c701['map'](_0xf923b4=>P(_0xf923b4,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x3c3b18[_0x20b750]=this['editor']['data']['processor']['toData'](_0x1f2f72),this['editor']['data']['processor']['useFillerType']('default');}return _0x3c3b18;}async['getRevisionRootsAttributes'](_0x472958){await this['_loadRevisionData'](_0x472958);const _0x3ea663={};for(const _0x448a86 in _0x472958['diffData'])_0x472958['diffData'][_0x448a86]['attachChange']&&!_0x472958['diffData'][_0x448a86]['attachChange']['isAttached']||(_0x3ea663[_0x448a86]=_0x472958['diffData'][_0x448a86]['attributesAfter']||{});return _0x3ea663;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x561234=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1e8ffa=0x0;_0x1e8ffa<_0x561234['length'];_0x1e8ffa++){const _0x23079d=_0x561234[_0x1e8ffa];let _0xcedeaf=!0x1;for(const _0xc414c2 of Object['keys'](_0x23079d))void 0x0===_0x23079d[_0xc414c2]?delete _0x23079d[_0xc414c2]:'id'!==_0xc414c2&&(_0xcedeaf=!0x0);_0xcedeaf||(_0x561234[_0x1e8ffa]=null);}if(_0x561234=_0x561234['filter'](_0x2fd333=>null!==_0x2fd333),!_0x561234['length'])return;for(let _0x36be43=0x0;_0x36be43<_0x561234['length'];_0x36be43++){const _0x5c1177=_0x561234[_0x36be43];void 0x0!==_0x5c1177['fromVersion']&&void 0x0===_0x5c1177['toVersion']&&(_0x5c1177['toVersion']=this['repository']['getRevision'](_0x5c1177['id'])['toVersion']),void 0x0!==_0x5c1177['toVersion']&&void 0x0===_0x5c1177['fromVersion']&&(_0x5c1177['fromVersion']=this['repository']['getRevision'](_0x5c1177['id'])['fromVersion']);}const _0x395d82=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x561234,_0x395d82)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x52b8db=>{if(_0x52b8db){for(const _0x4757bc of _0x52b8db)this['setRevisionData']({'id':_0x4757bc['id'],'createdAt':_0x4757bc['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x31797e,_0x29ec8f){let _0x58f847=this['editor']['config']['get']('initialData'),_0xf0d4c8=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x58f847){_0x58f847={};for(const _0x508111 of this['editor']['model']['document']['getRootNames']())_0x58f847[_0x508111]='';}if('string'==typeof _0x58f847&&(_0x58f847={'main':_0x58f847}),void 0x0===_0xf0d4c8){_0xf0d4c8={};for(const _0x6e033b of this['editor']['model']['document']['getRootNames']())_0xf0d4c8[_0x6e033b]={};}let _0x2b71bc=!0x1;const _0x587a00=Object['keys'](_0x58f847),_0x5e8a5b=Object['keys'](_0x31797e);for(const _0x352252 of _0x587a00){if(_0x58f847[_0x352252]!==_0x31797e[_0x352252]&&''!==_0x58f847[_0x352252]['trim']()){_0x2b71bc=!0x0;break;}if(!_0x16ab5a(_0xf0d4c8[_0x352252],_0x29ec8f[_0x352252])&&Object['keys'](_0xf0d4c8[_0x352252])['length']>0x0){_0x2b71bc=!0x0;break;}}_0x2b71bc||(_0x2b71bc=_0x5e8a5b['some'](_0x5dcea2=>!this['editor']['model']['document']['getRoot'](_0x5dcea2))),_0x2b71bc&&_0x3e52c3('editor-initial-data-replaced-with-revision-data',{'editorData':_0x58f847,'editorRootsAttributes':_0xf0d4c8,'revisionData':_0x31797e,'revisionRootsAttributes':_0x29ec8f}),this['editor']['config']['set']('initialData',_0x31797e),this['editor']['config']['set']('rootsAttributes',_0x29ec8f);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x22aac5=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x22aac5['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2584cf){const _0x597a54=this['repository']['getRevisions']();_0x597a54['reverse']();let _0x41ffcd=0x0;for(;_0x41ffcd<_0x597a54['length'];){const _0x386ba0=_0x597a54[_0x41ffcd];if(_0x386ba0===this['currentRevision']){_0x41ffcd++;continue;}if(_0x386ba0['id']===this['_initialRevisionId'])break;const _0x5aff88=_0x2584cf['toVersion']-_0x386ba0['toVersion']||_0x2584cf['fromVersion']-_0x386ba0['fromVersion'];if(_0x5aff88>0x0)break;if(_0x5aff88<0x0)_0x41ffcd++;else{if(!_0x2584cf['creator']&&_0x386ba0['creator'])break;if(_0x386ba0['creator']||!_0x2584cf['creator']){if(_0x2584cf['createdAt']>_0x386ba0['createdAt'])break;_0x41ffcd++;}else _0x41ffcd++;}}return _0x41ffcd;}['setRevisionData'](_0x58c0f9){const _0x79110f=this['repository']['getRevision'](_0x58c0f9['id']);if(_0x58c0f9['createdAt']&&(_0x58c0f9['createdAt']=new Date(_0x58c0f9['createdAt'])),_0x58c0f9['authorsIds']){const _0x24972a=this['editor']['plugins']['get']('Users');_0x58c0f9['authors']=_0x58c0f9['authorsIds']['map'](_0x57c6a1=>_0x24972a['getUser'](_0x57c6a1));}_0x79110f['_update'](_0x58c0f9,!0x0);}['buildRevisionData']({revision:_0x32414d=null,from:_0x57341e=null,to:_0x49c309=null}){_0x57341e=null!==_0x57341e?_0x57341e:_0x32414d['fromVersion'],_0x49c309=null!==_0x49c309?_0x49c309:_0x32414d['toVersion'];const _0x1f34c6=this['_revisionDataBuilder']['getData'](_0x57341e,_0x49c309),_0x8737c2={'diffData':_0x1f34c6['diffData'],'authorsIds':_0x1f34c6['authorsIds'],'fromVersion':_0x57341e,'toVersion':_0x49c309};if(!_0x32414d||_0x49c309!==_0x32414d['toVersion']){const _0x51ab32=_0x49c309-0x1,_0x4c09ed=this['_source']['history']['getOperation'](_0x51ab32);_0x8737c2['createdAt']=_0x4c09ed&&_0x4c09ed['createdAt']||new Date();}if(this['_loadedStateData']&&_0x57341e===this['_loadedStateData']['fromVersion']){for(const _0x2b4003 of this['_loadedStateData']['authors'])_0x8737c2['authorsIds']['includes'](_0x2b4003['id'])||_0x8737c2['authorsIds']['push'](_0x2b4003['id']);}return _0x8737c2;}['_loadRevisionData'](_0x3d78ad){if(!_0x3d78ad||_0x3d78ad['diffData'])return Promise['resolve']();{const _0x442d72=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x442d72,'revisionId':_0x3d78ad['id']})['then'](_0x18f9b0=>{_0x3d78ad['diffData']=_0x18f9b0['diffData'];});}}['_bufferUpdate'](_0x3d7215,_0x16b4fa,_0x34dfba){if(this['_bufferedUpdates']['has'](_0x3d7215)){const _0x156027=this['_bufferedUpdates']['get'](_0x3d7215);_0x16b4fa=_0x34dfba?{..._0x156027,..._0x16b4fa}:{..._0x16b4fa,..._0x156027};}this['_bufferedUpdates']['set'](_0x3d7215,_0x16b4fa);}['_getFromVersion'](_0x3b029c){const _0x395778=this['repository']['getRevisions']();_0x395778['reverse'](),_0x395778['shift']();const _0x386fa1=_0x395778['find'](_0xda0689=>_0xda0689['toVersion']<=_0x3b029c)['toVersion'];return _0x386fa1<this['_startingVersion']?this['_startingVersion']:_0x386fa1;}['_createInitialRevision'](_0x5996da){const _0x150b45=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x150b45)this['_initialRevisionId']=_0x150b45['id'];else{const _0x5a4e48=!this['editor']['model']['document']['roots']['find'](_0x1c9d8c=>this['editor']['model']['hasContent'](_0x1c9d8c)),_0x27e0ec=this['editor']['plugins']['get']('Users')['me']['id'],_0x28ee81=m(this['editor']['locale'],_0x5a4e48?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5996da,'to':_0x5996da,'id':this['_initialRevisionId'],'name':_0x28ee81,'creatorId':_0x27e0ec});}}['_createCurrentRevision'](_0x4c3130){const _0x49a3bc=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x49a3bc),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x4c3130,'to':_0x4c3130,'id':_0x49a3bc,'name':'','creatorId':null}));}['_makeRevision']({name:_0x306576,from:_0x5bd555,to:_0x7ff48,creatorId:_0x51a86f,id:_0x4e472e}){const _0x5f34b8=this['buildRevisionData']({'from':_0x5bd555,'to':_0x7ff48});_0x5f34b8['name']=_0x306576,_0x5f34b8['creatorId']=_0x51a86f,_0x5f34b8['id']=_0x4e472e;const _0x3cd1f5=this['addRevisionData'](_0x5f34b8);return this['adapter']&&this['_bufferUpdate'](_0x5f34b8['id'],_0x5f34b8,!0x0),_0x3cd1f5;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x524150){return(_0x524150=_0x524150['filter'](_0x33bfbf=>!_0x33bfbf['name']||'revision-start'!==_0x33bfbf['name']&&'revision-end'!==_0x33bfbf['name']))['forEach'](_0x4d8a4a=>{'string'!=typeof _0x4d8a4a&&(_0x4d8a4a['children']=this['_removeRevisionMarkers'](_0x4d8a4a['children']),_0x4d8a4a['attributes']=_0x4d8a4a['attributes']['filter'](_0x219d23=>!_0x219d23[0x0]['startsWith']('data-revision-')));}),_0x524150;}}function P(_0x10dac5,_0x1e8a8e){const _0x4d8914=_0x1e8a8e['editing']['view']['document'];if('string'==typeof _0x10dac5)return new _0x5c17c1(_0x4d8914,_0x10dac5);{const _0x2f2b1e=_0x10dac5['children']['map'](_0x5c64bf=>P(_0x5c64bf,_0x1e8a8e));return new(E[_0x10dac5['type']]||_0x43d47e)(_0x4d8914,_0x10dac5['name'],_0x10dac5['attributes'],_0x2f2b1e);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x445e12){this['editor']=_0x445e12,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'](_0x1a30c8){this['source']=_0x1a30c8;const _0x45083f=new Map(),_0x3f3fd6=new Map(),_0x4099d1=this['editor']['model']['document']['roots']['map'](_0x375d50=>_0x375d50['rootName']);for(const _0x4c8f4e of _0x4099d1){const _0x39a006=this['editor']['model']['document']['getRoot'](_0x4c8f4e),_0x57b149=T(_0x39a006);_0x45083f['set'](_0x4c8f4e,_0x57b149),_0x3f3fd6['set'](_0x4c8f4e,Object['fromEntries'](_0x39a006['getAttributes']()));}const _0x5ef510=Array['from'](this['editor']['model']['markers'])['map'](_0x518d92=>[_0x518d92['name'],_0x518d92['getRange']()]),_0x299152=this['source']['version'];this['_saveMetaData'](_0x299152,_0x45083f,_0x5ef510,_0x3f3fd6),this['_startingRevisionId']=this['_revisionId'];const _0x3610af=new Map(),_0x277c90=new Map();for(const _0x1f0f98 of _0x4099d1){const _0x4b9616=F(_0x1f0f98);_0x3610af['set'](_0x1f0f98,_0x4b9616),_0x277c90['set'](_0x1f0f98,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x3610af,[],_0x277c90);}['getData'](_0x7ffbea,_0x11eb9f){if(this['_lastFrom']===_0x7ffbea&&this['_lastTo']<=_0x11eb9f)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x11eb9f,!0x0);else{if(!this['_savedMetaData']['has'](_0x7ffbea)){const _0x37af62=this['_getPreviousFrom'](_0x7ffbea);this['_calculateMetaData'](_0x37af62,_0x7ffbea,!0x1);}this['_calculateMetaData'](_0x7ffbea,_0x11eb9f,!0x0);}return this['_lastFrom']=_0x7ffbea,this['_lastTo']=_0x11eb9f,this['_getState']();}['loadState'](_0x212c98){this['_reset'](),this['_lastFrom']=_0x212c98['fromVersion'],this['_lastTo']=_0x212c98['toVersion'];for(const _0x14f994 in _0x212c98['diffData']){const _0x254f47=_0x212c98['diffData'][_0x14f994]['attachChange'],_0x5ad3a9=_0x5c9543(_0x212c98['diffData'][_0x14f994]['attributesBefore'])||{},_0x3f5f96=this['_makeModelFromViewString'](_0x212c98['diffData'][_0x14f994]['deletions']);_0x3f5f96['rootName']=_0x14f994,_0x3f5f96['_isAttached']=!_0x254f47||!_0x254f47['isAttached'],_0x3f5f96['isAttached']=()=>_0x3f5f96['_isAttached'],this['_baseRoots']['set'](_0x14f994,_0x3f5f96),this['_baseRootsAttributes']['set'](_0x14f994,_0x5ad3a9),_0x254f47&&this['_touchedRoots']['set'](_0x14f994,_0x254f47);const _0x4023d9=this['_makeIdsRoot'](_0x3f5f96);this['_baseIdsRoots']['set'](_0x14f994,_0x4023d9);for(const [_0x2f58b3,_0x2d59c7]of _0x3f5f96['markers']){if(!_0x2f58b3['startsWith']('revision:'))continue;const _0x36ce32=_0x2f58b3['split'](':')[0x2];for(const _0x19f407 of _0x2d59c7['getWalker']({'singleCharacters':!0x0})){const _0x545cd3=this['_getVidAttributeName'](_0x19f407),_0x57b65b='elementEnd'==_0x19f407['type']?_0x19f407['previousPosition']['path']['slice'](0x0,-0x1):_0x19f407['previousPosition']['path'],_0x1daf60=_0x4023d9['getNodeByPath'](_0x57b65b)['getAttribute'](_0x545cd3);this['_touched']['set'](_0x1daf60,{'userId':_0x36ce32});}}}this['_startingRevisionId']=this['_revisionId'];const _0x10b550=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x11e2fa=>!this['_touched']['has'](_0x11e2fa));let _0x358e37=0x0;const _0x152ce1=new Map();for(const _0xf2a6a5 in _0x212c98['diffData']){const _0x4d3e94=_0x212c98['diffData'][_0xf2a6a5]['attachChange'],_0x3d7e12=_0x5c9543(_0x212c98['diffData'][_0xf2a6a5]['attributesAfter'])||{},_0x38ee13=this['_makeModelFromViewString'](_0x212c98['diffData'][_0xf2a6a5]['insertions']);_0x38ee13['rootName']=_0xf2a6a5,_0x38ee13['_isAttached']=!_0x4d3e94||_0x4d3e94['isAttached'],_0x38ee13['isAttached']=()=>_0x38ee13['_isAttached'],this['_diffRoots']['set'](_0xf2a6a5,_0x38ee13),this['_diffRootsAttributes']['set'](_0xf2a6a5,_0x3d7e12);const _0x1b6787=this['_makeIdsRoot'](_0x38ee13,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0xf2a6a5,_0x1b6787),_0x152ce1['set'](_0xf2a6a5,_0x38ee13['isAttached']()?_0x3d7e12:{});for(const [_0x4848f9,_0x34699f]of _0x38ee13['markers']){if(!_0x4848f9['startsWith']('revision:'))continue;const _0x4a97ed=_0x4848f9['split'](':')[0x2];for(const _0x19ef7b of _0x34699f['getWalker']({'singleCharacters':!0x0})){const _0x4a86d4=this['_getVidAttributeName'](_0x19ef7b),_0x12588f=this['_revisionId']++,_0x32c5fa='elementEnd'==_0x19ef7b['type']?_0x19ef7b['previousPosition']['path']['slice'](0x0,-0x1):_0x19ef7b['previousPosition']['path'];_0x1b6787['getNodeByPath'](_0x32c5fa)['_setAttribute'](_0x4a86d4,_0x12588f),this['_touched']['set'](_0x12588f,{'userId':_0x4a97ed});}}for(const _0x904753 of this['editor']['model']['createRangeIn'](_0x38ee13)['getWalker']({'singleCharacters':!0x0})){const _0x4294c6=this['_getVidAttributeName'](_0x904753),_0x15e2ab='elementEnd'==_0x904753['type']?_0x904753['previousPosition']['path']['slice'](0x0,-0x1):_0x904753['previousPosition']['path'],_0x21cbae=_0x1b6787['getNodeByPath'](_0x15e2ab);_0x21cbae['getAttribute'](_0x4294c6)>0x0||_0x21cbae['_setAttribute'](_0x4294c6,_0x10b550[_0x358e37++]);}for(const [_0x188852,_0x452477]of _0x38ee13['markers'])_0x188852['startsWith']('revision:')||this['_markers']['set'](_0x188852,_0x452477);}const _0x4503af=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x4503af),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4503af,0x1));const _0x467f12=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x467f12),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x467f12,0x1));const _0x5c7344=Array['from'](this['_diffRoots'])['map'](([_0x20c255,_0x3ad56b])=>[_0x20c255,T(_0x3ad56b)]);this['_saveMetaData'](this['_lastTo'],_0x5c7344,this['_markers'],_0x152ce1);}['_makeModelFromViewString'](_0x547c06){const _0x53a8b2=JSON['parse'](_0x547c06),_0x1acfc7=this['editor']['editing']['view']['document'],_0x45214a=new _0x15885f(_0x1acfc7,_0x53a8b2['map'](_0x2af015=>P(_0x2af015,this['editor'])));return this['editor']['data']['toModel'](_0x45214a);}['_saveMetaData'](_0x4cd89c,_0x4bd13c,_0x57e868,_0x5b0d82){const _0x291fb5=new Map(_0x4bd13c),_0x51be70=new Map(_0x5c9543(_0x5b0d82)),_0x2803c0=new Map();for(const [_0x2f4ae3,_0x5ace73]of _0x57e868)_0x2803c0['set'](_0x2f4ae3,{'start':_0x5ace73['start']['clone'](),'end':_0x5ace73['end']['clone'](),'rootName':_0x5ace73['root']['rootName']});this['_savedMetaData']['set'](_0x4cd89c,{'roots':_0x291fb5,'markers':_0x2803c0,'rootsAttributes':_0x51be70});}['_removeMetaData'](_0x3d5483){this['_savedMetaData']['delete'](_0x3d5483);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x187d32,_0x4ce8fb=null){let _0x265568=null;_0x187d32['is']('documentFragment')||(_0x265568=new ut(_0x187d32['name'],{'vid_start':null===_0x4ce8fb?this['_revisionId']++:_0x4ce8fb++}));const _0x33a4c9=[];for(const _0xc5faea of _0x187d32['getChildren']())if(_0xc5faea['is']('element')){_0x33a4c9['push'](this['_makeIdsRoot'](_0xc5faea,_0x4ce8fb));const _0x384419=_0x33a4c9[_0x33a4c9['length']-0x1];null!==_0x4ce8fb&&(_0x4ce8fb=_0x384419['is']('element','$text')?_0x384419['getAttribute']('vid')+0x1:_0x384419['getAttribute']('vid_end')+0x1);}else{for(let _0x5344a8=0x0;_0x5344a8<_0xc5faea['offsetSize'];_0x5344a8++)_0x33a4c9['push'](new ut('$text',{'vid':null===_0x4ce8fb?this['_revisionId']++:_0x4ce8fb++}));}if(_0x187d32['is']('documentFragment')){const _0x16c523=F(_0x187d32['rootName']);return _0x16c523['_insertChild'](0x0,_0x33a4c9),_0x16c523;}return _0x265568['_setAttribute']('vid_end',null===_0x4ce8fb?this['_revisionId']++:_0x4ce8fb++),_0x265568['_insertChild'](0x0,_0x33a4c9),_0x265568;}['_calculateMetaData'](_0x3f3df4,_0x3dddbd,_0x2cc230){this['_reset']();const {roots:_0x146ee4,markers:_0xa06461,rootsAttributes:_0x7c962}=this['_savedMetaData']['get'](_0x3f3df4);this['_baseRoots']=new Map(_0x146ee4),this['_baseRootsAttributes']=new Map(_0x5c9543(_0x7c962));for(const [_0x1930b9,_0x2d14ca]of this['_baseRoots'])if('$graveyard'!==_0x1930b9&&(this['_diffRoots']['set'](_0x1930b9,T(_0x2d14ca)),this['_diffRootsAttributes']=new Map(_0x5c9543(_0x7c962)),_0x2cc230)){const _0x816610=this['_revisionId'];this['_idsRoots']['set'](_0x1930b9,this['_makeIdsRoot'](_0x2d14ca)),this['_baseIdsRoots']['set'](_0x1930b9,this['_makeIdsRoot'](_0x2d14ca,_0x816610));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x2cc230&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x4e2c11,_0x544b8d]of _0xa06461){const _0x2c2b8c=this['_baseRoots']['get'](_0x544b8d['rootName']),_0x337380=this['_diffRoots']['get'](_0x544b8d['rootName']),_0x4dc13e=new ft(this['_fixPosition'](_0x544b8d['start'],_0x2c2b8c),this['_fixPosition'](_0x544b8d['end'],_0x2c2b8c)),_0x17d838=this['_fixRange'](_0x4dc13e,_0x337380);_0x2c2b8c['markers']['set'](_0x4e2c11,_0x4dc13e),this['_markers']['set'](_0x4e2c11,_0x17d838);}this['_applyOperations'](_0x3f3df4,_0x3dddbd,_0x2cc230);}['_applyOperations'](_0x140c63,_0x595839,_0x1ff02e){for(const _0x569a18 of this['source']['getOperations'](_0x140c63,_0x595839))this['_handleOperation'](_0x569a18,_0x1ff02e);for(const _0x20b02d of this['_diffRoots']['values']())_0x20b02d['markers']['clear']();for(const [_0x49f07a,_0x22a1eb]of this['_markers']){this['_diffRoots']['get'](_0x22a1eb['root']['rootName'])['markers']['set'](_0x49f07a,_0x22a1eb['clone']());}const _0x240ca3=new Map(),_0x24ed2a=new Map();for(const [_0x48dc77,_0x231eed]of this['_diffRoots'])_0x240ca3['set'](_0x48dc77,T(_0x231eed)),_0x24ed2a['set'](_0x48dc77,this['_diffRootsAttributes']['get'](_0x48dc77));this['_saveMetaData'](_0x595839,_0x240ca3,this['_markers'],_0x24ed2a);}['_getPreviousFrom'](_0x15ce8e){const _0x1a7844=Array['from'](this['_savedMetaData']['keys']());_0x1a7844['sort']((_0x1f6b38,_0x50a110)=>_0x1f6b38-_0x50a110),_0x1a7844['reverse']();for(const _0x601631 of _0x1a7844)if(_0x601631<_0x15ce8e)return _0x601631;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x2f3c1c,_0x559b91){const _0x4e1f4=Array['from'](_0x559b91['markers'])['map'](([_0x2fe2ce,_0x28de49])=>[_0x2fe2ce,this['_fixRange'](_0x28de49,_0x2f3c1c)]);_0x2f3c1c['markers']=new Map(_0x4e1f4);}['_transformMarkers'](_0x17c4f8){for(const _0xfd9f62 of this['_markers']['values']()){const _0x6d4f0b=_0xfd9f62['getTransformedByOperation'](_0x17c4f8),_0x3790c8=ft['_createFromRanges'](_0x6d4f0b);_0xfd9f62['start']=_0x3790c8['start'],_0xfd9f62['end']=_0x3790c8['end'];}}['_handleOperation'](_0x5d0a80,_0x15464b){if('addRoot'!=_0x5d0a80['type']&&'detachRoot'!=_0x5d0a80['type']){if('insert'==_0x5d0a80['type']){const _0x1b4ed5=_0x5d0a80['position']['root']['rootName'];this['_diffRoots']['has'](_0x1b4ed5)||(this['_diffRoots']['set'](_0x1b4ed5,F(_0x1b4ed5,!0x0)),this['_diffRootsAttributes']['set'](_0x1b4ed5,{}),_0x15464b&&this['_idsRoots']['set'](_0x1b4ed5,F(_0x1b4ed5,!0x0)));}else{if('addRootAttribute'==_0x5d0a80['type']||'removeRootAttribute'==_0x5d0a80['type']||'changeRootAttribute'==_0x5d0a80['type'])return void this['_handleRootAttributeOperation'](_0x5d0a80);'marker'==_0x5d0a80['type']&&this['_handleMarkerOperation'](_0x5d0a80);}if('marker'!==_0x5d0a80['type']){const _0x80b15c=this['_cloneOperation'](_0x5d0a80,this['_diffRoots']);_0x80b15c['_execute'](),this['_transformMarkers'](_0x80b15c);}if(_0x15464b)switch(_0x5d0a80['type']){case'insert':this['_handleInsertOperation'](_0x5d0a80);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x5d0a80);break;case'merge':this['_handleMergeOperation'](_0x5d0a80);break;case'split':this['_handleSplitOperation'](_0x5d0a80);}}else this['_handleRootOperation'](_0x5d0a80,_0x15464b);}['_cloneOperation'](_0x6a9460,_0x1ba2e9){const _0x2a7fb=_0x6a9460['clone']();return _0x2a7fb['_authorId']=_0x6a9460['_authorId'],this['_fixOperation'](_0x2a7fb,_0x1ba2e9),_0x2a7fb;}['_getBaseVids'](_0x3fabe2){return _0x3fabe2['map'](_0x21b01b=>{const _0x2bb5f0=this['_getVidAttributeName'](_0x21b01b);return Number(_0x21b01b['item']['getAttribute'](_0x2bb5f0));});}['_generateTape'](_0x814f7e,_0x5d6c89){if(_0x814f7e['is']('element','$text'))_0x5d6c89['push']({'item':_0x814f7e,'type':'text'});else{_0x814f7e['is']('element')&&_0x5d6c89['push']({'item':_0x814f7e,'type':'elementStart'});for(const _0xf460ef of _0x814f7e['getChildren']())this['_generateTape'](_0xf460ef,_0x5d6c89);_0x814f7e['is']('element')&&_0x5d6c89['push']({'item':_0x814f7e,'type':'elementEnd'});}return _0x5d6c89;}['_getState'](){const _0xd3a2d3=new Map(this['_touched']),_0xaf637b=new Map(_0xd3a2d3),_0x4eeb87=new Map(),_0x2f03a3={'insertions':{},'deletions':{}},_0x19b6e0={'insertions':{},'deletions':{}},_0x530153=new Map(),_0x5419cb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5419cb['delete']('$graveyard');for(const _0x4816d0 of _0x5419cb){const _0x3b22d9=this['_diffRoots']['get'](_0x4816d0)||F(_0x4816d0,!0x1),_0x405bee=this['_baseRoots']['get'](_0x4816d0)||F(_0x4816d0,!0x1);_0x3b22d9['isAttached']()||_0x405bee['isAttached']()?(_0x2f03a3['insertions'][_0x4816d0]=T(_0x3b22d9),_0x2f03a3['deletions'][_0x4816d0]=T(_0x405bee),this['_copyMarkers'](_0x2f03a3['deletions'][_0x4816d0],_0x405bee),this['_copyMarkers'](_0x2f03a3['insertions'][_0x4816d0],_0x3b22d9),_0x19b6e0['insertions'][_0x4816d0]=this['_generateTape'](this['_idsRoots']['get'](_0x4816d0),[]),_0x19b6e0['deletions'][_0x4816d0]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x4816d0)||F(_0x4816d0,!0x1),[])):_0x5419cb['delete'](_0x4816d0);}for(const _0x5c2620 of _0x5419cb){const _0x3c6b16=_0x19b6e0['insertions'][_0x5c2620];for(const _0x50db6d of _0x3c6b16){const _0x4113fc=this['_getVidAttributeName'](_0x50db6d),_0x2ff95b=_0x50db6d['item']['getAttribute'](_0x4113fc);_0xaf637b['delete'](_0x2ff95b),_0x2ff95b>=this['_startingRevisionId']&&_0x4eeb87['set'](_0x2ff95b,_0xd3a2d3['get'](_0x2ff95b));}}for(const _0x45c58a of _0x5419cb){const _0x1b2758=_0x19b6e0['insertions'][_0x45c58a],_0x86fdfc=this['_getBaseVids'](_0x19b6e0['deletions'][_0x45c58a]);let _0x32998b=0x0;for(const _0x434206 of _0x1b2758){const _0x7ab853=this['_getVidAttributeName'](_0x434206),_0xa41fb8=_0x434206['item']['getAttribute'](_0x7ab853);if(!_0x4eeb87['has'](_0xa41fb8)&&!_0x530153['has'](_0xa41fb8)){if(_0xaf637b['has'](_0xa41fb8))_0x32998b++;else{if(_0xa41fb8!=_0x86fdfc[_0x32998b]){const _0x27f891=_0xd3a2d3['get'](_0xa41fb8)||_0xd3a2d3['get'](_0x86fdfc[_0x32998b]);for(;_0xa41fb8!=_0x86fdfc[_0x32998b];)_0xaf637b['has'](_0x86fdfc[_0x32998b])||(_0x530153['set'](_0x86fdfc[_0x32998b],_0x27f891),_0xd3a2d3['set'](_0x86fdfc[_0x32998b],_0x27f891)),_0x32998b++;}_0x32998b++;}}}}for(const _0x197501 of _0x5419cb){const _0x5c6896=_0x19b6e0['insertions'][_0x197501];for(const _0xc3c6c of _0x5c6896){const _0x110344=this['_getVidAttributeName'](_0xc3c6c),_0x322787=_0xc3c6c['item']['getAttribute'](_0x110344);if(_0x530153['has'](_0x322787)){const _0x1467c5=_0x530153['get'](_0x322787);_0xaf637b['has'](_0x322787)||_0xaf637b['set'](_0x322787,{..._0x1467c5}),_0x4eeb87['set'](_0x322787,{..._0x1467c5});}}}for(const _0xa7fae8 of _0xaf637b['keys']())_0xa7fae8>=this['_startingRevisionId']&&_0xaf637b['delete'](_0xa7fae8);const _0x208425=new Map();for(const _0xe2d01a of _0x5419cb){let _0x389b0c=_0x19b6e0['insertions'][_0xe2d01a];for(const _0x356a75 of _0x389b0c)if(_0x356a75['item']['is']('element','tableCell')){const _0x52f123=this['_getVidAttributeName'](_0x356a75),_0x40511e=_0x356a75['item']['getAttribute'](_0x52f123);if(_0x4eeb87['has'](_0x40511e)){const _0x3ace31=_0x356a75['item']['parent']['parent']['getAttribute']('vid_start'),_0x51fa27=_0x208425['get'](_0x3ace31)||new Set();_0x51fa27['add'](_0x4eeb87['get'](_0x40511e)['userId']),_0x208425['set'](_0x3ace31,_0x51fa27);}}_0x389b0c=_0x19b6e0['deletions'][_0xe2d01a];for(const _0x130488 of _0x389b0c)if(_0x130488['item']['is']('element','tableCell')){const _0x58a056=this['_getVidAttributeName'](_0x130488),_0x20fff8=_0x130488['item']['getAttribute'](_0x58a056);if(_0xaf637b['has'](_0x20fff8)){const _0xe6d2f2=_0x130488['item']['parent']['parent']['getAttribute']('vid_start'),_0x1df03b=_0x208425['get'](_0xe6d2f2)||new Set();_0x1df03b['add'](_0xaf637b['get'](_0x20fff8)['userId']),_0x208425['set'](_0xe6d2f2,_0x1df03b);}}for(const _0x49d7ff of _0x208425['keys']())(_0x4eeb87['has'](_0x49d7ff)||_0xaf637b['has'](_0x49d7ff))&&_0x208425['delete'](_0x49d7ff);}for(const _0x447df8 of _0x5419cb){const _0x2db5dc=_0x19b6e0['insertions'][_0x447df8];let _0x515c26=null,_0x625dfa=null;for(const _0x1789b7 of _0x2db5dc){const _0x2fcf7c=this['_getVidAttributeName'](_0x1789b7),_0x526803=_0x1789b7['item']['getAttribute'](_0x2fcf7c),_0x11e03b=_0x208425['get'](_0x526803);_0x11e03b&&'elementStart'==_0x1789b7['type']&&(_0x515c26=Array['from'](_0x11e03b)[0x0],_0x625dfa=_0x1789b7['item']['getAttribute']('vid_end')),_0x515c26&&(_0xaf637b['set'](_0x526803,{'userId':_0x515c26}),_0x4eeb87['set'](_0x526803,{'userId':_0x515c26})),_0x526803==_0x625dfa&&(_0x515c26=null,_0x625dfa=null);}}const _0x325ac2={},_0x63851b=new Set();for(const _0x503d2d of _0x5419cb){const _0x1d77d3=_0x2f03a3['deletions'][_0x503d2d],_0x4564b0=_0x2f03a3['insertions'][_0x503d2d];for(const {userId:_0x3c6d08}of this['_touchedMarkers']['values']())null!==_0x3c6d08&&_0x63851b['add'](_0x3c6d08);for(const {userId:_0x56c91e}of this['_touchedRoots']['values']())null!==_0x56c91e&&_0x63851b['add'](_0x56c91e);this['_markChanges'](_0x4564b0,_0x19b6e0['insertions'][_0x503d2d],_0x4eeb87,'insertion',_0x63851b),this['_markChanges'](_0x1d77d3,_0x19b6e0['deletions'][_0x503d2d],_0xaf637b,'deletion',_0x63851b),_0x325ac2[_0x503d2d]={'insertions':this['_prepareViewToSave'](_0x4564b0),'deletions':this['_prepareViewToSave'](_0x1d77d3),'attachChange':this['_touchedRoots']['get'](_0x503d2d)||null,'attributesBefore':_0x5c9543(this['_baseRootsAttributes']['get'](_0x503d2d))||{},'attributesAfter':_0x5c9543(this['_diffRootsAttributes']['get'](_0x503d2d))};}return{'diffData':_0x325ac2,'authorsIds':Array['from'](_0x63851b)};}['_processRootBeforeSave'](_0x311aa5){for(const [,_0x139398]of _0x311aa5['markers']){const _0x5e1a4a=_0x139398['start']['getAncestors']()['filter'](_0x273a5b=>'tableCell'==_0x273a5b['name']);for(const _0x7662a4 of _0x5e1a4a)0x1==_0x7662a4['childCount']&&_0x7662a4['getChild'](0x0)['is']('element','paragraph')&&_0x7662a4['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3149b5){this['_processRootBeforeSave'](_0x3149b5);const _0x48f3b1=this['editor']['data']['toView'](_0x3149b5,{}),_0x26c4fc=Array['from'](_0x48f3b1['getChildren']())['map'](_0x1bfcd2=>this['_getViewJson'](_0x1bfcd2));return JSON['stringify'](_0x26c4fc);}['_getViewJson'](_0x1a852c){if(_0x1a852c['is']('$text'))return _0x1a852c['data'];{const _0x26c722=_0x1a852c;return{'type':Object['keys'](E)['find'](_0x5c9ecd=>_0x1a852c instanceof E[_0x5c9ecd]),'name':_0x26c722['name'],'attributes':Array['from'](_0x26c722['getAttributes']()),'children':Array['from'](_0x26c722['getChildren']())['map'](_0x109af8=>this['_getViewJson'](_0x109af8))};}}['_markChanges'](_0x4b3cd7,_0x453229,_0x432721,_0x17a6b9,_0x577172){let _0x8bd0ea=null,_0x326013=null,_0x1fe158=0x0;const _0x550bc6=this['editor']['model'];for(let _0xa06480=0x0;_0xa06480<_0x453229['length'];_0xa06480++){const _0x445c2a=this['_getVidAttributeName'](_0x453229[_0xa06480]),_0x3c2de8=_0x453229[_0xa06480]['item']['getAttribute'](_0x445c2a),_0x2429b9=_0x432721['get'](_0x3c2de8),_0x4dba26=_0xa06480==_0x453229['length']-0x1;(!_0x8bd0ea&&_0x2429b9&&(_0x8bd0ea=_0x2429b9,_0x326013=_0x453229[_0xa06480]),_0x8bd0ea&&(!_0x2429b9||_0x2429b9['userId']!=_0x8bd0ea['userId']))&&(_0x47d111(_0x2429b9,B(_0x326013,_0x4b3cd7,_0x550bc6),B(_0x453229[_0xa06480],_0x4b3cd7,_0x550bc6)),_0x8bd0ea=_0x2429b9||null,_0x326013=_0x2429b9?_0x453229[_0xa06480]:null),_0x8bd0ea&&_0x4dba26&&_0x47d111(_0x2429b9,B(_0x326013,_0x4b3cd7,_0x550bc6),J(_0x453229[_0xa06480],_0x4b3cd7,_0x550bc6));}function _0x47d111(_0x1a81b2,_0x53b2a2,_0x183a01){const _0xe9eeea=_0x8bd0ea['userId'],_0x331185='revision:'+_0x17a6b9+':'+_0xe9eeea+':'+_0x1fe158++,_0x1f2f8d=_0x550bc6['createRange'](_0x53b2a2,_0x183a01);_0x4b3cd7['markers']['set'](_0x331185,_0x1f2f8d),null!==_0xe9eeea&&_0x577172['add'](_0xe9eeea);}}['_getVidAttributeName'](_0x27972f){switch(_0x27972f['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x24d98c,_0x3df0fd){_0x24d98c['baseVersion']=null;for(const _0x346a2d in _0x24d98c){const _0x1bd4da=_0x24d98c[_0x346a2d];if(_0x1bd4da instanceof vt){const _0x23528d=_0x3df0fd['get'](_0x1bd4da['root']['rootName']);_0x24d98c[_0x346a2d]=this['_fixPosition'](_0x1bd4da,_0x23528d);}if(_0x1bd4da instanceof ft){const _0x492595=_0x3df0fd['get'](_0x1bd4da['root']['rootName']);_0x24d98c[_0x346a2d]=this['_fixRange'](_0x1bd4da,_0x492595);}'root'===_0x346a2d&&(_0x24d98c['root']=_0x3df0fd['get'](_0x24d98c['root']['rootName']));}}['_fixRange'](_0x182d8e,_0x1bc9bf){return this['editor']['model']['createRange'](this['_fixPosition'](_0x182d8e['start'],_0x1bc9bf),this['_fixPosition'](_0x182d8e['end'],_0x1bc9bf));}['_fixPosition'](_0x9aaa0c,_0x300299){return this['editor']['model']['createPositionFromPath'](_0x300299,_0x9aaa0c['path'],_0x9aaa0c['stickiness']);}['_handleInsertOperation'](_0x5d092d){const _0x19115c=this['_idsRoots']['get'](_0x5d092d['position']['root']['rootName']),_0x94af95=this['_fixPosition'](_0x5d092d['position'],_0x19115c),_0x338c79=null===_0x5d092d['_authorId']?null:_0x5d092d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x32208c=_0x94af95['parent'],_0x383fcf=this['_revisionId'],_0x50c782=[];for(const _0x76443b of _0x5d092d['nodes'])if(_0x76443b['is']('element'))_0x50c782['push'](this['_makeIdsRoot'](_0x76443b));else{for(let _0x4ff42f=0x0;_0x4ff42f<_0x76443b['offsetSize'];_0x4ff42f++)_0x50c782['push'](new ut('$text',{'vid':this['_revisionId']++}));}const _0x3c42dc=this['_revisionId'];for(let _0x281655=_0x383fcf;_0x281655<_0x3c42dc;_0x281655++)this['_touched']['set'](_0x281655,{'userId':_0x338c79});_0x32208c['_insertChild'](_0x94af95['offset'],_0x50c782);}['_handleMoveOperation'](_0x36c1a3){(_0x36c1a3=this['_cloneOperation'](_0x36c1a3,this['_idsRoots']))['_execute']();const _0x39e693=null===_0x36c1a3['_authorId']?null:_0x36c1a3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x31cb4c=_0x36c1a3['getMovedRangeStart'](),_0x1acbf3=_0x31cb4c['parent'],_0x4b2af9=_0x31cb4c['offset'];!function _0x53d892(_0xfaa8b9,_0x3990b9,_0x49ada4,_0x452dfe){for(let _0x35b03c=_0x49ada4;_0x35b03c<_0x452dfe;_0x35b03c++){const _0x4766ab=_0x3990b9['getChild'](_0x35b03c);_0x4766ab['is']('element','$text')?_0xfaa8b9['set'](_0x4766ab['getAttribute']('vid'),{'userId':_0x39e693}):(_0xfaa8b9['set'](_0x4766ab['getAttribute']('vid_start'),{'userId':_0x39e693}),_0x53d892(_0xfaa8b9,_0x4766ab,0x0,_0x4766ab['childCount']),_0xfaa8b9['set'](_0x4766ab['getAttribute']('vid_end'),{'userId':_0x39e693}));}}(this['_touched'],_0x1acbf3,_0x4b2af9,_0x4b2af9+_0x36c1a3['howMany']);}['_handleMergeOperation'](_0x5dbd6d){const _0x1ecfaa=null===(_0x5dbd6d=this['_cloneOperation'](_0x5dbd6d,this['_idsRoots']))['_authorId']?null:_0x5dbd6d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x105fd0=_0x5dbd6d['targetPosition']['parent'],_0x3a1074=_0x5dbd6d['sourcePosition']['parent'],_0x109333=_0x105fd0['getAttribute']('vid_end'),_0x4ec794=_0x3a1074['getAttribute']('vid_start');_0x105fd0['_setAttribute']('vid_end',_0x3a1074['getAttribute']('vid_end')),_0x3a1074['_setAttribute']('vid_end',_0x109333),this['_touched']['set'](_0x4ec794,{'userId':_0x1ecfaa}),this['_touched']['set'](_0x109333,{'userId':_0x1ecfaa}),_0x5dbd6d['_execute']();}['_handleSplitOperation'](_0x3db2c0){const _0x7d8363=null===(_0x3db2c0=this['_cloneOperation'](_0x3db2c0,this['_idsRoots']))['_authorId']?null:_0x3db2c0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d7ceb=_0x3db2c0['graveyardPosition'],_0x4dbac6=_0x3db2c0['splitPosition']['parent'];_0x3db2c0['_execute']();const _0x4646d5=_0x4dbac6['getAttribute']('vid_end'),_0x519024=_0x3db2c0['insertionPosition']['nodeAfter'];if(_0x4d7ceb){const _0x21328c=_0x519024['getAttribute']('vid_end'),_0x2f3ffd=_0x4dbac6['getAttribute']('vid_end');_0x4dbac6['_setAttribute']('vid_end',_0x21328c),_0x519024['_setAttribute']('vid_end',_0x2f3ffd),this['_touched']['set'](_0x4dbac6['getAttribute']('vid_end'),{'userId':_0x7d8363}),this['_touched']['set'](_0x519024['getAttribute']('vid_start'),{'userId':_0x7d8363});}else{const _0x2ded97=this['_revisionId']++,_0x583d15=this['_revisionId']++;_0x4dbac6['_setAttribute']('vid_end',_0x2ded97),_0x519024['_setAttribute']('vid_start',_0x583d15),_0x519024['_setAttribute']('vid_end',_0x4646d5),this['_touched']['set'](_0x2ded97,{'userId':_0x7d8363}),this['_touched']['set'](_0x583d15,{'userId':_0x7d8363});}}['_handleMarkerOperation'](_0xc68d67){if(!_0xc68d67['affectsData'])return;const _0x4c0ff9=(_0xc68d67=this['_cloneOperation'](_0xc68d67,this['_diffRoots']))['oldRange']?_0xc68d67['oldRange']['root']:null,_0xde75e4=_0xc68d67['newRange']?_0xc68d67['newRange']['root']:null;_0x4c0ff9&&this['_markers']['delete'](_0xc68d67['name']),_0xde75e4&&this['_markers']['set'](_0xc68d67['name'],_0xc68d67['newRange']['clone']());const _0x3e9217=null===_0xc68d67['_authorId']?null:_0xc68d67['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3b43a5=_0xc68d67['name'];if(!this['_touchedMarkers']['has'](_0x3b43a5))return void this['_touchedMarkers']['set'](_0x3b43a5,{'range':_0xc68d67['oldRange'],'userId':_0x3e9217});const _0x4927e9=this['_touchedMarkers']['get'](_0x3b43a5),_0x561129=_0x4927e9['range'],_0x355f13=_0xc68d67['newRange'];null==_0x561129&&null==_0x355f13||_0x561129&&_0x355f13&&_0x561129['isEqual'](_0x355f13)?this['_touchedMarkers']['delete'](_0xc68d67['name']):_0x4927e9['userId']=_0x3e9217;}['_handleRootOperation'](_0x3d1f4d,_0x438684){this['_diffRoots']['has'](_0x3d1f4d['rootName'])?this['_diffRoots']['get'](_0x3d1f4d['rootName'])['_isAttached']=_0x3d1f4d['isAdd']:(this['_diffRoots']['set'](_0x3d1f4d['rootName'],F(_0x3d1f4d['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x3d1f4d['rootName'],{}),_0x438684&&this['_idsRoots']['set'](_0x3d1f4d['rootName'],F(_0x3d1f4d['rootName'],!0x0)));const _0x1c0a2a=null===_0x3d1f4d['_authorId']?null:_0x3d1f4d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2e9580=this['_touchedRoots']['get'](_0x3d1f4d['rootName']);_0x2e9580&&_0x2e9580['userId']===_0x1c0a2a?this['_touchedRoots']['delete'](_0x3d1f4d['rootName']):this['_touchedRoots']['set'](_0x3d1f4d['rootName'],{'userId':_0x1c0a2a,'isAttached':_0x3d1f4d['isAdd']});}['_handleRootAttributeOperation'](_0x494350){const _0x1fe011=this['_diffRootsAttributes']['get'](_0x494350['root']['rootName']);null===_0x494350['newValue']?delete _0x1fe011[_0x494350['key']]:_0x1fe011[_0x494350['key']]=_0x494350['newValue'];}}function T(_0x50b298){const _0x1bf53b=F(_0x50b298['rootName'],_0x50b298['isAttached']());for(const _0x32ee5c of _0x50b298['getChildren']()){const _0x4bd64e=_0x32ee5c['_clone'](!0x0);_0x1bf53b['_appendChild'](_0x4bd64e);}return _0x1bf53b;}function F(_0x288173,_0x28740f=!0x0){const _0x9b56e9=new gt();return _0x9b56e9['rootName']=_0x288173,_0x9b56e9['_isAttached']=_0x28740f,_0x9b56e9['isAttached']=()=>_0x9b56e9['_isAttached'],_0x9b56e9;}function B(_0x469174,_0x3dfc36,_0x253a95){const _0x366128='elementEnd'==_0x469174['type']?_0x253a95['createPositionAt'](_0x469174['item'],'end'):_0x253a95['createPositionBefore'](_0x469174['item']);return _0x253a95['createPositionFromPath'](_0x3dfc36,_0x366128['path'],_0x366128['stickiness']);}function J(_0x1fd53b,_0x3f3f9d,_0x8caa57){const _0x4b21bd='elementStart'==_0x1fd53b['type']?_0x8caa57['createPositionAt'](_0x1fd53b['item'],0x0):_0x8caa57['createPositionAfter'](_0x1fd53b['item']);return _0x8caa57['createPositionFromPath'](_0x3f3f9d,_0x4b21bd['path'],_0x4b21bd['stickiness']);}class os extends _0x572c6d{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x2e8c69,_0x2747dd){super(_0x2e8c69),this['focusTracker']=new _0x8dd88d(),this['keystrokes']=new _0x501707(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2747dd),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'](),_0x1576d1({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x3e04ef=_0x162973=>_0x162973['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e04ef),this['keystrokes']['set']('arrowleft',_0x3e04ef),this['keystrokes']['set']('arrowup',_0x3e04ef),this['keystrokes']['set']('arrowdown',_0x3e04ef);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0xe74f67){this['revisionNameInputView']['fieldView']['element']['value']=_0xe74f67['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1b3b6f){const _0x4ced9b=new at(this['locale'],ti),_0x1879a3=_0x4ced9b['fieldView'];_0x1879a3['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x4dc0e8=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1b3b6f&&(_0x4dc0e8+='\x20('+m(this['locale'],'optional')+')'),(_0x4ced9b['label']=_0x4dc0e8,_0x1879a3['on']('input',()=>{this['revisionNameInputValue']=_0x1879a3['element']['value']['trim']();}),_0x4ced9b);}}class f extends _0x6878ef{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u];}['_saveRevisionFormView'];['init'](){const _0xd7d872=this['editor'],_0x1f3c35=_0xd7d872['plugins']['get']('RevisionTracker');_0xd7d872['ui']['componentFactory']['add']('revisionHistory',_0x474aec=>{const _0x456281=_0xef6b9b(_0x474aec),_0x4e05e4=_0x456281['panelView']['children'],_0x2dd03a=new _0x999761(_0x474aec),_0xa8c077=new te(_0x474aec),_0x2b1c9f=new _0x5c9eb1(_0x474aec),_0x5250fc=new te(_0x474aec),_0x54be12=new _0x5c9eb1(_0x474aec);return _0x456281['bind']('isEnabled')['to'](_0x1f3c35,'isReady',_0x1f3c35,'isEnabled',_0xd7d872,'isReadOnly',(_0x3f84e3,_0x32fb8b,_0x3eed1f)=>_0x3f84e3&&_0x32fb8b&&!_0x3eed1f),_0x456281['buttonView']['set']({'icon':_0x3427a3,'label':m(_0x474aec,'Revision\x20history'),'tooltip':!0x0}),_0x2b1c9f['set']({'label':m(_0x474aec,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x2b1c9f['bind']('isEnabled')['to'](_0x1f3c35,'isReady',_0x1f3c35,'isEnabled',_0xd7d872,'isReadOnly',(_0x128912,_0x1dc204,_0x34e622)=>_0x128912&&_0x1dc204&&!_0x34e622),_0x2b1c9f['on']('execute',()=>this['_showDialog']()),_0x54be12['set']({'label':m(_0x474aec,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x54be12['bind']('isEnabled')['to'](_0x1f3c35,'isReady',_0xd7d872,'isReadOnly',(_0x4765d9,_0x31c154)=>_0x4765d9&&!_0x31c154),_0x54be12['on']('execute',()=>{_0xd7d872['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x456281['isOpen']=!0x1,_0xd7d872['editing']['view']['focus']();}),_0xa8c077['children']['add'](_0x2b1c9f),_0x5250fc['children']['add'](_0x54be12),_0x2dd03a['role']='menu',_0x2dd03a['items']['addMany']([_0xa8c077,_0x5250fc]),_0x4e05e4['add'](_0x2dd03a),_0x456281;}),_0xd7d872['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x2a6a2d=this['editor'],_0x4ba400=_0x2a6a2d['locale'],_0xd2e1f0=new _0x4de212(_0x4ba400),_0x11e8b0=new _0x3007fb(_0x4ba400);_0xd2e1f0['buttonView']['set']({'icon':_0x3427a3,'label':m(_0x4ba400,'Revision\x20history')});const _0x57468f=new _0x7508de(_0x4ba400,_0xd2e1f0),_0x2cc4c0=new _0x29b0b9(_0x4ba400);_0x2cc4c0['set']({'label':m(_0x4ba400,'Save\x20current\x20revision')}),_0x2cc4c0['delegate']('execute')['to'](_0xd2e1f0),_0x2cc4c0['on']('execute',()=>{this['_showDialog']();}),_0x57468f['children']['add'](_0x2cc4c0),_0x11e8b0['items']['add'](_0x57468f);const _0x25a2b1=new _0x7508de(_0x4ba400,_0xd2e1f0),_0x4916eb=new _0x29b0b9(_0x4ba400);return _0x4916eb['set']({'label':m(_0x4ba400,'Open\x20revision\x20history')}),_0x4916eb['delegate']('execute')['to'](_0xd2e1f0),_0x4916eb['on']('execute',()=>{_0x2a6a2d['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x25a2b1['children']['add'](_0x4916eb),_0x11e8b0['items']['add'](_0x25a2b1),_0xd2e1f0['panelView']['children']['add'](_0x11e8b0),_0xd2e1f0;}['_showDialog'](){const _0x3b5cdd=this['editor'],_0x1ee40a=_0x3b5cdd['locale'],_0x299a29=_0x3b5cdd['plugins']['get']('Dialog'),_0x57d290=_0x3b5cdd['plugins']['get']('RevisionTracker');function _0x1be997(_0xf47b75){_0x3b5cdd['config']['get']('revisionHistory.requireRevisionName')&&''===_0xf47b75['revisionName']?_0xf47b75['revisionNameInputView']['errorText']=m(_0x1ee40a,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x3b5cdd['plugins']['get'](u)['saveRevision']({'name':_0xf47b75['revisionName']}),_0x299a29['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x1be997(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x299a29['show']({'id':'revisionSave','title':m(_0x1ee40a,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x3b5cdd['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x299a29['hide']()},{'label':m(_0x3b5cdd['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4f70af){_0x4f70af['bind']('isEnabled')['to'](_0x57d290,'isReady',_0x57d290,'isEnabled',_0x3b5cdd,'isReadOnly',(_0x2d4360,_0x475788,_0x172f97)=>_0x2d4360&&_0x475788&&!_0x172f97);},'onExecute':()=>_0x1be997(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x55f631=this['editor'],_0x32263b=_0x55f631['locale'];this['_saveRevisionFormView']=new os(_0x32263b,_0x55f631['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x572c6d{['changeId'];['_model'];constructor(_0x21c576,_0xca92ac){super(_0x21c576),this['_model']=_0xca92ac,this['changeId']=_0xca92ac['id'];const _0x1da713=this['bindTemplate'],_0x5552bd=m(_0x21c576,_0xca92ac['data']['isSuggestion']?'Suggested\x20by':'add'==_0xca92ac['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xca92ac['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1da713['to']('type',_0x520c50=>'ck-revision-change__'+_0x520c50)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5552bd}]},{'text':'\x20'+_0xca92ac['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0x33b2e5(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x26f35f){super(),this['id']=_0x26f35f['id']||_0x3facc5(),this['author']=_0x26f35f['author'],this['type']=_0x26f35f['type'],this['data']=_0x26f35f['data']||{},this['rootName']=_0x26f35f['rootName'],this['set']('createdAt',_0x26f35f['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(_0x9fd03,_0x94b048){this['newRevisionId']=_0x9fd03,this['oldRevisionId']=_0x94b048,this['changes']=new _0x12f74d();}['_setChanges'](_0x3d191a){for(const _0x5ac073 of _0x3d191a)this['changes']['add'](_0x5ac073);}}const Y={'c':_0x783e3f,'a':_0x58f15a,'e':_0x2255d2,'r':_0x101b60,'u':_0x151d6e};class d extends _0x6878ef{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3e0391,_0x1b54bd,j];}constructor(_0xf630eb){super(_0xf630eb),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x584eb2,_0x242b2f,_0x350fbc)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x4f253e=>{for(const _0x16f4a3 of this['editor']['editing']['view']['document']['roots'])_0x350fbc?_0x4f253e['removeClass']('ck-editor__editable__overlay',_0x16f4a3):_0x4f253e['addClass']('ck-editor__editable__overlay',_0x16f4a3);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x5cf770=>null!==_0x5cf770),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x77deb4,_0x24da16,_0x4ac1ee)=>_0x77deb4&&_0x4ac1ee?_0x24da16['changes']['getIndex'](_0x4ac1ee):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x4b5f11,_0x273af5)=>_0x4b5f11?_0x273af5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x1b54bd);}['init'](){const _0x490ffb=this['editor'],_0x24b545=new yt(_0x490ffb,{'direction':'backward'}),_0x2a401d=new yt(_0x490ffb,{'direction':'forward'});(_0x490ffb['commands']['add']('showPreviousChange',_0x24b545),_0x490ffb['commands']['add']('showNextChange',_0x2a401d),_0x490ffb['commands']['add']('restoreRevision',new _t(_0x490ffb)),this['on']('change:numberOfChanges',()=>{_0x24b545['refresh'](),_0x2a401d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x490ffb['enableReadOnlyMode']('revision-viewer'),_0x490ffb['plugins']['has']('WidgetToolbarRepository'))&&_0x490ffb['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xec9472){await this['loadRevisionData'](_0xec9472);const _0x43cc5a={};for(const _0x24e17 in _0xec9472['diffData']){if(_0xec9472['diffData'][_0x24e17]['attachChange']&&!_0xec9472['diffData'][_0x24e17]['attachChange']['isAttached'])continue;const _0x3ef4e7=this['_removeRevisionMarkers'](JSON['parse'](_0xec9472['diffData'][_0x24e17]['insertions'])),_0x3f9f73=this['editor']['editing']['view']['document'],_0x2e14ce=new _0x15885f(_0x3f9f73,_0x3ef4e7['map'](_0x7a0a57=>this['_getViewObj'](_0x7a0a57)));this['editor']['data']['processor']['useFillerType']('marked'),_0x43cc5a[_0x24e17]=this['editor']['data']['processor']['toData'](_0x2e14ce),this['editor']['data']['processor']['useFillerType']('default');}return _0x43cc5a;}async['getRevisionRootsAttributes'](_0x576232){await this['loadRevisionData'](_0x576232);const _0x658722={};for(const _0x56ac00 in _0x576232['diffData'])_0x576232['diffData'][_0x56ac00]['attachChange']&&!_0x576232['diffData'][_0x56ac00]['attachChange']['isAttached']||(_0x658722[_0x56ac00]=_0x576232['diffData'][_0x56ac00]['attributesAfter']||{});return _0x658722;}['_removeRevisionMarkers'](_0x270171){return(_0x270171=_0x270171['filter'](_0x1bc66b=>!_0x1bc66b['name']||'revision-start'!==_0x1bc66b['name']&&'revision-end'!==_0x1bc66b['name']))['forEach'](_0x1cd9cc=>{'string'!=typeof _0x1cd9cc&&(_0x1cd9cc['children']=this['_removeRevisionMarkers'](_0x1cd9cc['children']),_0x1cd9cc['attributes']=_0x1cd9cc['attributes']['filter'](_0x11c3ce=>!_0x11c3ce[0x0]['startsWith']('data-revision-')));}),_0x270171;}async['compare'](_0x2a1473,_0x4962ef,_0x4617a3=!0x1){if(!this['isEnabled'])return;const _0xe9345f=this['diff'],_0x44adba=this['repository'],_0x7d9213='string'==typeof _0x2a1473?_0x44adba['getRevision'](_0x2a1473):_0x2a1473,_0x3c8f2a='string'==typeof _0x4962ef?_0x44adba['getRevision'](_0x4962ef):_0x4962ef,_0x359927=_0x7d9213['id'],_0x5256c7=_0x3c8f2a?_0x3c8f2a['id']:null;if(!_0x4617a3&&this['diff']&&this['diff']['newRevisionId']===_0x359927&&this['diff']['oldRevisionId']===_0x5256c7)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new c(_0x359927,_0x5256c7);const _0x5ed0ba=this['_getRevisionsRange'](_0x7d9213,_0x3c8f2a,!0x0)['map'](_0x37a4fa=>this['loadRevisionData'](_0x37a4fa));return _0x5ed0ba['push'](new Promise(_0x40afb0=>{setTimeout(_0x40afb0,0x14);})),Promise['all'](_0x5ed0ba)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x40523b=this['_getDiff'](_0x359927,_0x5256c7);for(const _0x2fcda3 of _0x40523b['changes'])this['_changeIdToChange']['set'](_0x2fcda3['id'],_0x2fcda3);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x30f082=>{for(const _0xbb9172 of this['editor']['model']['document']['getRootNames']())_0x30f082['detachRoot'](_0xbb9172);for(const _0x427c41 of Object['keys'](_0x40523b['model'])){const _0x542ee2=_0x30f082['addRoot'](_0x427c41);for(const _0x5b55db of Object['keys'](_0x40523b['attributes'][_0x427c41]))_0x30f082['setAttribute'](_0x5b55db,_0x40523b['attributes'][_0x427c41][_0x5b55db],_0x542ee2);_0x30f082['insert'](_0x40523b['model'][_0x427c41],_0x542ee2,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x40523b['changes'])),this['isReady']=!0x0;})['catch'](_0x30ab02=>{console['error'](_0x30ab02),this['_cleanUp'](),_0xe9345f&&(this['diff']=_0xe9345f),this['isReady']=!0x0;});}['addRevisionData'](_0x1de373,_0x34d369){const _0xef365e=this['repository']['createRevision'](_0x1de373);return _0xef365e['on']('_update',(_0x55d470,_0x292ce3,_0x52cae1)=>_0x34d369(_0x292ce3,_0x52cae1,_0xef365e)),this['repository']['addRevision'](_0xef365e),_0xef365e;}['loadRevisionData'](_0x4bb027){if(!_0x4bb027||_0x4bb027['diffData'])return Promise['resolve']();{const _0x30f65a=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x30f65a,'revisionId':_0x4bb027['id']})['then'](_0x21f6df=>{_0x4bb027['_update']({'diffData':_0x21f6df['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x27a295=>{for(const _0x417dae of this['editor']['model']['document']['getRootNames']())_0x27a295['detachRoot'](_0x417dae);});}['_sortAndFilterDiffChanges'](_0x2420f8){const _0x17c6c4=[],_0x545fa8=new Map();for(const _0x440737 of this['editor']['model']['document']['getRootNames']()){const _0x4a6d0f=this['editor']['editing']['view']['getDomRoot'](_0x440737);if(!_0x4a6d0f)continue;const _0x43eba1=_0x4a6d0f['getClientRects']()['item'](0x0);_0x43eba1&&(_0x17c6c4['push'](_0x440737),_0x545fa8['set'](_0x440737,_0x43eba1));}return _0x17c6c4['sort']((_0x4f2057,_0x481482)=>{const _0x4ca2f5=_0x545fa8['get'](_0x4f2057),_0x50f272=_0x545fa8['get'](_0x481482);return _0x4ca2f5['y']-_0x50f272['y']||_0x4ca2f5['x']-_0x50f272['x'];}),(_0x2420f8=_0x2420f8['filter'](_0x29697b=>_0x17c6c4['includes'](_0x29697b['rootName'])))['sort']((_0x494b8d,_0x26864a)=>_0x17c6c4['indexOf'](_0x494b8d['rootName'])-_0x17c6c4['indexOf'](_0x26864a['rootName'])),_0x2420f8;}['_makeTape'](_0x299567){const _0x54ed4f=Array['from'](_0x299567['markers'])['filter'](([_0x1cdbee,_0x22e482])=>_0x1cdbee['startsWith']('revision:')&&!_0x22e482['isCollapsed']),_0x312c9d=Array['from'](this['editor']['model']['createRangeIn'](_0x299567)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x54ed4f['length'])for(const _0x1e8c37 of _0x312c9d){const [_0xa179c3,_0x411613]=_0x54ed4f[0x0],[,_0x24b52b,_0x2bb897]=_0xa179c3['split'](':');if(_0x411613['end']['isEqual'](_0x1e8c37['nextPosition'])&&_0x54ed4f['shift'](),(_0x1e8c37['previousPosition']['isEqual'](_0x411613['start'])||_0x1e8c37['previousPosition']['isAfter'](_0x411613['start']))&&('insertion'==_0x24b52b?_0x1e8c37['isAdded']={'userId':_0x2bb897}:'deletion'==_0x24b52b&&(_0x1e8c37['isRemoved']={'userId':_0x2bb897})),0x0==_0x54ed4f['length'])break;}return _0x312c9d;}['_refreshStartEndIndex'](_0x58c1a6){const _0x697b0=new Map();for(let _0x3c7160=0x0;_0x3c7160<_0x58c1a6['length'];_0x3c7160++)'text'===_0x58c1a6[_0x3c7160]['type']?(_0x58c1a6[_0x3c7160]['item']['startIndex']=_0x3c7160,_0x58c1a6[_0x3c7160]['item']['endIndex']=_0x3c7160):('elementStart'===_0x58c1a6[_0x3c7160]['type']?_0x58c1a6[_0x3c7160]['item']['startIndex']=_0x3c7160:'elementEnd'===_0x58c1a6[_0x3c7160]['type']&&(_0x58c1a6[_0x3c7160]['item']['endIndex']=_0x3c7160),_0x697b0['set'](_0x58c1a6[_0x3c7160]['id'],_0x3c7160));for(const _0x58346b of _0x697b0['values']())'elementStart'===_0x58c1a6[_0x58346b]['type']?_0x58c1a6[_0x58346b]['item']['endIndex']=_0x697b0['get'](_0x58c1a6[_0x58346b]['pairId']):'elementEnd'===_0x58c1a6[_0x58346b]['type']&&(_0x58c1a6[_0x58346b]['item']['startIndex']=_0x697b0['get'](_0x58c1a6[_0x58346b]['pairId']));}['_processTape'](_0x7e3d43){for(let _0x50617d=0x0;_0x50617d<_0x7e3d43['length'];_0x50617d++){if('elementStart'===_0x7e3d43[_0x50617d]['type'])_0x7e3d43[_0x50617d]['item']['startIndex']=_0x50617d;else{if('elementEnd'===_0x7e3d43[_0x50617d]['type']){_0x7e3d43[_0x50617d]['item']['endIndex']=_0x50617d;const _0x5eb75f=_0x7e3d43[_0x50617d]['item']['startIndex'];_0x7e3d43[_0x5eb75f]['pairId']=_0x7e3d43[_0x50617d]['id'],_0x7e3d43[_0x50617d]['pairId']=_0x7e3d43[_0x5eb75f]['id'];}else _0x7e3d43[_0x50617d]['item']['startIndex']=_0x50617d,_0x7e3d43[_0x50617d]['item']['endIndex']=_0x50617d,_0x7e3d43[_0x50617d]['pairId']=null;}_0x7e3d43[_0x50617d]['markersStart']||(_0x7e3d43[_0x50617d]['markersStart']=[],_0x7e3d43[_0x50617d]['markersEnd']=[]);}}['_markInsertions'](_0x281b8e,_0x55e684){const _0x4df7ff=_0x281b8e['filter'](_0x55bf18=>!_0x55bf18['isAdded']);for(let _0x23b3fa=0x0;_0x23b3fa<_0x55e684['length'];_0x23b3fa++)_0x55e684[_0x23b3fa]['isAdded']&&(_0x4df7ff[_0x23b3fa]['isAdded']=_0x55e684[_0x23b3fa]['isAdded']);}['_makeModelFromViewString'](_0x19ca9b){const _0x46d2a9=JSON['parse'](_0x19ca9b),_0x2694ea=this['editor']['editing']['view']['document'],_0x32a163=new _0x15885f(_0x2694ea,_0x46d2a9['map'](_0x32a276=>this['_getViewObj'](_0x32a276)));return this['editor']['data']['toModel'](_0x32a163);}['_getViewObj'](_0x885a85){const _0x73d85=this['editor']['editing']['view']['document'];if('string'==typeof _0x885a85)return new _0x5c17c1(_0x73d85,_0x885a85);{const _0x330f2d=_0x885a85['children']['map'](_0x13ccbb=>this['_getViewObj'](_0x13ccbb));return new(Y[_0x885a85['type']]||_0x43d47e)(_0x73d85,_0x885a85['name'],_0x885a85['attributes'],_0x330f2d);}}['_getDiff'](_0x20eb34,_0x3d07e4=null){const _0x2d95c6=this['repository']['getRevision'](_0x20eb34),_0x43c792=_0x3d07e4?this['repository']['getRevision'](_0x3d07e4):null,_0x364377=this['_getRevisionsRange'](_0x2d95c6,_0x43c792),_0x5b7a1f=_0x364377[_0x364377['length']-0x1],_0x3d9f06=new Map(),_0x1176b9={'model':{},'attributes':{},'changes':[]},_0xfc95d=new Set(),_0x2ef4da=new Map();for(let _0x3738bb=_0x364377['length']-0x1;_0x3738bb>=0x0;_0x3738bb--){const _0x5eb955=_0x364377[_0x3738bb];for(const _0x41d2ee of Object['keys'](_0x5eb955['diffData']))if(_0x5eb955['diffData'][_0x41d2ee]['attachChange']){const _0x1792a5=_0x5eb955['diffData'][_0x41d2ee]['attachChange'];_0x1792a5['isAttached']?(_0xfc95d['add'](_0x41d2ee),_0x2ef4da['has'](_0x41d2ee)&&_0x2ef4da['get'](_0x41d2ee)['userId']==_0x1792a5['userId']?_0x2ef4da['delete'](_0x41d2ee):_0x2ef4da['set'](_0x41d2ee,_0x1792a5)):_0x2ef4da['has'](_0x41d2ee)?(_0xfc95d['delete'](_0x41d2ee),_0x2ef4da['delete'](_0x41d2ee)):(_0xfc95d['add'](_0x41d2ee),_0x2ef4da['set'](_0x41d2ee,_0x1792a5));}else _0xfc95d['add'](_0x41d2ee);}for(const _0x115165 of _0xfc95d){const _0x178d03=_0x2ef4da['has'](_0x115165)&&!_0x2ef4da['get'](_0x115165)['isAttached'];let _0x50dd64=_0x178d03?_0x364377['length']-0x1:0x0;const _0x53e2ff=_0x178d03?-0x1:0x1;for(;_0x364377[_0x50dd64];){const _0x289613=_0x364377[_0x50dd64];if(_0x289613['diffData'][_0x115165]){const _0x4130bc=_0x178d03?_0x289613['diffData'][_0x115165]['attributesBefore']:_0x289613['diffData'][_0x115165]['attributesAfter'];_0x1176b9['attributes'][_0x115165]=_0x4130bc?_0x5c9543(_0x4130bc):{};break;}_0x50dd64+=_0x53e2ff;}}for(const _0x3d070e of _0x364377){_0x3d070e['model']={};for(const _0x4e2384 of _0x3d070e['authors'])_0x3d9f06['set'](_0x4e2384['id'],_0x4e2384);for(const _0x24cb40 of _0xfc95d){const _0x57f7df=_0x3d070e['diffData'][_0x24cb40]?_0x3d070e['diffData'][_0x24cb40]['insertions']:'[]',_0x2f7b20=_0x3d070e['diffData'][_0x24cb40]?_0x3d070e['diffData'][_0x24cb40]['deletions']:'[]';_0x3d070e['model'][_0x24cb40]={'insertions':this['_makeModelFromViewString'](_0x57f7df),'deletions':this['_makeModelFromViewString'](_0x2f7b20)};}}for(const _0x184c65 of _0xfc95d){let _0x2f33ba=null,_0x1f98cb=0x0;const _0x2e3b27=new Map(Array['from'](_0x2d95c6['model'][_0x184c65]['insertions']['markers'])['filter'](([_0x155da9])=>!_0x155da9['startsWith']('revision:')));let _0x20ab73=0x0;for(const _0x1bced2 of _0x364377){const _0x19dc07=this['_makeTape'](_0x1bced2['model'][_0x184c65]['insertions']);_0x1bced2==_0x2d95c6?(_0x2f33ba=_0x19dc07,_0x1f98cb=_0x2f33ba['length'],_0x2f33ba['forEach'](_0x9877da=>{_0x9877da['id']=_0x20ab73++;}),this['_processTape'](_0x2f33ba)):this['_markInsertions'](_0x2f33ba,_0x19dc07);const _0x4e64a8=_0x2f33ba['filter'](_0x1eec20=>!_0x1eec20['isAdded'])['map'](_0x580734=>_0x580734['id']);let _0x2023fd=0x0;const _0x534444=this['_makeTape'](_0x1bced2['model'][_0x184c65]['deletions']);_0x534444['forEach'](_0x9f2783=>{_0x9f2783['isRemoved']?_0x9f2783['id']=_0x1f98cb++:_0x9f2783['id']=_0x4e64a8[_0x2023fd++];}),this['_processTape'](_0x534444),this['_setDistance'](_0x2f33ba,'isAdded'),this['_setDistance'](_0x534444,'isRemoved'),_0x1bced2==_0x2d95c6&&this['_markMarkers'](_0x2f33ba,_0x2e3b27),_0x2f33ba=this['_joinTapes'](_0x2f33ba,_0x534444),this['_refreshStartEndIndex'](_0x2f33ba),this['_setDistance'](_0x2f33ba,'isRemoved');}_0x2f33ba=_0x2f33ba['filter'](_0x4efec1=>!(_0x4efec1['isAdded']&&_0x4efec1['isRemoved']));const _0x3493f8=new Map(_0x5b7a1f['model'][_0x184c65]['deletions']['markers']),_0x3e9dfa=new Set(_0x2e3b27['keys']());for(const _0x37da41 of _0x3493f8['keys']())_0x3e9dfa['delete'](_0x37da41);this['_markSuggestions'](_0x2f33ba,_0x3e9dfa),this['_fixObsoleteTags'](_0x2f33ba),_0x2f33ba=this['_removeMissingPairs'](_0x2f33ba),_0x2f33ba=this['_markMismatchedRemovedTags'](_0x2f33ba),_0x2f33ba=this['_removeUnsupportedChanges'](_0x2f33ba);const {root:_0x1ca872,changes:_0x4693b2}=this['_makeModelFromTape'](_0x2f33ba,_0x3d9f06,_0x184c65);_0x1176b9['model'][_0x184c65]=_0x1ca872;const _0xe3c70b=_0x2ef4da['get'](_0x184c65);if(_0xe3c70b){const _0x3049af=_0x3d9f06['get'](_0xe3c70b['userId']),_0x506b7d=new r({'author':_0x3049af,'type':_0xe3c70b['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x184c65});_0x4693b2['unshift'](_0x506b7d),_0x1176b9['attributes'][_0x184c65]['revisionHistoryAttachChange']=_0x506b7d['id'];}_0x1176b9['changes']=_0x1176b9['changes']['concat'](_0x4693b2);}return _0x1176b9;}['_markMarkers'](_0x697af3,_0x43a1bd){for(let _0x35f6d1=0x0;_0x35f6d1<_0x697af3['length'];_0x35f6d1++)for(const [_0x89c4cf,_0x5c6bb4]of _0x43a1bd)_0x5c6bb4['start']['isEqual'](_0x697af3[_0x35f6d1]['previousPosition'])&&_0x697af3[_0x35f6d1]['markersStart']['push'](_0x89c4cf),_0x5c6bb4['end']['isEqual'](_0x697af3[_0x35f6d1]['nextPosition'])&&_0x697af3[_0x35f6d1]['markersEnd']['push'](_0x89c4cf);}['_joinTapes'](_0xd5c8ec,_0x5db295){let _0x2a0ff9=[],_0x2429b0=0x0,_0x357ac4=0x0;for(;_0x2429b0<_0xd5c8ec['length']||_0x357ac4<_0x5db295['length'];){const _0x9abfb2=_0xd5c8ec[_0x2429b0]||{},_0x546c9f=_0x5db295[_0x357ac4]||{};if(_0x9abfb2['id']==_0x546c9f['id'])_0x2429b0++,_0x357ac4++,_0x2a0ff9['push'](_0x9abfb2);else{if(_0x546c9f['isRemoved']&&_0x9abfb2['isAdded']){const {commonTape:_0x399c34,iEnd:_0x5d7289,jEnd:_0x16c6ca}=this['_threeWayMerge'](_0xd5c8ec,_0x2429b0,_0x5db295,_0x357ac4);_0x2a0ff9=_0x2a0ff9['concat'](_0x399c34),_0x2429b0=_0x5d7289,_0x357ac4=_0x16c6ca;}else _0x546c9f['isRemoved']?(_0x357ac4++,_0x2a0ff9['push'](_0x546c9f)):(_0x2429b0++,_0x2a0ff9['push'](_0x9abfb2));}}return _0x2a0ff9;}['_markSuggestions'](_0xe17e22,_0x251f83){const _0x1b6870=[];for(let _0x2444d5=0x0;_0x2444d5<_0xe17e22['length'];_0x2444d5++){for(let _0x4d9928=0x0;_0x4d9928<_0xe17e22[_0x2444d5]['markersStart']['length'];_0x4d9928++){const _0x4a3381=_0xe17e22[_0x2444d5]['markersStart'][_0x4d9928];if(!_0x251f83['has'](_0x4a3381))continue;const {group:_0x17f66c,type:_0x132dc3,authorId:_0x414a37}=_0x2c3800(_0x4a3381);'revision-suggestion'!=_0x17f66c||'insertion'!=_0x132dc3&&'deletion'!=_0x132dc3||(_0x1b6870['unshift']({'type':_0x132dc3,'name':_0x4a3381,'userId':_0x414a37}),_0xe17e22[_0x2444d5]['markersStart']['splice'](_0x4d9928,0x1),_0x4d9928--);}_0x57cf69(_0xe17e22[_0x2444d5]);for(let _0x5c5fe1=0x0;_0x5c5fe1<_0xe17e22[_0x2444d5]['markersEnd']['length'];_0x5c5fe1++){const _0x58948b=_0xe17e22[_0x2444d5]['markersEnd'][_0x5c5fe1];if(!_0x251f83['has'](_0x58948b))continue;const {group:_0x389f1e,type:_0xc681c7}=_0x2c3800(_0x58948b);if('revision-suggestion'!=_0x389f1e||'insertion'!=_0xc681c7&&'deletion'!=_0xc681c7)continue;_0xe17e22[_0x2444d5]['markersEnd']['splice'](_0x5c5fe1,0x1),_0x5c5fe1--;const _0xcafe65=_0x1b6870['findIndex'](_0x537497=>_0x537497['name']==_0x58948b);_0xcafe65>-0x1&&_0x1b6870['splice'](_0xcafe65,0x1);}}function _0x2c3800(_0x5580f1){const _0x5a6563=_0x5580f1['split'](':');return{'group':_0x5a6563[0x0],'type':_0x5a6563[0x1],'subType':_0x5a6563['length']>=0x5?_0x5a6563[0x2]:null,'id':_0x5a6563['length']<0x5?_0x5a6563[0x2]:_0x5a6563[0x3],'authorId':_0x5a6563['length']<0x5?_0x5a6563[0x3]:_0x5a6563[0x4],'markerCount':0x6==_0x5a6563['length']?_0x5a6563[0x5]:null};}function _0x57cf69(_0x5a4ee7){for(let _0x2b3688=0x0;_0x2b3688<_0x1b6870['length'];_0x2b3688++){if(_0x5a4ee7['isAdded']&&'insertion'==_0x1b6870[_0x2b3688]['type'])return _0x5a4ee7['isAddSuggestion']=_0x1b6870[_0x2b3688],void delete _0x5a4ee7['isAdded'];if(!_0x5a4ee7['isAdded']&&!_0x5a4ee7['isRemoved']&&'deletion'==_0x1b6870[_0x2b3688]['type'])return void(_0x5a4ee7['isRemoveSuggestion']=_0x1b6870[_0x2b3688]);}}}['_setDistance'](_0x38621b,_0x50e2ee){let _0x157775=0x0,_0x47143d=!0x1;const _0x2c6f55=new Map();for(const _0x3ee4bb of _0x38621b)_0x3ee4bb[_0x50e2ee]?_0x47143d&&(_0x157775++,_0x47143d=!0x1):(_0x157775++,_0x47143d=!0x0),_0x2c6f55['set'](_0x3ee4bb['id'],_0x157775);for(let _0x22104b=0x0;_0x22104b<_0x38621b['length'];_0x22104b++){if('isRemoved'==_0x50e2ee&&_0x38621b[_0x22104b]['isAdded']||'isAdded'==_0x50e2ee&&_0x38621b[_0x22104b]['isRemoved'])continue;if('text'==_0x38621b[_0x22104b]['type']){_0x38621b[_0x22104b]['distance']=0x0;continue;}const _0x6ec0e1=_0x2c6f55['get'](_0x38621b[_0x22104b]['pairId']),_0x435a25=_0x2c6f55['get'](_0x38621b[_0x22104b]['id']);_0x38621b[_0x22104b]['distance']=_0x6ec0e1-_0x435a25;}}['_getRevisionsRange'](_0x4ec4ee,_0x1a654d,_0x277323=!0x1){const _0x4a638c=[];let _0x3901ca=this['repository']['getIndex'](_0x4ec4ee),_0x3e8098=this['repository']['getIndex'](_0x1a654d);for(-0x1==_0x3e8098&&(_0x3e8098=this['repository']['_revisions']['length'],_0x277323=!0x1);_0x3901ca<_0x3e8098;)_0x4a638c['push'](this['repository']['getRevision'](_0x3901ca)),_0x3901ca++;return _0x277323&&_0x4a638c['push'](this['repository']['getRevision'](_0x3901ca)),_0x4a638c;}['_threeWayMerge'](_0x18894c,_0xb4b327,_0x16fcab,_0x25423a){const _0x21c810=this['editor']['model']['schema'];let _0x8f04da=_0xb4b327;for(;_0x18894c[_0x8f04da]&&_0x18894c[_0x8f04da]['isAdded'];)_0x8f04da++;let _0x46a859=_0x25423a;for(;_0x16fcab[_0x46a859]&&_0x16fcab[_0x46a859]['isRemoved'];)_0x46a859++;_0x288a80(_0x18894c,_0xb4b327,_0x8f04da),_0x288a80(_0x16fcab,_0x25423a,_0x46a859);const _0x4b4fa7=_0x16fcab['slice'](_0x25423a,_0x46a859)['concat'](_0x18894c['slice'](_0xb4b327,_0x8f04da));return _0x4b4fa7['sort']((_0xc15253,_0x478e4c)=>_0xc15253['side']!=_0x478e4c['side']?_0xc15253['side']-_0x478e4c['side']:_0xc15253['level']!=_0x478e4c['level']?_0xc15253['level']-_0x478e4c['level']:_0xc15253['distance']!=_0x478e4c['distance']?_0x478e4c['distance']-_0xc15253['distance']:!!_0xc15253['isAdded']!=!!_0x478e4c['isAdded']?-0x1==_0xc15253['side']||0x0==_0xc15253['side']?_0xc15253['isAdded']?-0x1:0x1:_0xc15253['isAdded']?0x1:-0x1:_0xc15253['index']-_0x478e4c['index']),{'commonTape':_0x4b4fa7,'iEnd':_0x8f04da,'jEnd':_0x46a859};function _0x288a80(_0x2b059b,_0x3adc17,_0x2092be){let _0x339083=-0x1,_0x4fdbd4=Number['POSITIVE_INFINITY'],_0x39158e=!0x0;for(let _0xe4cbbc=_0x3adc17;_0xe4cbbc<_0x2092be;_0xe4cbbc++)if(_0x21c810['isInline'](_0x2b059b[_0xe4cbbc]['item'])||(_0x39158e=!0x1),_0x2b059b[_0xe4cbbc]['item']['startIndex']<_0x3adc17&&(_0x339083=_0xe4cbbc),_0x2b059b[_0xe4cbbc]['item']['endIndex']>=_0x2092be){_0x4fdbd4=_0xe4cbbc;break;}_0x39158e&&(_0x339083=_0x2092be-0x1);for(let _0x2bab2f=_0x3adc17;_0x2bab2f<_0x2092be;_0x2bab2f++)_0x2b059b[_0x2bab2f]['side']=_0x2bab2f<=_0x339083?-0x1:_0x2bab2f<_0x4fdbd4?0x0:0x1,_0x2b059b[_0x2bab2f]['index']=_0x2bab2f;let _0x3b556a=0x0;for(let _0x58b655=_0x3adc17;_0x58b655<=_0x339083;_0x58b655++)0x0==_0x2b059b[_0x58b655]['distance']?_0x2b059b[_0x58b655]['level']=_0x3b556a:(_0x3b556a++,_0x2b059b[_0x58b655]['level']=_0x3b556a,_0x3b556a++);for(let _0x2d6278=_0x3adc17;_0x2d6278<_0x2092be;_0x2d6278++)0x0==_0x2b059b[_0x2d6278]['side']&&(_0x2b059b[_0x2d6278]['level']=_0x3b556a);_0x3b556a=0x0;for(let _0x3bbe8b=_0x2092be-0x1;_0x3bbe8b>=_0x4fdbd4;_0x3bbe8b--)0x0==_0x2b059b[_0x3bbe8b]['distance']?_0x2b059b[_0x3bbe8b]['level']=_0x3b556a:(_0x3b556a--,_0x2b059b[_0x3bbe8b]['level']=_0x3b556a,_0x3b556a--);}}['_fixObsoleteTags'](_0x174696){const _0x22b854=new Map(),_0x2d593f=this['editor']['model']['schema'];for(let _0x4eb064=0x1;_0x4eb064<_0x174696['length'];_0x4eb064++){let _0x3f847a,_0x5bba51,_0x529d33;const _0x598436=_0x174696[_0x4eb064],_0x4082c4=_0x174696[_0x4eb064-0x1];if('text'==_0x598436['type'])continue;if(_0x598436['type']!=_0x4082c4['type'])continue;if(!_0x2d593f['isBlock'](_0x4082c4['item'])||_0x2d593f['isLimit'](_0x4082c4['item']))continue;if(!_0x2d593f['isBlock'](_0x598436['item'])||_0x2d593f['isLimit'](_0x598436['item']))continue;if((_0x174696[_0x4eb064]['isAdded']||_0x174696[_0x4eb064]['isAddSuggestion'])&&_0x174696[_0x4eb064-0x1]['isRemoved'])_0x3f847a=_0x174696[_0x4eb064],_0x5bba51=_0x174696[_0x4eb064-0x1],_0x529d33=_0x4eb064-0x1;else{if(!_0x174696[_0x4eb064]['isRemoved']||!_0x174696[_0x4eb064-0x1]['isAdded']&&!_0x174696[_0x4eb064-0x1]['isAddSuggestion'])continue;_0x3f847a=_0x174696[_0x4eb064-0x1],_0x5bba51=_0x174696[_0x4eb064],_0x529d33=_0x4eb064;}const _0x1e1e01=_0x3f847a['level']==_0x5bba51['level'],_0x8169ea=Math['abs'](_0x3f847a['level'])<Math['abs'](_0x5bba51['level'])&&0x0==_0x5bba51['distance'];(_0x1e1e01||_0x8169ea)&&(_0x22b854['set'](_0x5bba51['id'],_0x3f847a['id']),_0x174696['splice'](_0x529d33,0x1),_0x4eb064--,_0x3f847a['isAdded']=!0x1);}for(let _0x11b76b=0x0;_0x11b76b<_0x174696['length'];_0x11b76b++)_0x22b854['has'](_0x174696[_0x11b76b]['pairId'])&&(_0x174696[_0x11b76b]['pairId']=_0x22b854['get'](_0x174696[_0x11b76b]['pairId']));}['_removeMissingPairs'](_0x5196c5){const _0x5ed032=new Set(_0x5196c5['map'](_0x18aa36=>_0x18aa36['id']));for(let _0x343921=0x0;_0x343921<_0x5196c5['length'];_0x343921++)_0x5ed032['has'](_0x5196c5[_0x343921]['pairId'])||0x0==_0x5196c5[_0x343921]['distance']||(_0x5196c5[_0x343921]['isIncorrect']=!0x0);return _0x5196c5['filter'](_0x159e21=>!_0x159e21['isIncorrect']);}['_markMismatchedRemovedTags'](_0x26143d){const _0x559777=new Set();for(let _0x504a5c=0x0;_0x504a5c<_0x26143d['length'];_0x504a5c++){if(_0x559777['has'](_0x26143d[_0x504a5c]['id'])&&_0x26143d[_0x504a5c]['isRemoved']&&(_0x26143d[_0x504a5c]['isIncorrect']=!0x0),_0x26143d[_0x504a5c]['isIncorrect'])continue;if(0x0==_0x26143d[_0x504a5c]['distance'])continue;if('elementStart'!=_0x26143d[_0x504a5c]['type'])continue;if(null==_0x26143d[_0x504a5c]['pairId'])continue;let _0x341bff=_0x504a5c+0x1,_0x9050e4=0x0;for(;_0x26143d[_0x341bff]['id']!=_0x26143d[_0x504a5c]['pairId'];)'elementStart'==_0x26143d[_0x341bff]['type']?_0x9050e4++:'elementEnd'==_0x26143d[_0x341bff]['type']&&_0x9050e4--,_0x341bff++;if(0x0!=_0x9050e4){if(_0x26143d[_0x504a5c]['isRemoved'])_0x26143d[_0x504a5c]['isIncorrect']=!0x0;else{for(;_0x341bff!=_0x504a5c;)_0x26143d[_0x341bff]['isRemoved']&&0x0!=_0x26143d[_0x341bff]['distance']&&(_0x26143d[_0x341bff]['isIncorrect']=!0x0,_0x559777['add'](_0x26143d[_0x341bff]['pairId'])),_0x341bff--;}}}return _0x26143d['filter'](_0x2331ce=>!_0x2331ce['isIncorrect']);}['_removeUnsupportedChanges'](_0x44f1f2){const _0x565f06=this['editor']['model']['schema'];for(let _0x45af1d=0x0;_0x45af1d<_0x44f1f2['length'];_0x45af1d++){if(!(_0x44f1f2[_0x45af1d]['isAdded']||_0x44f1f2[_0x45af1d]['isAddSuggestion']||_0x44f1f2[_0x45af1d]['isRemoved']||_0x44f1f2[_0x45af1d]['isRemoveSuggestion']))continue;if(0x0==_0x44f1f2[_0x45af1d]['distance'])continue;const _0x53e208=_0x44f1f2[_0x45af1d]['item'];_0x565f06['isBlock'](_0x53e208)||_0x565f06['isLimit'](_0x53e208)||(_0x44f1f2[_0x45af1d]['isAdded']&&delete _0x44f1f2[_0x45af1d]['isAdded'],_0x44f1f2[_0x45af1d]['isAddSuggestion']&&delete _0x44f1f2[_0x45af1d]['isAddSuggestion'],_0x44f1f2[_0x45af1d]['isRemoveSuggestion']&&delete _0x44f1f2[_0x45af1d]['isRemoveSuggestion'],_0x44f1f2[_0x45af1d]['isRemoved']&&(_0x44f1f2[_0x45af1d]['isIncorrect']=!0x0));}return _0x44f1f2['filter'](_0x31ad9f=>!_0x31ad9f['isIncorrect']);}['_makeModelFromTape'](_0x5d2617,_0x29076e,_0x1a2c6e){const _0x1920e2=new gt(),_0x4b798c=[],_0x16930e=new Map(),_0x248f94=this['editor']['model'],_0x3a9b56=_0x248f94['schema'],_0x2854c8=[_0x1920e2],_0x220f9c={},_0x2f7396={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xd26f82=null;const _0x350571=[0x0];for(let _0x7ac6eb=0x0;_0x7ac6eb<_0x5d2617['length'];_0x7ac6eb++)if('elementStart'===_0x5d2617[_0x7ac6eb]['type']){_0x5d2617[_0x7ac6eb]['previousPosition']=_0x248f94['createPositionFromPath'](_0x1920e2,_0x350571);const _0x1ac931=new ut(_0x5d2617[_0x7ac6eb]['item']['name'],_0x5d2617[_0x7ac6eb]['item']['getAttributes']());_0x2854c8[0x0]['_appendChild'](_0x1ac931),_0x350571['push'](0x0),_0x2854c8['unshift'](_0x1ac931),_0x5d2617[_0x7ac6eb]['nextPosition']=_0x248f94['createPositionFromPath'](_0x1920e2,_0x350571);}else'elementEnd'===_0x5d2617[_0x7ac6eb]['type']?(_0x2854c8['shift'](),_0x5d2617[_0x7ac6eb]['previousPosition']=_0x248f94['createPositionFromPath'](_0x1920e2,_0x350571),_0x350571['pop'](),_0x350571[_0x350571['length']-0x1]++,_0x5d2617[_0x7ac6eb]['nextPosition']=_0x248f94['createPositionFromPath'](_0x1920e2,_0x350571)):(_0x5d2617[_0x7ac6eb]['previousPosition']=_0x248f94['createPositionFromPath'](_0x1920e2,_0x350571),_0xd26f82?_0xd26f82['_data']+=_0x5d2617[_0x7ac6eb]['item']['data']:_0xd26f82=new wt(_0x5d2617[_0x7ac6eb]['item']['data'],_0x5d2617[_0x7ac6eb]['item']['getAttributes']()),_0x5d2617[_0x7ac6eb+0x1]&&'text'===_0x5d2617[_0x7ac6eb+0x1]['type']&&_0x5aa8fc(_0xd26f82,_0x5d2617[_0x7ac6eb+0x1]['item'])||(_0x2854c8[0x0]['_appendChild'](_0xd26f82),_0xd26f82=null),_0x350571[_0x350571['length']-0x1]+=_0x5d2617[_0x7ac6eb]['item']['offsetSize'],_0x5d2617[_0x7ac6eb]['nextPosition']=_0x248f94['createPositionFromPath'](_0x1920e2,_0x350571));for(let _0x455ed2=0x0;_0x455ed2<_0x5d2617['length'];_0x455ed2++){const _0x20f3a0=_0x5d2617[_0x455ed2]['previousPosition'],_0x6f0e35=_0x5d2617[_0x455ed2]['nextPosition'];for(const _0x3250b7 of _0x5d2617[_0x455ed2]['markersStart'])_0x16930e['set'](_0x3250b7,{'start':_0x20f3a0,'end':null});_0xe71ae0('isRemoveSuggestion',_0x455ed2,_0x20f3a0,_0x6f0e35),_0xe71ae0('isAddSuggestion',_0x455ed2,_0x20f3a0,_0x6f0e35),_0xe71ae0('isRemoved',_0x455ed2,_0x20f3a0,_0x6f0e35),_0xe71ae0('isAdded',_0x455ed2,_0x20f3a0,_0x6f0e35);for(const _0x3ac8e0 of _0x5d2617[_0x455ed2]['markersEnd']){_0x16930e['get'](_0x3ac8e0)['end']=_0x6f0e35;}}for(const [_0x5f59e,_0x5c796f]of _0x16930e){const _0xb79be3=this['editor']['model']['createRange'](_0x5c796f['start'],_0x5c796f['end']);_0x1920e2['markers']['set'](_0x5f59e,_0xb79be3);}return _0x4b798c['sort']((_0x53e5be,_0x334d99)=>{const _0x2cae4b=_0x1920e2['markers']['get']('revision:'+_0x53e5be['id']),_0x28a3d6=_0x1920e2['markers']['get']('revision:'+_0x334d99['id']);return _0x2cae4b['start']['isBefore'](_0x28a3d6['start'])?-0x1:_0x2cae4b['start']['isAfter'](_0x28a3d6['start'])?0x1:_0x2cae4b['end']['isBefore'](_0x28a3d6['end'])?-0x1:_0x2cae4b['end']['isAfter'](_0x28a3d6['end'])?0x1:'add'===_0x53e5be['type']?-0x1:0x1;}),{'root':_0x1920e2,'changes':_0x4b798c};function _0xe71ae0(_0x26f787,_0x544849,_0xda3f52,_0x20732f){const _0x48160d=!!_0x5d2617[_0x544849][_0x26f787],_0x211e5e=_0x48160d?_0x5d2617[_0x544849][_0x26f787]['userId']:null,_0x3f6b3b=_0x544849===_0x5d2617['length']-0x1,_0x41cd83=_0x2f7396[_0x26f787][0x0],_0x4d9c93=_0x3a9b56['isObject'](_0x5d2617[_0x544849]['item']);!_0x220f9c[_0x26f787]&&_0x48160d?_0x220f9c[_0x26f787]={'start':_0xda3f52,'tapeItem':_0x5d2617[_0x544849],'userId':_0x211e5e,'type':_0x26f787}:_0x220f9c[_0x26f787]&&!_0x48160d?(_0x220f9c[_0x26f787]['end']=_0xda3f52,_0x3cb7c4(_0x220f9c[_0x26f787]),_0x220f9c[_0x26f787]=null):_0x220f9c[_0x26f787]&&_0x48160d&&_0x220f9c[_0x26f787]['userId']!==_0x211e5e&&(_0x220f9c[_0x26f787]['end']=_0xda3f52,_0x41cd83&&_0x41cd83['userId']===_0x220f9c[_0x26f787]['userId']||_0x3cb7c4(_0x220f9c[_0x26f787]),_0x220f9c[_0x26f787]={'start':_0xda3f52,'tapeItem':_0x5d2617[_0x544849],'userId':_0x211e5e,'type':_0x26f787}),_0x220f9c[_0x26f787]&&_0x4d9c93&&('elementStart'!==_0x5d2617[_0x544849]['type']||_0x41cd83&&_0x41cd83['userId']===_0x211e5e||_0x2f7396[_0x26f787]['unshift']({'userId':_0x211e5e,'object':_0x5d2617[_0x544849]['item'],'change':_0x220f9c[_0x26f787]}),'elementEnd'===_0x5d2617[_0x544849]['type']&&_0x41cd83&&_0x41cd83['object']===_0x5d2617[_0x544849]['item']&&(_0x2f7396[_0x26f787]['shift'](),_0x220f9c[_0x26f787]=_0x41cd83['change'])),_0x220f9c[_0x26f787]&&_0x3f6b3b&&(_0x220f9c[_0x26f787]['end']=_0x20732f,_0x3cb7c4(_0x220f9c[_0x26f787]),_0x220f9c[_0x26f787]=null);}function _0x3cb7c4({start:_0x186c8e,end:_0x2399e4,tapeItem:_0x22017d,userId:_0x5c6abf,type:_0x467cbc}){const _0x22f635=_0x22017d['item'],_0x5bbe1e=_0x248f94['schema']['isBlock'](_0x22f635)&&!_0x248f94['schema']['isLimit'](_0x22f635),_0x4b915d=_0x186c8e['nodeAfter']==_0x2399e4['parent']&&_0x2399e4['isAtStart'];if(_0x5bbe1e&&_0x4b915d)return;const _0x3e0d79=_0x248f94['createRange'](_0x186c8e,_0x2399e4),_0x5b01cb=_0x29076e['get'](_0x5c6abf),_0x36f622=new r({'author':_0x5b01cb,'type':'isAdded'==_0x467cbc||'isAddSuggestion'==_0x467cbc?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x467cbc||'isRemoveSuggestion'==_0x467cbc},'createdAt':new Date(),'rootName':_0x1a2c6e});_0x4b798c['push'](_0x36f622),_0x1920e2['markers']['set']('revision:'+_0x36f622['id'],_0x3e0d79);}function _0x5aa8fc(_0x1abdec,_0x54a299){const _0x554893=_0x1abdec['getAttributes'](),_0x55d754=_0x54a299['getAttributes']();for(const _0x435b4f of _0x554893){if(_0x435b4f[0x1]!==_0x54a299['getAttribute'](_0x435b4f[0x0]))return!0x1;_0x55d754['next']();}return _0x55d754['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x58e36f=>{const _0x513367=_0x58e36f['markerName']['split'](':')[0x1],_0x2a675c=this['_getChangeFromId'](_0x513367);if(!_0x2a675c)return null;const _0x3a17a3='add'==_0x2a675c['type']?'insertion':'deletion',_0x1aebc3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x3a17a3];return _0x2a675c['data']['isSuggestion']&&_0x1aebc3['push']('ck-suggestion-marker-'+_0x3a17a3+'-new'),this['activeChange']==_0x2a675c&&_0x1aebc3['push']('ck-suggestion-marker--active'),{'classes':_0x1aebc3,'attributes':{'data-change-id':_0x513367}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x131af3=>{_0x131af3['on']('element:pre',(_0x4e8dcd,_0x7ae702,_0xe2e1d)=>{const _0x27e594=_0x7ae702['viewItem']['getChild'](0x0);if(!_0x27e594||!_0x27e594['is']('element','code'))return;if(!_0xe2e1d['consumable']['consume'](_0x27e594,{'attributes':['vid_start','vid_end']}))return;const _0x4d9e6b=_0x7ae702['modelRange']['start']['nodeAfter'];_0xe2e1d['writer']['setAttribute']('vid_start',_0x27e594['getAttribute']('vid_start'),_0x4d9e6b),_0xe2e1d['writer']['setAttribute']('vid_end',_0x27e594['getAttribute']('vid_end'),_0x4d9e6b);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x23462b=>{_0x23462b['on']('element',(_0x34de4f,_0x582347,_0xa21cd1)=>{if(!_0xa21cd1['consumable']['consume'](_0x582347['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x582347['modelRange']['isCollapsed'])return;const _0x3884aa=_0x582347['modelRange']['start']['nodeAfter'];_0x3884aa['hasAttribute']('vid_start')||_0x3884aa['hasAttribute']('vid')||(_0xa21cd1['writer']['setAttribute']('vid_start',_0x582347['viewItem']['getAttribute']('vid_start'),_0x3884aa),_0xa21cd1['writer']['setAttribute']('vid_end',_0x582347['viewItem']['getAttribute']('vid_end'),_0x3884aa));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x120bfd=>_0x120bfd['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x520fdf,[,_0x18d675])=>{['vid_start','vid_end','vid']['includes'](_0x18d675)&&(_0x520fdf['return']=!0x0,_0x520fdf['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x58fd29=>{_0x58fd29['on']('attribute:vid',(_0x40a219,_0xd6d3bd,_0x3ec64e)=>{if('\x20'!=_0xd6d3bd['item']['data']||_0xd6d3bd['item']['parent']['maxOffset']>0x1)return;if(!_0x3ec64e['consumable']['consume'](_0xd6d3bd['item'],_0x40a219['name']))return;const _0x3ea0f0=_0x3ec64e['writer'],_0x8fcdac=_0x3ec64e['mapper']['toViewRange'](_0xd6d3bd['range']);_0x3ea0f0['wrap'](_0x8fcdac,_0x3ea0f0['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x1ed0a6){const _0x4740bb=_0x1ed0a6['plugins']['get']('RevisionViewer');return(_0x48d5ac,_0xc7c0df,_0x5aeac0)=>{const _0x2825e8=_0xc7c0df['markerName']['split'](':')[0x1],_0x53d563=_0x4740bb['_getChangeFromId'](_0x2825e8);if(!_0x53d563)return null;const _0x22f00a='add'==_0x53d563['type']?'split':'merge';if(!_0x5aeac0['consumable']['test'](_0xc7c0df['markerRange'],_0x48d5ac['name']))return;const _0x21a2bf=_0xc7c0df['markerRange']['getWalker'](),_0x3b4ab1=_0xc7c0df['markerRange']['start'],_0x2f8bbb=_0x1ed0a6['model']['schema'];let _0x78f693=null,_0x557cf5=null,_0x38011a=!0x1,_0x1dd6ad=!0x1;for(const _0x1df762 of _0x21a2bf){const _0x7573fd=_0x1df762['item'];_0x38011a=_0x38011a||_0x2f8bbb['isContent'](_0x7573fd);const _0x4f0484=_0x5aeac0['mapper']['toViewElement'](_0x7573fd);if(_0x4f0484&&_0x4f0484['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1df762['type']&&(_0x2f8bbb['isBlock'](_0x7573fd)&&!_0x2f8bbb['isLimit'](_0x7573fd)&&(_0x7573fd['nextSibling']||_0x3b4ab1['isAtEnd']?_0x78f693&&_0x78f693['parent']==_0x7573fd||(_0x78f693=_0x7573fd,_0x12baa0(_0x1df762['previousPosition']),_0x1dd6ad=!0x0):_0x557cf5=_0x557cf5||_0x1df762['previousPosition']));}function _0x12baa0(_0x1a87cc){const _0x7f7937=_0x5aeac0['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x22f00a}),_0x137e7f=_0x5aeac0['mapper']['toViewPosition'](_0x1a87cc);_0x53d563['data']['isSuggestion']&&_0x5aeac0['writer']['addClass']('ck-suggestion-marker-'+_0x22f00a+'-new',_0x7f7937),_0x4740bb['activeChange']==_0x53d563&&_0x5aeac0['writer']['addClass']('ck-suggestion-marker--active',_0x7f7937),_0x5aeac0['writer']['insert'](_0x137e7f,_0x7f7937),_0x5aeac0['mapper']['bindElementToMarker'](_0x7f7937,_0xc7c0df['markerName']);}_0x38011a||_0x1dd6ad||!_0x557cf5||_0x12baa0(_0x557cf5);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x1dfed7,_0x19af60,_0x152d64)=>{const _0xf955e3=_0x152d64['mapper']['markerNameToElements'](_0x19af60['markerName']);if(_0xf955e3){for(const _0x48ddf2 of _0xf955e3)(_0x48ddf2['hasClass']('ck-suggestion-marker-split')||_0x48ddf2['hasClass']('ck-suggestion-marker-merge'))&&(_0x152d64['mapper']['unbindElementFromMarkerName'](_0x48ddf2,_0x19af60['markerName']),_0x152d64['writer']['remove'](_0x48ddf2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x355847,_0x2a5b81,_0x2e01eb)=>{const _0x149872=_0x2a5b81['markerName']['split'](':')[0x1],_0x4e33ba=this['_getChangeFromId'](_0x149872);if(!_0x4e33ba)return null;const _0x122870='add'==_0x4e33ba['type']?'split':'merge';if(_0x2e01eb['consumable']['test'](_0x2a5b81['markerRange'],_0x355847['name']))for(const _0x139031 of _0x2a5b81['markerRange']['getItems']()){if(!_0x139031['is']('element','softBreak'))continue;const _0x530a77=_0x2e01eb['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x122870}),_0x13a653=_0x2e01eb['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x139031));_0x4e33ba['data']['isSuggestion']&&_0x2e01eb['writer']['addClass']('ck-suggestion-marker-'+_0x122870+'-new',_0x530a77),this['activeChange']==_0x4e33ba&&_0x2e01eb['writer']['addClass']('ck-suggestion-marker--active',_0x530a77),_0x2e01eb['writer']['insert'](_0x13a653,_0x530a77),_0x2e01eb['mapper']['bindElementToMarker'](_0x530a77,_0x2a5b81['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x1e0ce5=>{for(const _0x4df5e6 of this['editor']['model']['document']['getRootNames']()){const _0xa3d578=this['editor']['model']['document']['getRoot'](_0x4df5e6),_0x176a68=this['editor']['editing']['view']['document']['getRoot'](_0x4df5e6);if(_0x176a68){const _0x45e29e=_0xa3d578['getAttribute']('revisionHistoryAttachChange');if(_0x1e0ce5['removeAttribute']('data-change-id',_0x176a68),_0x1e0ce5['removeClass']('ck-revision-history-root-add',_0x176a68),_0x1e0ce5['removeClass']('ck-revision-history-root-remove',_0x176a68),_0x1e0ce5['removeClass']('ck-revision-history-root--active',_0x176a68),_0x45e29e){const _0x440289=this['_getChangeFromId'](_0x45e29e);if(!_0x440289)return null;_0x1e0ce5['setAttribute']('data-change-id',_0x45e29e,_0x176a68),_0x1e0ce5['addClass']('ck-revision-history-root-'+_0x440289['type'],_0x176a68),this['activeChange']==_0x440289&&_0x1e0ce5['addClass']('ck-revision-history-root--active',_0x176a68);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x4b459e=>'revision-comment:'+_0x4b459e,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x24273c=>'revision-suggestion:'+_0x24273c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1e7ba5=>({'name':'suggestion:'+_0x1e7ba5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x486c2d=>{const _0x2a54c6=_0x486c2d['markerName']['split'](':')[0x1];return'insertion'!=_0x2a54c6&&'deletion'!=_0x2a54c6?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2a54c6]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3818bf,_0xe163ea,_0x28234d)=>{const _0x599868=_0x28234d['mapper']['markerNameToElements'](_0xe163ea['markerName']);if(_0x599868){for(const _0x27fe56 of _0x599868)_0x27fe56['is']('uiElement')&&(_0x28234d['mapper']['unbindElementFromMarkerName'](_0x27fe56,_0xe163ea['markerName']),_0x28234d['writer']['remove'](_0x27fe56));}},{'priority':'high'});}['_getChangeFromId'](_0x891276){return this['_changeIdToChange']['get'](_0x891276);}['_getViewForChange'](_0x19952c){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x19952c),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x99a1cc,_0x19c740,_0x4c33a0,_0x1ea125)=>{_0x1ea125&&this['_balloon']['remove'](_0x1ea125),_0x4c33a0&&(this['_balloon']['add']({'view':_0x4c33a0,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x582fcf=this['editor']['editing'],_0xfcf887=this['_getChangeFromId'](_0x4c33a0['changeId']);let _0x2ad392;if(_0xfcf887['data']['isOnRoot']){const _0x302f8d=_0x582fcf['view']['getDomRoot'](_0xfcf887['rootName']);_0x2ad392=Array['from'](_0x302f8d['getClientRects']());}else{const _0x21aed0=this['editor']['model']['markers']['get']('revision:'+_0x4c33a0['changeId']);_0x2ad392=Array['from'](_0x582fcf['mapper']['markerNameToElements'](_0x21aed0['name']))['map'](_0x18fe58=>_0x582fcf['view']['domConverter']['mapViewToDom'](_0x18fe58))['map'](_0xea32e2=>Array['from'](_0xea32e2['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x2ad392[0x0];return _0x2ad392['find'](_0x36d5af=>_0x36d5af['top']-0x3<=this['_activeViewTarget']['y']&&_0x36d5af['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x36d5af['left']-0x3<=this['_activeViewTarget']['x']&&_0x36d5af['right']+0x3>=this['_activeViewTarget']['x'])||_0x2ad392[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x2fd490,_0x237dbe,_0x47f21f,_0x6b9ec)=>{this['activeView']=_0x47f21f?this['_getViewForChange'](_0x47f21f):null,this['editor']['model']['change'](()=>{const _0x566002=this['editor']['editing'];_0x6b9ec&&(_0x6b9ec['data']['isOnRoot']?_0x566002['view']['change'](_0x454b88=>{_0x454b88['removeClass']('ck-revision-history-root--active',_0x566002['view']['document']['getRoot'](_0x6b9ec['rootName']));}):_0x566002['reconvertMarker']('revision:'+_0x6b9ec['id'])),_0x47f21f&&(_0x47f21f['data']['isOnRoot']?_0x566002['view']['change'](_0x19cc1b=>{_0x19cc1b['addClass']('ck-revision-history-root--active',_0x566002['view']['document']['getRoot'](_0x47f21f['rootName']));}):_0x566002['reconvertMarker']('revision:'+_0x47f21f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x275e3c,_0x442089)=>{if(this['activeChange'])return;const _0x3ca56a=this['_findChangeIdFromDomTarget'](_0x442089['target']),_0x5786c8=this['_changeIdToChange']['get'](_0x3ca56a);_0x5786c8?(this['_activeViewTarget']={'x':_0x442089['domEvent']['x'],'y':_0x442089['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x5786c8)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x3df3b5,_0x475e33)=>{const _0x9f1c3d=this['_findChangeIdFromDomTarget'](_0x475e33['target']),_0x96e823=this['_changeIdToChange']['get'](_0x9f1c3d);_0x96e823?(this['_activeViewTarget']={'x':_0x475e33['domEvent']['x'],'y':_0x475e33['domEvent']['y']},_0x96e823===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x96e823):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x28e5e4){do{const _0x32860d=_0x28e5e4['getAttribute']('data-change-id');if(_0x32860d)return _0x32860d;_0x28e5e4=_0x28e5e4['parent'];}while(_0x28e5e4);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x493e2d=>{for(const _0x89168f of this['editor']['model']['markers'])_0x493e2d['removeMarker'](_0x89168f);});}}function Z(_0x3ed61a,_0x5d8ed7){return(_0x3296f4,_0x1bb344,_0x5f0f84)=>{if(!_0x5f0f84['consumable']['test'](_0x1bb344['markerRange'],_0x3296f4['name']))return;const _0xadfbf0=_0x1bb344['markerRange']['getWalker'](),_0x4a6e31=_0x1bb344['markerRange']['start'],_0xc948c8=_0x3ed61a['model']['schema'];let _0x200f64=null,_0x554f9b=null,_0xeea25d=!0x1,_0x46aef2=!0x1;for(const _0x5dbee9 of _0xadfbf0){const _0xb4a4dc=_0x5dbee9['item'];_0xeea25d=_0xeea25d||_0xc948c8['isContent'](_0xb4a4dc);const _0x2436dd=_0x5f0f84['mapper']['toViewElement'](_0xb4a4dc);if(_0x2436dd&&_0x2436dd['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x5dbee9['type']&&(_0xc948c8['isBlock'](_0xb4a4dc)&&!_0xc948c8['isLimit'](_0xb4a4dc)&&(_0xb4a4dc['nextSibling']||_0x4a6e31['isAtEnd']?_0x200f64&&_0x200f64['parent']==_0xb4a4dc||(_0x200f64=_0xb4a4dc,_0x503d8b(_0x5dbee9['previousPosition']),_0x46aef2=!0x0):_0x554f9b=_0x554f9b||_0x5dbee9['previousPosition']));}function _0x503d8b(_0x47f7b8){const _0x24f5bc=_0x5f0f84['mapper']['toViewPosition'](_0x47f7b8),_0xddcccd=_0x5f0f84['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x5d8ed7});_0x5f0f84['writer']['insert'](_0x24f5bc,_0xddcccd),_0x5f0f84['mapper']['bindElementToMarker'](_0xddcccd,_0x1bb344['markerName']);}_0xeea25d||_0x46aef2||!_0x554f9b||_0x503d8b(_0x554f9b);};}class _t extends _0x14e675{constructor(_0x144eca){super(_0x144eca);const _0x1f8f70=_0x144eca['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x1f8f70,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1f8f70,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2e7ac4=this['editor'],_0x9ddcb4=_0x2e7ac4['plugins']['get'](d),_0x1e77b0=_0x9ddcb4['isReady']?_0x9ddcb4['diff']['newRevisionId']:null;_0x2e7ac4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1e77b0);}['refresh'](){const {isReady:_0x13830c,isEnabled:_0x59c5c1,repository:_0x371760,diff:_0x9d726c}=this['editor']['plugins']['get'](d),_0x253df4=_0x9d726c&&_0x371760['getLaterVisibleRevision'](_0x9d726c['newRevisionId']);this['isEnabled']=_0x13830c&&_0x59c5c1&&Boolean(_0x253df4);}}class yt extends _0x14e675{['_step'];constructor(_0x26848b,{direction:_0x5be19b}){super(_0x26848b);const _0x1d3869=_0x26848b['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x5be19b?0x1:-0x1,this['listenTo'](_0x1d3869,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x1d3869,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x1d3869,'change:activeChange',()=>this['refresh']());}['execute'](){const _0xb8b9a3=this['editor'],_0x525b24=_0xb8b9a3['plugins']['get'](d),{isNavigationMode:_0x103b38,currentChangeNumber:_0x245ea3}=_0x525b24;let _0x37eeec;if(_0x525b24['activeChange']=_0x103b38?_0x525b24['diff']['changes']['get'](_0x245ea3+this['_step']):_0x525b24['diff']['changes']['first'],_0x525b24['activeChange']['data']['isOnRoot'])_0x37eeec=_0xb8b9a3['editing']['view']['getDomRoot'](_0x525b24['activeChange']['rootName']);else{const _0x912e10=_0xb8b9a3['model']['markers']['get']('revision:'+_0x525b24['activeChange']['id']);_0x37eeec=_0x6880b8(_0xb8b9a3['editing'],_0x912e10);}_0x356aef({'target':_0x37eeec,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x67fb95,currentChangeNumber:_0x1f07ae,numberOfChanges:_0x341d58,isReady:_0x434b20,isEnabled:_0x3f1188}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3f1188&&_0x434b20&&_0x341d58)&&(!_0x67fb95||(0x1===this['_step']?_0x1f07ae<_0x341d58-0x1:_0x1f07ae>0x0));}}class li extends _0x572c6d{constructor(_0x507ed4){super(_0x507ed4);const _0x193f32=this['bindTemplate'],_0x257a46=new _0x5c9eb1(_0x507ed4),_0x39f083=new _0x5c9eb1(_0x507ed4);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',(_0x5ea07f,_0x24d14b)=>_0x5ea07f&&_0x24d14b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x3bf618,_0x39a306,_0x4fe6c4,_0x36e836)=>{if(!_0x3bf618)return m(_0x507ed4,'Loading...');if(!_0x4fe6c4)return m(_0x507ed4,'No\x20changes');const _0x432fab=m(_0x507ed4,'NUMBER_OF_CHANGES',_0x4fe6c4);return _0x36e836?m(_0x507ed4,'X_OF_Y_CHANGES',[_0x39a306+0x1,_0x4fe6c4]):_0x432fab;}),_0x257a46['set']({'label':m(_0x507ed4,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':_0x2a850c}),_0x39f083['set']({'label':m(_0x507ed4,'Show\x20next\x20change'),'tooltip':!0x0,'icon':_0x541ed3}),_0x257a46['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x39f083['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x257a46['on']('execute',()=>this['fire']('execute','backward')),_0x39f083['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',_0x193f32['if']('_isStatusLabelVisible','ck-hidden',_0xba71f8=>!_0xba71f8)]},'children':[{'text':_0x193f32['to']('isNavigationMode',_0x5e93e7=>_0x5e93e7?m(_0x507ed4,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x507ed4,'Total')+':\x20')}]},{'text':_0x193f32['to']('_statusText')}]},new _0x54b919(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x257a46,_0x39f083]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x6878ef{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1689f2=this['editor']['editing']['view'];_0x1689f2['change'](_0x254492=>{for(const _0x38103c of _0x1689f2['document']['roots'])_0x254492['addClass'](ce,_0x38103c);});}['hide'](){const _0x887147=this['editor']['editing']['view'];_0x887147['change'](_0x48a393=>{for(const _0x33845f of _0x887147['document']['roots'])_0x48a393['removeClass'](ce,_0x33845f);});}}class w extends _0x6878ef{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0xcc99c1=this['editor'],_0x14ac5e=_0xcc99c1['plugins']['get'](d),_0x2b5833=_0xcc99c1['plugins']['get'](le);_0xcc99c1['ui']['componentFactory']['add']('exitToEditing',_0x8bf7d4=>{const _0x536060=new _0x5c9eb1(_0x8bf7d4);return _0x536060['set']({'label':m(_0x8bf7d4,'Back\x20to\x20editing'),'icon':_0x52efde,'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x536060,'execute',()=>{_0xcc99c1['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x536060;}),_0xcc99c1['ui']['componentFactory']['add']('restoreRevision',_0x1c3f88=>{const _0x3c3a53=new _0x5c9eb1(_0x1c3f88);return _0x3c3a53['set']({'label':m(_0x1c3f88,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x3c3a53['bind']('isEnabled')['to'](_0xcc99c1['commands']['get']('restoreRevision')),this['listenTo'](_0x3c3a53,'execute',()=>_0xcc99c1['execute']('restoreRevision')),_0x3c3a53;}),_0xcc99c1['ui']['componentFactory']['add']('changesNavigation',_0x4c8e70=>{const _0x53969a=new li(_0x4c8e70),_0x35ec73=_0xcc99c1['commands']['get']('showPreviousChange'),_0x2d4a3f=_0xcc99c1['commands']['get']('showNextChange');return _0x53969a['bind']('isBackwardNavigationEnabled')['to'](_0x35ec73,'isEnabled'),_0x53969a['bind']('isForwardNavigationEnabled')['to'](_0x2d4a3f,'isEnabled'),_0x53969a['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x14ac5e),this['listenTo'](_0x53969a,'execute',(_0x5dc04f,_0x44d981)=>{_0xcc99c1['execute']('forward'===_0x44d981?'showNextChange':'showPreviousChange');}),_0x53969a;}),_0x2b5833['show'](),_0x14ac5e['on']('change:isReady',(_0x3cb403,_0x4572b1,_0x3b55d0)=>{_0x3b55d0?_0x2b5833['hide']():_0x2b5833['show']();});}}class mt extends at{['_resizeObserver']=null;constructor(_0x2ff11c,_0x227fc5){super(_0x2ff11c,_0x227fc5);const _0x44199f=this['bindTemplate'];this['set']({'label':m(_0x2ff11c,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x2ff11c,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x44199f['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new pt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0xf42e39=this['fieldView']['element'];this['_tooltipString']=_0xf42e39['scrollWidth']>_0xf42e39['clientWidth']&&_0xf42e39['value']||'';}}class oi extends _0x572c6d{constructor(_0x272914,_0x1118bb,_0x3ff8a3){super(_0x272914);const _0x28e343=new _0x3c8e1e();_0x28e343['set']({'content':_0x4828a2,'viewBox':'0\x200\x2011\x2010'});const _0x40aefb=['ck','ck-revision-history-sidebar__revision-author'];_0x3ff8a3&&_0x40aefb['push']('ck-revision-history-sidebar__revision-author_creator');const _0x2caa2c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x272914,_0x3ff8a3?'Revision\x20creator':'Revision\x20author')},'children':[_0x28e343,_0x1118bb['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x40aefb},'children':_0x2caa2c});}}function ni(_0x2e49da,_0x5aed8f){const _0x54bdbe=_0x2e49da['bindTemplate'],_0x4b06db=_0x2e49da['locale'],_0x78e39d=_0xef6b9b(_0x4b06db);_0x78e39d['panelPosition']='sw';const _0x27609b=function(_0x150937,_0x24c548){const _0x43971f=function(_0x547edc,_0x5c2562){const _0x1edee6=_0x547edc['locale'],_0x396af9={'Compare\x20against\x20selected':m(_0x1edee6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1edee6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1edee6,'Restore\x20this\x20revision')};return _0x5c2562['map'](_0x45e58f=>{const _0x1f06ea=_0x396af9[_0x45e58f['name']];return _0x1f06ea&&_0x1f06ea!==_0x45e58f['name']&&(_0x45e58f['name']=_0x1f06ea),_0x45e58f;});}(_0x150937,_0x24c548),_0x4e73ac=new _0x12f74d();for(const _0x5cf8c2 of _0x43971f){const _0x56d46c={'type':'button','model':new to({'label':_0x5cf8c2['name'],'class':_0x5cf8c2['class'],'withText':!0x0,'role':'menuitem','_action':_0x5cf8c2['action']})};_0x56d46c['model']['bind']('isEnabled')['to'](_0x150937,'isActionsDropdownOpen',_0x20d485=>'function'!=typeof _0x5cf8c2['isEnabled']||(!_0x20d485||_0x5cf8c2['isEnabled'](_0x150937))),_0x4e73ac['add'](_0x56d46c);}return _0x4e73ac;}(_0x2e49da,_0x5aed8f);return _0x2e49da['bind']('isActionsDropdownOpen')['to'](_0x78e39d,'isOpen'),_0x78e39d['buttonView']['set']({'label':m(_0x4b06db,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x49d23b}),_0x78e39d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x54bdbe['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x54bdbe['to'](_0x1b2798=>_0x1b2798['stopPropagation']())}}),_0x78e39d['on']('execute',_0x456692=>{_0x2e49da['isReady']&&'function'==typeof _0x456692['source']['_action']&&_0x456692['source']['_action'](_0x2e49da);}),_0x3dccd9(_0x78e39d,_0x27609b,{'role':'menu'}),_0x78e39d['listenTo'](_0x2e49da,'change:isActionsDropdownOpen',(_0x427f95,_0x2f1e47,_0x5a607d)=>{if(_0x5a607d)for(const _0x4c2225 of _0x78e39d['listView']['items']){const _0x467ac7=_0x4c2225['children']['first'],_0x55826a=_0x5aed8f['find'](_0x1df2a7=>_0x1df2a7['action']===_0x467ac7['_action'])['isVisible'];_0x4c2225['isVisible']=void 0x0===_0x55826a||_0x55826a(_0x2e49da);}}),_0x78e39d;}class ai extends/* #__PURE__ -- @preserve */
26
- _0x26fcc7(_0x572c6d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x23254e,_0x47a22f,_0x5be9ab,_0x6bb04f){super(_0x23254e);const _0x393159=this['bindTemplate'],_0x49bdbc=function(_0x460d44,_0x29c85c){const _0x121b57=Array['from'](_0x29c85c['authors'])['filter'](_0x2ff8fc=>_0x2ff8fc!=_0x29c85c['creator']);return _0x29c85c['creator']&&_0x121b57['unshift'](_0x29c85c['creator']),_0x121b57['map'](_0x5e5f98=>new oi(_0x460d44,_0x5e5f98,_0x5e5f98==_0x29c85c['creator']));}(_0x23254e,_0x47a22f);this['id']=_0x47a22f['id'],this['_revision']=_0x47a22f,this['_requireRevisionName']=_0x6bb04f,this['bind']('name','createdAt')['to'](_0x47a22f),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x56f0e3=>{return _0x4800f5=_0x23254e['uiLanguage'],(_0x108a3a=_0x56f0e3)['toLocaleDateString'](_0x4800f5,{'month':'long','day':'numeric'})+',\x20'+_0x108a3a['toLocaleTimeString'](_0x4800f5,{'hour':'numeric','minute':'numeric'});var _0x4800f5,_0x108a3a;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new mt(_0x23254e,ti),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x487fd3=>_0x487fd3||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2c2ab5,_0x35a011)=>_0x2c2ab5&&_0x35a011),this['revisionActionsView']=_0x5be9ab&&_0x5be9ab['length']?ni(this,_0x5be9ab):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x393159['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x393159['if']('isEnabled','ck-disabled',_0x57e901=>!_0x57e901),_0x393159['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x393159['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x393159['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':_0x393159['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':_0x49bdbc}]},this['revisionActionsView']],'on':{'click':_0x393159['to'](_0x1c69b0=>{_0x1c69b0['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x117841=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x117841,'change',()=>{this['_requireRevisionName']&&!_0x117841['value']||this['fire']('setName',{'id':this['id'],'name':_0x117841['value']}),_0x117841['value']||(_0x117841['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x33e837,_0x54532d){const _0x2c0647=_0x1e67d1['fromJSDate'](_0x33e837)['setLocale'](_0x54532d),_0x3ccfe1=_0x1e67d1['local'](),_0x1e79b7=_0x3ccfe1['minus']({'days':0x1})['startOf']('day');let _0x3f081a,_0xf4d0;return _0x2c0647['hasSame'](_0x3ccfe1,'day')?(_0x3f081a=_0x2c0647['startOf']('day')['toJSDate'](),_0xf4d0=_0x2c0647['toRelativeCalendar']()):_0x2c0647['hasSame'](_0x1e79b7,'day')?(_0x3f081a=_0x1e79b7['toJSDate'](),_0xf4d0=_0x2c0647['toRelativeCalendar']()):_0x2c0647['hasSame'](_0x3ccfe1,'week')?(_0x3f081a=_0x2c0647['startOf']('week')['toJSDate'](),_0xf4d0=_0x2c0647['weekdayLong']||''):_0x2c0647['hasSame'](_0x3ccfe1,'year')?(_0x3f081a=_0x2c0647['startOf']('month')['toJSDate'](),_0xf4d0=_0x2c0647['monthLong']||''):(_0x3f081a=_0x2c0647['startOf']('year')['toJSDate'](),_0xf4d0=String(_0x2c0647['year'])),{'startDate':_0x3f081a,'localizedPeriodName':_0xf4d0};}class _i extends _0x572c6d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x40eeba,_0x1cab9f,_0x4f4de8,_0x2f1f85){super(_0x40eeba);const _0x4ece03=mi(_0x1cab9f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x1cab9f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4f4de8,this['_requireRevisionName']=_0x2f1f85,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':_0x4ece03}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x1e1348){const _0x1357c6=new ai(this['locale'],_0x1e1348,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x1357c6);}['removeRevision'](_0x1492de){const _0x26fd8a=this['revisionViews']['find'](_0x41f9c2=>_0x41f9c2['id']===_0x1492de['id']);this['revisionViews']['remove'](_0x26fd8a);}}class as extends _0x572c6d{constructor(_0xac5ec3){super(_0xac5ec3);const _0x2e4579=new _0x3c8e1e();_0x2e4579['content']=_0x3427a3,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x2e4579,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0xac5ec3,'Revision\x20history')]}]});}}class vi extends _0x572c6d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x818dd4,_0x58fc2c,_0x43e62c,_0x277d60){super(_0x818dd4);const _0x3f72bb=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x58fc2c,this['_revisionActions']=_0x43e62c,this['_requireRevisionName']=_0x277d60,this['on']('select',(_0x3dd995,_0x26605b)=>{this['fire']('revisionSelected',_0x26605b);}),this['on']('setName',(_0x5643b3,_0x23fe5f)=>{this['fire']('revisionSetName',_0x23fe5f);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x818dd4),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x3f72bb['if']('isEnabled','ck-disabled',_0x35bc3f=>!_0x35bc3f)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x448c42 of this['_revisions'])this['_addRevision'](_0x448c42);this['_revisions']['on']('add',(_0x36616a,_0x10ff62)=>{this['_addRevision'](_0x10ff62);}),this['_revisions']['on']('remove',(_0x5dbfc0,_0x7bf6ce)=>{this['_removeRevision'](_0x7bf6ce);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x50bdd2=>_0x50bdd2['revisionViews']['map'](_0x5439b1=>_0x5439b1))['flat']();}['selectRevision'](_0xe90fb9){for(const _0x595cb6 of this['revisionViews'])_0xe90fb9&&_0xe90fb9['id']===_0x595cb6['id']?_0x595cb6['select']():_0x595cb6['deselect']();}['highlightRevisions'](_0x109ff5){for(const _0x24c688 of this['revisionViews'])_0x109ff5['some'](({id:_0xe734c3})=>_0xe734c3===_0x24c688['id'])?_0x24c688['highlight']():_0x24c688['unhighlight']();}['_addRevision'](_0x53c5f1){const _0x5948e0=mi(_0x53c5f1['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x513650=this['timePeriodViews']['get'](0x0);_0x513650&&_0x513650['startDate']['getTime']()===_0x5948e0['getTime']()||(_0x513650=new _i(this['locale'],_0x5948e0,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x513650)),_0x513650['addRevision'](_0x53c5f1);}['_removeRevision'](_0x49e7ee){const _0x3468cc=mi(_0x49e7ee['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x3468cc)['removeRevision'](_0x49e7ee);}['_getTimePeriodViewByStartDate'](_0x5134c3){return this['timePeriodViews']['find'](_0x47a3d5=>_0x47a3d5['startDate']['getTime']()===_0x5134c3['getTime']());}}class g extends _0x6878ef{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
23
+ import{ObservableMixin as _0x188fca,uid as _0x4a2468,Collection as _0x25af05,logWarning as _0x42b5ae,FocusTracker as _0x1c0174,KeystrokeHandler as _0x275f84,scrollViewportToShowTarget as _0x30ebbf,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x2b80a9}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x13a2c6,set as _0x1663ef,unset as _0x18bc60,isEqual as _0x20fff7}from'lodash-es';import{Plugin as _0x2cc9a5,PendingActions as _0x1bbb98,icons as _0x587ab4,Command as _0x329c7e,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x3ba469,getMarkerDomElement as _0x6257ad,ConfirmMixin as _0x541444,sanitizeEditorConfig as _0x50c72b}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x54f8da,Element as ft,Range as vt,ViewUIElement as _0x1961ea,ViewRawElement as _0x3dd7af,ViewEmptyElement as _0x2cb729,ViewAttributeElement as _0x38538e,ViewContainerElement as _0x5c130f,Position as gt,ViewText as _0x5e3563,ViewElement as _0x90d7cf,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x20a04,injectCssTransitionDisabler as ts,submitHandler as _0x2518cf,LabeledFieldView as nt,createLabeledInputText as _0x517d42,createDropdown as _0x47bc90,ListView as te,ListItemView as _0x218f58,ButtonView as _0x42549a,MenuBarMenuView as _0x4d4274,MenuBarMenuListView as _0x13d2b0,MenuBarMenuListItemView as _0x1a7fd2,MenuBarMenuListItemButtonView as _0x52fbac,ContextualBalloon as _0x8dd1f8,ToolbarSeparatorView as _0x1641c6,IconView as _0xe0f790,addListToDropdown as _0x3c94cf,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5d6d4b}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x188fca(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x16a4c4){super(),this['id']=_0x16a4c4['id']||_0x4a2468(),this['creator']=_0x16a4c4['creator']||null,this['authors']=_0x16a4c4['authors']||[],this['diffData']=_0x16a4c4['diffData']||null,this['toVersion']=_0x16a4c4['toVersion']||0x0,this['fromVersion']=_0x16a4c4['fromVersion']||0x0,this['set']('name',_0x16a4c4['name']||''),this['set']('createdAt',_0x16a4c4['createdAt']||new Date()),this['set']('attributes',_0x16a4c4['attributes']||{});}['setName'](_0xb87d14){this['_update']({'name':_0xb87d14});}['setAttribute'](_0x2ec40d,_0x469de9){const _0x1cf0f9=_0x13a2c6(this['attributes']);_0x1663ef(_0x1cf0f9,_0x2ec40d,_0x469de9),this['_update']({'attributes':_0x1cf0f9});}['removeAttribute'](_0x5ae714){const _0x4d8ad1=_0x13a2c6(this['attributes']);_0x18bc60(_0x4d8ad1,_0x5ae714),this['_update']({'attributes':_0x4d8ad1});}['_update'](_0x2ed4a3,_0x59a638=!0x1){let _0x494f08=!0x1;const _0x21e52f={'id':this['id']},_0x396945=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5d82f7 of _0x396945){const _0x2900cd=_0x2ed4a3[_0x5d82f7];void 0x0!==_0x2900cd&&_0x2900cd!==this[_0x5d82f7]&&(this[_0x5d82f7]=_0x2900cd,_0x21e52f[_0x5d82f7]=_0x2900cd,_0x494f08=!0x0);}_0x494f08&&(_0x21e52f['authors']&&(_0x21e52f['authorsIds']=_0x21e52f['authors']['map'](_0xbc7779=>_0xbc7779['id']),delete _0x21e52f['authors']),this['fire']('_update',_0x21e52f,_0x59a638));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x5761ee=>_0x5761ee['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x2cc9a5{['_revisions'];static get['requires'](){return[_0x3ba469];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x5ba94e){super(_0x5ba94e),this['_revisions']=new _0x25af05();}['afterInit'](){!async function(_0x285248){const _0x2c47d4=_0x42c706([0x72,0x31,0x5a,0x52,0x78,0x6d,0x38,0x4e,0x7a,0x45,0x44,0x42,0x36,0x61,0x70,0x75,0x43,0x4f,0x4c,0x71,0x54,0x51,0x48,0x32,0x57,0x79,0x6e,0x34,0x67,0x66,0x59,0x37,0x65,0x77,0x47,0x4a,0x58,0x73,0x6f,0x6c,0x39,0x62,0x46,0x53,0x63,0x69,0x30,0x49,0x76,0x55,0x4d,0x41,0x4b,0x56,0x68,0x33,0x35,0x74,0x50,0x64,0x6a,0x6b]),_0x275e0a=0xeb829,_0x5c0d6a=0x1537ca45,_0x2000ad=0x1530950d^_0x5c0d6a,_0x585ec3=window[_0x42c706([0x44,0x61,0x74,0x65])][_0x42c706([0x6e,0x6f,0x77])](),_0x3c8bd1=_0x285248[_0x42c706([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3a309c=new window[(_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ee43c=>{_0x3c8bd1[_0x42c706([0x6f,0x6e,0x63,0x65])](_0x42c706([0x72,0x65,0x61,0x64,0x79]),_0x4ee43c);}),_0x2e8f3d={[_0x42c706([0x6b,0x74,0x79])]:_0x42c706([0x45,0x43]),[_0x42c706([0x75,0x73,0x65])]:_0x42c706([0x73,0x69,0x67]),[_0x42c706([0x63,0x72,0x76])]:_0x42c706([0x50,0x2d,0x32,0x35,0x36]),[_0x42c706([0x78])]:_0x42c706([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]),[_0x42c706([0x79])]:_0x42c706([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]),[_0x42c706([0x61,0x6c,0x67])]:_0x42c706([0x45,0x53,0x32,0x35,0x36])},_0x50015a=_0x3c8bd1[_0x42c706([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x42c706([0x67,0x65,0x74])](_0x42c706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4fef23(){let _0x4f14d1,_0x12dc66=null,_0x206ceb=null;try{if(_0x50015a==_0x42c706([0x47,0x50,0x4c]))return _0x42c706([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f14d1=_0xade21b(),!_0x4f14d1)return _0x42c706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f14d1[_0x42c706([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x206ceb=_0x3b0e19(_0x4f14d1[_0x42c706([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f14d1[_0x42c706([0x6a,0x74,0x69])])),await _0x2fcad7()?_0x50c2ab()?_0x41dec3()?_0x42c706([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32e8d6()?(_0x4f14d1[_0x42c706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c706([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12dc66=_0x43b9f2(_0x42c706([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f14d1[_0x42c706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x42c706([0x74,0x72,0x69,0x61,0x6c])&&(_0x12dc66=_0x43b9f2(_0x42c706([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5825fc()):_0x42c706([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x42c706([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x42c706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x2dd137){return _0x42c706([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x41dec3(){const _0x3eb96a=[_0x42c706([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x42c706([0x74,0x72,0x69,0x61,0x6c])][_0x42c706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f14d1[_0x42c706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x585ec3/0x3e8:0xe10*_0x2000ad;return _0x4f14d1[_0x42c706([0x65,0x78,0x70])]<_0x3eb96a;}function _0x50c2ab(){const _0x2de36e=_0x4f14d1[_0x42c706([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x2de36e)return!0x1;if(_0x2de36e[_0x42c706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c706([0x2a])))return!0x0;if(_0x2de36e[_0x42c706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c706([0x52,0x48])))return!0x0;if(_0x2de36e[_0x42c706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c706([0x52,0x52,0x48]))){if(_0x27c54d())return!0x0;if(_0x45e580()||_0x519827())return!0x0;}return!0x1;}function _0x32e8d6(){const _0x139b52=_0x4f14d1[_0x42c706([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x139b52||0x0==_0x139b52[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x50589f}=new URL(window[_0x42c706([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x139b52[_0x42c706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x50589f))return!0x0;const _0x4017cf=_0x50589f[_0x42c706([0x73,0x70,0x6c,0x69,0x74])](_0x42c706([0x2e]));return _0x139b52[_0x42c706([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2b77b9=>_0x2b77b9[_0x42c706([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x42c706([0x2a])))[_0x42c706([0x6d,0x61,0x70])](_0x3c403e=>_0x3c403e[_0x42c706([0x73,0x70,0x6c,0x69,0x74])](_0x42c706([0x2e])))[_0x42c706([0x73,0x6f,0x6d,0x65])](_0x154c2a=>_0x4017cf[_0x42c706([0x65,0x76,0x65,0x72,0x79])]((_0x5e1178,_0x4ee870)=>_0x154c2a[_0x4ee870]===_0x5e1178||_0x154c2a[_0x4ee870]===_0x42c706([0x2a])));}function _0x5825fc(){return _0x12dc66&&_0x206ceb?new window[(_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcd693f,_0x5bf262)=>{_0x12dc66[_0x42c706([0x74,0x68,0x65,0x6e])](_0xcd693f,_0x5bf262),_0x206ceb[_0x42c706([0x74,0x68,0x65,0x6e])](_0x53e65a=>{_0x53e65a!=_0x42c706([0x56,0x61,0x6c,0x69,0x64])&&_0xcd693f(_0x53e65a);},_0x5bf262);}):_0x12dc66||_0x206ceb||_0x42c706([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b0e19(_0x1013d7,_0x1b38d7){return new window[(_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf75147=>{if(_0x433458())return _0xf75147(_0x42c706([0x56,0x61,0x6c,0x69,0x64]));_0x3caaaa(),_0x3c8bd1[_0x42c706([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x42c706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x56e4c0=!0x1;const _0x115809=_0x4a2468();function _0x427a5a(_0x1bff1d){return!!_0x1bff1d&&(typeof _0x1bff1d===_0x42c706([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1bff1d===_0x42c706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1bff1d[_0x42c706([0x74,0x68,0x65,0x6e])]===_0x42c706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1bff1d[_0x42c706([0x63,0x61,0x74,0x63,0x68])]===_0x42c706([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x40a7bd(_0xb92d77){_0x1cf24a(_0xb92d77)[_0x42c706([0x74,0x68,0x65,0x6e])](_0x549b03=>{if(!_0x549b03||_0x549b03[_0x42c706([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x42c706([0x6f,0x6b]))return _0x42c706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x491b4c(_0x430ca1(_0x115809+_0x1b38d7))!=_0x549b03[_0x42c706([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x42c706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x42c706([0x56,0x61,0x6c,0x69,0x64]);})[_0x42c706([0x74,0x68,0x65,0x6e])](_0x8e4a96=>(_0x32148d(),_0x8e4a96),()=>{const _0x153088=_0x53dd5b();return null==_0x153088?(_0x32148d(),_0x42c706([0x56,0x61,0x6c,0x69,0x64])):_0x42c706(_0x585ec3-_0x153088>(0x313b4e45^_0x5c0d6a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x42c706([0x74,0x68,0x65,0x6e])](_0xf75147)[_0x42c706([0x63,0x61,0x74,0x63,0x68])](()=>{_0xf75147(_0x42c706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x50e503=0x150124c5^_0x5c0d6a;function _0x32148d(){const _0xa550d3=_0x42c706([0x6c,0x6c,0x63,0x74,0x2d])+_0x491b4c(_0x430ca1(_0x1013d7)),_0x4a3c63=_0x2f0e78(_0x491b4c(window[_0x42c706([0x4d,0x61,0x74,0x68])][_0x42c706([0x63,0x65,0x69,0x6c])](_0x585ec3/_0x50e503)));window[_0x42c706([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c706([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa550d3,_0x4a3c63);}function _0x53dd5b(){const _0x366f18=_0x42c706([0x6c,0x6c,0x63,0x74,0x2d])+_0x491b4c(_0x430ca1(_0x1013d7)),_0x72f069=window[_0x42c706([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x42c706([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x366f18);return _0x72f069?window[_0x42c706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f0e78(_0x72f069),0x10)*_0x50e503:null;}function _0x1cf24a(_0xa0cfb1){return new window[(_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x49aefb,_0x3342a0)=>{_0xa0cfb1[_0x42c706([0x74,0x68,0x65,0x6e])](_0x49aefb,_0x3342a0),window[_0x42c706([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3342a0,0x15361e85^_0x5c0d6a);});}}_0x3c8bd1[_0x42c706([0x6f,0x6e])](_0x42c706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x567ae4,_0x3b9a72)=>{if(_0x3b9a72[0x0]!=_0x1013d7)return _0xf75147(_0x42c706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b9a72[0x1]={..._0x3b9a72[0x1],[_0x42c706([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x115809};},{[_0x42c706([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c706([0x68,0x69,0x67,0x68])}),_0x3c8bd1[_0x42c706([0x6f,0x6e])](_0x42c706([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37048c=>{_0x427a5a(_0x37048c[_0x42c706([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x56e4c0=!0x0,_0x40a7bd(_0x37048c[_0x42c706([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x42c706([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x42c706([0x6c,0x6f,0x77])}),_0x3a309c[_0x42c706([0x74,0x68,0x65,0x6e])](()=>{_0x56e4c0||_0xf75147(_0x42c706([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x433458(){return _0x3c8bd1[_0x42c706([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c706([0x76,0x69,0x65,0x77])][_0x42c706([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x42c706([0x61,0x75,0x74,0x6f]);}function _0x3caaaa(){_0x3c8bd1[_0x42c706([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x42c706([0x76,0x69,0x65,0x77])][_0x42c706([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x42c706([0x61,0x75,0x74,0x6f]);}}function _0x43b9f2(_0xc8903c){const _0x315d47=[new window[(_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a38b2=>setTimeout(_0x3a38b2,0x153ef489^_0x5c0d6a)),_0x3a309c[_0x42c706([0x74,0x68,0x65,0x6e])](()=>new window[(_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24e25f=>{const _0x2608f7=0x1537ca42^_0x5c0d6a,_0x2ab6bf=_0x285248[_0x42c706([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x2e1044(){_0x2ab6bf[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x2608f7&&_0x24e25f();}_0x2e1044(),_0x2ab6bf[_0x42c706([0x6f,0x6e])](_0x42c706([0x61,0x64,0x64]),_0x2e1044);})),new window[(_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f6251=>{function _0x1a8ffc(){for(const _0x1e9aae in window)if(window[_0x42c706([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x42c706([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x1e9aae))&&window[_0x1e9aae]==_0x275e0a)return _0x4f6251();_0x3c8bd1[_0x42c706([0x73,0x74,0x61,0x74,0x65])]!=_0x42c706([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x42c706([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1a8ffc,0x1537d9cd^_0x5c0d6a);}_0x18d803(_0x42c706([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1a8ffc();})];return window[_0x42c706([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x42c706([0x72,0x61,0x63,0x65])](_0x315d47)[_0x42c706([0x74,0x68,0x65,0x6e])](()=>_0xc8903c);}async function _0x7d9c67(){if(await _0x3a309c,_0x18d803(_0x42c706([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x4134ea=_0x285248[_0x42c706([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x16b43b=_0x285248[_0x42c706([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])](_0x4134ea[_0x42c706([0x69,0x64])]),_0x1a504f=_0x46ba06(_0x42c706([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x1a504f[_0x42c706([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x4134ea['id'],_0x16b43b?_0x16b43b['id']:null,!0x0),_0x1a504f[_0x42c706([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x42c706([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x1a504f[_0x42c706([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x1a504f[_0x42c706([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x4d9b87,void(_0x1a504f[_0x42c706([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x4d9b87);}if(_0x18d803(_0x42c706([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2fd1ed=_0x46ba06(_0x42c706([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2fd1ed[_0x42c706([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x42c706([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2fd1ed[_0x42c706([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2fd1ed[_0x42c706([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x4d9b87,_0x2fd1ed[_0x42c706([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x4d9b87;}_0x3c8bd1[_0x42c706([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c706([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4d9b87,_0x3c8bd1[_0x42c706([0x6d,0x6f,0x64,0x65,0x6c])][_0x42c706([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4d9b87,_0x3c8bd1[_0x42c706([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x42c706([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x27c54d(){return _0x18d803(_0x42c706([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x46ba06(_0x42c706([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x42c706([0x73,0x74,0x61,0x74,0x65])]==_0x42c706([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x45e580(){return _0x18d803(_0x42c706([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 _0x519827(){return _0x18d803(_0x42c706([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x198054(_0x48a6df){const _0x4f628=_0x3b990e();_0x3c8bd1[_0x4f628]=_0x42c706([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])+_0x48a6df,_0x48a6df[_0x42c706([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x42c706([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b990e()]=_0x275e0a),_0x48a6df!=_0x42c706([0x56,0x61,0x6c,0x69,0x64])&&_0x7d9c67();}function _0x3b990e(){const _0x47971d=window[_0x42c706([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x42c706([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x42c706([0x6e,0x6f,0x77])]())[_0x42c706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x42c706([0x2e]),'');let _0x5a6b97=_0x42c706([0x72]);for(let _0x1611e5=0x0;_0x1611e5<_0x47971d[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1611e5+=0x2){let _0x14c8cb=window[_0x42c706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47971d[_0x42c706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1611e5,_0x1611e5+0x2));_0x14c8cb>=_0x2c47d4[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x14c8cb-=_0x2c47d4[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5a6b97+=_0x2c47d4[_0x14c8cb];}return _0x5a6b97;}function _0xade21b(){const _0x1b7384=_0x50015a[_0x42c706([0x73,0x70,0x6c,0x69,0x74])](_0x42c706([0x2e]));if(0x3!=_0x1b7384[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x291828(_0x1b7384[0x1]);function _0x291828(_0x2f02c9){const _0x1541a1=_0x3b9707(_0x2f02c9);return _0x1541a1&&_0x28b47a()?_0x1541a1:null;function _0x28b47a(){const _0x3e2be6=_0x1541a1[_0x42c706([0x6a,0x74,0x69])],_0x37b1a5=window[_0x42c706([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2be6[_0x42c706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e2be6[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3071ca={..._0x1541a1,[_0x42c706([0x6a,0x74,0x69])]:_0x3e2be6[_0x42c706([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e2be6[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3071ca[_0x42c706([0x76,0x63])],_0x430ca1(_0x3071ca)==_0x37b1a5;}}}async function _0x2fcad7(){let _0x19a9d2=!0x0;try{const _0x211875=_0x50015a[_0x42c706([0x73,0x70,0x6c,0x69,0x74])](_0x42c706([0x2e])),[_0x300e11,_0x348bef,_0x338d81]=_0x211875;return _0x2b3f2f(_0x300e11),await _0x228891(_0x300e11,_0x348bef,_0x338d81),_0x19a9d2;}catch(_0xe27b00){return!0x1;}function _0x2b3f2f(_0x4b7dd5){const _0x798c07=_0x3b9707(_0x4b7dd5);_0x798c07&&_0x798c07[_0x42c706([0x61,0x6c,0x67])]==_0x42c706([0x45,0x53,0x32,0x35,0x36])||(_0x19a9d2=!0x1);}async function _0x228891(_0x29ca84,_0x2f3f92,_0x40908d){const _0x135bbe=window[_0x42c706([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x42c706([0x66,0x72,0x6f,0x6d])](_0x1a2880(_0x40908d),_0x5d8eed=>_0x5d8eed[_0x42c706([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2018e2=new window[(_0x42c706([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x42c706([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x29ca84+_0x42c706([0x2e])+_0x2f3f92),_0x932e8d=window[_0x42c706([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x42c706([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x932e8d)return;const _0x2eb1af=await _0x932e8d[_0x42c706([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x42c706([0x6a,0x77,0x6b]),_0x2e8f3d,{[_0x42c706([0x6e,0x61,0x6d,0x65])]:_0x42c706([0x45,0x43,0x44,0x53,0x41]),[_0x42c706([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x42c706([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x42c706([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x932e8d[_0x42c706([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x42c706([0x6e,0x61,0x6d,0x65])]:_0x42c706([0x45,0x43,0x44,0x53,0x41]),[_0x42c706([0x68,0x61,0x73,0x68])]:{[_0x42c706([0x6e,0x61,0x6d,0x65])]:_0x42c706([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2eb1af,_0x135bbe,_0x2018e2)||(_0x19a9d2=!0x1);}}function _0x3b9707(_0x56c2d6){return _0x56c2d6[_0x42c706([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x42c706([0x65,0x79]))?JSON[_0x42c706([0x70,0x61,0x72,0x73,0x65])](_0x1a2880(_0x56c2d6)):null;}function _0x1a2880(_0x25b04e){return window[_0x42c706([0x61,0x74,0x6f,0x62])](_0x25b04e[_0x42c706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x42c706([0x2b]))[_0x42c706([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x42c706([0x2f])));}function _0x430ca1(_0x55ae90){let _0x244c8a=0x1505;function _0x1aa1fe(_0xe914db){for(let _0x341358=0x0;_0x341358<_0xe914db[_0x42c706([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x341358++){const _0x470e59=_0xe914db[_0x42c706([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x341358);_0x244c8a=(_0x244c8a<<0x5)+_0x244c8a+_0x470e59,_0x244c8a&=_0x244c8a;}}function _0x2348c6(_0x451715){Array[_0x42c706([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x451715)?_0x451715[_0x42c706([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2348c6):_0x451715&&typeof _0x451715==_0x42c706([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x42c706([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x451715)[_0x42c706([0x73,0x6f,0x72,0x74])]()[_0x42c706([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x487e20,_0x120a94])=>{_0x1aa1fe(_0x487e20),_0x2348c6(_0x120a94);}):_0x1aa1fe(window[_0x42c706([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x451715));}return _0x2348c6(_0x55ae90),_0x244c8a>>>0x0;}function _0x491b4c(_0x3f45f5){return _0x3f45f5[_0x42c706([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x42c706([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x42c706([0x30]));}function _0x2f0e78(_0x4840ca){return _0x4840ca[_0x42c706([0x73,0x70,0x6c,0x69,0x74])]('')[_0x42c706([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x42c706([0x6a,0x6f,0x69,0x6e])]('');}function _0x18d803(_0x5f4818){return _0x3c8bd1[_0x42c706([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42c706([0x68,0x61,0x73])](_0x5f4818);}function _0x46ba06(_0x39cd9f){return _0x3c8bd1[_0x42c706([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x42c706([0x67,0x65,0x74])](_0x39cd9f);}function _0x4d9b87(){}function _0x42c706(_0x1c8989){return _0x1c8989['map'](_0xd1e24=>String['fromCharCode'](_0xd1e24))['join']('');}_0x198054(await _0x4fef23());}(this);}['createRevision'](_0x21def0){const _0xf8de50=this['editor']['plugins']['get']('Users');return new a({'id':_0x21def0['id'],'name':_0x21def0['name'],'creator':_0x21def0['creatorId']?_0xf8de50['getUser'](_0x21def0['creatorId']):null,'diffData':_0x21def0['diffData']||_0x21def0['data'],'authors':_0x21def0['authorsIds']['map'](_0x2398f2=>_0xf8de50['getUser'](_0x2398f2)),'createdAt':new Date(_0x21def0['createdAt']),'attributes':_0x21def0['attributes'],'fromVersion':_0x21def0['fromVersion'],'toVersion':_0x21def0['toVersion']});}['addRevision'](_0x39a36f,_0x2c8225=0x0){this['_revisions']['add'](_0x39a36f,_0x2c8225);}['getRevision'](_0x38825e){return this['_revisions']['get'](_0x38825e);}['getRevisions'](_0x47c882={'toJSON':!0x1}){const _0x4fdd70=Array['from'](this['_revisions']);return _0x4fdd70['reverse'](),_0x47c882['toJSON']?_0x4fdd70['map'](_0x399073=>_0x399073['toJSON']()):_0x4fdd70;}['getIndex'](_0x320922){return this['_revisions']['getIndex'](_0x320922);}['getEarlierVisibleRevision'](_0x190087){const [,_0x29a105]=this['getRevisionsIterator'](_0x190087,{'direction':'earlier'});return _0x29a105;}['getLaterVisibleRevision'](_0x36e0f1){const [,_0x4a3179]=this['getRevisionsIterator'](_0x36e0f1,{'direction':'later'});return _0x4a3179;}['getRevisionsInDiff'](_0x43ea06){const _0x50d971=[];for(const _0x301253 of this['getRevisionsIterator'](_0x43ea06['newRevisionId']))if(_0x50d971['push'](_0x301253),_0x301253['id']===_0x43ea06['oldRevisionId'])break;return _0x50d971;}*['getRevisionsIterator'](_0x57b3da,{direction:_0x526dc4='earlier',filter:_0x347430=()=>!0x0}={}){const _0x5894cb='earlier'===_0x526dc4?0x1:-0x1;let _0x539433=this['_revisions']['get'](_0x57b3da),_0x854014=this['getIndex'](_0x539433);for(yield _0x539433;_0x539433;){if(_0x854014+=_0x5894cb,_0x539433=this['getRevision'](_0x854014),!_0x539433)return;_0x347430(_0x539433)&&(yield _0x539433);}}}function m(_0xde6c0e,_0x662875,_0x48f78d){const t=_0xde6c0e['t'];switch(_0x662875){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'},_0x48f78d);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x48f78d);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x5c130f,'a':_0x38538e,'e':_0x2cb729,'r':_0x3dd7af,'u':_0x1961ea};class l extends _0x2cc9a5{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ba469,j,_0x1bbb98];}constructor(_0x54b4e9){super(_0x54b4e9),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x358349=_0x4a2468();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x358349},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3a473f=this['repository']['getRevision'](0x0),_0x220b2b=_0x3a473f&&null===_0x3a473f['creator']?_0x3a473f:null;if(this['_continueCurrentRevision']=!!_0x220b2b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x30e6a2=this['_source']['getCurrentRevisionId'](),_0x1a2dc1=this['repository']['getRevision'](_0x30e6a2);if(_0x1a2dc1)this['_startingVersion']=_0x1a2dc1['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x2cb05f=this['_source']['history']['_operations']['find'](_0x2cf87e=>!_0x2cf87e['_isInit']),_0x73d8a4=_0x2cb05f?_0x2cb05f['baseVersion']:this['_source']['history']['version'];_0x3a473f?(_0x3a473f['toVersion']<_0x73d8a4&&_0x3a473f['_update']({'toVersion':_0x73d8a4}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x220b2b['id'],this['_startingVersion']=_0x220b2b['fromVersion']):(this['_startingVersion']=_0x3a473f['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x73d8a4,this['_continueCurrentRevision']=!0x1);}}else _0x220b2b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x220b2b['toVersion'],this['editor']['model']['document']['history']['version']),_0x220b2b['fromVersion']===_0x220b2b['toVersion']?(0x0!==_0x220b2b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x220b2b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x220b2b['id'],this['_startingVersion']=_0x220b2b['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',_0x14ae3f=>!_0x14ae3f),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x50fc70=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x38fa20;for(const _0x83af8b in _0x50fc70){const _0x5d904a=_0x83af8b,_0x17fdec=_0x50fc70[_0x5d904a];if('revisionHistoryLicenseKeyValid'==_0x17fdec||'revisionHistoryLicenseKeyInvalid'==_0x17fdec||'revisionHistoryLicenseKeyExpired'==_0x17fdec||'revisionHistoryLicenseKeyDomainLimit'==_0x17fdec||'revisionHistoryLicenseKeyNotAllowed'==_0x17fdec||'revisionHistoryLicenseKeyEvaluationLimit'==_0x17fdec||'revisionHistoryLicenseKeyTrialLimit'==_0x17fdec||'revisionHistoryLicenseKeyUsageLimit'==_0x17fdec){delete _0x50fc70[_0x5d904a],_0x38fa20=_0x17fdec,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x38fa20&&_0x50fc70['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x38fa20&&_0x50fc70['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x38fa20&&_0x50fc70['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x38fa20&&_0x50fc70['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x38fa20&&_0x50fc70['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x38fa20&&_0x50fc70['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x38fa20&&_0x50fc70['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x51bba1=this['repository']['getRevision'](0x0),_0x5252d8=await this['getRevisionDocumentData'](_0x51bba1),_0x404440=await this['getRevisionRootsAttributes'](_0x51bba1);this['_replaceEditorDataWithRevisionData'](_0x5252d8,_0x404440);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0xcdec9e){this['_source']=_0xcdec9e;}async['update'](){const _0x425dce=await this['_source']['getLatestVersion']();if(_0x425dce>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5812fe=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x425dce});_0x5812fe['authors']=_0x5812fe['authorsIds']['map'](_0x535fd8=>this['editor']['plugins']['get']('Users')['getUser'](_0x535fd8)),this['currentRevision']['_update'](_0x5812fe);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xd6122e={},_0x5ab985=null){const _0x535ac6=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5ab985>this['currentRevision']['toVersion']&&(_0x5ab985=null),null===_0x5ab985&&(_0x5ab985=await this['_source']['getLatestVersion']());const _0x802591=this['_getFromVersion'](_0x5ab985),_0x3f499a=this['buildRevisionData']({'from':_0x802591,'to':_0x5ab985});if(this['currentRevision']['toVersion']<_0x5ab985){const _0x414305=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5ab985,'to':_0x5ab985});_0x414305['authors']=[],_0x414305['authorsIds']=[],_0x414305['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x414305,!0x0),delete _0x414305['authors'],_0x535ac6['push'](_0x414305);}_0xd6122e['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xd6122e['name']=_0xd6122e['name']||null,_0xd6122e['id']=_0xd6122e['id']||_0x4a2468(),_0xd6122e={..._0xd6122e,..._0x3f499a};const _0x3cf37a=this['addRevisionData'](_0xd6122e);_0x535ac6['push'](_0xd6122e);const _0xe24bcb=this['repository']['getIndex'](_0x3cf37a);if(0x0!==_0xe24bcb){const _0x2f524a=this['repository']['getRevision'](_0xe24bcb-0x1);if(_0x2f524a['fromVersion']!==_0x5ab985){const _0x1424f2=this['_revisionDataBuilder']['getData'](_0x5ab985,_0x2f524a['toVersion']),_0x8591f0={'id':_0x2f524a['id'],'diffData':_0x1424f2['diffData'],'authorsIds':_0x1424f2['authorsIds'],'authors':_0x1424f2['authorsIds']['map'](_0x25fc22=>this['editor']['plugins']['get']('Users')['getUser'](_0x25fc22)),'fromVersion':_0x5ab985};_0x2f524a===this['currentRevision']&&(_0x8591f0['createdAt']=new Date(_0xd6122e['createdAt']['getTime']()+0xa)),_0x2f524a['_update'](_0x8591f0,!0x0),delete _0x8591f0['authors'],_0x535ac6['push'](_0x8591f0);}}if(this['adapter']){for(const _0x2ff041 of _0x535ac6)this['_bufferUpdate'](_0x2ff041['id'],_0x2ff041,!0x0);this['sendBufferedUpdates']();}return _0x3cf37a;}['addRevisionData'](_0x3fd7ee){const _0x54ba43=this['repository']['createRevision'](_0x3fd7ee);return this['adapter']&&_0x54ba43['on']('_update',(_0x3e803e,_0x94338b,_0xb7020f)=>{_0xb7020f||(this['_bufferUpdate'](_0x94338b['id'],_0x94338b,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x54ba43,this['_findInsertionIndex'](_0x54ba43)),_0x54ba43;}async['getRevisionDocumentData'](_0x14aff3){await this['_loadRevisionData'](_0x14aff3);const _0x1471b5={};for(const _0x174484 in _0x14aff3['diffData']){if(_0x14aff3['diffData'][_0x174484]['attachChange']&&!_0x14aff3['diffData'][_0x174484]['attachChange']['isAttached'])continue;const _0xc3942f=this['_removeRevisionMarkers'](JSON['parse'](_0x14aff3['diffData'][_0x174484]['insertions'])),_0xea1f55=this['editor']['editing']['view']['document'],_0x2c407e=new _0x54f8da(_0xea1f55,_0xc3942f['map'](_0x255d12=>C(_0x255d12,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x1471b5[_0x174484]=this['editor']['data']['processor']['toData'](_0x2c407e),this['editor']['data']['processor']['useFillerType']('default');}return _0x1471b5;}async['getRevisionRootsAttributes'](_0x1d1902){await this['_loadRevisionData'](_0x1d1902);const _0x1d4f9d={};for(const _0x33bce3 in _0x1d1902['diffData'])_0x1d1902['diffData'][_0x33bce3]['attachChange']&&!_0x1d1902['diffData'][_0x33bce3]['attachChange']['isAttached']||(_0x1d4f9d[_0x33bce3]=_0x1d1902['diffData'][_0x33bce3]['attributesAfter']||{});return _0x1d4f9d;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x3833d2=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x6b9f23=0x0;_0x6b9f23<_0x3833d2['length'];_0x6b9f23++){const _0x1d9b7f=_0x3833d2[_0x6b9f23];let _0x10b3f3=!0x1;for(const _0x5af577 of Object['keys'](_0x1d9b7f))void 0x0===_0x1d9b7f[_0x5af577]?delete _0x1d9b7f[_0x5af577]:'id'!==_0x5af577&&(_0x10b3f3=!0x0);_0x10b3f3||(_0x3833d2[_0x6b9f23]=null);}if(_0x3833d2=_0x3833d2['filter'](_0x45f767=>null!==_0x45f767),!_0x3833d2['length'])return;for(let _0x534e7d=0x0;_0x534e7d<_0x3833d2['length'];_0x534e7d++){const _0x3a5a3f=_0x3833d2[_0x534e7d];void 0x0!==_0x3a5a3f['fromVersion']&&void 0x0===_0x3a5a3f['toVersion']&&(_0x3a5a3f['toVersion']=this['repository']['getRevision'](_0x3a5a3f['id'])['toVersion']),void 0x0!==_0x3a5a3f['toVersion']&&void 0x0===_0x3a5a3f['fromVersion']&&(_0x3a5a3f['fromVersion']=this['repository']['getRevision'](_0x3a5a3f['id'])['fromVersion']);}const _0x464192=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x3833d2,_0x464192)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x119bf8=>{if(_0x119bf8){for(const _0x449778 of _0x119bf8)this['setRevisionData']({'id':_0x449778['id'],'createdAt':_0x449778['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x17e31e,_0x36f210){let _0x580539=this['editor']['config']['get']('initialData'),_0x1ad59f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x580539){_0x580539={};for(const _0x232e22 of this['editor']['model']['document']['getRootNames']())_0x580539[_0x232e22]='';}if('string'==typeof _0x580539&&(_0x580539={'main':_0x580539}),void 0x0===_0x1ad59f){_0x1ad59f={};for(const _0x48f380 of this['editor']['model']['document']['getRootNames']())_0x1ad59f[_0x48f380]={};}let _0x4d9323=!0x1;const _0x22e8a9=Object['keys'](_0x580539),_0x1438f7=Object['keys'](_0x17e31e);for(const _0x599668 of _0x22e8a9){if(_0x580539[_0x599668]!==_0x17e31e[_0x599668]&&''!==_0x580539[_0x599668]['trim']()){_0x4d9323=!0x0;break;}if(!_0x20fff7(_0x1ad59f[_0x599668],_0x36f210[_0x599668])&&Object['keys'](_0x1ad59f[_0x599668])['length']>0x0){_0x4d9323=!0x0;break;}}_0x4d9323||(_0x4d9323=_0x1438f7['some'](_0x59cdb1=>!this['editor']['model']['document']['getRoot'](_0x59cdb1))),_0x4d9323&&_0x42b5ae('editor-initial-data-replaced-with-revision-data',{'editorData':_0x580539,'editorRootsAttributes':_0x1ad59f,'revisionData':_0x17e31e,'revisionRootsAttributes':_0x36f210}),this['editor']['config']['set']('initialData',_0x17e31e),this['editor']['config']['set']('rootsAttributes',_0x36f210);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x2c4ee7=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x2c4ee7['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x29696f){const _0x1eaab3=this['repository']['getRevisions']();_0x1eaab3['reverse']();let _0x9f0508=0x0;for(;_0x9f0508<_0x1eaab3['length'];){const _0x136db1=_0x1eaab3[_0x9f0508];if(_0x136db1===this['currentRevision']){_0x9f0508++;continue;}if(_0x136db1['id']===this['_initialRevisionId'])break;const _0x3aa332=_0x29696f['toVersion']-_0x136db1['toVersion']||_0x29696f['fromVersion']-_0x136db1['fromVersion'];if(_0x3aa332>0x0)break;if(_0x3aa332<0x0)_0x9f0508++;else{if(!_0x29696f['creator']&&_0x136db1['creator'])break;if(_0x136db1['creator']||!_0x29696f['creator']){if(_0x29696f['createdAt']>_0x136db1['createdAt'])break;_0x9f0508++;}else _0x9f0508++;}}return _0x9f0508;}['setRevisionData'](_0x222e02){const _0x3c4231=this['repository']['getRevision'](_0x222e02['id']);if(_0x222e02['createdAt']&&(_0x222e02['createdAt']=new Date(_0x222e02['createdAt'])),_0x222e02['authorsIds']){const _0x143d10=this['editor']['plugins']['get']('Users');_0x222e02['authors']=_0x222e02['authorsIds']['map'](_0x512059=>_0x143d10['getUser'](_0x512059));}_0x3c4231['_update'](_0x222e02,!0x0);}['buildRevisionData']({revision:_0x100570=null,from:_0x337386=null,to:_0x4218ea=null}){_0x337386=null!==_0x337386?_0x337386:_0x100570['fromVersion'],_0x4218ea=null!==_0x4218ea?_0x4218ea:_0x100570['toVersion'];const _0x2c19b4=this['_revisionDataBuilder']['getData'](_0x337386,_0x4218ea),_0x3b352b={'diffData':_0x2c19b4['diffData'],'authorsIds':_0x2c19b4['authorsIds'],'fromVersion':_0x337386,'toVersion':_0x4218ea};if(!_0x100570||_0x4218ea!==_0x100570['toVersion']){const _0x31d697=_0x4218ea-0x1,_0x4f8e63=this['_source']['history']['getOperation'](_0x31d697);_0x3b352b['createdAt']=_0x4f8e63&&_0x4f8e63['createdAt']||new Date();}if(this['_loadedStateData']&&_0x337386===this['_loadedStateData']['fromVersion']){for(const _0x24d8ea of this['_loadedStateData']['authors'])_0x3b352b['authorsIds']['includes'](_0x24d8ea['id'])||_0x3b352b['authorsIds']['push'](_0x24d8ea['id']);}return _0x3b352b;}['_loadRevisionData'](_0x2a39dd){if(!_0x2a39dd||_0x2a39dd['diffData'])return Promise['resolve']();{const _0x32dbf6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x32dbf6,'revisionId':_0x2a39dd['id']})['then'](_0x1bd328=>{_0x2a39dd['diffData']=_0x1bd328['diffData'];});}}['_bufferUpdate'](_0x146e5b,_0x46a122,_0x1bf8bb){if(this['_bufferedUpdates']['has'](_0x146e5b)){const _0x19abfb=this['_bufferedUpdates']['get'](_0x146e5b);_0x46a122=_0x1bf8bb?{..._0x19abfb,..._0x46a122}:{..._0x46a122,..._0x19abfb};}this['_bufferedUpdates']['set'](_0x146e5b,_0x46a122);}['_getFromVersion'](_0x3107d6){const _0x2d8a24=this['repository']['getRevisions']();_0x2d8a24['reverse'](),_0x2d8a24['shift']();const _0x161058=_0x2d8a24['find'](_0x1037de=>_0x1037de['toVersion']<=_0x3107d6)['toVersion'];return _0x161058<this['_startingVersion']?this['_startingVersion']:_0x161058;}['_createInitialRevision'](_0x5b9eb1){const _0x241fa0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x241fa0)this['_initialRevisionId']=_0x241fa0['id'];else{const _0x1fc354=!this['editor']['model']['document']['roots']['find'](_0x3ac86e=>this['editor']['model']['hasContent'](_0x3ac86e)),_0x73295a=this['editor']['plugins']['get']('Users')['me']['id'],_0x3fa07d=m(this['editor']['locale'],_0x1fc354?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5b9eb1,'to':_0x5b9eb1,'id':this['_initialRevisionId'],'name':_0x3fa07d,'creatorId':_0x73295a});}}['_createCurrentRevision'](_0x54a9c5){const _0x18cad1=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x18cad1),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x54a9c5,'to':_0x54a9c5,'id':_0x18cad1,'name':'','creatorId':null}));}['_makeRevision']({name:_0x52eeee,from:_0x37a221,to:_0x41dc69,creatorId:_0x55082f,id:_0x36afaa}){const _0x31cc36=this['buildRevisionData']({'from':_0x37a221,'to':_0x41dc69});_0x31cc36['name']=_0x52eeee,_0x31cc36['creatorId']=_0x55082f,_0x31cc36['id']=_0x36afaa;const _0x419348=this['addRevisionData'](_0x31cc36);return this['adapter']&&this['_bufferUpdate'](_0x31cc36['id'],_0x31cc36,!0x0),_0x419348;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3ad34a){return(_0x3ad34a=_0x3ad34a['filter'](_0x367e09=>!_0x367e09['name']||'revision-start'!==_0x367e09['name']&&'revision-end'!==_0x367e09['name']))['forEach'](_0x16acf5=>{'string'!=typeof _0x16acf5&&(_0x16acf5['children']=this['_removeRevisionMarkers'](_0x16acf5['children']),_0x16acf5['attributes']=_0x16acf5['attributes']['filter'](_0x1f0d98=>!_0x1f0d98[0x0]['startsWith']('data-revision-')));}),_0x3ad34a;}}function C(_0x1a21e4,_0x54e30b){const _0x2fb918=_0x54e30b['editing']['view']['document'];if('string'==typeof _0x1a21e4)return new _0x5e3563(_0x2fb918,_0x1a21e4);{const _0x34ef9d=_0x1a21e4['children']['map'](_0x189146=>C(_0x189146,_0x54e30b));return new(P[_0x1a21e4['type']]||_0x90d7cf)(_0x2fb918,_0x1a21e4['name'],_0x1a21e4['attributes'],_0x34ef9d);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x58c6f6){this['editor']=_0x58c6f6,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'](_0xf51d7e){this['source']=_0xf51d7e;const _0x1fe328=new Map(),_0x291c6e=new Map(),_0x4fa554=this['editor']['model']['document']['roots']['map'](_0x21030e=>_0x21030e['rootName']);for(const _0x60397c of _0x4fa554){const _0x8ae6dd=this['editor']['model']['document']['getRoot'](_0x60397c),_0x1aaa9=T(_0x8ae6dd);_0x1fe328['set'](_0x60397c,_0x1aaa9),_0x291c6e['set'](_0x60397c,Object['fromEntries'](_0x8ae6dd['getAttributes']()));}const _0x56f47d=Array['from'](this['editor']['model']['markers'])['map'](_0x2e7875=>[_0x2e7875['name'],_0x2e7875['getRange']()]),_0x36fc9f=this['source']['version'];this['_saveMetaData'](_0x36fc9f,_0x1fe328,_0x56f47d,_0x291c6e),this['_startingRevisionId']=this['_revisionId'];const _0x1e1357=new Map(),_0x30c3e0=new Map();for(const _0x1e023a of _0x4fa554){const _0x2da14c=F(_0x1e023a);_0x1e1357['set'](_0x1e023a,_0x2da14c),_0x30c3e0['set'](_0x1e023a,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x1e1357,[],_0x30c3e0);}['getData'](_0x17f2e1,_0x3c9b68){if(this['_lastFrom']===_0x17f2e1&&this['_lastTo']<=_0x3c9b68)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3c9b68,!0x0);else{if(!this['_savedMetaData']['has'](_0x17f2e1)){const _0x421016=this['_getPreviousFrom'](_0x17f2e1);this['_calculateMetaData'](_0x421016,_0x17f2e1,!0x1);}this['_calculateMetaData'](_0x17f2e1,_0x3c9b68,!0x0);}return this['_lastFrom']=_0x17f2e1,this['_lastTo']=_0x3c9b68,this['_getState']();}['loadState'](_0x1fdfaf){this['_reset'](),this['_lastFrom']=_0x1fdfaf['fromVersion'],this['_lastTo']=_0x1fdfaf['toVersion'];for(const _0x1b76d9 in _0x1fdfaf['diffData']){const _0x39cd78=_0x1fdfaf['diffData'][_0x1b76d9]['attachChange'],_0xeda6f2=_0x13a2c6(_0x1fdfaf['diffData'][_0x1b76d9]['attributesBefore'])||{},_0x11b2fe=this['_makeModelFromViewString'](_0x1fdfaf['diffData'][_0x1b76d9]['deletions']);_0x11b2fe['rootName']=_0x1b76d9,_0x11b2fe['_isAttached']=!_0x39cd78||!_0x39cd78['isAttached'],_0x11b2fe['isAttached']=()=>_0x11b2fe['_isAttached'],this['_baseRoots']['set'](_0x1b76d9,_0x11b2fe),this['_baseRootsAttributes']['set'](_0x1b76d9,_0xeda6f2),_0x39cd78&&this['_touchedRoots']['set'](_0x1b76d9,_0x39cd78);const _0x2c51c6=this['_makeIdsRoot'](_0x11b2fe);this['_baseIdsRoots']['set'](_0x1b76d9,_0x2c51c6);for(const [_0x3b0d88,_0x121020]of _0x11b2fe['markers']){if(!_0x3b0d88['startsWith']('revision:'))continue;const _0x57fa62=_0x3b0d88['split'](':')[0x2];for(const _0x350394 of _0x121020['getWalker']({'singleCharacters':!0x0})){const _0x52fe34=this['_getVidAttributeName'](_0x350394),_0x48b089='elementEnd'==_0x350394['type']?_0x350394['previousPosition']['path']['slice'](0x0,-0x1):_0x350394['previousPosition']['path'],_0x3b0e14=_0x2c51c6['getNodeByPath'](_0x48b089)['getAttribute'](_0x52fe34);this['_touched']['set'](_0x3b0e14,{'userId':_0x57fa62});}}}this['_startingRevisionId']=this['_revisionId'];const _0x35239b=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x25d7c3=>!this['_touched']['has'](_0x25d7c3));let _0x52ab33=0x0;const _0x560148=new Map();for(const _0x819a04 in _0x1fdfaf['diffData']){const _0x32972b=_0x1fdfaf['diffData'][_0x819a04]['attachChange'],_0x4e149e=_0x13a2c6(_0x1fdfaf['diffData'][_0x819a04]['attributesAfter'])||{},_0x524e85=this['_makeModelFromViewString'](_0x1fdfaf['diffData'][_0x819a04]['insertions']);_0x524e85['rootName']=_0x819a04,_0x524e85['_isAttached']=!_0x32972b||_0x32972b['isAttached'],_0x524e85['isAttached']=()=>_0x524e85['_isAttached'],this['_diffRoots']['set'](_0x819a04,_0x524e85),this['_diffRootsAttributes']['set'](_0x819a04,_0x4e149e);const _0x2b701f=this['_makeIdsRoot'](_0x524e85,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x819a04,_0x2b701f),_0x560148['set'](_0x819a04,_0x524e85['isAttached']()?_0x4e149e:{});for(const [_0x510724,_0x814444]of _0x524e85['markers']){if(!_0x510724['startsWith']('revision:'))continue;const _0x3ff7b8=_0x510724['split'](':')[0x2];for(const _0x170aad of _0x814444['getWalker']({'singleCharacters':!0x0})){const _0x2cfeb0=this['_getVidAttributeName'](_0x170aad),_0xc236c8=this['_revisionId']++,_0x236bb7='elementEnd'==_0x170aad['type']?_0x170aad['previousPosition']['path']['slice'](0x0,-0x1):_0x170aad['previousPosition']['path'];_0x2b701f['getNodeByPath'](_0x236bb7)['_setAttribute'](_0x2cfeb0,_0xc236c8),this['_touched']['set'](_0xc236c8,{'userId':_0x3ff7b8});}}for(const _0x3bd199 of this['editor']['model']['createRangeIn'](_0x524e85)['getWalker']({'singleCharacters':!0x0})){const _0x1fbd13=this['_getVidAttributeName'](_0x3bd199),_0x59269a='elementEnd'==_0x3bd199['type']?_0x3bd199['previousPosition']['path']['slice'](0x0,-0x1):_0x3bd199['previousPosition']['path'],_0x39389e=_0x2b701f['getNodeByPath'](_0x59269a);_0x39389e['getAttribute'](_0x1fbd13)>0x0||_0x39389e['_setAttribute'](_0x1fbd13,_0x35239b[_0x52ab33++]);}for(const [_0x3d5d76,_0x1efb0f]of _0x524e85['markers'])_0x3d5d76['startsWith']('revision:')||this['_markers']['set'](_0x3d5d76,_0x1efb0f);}const _0x369778=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x369778),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x369778,0x1));const _0x131eb0=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x131eb0),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x131eb0,0x1));const _0x14aa4f=Array['from'](this['_diffRoots'])['map'](([_0x59856f,_0x51ad6d])=>[_0x59856f,T(_0x51ad6d)]);this['_saveMetaData'](this['_lastTo'],_0x14aa4f,this['_markers'],_0x560148);}['_makeModelFromViewString'](_0x2cd4bf){const _0x28812c=JSON['parse'](_0x2cd4bf),_0x3b5541=this['editor']['editing']['view']['document'],_0x2e810e=new _0x54f8da(_0x3b5541,_0x28812c['map'](_0x2f45b8=>C(_0x2f45b8,this['editor'])));return this['editor']['data']['toModel'](_0x2e810e);}['_saveMetaData'](_0x404a54,_0x445d9f,_0x130c55,_0x436ea7){const _0x2ff43c=new Map(_0x445d9f),_0x405320=new Map(_0x13a2c6(_0x436ea7)),_0x28e453=new Map();for(const [_0x5e0827,_0x5321ef]of _0x130c55)_0x28e453['set'](_0x5e0827,{'start':_0x5321ef['start']['clone'](),'end':_0x5321ef['end']['clone'](),'rootName':_0x5321ef['root']['rootName']});this['_savedMetaData']['set'](_0x404a54,{'roots':_0x2ff43c,'markers':_0x28e453,'rootsAttributes':_0x405320});}['_removeMetaData'](_0x321595){this['_savedMetaData']['delete'](_0x321595);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x2ddce3,_0x4345d3=null){let _0x27bc74=null;_0x2ddce3['is']('documentFragment')||(_0x27bc74=new ft(_0x2ddce3['name'],{'vid_start':null===_0x4345d3?this['_revisionId']++:_0x4345d3++}));const _0x308646=[];for(const _0x245f06 of _0x2ddce3['getChildren']())if(_0x245f06['is']('element')){_0x308646['push'](this['_makeIdsRoot'](_0x245f06,_0x4345d3));const _0x3985b4=_0x308646[_0x308646['length']-0x1];null!==_0x4345d3&&(_0x4345d3=_0x3985b4['is']('element','$text')?_0x3985b4['getAttribute']('vid')+0x1:_0x3985b4['getAttribute']('vid_end')+0x1);}else{for(let _0x13cd6c=0x0;_0x13cd6c<_0x245f06['offsetSize'];_0x13cd6c++)_0x308646['push'](new ft('$text',{'vid':null===_0x4345d3?this['_revisionId']++:_0x4345d3++}));}if(_0x2ddce3['is']('documentFragment')){const _0x38fa06=F(_0x2ddce3['rootName']);return _0x38fa06['_insertChild'](0x0,_0x308646),_0x38fa06;}return _0x27bc74['_setAttribute']('vid_end',null===_0x4345d3?this['_revisionId']++:_0x4345d3++),_0x27bc74['_insertChild'](0x0,_0x308646),_0x27bc74;}['_calculateMetaData'](_0x3563bf,_0xec122,_0x560d24){this['_reset']();const {roots:_0x147e62,markers:_0x34b68d,rootsAttributes:_0x184ae6}=this['_savedMetaData']['get'](_0x3563bf);this['_baseRoots']=new Map(_0x147e62),this['_baseRootsAttributes']=new Map(_0x13a2c6(_0x184ae6));for(const [_0x52cc5d,_0x4e3441]of this['_baseRoots'])if('$graveyard'!==_0x52cc5d&&(this['_diffRoots']['set'](_0x52cc5d,T(_0x4e3441)),this['_diffRootsAttributes']=new Map(_0x13a2c6(_0x184ae6)),_0x560d24)){const _0x5b3f8f=this['_revisionId'];this['_idsRoots']['set'](_0x52cc5d,this['_makeIdsRoot'](_0x4e3441)),this['_baseIdsRoots']['set'](_0x52cc5d,this['_makeIdsRoot'](_0x4e3441,_0x5b3f8f));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x560d24&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x500ff7,_0x547f5c]of _0x34b68d){const _0xa63fc3=this['_baseRoots']['get'](_0x547f5c['rootName']),_0x31789d=this['_diffRoots']['get'](_0x547f5c['rootName']),_0x26d421=new vt(this['_fixPosition'](_0x547f5c['start'],_0xa63fc3),this['_fixPosition'](_0x547f5c['end'],_0xa63fc3)),_0x55d11e=this['_fixRange'](_0x26d421,_0x31789d);_0xa63fc3['markers']['set'](_0x500ff7,_0x26d421),this['_markers']['set'](_0x500ff7,_0x55d11e);}this['_applyOperations'](_0x3563bf,_0xec122,_0x560d24);}['_applyOperations'](_0x3a6cc7,_0xfac6ce,_0xc59619){for(const _0x276c5c of this['source']['getOperations'](_0x3a6cc7,_0xfac6ce))this['_handleOperation'](_0x276c5c,_0xc59619);for(const _0x67b2d6 of this['_diffRoots']['values']())_0x67b2d6['markers']['clear']();for(const [_0x1dbf72,_0x57d786]of this['_markers']){this['_diffRoots']['get'](_0x57d786['root']['rootName'])['markers']['set'](_0x1dbf72,_0x57d786['clone']());}const _0x4c10a4=new Map(),_0x1a6abb=new Map();for(const [_0x492d9d,_0xeb62e]of this['_diffRoots'])_0x4c10a4['set'](_0x492d9d,T(_0xeb62e)),_0x1a6abb['set'](_0x492d9d,this['_diffRootsAttributes']['get'](_0x492d9d));this['_saveMetaData'](_0xfac6ce,_0x4c10a4,this['_markers'],_0x1a6abb);}['_getPreviousFrom'](_0x5dd384){const _0x3bfdc4=Array['from'](this['_savedMetaData']['keys']());_0x3bfdc4['sort']((_0x341a49,_0x4a6631)=>_0x341a49-_0x4a6631),_0x3bfdc4['reverse']();for(const _0x52a692 of _0x3bfdc4)if(_0x52a692<_0x5dd384)return _0x52a692;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x15a432,_0x567d1a){const _0x4e1567=Array['from'](_0x567d1a['markers'])['map'](([_0x16fe61,_0x3d5762])=>[_0x16fe61,this['_fixRange'](_0x3d5762,_0x15a432)]);_0x15a432['markers']=new Map(_0x4e1567);}['_transformMarkers'](_0x3140b3){for(const _0x214b91 of this['_markers']['values']()){const _0x4e9e72=_0x214b91['getTransformedByOperation'](_0x3140b3),_0x1a4c27=vt['_createFromRanges'](_0x4e9e72);_0x214b91['start']=_0x1a4c27['start'],_0x214b91['end']=_0x1a4c27['end'];}}['_handleOperation'](_0xe0ca41,_0x555a3e){if('addRoot'!=_0xe0ca41['type']&&'detachRoot'!=_0xe0ca41['type']){if('insert'==_0xe0ca41['type']){const _0x3b4f1a=_0xe0ca41['position']['root']['rootName'];this['_diffRoots']['has'](_0x3b4f1a)||(this['_diffRoots']['set'](_0x3b4f1a,F(_0x3b4f1a,!0x0)),this['_diffRootsAttributes']['set'](_0x3b4f1a,{}),_0x555a3e&&this['_idsRoots']['set'](_0x3b4f1a,F(_0x3b4f1a,!0x0)));}else{if('addRootAttribute'==_0xe0ca41['type']||'removeRootAttribute'==_0xe0ca41['type']||'changeRootAttribute'==_0xe0ca41['type'])return void this['_handleRootAttributeOperation'](_0xe0ca41);'marker'==_0xe0ca41['type']&&this['_handleMarkerOperation'](_0xe0ca41);}if('marker'!==_0xe0ca41['type']){const _0x9028f8=this['_cloneOperation'](_0xe0ca41,this['_diffRoots']);_0x9028f8['_execute'](),this['_transformMarkers'](_0x9028f8);}if(_0x555a3e)switch(_0xe0ca41['type']){case'insert':this['_handleInsertOperation'](_0xe0ca41);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0xe0ca41);break;case'merge':this['_handleMergeOperation'](_0xe0ca41);break;case'split':this['_handleSplitOperation'](_0xe0ca41);}}else this['_handleRootOperation'](_0xe0ca41,_0x555a3e);}['_cloneOperation'](_0xe0185f,_0x29729e){const _0x3dba61=_0xe0185f['clone']();return _0x3dba61['_authorId']=_0xe0185f['_authorId'],this['_fixOperation'](_0x3dba61,_0x29729e),_0x3dba61;}['_getBaseVids'](_0x43e098){return _0x43e098['map'](_0x12f51=>{const _0x2ec75a=this['_getVidAttributeName'](_0x12f51);return Number(_0x12f51['item']['getAttribute'](_0x2ec75a));});}['_generateTape'](_0x4686bd,_0x4d76aa){if(_0x4686bd['is']('element','$text'))_0x4d76aa['push']({'item':_0x4686bd,'type':'text'});else{_0x4686bd['is']('element')&&_0x4d76aa['push']({'item':_0x4686bd,'type':'elementStart'});for(const _0x38e327 of _0x4686bd['getChildren']())this['_generateTape'](_0x38e327,_0x4d76aa);_0x4686bd['is']('element')&&_0x4d76aa['push']({'item':_0x4686bd,'type':'elementEnd'});}return _0x4d76aa;}['_getState'](){const _0x5d2ee8=new Map(this['_touched']),_0xbb511f=new Map(_0x5d2ee8),_0x276780=new Map(),_0x1fc893={'insertions':{},'deletions':{}},_0x10543c={'insertions':{},'deletions':{}},_0x1c384b=new Map(),_0x109052=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x109052['delete']('$graveyard');for(const _0x8ec833 of _0x109052){const _0x234963=this['_diffRoots']['get'](_0x8ec833)||F(_0x8ec833,!0x1),_0x1a3ebc=this['_baseRoots']['get'](_0x8ec833)||F(_0x8ec833,!0x1);_0x234963['isAttached']()||_0x1a3ebc['isAttached']()?(_0x1fc893['insertions'][_0x8ec833]=T(_0x234963),_0x1fc893['deletions'][_0x8ec833]=T(_0x1a3ebc),this['_copyMarkers'](_0x1fc893['deletions'][_0x8ec833],_0x1a3ebc),this['_copyMarkers'](_0x1fc893['insertions'][_0x8ec833],_0x234963),_0x10543c['insertions'][_0x8ec833]=this['_generateTape'](this['_idsRoots']['get'](_0x8ec833),[]),_0x10543c['deletions'][_0x8ec833]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x8ec833)||F(_0x8ec833,!0x1),[])):_0x109052['delete'](_0x8ec833);}for(const _0x214a20 of _0x109052){const _0x55153b=_0x10543c['insertions'][_0x214a20];for(const _0x1125ea of _0x55153b){const _0x4ade75=this['_getVidAttributeName'](_0x1125ea),_0x104efc=_0x1125ea['item']['getAttribute'](_0x4ade75);_0xbb511f['delete'](_0x104efc),_0x104efc>=this['_startingRevisionId']&&_0x276780['set'](_0x104efc,_0x5d2ee8['get'](_0x104efc));}}for(const _0x193a18 of _0x109052){const _0x4d0d24=_0x10543c['insertions'][_0x193a18],_0x49c7d6=this['_getBaseVids'](_0x10543c['deletions'][_0x193a18]);let _0x21031e=0x0;for(const _0x3886cb of _0x4d0d24){const _0x9d2086=this['_getVidAttributeName'](_0x3886cb),_0x42959b=_0x3886cb['item']['getAttribute'](_0x9d2086);if(!_0x276780['has'](_0x42959b)&&!_0x1c384b['has'](_0x42959b)){if(_0xbb511f['has'](_0x42959b))_0x21031e++;else{if(_0x42959b!=_0x49c7d6[_0x21031e]){const _0x10f82d=_0x5d2ee8['get'](_0x42959b)||_0x5d2ee8['get'](_0x49c7d6[_0x21031e]);for(;_0x42959b!=_0x49c7d6[_0x21031e];)_0xbb511f['has'](_0x49c7d6[_0x21031e])||(_0x1c384b['set'](_0x49c7d6[_0x21031e],_0x10f82d),_0x5d2ee8['set'](_0x49c7d6[_0x21031e],_0x10f82d)),_0x21031e++;}_0x21031e++;}}}}for(const _0x1cf4ca of _0x109052){const _0x3ead47=_0x10543c['insertions'][_0x1cf4ca];for(const _0x51cf87 of _0x3ead47){const _0x36f9c7=this['_getVidAttributeName'](_0x51cf87),_0x1971f0=_0x51cf87['item']['getAttribute'](_0x36f9c7);if(_0x1c384b['has'](_0x1971f0)){const _0x24beda=_0x1c384b['get'](_0x1971f0);_0xbb511f['has'](_0x1971f0)||_0xbb511f['set'](_0x1971f0,{..._0x24beda}),_0x276780['set'](_0x1971f0,{..._0x24beda});}}}for(const _0x19420b of _0xbb511f['keys']())_0x19420b>=this['_startingRevisionId']&&_0xbb511f['delete'](_0x19420b);const _0x55be11=new Map();for(const _0x51ba3c of _0x109052){let _0x151422=_0x10543c['insertions'][_0x51ba3c];for(const _0x17e249 of _0x151422)if(_0x17e249['item']['is']('element','tableCell')){const _0x135d10=this['_getVidAttributeName'](_0x17e249),_0x185353=_0x17e249['item']['getAttribute'](_0x135d10);if(_0x276780['has'](_0x185353)){const _0x3f1856=_0x17e249['item']['parent']['parent']['getAttribute']('vid_start'),_0x14209a=_0x55be11['get'](_0x3f1856)||new Set();_0x14209a['add'](_0x276780['get'](_0x185353)['userId']),_0x55be11['set'](_0x3f1856,_0x14209a);}}_0x151422=_0x10543c['deletions'][_0x51ba3c];for(const _0x3f5701 of _0x151422)if(_0x3f5701['item']['is']('element','tableCell')){const _0x5b71de=this['_getVidAttributeName'](_0x3f5701),_0x7fa025=_0x3f5701['item']['getAttribute'](_0x5b71de);if(_0xbb511f['has'](_0x7fa025)){const _0x578275=_0x3f5701['item']['parent']['parent']['getAttribute']('vid_start'),_0x49406e=_0x55be11['get'](_0x578275)||new Set();_0x49406e['add'](_0xbb511f['get'](_0x7fa025)['userId']),_0x55be11['set'](_0x578275,_0x49406e);}}for(const _0x50ffa2 of _0x55be11['keys']())(_0x276780['has'](_0x50ffa2)||_0xbb511f['has'](_0x50ffa2))&&_0x55be11['delete'](_0x50ffa2);}for(const _0x3af458 of _0x109052){const _0x1c636c=_0x10543c['insertions'][_0x3af458];let _0x3e2feb=null,_0x55d348=null;for(const _0x415735 of _0x1c636c){const _0x2d25b0=this['_getVidAttributeName'](_0x415735),_0x3d8c64=_0x415735['item']['getAttribute'](_0x2d25b0),_0x404a79=_0x55be11['get'](_0x3d8c64);_0x404a79&&'elementStart'==_0x415735['type']&&(_0x3e2feb=Array['from'](_0x404a79)[0x0],_0x55d348=_0x415735['item']['getAttribute']('vid_end')),_0x3e2feb&&(_0xbb511f['set'](_0x3d8c64,{'userId':_0x3e2feb}),_0x276780['set'](_0x3d8c64,{'userId':_0x3e2feb})),_0x3d8c64==_0x55d348&&(_0x3e2feb=null,_0x55d348=null);}}const _0x307c23={},_0x3bf533=new Set();for(const _0x24b9bb of _0x109052){const _0x1f656b=_0x1fc893['deletions'][_0x24b9bb],_0x3d6c64=_0x1fc893['insertions'][_0x24b9bb];for(const {userId:_0xe0cec8}of this['_touchedMarkers']['values']())null!==_0xe0cec8&&_0x3bf533['add'](_0xe0cec8);for(const {userId:_0x2735b4}of this['_touchedRoots']['values']())null!==_0x2735b4&&_0x3bf533['add'](_0x2735b4);this['_markChanges'](_0x3d6c64,_0x10543c['insertions'][_0x24b9bb],_0x276780,'insertion',_0x3bf533),this['_markChanges'](_0x1f656b,_0x10543c['deletions'][_0x24b9bb],_0xbb511f,'deletion',_0x3bf533),_0x307c23[_0x24b9bb]={'insertions':this['_prepareViewToSave'](_0x3d6c64),'deletions':this['_prepareViewToSave'](_0x1f656b),'attachChange':this['_touchedRoots']['get'](_0x24b9bb)||null,'attributesBefore':_0x13a2c6(this['_baseRootsAttributes']['get'](_0x24b9bb))||{},'attributesAfter':_0x13a2c6(this['_diffRootsAttributes']['get'](_0x24b9bb))};}return{'diffData':_0x307c23,'authorsIds':Array['from'](_0x3bf533)};}['_processRootBeforeSave'](_0x1ae865){for(const [,_0x297972]of _0x1ae865['markers']){const _0x3a9289=_0x297972['start']['getAncestors']()['filter'](_0xe24333=>'tableCell'==_0xe24333['name']);for(const _0x4cafcf of _0x3a9289)0x1==_0x4cafcf['childCount']&&_0x4cafcf['getChild'](0x0)['is']('element','paragraph')&&_0x4cafcf['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x5d560e){this['_processRootBeforeSave'](_0x5d560e);const _0x4a1cd0=this['editor']['data']['toView'](_0x5d560e,{}),_0x2f5ab1=Array['from'](_0x4a1cd0['getChildren']())['map'](_0x102a88=>this['_getViewJson'](_0x102a88));return JSON['stringify'](_0x2f5ab1);}['_getViewJson'](_0x5b4ee6){if(_0x5b4ee6['is']('$text'))return _0x5b4ee6['data'];{const _0x398b83=_0x5b4ee6;return{'type':Object['keys'](P)['find'](_0x4fe5b5=>_0x5b4ee6 instanceof P[_0x4fe5b5]),'name':_0x398b83['name'],'attributes':Array['from'](_0x398b83['getAttributes']()),'children':Array['from'](_0x398b83['getChildren']())['map'](_0x1c2f33=>this['_getViewJson'](_0x1c2f33))};}}['_markChanges'](_0x418eaa,_0x241d53,_0x53c88b,_0xceeecb,_0x41fcbd){let _0xe73e79=null,_0x3fc757=null,_0x1c13c6=0x0;const _0x153d0f=this['editor']['model'];for(let _0x325a02=0x0;_0x325a02<_0x241d53['length'];_0x325a02++){const _0x43ac5e=this['_getVidAttributeName'](_0x241d53[_0x325a02]),_0x401442=_0x241d53[_0x325a02]['item']['getAttribute'](_0x43ac5e),_0x3e0c3e=_0x53c88b['get'](_0x401442),_0x2db56a=_0x325a02==_0x241d53['length']-0x1;(!_0xe73e79&&_0x3e0c3e&&(_0xe73e79=_0x3e0c3e,_0x3fc757=_0x241d53[_0x325a02]),_0xe73e79&&(!_0x3e0c3e||_0x3e0c3e['userId']!=_0xe73e79['userId']))&&(_0x1eb0c1(_0x3e0c3e,B(_0x3fc757,_0x418eaa,_0x153d0f),B(_0x241d53[_0x325a02],_0x418eaa,_0x153d0f)),_0xe73e79=_0x3e0c3e||null,_0x3fc757=_0x3e0c3e?_0x241d53[_0x325a02]:null),_0xe73e79&&_0x2db56a&&_0x1eb0c1(_0x3e0c3e,B(_0x3fc757,_0x418eaa,_0x153d0f),J(_0x241d53[_0x325a02],_0x418eaa,_0x153d0f));}function _0x1eb0c1(_0x3297d8,_0x5e9f04,_0x461728){const _0x12f2b0=_0xe73e79['userId'],_0x225436='revision:'+_0xceeecb+':'+_0x12f2b0+':'+_0x1c13c6++,_0x4264e8=_0x153d0f['createRange'](_0x5e9f04,_0x461728);_0x418eaa['markers']['set'](_0x225436,_0x4264e8),null!==_0x12f2b0&&_0x41fcbd['add'](_0x12f2b0);}}['_getVidAttributeName'](_0x55d9ee){switch(_0x55d9ee['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x11ada3,_0x2b0bad){_0x11ada3['baseVersion']=null;for(const _0x41a27d in _0x11ada3){const _0x18991c=_0x11ada3[_0x41a27d];if(_0x18991c instanceof gt){const _0x25703e=_0x2b0bad['get'](_0x18991c['root']['rootName']);_0x11ada3[_0x41a27d]=this['_fixPosition'](_0x18991c,_0x25703e);}if(_0x18991c instanceof vt){const _0x5982ae=_0x2b0bad['get'](_0x18991c['root']['rootName']);_0x11ada3[_0x41a27d]=this['_fixRange'](_0x18991c,_0x5982ae);}'root'===_0x41a27d&&(_0x11ada3['root']=_0x2b0bad['get'](_0x11ada3['root']['rootName']));}}['_fixRange'](_0x321be3,_0x497561){return this['editor']['model']['createRange'](this['_fixPosition'](_0x321be3['start'],_0x497561),this['_fixPosition'](_0x321be3['end'],_0x497561));}['_fixPosition'](_0x117f3e,_0x18a717){return this['editor']['model']['createPositionFromPath'](_0x18a717,_0x117f3e['path'],_0x117f3e['stickiness']);}['_handleInsertOperation'](_0x4e2077){const _0x5ab51b=this['_idsRoots']['get'](_0x4e2077['position']['root']['rootName']),_0x36d851=this['_fixPosition'](_0x4e2077['position'],_0x5ab51b),_0x536b89=null===_0x4e2077['_authorId']?null:_0x4e2077['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x8d6ec5=_0x36d851['parent'],_0x3a6830=this['_revisionId'],_0x13d40d=[];for(const _0xd6d9eb of _0x4e2077['nodes'])if(_0xd6d9eb['is']('element'))_0x13d40d['push'](this['_makeIdsRoot'](_0xd6d9eb));else{for(let _0x1e07ae=0x0;_0x1e07ae<_0xd6d9eb['offsetSize'];_0x1e07ae++)_0x13d40d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x4c3327=this['_revisionId'];for(let _0x2a9dc0=_0x3a6830;_0x2a9dc0<_0x4c3327;_0x2a9dc0++)this['_touched']['set'](_0x2a9dc0,{'userId':_0x536b89});_0x8d6ec5['_insertChild'](_0x36d851['offset'],_0x13d40d);}['_handleMoveOperation'](_0x55c2dc){(_0x55c2dc=this['_cloneOperation'](_0x55c2dc,this['_idsRoots']))['_execute']();const _0x4da4f2=null===_0x55c2dc['_authorId']?null:_0x55c2dc['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x75b4c2=_0x55c2dc['getMovedRangeStart'](),_0x37a470=_0x75b4c2['parent'],_0x4be3a1=_0x75b4c2['offset'];!function _0x1a8af9(_0x253cbd,_0x1c2350,_0x2fa238,_0x350673){for(let _0x482206=_0x2fa238;_0x482206<_0x350673;_0x482206++){const _0x44426b=_0x1c2350['getChild'](_0x482206);_0x44426b['is']('element','$text')?_0x253cbd['set'](_0x44426b['getAttribute']('vid'),{'userId':_0x4da4f2}):(_0x253cbd['set'](_0x44426b['getAttribute']('vid_start'),{'userId':_0x4da4f2}),_0x1a8af9(_0x253cbd,_0x44426b,0x0,_0x44426b['childCount']),_0x253cbd['set'](_0x44426b['getAttribute']('vid_end'),{'userId':_0x4da4f2}));}}(this['_touched'],_0x37a470,_0x4be3a1,_0x4be3a1+_0x55c2dc['howMany']);}['_handleMergeOperation'](_0x2c938c){const _0x5d0551=null===(_0x2c938c=this['_cloneOperation'](_0x2c938c,this['_idsRoots']))['_authorId']?null:_0x2c938c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x37c02b=_0x2c938c['targetPosition']['parent'],_0x462cdf=_0x2c938c['sourcePosition']['parent'],_0x1d6e7f=_0x37c02b['getAttribute']('vid_end'),_0x127e77=_0x462cdf['getAttribute']('vid_start');_0x37c02b['_setAttribute']('vid_end',_0x462cdf['getAttribute']('vid_end')),_0x462cdf['_setAttribute']('vid_end',_0x1d6e7f),this['_touched']['set'](_0x127e77,{'userId':_0x5d0551}),this['_touched']['set'](_0x1d6e7f,{'userId':_0x5d0551}),_0x2c938c['_execute']();}['_handleSplitOperation'](_0xa18dba){const _0x4160db=null===(_0xa18dba=this['_cloneOperation'](_0xa18dba,this['_idsRoots']))['_authorId']?null:_0xa18dba['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2b4f4c=_0xa18dba['graveyardPosition'],_0x560141=_0xa18dba['splitPosition']['parent'];_0xa18dba['_execute']();const _0x1ce554=_0x560141['getAttribute']('vid_end'),_0x3f5bfa=_0xa18dba['insertionPosition']['nodeAfter'];if(_0x2b4f4c){const _0x493df4=_0x3f5bfa['getAttribute']('vid_end'),_0x36efc1=_0x560141['getAttribute']('vid_end');_0x560141['_setAttribute']('vid_end',_0x493df4),_0x3f5bfa['_setAttribute']('vid_end',_0x36efc1),this['_touched']['set'](_0x560141['getAttribute']('vid_end'),{'userId':_0x4160db}),this['_touched']['set'](_0x3f5bfa['getAttribute']('vid_start'),{'userId':_0x4160db});}else{const _0x178237=this['_revisionId']++,_0x4cadf8=this['_revisionId']++;_0x560141['_setAttribute']('vid_end',_0x178237),_0x3f5bfa['_setAttribute']('vid_start',_0x4cadf8),_0x3f5bfa['_setAttribute']('vid_end',_0x1ce554),this['_touched']['set'](_0x178237,{'userId':_0x4160db}),this['_touched']['set'](_0x4cadf8,{'userId':_0x4160db});}}['_handleMarkerOperation'](_0x358bf1){if(!_0x358bf1['affectsData'])return;const _0x46bc29=(_0x358bf1=this['_cloneOperation'](_0x358bf1,this['_diffRoots']))['oldRange']?_0x358bf1['oldRange']['root']:null,_0x37a0a7=_0x358bf1['newRange']?_0x358bf1['newRange']['root']:null;_0x46bc29&&this['_markers']['delete'](_0x358bf1['name']),_0x37a0a7&&this['_markers']['set'](_0x358bf1['name'],_0x358bf1['newRange']['clone']());const _0x5ed35b=null===_0x358bf1['_authorId']?null:_0x358bf1['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4d9c7d=_0x358bf1['name'];if(!this['_touchedMarkers']['has'](_0x4d9c7d))return void this['_touchedMarkers']['set'](_0x4d9c7d,{'range':_0x358bf1['oldRange'],'userId':_0x5ed35b});const _0x50d868=this['_touchedMarkers']['get'](_0x4d9c7d),_0x1129c6=_0x50d868['range'],_0x235f84=_0x358bf1['newRange'];null==_0x1129c6&&null==_0x235f84||_0x1129c6&&_0x235f84&&_0x1129c6['isEqual'](_0x235f84)?this['_touchedMarkers']['delete'](_0x358bf1['name']):_0x50d868['userId']=_0x5ed35b;}['_handleRootOperation'](_0x18cfd9,_0x356ff8){this['_diffRoots']['has'](_0x18cfd9['rootName'])?this['_diffRoots']['get'](_0x18cfd9['rootName'])['_isAttached']=_0x18cfd9['isAdd']:(this['_diffRoots']['set'](_0x18cfd9['rootName'],F(_0x18cfd9['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x18cfd9['rootName'],{}),_0x356ff8&&this['_idsRoots']['set'](_0x18cfd9['rootName'],F(_0x18cfd9['rootName'],!0x0)));const _0x265652=null===_0x18cfd9['_authorId']?null:_0x18cfd9['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xcaf39a=this['_touchedRoots']['get'](_0x18cfd9['rootName']);_0xcaf39a&&_0xcaf39a['userId']===_0x265652?this['_touchedRoots']['delete'](_0x18cfd9['rootName']):this['_touchedRoots']['set'](_0x18cfd9['rootName'],{'userId':_0x265652,'isAttached':_0x18cfd9['isAdd']});}['_handleRootAttributeOperation'](_0x41aa29){const _0x1bd997=this['_diffRootsAttributes']['get'](_0x41aa29['root']['rootName']);null===_0x41aa29['newValue']?delete _0x1bd997[_0x41aa29['key']]:_0x1bd997[_0x41aa29['key']]=_0x41aa29['newValue'];}}function T(_0x915e11){const _0x1ba722=F(_0x915e11['rootName'],_0x915e11['isAttached']());for(const _0x2bcbb8 of _0x915e11['getChildren']()){const _0x5cc735=_0x2bcbb8['_clone'](!0x0);_0x1ba722['_appendChild'](_0x5cc735);}return _0x1ba722;}function F(_0xdc442b,_0x319dc2=!0x0){const _0x3d2d95=new mt();return _0x3d2d95['rootName']=_0xdc442b,_0x3d2d95['_isAttached']=_0x319dc2,_0x3d2d95['isAttached']=()=>_0x3d2d95['_isAttached'],_0x3d2d95;}function B(_0x5060ea,_0x1fb297,_0x247413){const _0x205df3='elementEnd'==_0x5060ea['type']?_0x247413['createPositionAt'](_0x5060ea['item'],'end'):_0x247413['createPositionBefore'](_0x5060ea['item']);return _0x247413['createPositionFromPath'](_0x1fb297,_0x205df3['path'],_0x205df3['stickiness']);}function J(_0x127882,_0x3176dd,_0x5eec1a){const _0x14f963='elementStart'==_0x127882['type']?_0x5eec1a['createPositionAt'](_0x127882['item'],0x0):_0x5eec1a['createPositionAfter'](_0x127882['item']);return _0x5eec1a['createPositionFromPath'](_0x3176dd,_0x14f963['path'],_0x14f963['stickiness']);}class ns extends _0x20a04{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4991bd,_0x21c1e8){super(_0x4991bd),this['focusTracker']=new _0x1c0174(),this['keystrokes']=new _0x275f84(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x21c1e8),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'](),_0x2518cf({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x383b0e=_0x1a3816=>_0x1a3816['stopPropagation']();this['keystrokes']['set']('arrowright',_0x383b0e),this['keystrokes']['set']('arrowleft',_0x383b0e),this['keystrokes']['set']('arrowup',_0x383b0e),this['keystrokes']['set']('arrowdown',_0x383b0e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x53cb44){this['revisionNameInputView']['fieldView']['element']['value']=_0x53cb44['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x1b63d7){const _0x5b2c81=new nt(this['locale'],_0x517d42),_0x2ad49c=_0x5b2c81['fieldView'];_0x2ad49c['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x1f85fe=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x1b63d7&&(_0x1f85fe+='\x20('+m(this['locale'],'optional')+')'),(_0x5b2c81['label']=_0x1f85fe,_0x2ad49c['on']('input',()=>{this['revisionNameInputValue']=_0x2ad49c['element']['value']['trim']();}),_0x5b2c81);}}class u extends _0x2cc9a5{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x110a89=this['editor'],_0x5eada9=_0x110a89['plugins']['get']('RevisionTracker');_0x110a89['ui']['componentFactory']['add']('revisionHistory',_0x130736=>{const _0x37dcea=_0x47bc90(_0x130736),_0x5e085b=_0x37dcea['panelView']['children'],_0x9e522=new te(_0x130736),_0x1ea30f=new _0x218f58(_0x130736),_0x1079cc=new _0x42549a(_0x130736),_0x500278=new _0x218f58(_0x130736),_0x511a9f=new _0x42549a(_0x130736);return _0x37dcea['bind']('isEnabled')['to'](_0x5eada9,'isReady',_0x5eada9,'isEnabled',_0x110a89,'isReadOnly',(_0x2029a9,_0x12549b,_0x13685e)=>_0x2029a9&&_0x12549b&&!_0x13685e),_0x37dcea['buttonView']['set']({'icon':_0x587ab4['history'],'label':m(_0x130736,'Revision\x20history'),'tooltip':!0x0}),_0x1079cc['set']({'label':m(_0x130736,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x1079cc['bind']('isEnabled')['to'](_0x5eada9,'isReady',_0x5eada9,'isEnabled',_0x110a89,'isReadOnly',(_0x19f41e,_0x1dd978,_0x3bb5b7)=>_0x19f41e&&_0x1dd978&&!_0x3bb5b7),_0x1079cc['on']('execute',()=>this['_showDialog']()),_0x511a9f['set']({'label':m(_0x130736,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x511a9f['bind']('isEnabled')['to'](_0x5eada9,'isReady',_0x110a89,'isReadOnly',(_0x51e115,_0xe8ff38)=>_0x51e115&&!_0xe8ff38),_0x511a9f['on']('execute',()=>{_0x110a89['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x37dcea['isOpen']=!0x1,_0x110a89['editing']['view']['focus']();}),_0x1ea30f['children']['add'](_0x1079cc),_0x500278['children']['add'](_0x511a9f),_0x9e522['role']='menu',_0x9e522['items']['addMany']([_0x1ea30f,_0x500278]),_0x5e085b['add'](_0x9e522),_0x37dcea;}),_0x110a89['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x45a7ab=this['editor'],_0x162819=_0x45a7ab['locale'],_0x3880bf=new _0x4d4274(_0x162819),_0x573681=new _0x13d2b0(_0x162819);_0x3880bf['buttonView']['set']({'icon':_0x587ab4['history'],'label':m(_0x162819,'Revision\x20history')});const _0xe4eb08=new _0x1a7fd2(_0x162819,_0x3880bf),_0x56e133=new _0x52fbac(_0x162819);_0x56e133['set']({'label':m(_0x162819,'Save\x20current\x20revision')}),_0x56e133['delegate']('execute')['to'](_0x3880bf),_0x56e133['on']('execute',()=>{this['_showDialog']();}),_0xe4eb08['children']['add'](_0x56e133),_0x573681['items']['add'](_0xe4eb08);const _0x44a58b=new _0x1a7fd2(_0x162819,_0x3880bf),_0x1390ed=new _0x52fbac(_0x162819);return _0x1390ed['set']({'label':m(_0x162819,'Open\x20revision\x20history')}),_0x1390ed['delegate']('execute')['to'](_0x3880bf),_0x1390ed['on']('execute',()=>{_0x45a7ab['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x44a58b['children']['add'](_0x1390ed),_0x573681['items']['add'](_0x44a58b),_0x3880bf['panelView']['children']['add'](_0x573681),_0x3880bf;}['_showDialog'](){const _0x355ac2=this['editor'],_0x24eb62=_0x355ac2['locale'],_0x519e96=_0x355ac2['plugins']['get']('Dialog'),_0x587128=_0x355ac2['plugins']['get']('RevisionTracker');function _0x11a192(_0x5650ac){_0x355ac2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5650ac['revisionName']?_0x5650ac['revisionNameInputView']['errorText']=m(_0x24eb62,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x355ac2['plugins']['get'](l)['saveRevision']({'name':_0x5650ac['revisionName']}),_0x519e96['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x11a192(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x519e96['show']({'id':'revisionSave','title':m(_0x24eb62,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x355ac2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x519e96['hide']()},{'label':m(_0x355ac2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x503b0f){_0x503b0f['bind']('isEnabled')['to'](_0x587128,'isReady',_0x587128,'isEnabled',_0x355ac2,'isReadOnly',(_0x27b31b,_0x5a2653,_0x55d700)=>_0x27b31b&&_0x5a2653&&!_0x55d700);},'onExecute':()=>_0x11a192(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x433412=this['editor'],_0x517740=_0x433412['locale'];this['_saveRevisionFormView']=new ns(_0x517740,_0x433412['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x20a04{['changeId'];['_model'];constructor(_0x1d74eb,_0x3beeb4){super(_0x1d74eb),this['_model']=_0x3beeb4,this['changeId']=_0x3beeb4['id'];const _0x461f4b=this['bindTemplate'],_0x2eb62e=m(_0x1d74eb,_0x3beeb4['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3beeb4['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3beeb4['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x461f4b['to']('type',_0x134f35=>'ck-revision-change__'+_0x134f35)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x2eb62e}]},{'text':'\x20'+_0x3beeb4['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x188fca(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1c502e){super(),this['id']=_0x1c502e['id']||_0x4a2468(),this['author']=_0x1c502e['author'],this['type']=_0x1c502e['type'],this['data']=_0x1c502e['data']||{},this['rootName']=_0x1c502e['rootName'],this['set']('createdAt',_0x1c502e['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x522a84,_0x1167ab){this['newRevisionId']=_0x522a84,this['oldRevisionId']=_0x1167ab,this['changes']=new _0x25af05();}['_setChanges'](_0x4f02da){for(const _0x30d9c2 of _0x4f02da)this['changes']['add'](_0x30d9c2);}}const Y={'c':_0x5c130f,'a':_0x38538e,'e':_0x2cb729,'r':_0x3dd7af,'u':_0x1961ea};class d extends _0x2cc9a5{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x3ba469,_0x8dd1f8,j];}constructor(_0x49e3ea){super(_0x49e3ea),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x5cf61f,_0xd7200d,_0x81d646)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x5af983=>{for(const _0x1b2506 of this['editor']['editing']['view']['document']['roots'])_0x81d646?_0x5af983['removeClass']('ck-editor__editable__overlay',_0x1b2506):_0x5af983['addClass']('ck-editor__editable__overlay',_0x1b2506);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x54648a=>null!==_0x54648a),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x178de9,_0x29678a,_0x23d751)=>_0x178de9&&_0x23d751?_0x29678a['changes']['getIndex'](_0x23d751):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x15a917,_0x5ea97e)=>_0x15a917?_0x5ea97e['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x8dd1f8);}['init'](){const _0x19d418=this['editor'],_0x207c4d=new yt(_0x19d418,{'direction':'backward'}),_0x159111=new yt(_0x19d418,{'direction':'forward'});(_0x19d418['commands']['add']('showPreviousChange',_0x207c4d),_0x19d418['commands']['add']('showNextChange',_0x159111),_0x19d418['commands']['add']('restoreRevision',new _t(_0x19d418)),this['on']('change:numberOfChanges',()=>{_0x207c4d['refresh'](),_0x159111['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x19d418['enableReadOnlyMode']('revision-viewer'),_0x19d418['plugins']['has']('WidgetToolbarRepository'))&&_0x19d418['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x525aa3){await this['loadRevisionData'](_0x525aa3);const _0x5d8936={};for(const _0x529a4a in _0x525aa3['diffData']){if(_0x525aa3['diffData'][_0x529a4a]['attachChange']&&!_0x525aa3['diffData'][_0x529a4a]['attachChange']['isAttached'])continue;const _0x53f333=this['_removeRevisionMarkers'](JSON['parse'](_0x525aa3['diffData'][_0x529a4a]['insertions'])),_0x1d6170=this['editor']['editing']['view']['document'],_0x48a5b4=new _0x54f8da(_0x1d6170,_0x53f333['map'](_0x33b798=>this['_getViewObj'](_0x33b798)));this['editor']['data']['processor']['useFillerType']('marked'),_0x5d8936[_0x529a4a]=this['editor']['data']['processor']['toData'](_0x48a5b4),this['editor']['data']['processor']['useFillerType']('default');}return _0x5d8936;}async['getRevisionRootsAttributes'](_0x501723){await this['loadRevisionData'](_0x501723);const _0x3c0f24={};for(const _0x3644b4 in _0x501723['diffData'])_0x501723['diffData'][_0x3644b4]['attachChange']&&!_0x501723['diffData'][_0x3644b4]['attachChange']['isAttached']||(_0x3c0f24[_0x3644b4]=_0x501723['diffData'][_0x3644b4]['attributesAfter']||{});return _0x3c0f24;}['_removeRevisionMarkers'](_0x34833e){return(_0x34833e=_0x34833e['filter'](_0x43e860=>!_0x43e860['name']||'revision-start'!==_0x43e860['name']&&'revision-end'!==_0x43e860['name']))['forEach'](_0x3e9524=>{'string'!=typeof _0x3e9524&&(_0x3e9524['children']=this['_removeRevisionMarkers'](_0x3e9524['children']),_0x3e9524['attributes']=_0x3e9524['attributes']['filter'](_0x5d2239=>!_0x5d2239[0x0]['startsWith']('data-revision-')));}),_0x34833e;}async['compare'](_0x6644c,_0x3be0f6,_0x5e7522=!0x1){if(!this['isEnabled'])return;const _0x1eff00=this['diff'],_0x4b7f71=this['repository'],_0x4b3664='string'==typeof _0x6644c?_0x4b7f71['getRevision'](_0x6644c):_0x6644c,_0x12ac2b='string'==typeof _0x3be0f6?_0x4b7f71['getRevision'](_0x3be0f6):_0x3be0f6,_0x298550=_0x4b3664['id'],_0x219620=_0x12ac2b?_0x12ac2b['id']:null;if(!_0x5e7522&&this['diff']&&this['diff']['newRevisionId']===_0x298550&&this['diff']['oldRevisionId']===_0x219620)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x298550,_0x219620);const _0x1a1742=this['_getRevisionsRange'](_0x4b3664,_0x12ac2b,!0x0)['map'](_0x1ab88a=>this['loadRevisionData'](_0x1ab88a));return _0x1a1742['push'](new Promise(_0x235672=>{setTimeout(_0x235672,0x14);})),Promise['all'](_0x1a1742)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3fda01=this['_getDiff'](_0x298550,_0x219620);for(const _0x455add of _0x3fda01['changes'])this['_changeIdToChange']['set'](_0x455add['id'],_0x455add);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2771cb=>{for(const _0x171d6a of this['editor']['model']['document']['getRootNames']())_0x2771cb['detachRoot'](_0x171d6a);for(const _0x15b47d of Object['keys'](_0x3fda01['model'])){const _0x13ff40=_0x2771cb['addRoot'](_0x15b47d);for(const _0x484a40 of Object['keys'](_0x3fda01['attributes'][_0x15b47d]))_0x2771cb['setAttribute'](_0x484a40,_0x3fda01['attributes'][_0x15b47d][_0x484a40],_0x13ff40);_0x2771cb['insert'](_0x3fda01['model'][_0x15b47d],_0x13ff40,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3fda01['changes'])),this['isReady']=!0x0;})['catch'](_0x2f0b3d=>{console['error'](_0x2f0b3d),this['_cleanUp'](),_0x1eff00&&(this['diff']=_0x1eff00),this['isReady']=!0x0;});}['addRevisionData'](_0x274e33,_0x599bbe){const _0x2afe9f=this['repository']['createRevision'](_0x274e33);return _0x2afe9f['on']('_update',(_0x27c120,_0x303ed1,_0x5456e0)=>_0x599bbe(_0x303ed1,_0x5456e0,_0x2afe9f)),this['repository']['addRevision'](_0x2afe9f),_0x2afe9f;}['loadRevisionData'](_0x41f8f1){if(!_0x41f8f1||_0x41f8f1['diffData'])return Promise['resolve']();{const _0x34507e=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x34507e,'revisionId':_0x41f8f1['id']})['then'](_0x5642c8=>{_0x41f8f1['_update']({'diffData':_0x5642c8['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1ec809=>{for(const _0x48e1ae of this['editor']['model']['document']['getRootNames']())_0x1ec809['detachRoot'](_0x48e1ae);});}['_sortAndFilterDiffChanges'](_0x563ff1){const _0x19186d=[],_0x354d1=new Map();for(const _0x3c72f8 of this['editor']['model']['document']['getRootNames']()){const _0x1bd59a=this['editor']['editing']['view']['getDomRoot'](_0x3c72f8);if(!_0x1bd59a)continue;const _0xd8f524=_0x1bd59a['getClientRects']()['item'](0x0);_0xd8f524&&(_0x19186d['push'](_0x3c72f8),_0x354d1['set'](_0x3c72f8,_0xd8f524));}return _0x19186d['sort']((_0x260c67,_0x570cb5)=>{const _0x1b6df5=_0x354d1['get'](_0x260c67),_0x599e6b=_0x354d1['get'](_0x570cb5);return _0x1b6df5['y']-_0x599e6b['y']||_0x1b6df5['x']-_0x599e6b['x'];}),(_0x563ff1=_0x563ff1['filter'](_0x12ace2=>_0x19186d['includes'](_0x12ace2['rootName'])))['sort']((_0x428506,_0x58b5c9)=>_0x19186d['indexOf'](_0x428506['rootName'])-_0x19186d['indexOf'](_0x58b5c9['rootName'])),_0x563ff1;}['_makeTape'](_0x420675){const _0x1abe14=Array['from'](_0x420675['markers'])['filter'](([_0x19d4b5,_0x5befdb])=>_0x19d4b5['startsWith']('revision:')&&!_0x5befdb['isCollapsed']),_0x3e573f=Array['from'](this['editor']['model']['createRangeIn'](_0x420675)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x1abe14['length'])for(const _0x260b0d of _0x3e573f){const [_0x44c272,_0xfde889]=_0x1abe14[0x0],[,_0x1886a0,_0x3327ac]=_0x44c272['split'](':');if(_0xfde889['end']['isEqual'](_0x260b0d['nextPosition'])&&_0x1abe14['shift'](),(_0x260b0d['previousPosition']['isEqual'](_0xfde889['start'])||_0x260b0d['previousPosition']['isAfter'](_0xfde889['start']))&&('insertion'==_0x1886a0?_0x260b0d['isAdded']={'userId':_0x3327ac}:'deletion'==_0x1886a0&&(_0x260b0d['isRemoved']={'userId':_0x3327ac})),0x0==_0x1abe14['length'])break;}return _0x3e573f;}['_refreshStartEndIndex'](_0x116d8d){const _0x147d6d=new Map();for(let _0x337b33=0x0;_0x337b33<_0x116d8d['length'];_0x337b33++)'text'===_0x116d8d[_0x337b33]['type']?(_0x116d8d[_0x337b33]['item']['startIndex']=_0x337b33,_0x116d8d[_0x337b33]['item']['endIndex']=_0x337b33):('elementStart'===_0x116d8d[_0x337b33]['type']?_0x116d8d[_0x337b33]['item']['startIndex']=_0x337b33:'elementEnd'===_0x116d8d[_0x337b33]['type']&&(_0x116d8d[_0x337b33]['item']['endIndex']=_0x337b33),_0x147d6d['set'](_0x116d8d[_0x337b33]['id'],_0x337b33));for(const _0x100d6c of _0x147d6d['values']())'elementStart'===_0x116d8d[_0x100d6c]['type']?_0x116d8d[_0x100d6c]['item']['endIndex']=_0x147d6d['get'](_0x116d8d[_0x100d6c]['pairId']):'elementEnd'===_0x116d8d[_0x100d6c]['type']&&(_0x116d8d[_0x100d6c]['item']['startIndex']=_0x147d6d['get'](_0x116d8d[_0x100d6c]['pairId']));}['_processTape'](_0x1a1105){for(let _0x2302c9=0x0;_0x2302c9<_0x1a1105['length'];_0x2302c9++){if('elementStart'===_0x1a1105[_0x2302c9]['type'])_0x1a1105[_0x2302c9]['item']['startIndex']=_0x2302c9;else{if('elementEnd'===_0x1a1105[_0x2302c9]['type']){_0x1a1105[_0x2302c9]['item']['endIndex']=_0x2302c9;const _0x329857=_0x1a1105[_0x2302c9]['item']['startIndex'];_0x1a1105[_0x329857]['pairId']=_0x1a1105[_0x2302c9]['id'],_0x1a1105[_0x2302c9]['pairId']=_0x1a1105[_0x329857]['id'];}else _0x1a1105[_0x2302c9]['item']['startIndex']=_0x2302c9,_0x1a1105[_0x2302c9]['item']['endIndex']=_0x2302c9,_0x1a1105[_0x2302c9]['pairId']=null;}_0x1a1105[_0x2302c9]['markersStart']||(_0x1a1105[_0x2302c9]['markersStart']=[],_0x1a1105[_0x2302c9]['markersEnd']=[]);}}['_markInsertions'](_0x5d7c6b,_0x56fee5){const _0x499ed7=_0x5d7c6b['filter'](_0x1c06d9=>!_0x1c06d9['isAdded']);for(let _0x292ed8=0x0;_0x292ed8<_0x56fee5['length'];_0x292ed8++)_0x56fee5[_0x292ed8]['isAdded']&&(_0x499ed7[_0x292ed8]['isAdded']=_0x56fee5[_0x292ed8]['isAdded']);}['_makeModelFromViewString'](_0x22c280){const _0x3521e2=JSON['parse'](_0x22c280),_0x41b666=this['editor']['editing']['view']['document'],_0x504927=new _0x54f8da(_0x41b666,_0x3521e2['map'](_0x188d67=>this['_getViewObj'](_0x188d67)));return this['editor']['data']['toModel'](_0x504927);}['_getViewObj'](_0x2b55dd){const _0x5218a6=this['editor']['editing']['view']['document'];if('string'==typeof _0x2b55dd)return new _0x5e3563(_0x5218a6,_0x2b55dd);{const _0x2e6cf4=_0x2b55dd['children']['map'](_0x63150c=>this['_getViewObj'](_0x63150c));return new(Y[_0x2b55dd['type']]||_0x90d7cf)(_0x5218a6,_0x2b55dd['name'],_0x2b55dd['attributes'],_0x2e6cf4);}}['_getDiff'](_0x1e1d81,_0x193b13=null){const _0x85a44b=this['repository']['getRevision'](_0x1e1d81),_0x269ded=_0x193b13?this['repository']['getRevision'](_0x193b13):null,_0x1ee0fd=this['_getRevisionsRange'](_0x85a44b,_0x269ded),_0xbeb13f=_0x1ee0fd[_0x1ee0fd['length']-0x1],_0x20d28a=new Map(),_0x1d037e={'model':{},'attributes':{},'changes':[]},_0xc77de=new Set(),_0x4e90ea=new Map();for(let _0x160af4=_0x1ee0fd['length']-0x1;_0x160af4>=0x0;_0x160af4--){const _0x1a0f22=_0x1ee0fd[_0x160af4];for(const _0x18e996 of Object['keys'](_0x1a0f22['diffData']))if(_0x1a0f22['diffData'][_0x18e996]['attachChange']){const _0x412907=_0x1a0f22['diffData'][_0x18e996]['attachChange'];_0x412907['isAttached']?(_0xc77de['add'](_0x18e996),_0x4e90ea['has'](_0x18e996)&&_0x4e90ea['get'](_0x18e996)['userId']==_0x412907['userId']?_0x4e90ea['delete'](_0x18e996):_0x4e90ea['set'](_0x18e996,_0x412907)):_0x4e90ea['has'](_0x18e996)?(_0xc77de['delete'](_0x18e996),_0x4e90ea['delete'](_0x18e996)):(_0xc77de['add'](_0x18e996),_0x4e90ea['set'](_0x18e996,_0x412907));}else _0xc77de['add'](_0x18e996);}for(const _0x2b8c9d of _0xc77de){const _0xbb7935=_0x4e90ea['has'](_0x2b8c9d)&&!_0x4e90ea['get'](_0x2b8c9d)['isAttached'];let _0x1640f7=_0xbb7935?_0x1ee0fd['length']-0x1:0x0;const _0x5995ed=_0xbb7935?-0x1:0x1;for(;_0x1ee0fd[_0x1640f7];){const _0x1b5371=_0x1ee0fd[_0x1640f7];if(_0x1b5371['diffData'][_0x2b8c9d]){const _0x343192=_0xbb7935?_0x1b5371['diffData'][_0x2b8c9d]['attributesBefore']:_0x1b5371['diffData'][_0x2b8c9d]['attributesAfter'];_0x1d037e['attributes'][_0x2b8c9d]=_0x343192?_0x13a2c6(_0x343192):{};break;}_0x1640f7+=_0x5995ed;}}for(const _0x2d12bf of _0x1ee0fd){_0x2d12bf['model']={};for(const _0x3fefd3 of _0x2d12bf['authors'])_0x20d28a['set'](_0x3fefd3['id'],_0x3fefd3);for(const _0x17a785 of _0xc77de){const _0x219e05=_0x2d12bf['diffData'][_0x17a785]?_0x2d12bf['diffData'][_0x17a785]['insertions']:'[]',_0xabf0f=_0x2d12bf['diffData'][_0x17a785]?_0x2d12bf['diffData'][_0x17a785]['deletions']:'[]';_0x2d12bf['model'][_0x17a785]={'insertions':this['_makeModelFromViewString'](_0x219e05),'deletions':this['_makeModelFromViewString'](_0xabf0f)};}}for(const _0x39c857 of _0xc77de){let _0x43b5ca=null,_0x4a6105=0x0;const _0x364284=new Map(Array['from'](_0x85a44b['model'][_0x39c857]['insertions']['markers'])['filter'](([_0x5e7d31])=>!_0x5e7d31['startsWith']('revision:')));let _0x191fce=0x0;for(const _0x2803fb of _0x1ee0fd){const _0x2e8485=this['_makeTape'](_0x2803fb['model'][_0x39c857]['insertions']);_0x2803fb==_0x85a44b?(_0x43b5ca=_0x2e8485,_0x4a6105=_0x43b5ca['length'],_0x43b5ca['forEach'](_0x5bab18=>{_0x5bab18['id']=_0x191fce++;}),this['_processTape'](_0x43b5ca)):this['_markInsertions'](_0x43b5ca,_0x2e8485);const _0x691afd=_0x43b5ca['filter'](_0x50b8e9=>!_0x50b8e9['isAdded'])['map'](_0x4aaef1=>_0x4aaef1['id']);let _0x2bf3e1=0x0;const _0x34a62e=this['_makeTape'](_0x2803fb['model'][_0x39c857]['deletions']);_0x34a62e['forEach'](_0x2fd187=>{_0x2fd187['isRemoved']?_0x2fd187['id']=_0x4a6105++:_0x2fd187['id']=_0x691afd[_0x2bf3e1++];}),this['_processTape'](_0x34a62e),this['_setDistance'](_0x43b5ca,'isAdded'),this['_setDistance'](_0x34a62e,'isRemoved'),_0x2803fb==_0x85a44b&&this['_markMarkers'](_0x43b5ca,_0x364284),_0x43b5ca=this['_joinTapes'](_0x43b5ca,_0x34a62e),this['_refreshStartEndIndex'](_0x43b5ca),this['_setDistance'](_0x43b5ca,'isRemoved');}_0x43b5ca=_0x43b5ca['filter'](_0x2ec609=>!(_0x2ec609['isAdded']&&_0x2ec609['isRemoved']));const _0xba1e68=new Map(_0xbeb13f['model'][_0x39c857]['deletions']['markers']),_0x1380a9=new Set(_0x364284['keys']());for(const _0x372ce1 of _0xba1e68['keys']())_0x1380a9['delete'](_0x372ce1);this['_markSuggestions'](_0x43b5ca,_0x1380a9),this['_fixObsoleteTags'](_0x43b5ca),_0x43b5ca=this['_removeMissingPairs'](_0x43b5ca),_0x43b5ca=this['_markMismatchedRemovedTags'](_0x43b5ca),_0x43b5ca=this['_removeUnsupportedChanges'](_0x43b5ca);const {root:_0x20ce36,changes:_0x16bc43}=this['_makeModelFromTape'](_0x43b5ca,_0x20d28a,_0x39c857);_0x1d037e['model'][_0x39c857]=_0x20ce36;const _0x345605=_0x4e90ea['get'](_0x39c857);if(_0x345605){const _0x10e319=_0x20d28a['get'](_0x345605['userId']),_0x89bb40=new r({'author':_0x10e319,'type':_0x345605['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x39c857});_0x16bc43['unshift'](_0x89bb40),_0x1d037e['attributes'][_0x39c857]['revisionHistoryAttachChange']=_0x89bb40['id'];}_0x1d037e['changes']=_0x1d037e['changes']['concat'](_0x16bc43);}return _0x1d037e;}['_markMarkers'](_0x259110,_0x41afc5){for(let _0x314a8e=0x0;_0x314a8e<_0x259110['length'];_0x314a8e++)for(const [_0x16496c,_0xac0113]of _0x41afc5)_0xac0113['start']['isEqual'](_0x259110[_0x314a8e]['previousPosition'])&&_0x259110[_0x314a8e]['markersStart']['push'](_0x16496c),_0xac0113['end']['isEqual'](_0x259110[_0x314a8e]['nextPosition'])&&_0x259110[_0x314a8e]['markersEnd']['push'](_0x16496c);}['_joinTapes'](_0x186de0,_0x650058){let _0x314ff6=[],_0xb9d0c=0x0,_0x2388d2=0x0;for(;_0xb9d0c<_0x186de0['length']||_0x2388d2<_0x650058['length'];){const _0x1e6a03=_0x186de0[_0xb9d0c]||{},_0x354f7e=_0x650058[_0x2388d2]||{};if(_0x1e6a03['id']==_0x354f7e['id'])_0xb9d0c++,_0x2388d2++,_0x314ff6['push'](_0x1e6a03);else{if(_0x354f7e['isRemoved']&&_0x1e6a03['isAdded']){const {commonTape:_0x89689,iEnd:_0x22fc72,jEnd:_0x4bbdef}=this['_threeWayMerge'](_0x186de0,_0xb9d0c,_0x650058,_0x2388d2);_0x314ff6=_0x314ff6['concat'](_0x89689),_0xb9d0c=_0x22fc72,_0x2388d2=_0x4bbdef;}else _0x354f7e['isRemoved']?(_0x2388d2++,_0x314ff6['push'](_0x354f7e)):(_0xb9d0c++,_0x314ff6['push'](_0x1e6a03));}}return _0x314ff6;}['_markSuggestions'](_0x419758,_0x220bd6){const _0x2c9146=[];for(let _0x3ed3e6=0x0;_0x3ed3e6<_0x419758['length'];_0x3ed3e6++){for(let _0x59726d=0x0;_0x59726d<_0x419758[_0x3ed3e6]['markersStart']['length'];_0x59726d++){const _0xd19c29=_0x419758[_0x3ed3e6]['markersStart'][_0x59726d];if(!_0x220bd6['has'](_0xd19c29))continue;const {group:_0x577c91,type:_0x2b82c0,authorId:_0x217850}=_0x14cd77(_0xd19c29);'revision-suggestion'!=_0x577c91||'insertion'!=_0x2b82c0&&'deletion'!=_0x2b82c0||(_0x2c9146['unshift']({'type':_0x2b82c0,'name':_0xd19c29,'userId':_0x217850}),_0x419758[_0x3ed3e6]['markersStart']['splice'](_0x59726d,0x1),_0x59726d--);}_0xe1ce40(_0x419758[_0x3ed3e6]);for(let _0x344608=0x0;_0x344608<_0x419758[_0x3ed3e6]['markersEnd']['length'];_0x344608++){const _0x2a00c7=_0x419758[_0x3ed3e6]['markersEnd'][_0x344608];if(!_0x220bd6['has'](_0x2a00c7))continue;const {group:_0x42dc75,type:_0x4040d1}=_0x14cd77(_0x2a00c7);if('revision-suggestion'!=_0x42dc75||'insertion'!=_0x4040d1&&'deletion'!=_0x4040d1)continue;_0x419758[_0x3ed3e6]['markersEnd']['splice'](_0x344608,0x1),_0x344608--;const _0x365833=_0x2c9146['findIndex'](_0xe42ddd=>_0xe42ddd['name']==_0x2a00c7);_0x365833>-0x1&&_0x2c9146['splice'](_0x365833,0x1);}}function _0x14cd77(_0x596c40){const _0x234351=_0x596c40['split'](':');return{'group':_0x234351[0x0],'type':_0x234351[0x1],'subType':_0x234351['length']>=0x5?_0x234351[0x2]:null,'id':_0x234351['length']<0x5?_0x234351[0x2]:_0x234351[0x3],'authorId':_0x234351['length']<0x5?_0x234351[0x3]:_0x234351[0x4],'markerCount':0x6==_0x234351['length']?_0x234351[0x5]:null};}function _0xe1ce40(_0x31ea32){for(let _0x17f351=0x0;_0x17f351<_0x2c9146['length'];_0x17f351++){if(_0x31ea32['isAdded']&&'insertion'==_0x2c9146[_0x17f351]['type'])return _0x31ea32['isAddSuggestion']=_0x2c9146[_0x17f351],void delete _0x31ea32['isAdded'];if(!_0x31ea32['isAdded']&&!_0x31ea32['isRemoved']&&'deletion'==_0x2c9146[_0x17f351]['type'])return void(_0x31ea32['isRemoveSuggestion']=_0x2c9146[_0x17f351]);}}}['_setDistance'](_0x24d54c,_0x262d5c){let _0x1e2cd3=0x0,_0x50090c=!0x1;const _0x22ea6c=new Map();for(const _0x4d772b of _0x24d54c)_0x4d772b[_0x262d5c]?_0x50090c&&(_0x1e2cd3++,_0x50090c=!0x1):(_0x1e2cd3++,_0x50090c=!0x0),_0x22ea6c['set'](_0x4d772b['id'],_0x1e2cd3);for(let _0x14c328=0x0;_0x14c328<_0x24d54c['length'];_0x14c328++){if('isRemoved'==_0x262d5c&&_0x24d54c[_0x14c328]['isAdded']||'isAdded'==_0x262d5c&&_0x24d54c[_0x14c328]['isRemoved'])continue;if('text'==_0x24d54c[_0x14c328]['type']){_0x24d54c[_0x14c328]['distance']=0x0;continue;}const _0x20e7ca=_0x22ea6c['get'](_0x24d54c[_0x14c328]['pairId']),_0x58281f=_0x22ea6c['get'](_0x24d54c[_0x14c328]['id']);_0x24d54c[_0x14c328]['distance']=_0x20e7ca-_0x58281f;}}['_getRevisionsRange'](_0x3fee7b,_0x9fabca,_0x2a5b32=!0x1){const _0x13133b=[];let _0x515976=this['repository']['getIndex'](_0x3fee7b),_0x4c288a=this['repository']['getIndex'](_0x9fabca);for(-0x1==_0x4c288a&&(_0x4c288a=this['repository']['_revisions']['length'],_0x2a5b32=!0x1);_0x515976<_0x4c288a;)_0x13133b['push'](this['repository']['getRevision'](_0x515976)),_0x515976++;return _0x2a5b32&&_0x13133b['push'](this['repository']['getRevision'](_0x515976)),_0x13133b;}['_threeWayMerge'](_0x260e6b,_0x5cc05c,_0x33fb1f,_0x5334bf){const _0x25a35c=this['editor']['model']['schema'];let _0x5ca8f6=_0x5cc05c;for(;_0x260e6b[_0x5ca8f6]&&_0x260e6b[_0x5ca8f6]['isAdded'];)_0x5ca8f6++;let _0x23509b=_0x5334bf;for(;_0x33fb1f[_0x23509b]&&_0x33fb1f[_0x23509b]['isRemoved'];)_0x23509b++;_0x192de8(_0x260e6b,_0x5cc05c,_0x5ca8f6),_0x192de8(_0x33fb1f,_0x5334bf,_0x23509b);const _0xdee58c=_0x33fb1f['slice'](_0x5334bf,_0x23509b)['concat'](_0x260e6b['slice'](_0x5cc05c,_0x5ca8f6));return _0xdee58c['sort']((_0x5b90d7,_0x46533d)=>_0x5b90d7['side']!=_0x46533d['side']?_0x5b90d7['side']-_0x46533d['side']:_0x5b90d7['level']!=_0x46533d['level']?_0x5b90d7['level']-_0x46533d['level']:_0x5b90d7['distance']!=_0x46533d['distance']?_0x46533d['distance']-_0x5b90d7['distance']:!!_0x5b90d7['isAdded']!=!!_0x46533d['isAdded']?-0x1==_0x5b90d7['side']||0x0==_0x5b90d7['side']?_0x5b90d7['isAdded']?-0x1:0x1:_0x5b90d7['isAdded']?0x1:-0x1:_0x5b90d7['index']-_0x46533d['index']),{'commonTape':_0xdee58c,'iEnd':_0x5ca8f6,'jEnd':_0x23509b};function _0x192de8(_0x140f73,_0x36b8c9,_0x3ca228){let _0x10daad=-0x1,_0x5d2f64=Number['POSITIVE_INFINITY'],_0x31e032=!0x0;for(let _0x3329a9=_0x36b8c9;_0x3329a9<_0x3ca228;_0x3329a9++)if(_0x25a35c['isInline'](_0x140f73[_0x3329a9]['item'])||(_0x31e032=!0x1),_0x140f73[_0x3329a9]['item']['startIndex']<_0x36b8c9&&(_0x10daad=_0x3329a9),_0x140f73[_0x3329a9]['item']['endIndex']>=_0x3ca228){_0x5d2f64=_0x3329a9;break;}_0x31e032&&(_0x10daad=_0x3ca228-0x1);for(let _0x1d7679=_0x36b8c9;_0x1d7679<_0x3ca228;_0x1d7679++)_0x140f73[_0x1d7679]['side']=_0x1d7679<=_0x10daad?-0x1:_0x1d7679<_0x5d2f64?0x0:0x1,_0x140f73[_0x1d7679]['index']=_0x1d7679;let _0xedbc3a=0x0;for(let _0x4e659a=_0x36b8c9;_0x4e659a<=_0x10daad;_0x4e659a++)0x0==_0x140f73[_0x4e659a]['distance']?_0x140f73[_0x4e659a]['level']=_0xedbc3a:(_0xedbc3a++,_0x140f73[_0x4e659a]['level']=_0xedbc3a,_0xedbc3a++);for(let _0x3efc76=_0x36b8c9;_0x3efc76<_0x3ca228;_0x3efc76++)0x0==_0x140f73[_0x3efc76]['side']&&(_0x140f73[_0x3efc76]['level']=_0xedbc3a);_0xedbc3a=0x0;for(let _0xd5d31f=_0x3ca228-0x1;_0xd5d31f>=_0x5d2f64;_0xd5d31f--)0x0==_0x140f73[_0xd5d31f]['distance']?_0x140f73[_0xd5d31f]['level']=_0xedbc3a:(_0xedbc3a--,_0x140f73[_0xd5d31f]['level']=_0xedbc3a,_0xedbc3a--);}}['_fixObsoleteTags'](_0x4f9538){const _0x3fb39f=new Map(),_0x3f5ffd=this['editor']['model']['schema'];for(let _0x1dda2a=0x1;_0x1dda2a<_0x4f9538['length'];_0x1dda2a++){let _0x44e10d,_0x3abd97,_0x4812b3;const _0x1822cf=_0x4f9538[_0x1dda2a],_0x511f6a=_0x4f9538[_0x1dda2a-0x1];if('text'==_0x1822cf['type'])continue;if(_0x1822cf['type']!=_0x511f6a['type'])continue;if(!_0x3f5ffd['isBlock'](_0x511f6a['item'])||_0x3f5ffd['isLimit'](_0x511f6a['item']))continue;if(!_0x3f5ffd['isBlock'](_0x1822cf['item'])||_0x3f5ffd['isLimit'](_0x1822cf['item']))continue;if((_0x4f9538[_0x1dda2a]['isAdded']||_0x4f9538[_0x1dda2a]['isAddSuggestion'])&&_0x4f9538[_0x1dda2a-0x1]['isRemoved'])_0x44e10d=_0x4f9538[_0x1dda2a],_0x3abd97=_0x4f9538[_0x1dda2a-0x1],_0x4812b3=_0x1dda2a-0x1;else{if(!_0x4f9538[_0x1dda2a]['isRemoved']||!_0x4f9538[_0x1dda2a-0x1]['isAdded']&&!_0x4f9538[_0x1dda2a-0x1]['isAddSuggestion'])continue;_0x44e10d=_0x4f9538[_0x1dda2a-0x1],_0x3abd97=_0x4f9538[_0x1dda2a],_0x4812b3=_0x1dda2a;}const _0x4f3d2c=_0x44e10d['level']==_0x3abd97['level'],_0x5640f4=Math['abs'](_0x44e10d['level'])<Math['abs'](_0x3abd97['level'])&&0x0==_0x3abd97['distance'];(_0x4f3d2c||_0x5640f4)&&(_0x3fb39f['set'](_0x3abd97['id'],_0x44e10d['id']),_0x4f9538['splice'](_0x4812b3,0x1),_0x1dda2a--,_0x44e10d['isAdded']=!0x1);}for(let _0x534306=0x0;_0x534306<_0x4f9538['length'];_0x534306++)_0x3fb39f['has'](_0x4f9538[_0x534306]['pairId'])&&(_0x4f9538[_0x534306]['pairId']=_0x3fb39f['get'](_0x4f9538[_0x534306]['pairId']));}['_removeMissingPairs'](_0x5bc23f){const _0x288b35=new Set(_0x5bc23f['map'](_0x5cc0df=>_0x5cc0df['id']));for(let _0x12ef5d=0x0;_0x12ef5d<_0x5bc23f['length'];_0x12ef5d++)_0x288b35['has'](_0x5bc23f[_0x12ef5d]['pairId'])||0x0==_0x5bc23f[_0x12ef5d]['distance']||(_0x5bc23f[_0x12ef5d]['isIncorrect']=!0x0);return _0x5bc23f['filter'](_0x2d59f6=>!_0x2d59f6['isIncorrect']);}['_markMismatchedRemovedTags'](_0x4cbfd5){const _0x1b778a=new Set();for(let _0x344366=0x0;_0x344366<_0x4cbfd5['length'];_0x344366++){if(_0x1b778a['has'](_0x4cbfd5[_0x344366]['id'])&&_0x4cbfd5[_0x344366]['isRemoved']&&(_0x4cbfd5[_0x344366]['isIncorrect']=!0x0),_0x4cbfd5[_0x344366]['isIncorrect'])continue;if(0x0==_0x4cbfd5[_0x344366]['distance'])continue;if('elementStart'!=_0x4cbfd5[_0x344366]['type'])continue;if(null==_0x4cbfd5[_0x344366]['pairId'])continue;let _0x19c446=_0x344366+0x1,_0x5d4221=0x0;for(;_0x4cbfd5[_0x19c446]['id']!=_0x4cbfd5[_0x344366]['pairId'];)'elementStart'==_0x4cbfd5[_0x19c446]['type']?_0x5d4221++:'elementEnd'==_0x4cbfd5[_0x19c446]['type']&&_0x5d4221--,_0x19c446++;if(0x0!=_0x5d4221){if(_0x4cbfd5[_0x344366]['isRemoved'])_0x4cbfd5[_0x344366]['isIncorrect']=!0x0;else{for(;_0x19c446!=_0x344366;)_0x4cbfd5[_0x19c446]['isRemoved']&&0x0!=_0x4cbfd5[_0x19c446]['distance']&&(_0x4cbfd5[_0x19c446]['isIncorrect']=!0x0,_0x1b778a['add'](_0x4cbfd5[_0x19c446]['pairId'])),_0x19c446--;}}}return _0x4cbfd5['filter'](_0x3f9237=>!_0x3f9237['isIncorrect']);}['_removeUnsupportedChanges'](_0x11877c){const _0x55df51=this['editor']['model']['schema'];for(let _0x14d042=0x0;_0x14d042<_0x11877c['length'];_0x14d042++){if(!(_0x11877c[_0x14d042]['isAdded']||_0x11877c[_0x14d042]['isAddSuggestion']||_0x11877c[_0x14d042]['isRemoved']||_0x11877c[_0x14d042]['isRemoveSuggestion']))continue;if(0x0==_0x11877c[_0x14d042]['distance'])continue;const _0x5bdcfc=_0x11877c[_0x14d042]['item'];_0x55df51['isBlock'](_0x5bdcfc)||_0x55df51['isLimit'](_0x5bdcfc)||(_0x11877c[_0x14d042]['isAdded']&&delete _0x11877c[_0x14d042]['isAdded'],_0x11877c[_0x14d042]['isAddSuggestion']&&delete _0x11877c[_0x14d042]['isAddSuggestion'],_0x11877c[_0x14d042]['isRemoveSuggestion']&&delete _0x11877c[_0x14d042]['isRemoveSuggestion'],_0x11877c[_0x14d042]['isRemoved']&&(_0x11877c[_0x14d042]['isIncorrect']=!0x0));}return _0x11877c['filter'](_0x360734=>!_0x360734['isIncorrect']);}['_makeModelFromTape'](_0x4dc136,_0xb80648,_0xd15336){const _0x4646d0=new mt(),_0x1c9b41=[],_0x58f486=new Map(),_0x5890e8=this['editor']['model'],_0x1e890b=_0x5890e8['schema'],_0xd59f53=[_0x4646d0],_0x16a592={},_0x241b0c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x534daf=null;const _0x4ed741=[0x0];for(let _0x444809=0x0;_0x444809<_0x4dc136['length'];_0x444809++)if('elementStart'===_0x4dc136[_0x444809]['type']){_0x4dc136[_0x444809]['previousPosition']=_0x5890e8['createPositionFromPath'](_0x4646d0,_0x4ed741);const _0x58096=new ft(_0x4dc136[_0x444809]['item']['name'],_0x4dc136[_0x444809]['item']['getAttributes']());_0xd59f53[0x0]['_appendChild'](_0x58096),_0x4ed741['push'](0x0),_0xd59f53['unshift'](_0x58096),_0x4dc136[_0x444809]['nextPosition']=_0x5890e8['createPositionFromPath'](_0x4646d0,_0x4ed741);}else'elementEnd'===_0x4dc136[_0x444809]['type']?(_0xd59f53['shift'](),_0x4dc136[_0x444809]['previousPosition']=_0x5890e8['createPositionFromPath'](_0x4646d0,_0x4ed741),_0x4ed741['pop'](),_0x4ed741[_0x4ed741['length']-0x1]++,_0x4dc136[_0x444809]['nextPosition']=_0x5890e8['createPositionFromPath'](_0x4646d0,_0x4ed741)):(_0x4dc136[_0x444809]['previousPosition']=_0x5890e8['createPositionFromPath'](_0x4646d0,_0x4ed741),_0x534daf?_0x534daf['_data']+=_0x4dc136[_0x444809]['item']['data']:_0x534daf=new wt(_0x4dc136[_0x444809]['item']['data'],_0x4dc136[_0x444809]['item']['getAttributes']()),_0x4dc136[_0x444809+0x1]&&'text'===_0x4dc136[_0x444809+0x1]['type']&&_0x585d07(_0x534daf,_0x4dc136[_0x444809+0x1]['item'])||(_0xd59f53[0x0]['_appendChild'](_0x534daf),_0x534daf=null),_0x4ed741[_0x4ed741['length']-0x1]+=_0x4dc136[_0x444809]['item']['offsetSize'],_0x4dc136[_0x444809]['nextPosition']=_0x5890e8['createPositionFromPath'](_0x4646d0,_0x4ed741));for(let _0x1c1112=0x0;_0x1c1112<_0x4dc136['length'];_0x1c1112++){const _0x67b4ec=_0x4dc136[_0x1c1112]['previousPosition'],_0x117ad6=_0x4dc136[_0x1c1112]['nextPosition'];for(const _0x3bbebd of _0x4dc136[_0x1c1112]['markersStart'])_0x58f486['set'](_0x3bbebd,{'start':_0x67b4ec,'end':null});_0x3b280a('isRemoveSuggestion',_0x1c1112,_0x67b4ec,_0x117ad6),_0x3b280a('isAddSuggestion',_0x1c1112,_0x67b4ec,_0x117ad6),_0x3b280a('isRemoved',_0x1c1112,_0x67b4ec,_0x117ad6),_0x3b280a('isAdded',_0x1c1112,_0x67b4ec,_0x117ad6);for(const _0x5e6480 of _0x4dc136[_0x1c1112]['markersEnd']){_0x58f486['get'](_0x5e6480)['end']=_0x117ad6;}}for(const [_0x5508f7,_0x197435]of _0x58f486){const _0x426ab0=this['editor']['model']['createRange'](_0x197435['start'],_0x197435['end']);_0x4646d0['markers']['set'](_0x5508f7,_0x426ab0);}return _0x1c9b41['sort']((_0x568c9e,_0x2974dc)=>{const _0x113ba1=_0x4646d0['markers']['get']('revision:'+_0x568c9e['id']),_0x3c3fdb=_0x4646d0['markers']['get']('revision:'+_0x2974dc['id']);return _0x113ba1['start']['isBefore'](_0x3c3fdb['start'])?-0x1:_0x113ba1['start']['isAfter'](_0x3c3fdb['start'])?0x1:_0x113ba1['end']['isBefore'](_0x3c3fdb['end'])?-0x1:_0x113ba1['end']['isAfter'](_0x3c3fdb['end'])?0x1:'add'===_0x568c9e['type']?-0x1:0x1;}),{'root':_0x4646d0,'changes':_0x1c9b41};function _0x3b280a(_0x237957,_0x4f296c,_0x847cf5,_0x53abba){const _0x1b2367=!!_0x4dc136[_0x4f296c][_0x237957],_0x2b2669=_0x1b2367?_0x4dc136[_0x4f296c][_0x237957]['userId']:null,_0x4e9326=_0x4f296c===_0x4dc136['length']-0x1,_0x432cac=_0x241b0c[_0x237957][0x0],_0x1b36cd=_0x1e890b['isObject'](_0x4dc136[_0x4f296c]['item']);!_0x16a592[_0x237957]&&_0x1b2367?_0x16a592[_0x237957]={'start':_0x847cf5,'tapeItem':_0x4dc136[_0x4f296c],'userId':_0x2b2669,'type':_0x237957}:_0x16a592[_0x237957]&&!_0x1b2367?(_0x16a592[_0x237957]['end']=_0x847cf5,_0x4584b3(_0x16a592[_0x237957]),_0x16a592[_0x237957]=null):_0x16a592[_0x237957]&&_0x1b2367&&_0x16a592[_0x237957]['userId']!==_0x2b2669&&(_0x16a592[_0x237957]['end']=_0x847cf5,_0x432cac&&_0x432cac['userId']===_0x16a592[_0x237957]['userId']||_0x4584b3(_0x16a592[_0x237957]),_0x16a592[_0x237957]={'start':_0x847cf5,'tapeItem':_0x4dc136[_0x4f296c],'userId':_0x2b2669,'type':_0x237957}),_0x16a592[_0x237957]&&_0x1b36cd&&('elementStart'!==_0x4dc136[_0x4f296c]['type']||_0x432cac&&_0x432cac['userId']===_0x2b2669||_0x241b0c[_0x237957]['unshift']({'userId':_0x2b2669,'object':_0x4dc136[_0x4f296c]['item'],'change':_0x16a592[_0x237957]}),'elementEnd'===_0x4dc136[_0x4f296c]['type']&&_0x432cac&&_0x432cac['object']===_0x4dc136[_0x4f296c]['item']&&(_0x241b0c[_0x237957]['shift'](),_0x16a592[_0x237957]=_0x432cac['change'])),_0x16a592[_0x237957]&&_0x4e9326&&(_0x16a592[_0x237957]['end']=_0x53abba,_0x4584b3(_0x16a592[_0x237957]),_0x16a592[_0x237957]=null);}function _0x4584b3({start:_0x34390a,end:_0xc0e746,tapeItem:_0x9782e,userId:_0x29ba00,type:_0x439a82}){const _0x3a6b24=_0x9782e['item'],_0x43e797=_0x5890e8['schema']['isBlock'](_0x3a6b24)&&!_0x5890e8['schema']['isLimit'](_0x3a6b24),_0x5d9774=_0x34390a['nodeAfter']==_0xc0e746['parent']&&_0xc0e746['isAtStart'];if(_0x43e797&&_0x5d9774)return;const _0x5dc0b8=_0x5890e8['createRange'](_0x34390a,_0xc0e746),_0x474353=_0xb80648['get'](_0x29ba00),_0x196713=new r({'author':_0x474353,'type':'isAdded'==_0x439a82||'isAddSuggestion'==_0x439a82?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x439a82||'isRemoveSuggestion'==_0x439a82},'createdAt':new Date(),'rootName':_0xd15336});_0x1c9b41['push'](_0x196713),_0x4646d0['markers']['set']('revision:'+_0x196713['id'],_0x5dc0b8);}function _0x585d07(_0x97ccf8,_0x29d047){const _0x4e0715=_0x97ccf8['getAttributes'](),_0x489f06=_0x29d047['getAttributes']();for(const _0x32f44d of _0x4e0715){if(_0x32f44d[0x1]!==_0x29d047['getAttribute'](_0x32f44d[0x0]))return!0x1;_0x489f06['next']();}return _0x489f06['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x5197e8=>{const _0x5e3414=_0x5197e8['markerName']['split'](':')[0x1],_0x1e827c=this['_getChangeFromId'](_0x5e3414);if(!_0x1e827c)return null;const _0x120112='add'==_0x1e827c['type']?'insertion':'deletion',_0x52d3b3=['ck-suggestion-marker','ck-suggestion-marker-'+_0x120112];return _0x1e827c['data']['isSuggestion']&&_0x52d3b3['push']('ck-suggestion-marker-'+_0x120112+'-new'),this['activeChange']==_0x1e827c&&_0x52d3b3['push']('ck-suggestion-marker--active'),{'classes':_0x52d3b3,'attributes':{'data-change-id':_0x5e3414}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5e4792=>{_0x5e4792['on']('element:pre',(_0x32786d,_0x1002d0,_0x5085d6)=>{const _0x3effc8=_0x1002d0['viewItem']['getChild'](0x0);if(!_0x3effc8||!_0x3effc8['is']('element','code'))return;if(!_0x5085d6['consumable']['consume'](_0x3effc8,{'attributes':['vid_start','vid_end']}))return;const _0x4bd5a7=_0x1002d0['modelRange']['start']['nodeAfter'];_0x5085d6['writer']['setAttribute']('vid_start',_0x3effc8['getAttribute']('vid_start'),_0x4bd5a7),_0x5085d6['writer']['setAttribute']('vid_end',_0x3effc8['getAttribute']('vid_end'),_0x4bd5a7);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x33f347=>{_0x33f347['on']('element',(_0x531ee8,_0xf87674,_0x45e593)=>{if(!_0x45e593['consumable']['consume'](_0xf87674['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0xf87674['modelRange']['isCollapsed'])return;const _0x6a16b7=_0xf87674['modelRange']['start']['nodeAfter'];_0x6a16b7['hasAttribute']('vid_start')||_0x6a16b7['hasAttribute']('vid')||(_0x45e593['writer']['setAttribute']('vid_start',_0xf87674['viewItem']['getAttribute']('vid_start'),_0x6a16b7),_0x45e593['writer']['setAttribute']('vid_end',_0xf87674['viewItem']['getAttribute']('vid_end'),_0x6a16b7));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x318321=>_0x318321['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0xfdc611,[,_0x4ad16f])=>{['vid_start','vid_end','vid']['includes'](_0x4ad16f)&&(_0xfdc611['return']=!0x0,_0xfdc611['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x43202e=>{_0x43202e['on']('attribute:vid',(_0xfea1ba,_0x38a185,_0x149373)=>{if('\x20'!=_0x38a185['item']['data']||_0x38a185['item']['parent']['maxOffset']>0x1)return;if(!_0x149373['consumable']['consume'](_0x38a185['item'],_0xfea1ba['name']))return;const _0x3920cf=_0x149373['writer'],_0x4f5cfa=_0x149373['mapper']['toViewRange'](_0x38a185['range']);_0x3920cf['wrap'](_0x4f5cfa,_0x3920cf['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x3648b7){const _0x217ec8=_0x3648b7['plugins']['get']('RevisionViewer');return(_0x572ba8,_0x48e9d8,_0x32b84c)=>{const _0x13b6e1=_0x48e9d8['markerName']['split'](':')[0x1],_0x3b0b3e=_0x217ec8['_getChangeFromId'](_0x13b6e1);if(!_0x3b0b3e)return null;const _0x7c9650='add'==_0x3b0b3e['type']?'split':'merge';if(!_0x32b84c['consumable']['test'](_0x48e9d8['markerRange'],_0x572ba8['name']))return;const _0x334cd1=_0x48e9d8['markerRange']['getWalker'](),_0x40dd07=_0x48e9d8['markerRange']['start'],_0x1d6eac=_0x3648b7['model']['schema'];let _0x491ad0=null,_0x24830f=null,_0xe30333=!0x1,_0x31ffdc=!0x1;for(const _0x1546a2 of _0x334cd1){const _0x1ccb8c=_0x1546a2['item'];_0xe30333=_0xe30333||_0x1d6eac['isContent'](_0x1ccb8c);const _0x2157d2=_0x32b84c['mapper']['toViewElement'](_0x1ccb8c);if(_0x2157d2&&_0x2157d2['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1546a2['type']&&(_0x1d6eac['isBlock'](_0x1ccb8c)&&!_0x1d6eac['isLimit'](_0x1ccb8c)&&(_0x1ccb8c['nextSibling']||_0x40dd07['isAtEnd']?_0x491ad0&&_0x491ad0['parent']==_0x1ccb8c||(_0x491ad0=_0x1ccb8c,_0x596895(_0x1546a2['previousPosition']),_0x31ffdc=!0x0):_0x24830f=_0x24830f||_0x1546a2['previousPosition']));}function _0x596895(_0x5d69e1){const _0x4ca4f0=_0x32b84c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x7c9650}),_0x4527fb=_0x32b84c['mapper']['toViewPosition'](_0x5d69e1);_0x3b0b3e['data']['isSuggestion']&&_0x32b84c['writer']['addClass']('ck-suggestion-marker-'+_0x7c9650+'-new',_0x4ca4f0),_0x217ec8['activeChange']==_0x3b0b3e&&_0x32b84c['writer']['addClass']('ck-suggestion-marker--active',_0x4ca4f0),_0x32b84c['writer']['insert'](_0x4527fb,_0x4ca4f0),_0x32b84c['mapper']['bindElementToMarker'](_0x4ca4f0,_0x48e9d8['markerName']);}_0xe30333||_0x31ffdc||!_0x24830f||_0x596895(_0x24830f);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x100cd3,_0x4e4cf6,_0x4d947d)=>{const _0x5e606b=_0x4d947d['mapper']['markerNameToElements'](_0x4e4cf6['markerName']);if(_0x5e606b){for(const _0x3c6121 of _0x5e606b)(_0x3c6121['hasClass']('ck-suggestion-marker-split')||_0x3c6121['hasClass']('ck-suggestion-marker-merge'))&&(_0x4d947d['mapper']['unbindElementFromMarkerName'](_0x3c6121,_0x4e4cf6['markerName']),_0x4d947d['writer']['remove'](_0x3c6121));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x365206,_0x42b060,_0x49b7b6)=>{const _0x57cea6=_0x42b060['markerName']['split'](':')[0x1],_0x465552=this['_getChangeFromId'](_0x57cea6);if(!_0x465552)return null;const _0x5b8449='add'==_0x465552['type']?'split':'merge';if(_0x49b7b6['consumable']['test'](_0x42b060['markerRange'],_0x365206['name']))for(const _0x8009ea of _0x42b060['markerRange']['getItems']()){if(!_0x8009ea['is']('element','softBreak'))continue;const _0x5a7134=_0x49b7b6['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x5b8449}),_0x30c29c=_0x49b7b6['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x8009ea));_0x465552['data']['isSuggestion']&&_0x49b7b6['writer']['addClass']('ck-suggestion-marker-'+_0x5b8449+'-new',_0x5a7134),this['activeChange']==_0x465552&&_0x49b7b6['writer']['addClass']('ck-suggestion-marker--active',_0x5a7134),_0x49b7b6['writer']['insert'](_0x30c29c,_0x5a7134),_0x49b7b6['mapper']['bindElementToMarker'](_0x5a7134,_0x42b060['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x36a822=>{for(const _0x1ea68d of this['editor']['model']['document']['getRootNames']()){const _0x3995b8=this['editor']['model']['document']['getRoot'](_0x1ea68d),_0x1a98bd=this['editor']['editing']['view']['document']['getRoot'](_0x1ea68d);if(_0x1a98bd){const _0x3654d1=_0x3995b8['getAttribute']('revisionHistoryAttachChange');if(_0x36a822['removeAttribute']('data-change-id',_0x1a98bd),_0x36a822['removeClass']('ck-revision-history-root-add',_0x1a98bd),_0x36a822['removeClass']('ck-revision-history-root-remove',_0x1a98bd),_0x36a822['removeClass']('ck-revision-history-root--active',_0x1a98bd),_0x3654d1){const _0x207fc8=this['_getChangeFromId'](_0x3654d1);if(!_0x207fc8)return null;_0x36a822['setAttribute']('data-change-id',_0x3654d1,_0x1a98bd),_0x36a822['addClass']('ck-revision-history-root-'+_0x207fc8['type'],_0x1a98bd),this['activeChange']==_0x207fc8&&_0x36a822['addClass']('ck-revision-history-root--active',_0x1a98bd);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x199e49=>'revision-comment:'+_0x199e49,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x268e50=>'revision-suggestion:'+_0x268e50,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x5d87d4=>({'name':'suggestion:'+_0x5d87d4,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x220206=>{const _0x4d0e78=_0x220206['markerName']['split'](':')[0x1];return'insertion'!=_0x4d0e78&&'deletion'!=_0x4d0e78?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x4d0e78]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x44cfbe,_0x372ab6,_0x5d6262)=>{const _0xec3be8=_0x5d6262['mapper']['markerNameToElements'](_0x372ab6['markerName']);if(_0xec3be8){for(const _0x271be1 of _0xec3be8)_0x271be1['is']('uiElement')&&(_0x5d6262['mapper']['unbindElementFromMarkerName'](_0x271be1,_0x372ab6['markerName']),_0x5d6262['writer']['remove'](_0x271be1));}},{'priority':'high'});}['_getChangeFromId'](_0x22b648){return this['_changeIdToChange']['get'](_0x22b648);}['_getViewForChange'](_0x55ae42){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x55ae42),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x442f9a,_0x14ac4b,_0x3207a9,_0xf4ab13)=>{_0xf4ab13&&this['_balloon']['remove'](_0xf4ab13),_0x3207a9&&(this['_balloon']['add']({'view':_0x3207a9,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x55f107=this['editor']['editing'],_0x53ea2b=this['_getChangeFromId'](_0x3207a9['changeId']);let _0x27054c;if(_0x53ea2b['data']['isOnRoot']){const _0x4d8993=_0x55f107['view']['getDomRoot'](_0x53ea2b['rootName']);_0x27054c=Array['from'](_0x4d8993['getClientRects']());}else{const _0x23f5b8=this['editor']['model']['markers']['get']('revision:'+_0x3207a9['changeId']);_0x27054c=Array['from'](_0x55f107['mapper']['markerNameToElements'](_0x23f5b8['name']))['map'](_0x5f1da7=>_0x55f107['view']['domConverter']['mapViewToDom'](_0x5f1da7))['map'](_0x340cad=>Array['from'](_0x340cad['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x27054c[0x0];return _0x27054c['find'](_0x2203e2=>_0x2203e2['top']-0x3<=this['_activeViewTarget']['y']&&_0x2203e2['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2203e2['left']-0x3<=this['_activeViewTarget']['x']&&_0x2203e2['right']+0x3>=this['_activeViewTarget']['x'])||_0x27054c[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1d6ac3,_0x1948ef,_0x3ce933,_0x24f04f)=>{this['activeView']=_0x3ce933?this['_getViewForChange'](_0x3ce933):null,this['editor']['model']['change'](()=>{const _0x4dc2f3=this['editor']['editing'];_0x24f04f&&(_0x24f04f['data']['isOnRoot']?_0x4dc2f3['view']['change'](_0x3f4cd0=>{_0x3f4cd0['removeClass']('ck-revision-history-root--active',_0x4dc2f3['view']['document']['getRoot'](_0x24f04f['rootName']));}):_0x4dc2f3['reconvertMarker']('revision:'+_0x24f04f['id'])),_0x3ce933&&(_0x3ce933['data']['isOnRoot']?_0x4dc2f3['view']['change'](_0xadd78b=>{_0xadd78b['addClass']('ck-revision-history-root--active',_0x4dc2f3['view']['document']['getRoot'](_0x3ce933['rootName']));}):_0x4dc2f3['reconvertMarker']('revision:'+_0x3ce933['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x3d3c03,_0x49bb48)=>{if(this['activeChange'])return;const _0x574813=this['_findChangeIdFromDomTarget'](_0x49bb48['target']),_0x2625c1=this['_changeIdToChange']['get'](_0x574813);_0x2625c1?(this['_activeViewTarget']={'x':_0x49bb48['domEvent']['x'],'y':_0x49bb48['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2625c1)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1c6442,_0xce6157)=>{const _0x207855=this['_findChangeIdFromDomTarget'](_0xce6157['target']),_0x163daa=this['_changeIdToChange']['get'](_0x207855);_0x163daa?(this['_activeViewTarget']={'x':_0xce6157['domEvent']['x'],'y':_0xce6157['domEvent']['y']},_0x163daa===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x163daa):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x5a8aea){do{const _0x2e3919=_0x5a8aea['getAttribute']('data-change-id');if(_0x2e3919)return _0x2e3919;_0x5a8aea=_0x5a8aea['parent'];}while(_0x5a8aea);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x5bf68a=>{for(const _0x50bab6 of this['editor']['model']['markers'])_0x5bf68a['removeMarker'](_0x50bab6);});}}function Z(_0x2f6173,_0x55a24e){return(_0x5dde3e,_0x3b49f2,_0x35f740)=>{if(!_0x35f740['consumable']['test'](_0x3b49f2['markerRange'],_0x5dde3e['name']))return;const _0x3e37db=_0x3b49f2['markerRange']['getWalker'](),_0x128af8=_0x3b49f2['markerRange']['start'],_0x4403b9=_0x2f6173['model']['schema'];let _0x10b680=null,_0xfb1c3e=null,_0x28e1a2=!0x1,_0x172c7a=!0x1;for(const _0x17ff6e of _0x3e37db){const _0xc7fa29=_0x17ff6e['item'];_0x28e1a2=_0x28e1a2||_0x4403b9['isContent'](_0xc7fa29);const _0xb88ef=_0x35f740['mapper']['toViewElement'](_0xc7fa29);if(_0xb88ef&&_0xb88ef['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x17ff6e['type']&&(_0x4403b9['isBlock'](_0xc7fa29)&&!_0x4403b9['isLimit'](_0xc7fa29)&&(_0xc7fa29['nextSibling']||_0x128af8['isAtEnd']?_0x10b680&&_0x10b680['parent']==_0xc7fa29||(_0x10b680=_0xc7fa29,_0x1a90e7(_0x17ff6e['previousPosition']),_0x172c7a=!0x0):_0xfb1c3e=_0xfb1c3e||_0x17ff6e['previousPosition']));}function _0x1a90e7(_0xbdc955){const _0x270c27=_0x35f740['mapper']['toViewPosition'](_0xbdc955),_0x395f2=_0x35f740['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x55a24e});_0x35f740['writer']['insert'](_0x270c27,_0x395f2),_0x35f740['mapper']['bindElementToMarker'](_0x395f2,_0x3b49f2['markerName']);}_0x28e1a2||_0x172c7a||!_0xfb1c3e||_0x1a90e7(_0xfb1c3e);};}class _t extends _0x329c7e{constructor(_0x34e683){super(_0x34e683);const _0x4cc8b2=_0x34e683['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4cc8b2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4cc8b2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x50a82c=this['editor'],_0x3df2d7=_0x50a82c['plugins']['get'](d),_0x34d092=_0x3df2d7['isReady']?_0x3df2d7['diff']['newRevisionId']:null;_0x50a82c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x34d092);}['refresh'](){const {isReady:_0xfd17c0,isEnabled:_0x193cb8,repository:_0x2cf6d4,diff:_0x175ce8}=this['editor']['plugins']['get'](d),_0x351d3d=_0x175ce8&&_0x2cf6d4['getLaterVisibleRevision'](_0x175ce8['newRevisionId']);this['isEnabled']=_0xfd17c0&&_0x193cb8&&Boolean(_0x351d3d);}}class yt extends _0x329c7e{['_step'];constructor(_0x14587c,{direction:_0x524bda}){super(_0x14587c);const _0x35cbde=_0x14587c['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x524bda?0x1:-0x1,this['listenTo'](_0x35cbde,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x35cbde,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x35cbde,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x1d73f1=this['editor'],_0x22cefe=_0x1d73f1['plugins']['get'](d),{isNavigationMode:_0x34fd6f,currentChangeNumber:_0x5f5632}=_0x22cefe;let _0x3024a1;if(_0x22cefe['activeChange']=_0x34fd6f?_0x22cefe['diff']['changes']['get'](_0x5f5632+this['_step']):_0x22cefe['diff']['changes']['first'],_0x22cefe['activeChange']['data']['isOnRoot'])_0x3024a1=_0x1d73f1['editing']['view']['getDomRoot'](_0x22cefe['activeChange']['rootName']);else{const _0x14068e=_0x1d73f1['model']['markers']['get']('revision:'+_0x22cefe['activeChange']['id']);_0x3024a1=_0x6257ad(_0x1d73f1['editing'],_0x14068e);}_0x30ebbf({'target':_0x3024a1,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4b2f82,currentChangeNumber:_0x5841e3,numberOfChanges:_0x27668e,isReady:_0x38d1f3,isEnabled:_0x555fff}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x555fff&&_0x38d1f3&&_0x27668e)&&(!_0x4b2f82||(0x1===this['_step']?_0x5841e3<_0x27668e-0x1:_0x5841e3>0x0));}}class di extends _0x20a04{constructor(_0x33d298){super(_0x33d298);const _0x5534b2=this['bindTemplate'],_0x159d49=new _0x42549a(_0x33d298),_0x11c7e2=new _0x42549a(_0x33d298);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',(_0x2557b2,_0x39f0a5)=>_0x2557b2&&_0x39f0a5>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x17d99c,_0x3a7978,_0x229ea6,_0x1b00e8)=>{if(!_0x17d99c)return m(_0x33d298,'Loading...');if(!_0x229ea6)return m(_0x33d298,'No\x20changes');const _0x4085ba=m(_0x33d298,'NUMBER_OF_CHANGES',_0x229ea6);return _0x1b00e8?m(_0x33d298,'X_OF_Y_CHANGES',[_0x3a7978+0x1,_0x229ea6]):_0x4085ba;}),_0x159d49['set']({'label':m(_0x33d298,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x11c7e2['set']({'label':m(_0x33d298,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x159d49['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x11c7e2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x159d49['on']('execute',()=>this['fire']('execute','backward')),_0x11c7e2['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',_0x5534b2['if']('_isStatusLabelVisible','ck-hidden',_0x429a34=>!_0x429a34)]},'children':[{'text':_0x5534b2['to']('isNavigationMode',_0x2132cb=>_0x2132cb?m(_0x33d298,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x33d298,'Total')+':\x20')}]},{'text':_0x5534b2['to']('_statusText')}]},new _0x1641c6(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x159d49,_0x11c7e2]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x2cc9a5{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x31032f=this['editor']['editing']['view'];_0x31032f['change'](_0x36672f=>{for(const _0x3fe132 of _0x31032f['document']['roots'])_0x36672f['addClass'](ce,_0x3fe132);});}['hide'](){const _0x580d97=this['editor']['editing']['view'];_0x580d97['change'](_0x3cd98f=>{for(const _0x208719 of _0x580d97['document']['roots'])_0x3cd98f['removeClass'](ce,_0x208719);});}}class g extends _0x2cc9a5{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x45bb8=this['editor'],_0x14d723=_0x45bb8['plugins']['get'](d),_0x82dc71=_0x45bb8['plugins']['get'](ae);_0x45bb8['ui']['componentFactory']['add']('exitToEditing',_0x19c0c6=>{const _0x5d956b=new _0x42549a(_0x19c0c6);return _0x5d956b['set']({'label':m(_0x19c0c6,'Back\x20to\x20editing'),'icon':_0x587ab4['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x5d956b,'execute',()=>{_0x45bb8['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x5d956b;}),_0x45bb8['ui']['componentFactory']['add']('restoreRevision',_0x49f025=>{const _0x59cc03=new _0x42549a(_0x49f025);return _0x59cc03['set']({'label':m(_0x49f025,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x59cc03['bind']('isEnabled')['to'](_0x45bb8['commands']['get']('restoreRevision')),this['listenTo'](_0x59cc03,'execute',()=>_0x45bb8['execute']('restoreRevision')),_0x59cc03;}),_0x45bb8['ui']['componentFactory']['add']('changesNavigation',_0x24c1f4=>{const _0x547556=new di(_0x24c1f4),_0x2f570e=_0x45bb8['commands']['get']('showPreviousChange'),_0x40c69d=_0x45bb8['commands']['get']('showNextChange');return _0x547556['bind']('isBackwardNavigationEnabled')['to'](_0x2f570e,'isEnabled'),_0x547556['bind']('isForwardNavigationEnabled')['to'](_0x40c69d,'isEnabled'),_0x547556['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x14d723),this['listenTo'](_0x547556,'execute',(_0x1a0d06,_0x5ef5ab)=>{_0x45bb8['execute']('forward'===_0x5ef5ab?'showNextChange':'showPreviousChange');}),_0x547556;}),_0x82dc71['show'](),_0x14d723['on']('change:isReady',(_0x232e9,_0x3d62ee,_0x5a72e5)=>{_0x5a72e5?_0x82dc71['hide']():_0x82dc71['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x1e3007,_0x86dea8){super(_0x1e3007,_0x86dea8);const _0x3bca41=this['bindTemplate'];this['set']({'label':m(_0x1e3007,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x1e3007,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x3bca41['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 _0x4c283b=this['fieldView']['element'];this['_tooltipString']=_0x4c283b['scrollWidth']>_0x4c283b['clientWidth']&&_0x4c283b['value']||'';}}class ti extends _0x20a04{constructor(_0x1b93e5,_0x42214c,_0x3b7f65){super(_0x1b93e5);const _0x1a2234=new _0xe0f790();_0x1a2234['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x554817=['ck','ck-revision-history-sidebar__revision-author'];_0x3b7f65&&_0x554817['push']('ck-revision-history-sidebar__revision-author_creator');const _0x3d709c=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1b93e5,_0x3b7f65?'Revision\x20creator':'Revision\x20author')},'children':[_0x1a2234,_0x42214c['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x554817},'children':_0x3d709c});}}function ni(_0x163828,_0x4708cc){const _0x3c4391=_0x163828['bindTemplate'],_0x39ed33=_0x163828['locale'],_0x48f6c7=_0x47bc90(_0x39ed33);_0x48f6c7['panelPosition']='sw';const _0x42d4de=function(_0xe7cdbc,_0x10044e){const _0x191696=function(_0x1d5d95,_0x4ca66c){const _0x1ac7b6=_0x1d5d95['locale'],_0x31d827={'Compare\x20against\x20selected':m(_0x1ac7b6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x1ac7b6,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x1ac7b6,'Restore\x20this\x20revision')};return _0x4ca66c['map'](_0x24328f=>{const _0x209826=_0x31d827[_0x24328f['name']];return _0x209826&&_0x209826!==_0x24328f['name']&&(_0x24328f['name']=_0x209826),_0x24328f;});}(_0xe7cdbc,_0x10044e),_0x359b27=new _0x25af05();for(const _0x143f9e of _0x191696){const _0x234515={'type':'button','model':new to({'label':_0x143f9e['name'],'class':_0x143f9e['class'],'withText':!0x0,'role':'menuitem','_action':_0x143f9e['action']})};_0x234515['model']['bind']('isEnabled')['to'](_0xe7cdbc,'isActionsDropdownOpen',_0x36fc30=>'function'!=typeof _0x143f9e['isEnabled']||(!_0x36fc30||_0x143f9e['isEnabled'](_0xe7cdbc))),_0x359b27['add'](_0x234515);}return _0x359b27;}(_0x163828,_0x4708cc);return _0x163828['bind']('isActionsDropdownOpen')['to'](_0x48f6c7,'isOpen'),_0x48f6c7['buttonView']['set']({'label':m(_0x39ed33,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x587ab4['threeVerticalDots']}),_0x48f6c7['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3c4391['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3c4391['to'](_0x3e1f3c=>_0x3e1f3c['stopPropagation']())}}),_0x48f6c7['on']('execute',_0x5ce164=>{_0x163828['isReady']&&'function'==typeof _0x5ce164['source']['_action']&&_0x5ce164['source']['_action'](_0x163828);}),_0x3c94cf(_0x48f6c7,_0x42d4de,{'role':'menu'}),_0x48f6c7['listenTo'](_0x163828,'change:isActionsDropdownOpen',(_0x33d10c,_0x1473d9,_0x2b90e6)=>{if(_0x2b90e6)for(const _0x2b779e of _0x48f6c7['listView']['items']){const _0xc4f84=_0x2b779e['children']['first'],_0x27f7ec=_0x4708cc['find'](_0xfbcf50=>_0xfbcf50['action']===_0xc4f84['_action'])['isVisible'];_0x2b779e['isVisible']=void 0x0===_0x27f7ec||_0x27f7ec(_0x163828);}}),_0x48f6c7;}class ai extends/* #__PURE__ -- @preserve */
26
+ _0x541444(_0x20a04){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x2749e9,_0x32d15c,_0x432421,_0x32a418){super(_0x2749e9);const _0x3029b7=this['bindTemplate'],_0x367cab=function(_0xf25745,_0x154a98){const _0x4f2ac2=Array['from'](_0x154a98['authors'])['filter'](_0x239b6f=>_0x239b6f!=_0x154a98['creator']);return _0x154a98['creator']&&_0x4f2ac2['unshift'](_0x154a98['creator']),_0x4f2ac2['map'](_0x385864=>new ti(_0xf25745,_0x385864,_0x385864==_0x154a98['creator']));}(_0x2749e9,_0x32d15c);this['id']=_0x32d15c['id'],this['_revision']=_0x32d15c,this['_requireRevisionName']=_0x32a418,this['bind']('name','createdAt')['to'](_0x32d15c),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x25c2af=>{return _0x5330b9=_0x2749e9['uiLanguage'],(_0x3e3b89=_0x25c2af)['toLocaleDateString'](_0x5330b9,{'month':'long','day':'numeric'})+',\x20'+_0x3e3b89['toLocaleTimeString'](_0x5330b9,{'hour':'numeric','minute':'numeric'});var _0x5330b9,_0x3e3b89;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x2749e9,_0x517d42),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x25d9ff=>_0x25d9ff||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x52d67c,_0x57cca6)=>_0x52d67c&&_0x57cca6),this['revisionActionsView']=_0x432421&&_0x432421['length']?ni(this,_0x432421):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3029b7['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3029b7['if']('isEnabled','ck-disabled',_0x154016=>!_0x154016),_0x3029b7['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3029b7['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3029b7['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':_0x3029b7['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':_0x367cab}]},this['revisionActionsView']],'on':{'click':_0x3029b7['to'](_0x7c4049=>{_0x7c4049['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x476db1=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x476db1,'change',()=>{this['_requireRevisionName']&&!_0x476db1['value']||this['fire']('setName',{'id':this['id'],'name':_0x476db1['value']}),_0x476db1['value']||(_0x476db1['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x26f442,_0x4cc0b7){const _0x849d9a=_0x5d6d4b['fromJSDate'](_0x26f442)['setLocale'](_0x4cc0b7),_0x2a8c8d=_0x5d6d4b['local'](),_0xa71077=_0x2a8c8d['minus']({'days':0x1})['startOf']('day');let _0x43a133,_0xdf1602;return _0x849d9a['hasSame'](_0x2a8c8d,'day')?(_0x43a133=_0x849d9a['startOf']('day')['toJSDate'](),_0xdf1602=_0x849d9a['toRelativeCalendar']()):_0x849d9a['hasSame'](_0xa71077,'day')?(_0x43a133=_0xa71077['toJSDate'](),_0xdf1602=_0x849d9a['toRelativeCalendar']()):_0x849d9a['hasSame'](_0x2a8c8d,'week')?(_0x43a133=_0x849d9a['startOf']('week')['toJSDate'](),_0xdf1602=_0x849d9a['weekdayLong']||''):_0x849d9a['hasSame'](_0x2a8c8d,'year')?(_0x43a133=_0x849d9a['startOf']('month')['toJSDate'](),_0xdf1602=_0x849d9a['monthLong']||''):(_0x43a133=_0x849d9a['startOf']('year')['toJSDate'](),_0xdf1602=String(_0x849d9a['year'])),{'startDate':_0x43a133,'localizedPeriodName':_0xdf1602};}class vi extends _0x20a04{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x4f677e,_0x5c363f,_0x5b55e6,_0x14ec2f){super(_0x4f677e);const _0x3ef612=mi(_0x5c363f,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5c363f,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x5b55e6,this['_requireRevisionName']=_0x14ec2f,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':_0x3ef612}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x3e0ccf){const _0x2b53a2=new ai(this['locale'],_0x3e0ccf,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x2b53a2);}['removeRevision'](_0x597508){const _0x30d913=this['revisionViews']['find'](_0x26725d=>_0x26725d['id']===_0x597508['id']);this['revisionViews']['remove'](_0x30d913);}}class as extends _0x20a04{constructor(_0x6d1cd8){super(_0x6d1cd8);const _0x1f80c7=new _0xe0f790();_0x1f80c7['content']=_0x587ab4['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x1f80c7,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x6d1cd8,'Revision\x20history')]}]});}}class li extends _0x20a04{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5ed8b7,_0x2cebe4,_0x55f3d6,_0x37edfa){super(_0x5ed8b7);const _0x34cbbe=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2cebe4,this['_revisionActions']=_0x55f3d6,this['_requireRevisionName']=_0x37edfa,this['on']('select',(_0xd1262,_0x197320)=>{this['fire']('revisionSelected',_0x197320);}),this['on']('setName',(_0x125a68,_0xcd1626)=>{this['fire']('revisionSetName',_0xcd1626);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x5ed8b7),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x34cbbe['if']('isEnabled','ck-disabled',_0x2f897e=>!_0x2f897e)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x569fbd of this['_revisions'])this['_addRevision'](_0x569fbd);this['_revisions']['on']('add',(_0x470dc4,_0x54340e)=>{this['_addRevision'](_0x54340e);}),this['_revisions']['on']('remove',(_0x20bf18,_0x196863)=>{this['_removeRevision'](_0x196863);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5d352b=>_0x5d352b['revisionViews']['map'](_0x457f24=>_0x457f24))['flat']();}['selectRevision'](_0x20e4a3){for(const _0x268532 of this['revisionViews'])_0x20e4a3&&_0x20e4a3['id']===_0x268532['id']?_0x268532['select']():_0x268532['deselect']();}['highlightRevisions'](_0x5834c1){for(const _0x4ef98d of this['revisionViews'])_0x5834c1['some'](({id:_0x4dc0cc})=>_0x4dc0cc===_0x4ef98d['id'])?_0x4ef98d['highlight']():_0x4ef98d['unhighlight']();}['_addRevision'](_0x33fc3f){const _0xd92ba2=mi(_0x33fc3f['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x20c09a=this['timePeriodViews']['get'](0x0);_0x20c09a&&_0x20c09a['startDate']['getTime']()===_0xd92ba2['getTime']()||(_0x20c09a=new vi(this['locale'],_0xd92ba2,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x20c09a)),_0x20c09a['addRevision'](_0x33fc3f);}['_removeRevision'](_0x202179){const _0x249727=mi(_0x202179['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x249727)['removeRevision'](_0x202179);}['_getTimePeriodViewByStartDate'](_0x4a31ea){return this['timePeriodViews']['find'](_0x4ca93a=>_0x4ca93a['startDate']['getTime']()===_0x4a31ea['getTime']());}}class w extends _0x2cc9a5{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
27
27
  ((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
28
- bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x1aac90){super(_0x1aac90),this['_revisionViewer']=_0x1aac90['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x5d3405=this['_revisionsRepository']['_revisions'],_0x171fbc=this['_createRevisionActions'](),_0xebe0cc=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new vi(this['editor']['locale'],_0x5d3405,_0x171fbc,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',(_0x41ee38,_0x1c4a69)=>{_0x1c4a69['revisionViews']['on']('add',(_0x50bce3,_0x58e827)=>{_0x58e827['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)),_0xebe0cc['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x220ef5=this['_revisionsRepository']['getRevision'](0x0);if(_0x220ef5){const _0x1346b6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x220ef5['id']);this['_revisionViewer']['compare'](_0x220ef5,_0x1346b6);}}['_handleRevisionSelected'](_0x40218f,_0x532915){const _0x51afcd=this['_revisionsRepository']['getRevision'](_0x532915['id']),_0x525511=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x51afcd['id']);this['_revisionViewer']['compare'](_0x51afcd,_0x525511);}['_handleRevisionSetName'](_0x3cdc0a,_0x2ee554){this['_revisionsRepository']['getRevision'](_0x2ee554['id'])['setName'](_0x2ee554['name']);}['_handleDiffChange'](_0x9cb695,_0x47c6cc,_0x483ad8){const _0x3e6628=this['_revisionsRepository']['getRevisionsInDiff'](_0x483ad8);_0x3e6628['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x3e6628),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x3e6628[0x0]));}['_createRevisionActions'](){const _0x377e9e=this['editor'],_0xb36ff3=g['availableRevisionActions'],_0x21907b=_0x377e9e['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x21907b['length'])return _0x21907b['map'](_0x360fe9=>{const _0x492c94='string'==typeof _0x360fe9?Object['assign']({},_0xb36ff3[_0x360fe9]):_0x360fe9;return _0x492c94['action']=_0x492c94['action']['bind'](this,_0x377e9e),_0x492c94['isVisible']&&(_0x492c94['isVisible']=_0x492c94['isVisible']['bind'](this,_0x377e9e)),_0x492c94;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x52aebf},_0x2ce8b2)=>{const _0x2c8822=_0x52aebf['get'](d),_0x40df2b=_0x2c8822['repository'];let _0x51ac1d=_0x2c8822['diff']['newRevisionId'],_0x361c10=_0x2ce8b2['id'];_0x40df2b['getIndex'](_0x51ac1d)>_0x40df2b['getIndex'](_0x361c10)&&([_0x51ac1d,_0x361c10]=[_0x361c10,_0x51ac1d]),_0x2c8822['compare'](_0x51ac1d,_0x361c10);},'isVisible':({plugins:_0x8c6779},_0x1ace09)=>{const _0x2050bd=_0x8c6779['get'](d);return!(_0x2050bd['repository']['getRevisionsInDiff'](_0x2050bd['diff'])['length']>0x2)&&!_0x1ace09['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5c3ace,{id:_0x2a1cf0})=>{_0x5c3ace['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2a1cf0);},'isVisible':({plugins:_0x37a508},_0x1b0820)=>!!_0x37a508['get'](d)['repository']['getLaterVisibleRevision'](_0x1b0820['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5881a5},{id:_0x7b69fc,revisionNameView:_0x56814c})=>{const _0x6da884=_0x5881a5['get'](d),_0xabf031=_0x6da884['repository']['getEarlierVisibleRevision'](_0x7b69fc);_0x6da884['compare'](_0x7b69fc,_0xabf031),_0x56814c['focus'](),_0x56814c['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x56daa9,_0x3797ad){super(_0x56daa9),this['_view']=_0x3797ad,this['_toolbarConfig']=ot(_0x56daa9['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x3acd0b){const _0x3d330f=this['editor'],_0xfc03b1=this['view'],_0xd690ce=_0x3d330f['editing']['view'],_0x3ab298=_0xfc03b1['editable'],_0x5418b6=_0xd690ce['document']['getRoot']();_0x3ab298['name']=_0x5418b6['rootName'],_0xfc03b1['render']();const _0x18e9a3=_0x3ab298['element'];this['setEditableElement'](_0x3ab298['name'],_0x18e9a3),_0xfc03b1['editable']['bind']('isFocused')['to'](this['focusTracker']),_0xd690ce['attachDomRoot'](_0x18e9a3),this['_elementReplacer']['replace'](_0x3acd0b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x3def78=this['view'],_0x12af15=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x12af15['detachDomRoot'](_0x3def78['editable']['name']),_0x3def78['destroy']();}['_initToolbar'](){const _0x4dbe71=this['view'];_0x4dbe71['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4dbe71['stickyPanel']['limiterElement']=_0x4dbe71['element'],_0x4dbe71['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5c8dfd})=>_0x5c8dfd),_0x4dbe71['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4dbe71['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x443f9b,_0x113704,_0x2f90c5={}){super(_0x443f9b),this['stickyPanel']=new lt(_0x443f9b),this['toolbar']=new nt(_0x443f9b,{'shouldGroupWhenFull':_0x2f90c5['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x443f9b,_0x113704);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
- it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x5ca13a,_0x5b53e4){super(_0x5b53e4),this['sourceElement']=_0x5ca13a,this['model']['document']['createRoot']();const _0x3308d6=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x3308d6);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x2ac6d2,_0x5f3f73){const _0xc18cdb=new this(_0x2ac6d2,_0x5f3f73);return await _0xc18cdb['initPlugins'](),await _0xc18cdb['ui']['init'](_0x2ac6d2),await _0xc18cdb['data']['init'](_0xc18cdb['config']['get']('initialData')||''),_0xc18cdb['fire']('ready'),_0xc18cdb;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x6878ef{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x19a47e){function _0x3bb61e(_0x192fe3){return _0x192fe3['map'](_0x191bd2=>String['fromCharCode'](_0x191bd2))['join']('');}super(_0x19a47e),this['result']='end',_0x19a47e[_0x3bb61e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3bb61e([0x76,0x69,0x65,0x77])][_0x3bb61e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3bb61e([0x61,0x75,0x74,0x6f]),_0x19a47e[_0x3bb61e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x3bb61e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3bb61e([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x3bb61e([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x3bb61e([0x6f,0x6b])});}}class k extends _0x6878ef{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[u,f];}constructor(_0x427c5d){if(super(_0x427c5d),!this['editor']['config']['get']('revisionHistory'))throw new _0x9e8044('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x108415=>this['_showRevisionViewer']({..._0x108415,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x546ac8=>this['_closeRevisionViewer'](_0x546ac8)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x1f4f88=>this['_restoreRevision'](_0x1f4f88)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1bf068){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1bf068;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x417f15){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x417f15);}['getRevision'](_0xa3a27f){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xa3a27f);}['getRevisions'](_0x4cac1a){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x4cac1a||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x193f79=this['editor'],_0x2dffcf=_0x4d6844(_0x193f79,p),_0x4326d6=_0x193f79['plugins']['get']('RevisionTracker'),_0x4c9ad5=_0x193f79['plugins']['get']('Users')['users'];return _0x2dffcf['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2dffcf['lazyRoots'],(_0x2dffcf['plugins']['push'](Rt,d,w,class extends _0x6878ef{static get['requires'](){return[d,'Users'];}['init'](){const _0x356156=this['editor']['plugins']['get']('Users');for(const _0x2730e3 of _0x4c9ad5)_0x2730e3['isAnonymous']||_0x356156['getUser'](_0x2730e3['id'])||_0x356156['addUser'](_0x2730e3);const _0x510986=_0x4326d6['repository']['getRevisions']();let _0x59cbfb=null;const _0x557cd9=this['editor']['plugins']['get']('RevisionViewer');_0x557cd9['adapter']=_0x4326d6['adapter'],_0x557cd9['bind']('isEnabled')['to'](_0x4326d6),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x193f79,'isReadOnly',_0x2786cf=>!_0x2786cf);for(const _0x3da0d2 of _0x510986){const _0x5c60a3=null===_0x3da0d2['creator'];if(_0x5c60a3&&_0x3da0d2['toVersion']===_0x3da0d2['fromVersion'])continue;const _0x530122=_0x3da0d2['toJSON']();_0x557cd9['addRevisionData'](_0x530122,(_0x1b0254,_0x5e375d,_0x5f1bfd)=>{if(_0x5c60a3){if(_0x59cbfb)_0x59cbfb['_update'](_0x1b0254,_0x5e375d);else{if(!_0x5e375d){const _0x2ff5cd=_0x5f1bfd['toJSON']();_0x2ff5cd['id']=_0x3facc5(),_0x4326d6['saveRevision'](_0x2ff5cd,_0x5f1bfd['toVersion'])['then'](_0x30e61a=>{_0x59cbfb=_0x30e61a;});}}}else _0x3da0d2['_update'](_0x1b0254,_0x5e375d);});}}},g),_0x2dffcf);}['_enhanceShowRevisionViewerCallback'](){const _0x189de4=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x11f226=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x793fc6=this['editor']['plugins']['get']('Autosave');await _0x793fc6['save']();}else await _0x11f226['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x4e6aa1=this['editor']['plugins']['get']('Dialog');_0x4e6aa1['isOpen']&&_0x4e6aa1['hide']();}const _0x350c7=this['_getRevisionViewerEditorConfig']();return _0x189de4(_0x350c7)['then'](_0x51f7dc=>{return(this['_viewerEditor']=_0x51f7dc,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x51f7dc;})['catch'](_0x108c85=>(console['error'](_0x108c85),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1bfe0e=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x1bfe0e(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x3fcef8=this['editor']['plugins']['get']('Annotations');_0x3fcef8['refreshVisibility'](),_0x3fcef8['refreshPositioning']();}})));}['_showRevisionViewer'](_0x4839f5){const _0x3bf13a=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x4051ea=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x38b2bc=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x38b2bc,_0x4839f5)['then'](_0x2f9edf=>(_0x4051ea['style']['display']='block',_0x3bf13a['style']['display']='none',_0x2f9edf));}['_closeRevisionViewer'](_0x376bb0){const _0x381723=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x381723['style']['display']='',_0x376bb0['destroy']();}async['_restoreRevision'](_0x5e9e91){const _0x40c1a2=this['editor'],_0x532eca=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x513e2c=_0x40c1a2['plugins']['get']('RevisionTracker'),_0x57baec=_0x532eca['repository']['getRevision'](_0x5e9e91);let _0x1bc1e3,_0x4762f2,_0x4a304d;try{_0x1bc1e3=await _0x532eca['getRevisionData'](_0x57baec),_0x4762f2=await _0x532eca['getRevisionRootsAttributes'](_0x57baec);}catch(_0x4e4d2c){return void console['error'](_0x4e4d2c);}_0x40c1a2['model']['change'](_0x382ac0=>{for(const _0x283c6b of Array['from'](_0x40c1a2['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x382ac0['removeMarker'](_0x283c6b);}),_0x532eca['isReady']=!0x1,_0x40c1a2['model']['enqueueChange'](_0x1bff06=>{_0x1bff06['setSelection'](null),_0x1bff06['removeSelectionAttribute'](_0x40c1a2['model']['document']['selection']['getAttributeKeys']());const _0x38c258=Object['keys'](_0x1bc1e3);for(const _0x1474dd of _0x40c1a2['model']['document']['roots'])'$graveyard'!=_0x1474dd['rootName']&&_0x1474dd['isAttached']()&&!_0x38c258['includes'](_0x1474dd['rootName'])&&_0x1bff06['detachRoot'](_0x1474dd);for(const _0x57ccfa of _0x38c258){let _0x2ac6b7=_0x40c1a2['model']['document']['getRoot'](_0x57ccfa);_0x2ac6b7&&_0x2ac6b7['isAttached']()||(_0x2ac6b7=_0x1bff06['addRoot'](_0x57ccfa));const _0xfe51df=_0x4762f2[_0x57ccfa],_0x2b5549=Object['keys'](_0xfe51df),_0x5e9347=_0x1bc1e3[_0x57ccfa];for(const _0x5bd906 of _0x2ac6b7['getAttributeKeys']())_0x2b5549['includes'](_0x5bd906)||_0x1bff06['removeAttribute'](_0x5bd906,_0x2ac6b7);for(const _0x58ac8c of _0x2b5549)_0x1bff06['setAttribute'](_0x58ac8c,_0x4762f2[_0x57ccfa][_0x58ac8c],_0x2ac6b7);_0x1bff06['remove'](_0x1bff06['createRangeIn'](_0x2ac6b7)),_0x1bff06['insert'](_0x40c1a2['data']['parse'](_0x5e9347,_0x2ac6b7),_0x2ac6b7,0x0);}});const _0x13fab6=m(_0x40c1a2['locale'],'Restored');if(_0x57baec['name'])_0x4a304d=-0x1==_0x57baec['name']['indexOf'](_0x13fab6)?_0x13fab6+':\x20'+_0x57baec['name']:_0x57baec['name'];else _0x4a304d=_0x13fab6+':\x20'+(_0x57baec['createdAt']['toLocaleDateString'](_0x40c1a2['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x57baec['createdAt']['toLocaleTimeString'](_0x40c1a2['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x513e2c['saveRevision']({'name':_0x4a304d}),_0x532eca['isReady']=!0x0,_0x40c1a2['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{h as Revision,k as RevisionHistory,f as RevisionHistoryUI,u as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,w as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
28
+ bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x32d4ae){super(_0x32d4ae),this['_revisionViewer']=_0x32d4ae['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x45ada5=this['_revisionsRepository']['_revisions'],_0x930fab=this['_createRevisionActions'](),_0x187e12=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new li(this['editor']['locale'],_0x45ada5,_0x930fab,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',(_0x2a8334,_0x403276)=>{_0x403276['revisionViews']['on']('add',(_0x1d765d,_0x43eb59)=>{_0x43eb59['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)),_0x187e12['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2a55e7=this['_revisionsRepository']['getRevision'](0x0);if(_0x2a55e7){const _0x1e2ef6=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2a55e7['id']);this['_revisionViewer']['compare'](_0x2a55e7,_0x1e2ef6);}}['_handleRevisionSelected'](_0x2222bb,_0x2c6f1b){const _0xa6794=this['_revisionsRepository']['getRevision'](_0x2c6f1b['id']),_0xfc4331=this['_revisionsRepository']['getEarlierVisibleRevision'](_0xa6794['id']);this['_revisionViewer']['compare'](_0xa6794,_0xfc4331);}['_handleRevisionSetName'](_0x1ee27d,_0x15f58f){this['_revisionsRepository']['getRevision'](_0x15f58f['id'])['setName'](_0x15f58f['name']);}['_handleDiffChange'](_0x4c5733,_0xb23752,_0x103329){const _0x4cc191=this['_revisionsRepository']['getRevisionsInDiff'](_0x103329);_0x4cc191['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4cc191),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4cc191[0x0]));}['_createRevisionActions'](){const _0x38fb18=this['editor'],_0x2f6511=w['availableRevisionActions'],_0x3abfa3=_0x38fb18['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x3abfa3['length'])return _0x3abfa3['map'](_0x47a43f=>{const _0xcc880a='string'==typeof _0x47a43f?Object['assign']({},_0x2f6511[_0x47a43f]):_0x47a43f;return _0xcc880a['action']=_0xcc880a['action']['bind'](this,_0x38fb18),_0xcc880a['isVisible']&&(_0xcc880a['isVisible']=_0xcc880a['isVisible']['bind'](this,_0x38fb18)),_0xcc880a;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x4386c3},_0x3c0365)=>{const _0x251932=_0x4386c3['get'](d),_0x81a6de=_0x251932['repository'];let _0x2f1c93=_0x251932['diff']['newRevisionId'],_0x2bbf67=_0x3c0365['id'];_0x81a6de['getIndex'](_0x2f1c93)>_0x81a6de['getIndex'](_0x2bbf67)&&([_0x2f1c93,_0x2bbf67]=[_0x2bbf67,_0x2f1c93]),_0x251932['compare'](_0x2f1c93,_0x2bbf67);},'isVisible':({plugins:_0x10df62},_0x2d6dfa)=>{const _0x391711=_0x10df62['get'](d);return!(_0x391711['repository']['getRevisionsInDiff'](_0x391711['diff'])['length']>0x2)&&!_0x2d6dfa['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x2b5a9c,{id:_0x1c331e})=>{_0x2b5a9c['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x1c331e);},'isVisible':({plugins:_0x1f8813},_0xbc42f1)=>!!_0x1f8813['get'](d)['repository']['getLaterVisibleRevision'](_0xbc42f1['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x574576},{id:_0x2df581,revisionNameView:_0x28d34c})=>{const _0x220906=_0x574576['get'](d),_0x55193e=_0x220906['repository']['getEarlierVisibleRevision'](_0x2df581);_0x220906['compare'](_0x2df581,_0x55193e),_0x28d34c['focus'](),_0x28d34c['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x278235,_0x1c7b78){super(_0x278235),this['_view']=_0x1c7b78,this['_toolbarConfig']=ot(_0x278235['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x1535ff){const _0x8a00ad=this['editor'],_0x13a2b8=this['view'],_0x195963=_0x8a00ad['editing']['view'],_0x411dd1=_0x13a2b8['editable'],_0x2bd256=_0x195963['document']['getRoot']();_0x411dd1['name']=_0x2bd256['rootName'],_0x13a2b8['render']();const _0x1664b0=_0x411dd1['element'];this['setEditableElement'](_0x411dd1['name'],_0x1664b0),_0x13a2b8['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x195963['attachDomRoot'](_0x1664b0),this['_elementReplacer']['replace'](_0x1535ff,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0xb6e84f=this['view'],_0x1afb95=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x1afb95['detachDomRoot'](_0xb6e84f['editable']['name']),_0xb6e84f['destroy']();}['_initToolbar'](){const _0x3c8c43=this['view'];_0x3c8c43['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x3c8c43['stickyPanel']['limiterElement']=_0x3c8c43['element'],_0x3c8c43['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x5d5965})=>_0x5d5965),_0x3c8c43['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x3c8c43['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x1bbaea,_0x158e1b,_0x312f54={}){super(_0x1bbaea),this['stickyPanel']=new ut(_0x1bbaea),this['toolbar']=new lt(_0x1bbaea,{'shouldGroupWhenFull':_0x312f54['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x1bbaea,_0x158e1b);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
29
+ it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x4c8004,_0x15b349){super(_0x15b349),this['sourceElement']=_0x4c8004,this['model']['document']['createRoot']();const _0x12b51b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x12b51b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x41efa1,_0x2f6aab){const _0x507907=new this(_0x41efa1,_0x2f6aab);return await _0x507907['initPlugins'](),await _0x507907['ui']['init'](_0x41efa1),await _0x507907['data']['init'](_0x507907['config']['get']('initialData')||''),_0x507907['fire']('ready'),_0x507907;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x2cc9a5{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1b80d1){function _0x5616ad(_0x3c7ba0){return _0x3c7ba0['map'](_0x5a15a8=>String['fromCharCode'](_0x5a15a8))['join']('');}super(_0x1b80d1),this['result']='end',_0x1b80d1[_0x5616ad([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5616ad([0x76,0x69,0x65,0x77])][_0x5616ad([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5616ad([0x61,0x75,0x74,0x6f]),_0x1b80d1[_0x5616ad([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x5616ad([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5616ad([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x5616ad([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x5616ad([0x6f,0x6b])});}}class k extends _0x2cc9a5{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x44f6cc){if(super(_0x44f6cc),!this['editor']['config']['get']('revisionHistory'))throw new _0x2b80a9('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5143a4=>this['_showRevisionViewer']({..._0x5143a4,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x48b83f=>this['_closeRevisionViewer'](_0x48b83f)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x24494e=>this['_restoreRevision'](_0x24494e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x43575f){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x43575f;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x67e3d8){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x67e3d8);}['getRevision'](_0x1ca26b){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x1ca26b);}['getRevisions'](_0x2cf48e){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2cf48e||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x3d2339=this['editor'],_0x22f8f7=_0x50c72b(_0x3d2339,p),_0x1d3cd5=_0x3d2339['plugins']['get']('RevisionTracker'),_0x5f2244=_0x3d2339['plugins']['get']('Users')['users'];return _0x22f8f7['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x22f8f7['lazyRoots'],(_0x22f8f7['plugins']['push'](Rt,d,g,class extends _0x2cc9a5{static get['requires'](){return[d,'Users'];}['init'](){const _0x421681=this['editor']['plugins']['get']('Users');for(const _0x55d6aa of _0x5f2244)_0x55d6aa['isAnonymous']||_0x421681['getUser'](_0x55d6aa['id'])||_0x421681['addUser'](_0x55d6aa);const _0x3d4a6a=_0x1d3cd5['repository']['getRevisions']();let _0x324b04=null;const _0x5654d1=this['editor']['plugins']['get']('RevisionViewer');_0x5654d1['adapter']=_0x1d3cd5['adapter'],_0x5654d1['bind']('isEnabled')['to'](_0x1d3cd5),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x3d2339,'isReadOnly',_0x230530=>!_0x230530);for(const _0x2cf1ba of _0x3d4a6a){const _0x90ab1d=null===_0x2cf1ba['creator'];if(_0x90ab1d&&_0x2cf1ba['toVersion']===_0x2cf1ba['fromVersion'])continue;const _0xa25c3e=_0x2cf1ba['toJSON']();_0x5654d1['addRevisionData'](_0xa25c3e,(_0x4adcc9,_0x58a3f7,_0x2b6bcf)=>{if(_0x90ab1d){if(_0x324b04)_0x324b04['_update'](_0x4adcc9,_0x58a3f7);else{if(!_0x58a3f7){const _0x286eb0=_0x2b6bcf['toJSON']();_0x286eb0['id']=_0x4a2468(),_0x1d3cd5['saveRevision'](_0x286eb0,_0x2b6bcf['toVersion'])['then'](_0x1493d8=>{_0x324b04=_0x1493d8;});}}}else _0x2cf1ba['_update'](_0x4adcc9,_0x58a3f7);});}}},w),_0x22f8f7);}['_enhanceShowRevisionViewerCallback'](){const _0x5ae6d8=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x85f18a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x370931=this['editor']['plugins']['get']('Autosave');await _0x370931['save']();}else await _0x85f18a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x46804a=this['editor']['plugins']['get']('Dialog');_0x46804a['isOpen']&&_0x46804a['hide']();}const _0x5794ee=this['_getRevisionViewerEditorConfig']();return _0x5ae6d8(_0x5794ee)['then'](_0xdc764e=>{return(this['_viewerEditor']=_0xdc764e,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0xdc764e;})['catch'](_0x369cb7=>(console['error'](_0x369cb7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x4439a1=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x4439a1(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x21cca4=this['editor']['plugins']['get']('Annotations');_0x21cca4['refreshVisibility'](),_0x21cca4['refreshPositioning']();}})));}['_showRevisionViewer'](_0x542373){const _0x410713=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x55bf50=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x27722a=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x27722a,_0x542373)['then'](_0x4a8a83=>(_0x55bf50['style']['display']='block',_0x410713['style']['display']='none',_0x4a8a83));}['_closeRevisionViewer'](_0x3a90f4){const _0x2ad054=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2ad054['style']['display']='',_0x3a90f4['destroy']();}async['_restoreRevision'](_0x31a345){const _0x33eaf3=this['editor'],_0x4aeed8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x3928b8=_0x33eaf3['plugins']['get']('RevisionTracker'),_0x287c12=_0x4aeed8['repository']['getRevision'](_0x31a345);let _0x201add,_0x1c6471,_0x358e66;try{_0x201add=await _0x4aeed8['getRevisionData'](_0x287c12),_0x1c6471=await _0x4aeed8['getRevisionRootsAttributes'](_0x287c12);}catch(_0x1d97a7){return void console['error'](_0x1d97a7);}_0x33eaf3['model']['change'](_0x37d5b2=>{for(const _0x5511f2 of Array['from'](_0x33eaf3['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x37d5b2['removeMarker'](_0x5511f2);}),_0x4aeed8['isReady']=!0x1,_0x33eaf3['model']['enqueueChange'](_0x190e3b=>{_0x190e3b['setSelection'](null),_0x190e3b['removeSelectionAttribute'](_0x33eaf3['model']['document']['selection']['getAttributeKeys']());const _0x5707f1=Object['keys'](_0x201add);for(const _0x305234 of _0x33eaf3['model']['document']['roots'])'$graveyard'!=_0x305234['rootName']&&_0x305234['isAttached']()&&!_0x5707f1['includes'](_0x305234['rootName'])&&_0x190e3b['detachRoot'](_0x305234);for(const _0x163add of _0x5707f1){let _0x5a9826=_0x33eaf3['model']['document']['getRoot'](_0x163add);_0x5a9826&&_0x5a9826['isAttached']()||(_0x5a9826=_0x190e3b['addRoot'](_0x163add));const _0x4f633e=_0x1c6471[_0x163add],_0x5e3e31=Object['keys'](_0x4f633e),_0x1b3151=_0x201add[_0x163add];for(const _0x395873 of _0x5a9826['getAttributeKeys']())_0x5e3e31['includes'](_0x395873)||_0x190e3b['removeAttribute'](_0x395873,_0x5a9826);for(const _0xe03b9e of _0x5e3e31)_0x190e3b['setAttribute'](_0xe03b9e,_0x1c6471[_0x163add][_0xe03b9e],_0x5a9826);_0x190e3b['remove'](_0x190e3b['createRangeIn'](_0x5a9826)),_0x190e3b['insert'](_0x33eaf3['data']['parse'](_0x1b3151,_0x5a9826),_0x5a9826,0x0);}});const _0x3d28c0=m(_0x33eaf3['locale'],'Restored');if(_0x287c12['name'])_0x358e66=-0x1==_0x287c12['name']['indexOf'](_0x3d28c0)?_0x3d28c0+':\x20'+_0x287c12['name']:_0x287c12['name'];else _0x358e66=_0x3d28c0+':\x20'+(_0x287c12['createdAt']['toLocaleDateString'](_0x33eaf3['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x287c12['createdAt']['toLocaleTimeString'](_0x33eaf3['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x3928b8['saveRevision']({'name':_0x358e66}),_0x4aeed8['isReady']=!0x0,_0x33eaf3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};