@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20241216.0 → 0.0.0-nightly-20241218.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 (213) hide show
  1. package/build/revision-history.js +1 -1
  2. package/dist/index-editor.css +1 -0
  3. package/dist/index.css +2 -0
  4. package/dist/index.js +5 -7
  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 +27 -8
  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/revisionviewerloadingoverlay.css +2 -0
  181. package/dist/augmentation.d.ts +0 -33
  182. package/dist/changeitem.d.ts +0 -62
  183. package/dist/editor/revisionviewereditor.d.ts +0 -31
  184. package/dist/editor/revisionviewereditorui.d.ts +0 -32
  185. package/dist/editor/revisionviewereditoruiview.d.ts +0 -47
  186. package/dist/index.d.ts +0 -20
  187. package/dist/revision.d.ts +0 -157
  188. package/dist/revisiondiff.d.ts +0 -28
  189. package/dist/revisionhistory.d.ts +0 -111
  190. package/dist/revisionhistoryadapter.d.ts +0 -68
  191. package/dist/revisionhistoryconfig.d.ts +0 -75
  192. package/dist/revisionsrepository.d.ts +0 -64
  193. package/dist/revisiontracker.d.ts +0 -141
  194. package/dist/revisionviewer.d.ts +0 -119
  195. package/dist/ui/revision/createrevisionactionsdropdown.d.ts +0 -17
  196. package/dist/ui/revision/revisionauthorview.d.ts +0 -18
  197. package/dist/ui/revision/revisionnameview.d.ts +0 -34
  198. package/dist/ui/revision/revisionview.d.ts +0 -99
  199. package/dist/ui/revision/subrevisioncollapserview.d.ts +0 -25
  200. package/dist/ui/revision/subrevisionview.d.ts +0 -38
  201. package/dist/ui/revision/utils.d.ts +0 -9
  202. package/dist/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +0 -61
  203. package/dist/ui/revisionhistory/revisionhistoryui.d.ts +0 -38
  204. package/dist/ui/revisionssidebar/revisionssidebar.d.ts +0 -56
  205. package/dist/ui/revisionssidebar/revisionssidebarheaderview.d.ts +0 -20
  206. package/dist/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +0 -33
  207. package/dist/ui/revisionssidebar/revisionssidebarview.d.ts +0 -48
  208. package/dist/ui/revisionssidebar/utils.d.ts +0 -13
  209. package/dist/ui/revisionviewer/changedetailsview.d.ts +0 -26
  210. package/dist/ui/revisionviewer/changesnavigationview.d.ts +0 -44
  211. package/dist/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +0 -38
  212. package/dist/ui/revisionviewer/revisionviewerui.d.ts +0 -40
  213. package/dist/utils/common-translations.d.ts +0 -15
package/dist/index.js CHANGED
@@ -20,10 +20,8 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ObservableMixin as _0xfe4998,uid as _0x119d0b,Collection as _0x3fb858,logWarning as _0x135dde,FocusTracker as _0x3b3378,KeystrokeHandler as _0x178d9d,scrollViewportToShowTarget as _0x4741af,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x406c6c}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4de36a,set as _0x28c9cc,unset as _0x54d35c,isEqual as _0x497f6}from'lodash-es';import{Plugin as _0x41d97b,PendingActions as _0x4a1232,icons as _0x536204,Command as _0x42c4ef,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x371067,getMarkerDomElement as _0x50cf16,ConfirmMixin as _0x1f7203,sanitizeEditorConfig as _0x9356d4}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x2ff272,ViewText as _0x5819cc,ViewElement as _0x17cad2,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x880e00,ViewAttributeElement as _0x157de6,ViewEmptyElement as _0x53cb6d,ViewRawElement as _0x3add22,ViewUIElement as _0x1b5e13,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x41b252,submitHandler as _0x41d6b9,LabeledFieldView as _0x2b20cf,createLabeledInputText as _0x2765cf,createDropdown as _0xa55c8b,ListView as _0x5f2c5e,ListItemView as _0x3f3f14,ButtonView as te,MenuBarMenuView as _0x560a34,MenuBarMenuListView as _0x2543f3,MenuBarMenuListItemView as _0x377068,MenuBarMenuListItemButtonView as _0x1692f1,ContextualBalloon as _0x48c3b2,ToolbarSeparatorView as _0x32311f,IconView as _0x3bdf85,addListToDropdown as to,ViewModel as _0x22060f,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x25d485}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
- _0xfe4998(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x3047c5){super(),this['id']=_0x3047c5['id']||_0x119d0b(),this['creator']=_0x3047c5['creator']||null,this['authors']=_0x3047c5['authors']||[],this['diffData']=_0x3047c5['diffData']||null,this['toVersion']=_0x3047c5['toVersion']||0x0,this['fromVersion']=_0x3047c5['fromVersion']||0x0,this['set']('name',_0x3047c5['name']||''),this['set']('createdAt',_0x3047c5['createdAt']||new Date()),this['set']('attributes',_0x3047c5['attributes']||{});}['setName'](_0xd8f419){this['_update']({'name':_0xd8f419});}['setAttribute'](_0x33a3e0,_0x2a8127){const _0x49f1d8=_0x4de36a(this['attributes']);_0x28c9cc(_0x49f1d8,_0x33a3e0,_0x2a8127),this['_update']({'attributes':_0x49f1d8});}['removeAttribute'](_0x2d5d91){const _0x37875a=_0x4de36a(this['attributes']);_0x54d35c(_0x37875a,_0x2d5d91),this['_update']({'attributes':_0x37875a});}['_update'](_0x3ffb76,_0x58de8e=!0x1){let _0x5e5ee7=!0x1;const _0x2e309f={'id':this['id']},_0x31cd5b=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x5932a5 of _0x31cd5b){const _0x159f0a=_0x3ffb76[_0x5932a5];void 0x0!==_0x159f0a&&_0x159f0a!==this[_0x5932a5]&&(this[_0x5932a5]=_0x159f0a,_0x2e309f[_0x5932a5]=_0x159f0a,_0x5e5ee7=!0x0);}_0x5e5ee7&&(_0x2e309f['authors']&&(_0x2e309f['authorsIds']=_0x2e309f['authors']['map'](_0x26fb8b=>_0x26fb8b['id']),delete _0x2e309f['authors']),this['fire']('_update',_0x2e309f,_0x58de8e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x201250=>_0x201250['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x41d97b{['_revisions'];static get['requires'](){return[_0x371067];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x42d8de){super(_0x42d8de),this['_revisions']=new _0x3fb858();}['afterInit'](){!async function(_0xa747d1){const _0x3d0f41=_0x24472d([0x33,0x70,0x35,0x69,0x65,0x6d,0x57,0x34,0x77,0x4d,0x4f,0x43,0x6f,0x4c,0x78,0x59,0x36,0x44,0x6e,0x75,0x4a,0x5a,0x58,0x76,0x66,0x41,0x71,0x4b,0x64,0x55,0x56,0x37,0x51,0x4e,0x50,0x6c,0x39,0x63,0x52,0x74,0x54,0x46,0x32,0x62,0x67,0x72,0x68,0x79,0x45,0x53,0x47,0x30,0x31,0x49,0x42,0x7a,0x6a,0x38,0x6b,0x48,0x61,0x73]),_0x2937d6=0xeb829,_0x27ea1d=0x147dca6,_0x5af3f0=0x140857e^_0x27ea1d,_0x95e3df=window[_0x24472d([0x44,0x61,0x74,0x65])][_0x24472d([0x6e,0x6f,0x77])](),_0x440f17=_0xa747d1[_0x24472d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cd7eb=new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x23faf7=>{_0x440f17[_0x24472d([0x6f,0x6e,0x63,0x65])](_0x24472d([0x72,0x65,0x61,0x64,0x79]),_0x23faf7);}),_0x4d6b55={[_0x24472d([0x6b,0x74,0x79])]:_0x24472d([0x45,0x43]),[_0x24472d([0x75,0x73,0x65])]:_0x24472d([0x73,0x69,0x67]),[_0x24472d([0x63,0x72,0x76])]:_0x24472d([0x50,0x2d,0x32,0x35,0x36]),[_0x24472d([0x78])]:_0x24472d([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]),[_0x24472d([0x79])]:_0x24472d([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]),[_0x24472d([0x61,0x6c,0x67])]:_0x24472d([0x45,0x53,0x32,0x35,0x36])},_0x5c3045=_0x440f17[_0x24472d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x24472d([0x67,0x65,0x74])](_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1cf70c(){let _0x5d821b,_0x1496e5=null,_0x37d845=null;try{if(_0x5c3045==_0x24472d([0x47,0x50,0x4c]))return _0x24472d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d821b=_0x22b5ec(),!_0x5d821b)return _0x24472d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d821b[_0x24472d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x37d845=_0x4a57f4(_0x5d821b[_0x24472d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d821b[_0x24472d([0x6a,0x74,0x69])])),await _0x486bdb()?_0x1f2d02()?_0x455d69()?_0x24472d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2860ff()?(_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24472d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1496e5=_0x591480(_0x24472d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24472d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1496e5=_0x591480(_0x24472d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x24472d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x1496e5=_0x591480(_0x24472d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2fa3e3()):_0x24472d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x24472d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x24472d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x3ea269){return _0x24472d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x455d69(){const _0x56c8b7=[_0x24472d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x24472d([0x74,0x72,0x69,0x61,0x6c])][_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x95e3df/0x3e8:0xe10*_0x5af3f0;return _0x5d821b[_0x24472d([0x65,0x78,0x70])]<_0x56c8b7;}function _0x1f2d02(){const _0x48d240=_0x5d821b[_0x24472d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x48d240)return!0x1;if(_0x48d240[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x2a])))return!0x0;if(_0x48d240[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x52,0x48])))return!0x0;if(_0x48d240[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x52,0x52,0x48]))){if(_0x3d57f5())return!0x0;if(_0x1457b2()||_0x523b4c())return!0x0;}return!0x1;}function _0x2860ff(){const _0x4eccb0=_0x5d821b[_0x24472d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4eccb0||0x0==_0x4eccb0[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2986c1}=new URL(window[_0x24472d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4eccb0[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2986c1))return!0x0;const _0x1bcfff=_0x2986c1[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e]));return _0x4eccb0[_0x24472d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10b36e=>_0x10b36e[_0x24472d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x24472d([0x2a])))[_0x24472d([0x6d,0x61,0x70])](_0x5c8aca=>_0x5c8aca[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e])))[_0x24472d([0x73,0x6f,0x6d,0x65])](_0x48d580=>_0x1bcfff[_0x24472d([0x65,0x76,0x65,0x72,0x79])]((_0x14536d,_0x5a35ef)=>_0x48d580[_0x5a35ef]===_0x14536d||_0x48d580[_0x5a35ef]===_0x24472d([0x2a])));}function _0x2fa3e3(){return _0x1496e5&&_0x37d845?new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54b934,_0x16b4b6)=>{_0x1496e5[_0x24472d([0x74,0x68,0x65,0x6e])](_0x54b934,_0x16b4b6),_0x37d845[_0x24472d([0x74,0x68,0x65,0x6e])](_0x49e8ae=>{_0x49e8ae!=_0x24472d([0x56,0x61,0x6c,0x69,0x64])&&_0x54b934(_0x49e8ae);},_0x16b4b6);}):_0x1496e5||_0x37d845||_0x24472d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4a57f4(_0x7bcd85,_0x5421ab){return new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d2140=>{if(_0x287d80())return _0x5d2140(_0x24472d([0x56,0x61,0x6c,0x69,0x64]));_0x3db309(),_0x440f17[_0x24472d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x24472d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x487cc3=!0x1;const _0x2fd071=_0x119d0b();function _0x4c7178(_0x491336){return!!_0x491336&&(typeof _0x491336===_0x24472d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x491336===_0x24472d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x491336[_0x24472d([0x74,0x68,0x65,0x6e])]===_0x24472d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x491336[_0x24472d([0x63,0x61,0x74,0x63,0x68])]===_0x24472d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x360723(_0x4585f7){_0x3843fd(_0x4585f7)[_0x24472d([0x74,0x68,0x65,0x6e])](_0x3e0de2=>{if(!_0x3e0de2||_0x3e0de2[_0x24472d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x24472d([0x6f,0x6b]))return _0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x51babc(_0x3c88a2(_0x2fd071+_0x5421ab))!=_0x3e0de2[_0x24472d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x24472d([0x56,0x61,0x6c,0x69,0x64]);})[_0x24472d([0x74,0x68,0x65,0x6e])](_0x2f3648=>(_0x4e1a7a(),_0x2f3648),()=>{const _0x10fb6a=_0x3ef09c();return null==_0x10fb6a?(_0x4e1a7a(),_0x24472d([0x56,0x61,0x6c,0x69,0x64])):_0x24472d(_0x95e3df-_0x10fb6a>(0x254b58a6^_0x27ea1d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x24472d([0x74,0x68,0x65,0x6e])](_0x5d2140)[_0x24472d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5d2140(_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x432b0f=0x1713226^_0x27ea1d;function _0x4e1a7a(){const _0x183782=_0x24472d([0x6c,0x6c,0x63,0x74,0x2d])+_0x51babc(_0x3c88a2(_0x7bcd85)),_0x340195=_0x5831fa(_0x51babc(window[_0x24472d([0x4d,0x61,0x74,0x68])][_0x24472d([0x63,0x65,0x69,0x6c])](_0x95e3df/_0x432b0f)));window[_0x24472d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24472d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x183782,_0x340195);}function _0x3ef09c(){const _0x28bde6=_0x24472d([0x6c,0x6c,0x63,0x74,0x2d])+_0x51babc(_0x3c88a2(_0x7bcd85)),_0x3a4904=window[_0x24472d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x24472d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28bde6);return _0x3a4904?window[_0x24472d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5831fa(_0x3a4904),0x10)*_0x432b0f:null;}function _0x3843fd(_0x2d6301){return new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d5bec,_0x3cccc0)=>{_0x2d6301[_0x24472d([0x74,0x68,0x65,0x6e])](_0x4d5bec,_0x3cccc0),window[_0x24472d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3cccc0,0x1460866^_0x27ea1d);});}}_0x440f17[_0x24472d([0x6f,0x6e])](_0x24472d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b8d2a,_0x4e5be5)=>{if(_0x4e5be5[0x0]!=_0x7bcd85)return _0x5d2140(_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4e5be5[0x1]={..._0x4e5be5[0x1],[_0x24472d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fd071};},{[_0x24472d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24472d([0x68,0x69,0x67,0x68])}),_0x440f17[_0x24472d([0x6f,0x6e])](_0x24472d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5c220b=>{_0x4c7178(_0x5c220b[_0x24472d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x487cc3=!0x0,_0x360723(_0x5c220b[_0x24472d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x24472d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x24472d([0x6c,0x6f,0x77])}),_0x1cd7eb[_0x24472d([0x74,0x68,0x65,0x6e])](()=>{_0x487cc3||_0x5d2140(_0x24472d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x287d80(){return _0x440f17[_0x24472d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24472d([0x76,0x69,0x65,0x77])][_0x24472d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x24472d([0x61,0x75,0x74,0x6f]);}function _0x3db309(){_0x440f17[_0x24472d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24472d([0x76,0x69,0x65,0x77])][_0x24472d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24472d([0x61,0x75,0x74,0x6f]);}}function _0x591480(_0x1a9413){const _0xeaa8cb=[new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x60d485=>setTimeout(_0x60d485,0x14ee26a^_0x27ea1d)),_0x1cd7eb[_0x24472d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x434a3a=>{const _0x1d9467=0x147dca1^_0x27ea1d,_0x2ebfdc=_0xa747d1[_0x24472d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x1d7863(){_0x2ebfdc[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x1d9467&&_0x434a3a();}_0x1d7863(),_0x2ebfdc[_0x24472d([0x6f,0x6e])](_0x24472d([0x61,0x64,0x64]),_0x1d7863);})),new window[(_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xacb89=>{function _0x276563(){for(const _0x3ce975 in window)if(window[_0x24472d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x24472d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3ce975))&&window[_0x3ce975]==_0x2937d6)return _0xacb89();_0x440f17[_0x24472d([0x73,0x74,0x61,0x74,0x65])]!=_0x24472d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x24472d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x276563,0x147cf2e^_0x27ea1d);}_0x397766(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x276563();})];return window[_0x24472d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24472d([0x72,0x61,0x63,0x65])](_0xeaa8cb)[_0x24472d([0x74,0x68,0x65,0x6e])](()=>_0x1a9413);}async function _0x3c240c(){if(await _0x1cd7eb,_0x397766(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x1b9149=_0xa747d1[_0x24472d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x17a3de=_0xa747d1[_0x24472d([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])](_0x1b9149[_0x24472d([0x69,0x64])]),_0x380435=_0x20bfbe(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x380435[_0x24472d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1b9149['id'],_0x17a3de?_0x17a3de['id']:null,!0x0),_0x380435[_0x24472d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x380435[_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x380435[_0x24472d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x71bd43,void(_0x380435[_0x24472d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x71bd43);}if(_0x397766(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x2fac3a=_0x20bfbe(_0x24472d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x2fac3a[_0x24472d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x2fac3a[_0x24472d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x2fac3a[_0x24472d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x71bd43,_0x2fac3a[_0x24472d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x71bd43;}_0x440f17[_0x24472d([0x6d,0x6f,0x64,0x65,0x6c])][_0x24472d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x71bd43,_0x440f17[_0x24472d([0x6d,0x6f,0x64,0x65,0x6c])][_0x24472d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x71bd43,_0x440f17[_0x24472d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x24472d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d57f5(){return _0x397766(_0x24472d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x20bfbe(_0x24472d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x24472d([0x73,0x74,0x61,0x74,0x65])]==_0x24472d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1457b2(){return _0x397766(_0x24472d([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 _0x523b4c(){return _0x397766(_0x24472d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x2497da(_0xe16429){const _0x4622d9=_0x236f09();_0x440f17[_0x4622d9]=_0x24472d([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])+_0xe16429,_0xe16429[_0x24472d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x24472d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x236f09()]=_0x2937d6),_0xe16429!=_0x24472d([0x56,0x61,0x6c,0x69,0x64])&&_0x3c240c();}function _0x236f09(){const _0x2f6ae3=window[_0x24472d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x24472d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x24472d([0x6e,0x6f,0x77])]())[_0x24472d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x24472d([0x2e]),'');let _0x1f5964=_0x24472d([0x70]);for(let _0x533aed=0x0;_0x533aed<_0x2f6ae3[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x533aed+=0x2){let _0x100d67=window[_0x24472d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f6ae3[_0x24472d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x533aed,_0x533aed+0x2));_0x100d67>=_0x3d0f41[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x100d67-=_0x3d0f41[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1f5964+=_0x3d0f41[_0x100d67];}return _0x1f5964;}function _0x22b5ec(){const _0x2c366c=_0x5c3045[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e]));if(0x3!=_0x2c366c[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2f90f3(_0x2c366c[0x1]);function _0x2f90f3(_0x57ddf5){const _0x4758f2=_0xeba112(_0x57ddf5);return _0x4758f2&&_0x447866()?_0x4758f2:null;function _0x447866(){const _0x1fa1aa=_0x4758f2[_0x24472d([0x6a,0x74,0x69])],_0x22feab=window[_0x24472d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1fa1aa[_0x24472d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fa1aa[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3f018d={..._0x4758f2,[_0x24472d([0x6a,0x74,0x69])]:_0x1fa1aa[_0x24472d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1fa1aa[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3f018d[_0x24472d([0x76,0x63])],_0x3c88a2(_0x3f018d)==_0x22feab;}}}async function _0x486bdb(){let _0x4b76d5=!0x0;try{const _0x12c823=_0x5c3045[_0x24472d([0x73,0x70,0x6c,0x69,0x74])](_0x24472d([0x2e])),[_0x13bc56,_0x569fb1,_0x193005]=_0x12c823;return _0xd303c9(_0x13bc56),await _0x3f13a1(_0x13bc56,_0x569fb1,_0x193005),_0x4b76d5;}catch(_0x2de27c){return!0x1;}function _0xd303c9(_0x3f6e07){const _0x4d4457=_0xeba112(_0x3f6e07);_0x4d4457&&_0x4d4457[_0x24472d([0x61,0x6c,0x67])]==_0x24472d([0x45,0x53,0x32,0x35,0x36])||(_0x4b76d5=!0x1);}async function _0x3f13a1(_0x297628,_0x38a053,_0x4b3c71){const _0x465c2f=window[_0x24472d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x24472d([0x66,0x72,0x6f,0x6d])](_0x21d72c(_0x4b3c71),_0x193da6=>_0x193da6[_0x24472d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13261f=new window[(_0x24472d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x24472d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x297628+_0x24472d([0x2e])+_0x38a053),_0x246f29=window[_0x24472d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x24472d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x246f29)return;const _0x6c504f=await _0x246f29[_0x24472d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x24472d([0x6a,0x77,0x6b]),_0x4d6b55,{[_0x24472d([0x6e,0x61,0x6d,0x65])]:_0x24472d([0x45,0x43,0x44,0x53,0x41]),[_0x24472d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x24472d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x24472d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x246f29[_0x24472d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x24472d([0x6e,0x61,0x6d,0x65])]:_0x24472d([0x45,0x43,0x44,0x53,0x41]),[_0x24472d([0x68,0x61,0x73,0x68])]:{[_0x24472d([0x6e,0x61,0x6d,0x65])]:_0x24472d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x6c504f,_0x465c2f,_0x13261f)||(_0x4b76d5=!0x1);}}function _0xeba112(_0x1bb691){return _0x1bb691[_0x24472d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x24472d([0x65,0x79]))?JSON[_0x24472d([0x70,0x61,0x72,0x73,0x65])](_0x21d72c(_0x1bb691)):null;}function _0x21d72c(_0x580d19){return window[_0x24472d([0x61,0x74,0x6f,0x62])](_0x580d19[_0x24472d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x24472d([0x2b]))[_0x24472d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x24472d([0x2f])));}function _0x3c88a2(_0x2cefe6){let _0xd3feb6=0x1505;function _0x2a5e25(_0x6a8bb4){for(let _0x297622=0x0;_0x297622<_0x6a8bb4[_0x24472d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x297622++){const _0x4f1fe5=_0x6a8bb4[_0x24472d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x297622);_0xd3feb6=(_0xd3feb6<<0x5)+_0xd3feb6+_0x4f1fe5,_0xd3feb6&=_0xd3feb6;}}function _0x2b66a5(_0x4fae1f){Array[_0x24472d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4fae1f)?_0x4fae1f[_0x24472d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2b66a5):_0x4fae1f&&typeof _0x4fae1f==_0x24472d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x24472d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4fae1f)[_0x24472d([0x73,0x6f,0x72,0x74])]()[_0x24472d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30e301,_0x28a39e])=>{_0x2a5e25(_0x30e301),_0x2b66a5(_0x28a39e);}):_0x2a5e25(window[_0x24472d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4fae1f));}return _0x2b66a5(_0x2cefe6),_0xd3feb6>>>0x0;}function _0x51babc(_0x55ff03){return _0x55ff03[_0x24472d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x24472d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x24472d([0x30]));}function _0x5831fa(_0x4ab461){return _0x4ab461[_0x24472d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x24472d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x24472d([0x6a,0x6f,0x69,0x6e])]('');}function _0x397766(_0x3e459f){return _0x440f17[_0x24472d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24472d([0x68,0x61,0x73])](_0x3e459f);}function _0x20bfbe(_0x56a428){return _0x440f17[_0x24472d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x24472d([0x67,0x65,0x74])](_0x56a428);}function _0x71bd43(){}function _0x24472d(_0x360070){return _0x360070['map'](_0x370523=>String['fromCharCode'](_0x370523))['join']('');}_0x2497da(await _0x1cf70c());}(this);}['createRevision'](_0x3b5502){const _0x87b68c=this['editor']['plugins']['get']('Users');return new a({'id':_0x3b5502['id'],'name':_0x3b5502['name'],'creator':_0x3b5502['creatorId']?_0x87b68c['getUser'](_0x3b5502['creatorId']):null,'diffData':_0x3b5502['diffData']||_0x3b5502['data'],'authors':_0x3b5502['authorsIds']['map'](_0x3d3866=>_0x87b68c['getUser'](_0x3d3866)),'createdAt':new Date(_0x3b5502['createdAt']),'attributes':_0x3b5502['attributes'],'fromVersion':_0x3b5502['fromVersion'],'toVersion':_0x3b5502['toVersion']});}['addRevision'](_0x6c8ef7,_0x141ce3=0x0){this['_revisions']['add'](_0x6c8ef7,_0x141ce3);}['getRevision'](_0x449b24){return this['_revisions']['get'](_0x449b24);}['getRevisions'](_0x583149={'toJSON':!0x1}){const _0xef439e=Array['from'](this['_revisions']);return _0xef439e['reverse'](),_0x583149['toJSON']?_0xef439e['map'](_0x1630ed=>_0x1630ed['toJSON']()):_0xef439e;}['getIndex'](_0xc7c1ad){return this['_revisions']['getIndex'](_0xc7c1ad);}['getEarlierVisibleRevision'](_0x334c6b){const [,_0x437acd]=this['getRevisionsIterator'](_0x334c6b,{'direction':'earlier'});return _0x437acd;}['getLaterVisibleRevision'](_0x2a2693){const [,_0x200b84]=this['getRevisionsIterator'](_0x2a2693,{'direction':'later'});return _0x200b84;}['getRevisionsInDiff'](_0x1b3318){const _0x3acc91=[];for(const _0x2b3e89 of this['getRevisionsIterator'](_0x1b3318['newRevisionId']))if(_0x3acc91['push'](_0x2b3e89),_0x2b3e89['id']===_0x1b3318['oldRevisionId'])break;return _0x3acc91;}*['getRevisionsIterator'](_0x59d37e,{direction:_0x3b7432='earlier',filter:_0x59081d=()=>!0x0}={}){const _0x559d6a='earlier'===_0x3b7432?0x1:-0x1;let _0x591714=this['_revisions']['get'](_0x59d37e),_0x509eb7=this['getIndex'](_0x591714);for(yield _0x591714;_0x591714;){if(_0x509eb7+=_0x559d6a,_0x591714=this['getRevision'](_0x509eb7),!_0x591714)return;_0x59081d(_0x591714)&&(yield _0x591714);}}}function R(_0x4116ec,_0x66e219,_0x5bae94){const t=_0x4116ec['t'];switch(_0x66e219){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'},_0x5bae94);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x5bae94);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 C={'c':_0x880e00,'a':_0x157de6,'e':_0x53cb6d,'r':_0x3add22,'u':_0x1b5e13};class l extends _0x41d97b{['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[_0x371067,j,_0x4a1232];}constructor(_0x1b02b0){super(_0x1b02b0),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0xc56444=_0x119d0b();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0xc56444},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 _0xe76487=this['repository']['getRevision'](0x0),_0x8d3d1e=_0xe76487&&null===_0xe76487['creator']?_0xe76487:null;if(this['_continueCurrentRevision']=!!_0x8d3d1e&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x33ffaf=this['_source']['getCurrentRevisionId'](),_0x30d397=this['repository']['getRevision'](_0x33ffaf);if(_0x30d397)this['_startingVersion']=_0x30d397['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x4d6671=this['_source']['history']['_operations']['find'](_0x2b55dc=>!_0x2b55dc['_isInit']),_0x4e762e=_0x4d6671?_0x4d6671['baseVersion']:this['_source']['history']['version'];_0xe76487?(_0xe76487['toVersion']<_0x4e762e&&_0xe76487['_update']({'toVersion':_0x4e762e}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x8d3d1e['id'],this['_startingVersion']=_0x8d3d1e['fromVersion']):(this['_startingVersion']=_0xe76487['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4e762e,this['_continueCurrentRevision']=!0x1);}}else _0x8d3d1e&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x8d3d1e['toVersion'],this['editor']['model']['document']['history']['version']),_0x8d3d1e['fromVersion']===_0x8d3d1e['toVersion']?(0x0!==_0x8d3d1e['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x8d3d1e['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x8d3d1e['id'],this['_startingVersion']=_0x8d3d1e['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',_0x52ca67=>!_0x52ca67),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x472d51=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4e353c;for(const _0x1bfb9d in _0x472d51){const _0x5dcbee=_0x1bfb9d,_0x5e751f=_0x472d51[_0x5dcbee];if('revisionHistoryLicenseKeyValid'==_0x5e751f||'revisionHistoryLicenseKeyInvalid'==_0x5e751f||'revisionHistoryLicenseKeyExpired'==_0x5e751f||'revisionHistoryLicenseKeyDomainLimit'==_0x5e751f||'revisionHistoryLicenseKeyNotAllowed'==_0x5e751f||'revisionHistoryLicenseKeyEvaluationLimit'==_0x5e751f||'revisionHistoryLicenseKeyTrialLimit'==_0x5e751f||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x5e751f||'revisionHistoryLicenseKeyUsageLimit'==_0x5e751f){delete _0x472d51[_0x5dcbee],_0x4e353c=_0x5e751f,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x4e353c&&_0x472d51['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x4e353c&&_0x472d51['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x4e353c&&_0x472d51['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x4e353c&&_0x472d51['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x4498e2=this['repository']['getRevision'](0x0),_0x7d4b5e=await this['getRevisionDocumentData'](_0x4498e2),_0x1faf7f=await this['getRevisionRootsAttributes'](_0x4498e2);this['_replaceEditorDataWithRevisionData'](_0x7d4b5e,_0x1faf7f);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5e93fc){this['_source']=_0x5e93fc;}async['update'](){const _0x4bc864=await this['_source']['getLatestVersion']();if(_0x4bc864>this['currentRevision']['toVersion']){await this['_loadState']();const _0x2da848=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x4bc864});_0x2da848['authors']=_0x2da848['authorsIds']['map'](_0x5a3326=>this['editor']['plugins']['get']('Users')['getUser'](_0x5a3326)),this['currentRevision']['_update'](_0x2da848);}}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'](_0x6e734b={},_0x515e45=null){const _0x2d89c3=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x515e45>this['currentRevision']['toVersion']&&(_0x515e45=null),null===_0x515e45&&(_0x515e45=await this['_source']['getLatestVersion']());const _0x17f0a7=this['_getFromVersion'](_0x515e45),_0x3d6eda=this['buildRevisionData']({'from':_0x17f0a7,'to':_0x515e45});if(this['currentRevision']['toVersion']<_0x515e45){const _0xc0cc48=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x515e45,'to':_0x515e45});_0xc0cc48['authors']=[],_0xc0cc48['authorsIds']=[],_0xc0cc48['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0xc0cc48,!0x0),delete _0xc0cc48['authors'],_0x2d89c3['push'](_0xc0cc48);}_0x6e734b['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x6e734b['name']=_0x6e734b['name']||null,_0x6e734b['id']=_0x6e734b['id']||_0x119d0b(),_0x6e734b={..._0x6e734b,..._0x3d6eda};const _0x17e5be=this['addRevisionData'](_0x6e734b);_0x2d89c3['push'](_0x6e734b);const _0x3596d6=this['repository']['getIndex'](_0x17e5be);if(0x0!==_0x3596d6){const _0x24b844=this['repository']['getRevision'](_0x3596d6-0x1);if(_0x24b844['fromVersion']!==_0x515e45){const _0x191b6d=this['_revisionDataBuilder']['getData'](_0x515e45,_0x24b844['toVersion']),_0x3f8e7d={'id':_0x24b844['id'],'diffData':_0x191b6d['diffData'],'authorsIds':_0x191b6d['authorsIds'],'authors':_0x191b6d['authorsIds']['map'](_0x8c46f6=>this['editor']['plugins']['get']('Users')['getUser'](_0x8c46f6)),'fromVersion':_0x515e45};_0x24b844===this['currentRevision']&&(_0x3f8e7d['createdAt']=new Date(_0x6e734b['createdAt']['getTime']()+0xa)),_0x24b844['_update'](_0x3f8e7d,!0x0),delete _0x3f8e7d['authors'],_0x2d89c3['push'](_0x3f8e7d);}}if(this['adapter']){for(const _0x2e59b0 of _0x2d89c3)this['_bufferUpdate'](_0x2e59b0['id'],_0x2e59b0,!0x0);this['sendBufferedUpdates']();}return _0x17e5be;}['addRevisionData'](_0x3a8dfd){const _0x129716=this['repository']['createRevision'](_0x3a8dfd);return this['adapter']&&_0x129716['on']('_update',(_0x2cf91b,_0x271c0d,_0x41de4a)=>{_0x41de4a||(this['_bufferUpdate'](_0x271c0d['id'],_0x271c0d,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x129716,this['_findInsertionIndex'](_0x129716)),_0x129716;}async['getRevisionDocumentData'](_0x5c6eb6){await this['_loadRevisionData'](_0x5c6eb6);const _0x570269={};for(const _0xd0b98b in _0x5c6eb6['diffData']){if(_0x5c6eb6['diffData'][_0xd0b98b]['attachChange']&&!_0x5c6eb6['diffData'][_0xd0b98b]['attachChange']['isAttached'])continue;const _0x4364ff=this['_removeRevisionMarkers'](JSON['parse'](_0x5c6eb6['diffData'][_0xd0b98b]['insertions'])),_0x26a3be=this['editor']['editing']['view']['document'],_0x13c9bc=new _0x2ff272(_0x26a3be,_0x4364ff['map'](_0x1e62d0=>V(_0x1e62d0,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x570269[_0xd0b98b]=this['editor']['data']['processor']['toData'](_0x13c9bc),this['editor']['data']['processor']['useFillerType']('default');}return _0x570269;}async['getRevisionRootsAttributes'](_0x701471){await this['_loadRevisionData'](_0x701471);const _0x59e65b={};for(const _0x6e4ed9 in _0x701471['diffData'])_0x701471['diffData'][_0x6e4ed9]['attachChange']&&!_0x701471['diffData'][_0x6e4ed9]['attachChange']['isAttached']||(_0x59e65b[_0x6e4ed9]=_0x701471['diffData'][_0x6e4ed9]['attributesAfter']||{});return _0x59e65b;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x40b5d5=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x29c836=0x0;_0x29c836<_0x40b5d5['length'];_0x29c836++){const _0x33d27f=_0x40b5d5[_0x29c836];let _0x378de6=!0x1;for(const _0x4050c9 of Object['keys'](_0x33d27f))void 0x0===_0x33d27f[_0x4050c9]?delete _0x33d27f[_0x4050c9]:'id'!==_0x4050c9&&(_0x378de6=!0x0);_0x378de6||(_0x40b5d5[_0x29c836]=null);}if(_0x40b5d5=_0x40b5d5['filter'](_0x454318=>null!==_0x454318),!_0x40b5d5['length'])return;for(let _0x117598=0x0;_0x117598<_0x40b5d5['length'];_0x117598++){const _0x73b7de=_0x40b5d5[_0x117598];void 0x0!==_0x73b7de['fromVersion']&&void 0x0===_0x73b7de['toVersion']&&(_0x73b7de['toVersion']=this['repository']['getRevision'](_0x73b7de['id'])['toVersion']),void 0x0!==_0x73b7de['toVersion']&&void 0x0===_0x73b7de['fromVersion']&&(_0x73b7de['fromVersion']=this['repository']['getRevision'](_0x73b7de['id'])['fromVersion']);}const _0x35bde0=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x40b5d5,_0x35bde0)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x5e6435=>{if(_0x5e6435){for(const _0x3e3904 of _0x5e6435)this['setRevisionData']({'id':_0x3e3904['id'],'createdAt':_0x3e3904['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x12ab99,_0x57422a){let _0xa18cb=this['editor']['config']['get']('initialData'),_0xecf10f=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xa18cb){_0xa18cb={};for(const _0x2ff11c of this['editor']['model']['document']['getRootNames']())_0xa18cb[_0x2ff11c]='';}if('string'==typeof _0xa18cb&&(_0xa18cb={'main':_0xa18cb}),void 0x0===_0xecf10f){_0xecf10f={};for(const _0x5568bc of this['editor']['model']['document']['getRootNames']())_0xecf10f[_0x5568bc]={};}let _0xd41422=!0x1;const _0x5f31a6=Object['keys'](_0xa18cb),_0x455b0f=Object['keys'](_0x12ab99);for(const _0xaba106 of _0x5f31a6){if(_0xa18cb[_0xaba106]!==_0x12ab99[_0xaba106]&&''!==_0xa18cb[_0xaba106]['trim']()){_0xd41422=!0x0;break;}if(!_0x497f6(_0xecf10f[_0xaba106],_0x57422a[_0xaba106])&&Object['keys'](_0xecf10f[_0xaba106])['length']>0x0){_0xd41422=!0x0;break;}}_0xd41422||(_0xd41422=_0x455b0f['some'](_0x236ed1=>!this['editor']['model']['document']['getRoot'](_0x236ed1))),_0xd41422&&_0x135dde('editor-initial-data-replaced-with-revision-data',{'editorData':_0xa18cb,'editorRootsAttributes':_0xecf10f,'revisionData':_0x12ab99,'revisionRootsAttributes':_0x57422a}),this['editor']['config']['set']('initialData',_0x12ab99),this['editor']['config']['set']('rootsAttributes',_0x57422a);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x1c6bd6=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x1c6bd6['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x44dde3){const _0x2d03c1=this['repository']['getRevisions']();_0x2d03c1['reverse']();let _0x525341=0x0;for(;_0x525341<_0x2d03c1['length'];){const _0xa5c761=_0x2d03c1[_0x525341];if(_0xa5c761===this['currentRevision']){_0x525341++;continue;}if(_0xa5c761['id']===this['_initialRevisionId'])break;const _0x538107=_0x44dde3['toVersion']-_0xa5c761['toVersion']||_0x44dde3['fromVersion']-_0xa5c761['fromVersion'];if(_0x538107>0x0)break;if(_0x538107<0x0)_0x525341++;else{if(!_0x44dde3['creator']&&_0xa5c761['creator'])break;if(_0xa5c761['creator']||!_0x44dde3['creator']){if(_0x44dde3['createdAt']>_0xa5c761['createdAt'])break;_0x525341++;}else _0x525341++;}}return _0x525341;}['setRevisionData'](_0x5a95ce){const _0x2fc620=this['repository']['getRevision'](_0x5a95ce['id']);if(_0x5a95ce['createdAt']&&(_0x5a95ce['createdAt']=new Date(_0x5a95ce['createdAt'])),_0x5a95ce['authorsIds']){const _0x4c746e=this['editor']['plugins']['get']('Users');_0x5a95ce['authors']=_0x5a95ce['authorsIds']['map'](_0x5ae9cc=>_0x4c746e['getUser'](_0x5ae9cc));}_0x2fc620['_update'](_0x5a95ce,!0x0);}['buildRevisionData']({revision:_0x51899b=null,from:_0x534a61=null,to:_0xd6aa46=null}){_0x534a61=null!==_0x534a61?_0x534a61:_0x51899b['fromVersion'],_0xd6aa46=null!==_0xd6aa46?_0xd6aa46:_0x51899b['toVersion'];const _0x1fc3f0=this['_revisionDataBuilder']['getData'](_0x534a61,_0xd6aa46),_0x530336={'diffData':_0x1fc3f0['diffData'],'authorsIds':_0x1fc3f0['authorsIds'],'fromVersion':_0x534a61,'toVersion':_0xd6aa46};if(!_0x51899b||_0xd6aa46!==_0x51899b['toVersion']){const _0x419415=_0xd6aa46-0x1,_0x2f1f57=this['_source']['history']['getOperation'](_0x419415);_0x530336['createdAt']=_0x2f1f57&&_0x2f1f57['createdAt']||new Date();}if(this['_loadedStateData']&&_0x534a61===this['_loadedStateData']['fromVersion']){for(const _0x177255 of this['_loadedStateData']['authors'])_0x530336['authorsIds']['includes'](_0x177255['id'])||_0x530336['authorsIds']['push'](_0x177255['id']);}return _0x530336;}['_loadRevisionData'](_0x9f5a7){if(!_0x9f5a7||_0x9f5a7['diffData'])return Promise['resolve']();{const _0x1b9d99=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x1b9d99,'revisionId':_0x9f5a7['id']})['then'](_0x3e9f5a=>{_0x9f5a7['diffData']=_0x3e9f5a['diffData'];});}}['_bufferUpdate'](_0x468308,_0x7668c2,_0xbb65bb){if(this['_bufferedUpdates']['has'](_0x468308)){const _0x70c56b=this['_bufferedUpdates']['get'](_0x468308);_0x7668c2=_0xbb65bb?{..._0x70c56b,..._0x7668c2}:{..._0x7668c2,..._0x70c56b};}this['_bufferedUpdates']['set'](_0x468308,_0x7668c2);}['_getFromVersion'](_0x3a79ea){const _0x43e90d=this['repository']['getRevisions']();_0x43e90d['reverse'](),_0x43e90d['shift']();const _0x2601d6=_0x43e90d['find'](_0x5e2638=>_0x5e2638['toVersion']<=_0x3a79ea)['toVersion'];return _0x2601d6<this['_startingVersion']?this['_startingVersion']:_0x2601d6;}['_createInitialRevision'](_0xe6af21){const _0x1b37b0=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x1b37b0)this['_initialRevisionId']=_0x1b37b0['id'];else{const _0x1c1e1e=!this['editor']['model']['document']['roots']['find'](_0x5b4de6=>this['editor']['model']['hasContent'](_0x5b4de6)),_0x2cd9df=this['editor']['plugins']['get']('Users')['me']['id'],_0x35e573=R(this['editor']['locale'],_0x1c1e1e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xe6af21,'to':_0xe6af21,'id':this['_initialRevisionId'],'name':_0x35e573,'creatorId':_0x2cd9df});}}['_createCurrentRevision'](_0xd12829){const _0x2a78f7=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2a78f7),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0xd12829,'to':_0xd12829,'id':_0x2a78f7,'name':'','creatorId':null}));}['_makeRevision']({name:_0x9f6f80,from:_0x2906df,to:_0x542a0b,creatorId:_0x3e358f,id:_0x36ea1c}){const _0x5d1951=this['buildRevisionData']({'from':_0x2906df,'to':_0x542a0b});_0x5d1951['name']=_0x9f6f80,_0x5d1951['creatorId']=_0x3e358f,_0x5d1951['id']=_0x36ea1c;const _0x3bfb77=this['addRevisionData'](_0x5d1951);return this['adapter']&&this['_bufferUpdate'](_0x5d1951['id'],_0x5d1951,!0x0),_0x3bfb77;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3b2e32){return(_0x3b2e32=_0x3b2e32['filter'](_0x4fc0b9=>!_0x4fc0b9['name']||'revision-start'!==_0x4fc0b9['name']&&'revision-end'!==_0x4fc0b9['name']))['forEach'](_0x4b89eb=>{'string'!=typeof _0x4b89eb&&(_0x4b89eb['children']=this['_removeRevisionMarkers'](_0x4b89eb['children']),_0x4b89eb['attributes']=_0x4b89eb['attributes']['filter'](_0x1799d7=>!_0x1799d7[0x0]['startsWith']('data-revision-')));}),_0x3b2e32;}}function V(_0x2a8b14,_0x46e2d8){const _0xfcef2f=_0x46e2d8['editing']['view']['document'];if('string'==typeof _0x2a8b14)return new _0x5819cc(_0xfcef2f,_0x2a8b14);{const _0x2a9907=_0x2a8b14['children']['map'](_0x1ffb24=>V(_0x1ffb24,_0x46e2d8));return new(C[_0x2a8b14['type']]||_0x17cad2)(_0xfcef2f,_0x2a8b14['name'],_0x2a8b14['attributes'],_0x2a9907);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x1b2dbf){this['editor']=_0x1b2dbf,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'](_0x3aa4d2){this['source']=_0x3aa4d2;const _0x36e8c1=new Map(),_0x52dfb4=new Map(),_0x2bea04=this['editor']['model']['document']['roots']['map'](_0x330ff7=>_0x330ff7['rootName']);for(const _0x3cfbaa of _0x2bea04){const _0x6248be=this['editor']['model']['document']['getRoot'](_0x3cfbaa),_0x436ade=F(_0x6248be);_0x36e8c1['set'](_0x3cfbaa,_0x436ade),_0x52dfb4['set'](_0x3cfbaa,Object['fromEntries'](_0x6248be['getAttributes']()));}const _0x5f1a55=Array['from'](this['editor']['model']['markers'])['map'](_0x362a61=>[_0x362a61['name'],_0x362a61['getRange']()]),_0x501d36=this['source']['version'];this['_saveMetaData'](_0x501d36,_0x36e8c1,_0x5f1a55,_0x52dfb4),this['_startingRevisionId']=this['_revisionId'];const _0x4829b0=new Map(),_0x27e8=new Map();for(const _0x333764 of _0x2bea04){const _0x244b00=B(_0x333764);_0x4829b0['set'](_0x333764,_0x244b00),_0x27e8['set'](_0x333764,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x4829b0,[],_0x27e8);}['getData'](_0x2fb647,_0x444972){if(this['_lastFrom']===_0x2fb647&&this['_lastTo']<=_0x444972)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x444972,!0x0);else{if(!this['_savedMetaData']['has'](_0x2fb647)){const _0x4f2c3f=this['_getPreviousFrom'](_0x2fb647);this['_calculateMetaData'](_0x4f2c3f,_0x2fb647,!0x1);}this['_calculateMetaData'](_0x2fb647,_0x444972,!0x0);}return this['_lastFrom']=_0x2fb647,this['_lastTo']=_0x444972,this['_getState']();}['loadState'](_0x4ea1cc){this['_reset'](),this['_lastFrom']=_0x4ea1cc['fromVersion'],this['_lastTo']=_0x4ea1cc['toVersion'];for(const _0x4a3987 in _0x4ea1cc['diffData']){const _0x5ce0ee=_0x4ea1cc['diffData'][_0x4a3987]['attachChange'],_0x1c6fd2=_0x4de36a(_0x4ea1cc['diffData'][_0x4a3987]['attributesBefore'])||{},_0x409d10=this['_makeModelFromViewString'](_0x4ea1cc['diffData'][_0x4a3987]['deletions']);_0x409d10['rootName']=_0x4a3987,_0x409d10['_isAttached']=!_0x5ce0ee||!_0x5ce0ee['isAttached'],_0x409d10['isAttached']=()=>_0x409d10['_isAttached'],this['_baseRoots']['set'](_0x4a3987,_0x409d10),this['_baseRootsAttributes']['set'](_0x4a3987,_0x1c6fd2),_0x5ce0ee&&this['_touchedRoots']['set'](_0x4a3987,_0x5ce0ee);const _0x3579a9=this['_makeIdsRoot'](_0x409d10);this['_baseIdsRoots']['set'](_0x4a3987,_0x3579a9);for(const [_0x39a253,_0x45ecde]of _0x409d10['markers']){if(!_0x39a253['startsWith']('revision:'))continue;const _0x237e6b=_0x39a253['split'](':')[0x2];for(const _0x1c0667 of _0x45ecde['getWalker']({'singleCharacters':!0x0})){const _0x18ea24=this['_getVidAttributeName'](_0x1c0667),_0x562a9f='elementEnd'==_0x1c0667['type']?_0x1c0667['previousPosition']['path']['slice'](0x0,-0x1):_0x1c0667['previousPosition']['path'],_0xbb390d=_0x3579a9['getNodeByPath'](_0x562a9f)['getAttribute'](_0x18ea24);this['_touched']['set'](_0xbb390d,{'userId':_0x237e6b});}}}this['_startingRevisionId']=this['_revisionId'];const _0x5d5d55=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x31d6f2=>!this['_touched']['has'](_0x31d6f2));let _0xd68e6f=0x0;const _0x11d5c6=new Map();for(const _0x5061fa in _0x4ea1cc['diffData']){const _0x2fcbf2=_0x4ea1cc['diffData'][_0x5061fa]['attachChange'],_0x208744=_0x4de36a(_0x4ea1cc['diffData'][_0x5061fa]['attributesAfter'])||{},_0x32b505=this['_makeModelFromViewString'](_0x4ea1cc['diffData'][_0x5061fa]['insertions']);_0x32b505['rootName']=_0x5061fa,_0x32b505['_isAttached']=!_0x2fcbf2||_0x2fcbf2['isAttached'],_0x32b505['isAttached']=()=>_0x32b505['_isAttached'],this['_diffRoots']['set'](_0x5061fa,_0x32b505),this['_diffRootsAttributes']['set'](_0x5061fa,_0x208744);const _0x1f1d45=this['_makeIdsRoot'](_0x32b505,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x5061fa,_0x1f1d45),_0x11d5c6['set'](_0x5061fa,_0x32b505['isAttached']()?_0x208744:{});for(const [_0x59720b,_0x21f7ad]of _0x32b505['markers']){if(!_0x59720b['startsWith']('revision:'))continue;const _0x9a4752=_0x59720b['split'](':')[0x2];for(const _0x347f82 of _0x21f7ad['getWalker']({'singleCharacters':!0x0})){const _0x1b3e4f=this['_getVidAttributeName'](_0x347f82),_0x4b7d63=this['_revisionId']++,_0x1a681c='elementEnd'==_0x347f82['type']?_0x347f82['previousPosition']['path']['slice'](0x0,-0x1):_0x347f82['previousPosition']['path'];_0x1f1d45['getNodeByPath'](_0x1a681c)['_setAttribute'](_0x1b3e4f,_0x4b7d63),this['_touched']['set'](_0x4b7d63,{'userId':_0x9a4752});}}for(const _0x326bb4 of this['editor']['model']['createRangeIn'](_0x32b505)['getWalker']({'singleCharacters':!0x0})){const _0x5d7ec0=this['_getVidAttributeName'](_0x326bb4),_0x5f1340='elementEnd'==_0x326bb4['type']?_0x326bb4['previousPosition']['path']['slice'](0x0,-0x1):_0x326bb4['previousPosition']['path'],_0x672679=_0x1f1d45['getNodeByPath'](_0x5f1340);_0x672679['getAttribute'](_0x5d7ec0)>0x0||_0x672679['_setAttribute'](_0x5d7ec0,_0x5d5d55[_0xd68e6f++]);}for(const [_0x297747,_0x187e9c]of _0x32b505['markers'])_0x297747['startsWith']('revision:')||this['_markers']['set'](_0x297747,_0x187e9c);}const _0xc6e372=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0xc6e372),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0xc6e372,0x1));const _0x4e3e59=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x4e3e59),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x4e3e59,0x1));const _0x7171f7=Array['from'](this['_diffRoots'])['map'](([_0x2074ad,_0xcfe69])=>[_0x2074ad,F(_0xcfe69)]);this['_saveMetaData'](this['_lastTo'],_0x7171f7,this['_markers'],_0x11d5c6);}['_makeModelFromViewString'](_0x16884c){const _0x40e3c6=JSON['parse'](_0x16884c),_0x3c7d89=this['editor']['editing']['view']['document'],_0x2a9101=new _0x2ff272(_0x3c7d89,_0x40e3c6['map'](_0x208599=>V(_0x208599,this['editor'])));return this['editor']['data']['toModel'](_0x2a9101);}['_saveMetaData'](_0x1c643c,_0x1bf78e,_0x3fb3cc,_0x352669){const _0x1a41eb=new Map(_0x1bf78e),_0x1851f3=new Map(_0x4de36a(_0x352669)),_0x2cc65f=new Map();for(const [_0x1cbc1f,_0x3403fa]of _0x3fb3cc)_0x2cc65f['set'](_0x1cbc1f,{'start':_0x3403fa['start']['clone'](),'end':_0x3403fa['end']['clone'](),'rootName':_0x3403fa['root']['rootName']});this['_savedMetaData']['set'](_0x1c643c,{'roots':_0x1a41eb,'markers':_0x2cc65f,'rootsAttributes':_0x1851f3});}['_removeMetaData'](_0x38b420){this['_savedMetaData']['delete'](_0x38b420);}['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'](_0x555b79,_0x2d21eb=null){let _0x5df7c7=null;_0x555b79['is']('documentFragment')||(_0x5df7c7=new ft(_0x555b79['name'],{'vid_start':null===_0x2d21eb?this['_revisionId']++:_0x2d21eb++}));const _0x747c6d=[];for(const _0x4ecad6 of _0x555b79['getChildren']())if(_0x4ecad6['is']('element')){_0x747c6d['push'](this['_makeIdsRoot'](_0x4ecad6,_0x2d21eb));const _0x1f19b2=_0x747c6d[_0x747c6d['length']-0x1];null!==_0x2d21eb&&(_0x2d21eb=_0x1f19b2['is']('element','$text')?_0x1f19b2['getAttribute']('vid')+0x1:_0x1f19b2['getAttribute']('vid_end')+0x1);}else{for(let _0x3e0616=0x0;_0x3e0616<_0x4ecad6['offsetSize'];_0x3e0616++)_0x747c6d['push'](new ft('$text',{'vid':null===_0x2d21eb?this['_revisionId']++:_0x2d21eb++}));}if(_0x555b79['is']('documentFragment')){const _0x4e8d51=B(_0x555b79['rootName']);return _0x4e8d51['_insertChild'](0x0,_0x747c6d),_0x4e8d51;}return _0x5df7c7['_setAttribute']('vid_end',null===_0x2d21eb?this['_revisionId']++:_0x2d21eb++),_0x5df7c7['_insertChild'](0x0,_0x747c6d),_0x5df7c7;}['_calculateMetaData'](_0x65500a,_0x3de16a,_0x4d4739){this['_reset']();const {roots:_0x473499,markers:_0x1b9265,rootsAttributes:_0x3bfeac}=this['_savedMetaData']['get'](_0x65500a);this['_baseRoots']=new Map(_0x473499),this['_baseRootsAttributes']=new Map(_0x4de36a(_0x3bfeac));for(const [_0x36983f,_0x25edb2]of this['_baseRoots'])if('$graveyard'!==_0x36983f&&(this['_diffRoots']['set'](_0x36983f,F(_0x25edb2)),this['_diffRootsAttributes']=new Map(_0x4de36a(_0x3bfeac)),_0x4d4739)){const _0x389795=this['_revisionId'];this['_idsRoots']['set'](_0x36983f,this['_makeIdsRoot'](_0x25edb2)),this['_baseIdsRoots']['set'](_0x36983f,this['_makeIdsRoot'](_0x25edb2,_0x389795));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x4d4739&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1e3e6f,_0x40634e]of _0x1b9265){const _0x36c406=this['_baseRoots']['get'](_0x40634e['rootName']),_0x1a859b=this['_diffRoots']['get'](_0x40634e['rootName']),_0x5c3009=new vt(this['_fixPosition'](_0x40634e['start'],_0x36c406),this['_fixPosition'](_0x40634e['end'],_0x36c406)),_0x6d6133=this['_fixRange'](_0x5c3009,_0x1a859b);_0x36c406['markers']['set'](_0x1e3e6f,_0x5c3009),this['_markers']['set'](_0x1e3e6f,_0x6d6133);}this['_applyOperations'](_0x65500a,_0x3de16a,_0x4d4739);}['_applyOperations'](_0x3a6de2,_0x1085e3,_0x3a8291){for(const _0x5bbf78 of this['source']['getOperations'](_0x3a6de2,_0x1085e3))this['_handleOperation'](_0x5bbf78,_0x3a8291);for(const _0x3cb076 of this['_diffRoots']['values']())_0x3cb076['markers']['clear']();for(const [_0x339dfb,_0x3c11f8]of this['_markers']){this['_diffRoots']['get'](_0x3c11f8['root']['rootName'])['markers']['set'](_0x339dfb,_0x3c11f8['clone']());}const _0x1fcb4d=new Map(),_0x371bef=new Map();for(const [_0xe28e68,_0x4e55d7]of this['_diffRoots'])_0x1fcb4d['set'](_0xe28e68,F(_0x4e55d7)),_0x371bef['set'](_0xe28e68,this['_diffRootsAttributes']['get'](_0xe28e68));this['_saveMetaData'](_0x1085e3,_0x1fcb4d,this['_markers'],_0x371bef);}['_getPreviousFrom'](_0x24d0aa){const _0x354c3a=Array['from'](this['_savedMetaData']['keys']());_0x354c3a['sort']((_0x44ab57,_0x47e2dd)=>_0x44ab57-_0x47e2dd),_0x354c3a['reverse']();for(const _0x3b67d4 of _0x354c3a)if(_0x3b67d4<_0x24d0aa)return _0x3b67d4;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x23135f,_0x5a47b8){const _0x4fe817=Array['from'](_0x5a47b8['markers'])['map'](([_0x254270,_0x15f4f6])=>[_0x254270,this['_fixRange'](_0x15f4f6,_0x23135f)]);_0x23135f['markers']=new Map(_0x4fe817);}['_transformMarkers'](_0x52c51c){for(const _0x8069db of this['_markers']['values']()){const _0x494f68=_0x8069db['getTransformedByOperation'](_0x52c51c),_0x5685f4=vt['_createFromRanges'](_0x494f68);_0x8069db['start']=_0x5685f4['start'],_0x8069db['end']=_0x5685f4['end'];}}['_handleOperation'](_0x50c69e,_0x5a78a4){if('addRoot'!=_0x50c69e['type']&&'detachRoot'!=_0x50c69e['type']){if('insert'==_0x50c69e['type']){const _0xd9d111=_0x50c69e['position']['root']['rootName'];this['_diffRoots']['has'](_0xd9d111)||(this['_diffRoots']['set'](_0xd9d111,B(_0xd9d111,!0x0)),this['_diffRootsAttributes']['set'](_0xd9d111,{}),_0x5a78a4&&this['_idsRoots']['set'](_0xd9d111,B(_0xd9d111,!0x0)));}else{if('addRootAttribute'==_0x50c69e['type']||'removeRootAttribute'==_0x50c69e['type']||'changeRootAttribute'==_0x50c69e['type'])return void this['_handleRootAttributeOperation'](_0x50c69e);'marker'==_0x50c69e['type']&&this['_handleMarkerOperation'](_0x50c69e);}if('marker'!==_0x50c69e['type']){const _0x5e7e46=this['_cloneOperation'](_0x50c69e,this['_diffRoots']);_0x5e7e46['_execute'](),this['_transformMarkers'](_0x5e7e46);}if(_0x5a78a4)switch(_0x50c69e['type']){case'insert':this['_handleInsertOperation'](_0x50c69e);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x50c69e);break;case'merge':this['_handleMergeOperation'](_0x50c69e);break;case'split':this['_handleSplitOperation'](_0x50c69e);}}else this['_handleRootOperation'](_0x50c69e,_0x5a78a4);}['_cloneOperation'](_0x19e150,_0x17619d){const _0x3ef85d=_0x19e150['clone']();return _0x3ef85d['_authorId']=_0x19e150['_authorId'],this['_fixOperation'](_0x3ef85d,_0x17619d),_0x3ef85d;}['_getBaseVids'](_0x3a2d3b){return _0x3a2d3b['map'](_0x24ad36=>{const _0x4d4413=this['_getVidAttributeName'](_0x24ad36);return Number(_0x24ad36['item']['getAttribute'](_0x4d4413));});}['_generateTape'](_0x5a924a,_0xac8008){if(_0x5a924a['is']('element','$text'))_0xac8008['push']({'item':_0x5a924a,'type':'text'});else{_0x5a924a['is']('element')&&_0xac8008['push']({'item':_0x5a924a,'type':'elementStart'});for(const _0x27b506 of _0x5a924a['getChildren']())this['_generateTape'](_0x27b506,_0xac8008);_0x5a924a['is']('element')&&_0xac8008['push']({'item':_0x5a924a,'type':'elementEnd'});}return _0xac8008;}['_getState'](){const _0x144a44=new Map(this['_touched']),_0x117d0c=new Map(_0x144a44),_0x329f74=new Map(),_0x17ceb8={'insertions':{},'deletions':{}},_0x5abb57={'insertions':{},'deletions':{}},_0x17261a=new Map(),_0x474ef3=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x474ef3['delete']('$graveyard');for(const _0x7fa7d4 of _0x474ef3){const _0xc45ab=this['_diffRoots']['get'](_0x7fa7d4)||B(_0x7fa7d4,!0x1),_0x127216=this['_baseRoots']['get'](_0x7fa7d4)||B(_0x7fa7d4,!0x1);_0xc45ab['isAttached']()||_0x127216['isAttached']()?(_0x17ceb8['insertions'][_0x7fa7d4]=F(_0xc45ab),_0x17ceb8['deletions'][_0x7fa7d4]=F(_0x127216),this['_copyMarkers'](_0x17ceb8['deletions'][_0x7fa7d4],_0x127216),this['_copyMarkers'](_0x17ceb8['insertions'][_0x7fa7d4],_0xc45ab),_0x5abb57['insertions'][_0x7fa7d4]=this['_generateTape'](this['_idsRoots']['get'](_0x7fa7d4),[]),_0x5abb57['deletions'][_0x7fa7d4]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x7fa7d4)||B(_0x7fa7d4,!0x1),[])):_0x474ef3['delete'](_0x7fa7d4);}for(const _0x5664e8 of _0x474ef3){const _0x3339df=_0x5abb57['insertions'][_0x5664e8];for(const _0x22d99e of _0x3339df){const _0x59450b=this['_getVidAttributeName'](_0x22d99e),_0x37e311=_0x22d99e['item']['getAttribute'](_0x59450b);_0x117d0c['delete'](_0x37e311),_0x37e311>=this['_startingRevisionId']&&_0x329f74['set'](_0x37e311,_0x144a44['get'](_0x37e311));}}for(const _0x52b82e of _0x474ef3){const _0x8f3478=_0x5abb57['insertions'][_0x52b82e],_0x1740bf=this['_getBaseVids'](_0x5abb57['deletions'][_0x52b82e]);let _0x46f640=0x0;for(const _0x4dbb30 of _0x8f3478){const _0x49476c=this['_getVidAttributeName'](_0x4dbb30),_0x3c2253=_0x4dbb30['item']['getAttribute'](_0x49476c);if(!_0x329f74['has'](_0x3c2253)&&!_0x17261a['has'](_0x3c2253)){if(_0x117d0c['has'](_0x3c2253))_0x46f640++;else{if(_0x3c2253!=_0x1740bf[_0x46f640]){const _0x2039b0=_0x144a44['get'](_0x3c2253)||_0x144a44['get'](_0x1740bf[_0x46f640]);for(;_0x3c2253!=_0x1740bf[_0x46f640];)_0x117d0c['has'](_0x1740bf[_0x46f640])||(_0x17261a['set'](_0x1740bf[_0x46f640],_0x2039b0),_0x144a44['set'](_0x1740bf[_0x46f640],_0x2039b0)),_0x46f640++;}_0x46f640++;}}}}for(const _0x2a7b47 of _0x474ef3){const _0x126f22=_0x5abb57['insertions'][_0x2a7b47];for(const _0x45b023 of _0x126f22){const _0x2e5f4d=this['_getVidAttributeName'](_0x45b023),_0x32a77d=_0x45b023['item']['getAttribute'](_0x2e5f4d);if(_0x17261a['has'](_0x32a77d)){const _0x15da3d=_0x17261a['get'](_0x32a77d);_0x117d0c['has'](_0x32a77d)||_0x117d0c['set'](_0x32a77d,{..._0x15da3d}),_0x329f74['set'](_0x32a77d,{..._0x15da3d});}}}for(const _0x94d8b6 of _0x117d0c['keys']())_0x94d8b6>=this['_startingRevisionId']&&_0x117d0c['delete'](_0x94d8b6);const _0x563d09=new Map();for(const _0x22d81e of _0x474ef3){let _0x1e9ca0=_0x5abb57['insertions'][_0x22d81e];for(const _0x4e06de of _0x1e9ca0)if(_0x4e06de['item']['is']('element','tableCell')){const _0x79bce5=this['_getVidAttributeName'](_0x4e06de),_0xf57447=_0x4e06de['item']['getAttribute'](_0x79bce5);if(_0x329f74['has'](_0xf57447)){const _0x3d802b=_0x4e06de['item']['parent']['parent']['getAttribute']('vid_start'),_0x94b773=_0x563d09['get'](_0x3d802b)||new Set();_0x94b773['add'](_0x329f74['get'](_0xf57447)['userId']),_0x563d09['set'](_0x3d802b,_0x94b773);}}_0x1e9ca0=_0x5abb57['deletions'][_0x22d81e];for(const _0x3c4a14 of _0x1e9ca0)if(_0x3c4a14['item']['is']('element','tableCell')){const _0x1a2678=this['_getVidAttributeName'](_0x3c4a14),_0x2f4191=_0x3c4a14['item']['getAttribute'](_0x1a2678);if(_0x117d0c['has'](_0x2f4191)){const _0x54bfed=_0x3c4a14['item']['parent']['parent']['getAttribute']('vid_start'),_0x42d0fb=_0x563d09['get'](_0x54bfed)||new Set();_0x42d0fb['add'](_0x117d0c['get'](_0x2f4191)['userId']),_0x563d09['set'](_0x54bfed,_0x42d0fb);}}for(const _0x3ea517 of _0x563d09['keys']())(_0x329f74['has'](_0x3ea517)||_0x117d0c['has'](_0x3ea517))&&_0x563d09['delete'](_0x3ea517);}for(const _0x515684 of _0x474ef3){const _0x57c43f=_0x5abb57['insertions'][_0x515684];let _0x3d88ee=null,_0x533a44=null;for(const _0x255d2b of _0x57c43f){const _0x1c776e=this['_getVidAttributeName'](_0x255d2b),_0x444454=_0x255d2b['item']['getAttribute'](_0x1c776e),_0x3fb7c7=_0x563d09['get'](_0x444454);_0x3fb7c7&&'elementStart'==_0x255d2b['type']&&(_0x3d88ee=Array['from'](_0x3fb7c7)[0x0],_0x533a44=_0x255d2b['item']['getAttribute']('vid_end')),_0x3d88ee&&(_0x117d0c['set'](_0x444454,{'userId':_0x3d88ee}),_0x329f74['set'](_0x444454,{'userId':_0x3d88ee})),_0x444454==_0x533a44&&(_0x3d88ee=null,_0x533a44=null);}}const _0x5001bf={},_0x15bad6=new Set();for(const _0x3c2637 of _0x474ef3){const _0x5d41ef=_0x17ceb8['deletions'][_0x3c2637],_0x3a31e3=_0x17ceb8['insertions'][_0x3c2637];for(const {userId:_0x3f03f3}of this['_touchedMarkers']['values']())null!==_0x3f03f3&&_0x15bad6['add'](_0x3f03f3);for(const {userId:_0x35718e}of this['_touchedRoots']['values']())null!==_0x35718e&&_0x15bad6['add'](_0x35718e);this['_markChanges'](_0x3a31e3,_0x5abb57['insertions'][_0x3c2637],_0x329f74,'insertion',_0x15bad6),this['_markChanges'](_0x5d41ef,_0x5abb57['deletions'][_0x3c2637],_0x117d0c,'deletion',_0x15bad6),_0x5001bf[_0x3c2637]={'insertions':this['_prepareViewToSave'](_0x3a31e3),'deletions':this['_prepareViewToSave'](_0x5d41ef),'attachChange':this['_touchedRoots']['get'](_0x3c2637)||null,'attributesBefore':_0x4de36a(this['_baseRootsAttributes']['get'](_0x3c2637))||{},'attributesAfter':_0x4de36a(this['_diffRootsAttributes']['get'](_0x3c2637))};}return{'diffData':_0x5001bf,'authorsIds':Array['from'](_0x15bad6)};}['_processRootBeforeSave'](_0x5778fa){for(const [,_0x4e26ff]of _0x5778fa['markers']){const _0x3d64d8=_0x4e26ff['start']['getAncestors']()['filter'](_0x16067b=>'tableCell'==_0x16067b['name']);for(const _0x5305b7 of _0x3d64d8)0x1==_0x5305b7['childCount']&&_0x5305b7['getChild'](0x0)['is']('element','paragraph')&&_0x5305b7['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x46b152){this['_processRootBeforeSave'](_0x46b152);const _0x389c6e=this['editor']['data']['toView'](_0x46b152,{}),_0x54d454=Array['from'](_0x389c6e['getChildren']())['map'](_0x20c728=>this['_getViewJson'](_0x20c728));return JSON['stringify'](_0x54d454);}['_getViewJson'](_0x32f893){if(_0x32f893['is']('$text'))return _0x32f893['data'];{const _0x37de85=_0x32f893;return{'type':Object['keys'](C)['find'](_0x53cc4e=>_0x32f893 instanceof C[_0x53cc4e]),'name':_0x37de85['name'],'attributes':Array['from'](_0x37de85['getAttributes']()),'children':Array['from'](_0x37de85['getChildren']())['map'](_0x5b35f7=>this['_getViewJson'](_0x5b35f7))};}}['_markChanges'](_0x27f0bb,_0x2567e7,_0x499731,_0xec14d7,_0x492b5b){let _0x1d0fe2=null,_0x41fcad=null,_0x1b6085=0x0;const _0x1348fe=this['editor']['model'];for(let _0x122587=0x0;_0x122587<_0x2567e7['length'];_0x122587++){const _0x3b087d=this['_getVidAttributeName'](_0x2567e7[_0x122587]),_0x3a364e=_0x2567e7[_0x122587]['item']['getAttribute'](_0x3b087d),_0x4028e5=_0x499731['get'](_0x3a364e),_0x224919=_0x122587==_0x2567e7['length']-0x1;(!_0x1d0fe2&&_0x4028e5&&(_0x1d0fe2=_0x4028e5,_0x41fcad=_0x2567e7[_0x122587]),_0x1d0fe2&&(!_0x4028e5||_0x4028e5['userId']!=_0x1d0fe2['userId']))&&(_0x45c345(_0x4028e5,J(_0x41fcad,_0x27f0bb,_0x1348fe),J(_0x2567e7[_0x122587],_0x27f0bb,_0x1348fe)),_0x1d0fe2=_0x4028e5||null,_0x41fcad=_0x4028e5?_0x2567e7[_0x122587]:null),_0x1d0fe2&&_0x224919&&_0x45c345(_0x4028e5,J(_0x41fcad,_0x27f0bb,_0x1348fe),q(_0x2567e7[_0x122587],_0x27f0bb,_0x1348fe));}function _0x45c345(_0x1fb661,_0x1486aa,_0x3a4cc6){const _0x14fc40=_0x1d0fe2['userId'],_0x156a1d='revision:'+_0xec14d7+':'+_0x14fc40+':'+_0x1b6085++,_0x1e4b6a=_0x1348fe['createRange'](_0x1486aa,_0x3a4cc6);_0x27f0bb['markers']['set'](_0x156a1d,_0x1e4b6a),null!==_0x14fc40&&_0x492b5b['add'](_0x14fc40);}}['_getVidAttributeName'](_0x1a4d10){switch(_0x1a4d10['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x143011,_0x402c88){_0x143011['baseVersion']=null;for(const _0x11615e in _0x143011){const _0x526b35=_0x143011[_0x11615e];if(_0x526b35 instanceof gt){const _0x4f0a65=_0x402c88['get'](_0x526b35['root']['rootName']);_0x143011[_0x11615e]=this['_fixPosition'](_0x526b35,_0x4f0a65);}if(_0x526b35 instanceof vt){const _0x2b8f62=_0x402c88['get'](_0x526b35['root']['rootName']);_0x143011[_0x11615e]=this['_fixRange'](_0x526b35,_0x2b8f62);}'root'===_0x11615e&&(_0x143011['root']=_0x402c88['get'](_0x143011['root']['rootName']));}}['_fixRange'](_0x33118c,_0x2e52e1){return this['editor']['model']['createRange'](this['_fixPosition'](_0x33118c['start'],_0x2e52e1),this['_fixPosition'](_0x33118c['end'],_0x2e52e1));}['_fixPosition'](_0x131618,_0x526ff0){return this['editor']['model']['createPositionFromPath'](_0x526ff0,_0x131618['path'],_0x131618['stickiness']);}['_handleInsertOperation'](_0x25b129){const _0x2c86aa=this['_idsRoots']['get'](_0x25b129['position']['root']['rootName']),_0x2431bb=this['_fixPosition'](_0x25b129['position'],_0x2c86aa),_0x1976e6=null===_0x25b129['_authorId']?null:_0x25b129['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x119a73=_0x2431bb['parent'],_0x307f7f=this['_revisionId'],_0x3db109=[];for(const _0x46f534 of _0x25b129['nodes'])if(_0x46f534['is']('element'))_0x3db109['push'](this['_makeIdsRoot'](_0x46f534));else{for(let _0x4de734=0x0;_0x4de734<_0x46f534['offsetSize'];_0x4de734++)_0x3db109['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x541abe=this['_revisionId'];for(let _0x278bba=_0x307f7f;_0x278bba<_0x541abe;_0x278bba++)this['_touched']['set'](_0x278bba,{'userId':_0x1976e6});_0x119a73['_insertChild'](_0x2431bb['offset'],_0x3db109);}['_handleMoveOperation'](_0x54e825){(_0x54e825=this['_cloneOperation'](_0x54e825,this['_idsRoots']))['_execute']();const _0x42ded9=null===_0x54e825['_authorId']?null:_0x54e825['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x131472=_0x54e825['getMovedRangeStart'](),_0x51dae3=_0x131472['parent'],_0x1d8a01=_0x131472['offset'];!function _0x499d2e(_0x3d3362,_0x224562,_0x3fd2a2,_0x47bee3){for(let _0x3c23d4=_0x3fd2a2;_0x3c23d4<_0x47bee3;_0x3c23d4++){const _0x61d5f6=_0x224562['getChild'](_0x3c23d4);_0x61d5f6['is']('element','$text')?_0x3d3362['set'](_0x61d5f6['getAttribute']('vid'),{'userId':_0x42ded9}):(_0x3d3362['set'](_0x61d5f6['getAttribute']('vid_start'),{'userId':_0x42ded9}),_0x499d2e(_0x3d3362,_0x61d5f6,0x0,_0x61d5f6['childCount']),_0x3d3362['set'](_0x61d5f6['getAttribute']('vid_end'),{'userId':_0x42ded9}));}}(this['_touched'],_0x51dae3,_0x1d8a01,_0x1d8a01+_0x54e825['howMany']);}['_handleMergeOperation'](_0x2bb8db){const _0x104f1d=null===(_0x2bb8db=this['_cloneOperation'](_0x2bb8db,this['_idsRoots']))['_authorId']?null:_0x2bb8db['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2ad076=_0x2bb8db['targetPosition']['parent'],_0x2e3cf5=_0x2bb8db['sourcePosition']['parent'],_0xad70fd=_0x2ad076['getAttribute']('vid_end'),_0x152574=_0x2e3cf5['getAttribute']('vid_start');_0x2ad076['_setAttribute']('vid_end',_0x2e3cf5['getAttribute']('vid_end')),_0x2e3cf5['_setAttribute']('vid_end',_0xad70fd),this['_touched']['set'](_0x152574,{'userId':_0x104f1d}),this['_touched']['set'](_0xad70fd,{'userId':_0x104f1d}),_0x2bb8db['_execute']();}['_handleSplitOperation'](_0x55f975){const _0xa4ffb=null===(_0x55f975=this['_cloneOperation'](_0x55f975,this['_idsRoots']))['_authorId']?null:_0x55f975['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x381271=_0x55f975['graveyardPosition'],_0x42c64a=_0x55f975['splitPosition']['parent'];_0x55f975['_execute']();const _0x351034=_0x42c64a['getAttribute']('vid_end'),_0x2911ff=_0x55f975['insertionPosition']['nodeAfter'];if(_0x381271){const _0x48fad8=_0x2911ff['getAttribute']('vid_end'),_0x434d08=_0x42c64a['getAttribute']('vid_end');_0x42c64a['_setAttribute']('vid_end',_0x48fad8),_0x2911ff['_setAttribute']('vid_end',_0x434d08),this['_touched']['set'](_0x42c64a['getAttribute']('vid_end'),{'userId':_0xa4ffb}),this['_touched']['set'](_0x2911ff['getAttribute']('vid_start'),{'userId':_0xa4ffb});}else{const _0x30f7d7=this['_revisionId']++,_0x3c6297=this['_revisionId']++;_0x42c64a['_setAttribute']('vid_end',_0x30f7d7),_0x2911ff['_setAttribute']('vid_start',_0x3c6297),_0x2911ff['_setAttribute']('vid_end',_0x351034),this['_touched']['set'](_0x30f7d7,{'userId':_0xa4ffb}),this['_touched']['set'](_0x3c6297,{'userId':_0xa4ffb});}}['_handleMarkerOperation'](_0xbd5852){if(!_0xbd5852['affectsData'])return;const _0x2a847e=(_0xbd5852=this['_cloneOperation'](_0xbd5852,this['_diffRoots']))['oldRange']?_0xbd5852['oldRange']['root']:null,_0x289cac=_0xbd5852['newRange']?_0xbd5852['newRange']['root']:null;_0x2a847e&&this['_markers']['delete'](_0xbd5852['name']),_0x289cac&&this['_markers']['set'](_0xbd5852['name'],_0xbd5852['newRange']['clone']());const _0x3b4d06=null===_0xbd5852['_authorId']?null:_0xbd5852['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4af366=_0xbd5852['name'];if(!this['_touchedMarkers']['has'](_0x4af366))return void this['_touchedMarkers']['set'](_0x4af366,{'range':_0xbd5852['oldRange'],'userId':_0x3b4d06});const _0x130d20=this['_touchedMarkers']['get'](_0x4af366),_0x3461a1=_0x130d20['range'],_0x382c50=_0xbd5852['newRange'];null==_0x3461a1&&null==_0x382c50||_0x3461a1&&_0x382c50&&_0x3461a1['isEqual'](_0x382c50)?this['_touchedMarkers']['delete'](_0xbd5852['name']):_0x130d20['userId']=_0x3b4d06;}['_handleRootOperation'](_0x59d019,_0x418df5){this['_diffRoots']['has'](_0x59d019['rootName'])?this['_diffRoots']['get'](_0x59d019['rootName'])['_isAttached']=_0x59d019['isAdd']:(this['_diffRoots']['set'](_0x59d019['rootName'],B(_0x59d019['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x59d019['rootName'],{}),_0x418df5&&this['_idsRoots']['set'](_0x59d019['rootName'],B(_0x59d019['rootName'],!0x0)));const _0x3f485f=null===_0x59d019['_authorId']?null:_0x59d019['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x43859b=this['_touchedRoots']['get'](_0x59d019['rootName']);_0x43859b&&_0x43859b['userId']===_0x3f485f?this['_touchedRoots']['delete'](_0x59d019['rootName']):this['_touchedRoots']['set'](_0x59d019['rootName'],{'userId':_0x3f485f,'isAttached':_0x59d019['isAdd']});}['_handleRootAttributeOperation'](_0xcc5f0e){const _0x1d2e30=this['_diffRootsAttributes']['get'](_0xcc5f0e['root']['rootName']);null===_0xcc5f0e['newValue']?delete _0x1d2e30[_0xcc5f0e['key']]:_0x1d2e30[_0xcc5f0e['key']]=_0xcc5f0e['newValue'];}}function F(_0x3c1f64){const _0x211f96=B(_0x3c1f64['rootName'],_0x3c1f64['isAttached']());for(const _0x4eaff7 of _0x3c1f64['getChildren']()){const _0x6c2884=_0x4eaff7['_clone'](!0x0);_0x211f96['_appendChild'](_0x6c2884);}return _0x211f96;}function B(_0x47360b,_0xfe4f7e=!0x0){const _0x1f2da4=new mt();return _0x1f2da4['rootName']=_0x47360b,_0x1f2da4['_isAttached']=_0xfe4f7e,_0x1f2da4['isAttached']=()=>_0x1f2da4['_isAttached'],_0x1f2da4;}function J(_0xa78344,_0x4c1911,_0x2b672d){const _0x3cdc0b='elementEnd'==_0xa78344['type']?_0x2b672d['createPositionAt'](_0xa78344['item'],'end'):_0x2b672d['createPositionBefore'](_0xa78344['item']);return _0x2b672d['createPositionFromPath'](_0x4c1911,_0x3cdc0b['path'],_0x3cdc0b['stickiness']);}function q(_0xae3516,_0x5d5805,_0x5584ef){const _0x415752='elementStart'==_0xae3516['type']?_0x5584ef['createPositionAt'](_0xae3516['item'],0x0):_0x5584ef['createPositionAfter'](_0xae3516['item']);return _0x5584ef['createPositionFromPath'](_0x5d5805,_0x415752['path'],_0x415752['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4bffe0,_0x2d836a){super(_0x4bffe0),this['focusTracker']=new _0x3b3378(),this['keystrokes']=new _0x178d9d(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x2d836a),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x41b252(this);}['render'](){super['render'](),_0x41d6b9({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x2995f0=_0x104189=>_0x104189['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2995f0),this['keystrokes']['set']('arrowleft',_0x2995f0),this['keystrokes']['set']('arrowup',_0x2995f0),this['keystrokes']['set']('arrowdown',_0x2995f0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x143e4a){this['revisionNameInputView']['fieldView']['element']['value']=_0x143e4a['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x44f999){const _0x284cd1=new _0x2b20cf(this['locale'],_0x2765cf),_0x4819fc=_0x284cd1['fieldView'];_0x4819fc['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x125756=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x44f999&&(_0x125756+='\x20('+R(this['locale'],'optional')+')'),(_0x284cd1['label']=_0x125756,_0x4819fc['on']('input',()=>{this['revisionNameInputValue']=_0x4819fc['element']['value']['trim']();}),_0x284cd1);}}class u extends _0x41d97b{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x23f7a9=this['editor'],_0x673204=_0x23f7a9['plugins']['get']('RevisionTracker');_0x23f7a9['ui']['componentFactory']['add']('revisionHistory',_0x4c8820=>{const _0x364704=_0xa55c8b(_0x4c8820),_0x1020bc=_0x364704['panelView']['children'],_0x99db31=new _0x5f2c5e(_0x4c8820),_0x4791fd=new _0x3f3f14(_0x4c8820),_0x40cc59=new te(_0x4c8820),_0x1b5e33=new _0x3f3f14(_0x4c8820),_0x4247c6=new te(_0x4c8820);return _0x364704['bind']('isEnabled')['to'](_0x673204,'isReady',_0x673204,'isEnabled',_0x23f7a9,'isReadOnly',(_0x4d93c8,_0x12fa02,_0x4b3774)=>_0x4d93c8&&_0x12fa02&&!_0x4b3774),_0x364704['buttonView']['set']({'icon':_0x536204['history'],'label':R(_0x4c8820,'Revision\x20history'),'tooltip':!0x0}),_0x40cc59['set']({'label':R(_0x4c8820,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x40cc59['bind']('isEnabled')['to'](_0x673204,'isReady',_0x673204,'isEnabled',_0x23f7a9,'isReadOnly',(_0x1313b7,_0x229e55,_0x184c6a)=>_0x1313b7&&_0x229e55&&!_0x184c6a),_0x40cc59['on']('execute',()=>this['_showDialog']()),_0x4247c6['set']({'label':R(_0x4c8820,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x4247c6['bind']('isEnabled')['to'](_0x673204,'isReady',_0x23f7a9,'isReadOnly',(_0x2a36d2,_0x49643e)=>_0x2a36d2&&!_0x49643e),_0x4247c6['on']('execute',()=>{_0x23f7a9['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x364704['isOpen']=!0x1,_0x23f7a9['editing']['view']['focus']();}),_0x4791fd['children']['add'](_0x40cc59),_0x1b5e33['children']['add'](_0x4247c6),_0x99db31['role']='menu',_0x99db31['items']['addMany']([_0x4791fd,_0x1b5e33]),_0x1020bc['add'](_0x99db31),_0x364704;}),_0x23f7a9['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3b5ea1=this['editor'],_0x36bdf7=_0x3b5ea1['locale'],_0x3dfef1=new _0x560a34(_0x36bdf7),_0xa6f800=new _0x2543f3(_0x36bdf7);_0x3dfef1['buttonView']['set']({'icon':_0x536204['history'],'label':R(_0x36bdf7,'Revision\x20history')});const _0x5ee600=new _0x377068(_0x36bdf7,_0x3dfef1),_0x282109=new _0x1692f1(_0x36bdf7);_0x282109['set']({'label':R(_0x36bdf7,'Save\x20current\x20revision')}),_0x282109['delegate']('execute')['to'](_0x3dfef1),_0x282109['on']('execute',()=>{this['_showDialog']();}),_0x5ee600['children']['add'](_0x282109),_0xa6f800['items']['add'](_0x5ee600);const _0x59330b=new _0x377068(_0x36bdf7,_0x3dfef1),_0x8449ec=new _0x1692f1(_0x36bdf7);return _0x8449ec['set']({'label':R(_0x36bdf7,'Open\x20revision\x20history')}),_0x8449ec['delegate']('execute')['to'](_0x3dfef1),_0x8449ec['on']('execute',()=>{_0x3b5ea1['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x59330b['children']['add'](_0x8449ec),_0xa6f800['items']['add'](_0x59330b),_0x3dfef1['panelView']['children']['add'](_0xa6f800),_0x3dfef1;}['_showDialog'](){const _0x2e2502=this['editor'],_0x1f0045=_0x2e2502['locale'],_0x36d429=_0x2e2502['plugins']['get']('Dialog'),_0x26ee97=_0x2e2502['plugins']['get']('RevisionTracker');function _0x3b38ca(_0x3f5c2f){_0x2e2502['config']['get']('revisionHistory.requireRevisionName')&&''===_0x3f5c2f['revisionName']?_0x3f5c2f['revisionNameInputView']['errorText']=R(_0x1f0045,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x2e2502['plugins']['get'](l)['saveRevision']({'name':_0x3f5c2f['revisionName']}),_0x36d429['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3b38ca(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x36d429['show']({'id':'revisionSave','title':R(_0x1f0045,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x2e2502['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x36d429['hide']()},{'label':R(_0x2e2502['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x52fe00){_0x52fe00['bind']('isEnabled')['to'](_0x26ee97,'isReady',_0x26ee97,'isEnabled',_0x2e2502,'isReadOnly',(_0x12b383,_0x4aeeef,_0x5dc2cf)=>_0x12b383&&_0x4aeeef&&!_0x5dc2cf);},'onExecute':()=>_0x3b38ca(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4c2ec7=this['editor'],_0x31b800=_0x4c2ec7['locale'];this['_saveRevisionFormView']=new hs(_0x31b800,_0x4c2ec7['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x39fd6a,_0x2de508){super(_0x39fd6a),this['_model']=_0x2de508,this['changeId']=_0x2de508['id'];const _0x445e33=this['bindTemplate'],_0xbf23b1=R(_0x39fd6a,_0x2de508['data']['isSuggestion']?'Suggested\x20by':'add'==_0x2de508['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x2de508['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x445e33['to']('type',_0x109456=>'ck-revision-change__'+_0x109456)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0xbf23b1}]},{'text':'\x20'+_0x2de508['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
- _0xfe4998(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x4457a5){super(),this['id']=_0x4457a5['id']||_0x119d0b(),this['author']=_0x4457a5['author'],this['type']=_0x4457a5['type'],this['data']=_0x4457a5['data']||{},this['rootName']=_0x4457a5['rootName'],this['set']('createdAt',_0x4457a5['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(_0x3aa8f6,_0x32bacc){this['newRevisionId']=_0x3aa8f6,this['oldRevisionId']=_0x32bacc,this['changes']=new _0x3fb858();}['_setChanges'](_0x1ad4de){for(const _0x5effbf of _0x1ad4de)this['changes']['add'](_0x5effbf);}}const Z={'c':_0x880e00,'a':_0x157de6,'e':_0x53cb6d,'r':_0x3add22,'u':_0x1b5e13};class d extends _0x41d97b{['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[_0x371067,_0x48c3b2,j];}constructor(_0x52fcd9){super(_0x52fcd9),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',(_0x21f4e7,_0x4a8898,_0x5b7f60)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x1b6593=>{for(const _0x141daa of this['editor']['editing']['view']['document']['roots'])_0x5b7f60?_0x1b6593['removeClass']('ck-editor__editable__overlay',_0x141daa):_0x1b6593['addClass']('ck-editor__editable__overlay',_0x141daa);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2de827=>null!==_0x2de827),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x578538,_0x5a9ff7,_0x43d44d)=>_0x578538&&_0x43d44d?_0x5a9ff7['changes']['getIndex'](_0x43d44d):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x631c9f,_0x5c7627)=>_0x631c9f?_0x5c7627['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x48c3b2);}['init'](){const _0x4b72e9=this['editor'],_0x10ce78=new yt(_0x4b72e9,{'direction':'backward'}),_0x26440b=new yt(_0x4b72e9,{'direction':'forward'});(_0x4b72e9['commands']['add']('showPreviousChange',_0x10ce78),_0x4b72e9['commands']['add']('showNextChange',_0x26440b),_0x4b72e9['commands']['add']('restoreRevision',new _t(_0x4b72e9)),this['on']('change:numberOfChanges',()=>{_0x10ce78['refresh'](),_0x26440b['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x4b72e9['enableReadOnlyMode']('revision-viewer'),_0x4b72e9['plugins']['has']('WidgetToolbarRepository'))&&_0x4b72e9['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x7aac7){await this['loadRevisionData'](_0x7aac7);const _0x2ad141={};for(const _0x1abeaa in _0x7aac7['diffData']){if(_0x7aac7['diffData'][_0x1abeaa]['attachChange']&&!_0x7aac7['diffData'][_0x1abeaa]['attachChange']['isAttached'])continue;const _0x20e4ce=this['_removeRevisionMarkers'](JSON['parse'](_0x7aac7['diffData'][_0x1abeaa]['insertions'])),_0x464400=this['editor']['editing']['view']['document'],_0x3a2ca5=new _0x2ff272(_0x464400,_0x20e4ce['map'](_0x45fa2c=>this['_getViewObj'](_0x45fa2c)));this['editor']['data']['processor']['useFillerType']('marked'),_0x2ad141[_0x1abeaa]=this['editor']['data']['processor']['toData'](_0x3a2ca5),this['editor']['data']['processor']['useFillerType']('default');}return _0x2ad141;}async['getRevisionRootsAttributes'](_0x509409){await this['loadRevisionData'](_0x509409);const _0x598010={};for(const _0x7870f4 in _0x509409['diffData'])_0x509409['diffData'][_0x7870f4]['attachChange']&&!_0x509409['diffData'][_0x7870f4]['attachChange']['isAttached']||(_0x598010[_0x7870f4]=_0x509409['diffData'][_0x7870f4]['attributesAfter']||{});return _0x598010;}['_removeRevisionMarkers'](_0x5e90ee){return(_0x5e90ee=_0x5e90ee['filter'](_0x340894=>!_0x340894['name']||'revision-start'!==_0x340894['name']&&'revision-end'!==_0x340894['name']))['forEach'](_0x2efba0=>{'string'!=typeof _0x2efba0&&(_0x2efba0['children']=this['_removeRevisionMarkers'](_0x2efba0['children']),_0x2efba0['attributes']=_0x2efba0['attributes']['filter'](_0x1fb8e8=>!_0x1fb8e8[0x0]['startsWith']('data-revision-')));}),_0x5e90ee;}async['compare'](_0x3bea1f,_0x18ef6f,_0x2059b4=!0x1){if(!this['isEnabled'])return;const _0x3b7285=this['diff'],_0x1c046f=this['repository'],_0x23f982='string'==typeof _0x3bea1f?_0x1c046f['getRevision'](_0x3bea1f):_0x3bea1f,_0x2be198='string'==typeof _0x18ef6f?_0x1c046f['getRevision'](_0x18ef6f):_0x18ef6f,_0x30b222=_0x23f982['id'],_0x1142e2=_0x2be198?_0x2be198['id']:null;if(!_0x2059b4&&this['diff']&&this['diff']['newRevisionId']===_0x30b222&&this['diff']['oldRevisionId']===_0x1142e2)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x30b222,_0x1142e2);const _0xd6f5fd=this['_getRevisionsRange'](_0x23f982,_0x2be198,!0x0)['map'](_0x1b3ebe=>this['loadRevisionData'](_0x1b3ebe));return _0xd6f5fd['push'](new Promise(_0x16bf6f=>{setTimeout(_0x16bf6f,0x14);})),Promise['all'](_0xd6f5fd)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1cb01e=this['_getDiff'](_0x30b222,_0x1142e2);for(const _0x2f09de of _0x1cb01e['changes'])this['_changeIdToChange']['set'](_0x2f09de['id'],_0x2f09de);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x51d373=>{for(const _0x16c3d4 of this['editor']['model']['document']['getRootNames']())_0x51d373['detachRoot'](_0x16c3d4);for(const _0x101c2a of Object['keys'](_0x1cb01e['model'])){const _0x4a85c7=_0x51d373['addRoot'](_0x101c2a);for(const _0x108c8d of Object['keys'](_0x1cb01e['attributes'][_0x101c2a]))_0x51d373['setAttribute'](_0x108c8d,_0x1cb01e['attributes'][_0x101c2a][_0x108c8d],_0x4a85c7);_0x51d373['insert'](_0x1cb01e['model'][_0x101c2a],_0x4a85c7,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1cb01e['changes'])),this['isReady']=!0x0;})['catch'](_0x1bddb9=>{console['error'](_0x1bddb9),this['_cleanUp'](),_0x3b7285&&(this['diff']=_0x3b7285),this['isReady']=!0x0;});}['addRevisionData'](_0x41089e,_0x17bd40){const _0x5133b5=this['repository']['createRevision'](_0x41089e);return _0x5133b5['on']('_update',(_0xe3fd0e,_0x222977,_0x485415)=>_0x17bd40(_0x222977,_0x485415,_0x5133b5)),this['repository']['addRevision'](_0x5133b5),_0x5133b5;}['loadRevisionData'](_0x5e2e5a){if(!_0x5e2e5a||_0x5e2e5a['diffData'])return Promise['resolve']();{const _0x280429=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x280429,'revisionId':_0x5e2e5a['id']})['then'](_0x58f739=>{_0x5e2e5a['_update']({'diffData':_0x58f739['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},_0x1ce70c=>{for(const _0x54ec6d of this['editor']['model']['document']['getRootNames']())_0x1ce70c['detachRoot'](_0x54ec6d);});}['_sortAndFilterDiffChanges'](_0x55e7c8){const _0x3c5859=[],_0x284cde=new Map();for(const _0x12eeb4 of this['editor']['model']['document']['getRootNames']()){const _0x5cd853=this['editor']['editing']['view']['getDomRoot'](_0x12eeb4);if(!_0x5cd853)continue;const _0x4f2dce=_0x5cd853['getClientRects']()['item'](0x0);_0x4f2dce&&(_0x3c5859['push'](_0x12eeb4),_0x284cde['set'](_0x12eeb4,_0x4f2dce));}return _0x3c5859['sort']((_0x4977b9,_0x1b195c)=>{const _0x16aee2=_0x284cde['get'](_0x4977b9),_0x2eb46a=_0x284cde['get'](_0x1b195c);return _0x16aee2['y']-_0x2eb46a['y']||_0x16aee2['x']-_0x2eb46a['x'];}),(_0x55e7c8=_0x55e7c8['filter'](_0x3cfacb=>_0x3c5859['includes'](_0x3cfacb['rootName'])))['sort']((_0xfc9f2c,_0x4b6b21)=>_0x3c5859['indexOf'](_0xfc9f2c['rootName'])-_0x3c5859['indexOf'](_0x4b6b21['rootName'])),_0x55e7c8;}['_makeTape'](_0x24416b){const _0x56e012=Array['from'](_0x24416b['markers'])['filter'](([_0x5000c0,_0x400746])=>_0x5000c0['startsWith']('revision:')&&!_0x400746['isCollapsed']),_0x39f316=Array['from'](this['editor']['model']['createRangeIn'](_0x24416b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x56e012['length'])for(const _0x5a1d58 of _0x39f316){const [_0x1a6f39,_0x61552c]=_0x56e012[0x0],[,_0x4d83f7,_0x4ebaaf]=_0x1a6f39['split'](':');if(_0x61552c['end']['isEqual'](_0x5a1d58['nextPosition'])&&_0x56e012['shift'](),(_0x5a1d58['previousPosition']['isEqual'](_0x61552c['start'])||_0x5a1d58['previousPosition']['isAfter'](_0x61552c['start']))&&('insertion'==_0x4d83f7?_0x5a1d58['isAdded']={'userId':_0x4ebaaf}:'deletion'==_0x4d83f7&&(_0x5a1d58['isRemoved']={'userId':_0x4ebaaf})),0x0==_0x56e012['length'])break;}return _0x39f316;}['_refreshStartEndIndex'](_0x1a913b){const _0x417eb3=new Map();for(let _0x5107b8=0x0;_0x5107b8<_0x1a913b['length'];_0x5107b8++)'text'===_0x1a913b[_0x5107b8]['type']?(_0x1a913b[_0x5107b8]['item']['startIndex']=_0x5107b8,_0x1a913b[_0x5107b8]['item']['endIndex']=_0x5107b8):('elementStart'===_0x1a913b[_0x5107b8]['type']?_0x1a913b[_0x5107b8]['item']['startIndex']=_0x5107b8:'elementEnd'===_0x1a913b[_0x5107b8]['type']&&(_0x1a913b[_0x5107b8]['item']['endIndex']=_0x5107b8),_0x417eb3['set'](_0x1a913b[_0x5107b8]['id'],_0x5107b8));for(const _0x12a4af of _0x417eb3['values']())'elementStart'===_0x1a913b[_0x12a4af]['type']?_0x1a913b[_0x12a4af]['item']['endIndex']=_0x417eb3['get'](_0x1a913b[_0x12a4af]['pairId']):'elementEnd'===_0x1a913b[_0x12a4af]['type']&&(_0x1a913b[_0x12a4af]['item']['startIndex']=_0x417eb3['get'](_0x1a913b[_0x12a4af]['pairId']));}['_processTape'](_0x42d1bf){for(let _0x22c085=0x0;_0x22c085<_0x42d1bf['length'];_0x22c085++){if('elementStart'===_0x42d1bf[_0x22c085]['type'])_0x42d1bf[_0x22c085]['item']['startIndex']=_0x22c085;else{if('elementEnd'===_0x42d1bf[_0x22c085]['type']){_0x42d1bf[_0x22c085]['item']['endIndex']=_0x22c085;const _0x434a01=_0x42d1bf[_0x22c085]['item']['startIndex'];_0x42d1bf[_0x434a01]['pairId']=_0x42d1bf[_0x22c085]['id'],_0x42d1bf[_0x22c085]['pairId']=_0x42d1bf[_0x434a01]['id'];}else _0x42d1bf[_0x22c085]['item']['startIndex']=_0x22c085,_0x42d1bf[_0x22c085]['item']['endIndex']=_0x22c085,_0x42d1bf[_0x22c085]['pairId']=null;}_0x42d1bf[_0x22c085]['markersStart']||(_0x42d1bf[_0x22c085]['markersStart']=[],_0x42d1bf[_0x22c085]['markersEnd']=[]);}}['_markInsertions'](_0x453156,_0x2578b9){const _0x5eb09b=_0x453156['filter'](_0x106ca7=>!_0x106ca7['isAdded']);for(let _0x29ba60=0x0;_0x29ba60<_0x2578b9['length'];_0x29ba60++)_0x2578b9[_0x29ba60]['isAdded']&&(_0x5eb09b[_0x29ba60]['isAdded']=_0x2578b9[_0x29ba60]['isAdded']);}['_makeModelFromViewString'](_0x564ee9){const _0xa65b2f=JSON['parse'](_0x564ee9),_0x362fab=this['editor']['editing']['view']['document'],_0x387c22=new _0x2ff272(_0x362fab,_0xa65b2f['map'](_0x3b17d5=>this['_getViewObj'](_0x3b17d5)));return this['editor']['data']['toModel'](_0x387c22);}['_getViewObj'](_0x3ae1a5){const _0x25f657=this['editor']['editing']['view']['document'];if('string'==typeof _0x3ae1a5)return new _0x5819cc(_0x25f657,_0x3ae1a5);{const _0x2a0ce7=_0x3ae1a5['children']['map'](_0x25d55c=>this['_getViewObj'](_0x25d55c));return new(Z[_0x3ae1a5['type']]||_0x17cad2)(_0x25f657,_0x3ae1a5['name'],_0x3ae1a5['attributes'],_0x2a0ce7);}}['_getDiff'](_0x4ab2bc,_0x48a9eb=null){const _0x5a59be=this['repository']['getRevision'](_0x4ab2bc),_0x2c1abd=_0x48a9eb?this['repository']['getRevision'](_0x48a9eb):null,_0xcfa088=this['_getRevisionsRange'](_0x5a59be,_0x2c1abd),_0x30b6a1=_0xcfa088[_0xcfa088['length']-0x1],_0x2d6585=new Map(),_0x53d17b={'model':{},'attributes':{},'changes':[]},_0x341cd8=new Set(),_0x5cf32c=new Map();for(let _0xe36caa=_0xcfa088['length']-0x1;_0xe36caa>=0x0;_0xe36caa--){const _0x45350c=_0xcfa088[_0xe36caa];for(const _0x22ef94 of Object['keys'](_0x45350c['diffData']))if(_0x45350c['diffData'][_0x22ef94]['attachChange']){const _0x394e30=_0x45350c['diffData'][_0x22ef94]['attachChange'];_0x394e30['isAttached']?(_0x341cd8['add'](_0x22ef94),_0x5cf32c['has'](_0x22ef94)&&_0x5cf32c['get'](_0x22ef94)['userId']==_0x394e30['userId']?_0x5cf32c['delete'](_0x22ef94):_0x5cf32c['set'](_0x22ef94,_0x394e30)):_0x5cf32c['has'](_0x22ef94)?(_0x341cd8['delete'](_0x22ef94),_0x5cf32c['delete'](_0x22ef94)):(_0x341cd8['add'](_0x22ef94),_0x5cf32c['set'](_0x22ef94,_0x394e30));}else _0x341cd8['add'](_0x22ef94);}for(const _0xf7e594 of _0x341cd8){const _0x2ff228=_0x5cf32c['has'](_0xf7e594)&&!_0x5cf32c['get'](_0xf7e594)['isAttached'];let _0x1ea96a=_0x2ff228?_0xcfa088['length']-0x1:0x0;const _0x56083c=_0x2ff228?-0x1:0x1;for(;_0xcfa088[_0x1ea96a];){const _0x37c3a4=_0xcfa088[_0x1ea96a];if(_0x37c3a4['diffData'][_0xf7e594]){const _0x9b92e0=_0x2ff228?_0x37c3a4['diffData'][_0xf7e594]['attributesBefore']:_0x37c3a4['diffData'][_0xf7e594]['attributesAfter'];_0x53d17b['attributes'][_0xf7e594]=_0x9b92e0?_0x4de36a(_0x9b92e0):{};break;}_0x1ea96a+=_0x56083c;}}for(const _0x223451 of _0xcfa088){_0x223451['model']={};for(const _0x1e2ae2 of _0x223451['authors'])_0x2d6585['set'](_0x1e2ae2['id'],_0x1e2ae2);for(const _0x273cbc of _0x341cd8){const _0xaaf55d=_0x223451['diffData'][_0x273cbc]?_0x223451['diffData'][_0x273cbc]['insertions']:'[]',_0x48fa64=_0x223451['diffData'][_0x273cbc]?_0x223451['diffData'][_0x273cbc]['deletions']:'[]';_0x223451['model'][_0x273cbc]={'insertions':this['_makeModelFromViewString'](_0xaaf55d),'deletions':this['_makeModelFromViewString'](_0x48fa64)};}}for(const _0x5d885d of _0x341cd8){let _0x2fec90=null,_0x16c565=0x0;const _0x2aae0c=new Map(Array['from'](_0x5a59be['model'][_0x5d885d]['insertions']['markers'])['filter'](([_0x7fa586])=>!_0x7fa586['startsWith']('revision:')));let _0x166c55=0x0;for(const _0x5a9c5c of _0xcfa088){const _0x3c6c98=this['_makeTape'](_0x5a9c5c['model'][_0x5d885d]['insertions']);_0x5a9c5c==_0x5a59be?(_0x2fec90=_0x3c6c98,_0x16c565=_0x2fec90['length'],_0x2fec90['forEach'](_0x50d29e=>{_0x50d29e['id']=_0x166c55++;}),this['_processTape'](_0x2fec90)):this['_markInsertions'](_0x2fec90,_0x3c6c98);const _0x33cc68=_0x2fec90['filter'](_0x57abe9=>!_0x57abe9['isAdded'])['map'](_0x944d18=>_0x944d18['id']);let _0x13a707=0x0;const _0x88ff73=this['_makeTape'](_0x5a9c5c['model'][_0x5d885d]['deletions']);_0x88ff73['forEach'](_0x43e1af=>{_0x43e1af['isRemoved']?_0x43e1af['id']=_0x16c565++:_0x43e1af['id']=_0x33cc68[_0x13a707++];}),this['_processTape'](_0x88ff73),this['_setDistance'](_0x2fec90,'isAdded'),this['_setDistance'](_0x88ff73,'isRemoved'),_0x5a9c5c==_0x5a59be&&this['_markMarkers'](_0x2fec90,_0x2aae0c),_0x2fec90=this['_joinTapes'](_0x2fec90,_0x88ff73),this['_refreshStartEndIndex'](_0x2fec90),this['_setDistance'](_0x2fec90,'isRemoved');}_0x2fec90=_0x2fec90['filter'](_0x4cc84e=>!(_0x4cc84e['isAdded']&&_0x4cc84e['isRemoved']));const _0x30325b=new Map(_0x30b6a1['model'][_0x5d885d]['deletions']['markers']),_0x8b1980=new Set(_0x2aae0c['keys']());for(const _0x73d725 of _0x30325b['keys']())_0x8b1980['delete'](_0x73d725);this['_markSuggestions'](_0x2fec90,_0x8b1980),this['_fixObsoleteTags'](_0x2fec90),_0x2fec90=this['_removeMissingPairs'](_0x2fec90),_0x2fec90=this['_markMismatchedRemovedTags'](_0x2fec90),_0x2fec90=this['_removeUnsupportedChanges'](_0x2fec90);const {root:_0x411467,changes:_0x30f0fa}=this['_makeModelFromTape'](_0x2fec90,_0x2d6585,_0x5d885d);_0x53d17b['model'][_0x5d885d]=_0x411467;const _0x1d0e33=_0x5cf32c['get'](_0x5d885d);if(_0x1d0e33){const _0x20b4c5=_0x2d6585['get'](_0x1d0e33['userId']),_0x1e2412=new r({'author':_0x20b4c5,'type':_0x1d0e33['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x5d885d});_0x30f0fa['unshift'](_0x1e2412),_0x53d17b['attributes'][_0x5d885d]['revisionHistoryAttachChange']=_0x1e2412['id'];}_0x53d17b['changes']=_0x53d17b['changes']['concat'](_0x30f0fa);}return _0x53d17b;}['_markMarkers'](_0x88a6b4,_0xa0995c){for(let _0x3a5f77=0x0;_0x3a5f77<_0x88a6b4['length'];_0x3a5f77++)for(const [_0x2f0421,_0x20cce1]of _0xa0995c)_0x20cce1['start']['isEqual'](_0x88a6b4[_0x3a5f77]['previousPosition'])&&_0x88a6b4[_0x3a5f77]['markersStart']['push'](_0x2f0421),_0x20cce1['end']['isEqual'](_0x88a6b4[_0x3a5f77]['nextPosition'])&&_0x88a6b4[_0x3a5f77]['markersEnd']['push'](_0x2f0421);}['_joinTapes'](_0x525eda,_0xdc8175){let _0x126a87=[],_0x502be7=0x0,_0x504da1=0x0;for(;_0x502be7<_0x525eda['length']||_0x504da1<_0xdc8175['length'];){const _0xeaab69=_0x525eda[_0x502be7]||{},_0x51f9cf=_0xdc8175[_0x504da1]||{};if(_0xeaab69['id']==_0x51f9cf['id'])_0x502be7++,_0x504da1++,_0x126a87['push'](_0xeaab69);else{if(_0x51f9cf['isRemoved']&&_0xeaab69['isAdded']){const {commonTape:_0x2f9d8e,iEnd:_0x1f27a0,jEnd:_0x16e6af}=this['_threeWayMerge'](_0x525eda,_0x502be7,_0xdc8175,_0x504da1);_0x126a87=_0x126a87['concat'](_0x2f9d8e),_0x502be7=_0x1f27a0,_0x504da1=_0x16e6af;}else _0x51f9cf['isRemoved']?(_0x504da1++,_0x126a87['push'](_0x51f9cf)):(_0x502be7++,_0x126a87['push'](_0xeaab69));}}return _0x126a87;}['_markSuggestions'](_0x424e48,_0x3e01a6){const _0x1b7869=[];for(let _0x19f5ef=0x0;_0x19f5ef<_0x424e48['length'];_0x19f5ef++){for(let _0x2c4e25=0x0;_0x2c4e25<_0x424e48[_0x19f5ef]['markersStart']['length'];_0x2c4e25++){const _0x4dbae3=_0x424e48[_0x19f5ef]['markersStart'][_0x2c4e25];if(!_0x3e01a6['has'](_0x4dbae3))continue;const {group:_0x3cf4d8,type:_0x139f5b,authorId:_0x314b58}=_0x39043e(_0x4dbae3);'revision-suggestion'!=_0x3cf4d8||'insertion'!=_0x139f5b&&'deletion'!=_0x139f5b||(_0x1b7869['unshift']({'type':_0x139f5b,'name':_0x4dbae3,'userId':_0x314b58}),_0x424e48[_0x19f5ef]['markersStart']['splice'](_0x2c4e25,0x1),_0x2c4e25--);}_0x25abad(_0x424e48[_0x19f5ef]);for(let _0x45aa75=0x0;_0x45aa75<_0x424e48[_0x19f5ef]['markersEnd']['length'];_0x45aa75++){const _0x1dd4ec=_0x424e48[_0x19f5ef]['markersEnd'][_0x45aa75];if(!_0x3e01a6['has'](_0x1dd4ec))continue;const {group:_0x1824f8,type:_0x1d35d6}=_0x39043e(_0x1dd4ec);if('revision-suggestion'!=_0x1824f8||'insertion'!=_0x1d35d6&&'deletion'!=_0x1d35d6)continue;_0x424e48[_0x19f5ef]['markersEnd']['splice'](_0x45aa75,0x1),_0x45aa75--;const _0x315088=_0x1b7869['findIndex'](_0x4dac12=>_0x4dac12['name']==_0x1dd4ec);_0x315088>-0x1&&_0x1b7869['splice'](_0x315088,0x1);}}function _0x39043e(_0x2c8c06){const _0x12911d=_0x2c8c06['split'](':');return{'group':_0x12911d[0x0],'type':_0x12911d[0x1],'subType':_0x12911d['length']>=0x5?_0x12911d[0x2]:null,'id':_0x12911d['length']<0x5?_0x12911d[0x2]:_0x12911d[0x3],'authorId':_0x12911d['length']<0x5?_0x12911d[0x3]:_0x12911d[0x4],'markerCount':0x6==_0x12911d['length']?_0x12911d[0x5]:null};}function _0x25abad(_0x4d019d){for(let _0x41bd8d=0x0;_0x41bd8d<_0x1b7869['length'];_0x41bd8d++){if(_0x4d019d['isAdded']&&'insertion'==_0x1b7869[_0x41bd8d]['type'])return _0x4d019d['isAddSuggestion']=_0x1b7869[_0x41bd8d],void delete _0x4d019d['isAdded'];if(!_0x4d019d['isAdded']&&!_0x4d019d['isRemoved']&&'deletion'==_0x1b7869[_0x41bd8d]['type'])return void(_0x4d019d['isRemoveSuggestion']=_0x1b7869[_0x41bd8d]);}}}['_setDistance'](_0x2b2718,_0x5e105d){let _0x1e7973=0x0,_0x583e23=!0x1;const _0x42b157=new Map();for(const _0x180086 of _0x2b2718)_0x180086[_0x5e105d]?_0x583e23&&(_0x1e7973++,_0x583e23=!0x1):(_0x1e7973++,_0x583e23=!0x0),_0x42b157['set'](_0x180086['id'],_0x1e7973);for(let _0x51e8eb=0x0;_0x51e8eb<_0x2b2718['length'];_0x51e8eb++){if('isRemoved'==_0x5e105d&&_0x2b2718[_0x51e8eb]['isAdded']||'isAdded'==_0x5e105d&&_0x2b2718[_0x51e8eb]['isRemoved'])continue;if('text'==_0x2b2718[_0x51e8eb]['type']){_0x2b2718[_0x51e8eb]['distance']=0x0;continue;}const _0xf878ac=_0x42b157['get'](_0x2b2718[_0x51e8eb]['pairId']),_0x41939e=_0x42b157['get'](_0x2b2718[_0x51e8eb]['id']);_0x2b2718[_0x51e8eb]['distance']=_0xf878ac-_0x41939e;}}['_getRevisionsRange'](_0x353cc1,_0x30b660,_0x37a642=!0x1){const _0x4992fc=[];let _0xb23606=this['repository']['getIndex'](_0x353cc1),_0x42720d=this['repository']['getIndex'](_0x30b660);for(-0x1==_0x42720d&&(_0x42720d=this['repository']['_revisions']['length'],_0x37a642=!0x1);_0xb23606<_0x42720d;)_0x4992fc['push'](this['repository']['getRevision'](_0xb23606)),_0xb23606++;return _0x37a642&&_0x4992fc['push'](this['repository']['getRevision'](_0xb23606)),_0x4992fc;}['_threeWayMerge'](_0x3c334b,_0xa68fbb,_0xac2734,_0x53b6b4){const _0x3b0e23=this['editor']['model']['schema'];let _0x3e7818=_0xa68fbb;for(;_0x3c334b[_0x3e7818]&&_0x3c334b[_0x3e7818]['isAdded'];)_0x3e7818++;let _0x1650d0=_0x53b6b4;for(;_0xac2734[_0x1650d0]&&_0xac2734[_0x1650d0]['isRemoved'];)_0x1650d0++;_0x44949d(_0x3c334b,_0xa68fbb,_0x3e7818),_0x44949d(_0xac2734,_0x53b6b4,_0x1650d0);const _0x186cf6=_0xac2734['slice'](_0x53b6b4,_0x1650d0)['concat'](_0x3c334b['slice'](_0xa68fbb,_0x3e7818));return _0x186cf6['sort']((_0x2f493a,_0x2ccab9)=>_0x2f493a['side']!=_0x2ccab9['side']?_0x2f493a['side']-_0x2ccab9['side']:_0x2f493a['level']!=_0x2ccab9['level']?_0x2f493a['level']-_0x2ccab9['level']:_0x2f493a['distance']!=_0x2ccab9['distance']?_0x2ccab9['distance']-_0x2f493a['distance']:!!_0x2f493a['isAdded']!=!!_0x2ccab9['isAdded']?-0x1==_0x2f493a['side']||0x0==_0x2f493a['side']?_0x2f493a['isAdded']?-0x1:0x1:_0x2f493a['isAdded']?0x1:-0x1:_0x2f493a['index']-_0x2ccab9['index']),{'commonTape':_0x186cf6,'iEnd':_0x3e7818,'jEnd':_0x1650d0};function _0x44949d(_0x3b37e4,_0x29e409,_0x477514){let _0xa68a24=-0x1,_0x1d6c40=Number['POSITIVE_INFINITY'],_0x33c29f=!0x0;for(let _0x9241d9=_0x29e409;_0x9241d9<_0x477514;_0x9241d9++)if(_0x3b0e23['isInline'](_0x3b37e4[_0x9241d9]['item'])||(_0x33c29f=!0x1),_0x3b37e4[_0x9241d9]['item']['startIndex']<_0x29e409&&(_0xa68a24=_0x9241d9),_0x3b37e4[_0x9241d9]['item']['endIndex']>=_0x477514){_0x1d6c40=_0x9241d9;break;}_0x33c29f&&(_0xa68a24=_0x477514-0x1);for(let _0x2817b1=_0x29e409;_0x2817b1<_0x477514;_0x2817b1++)_0x3b37e4[_0x2817b1]['side']=_0x2817b1<=_0xa68a24?-0x1:_0x2817b1<_0x1d6c40?0x0:0x1,_0x3b37e4[_0x2817b1]['index']=_0x2817b1;let _0x2385ee=0x0;for(let _0x5b2ec1=_0x29e409;_0x5b2ec1<=_0xa68a24;_0x5b2ec1++)0x0==_0x3b37e4[_0x5b2ec1]['distance']?_0x3b37e4[_0x5b2ec1]['level']=_0x2385ee:(_0x2385ee++,_0x3b37e4[_0x5b2ec1]['level']=_0x2385ee,_0x2385ee++);for(let _0x34bed4=_0x29e409;_0x34bed4<_0x477514;_0x34bed4++)0x0==_0x3b37e4[_0x34bed4]['side']&&(_0x3b37e4[_0x34bed4]['level']=_0x2385ee);_0x2385ee=0x0;for(let _0x4c6570=_0x477514-0x1;_0x4c6570>=_0x1d6c40;_0x4c6570--)0x0==_0x3b37e4[_0x4c6570]['distance']?_0x3b37e4[_0x4c6570]['level']=_0x2385ee:(_0x2385ee--,_0x3b37e4[_0x4c6570]['level']=_0x2385ee,_0x2385ee--);}}['_fixObsoleteTags'](_0x594122){const _0x11ed00=new Map(),_0xbfc9d=this['editor']['model']['schema'];for(let _0x3dc7be=0x1;_0x3dc7be<_0x594122['length'];_0x3dc7be++){let _0x490989,_0x473e10,_0x16fd84;const _0x5164c5=_0x594122[_0x3dc7be],_0x1ff35c=_0x594122[_0x3dc7be-0x1];if('text'==_0x5164c5['type'])continue;if(_0x5164c5['type']!=_0x1ff35c['type'])continue;if(!_0xbfc9d['isBlock'](_0x1ff35c['item'])||_0xbfc9d['isLimit'](_0x1ff35c['item']))continue;if(!_0xbfc9d['isBlock'](_0x5164c5['item'])||_0xbfc9d['isLimit'](_0x5164c5['item']))continue;if((_0x594122[_0x3dc7be]['isAdded']||_0x594122[_0x3dc7be]['isAddSuggestion'])&&_0x594122[_0x3dc7be-0x1]['isRemoved'])_0x490989=_0x594122[_0x3dc7be],_0x473e10=_0x594122[_0x3dc7be-0x1],_0x16fd84=_0x3dc7be-0x1;else{if(!_0x594122[_0x3dc7be]['isRemoved']||!_0x594122[_0x3dc7be-0x1]['isAdded']&&!_0x594122[_0x3dc7be-0x1]['isAddSuggestion'])continue;_0x490989=_0x594122[_0x3dc7be-0x1],_0x473e10=_0x594122[_0x3dc7be],_0x16fd84=_0x3dc7be;}const _0x40ce18=_0x490989['level']==_0x473e10['level'],_0x28f32f=Math['abs'](_0x490989['level'])<Math['abs'](_0x473e10['level'])&&0x0==_0x473e10['distance'];(_0x40ce18||_0x28f32f)&&(_0x11ed00['set'](_0x473e10['id'],_0x490989['id']),_0x594122['splice'](_0x16fd84,0x1),_0x3dc7be--,_0x490989['isAdded']=!0x1);}for(let _0x57b8bf=0x0;_0x57b8bf<_0x594122['length'];_0x57b8bf++)_0x11ed00['has'](_0x594122[_0x57b8bf]['pairId'])&&(_0x594122[_0x57b8bf]['pairId']=_0x11ed00['get'](_0x594122[_0x57b8bf]['pairId']));}['_removeMissingPairs'](_0x4312e2){const _0x17b406=new Set(_0x4312e2['map'](_0x2d3e7e=>_0x2d3e7e['id']));for(let _0x387469=0x0;_0x387469<_0x4312e2['length'];_0x387469++)_0x17b406['has'](_0x4312e2[_0x387469]['pairId'])||0x0==_0x4312e2[_0x387469]['distance']||(_0x4312e2[_0x387469]['isIncorrect']=!0x0);return _0x4312e2['filter'](_0x5e5d19=>!_0x5e5d19['isIncorrect']);}['_markMismatchedRemovedTags'](_0x41b3d2){const _0x510a48=new Set();for(let _0x21e90b=0x0;_0x21e90b<_0x41b3d2['length'];_0x21e90b++){if(_0x510a48['has'](_0x41b3d2[_0x21e90b]['id'])&&_0x41b3d2[_0x21e90b]['isRemoved']&&(_0x41b3d2[_0x21e90b]['isIncorrect']=!0x0),_0x41b3d2[_0x21e90b]['isIncorrect'])continue;if(0x0==_0x41b3d2[_0x21e90b]['distance'])continue;if('elementStart'!=_0x41b3d2[_0x21e90b]['type'])continue;if(null==_0x41b3d2[_0x21e90b]['pairId'])continue;let _0xabe54e=_0x21e90b+0x1,_0x3c522f=0x0;for(;_0x41b3d2[_0xabe54e]['id']!=_0x41b3d2[_0x21e90b]['pairId'];)'elementStart'==_0x41b3d2[_0xabe54e]['type']?_0x3c522f++:'elementEnd'==_0x41b3d2[_0xabe54e]['type']&&_0x3c522f--,_0xabe54e++;if(0x0!=_0x3c522f){if(_0x41b3d2[_0x21e90b]['isRemoved'])_0x41b3d2[_0x21e90b]['isIncorrect']=!0x0;else{for(;_0xabe54e!=_0x21e90b;)_0x41b3d2[_0xabe54e]['isRemoved']&&0x0!=_0x41b3d2[_0xabe54e]['distance']&&(_0x41b3d2[_0xabe54e]['isIncorrect']=!0x0,_0x510a48['add'](_0x41b3d2[_0xabe54e]['pairId'])),_0xabe54e--;}}}return _0x41b3d2['filter'](_0x466d2d=>!_0x466d2d['isIncorrect']);}['_removeUnsupportedChanges'](_0x3a75ba){const _0xe62ac9=this['editor']['model']['schema'];for(let _0x5be0db=0x0;_0x5be0db<_0x3a75ba['length'];_0x5be0db++){if(!(_0x3a75ba[_0x5be0db]['isAdded']||_0x3a75ba[_0x5be0db]['isAddSuggestion']||_0x3a75ba[_0x5be0db]['isRemoved']||_0x3a75ba[_0x5be0db]['isRemoveSuggestion']))continue;if(0x0==_0x3a75ba[_0x5be0db]['distance'])continue;const _0x39c47e=_0x3a75ba[_0x5be0db]['item'];_0xe62ac9['isBlock'](_0x39c47e)||_0xe62ac9['isLimit'](_0x39c47e)||(_0x3a75ba[_0x5be0db]['isAdded']&&delete _0x3a75ba[_0x5be0db]['isAdded'],_0x3a75ba[_0x5be0db]['isAddSuggestion']&&delete _0x3a75ba[_0x5be0db]['isAddSuggestion'],_0x3a75ba[_0x5be0db]['isRemoveSuggestion']&&delete _0x3a75ba[_0x5be0db]['isRemoveSuggestion'],_0x3a75ba[_0x5be0db]['isRemoved']&&(_0x3a75ba[_0x5be0db]['isIncorrect']=!0x0));}return _0x3a75ba['filter'](_0x829cd8=>!_0x829cd8['isIncorrect']);}['_makeModelFromTape'](_0x16e88e,_0x45f323,_0xe87963){const _0x4f595e=new mt(),_0x16d435=[],_0x4fd5e1=new Map(),_0xeb358=this['editor']['model'],_0x10d749=_0xeb358['schema'],_0x1d4abe=[_0x4f595e],_0x1ef216={},_0xb297f3={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4a430e=null;const _0x1928e0=[0x0];for(let _0x44843c=0x0;_0x44843c<_0x16e88e['length'];_0x44843c++)if('elementStart'===_0x16e88e[_0x44843c]['type']){_0x16e88e[_0x44843c]['previousPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0);const _0xd03ec5=new ft(_0x16e88e[_0x44843c]['item']['name'],_0x16e88e[_0x44843c]['item']['getAttributes']());_0x1d4abe[0x0]['_appendChild'](_0xd03ec5),_0x1928e0['push'](0x0),_0x1d4abe['unshift'](_0xd03ec5),_0x16e88e[_0x44843c]['nextPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0);}else'elementEnd'===_0x16e88e[_0x44843c]['type']?(_0x1d4abe['shift'](),_0x16e88e[_0x44843c]['previousPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0),_0x1928e0['pop'](),_0x1928e0[_0x1928e0['length']-0x1]++,_0x16e88e[_0x44843c]['nextPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0)):(_0x16e88e[_0x44843c]['previousPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0),_0x4a430e?_0x4a430e['_data']+=_0x16e88e[_0x44843c]['item']['data']:_0x4a430e=new wt(_0x16e88e[_0x44843c]['item']['data'],_0x16e88e[_0x44843c]['item']['getAttributes']()),_0x16e88e[_0x44843c+0x1]&&'text'===_0x16e88e[_0x44843c+0x1]['type']&&_0x46f538(_0x4a430e,_0x16e88e[_0x44843c+0x1]['item'])||(_0x1d4abe[0x0]['_appendChild'](_0x4a430e),_0x4a430e=null),_0x1928e0[_0x1928e0['length']-0x1]+=_0x16e88e[_0x44843c]['item']['offsetSize'],_0x16e88e[_0x44843c]['nextPosition']=_0xeb358['createPositionFromPath'](_0x4f595e,_0x1928e0));for(let _0x40178c=0x0;_0x40178c<_0x16e88e['length'];_0x40178c++){const _0x45da53=_0x16e88e[_0x40178c]['previousPosition'],_0x49fb7d=_0x16e88e[_0x40178c]['nextPosition'];for(const _0x30286b of _0x16e88e[_0x40178c]['markersStart'])_0x4fd5e1['set'](_0x30286b,{'start':_0x45da53,'end':null});_0x48b4db('isRemoveSuggestion',_0x40178c,_0x45da53,_0x49fb7d),_0x48b4db('isAddSuggestion',_0x40178c,_0x45da53,_0x49fb7d),_0x48b4db('isRemoved',_0x40178c,_0x45da53,_0x49fb7d),_0x48b4db('isAdded',_0x40178c,_0x45da53,_0x49fb7d);for(const _0x515c4d of _0x16e88e[_0x40178c]['markersEnd']){_0x4fd5e1['get'](_0x515c4d)['end']=_0x49fb7d;}}for(const [_0x28e37a,_0x55ecf3]of _0x4fd5e1){const _0x5042db=this['editor']['model']['createRange'](_0x55ecf3['start'],_0x55ecf3['end']);_0x4f595e['markers']['set'](_0x28e37a,_0x5042db);}return _0x16d435['sort']((_0x29023a,_0x188895)=>{const _0x4144cd=_0x4f595e['markers']['get']('revision:'+_0x29023a['id']),_0x291e61=_0x4f595e['markers']['get']('revision:'+_0x188895['id']);return _0x4144cd['start']['isBefore'](_0x291e61['start'])?-0x1:_0x4144cd['start']['isAfter'](_0x291e61['start'])?0x1:_0x4144cd['end']['isBefore'](_0x291e61['end'])?-0x1:_0x4144cd['end']['isAfter'](_0x291e61['end'])?0x1:'add'===_0x29023a['type']?-0x1:0x1;}),{'root':_0x4f595e,'changes':_0x16d435};function _0x48b4db(_0x3047b0,_0x3b91ae,_0x454edc,_0x30993c){const _0x22ef35=!!_0x16e88e[_0x3b91ae][_0x3047b0],_0x5b98fd=_0x22ef35?_0x16e88e[_0x3b91ae][_0x3047b0]['userId']:null,_0x53cee4=_0x3b91ae===_0x16e88e['length']-0x1,_0x51bc4e=_0xb297f3[_0x3047b0][0x0],_0x57bed3=_0x10d749['isObject'](_0x16e88e[_0x3b91ae]['item']);!_0x1ef216[_0x3047b0]&&_0x22ef35?_0x1ef216[_0x3047b0]={'start':_0x454edc,'tapeItem':_0x16e88e[_0x3b91ae],'userId':_0x5b98fd,'type':_0x3047b0}:_0x1ef216[_0x3047b0]&&!_0x22ef35?(_0x1ef216[_0x3047b0]['end']=_0x454edc,_0x493b7c(_0x1ef216[_0x3047b0]),_0x1ef216[_0x3047b0]=null):_0x1ef216[_0x3047b0]&&_0x22ef35&&_0x1ef216[_0x3047b0]['userId']!==_0x5b98fd&&(_0x1ef216[_0x3047b0]['end']=_0x454edc,_0x51bc4e&&_0x51bc4e['userId']===_0x1ef216[_0x3047b0]['userId']||_0x493b7c(_0x1ef216[_0x3047b0]),_0x1ef216[_0x3047b0]={'start':_0x454edc,'tapeItem':_0x16e88e[_0x3b91ae],'userId':_0x5b98fd,'type':_0x3047b0}),_0x1ef216[_0x3047b0]&&_0x57bed3&&('elementStart'!==_0x16e88e[_0x3b91ae]['type']||_0x51bc4e&&_0x51bc4e['userId']===_0x5b98fd||_0xb297f3[_0x3047b0]['unshift']({'userId':_0x5b98fd,'object':_0x16e88e[_0x3b91ae]['item'],'change':_0x1ef216[_0x3047b0]}),'elementEnd'===_0x16e88e[_0x3b91ae]['type']&&_0x51bc4e&&_0x51bc4e['object']===_0x16e88e[_0x3b91ae]['item']&&(_0xb297f3[_0x3047b0]['shift'](),_0x1ef216[_0x3047b0]=_0x51bc4e['change'])),_0x1ef216[_0x3047b0]&&_0x53cee4&&(_0x1ef216[_0x3047b0]['end']=_0x30993c,_0x493b7c(_0x1ef216[_0x3047b0]),_0x1ef216[_0x3047b0]=null);}function _0x493b7c({start:_0x5dfe11,end:_0x49633e,tapeItem:_0xb6aa78,userId:_0x348cb0,type:_0x2e6260}){const _0x1b066b=_0xb6aa78['item'],_0x4a5858=_0xeb358['schema']['isBlock'](_0x1b066b)&&!_0xeb358['schema']['isLimit'](_0x1b066b),_0x14508c=_0x5dfe11['nodeAfter']==_0x49633e['parent']&&_0x49633e['isAtStart'];if(_0x4a5858&&_0x14508c)return;const _0x464a97=_0xeb358['createRange'](_0x5dfe11,_0x49633e),_0x36adee=_0x45f323['get'](_0x348cb0),_0x4612ac=new r({'author':_0x36adee,'type':'isAdded'==_0x2e6260||'isAddSuggestion'==_0x2e6260?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x2e6260||'isRemoveSuggestion'==_0x2e6260},'createdAt':new Date(),'rootName':_0xe87963});_0x16d435['push'](_0x4612ac),_0x4f595e['markers']['set']('revision:'+_0x4612ac['id'],_0x464a97);}function _0x46f538(_0x2048bd,_0x1a3aaa){const _0x886ca7=_0x2048bd['getAttributes'](),_0x53940f=_0x1a3aaa['getAttributes']();for(const _0x40bd9f of _0x886ca7){if(_0x40bd9f[0x1]!==_0x1a3aaa['getAttribute'](_0x40bd9f[0x0]))return!0x1;_0x53940f['next']();}return _0x53940f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x345dbd=>{const _0x21755b=_0x345dbd['markerName']['split'](':')[0x1],_0xc63707=this['_getChangeFromId'](_0x21755b);if(!_0xc63707)return null;const _0x5c4e7b='add'==_0xc63707['type']?'insertion':'deletion',_0x397c5b=['ck-suggestion-marker','ck-suggestion-marker-'+_0x5c4e7b];return _0xc63707['data']['isSuggestion']&&_0x397c5b['push']('ck-suggestion-marker-'+_0x5c4e7b+'-new'),this['activeChange']==_0xc63707&&_0x397c5b['push']('ck-suggestion-marker--active'),{'classes':_0x397c5b,'attributes':{'data-change-id':_0x21755b}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x548832=>{_0x548832['on']('element:pre',(_0x2dca7f,_0x2f6d89,_0x3c21c6)=>{const _0x445bd8=_0x2f6d89['viewItem']['getChild'](0x0);if(!_0x445bd8||!_0x445bd8['is']('element','code'))return;if(!_0x3c21c6['consumable']['consume'](_0x445bd8,{'attributes':['vid_start','vid_end']}))return;const _0x28899a=_0x2f6d89['modelRange']['start']['nodeAfter'];_0x3c21c6['writer']['setAttribute']('vid_start',_0x445bd8['getAttribute']('vid_start'),_0x28899a),_0x3c21c6['writer']['setAttribute']('vid_end',_0x445bd8['getAttribute']('vid_end'),_0x28899a);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x193ee0=>{_0x193ee0['on']('element',(_0xc52c7c,_0x2c6045,_0x5eec24)=>{if(!_0x5eec24['consumable']['consume'](_0x2c6045['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x2c6045['modelRange']['isCollapsed'])return;const _0x470af5=_0x2c6045['modelRange']['start']['nodeAfter'];_0x470af5['hasAttribute']('vid_start')||_0x470af5['hasAttribute']('vid')||(_0x5eec24['writer']['setAttribute']('vid_start',_0x2c6045['viewItem']['getAttribute']('vid_start'),_0x470af5),_0x5eec24['writer']['setAttribute']('vid_end',_0x2c6045['viewItem']['getAttribute']('vid_end'),_0x470af5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xac3ecd=>_0xac3ecd['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1ef50c,[,_0x53af61])=>{['vid_start','vid_end','vid']['includes'](_0x53af61)&&(_0x1ef50c['return']=!0x0,_0x1ef50c['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x173e6d=>{_0x173e6d['on']('attribute:vid',(_0x1ec109,_0x5b725d,_0x491606)=>{if('\x20'!=_0x5b725d['item']['data']||_0x5b725d['item']['parent']['maxOffset']>0x1)return;if(!_0x491606['consumable']['consume'](_0x5b725d['item'],_0x1ec109['name']))return;const _0x452b49=_0x491606['writer'],_0x4adb68=_0x491606['mapper']['toViewRange'](_0x5b725d['range']);_0x452b49['wrap'](_0x4adb68,_0x452b49['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x145bc1){const _0x5e746e=_0x145bc1['plugins']['get']('RevisionViewer');return(_0x4a768e,_0x33d6e3,_0x58e16a)=>{const _0x41b60f=_0x33d6e3['markerName']['split'](':')[0x1],_0x13201e=_0x5e746e['_getChangeFromId'](_0x41b60f);if(!_0x13201e)return null;const _0x110651='add'==_0x13201e['type']?'split':'merge';if(!_0x58e16a['consumable']['test'](_0x33d6e3['markerRange'],_0x4a768e['name']))return;const _0x216074=_0x33d6e3['markerRange']['getWalker'](),_0xd2ab75=_0x33d6e3['markerRange']['start'],_0x5555d2=_0x145bc1['model']['schema'];let _0x13935a=null,_0x249ef8=null,_0x4a90ed=!0x1,_0x55198c=!0x1;for(const _0x381f1c of _0x216074){const _0x5a4ff9=_0x381f1c['item'];_0x4a90ed=_0x4a90ed||_0x5555d2['isContent'](_0x5a4ff9);const _0x50baad=_0x58e16a['mapper']['toViewElement'](_0x5a4ff9);if(_0x50baad&&_0x50baad['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x381f1c['type']&&(_0x5555d2['isBlock'](_0x5a4ff9)&&!_0x5555d2['isLimit'](_0x5a4ff9)&&(_0x5a4ff9['nextSibling']||_0xd2ab75['isAtEnd']?_0x13935a&&_0x13935a['parent']==_0x5a4ff9||(_0x13935a=_0x5a4ff9,_0x4815c7(_0x381f1c['previousPosition']),_0x55198c=!0x0):_0x249ef8=_0x249ef8||_0x381f1c['previousPosition']));}function _0x4815c7(_0x3ecf75){const _0xc460ad=_0x58e16a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x110651}),_0x559417=_0x58e16a['mapper']['toViewPosition'](_0x3ecf75);_0x13201e['data']['isSuggestion']&&_0x58e16a['writer']['addClass']('ck-suggestion-marker-'+_0x110651+'-new',_0xc460ad),_0x5e746e['activeChange']==_0x13201e&&_0x58e16a['writer']['addClass']('ck-suggestion-marker--active',_0xc460ad),_0x58e16a['writer']['insert'](_0x559417,_0xc460ad),_0x58e16a['mapper']['bindElementToMarker'](_0xc460ad,_0x33d6e3['markerName']);}_0x4a90ed||_0x55198c||!_0x249ef8||_0x4815c7(_0x249ef8);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4ec476,_0x1b3e16,_0x1c13a9)=>{const _0x1dabba=_0x1c13a9['mapper']['markerNameToElements'](_0x1b3e16['markerName']);if(_0x1dabba){for(const _0x9d640c of _0x1dabba)(_0x9d640c['hasClass']('ck-suggestion-marker-split')||_0x9d640c['hasClass']('ck-suggestion-marker-merge'))&&(_0x1c13a9['mapper']['unbindElementFromMarkerName'](_0x9d640c,_0x1b3e16['markerName']),_0x1c13a9['writer']['remove'](_0x9d640c));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x731518,_0x104c4b,_0x1ee886)=>{const _0x49de38=_0x104c4b['markerName']['split'](':')[0x1],_0x5bb296=this['_getChangeFromId'](_0x49de38);if(!_0x5bb296)return null;const _0x16a6d5='add'==_0x5bb296['type']?'split':'merge';if(_0x1ee886['consumable']['test'](_0x104c4b['markerRange'],_0x731518['name']))for(const _0x139e1d of _0x104c4b['markerRange']['getItems']()){if(!_0x139e1d['is']('element','softBreak'))continue;const _0x2fe4d4=_0x1ee886['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x16a6d5}),_0x32f20c=_0x1ee886['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x139e1d));_0x5bb296['data']['isSuggestion']&&_0x1ee886['writer']['addClass']('ck-suggestion-marker-'+_0x16a6d5+'-new',_0x2fe4d4),this['activeChange']==_0x5bb296&&_0x1ee886['writer']['addClass']('ck-suggestion-marker--active',_0x2fe4d4),_0x1ee886['writer']['insert'](_0x32f20c,_0x2fe4d4),_0x1ee886['mapper']['bindElementToMarker'](_0x2fe4d4,_0x104c4b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x280f8e=>{for(const _0x8f1733 of this['editor']['model']['document']['getRootNames']()){const _0x4b7bad=this['editor']['model']['document']['getRoot'](_0x8f1733),_0x2d3d32=this['editor']['editing']['view']['document']['getRoot'](_0x8f1733);if(_0x2d3d32){const _0x520bc9=_0x4b7bad['getAttribute']('revisionHistoryAttachChange');if(_0x280f8e['removeAttribute']('data-change-id',_0x2d3d32),_0x280f8e['removeClass']('ck-revision-history-root-add',_0x2d3d32),_0x280f8e['removeClass']('ck-revision-history-root-remove',_0x2d3d32),_0x280f8e['removeClass']('ck-revision-history-root--active',_0x2d3d32),_0x520bc9){const _0x464ca0=this['_getChangeFromId'](_0x520bc9);if(!_0x464ca0)return null;_0x280f8e['setAttribute']('data-change-id',_0x520bc9,_0x2d3d32),_0x280f8e['addClass']('ck-revision-history-root-'+_0x464ca0['type'],_0x2d3d32),this['activeChange']==_0x464ca0&&_0x280f8e['addClass']('ck-revision-history-root--active',_0x2d3d32);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x31b757=>'revision-comment:'+_0x31b757,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1b8dc4=>'revision-suggestion:'+_0x1b8dc4,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2ef14d=>({'name':'suggestion:'+_0x2ef14d,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5d7de0=>{const _0x404918=_0x5d7de0['markerName']['split'](':')[0x1];return'insertion'!=_0x404918&&'deletion'!=_0x404918?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x404918]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3f6b87,_0x2501dd,_0x11dce4)=>{const _0xb39abb=_0x11dce4['mapper']['markerNameToElements'](_0x2501dd['markerName']);if(_0xb39abb){for(const _0xeb8215 of _0xb39abb)_0xeb8215['is']('uiElement')&&(_0x11dce4['mapper']['unbindElementFromMarkerName'](_0xeb8215,_0x2501dd['markerName']),_0x11dce4['writer']['remove'](_0xeb8215));}},{'priority':'high'});}['_getChangeFromId'](_0xb68a9){return this['_changeIdToChange']['get'](_0xb68a9);}['_getViewForChange'](_0x193ac9){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x193ac9),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x304bf3,_0x548115,_0x320182,_0x21412f)=>{_0x21412f&&this['_balloon']['remove'](_0x21412f),_0x320182&&(this['_balloon']['add']({'view':_0x320182,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x2c0f7c=this['editor']['editing'],_0x13bdde=this['_getChangeFromId'](_0x320182['changeId']);let _0x5951e2;if(_0x13bdde['data']['isOnRoot']){const _0x7397c8=_0x2c0f7c['view']['getDomRoot'](_0x13bdde['rootName']);_0x5951e2=Array['from'](_0x7397c8['getClientRects']());}else{const _0x433ef8=this['editor']['model']['markers']['get']('revision:'+_0x320182['changeId']);_0x5951e2=Array['from'](_0x2c0f7c['mapper']['markerNameToElements'](_0x433ef8['name']))['map'](_0x3a4537=>_0x2c0f7c['view']['domConverter']['mapViewToDom'](_0x3a4537))['map'](_0x9e5f23=>Array['from'](_0x9e5f23['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x5951e2[0x0];return _0x5951e2['find'](_0x32c404=>_0x32c404['top']-0x3<=this['_activeViewTarget']['y']&&_0x32c404['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x32c404['left']-0x3<=this['_activeViewTarget']['x']&&_0x32c404['right']+0x3>=this['_activeViewTarget']['x'])||_0x5951e2[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x1b6f07,_0x1917b0,_0x5bac8f,_0xcf22be)=>{this['activeView']=_0x5bac8f?this['_getViewForChange'](_0x5bac8f):null,this['editor']['model']['change'](()=>{const _0x194397=this['editor']['editing'];_0xcf22be&&(_0xcf22be['data']['isOnRoot']?_0x194397['view']['change'](_0x37e240=>{_0x37e240['removeClass']('ck-revision-history-root--active',_0x194397['view']['document']['getRoot'](_0xcf22be['rootName']));}):_0x194397['reconvertMarker']('revision:'+_0xcf22be['id'])),_0x5bac8f&&(_0x5bac8f['data']['isOnRoot']?_0x194397['view']['change'](_0x12172f=>{_0x12172f['addClass']('ck-revision-history-root--active',_0x194397['view']['document']['getRoot'](_0x5bac8f['rootName']));}):_0x194397['reconvertMarker']('revision:'+_0x5bac8f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x236e76,_0x36b859)=>{if(this['activeChange'])return;const _0x4caba3=this['_findChangeIdFromDomTarget'](_0x36b859['target']),_0x4c0a59=this['_changeIdToChange']['get'](_0x4caba3);_0x4c0a59?(this['_activeViewTarget']={'x':_0x36b859['domEvent']['x'],'y':_0x36b859['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4c0a59)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x44fdff,_0x7d517f)=>{const _0xa6be29=this['_findChangeIdFromDomTarget'](_0x7d517f['target']),_0x111e9d=this['_changeIdToChange']['get'](_0xa6be29);_0x111e9d?(this['_activeViewTarget']={'x':_0x7d517f['domEvent']['x'],'y':_0x7d517f['domEvent']['y']},_0x111e9d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x111e9d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1ffc30){do{const _0x39510e=_0x1ffc30['getAttribute']('data-change-id');if(_0x39510e)return _0x39510e;_0x1ffc30=_0x1ffc30['parent'];}while(_0x1ffc30);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x4b52ef=>{for(const _0x1a523d of this['editor']['model']['markers'])_0x4b52ef['removeMarker'](_0x1a523d);});}}function tt(_0x3ded7c,_0x4ed73b){return(_0x7842fb,_0x267740,_0x2f40a4)=>{if(!_0x2f40a4['consumable']['test'](_0x267740['markerRange'],_0x7842fb['name']))return;const _0x24ffc2=_0x267740['markerRange']['getWalker'](),_0x3862ed=_0x267740['markerRange']['start'],_0x4d66d4=_0x3ded7c['model']['schema'];let _0x1b178d=null,_0x2e59e1=null,_0x3598a3=!0x1,_0x2d4481=!0x1;for(const _0xaf03d8 of _0x24ffc2){const _0x22bb75=_0xaf03d8['item'];_0x3598a3=_0x3598a3||_0x4d66d4['isContent'](_0x22bb75);const _0x3cef76=_0x2f40a4['mapper']['toViewElement'](_0x22bb75);if(_0x3cef76&&_0x3cef76['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xaf03d8['type']&&(_0x4d66d4['isBlock'](_0x22bb75)&&!_0x4d66d4['isLimit'](_0x22bb75)&&(_0x22bb75['nextSibling']||_0x3862ed['isAtEnd']?_0x1b178d&&_0x1b178d['parent']==_0x22bb75||(_0x1b178d=_0x22bb75,_0x9fa8e(_0xaf03d8['previousPosition']),_0x2d4481=!0x0):_0x2e59e1=_0x2e59e1||_0xaf03d8['previousPosition']));}function _0x9fa8e(_0x562963){const _0x52e66a=_0x2f40a4['mapper']['toViewPosition'](_0x562963),_0x3c27ad=_0x2f40a4['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x4ed73b});_0x2f40a4['writer']['insert'](_0x52e66a,_0x3c27ad),_0x2f40a4['mapper']['bindElementToMarker'](_0x3c27ad,_0x267740['markerName']);}_0x3598a3||_0x2d4481||!_0x2e59e1||_0x9fa8e(_0x2e59e1);};}class _t extends _0x42c4ef{constructor(_0x5ea69c){super(_0x5ea69c);const _0x4b41fa=_0x5ea69c['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4b41fa,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4b41fa,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x567936=this['editor'],_0x3f80a7=_0x567936['plugins']['get'](d),_0x325499=_0x3f80a7['isReady']?_0x3f80a7['diff']['newRevisionId']:null;_0x567936['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x325499);}['refresh'](){const {isReady:_0x1a142d,isEnabled:_0x4f26e7,repository:_0xf8f44,diff:_0x3943f5}=this['editor']['plugins']['get'](d),_0x3e977f=_0x3943f5&&_0xf8f44['getLaterVisibleRevision'](_0x3943f5['newRevisionId']);this['isEnabled']=_0x1a142d&&_0x4f26e7&&Boolean(_0x3e977f);}}class yt extends _0x42c4ef{['_step'];constructor(_0x58fcb3,{direction:_0x542e4b}){super(_0x58fcb3);const _0x136533=_0x58fcb3['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x542e4b?0x1:-0x1,this['listenTo'](_0x136533,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x136533,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x136533,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2139d5=this['editor'],_0x112bbf=_0x2139d5['plugins']['get'](d),{isNavigationMode:_0x4fbbe2,currentChangeNumber:_0x4f4767}=_0x112bbf;let _0x57c800;if(_0x112bbf['activeChange']=_0x4fbbe2?_0x112bbf['diff']['changes']['get'](_0x4f4767+this['_step']):_0x112bbf['diff']['changes']['first'],_0x112bbf['activeChange']['data']['isOnRoot'])_0x57c800=_0x2139d5['editing']['view']['getDomRoot'](_0x112bbf['activeChange']['rootName']);else{const _0x52d276=_0x2139d5['model']['markers']['get']('revision:'+_0x112bbf['activeChange']['id']);_0x57c800=_0x50cf16(_0x2139d5['editing'],_0x52d276);}_0x4741af({'target':_0x57c800,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x336fd1,currentChangeNumber:_0x3f8667,numberOfChanges:_0x2c0674,isReady:_0x5decca,isEnabled:_0x5ecc26}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5ecc26&&_0x5decca&&_0x2c0674)&&(!_0x336fd1||(0x1===this['_step']?_0x3f8667<_0x2c0674-0x1:_0x3f8667>0x0));}}class di extends ts{constructor(_0x55f018){super(_0x55f018);const _0x1d26c1=this['bindTemplate'],_0x20a5c9=new te(_0x55f018),_0x2721ea=new te(_0x55f018);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',(_0x2fd630,_0x543ce4)=>_0x2fd630&&_0x543ce4>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x135d4e,_0x3a5d7f,_0x8c74aa,_0x366abc)=>{if(!_0x135d4e)return R(_0x55f018,'Loading...');if(!_0x8c74aa)return R(_0x55f018,'No\x20changes');const _0x36a696=R(_0x55f018,'NUMBER_OF_CHANGES',_0x8c74aa);return _0x366abc?R(_0x55f018,'X_OF_Y_CHANGES',[_0x3a5d7f+0x1,_0x8c74aa]):_0x36a696;}),_0x20a5c9['set']({'label':R(_0x55f018,'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'}),_0x2721ea['set']({'label':R(_0x55f018,'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'}),_0x20a5c9['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x2721ea['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x20a5c9['on']('execute',()=>this['fire']('execute','backward')),_0x2721ea['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',_0x1d26c1['if']('_isStatusLabelVisible','ck-hidden',_0x59138d=>!_0x59138d)]},'children':[{'text':_0x1d26c1['to']('isNavigationMode',_0x2566ca=>_0x2566ca?R(_0x55f018,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x55f018,'Total')+':\x20')}]},{'text':_0x1d26c1['to']('_statusText')}]},new _0x32311f(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x20a5c9,_0x2721ea]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x41d97b{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x1a9153=this['editor']['editing']['view'];_0x1a9153['change'](_0x206475=>{for(const _0xeecc6f of _0x1a9153['document']['roots'])_0x206475['addClass'](le,_0xeecc6f);});}['hide'](){const _0x2c312e=this['editor']['editing']['view'];_0x2c312e['change'](_0x3567cd=>{for(const _0x330bd0 of _0x2c312e['document']['roots'])_0x3567cd['removeClass'](le,_0x330bd0);});}}class m extends _0x41d97b{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x29cdf3=this['editor'],_0x2881b8=_0x29cdf3['plugins']['get'](d),_0x25bfbb=_0x29cdf3['plugins']['get'](ge);_0x29cdf3['ui']['componentFactory']['add']('exitToEditing',_0x227a7e=>{const _0x44d6e5=new te(_0x227a7e);return _0x44d6e5['set']({'label':R(_0x227a7e,'Back\x20to\x20editing'),'icon':_0x536204['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x44d6e5,'execute',()=>{_0x29cdf3['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x44d6e5;}),_0x29cdf3['ui']['componentFactory']['add']('restoreRevision',_0x4ec005=>{const _0x5c656b=new te(_0x4ec005);return _0x5c656b['set']({'label':R(_0x4ec005,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x5c656b['bind']('isEnabled')['to'](_0x29cdf3['commands']['get']('restoreRevision')),this['listenTo'](_0x5c656b,'execute',()=>_0x29cdf3['execute']('restoreRevision')),_0x5c656b;}),_0x29cdf3['ui']['componentFactory']['add']('changesNavigation',_0x3267c1=>{const _0x358249=new di(_0x3267c1),_0x502fcd=_0x29cdf3['commands']['get']('showPreviousChange'),_0x1aeb3a=_0x29cdf3['commands']['get']('showNextChange');return _0x358249['bind']('isBackwardNavigationEnabled')['to'](_0x502fcd,'isEnabled'),_0x358249['bind']('isForwardNavigationEnabled')['to'](_0x1aeb3a,'isEnabled'),_0x358249['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x2881b8),this['listenTo'](_0x358249,'execute',(_0x2e4ed8,_0xe0f717)=>{_0x29cdf3['execute']('forward'===_0xe0f717?'showNextChange':'showPreviousChange');}),_0x358249;}),_0x25bfbb['show'](),_0x2881b8['on']('change:isReady',(_0x41f1a9,_0x4dc9b4,_0x4fe369)=>{_0x4fe369?_0x25bfbb['hide']():_0x25bfbb['show']();});}}class pt extends _0x2b20cf{['_resizeObserver']=null;constructor(_0x529383,_0x22e0dc){super(_0x529383,_0x22e0dc);const _0x4a1458=this['bindTemplate'];this['set']({'label':R(_0x529383,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x529383,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a1458['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 _0xbfa1d5=this['fieldView']['element'];this['_tooltipString']=_0xbfa1d5['scrollWidth']>_0xbfa1d5['clientWidth']&&_0xbfa1d5['value']||'';}}class oi extends ts{constructor(_0xf6cc2,_0x46bdbb,_0x3eccc6){super(_0xf6cc2);const _0x2dd020=new _0x3bdf85();_0x2dd020['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 _0x3dc40b=['ck','ck-revision-history-sidebar__revision-author'];_0x3eccc6&&_0x3dc40b['push']('ck-revision-history-sidebar__revision-author_creator');const _0x22334=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0xf6cc2,_0x3eccc6?'Revision\x20creator':'Revision\x20author')},'children':[_0x2dd020,_0x46bdbb['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x3dc40b},'children':_0x22334});}}function ai(_0x202f73,_0x168163){const _0x1a5cb8=_0x202f73['bindTemplate'],_0x3a7166=_0x202f73['locale'],_0x1aa88c=_0xa55c8b(_0x3a7166);_0x1aa88c['panelPosition']='sw';const _0x1e7e2d=function(_0x486b95,_0xc8acba){const _0x1da887=function(_0x218ad0,_0x470860){const _0x51ac40=_0x218ad0['locale'],_0x3b14b1={'Compare\x20against\x20selected':R(_0x51ac40,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x51ac40,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x51ac40,'Restore\x20this\x20revision')};return _0x470860['map'](_0x10d233=>{const _0x58f434=_0x3b14b1[_0x10d233['name']];return _0x58f434&&_0x58f434!==_0x10d233['name']&&(_0x10d233['name']=_0x58f434),_0x10d233;});}(_0x486b95,_0xc8acba),_0x506372=new _0x3fb858();for(const _0x164b42 of _0x1da887){const _0x2512ca={'type':'button','model':new _0x22060f({'label':_0x164b42['name'],'class':_0x164b42['class'],'withText':!0x0,'role':'menuitem','_action':_0x164b42['action']})};_0x2512ca['model']['bind']('isEnabled')['to'](_0x486b95,'isActionsDropdownOpen',_0x54ec6e=>'function'!=typeof _0x164b42['isEnabled']||(!_0x54ec6e||_0x164b42['isEnabled'](_0x486b95))),_0x506372['add'](_0x2512ca);}return _0x506372;}(_0x202f73,_0x168163);return _0x202f73['bind']('isActionsDropdownOpen')['to'](_0x1aa88c,'isOpen'),_0x1aa88c['buttonView']['set']({'label':R(_0x3a7166,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x536204['threeVerticalDots']}),_0x1aa88c['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1a5cb8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1a5cb8['to'](_0x3816fd=>_0x3816fd['stopPropagation']())}}),_0x1aa88c['on']('execute',_0x571770=>{_0x202f73['isReady']&&'function'==typeof _0x571770['source']['_action']&&_0x571770['source']['_action'](_0x202f73);}),to(_0x1aa88c,_0x1e7e2d,{'role':'menu'}),_0x1aa88c['listenTo'](_0x202f73,'change:isActionsDropdownOpen',(_0x79b30,_0x3c7496,_0x438e3b)=>{if(_0x438e3b)for(const _0xaf7812 of _0x1aa88c['listView']['items']){const _0xd64b4e=_0xaf7812['children']['first'],_0x9c8d8b=_0x168163['find'](_0x186a15=>_0x186a15['action']===_0xd64b4e['_action'])['isVisible'];_0xaf7812['isVisible']=void 0x0===_0x9c8d8b||_0x9c8d8b(_0x202f73);}}),_0x1aa88c;}class si extends/* #__PURE__ -- @preserve */
26
- _0x1f7203(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x42e32c,_0xb46b0b,_0x4b49d2,_0x1fb76e){super(_0x42e32c);const _0x1e244d=this['bindTemplate'],_0x143a2e=function(_0x576b6f,_0x3cf004){const _0x55b033=Array['from'](_0x3cf004['authors'])['filter'](_0x1479ab=>_0x1479ab!=_0x3cf004['creator']);return _0x3cf004['creator']&&_0x55b033['unshift'](_0x3cf004['creator']),_0x55b033['map'](_0x4d27e6=>new oi(_0x576b6f,_0x4d27e6,_0x4d27e6==_0x3cf004['creator']));}(_0x42e32c,_0xb46b0b);this['id']=_0xb46b0b['id'],this['_revision']=_0xb46b0b,this['_requireRevisionName']=_0x1fb76e,this['bind']('name','createdAt')['to'](_0xb46b0b),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x205987=>{return _0x268c5b=_0x42e32c['uiLanguage'],(_0x53a3e0=_0x205987)['toLocaleDateString'](_0x268c5b,{'month':'long','day':'numeric'})+',\x20'+_0x53a3e0['toLocaleTimeString'](_0x268c5b,{'hour':'numeric','minute':'numeric'});var _0x268c5b,_0x53a3e0;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x42e32c,_0x2765cf),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x2a1198=>_0x2a1198||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x3b45ed,_0x3d640c)=>_0x3b45ed&&_0x3d640c),this['revisionActionsView']=_0x4b49d2&&_0x4b49d2['length']?ai(this,_0x4b49d2):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x1e244d['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x1e244d['if']('isEnabled','ck-disabled',_0x35e2ae=>!_0x35e2ae),_0x1e244d['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x1e244d['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x1e244d['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':_0x1e244d['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':_0x143a2e}]},this['revisionActionsView']],'on':{'click':_0x1e244d['to'](_0x3e69dd=>{_0x3e69dd['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x447185=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x447185,'change',()=>{this['_requireRevisionName']&&!_0x447185['value']||this['fire']('setName',{'id':this['id'],'name':_0x447185['value']}),_0x447185['value']||(_0x447185['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x122177,_0x4952bc){const _0xd5068c=_0x25d485['fromJSDate'](_0x122177)['setLocale'](_0x4952bc),_0x458944=_0x25d485['local'](),_0x512d8d=_0x458944['minus']({'days':0x1})['startOf']('day');let _0x468198,_0x2eae33;return _0xd5068c['hasSame'](_0x458944,'day')?(_0x468198=_0xd5068c['startOf']('day')['toJSDate'](),_0x2eae33=_0xd5068c['toRelativeCalendar']()):_0xd5068c['hasSame'](_0x512d8d,'day')?(_0x468198=_0x512d8d['toJSDate'](),_0x2eae33=_0xd5068c['toRelativeCalendar']()):_0xd5068c['hasSame'](_0x458944,'week')?(_0x468198=_0xd5068c['startOf']('week')['toJSDate'](),_0x2eae33=_0xd5068c['weekdayLong']||''):_0xd5068c['hasSame'](_0x458944,'year')?(_0x468198=_0xd5068c['startOf']('month')['toJSDate'](),_0x2eae33=_0xd5068c['monthLong']||''):(_0x468198=_0xd5068c['startOf']('year')['toJSDate'](),_0x2eae33=String(_0xd5068c['year'])),{'startDate':_0x468198,'localizedPeriodName':_0x2eae33};}class ei extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x45cfdb,_0x5e4de2,_0x19bc87,_0x261545){super(_0x45cfdb);const _0x5f0897=ti(_0x5e4de2,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x5e4de2,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x19bc87,this['_requireRevisionName']=_0x261545,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':_0x5f0897}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x56f78a){const _0x321fca=new si(this['locale'],_0x56f78a,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x321fca);}['removeRevision'](_0x1bc3b1){const _0x33fe3d=this['revisionViews']['find'](_0x4be3e6=>_0x4be3e6['id']===_0x1bc3b1['id']);this['revisionViews']['remove'](_0x33fe3d);}}class cs extends ts{constructor(_0x397450){super(_0x397450);const _0x342bc3=new _0x3bdf85();_0x342bc3['content']=_0x536204['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x342bc3,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x397450,'Revision\x20history')]}]});}}class ii extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x269405,_0xcbbfde,_0xf0712,_0x70d514){super(_0x269405);const _0x152549=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0xcbbfde,this['_revisionActions']=_0xf0712,this['_requireRevisionName']=_0x70d514,this['on']('select',(_0x4c9693,_0x2374f7)=>{this['fire']('revisionSelected',_0x2374f7);}),this['on']('setName',(_0x18e987,_0x3fa1b6)=>{this['fire']('revisionSetName',_0x3fa1b6);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x269405),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x152549['if']('isEnabled','ck-disabled',_0x5f0ccd=>!_0x5f0ccd)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x149912 of this['_revisions'])this['_addRevision'](_0x149912);this['_revisions']['on']('add',(_0x4c3bc8,_0x1cf0ae)=>{this['_addRevision'](_0x1cf0ae);}),this['_revisions']['on']('remove',(_0x39c931,_0x549181)=>{this['_removeRevision'](_0x549181);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x324df4=>_0x324df4['revisionViews']['map'](_0x4c5970=>_0x4c5970))['flat']();}['selectRevision'](_0x24eefc){for(const _0xa64c6c of this['revisionViews'])_0x24eefc&&_0x24eefc['id']===_0xa64c6c['id']?_0xa64c6c['select']():_0xa64c6c['deselect']();}['highlightRevisions'](_0x4a7fdc){for(const _0x2ce83e of this['revisionViews'])_0x4a7fdc['some'](({id:_0x1358fd})=>_0x1358fd===_0x2ce83e['id'])?_0x2ce83e['highlight']():_0x2ce83e['unhighlight']();}['_addRevision'](_0x5ed41c){const _0x4a07ff=ti(_0x5ed41c['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x229e4c=this['timePeriodViews']['get'](0x0);_0x229e4c&&_0x229e4c['startDate']['getTime']()===_0x4a07ff['getTime']()||(_0x229e4c=new ei(this['locale'],_0x4a07ff,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x229e4c)),_0x229e4c['addRevision'](_0x5ed41c);}['_removeRevision'](_0x3c400a){const _0x1db99f=ti(_0x3c400a['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x1db99f)['removeRevision'](_0x3c400a);}['_getTimePeriodViewByStartDate'](_0x5f5c74){return this['timePeriodViews']['find'](_0x15e21d=>_0x15e21d['startDate']['getTime']()===_0x5f5c74['getTime']());}}class g extends _0x41d97b{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
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(_0x3db476){super(_0x3db476),this['_revisionViewer']=_0x3db476['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x370c92=this['_revisionsRepository']['_revisions'],_0x257f22=this['_createRevisionActions'](),_0x591427=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x370c92,_0x257f22,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',(_0x28688c,_0x4eb994)=>{_0x4eb994['revisionViews']['on']('add',(_0x335620,_0x315c5f)=>{_0x315c5f['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)),_0x591427['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x348b12=this['_revisionsRepository']['getRevision'](0x0);if(_0x348b12){const _0x581b61=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x348b12['id']);this['_revisionViewer']['compare'](_0x348b12,_0x581b61);}}['_handleRevisionSelected'](_0x1775e8,_0x186730){const _0x424a89=this['_revisionsRepository']['getRevision'](_0x186730['id']),_0x32fc5b=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x424a89['id']);this['_revisionViewer']['compare'](_0x424a89,_0x32fc5b);}['_handleRevisionSetName'](_0x431983,_0x153a47){this['_revisionsRepository']['getRevision'](_0x153a47['id'])['setName'](_0x153a47['name']);}['_handleDiffChange'](_0x5c8c9b,_0x8aa4fc,_0x4a2a48){const _0x318e64=this['_revisionsRepository']['getRevisionsInDiff'](_0x4a2a48);_0x318e64['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x318e64),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x318e64[0x0]));}['_createRevisionActions'](){const _0x40a6c4=this['editor'],_0x1abd4d=g['availableRevisionActions'],_0x2b9943=_0x40a6c4['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x2b9943['length'])return _0x2b9943['map'](_0x99821d=>{const _0x246fbd='string'==typeof _0x99821d?Object['assign']({},_0x1abd4d[_0x99821d]):_0x99821d;return _0x246fbd['action']=_0x246fbd['action']['bind'](this,_0x40a6c4),_0x246fbd['isVisible']&&(_0x246fbd['isVisible']=_0x246fbd['isVisible']['bind'](this,_0x40a6c4)),_0x246fbd;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x17680e},_0x51a1e2)=>{const _0x2cb774=_0x17680e['get'](d),_0x4bed2f=_0x2cb774['repository'];let _0x1bdef9=_0x2cb774['diff']['newRevisionId'],_0x29f48d=_0x51a1e2['id'];_0x4bed2f['getIndex'](_0x1bdef9)>_0x4bed2f['getIndex'](_0x29f48d)&&([_0x1bdef9,_0x29f48d]=[_0x29f48d,_0x1bdef9]),_0x2cb774['compare'](_0x1bdef9,_0x29f48d);},'isVisible':({plugins:_0x322747},_0x2b6120)=>{const _0x3596a5=_0x322747['get'](d);return!(_0x3596a5['repository']['getRevisionsInDiff'](_0x3596a5['diff'])['length']>0x2)&&!_0x2b6120['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x4fa9a6,{id:_0x15060c})=>{_0x4fa9a6['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x15060c);},'isVisible':({plugins:_0x36a142},_0x416734)=>!!_0x36a142['get'](d)['repository']['getLaterVisibleRevision'](_0x416734['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x15cfd0},{id:_0x47a3c8,revisionNameView:_0x99e63b})=>{const _0x5bb22f=_0x15cfd0['get'](d),_0xd569a5=_0x5bb22f['repository']['getEarlierVisibleRevision'](_0x47a3c8);_0x5bb22f['compare'](_0x47a3c8,_0xd569a5),_0x99e63b['focus'](),_0x99e63b['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x251fc5,_0x143055){super(_0x251fc5),this['_view']=_0x143055,this['_toolbarConfig']=ht(_0x251fc5['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x39f28b){const _0x3162fa=this['editor'],_0x13cea1=this['view'],_0x3fe5c5=_0x3162fa['editing']['view'],_0xbe78bd=_0x13cea1['editable'],_0xffa9b3=_0x3fe5c5['document']['getRoot']();_0xbe78bd['name']=_0xffa9b3['rootName'],_0x13cea1['render']();const _0x2136df=_0xbe78bd['element'];this['setEditableElement'](_0xbe78bd['name'],_0x2136df),_0x13cea1['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3fe5c5['attachDomRoot'](_0x2136df),this['_elementReplacer']['replace'](_0x39f28b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x5a57c2=this['view'],_0x4f1d1b=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x4f1d1b['detachDomRoot'](_0x5a57c2['editable']['name']),_0x5a57c2['destroy']();}['_initToolbar'](){const _0x321bc0=this['view'];_0x321bc0['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x321bc0['stickyPanel']['limiterElement']=_0x321bc0['element'],_0x321bc0['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x36c98b})=>_0x36c98b),_0x321bc0['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x321bc0['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2e763b,_0x36e848,_0x54a2df={}){super(_0x2e763b),this['stickyPanel']=new lt(_0x2e763b),this['toolbar']=new nt(_0x2e763b,{'shouldGroupWhenFull':_0x54a2df['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x2e763b,_0x36e848);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
29
- rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x15d99b,_0x10501a){super(_0x10501a),this['sourceElement']=_0x15d99b,this['model']['document']['createRoot']();const _0x2bd566=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x2bd566);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x3e4e9f,_0x103b4d){const _0x5ca3a5=new this(_0x3e4e9f,_0x103b4d);return await _0x5ca3a5['initPlugins'](),await _0x5ca3a5['ui']['init'](_0x3e4e9f),await _0x5ca3a5['data']['init'](_0x5ca3a5['config']['get']('initialData')||''),_0x5ca3a5['fire']('ready'),_0x5ca3a5;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x41d97b{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3a6f3e){function _0x2978ae(_0x522a96){return _0x522a96['map'](_0x324417=>String['fromCharCode'](_0x324417))['join']('');}super(_0x3a6f3e),this['result']='end',_0x3a6f3e[_0x2978ae([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2978ae([0x76,0x69,0x65,0x77])][_0x2978ae([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2978ae([0x61,0x75,0x74,0x6f]),_0x3a6f3e[_0x2978ae([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x2978ae([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2978ae([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x2978ae([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x2978ae([0x6f,0x6b])});}}class H extends _0x41d97b{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x39d3fb){if(super(_0x39d3fb),!this['editor']['config']['get']('revisionHistory'))throw new _0x406c6c('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x16be17=>this['_showRevisionViewer']({..._0x16be17,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x5b08d4=>this['_closeRevisionViewer'](_0x5b08d4)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x50cb2e=>this['_restoreRevision'](_0x50cb2e)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x486bd0){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x486bd0;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x577931){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x577931);}['getRevision'](_0x4efb54){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4efb54);}['getRevisions'](_0x2f74b5){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2f74b5||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x4e09d4=this['editor'],_0x150c18=_0x9356d4(_0x4e09d4,p),_0x12f842=_0x4e09d4['plugins']['get']('RevisionTracker'),_0x4d875d=_0x4e09d4['plugins']['get']('Users')['users'];return _0x150c18['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x150c18['lazyRoots'],(_0x150c18['plugins']['push'](k,d,m,class extends _0x41d97b{static get['requires'](){return[d,'Users'];}['init'](){const _0xab7004=this['editor']['plugins']['get']('Users');for(const _0x495083 of _0x4d875d)_0x495083['isAnonymous']||_0xab7004['getUser'](_0x495083['id'])||_0xab7004['addUser'](_0x495083);const _0x2135ce=_0x12f842['repository']['getRevisions']();let _0x2fcfb6=null;const _0x29c212=this['editor']['plugins']['get']('RevisionViewer');_0x29c212['adapter']=_0x12f842['adapter'],_0x29c212['bind']('isEnabled')['to'](_0x12f842),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x4e09d4,'isReadOnly',_0x42728c=>!_0x42728c);for(const _0x195b3e of _0x2135ce){const _0x34b371=null===_0x195b3e['creator'];if(_0x34b371&&_0x195b3e['toVersion']===_0x195b3e['fromVersion'])continue;const _0x3951e4=_0x195b3e['toJSON']();_0x29c212['addRevisionData'](_0x3951e4,(_0xc03d12,_0x11a3c0,_0x51ef1f)=>{if(_0x34b371){if(_0x2fcfb6)_0x2fcfb6['_update'](_0xc03d12,_0x11a3c0);else{if(!_0x11a3c0){const _0x46ec21=_0x51ef1f['toJSON']();_0x46ec21['id']=_0x119d0b(),_0x12f842['saveRevision'](_0x46ec21,_0x51ef1f['toVersion'])['then'](_0x35fc06=>{_0x2fcfb6=_0x35fc06;});}}}else _0x195b3e['_update'](_0xc03d12,_0x11a3c0);});}}},g),_0x150c18);}['_enhanceShowRevisionViewerCallback'](){const _0x5ced2b=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x539977=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x38246b=this['editor']['plugins']['get']('Autosave');await _0x38246b['save']();}else await _0x539977['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x324f79=this['editor']['plugins']['get']('Dialog');_0x324f79['isOpen']&&_0x324f79['hide']();}const _0x4c4317=this['_getRevisionViewerEditorConfig']();return _0x5ced2b(_0x4c4317)['then'](_0x5e8b16=>{return(this['_viewerEditor']=_0x5e8b16,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x5e8b16;})['catch'](_0x512e69=>(console['error'](_0x512e69),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x31ffd2=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'](),_0x31ffd2(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x222582=this['editor']['plugins']['get']('Annotations');_0x222582['refreshVisibility'](),_0x222582['refreshPositioning']();}})));}['_showRevisionViewer'](_0x22e3d7){const _0x5257cb=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x5e9e89=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3751ef=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3751ef,_0x22e3d7)['then'](_0x5c186d=>(_0x5e9e89['style']['display']='block',_0x5257cb['style']['display']='none',_0x5c186d));}['_closeRevisionViewer'](_0x395680){const _0x3ded0c=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x3ded0c['style']['display']='',_0x395680['destroy']();}async['_restoreRevision'](_0x426090){const _0x3fb0b6=this['editor'],_0x29995c=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x468e98=_0x3fb0b6['plugins']['get']('RevisionTracker'),_0x541cab=_0x29995c['repository']['getRevision'](_0x426090);let _0x16dcef,_0x44d2ca,_0x136563;try{_0x16dcef=await _0x29995c['getRevisionData'](_0x541cab),_0x44d2ca=await _0x29995c['getRevisionRootsAttributes'](_0x541cab);}catch(_0x1e00e9){return void console['error'](_0x1e00e9);}_0x3fb0b6['model']['change'](_0x48046f=>{for(const _0x4d641 of Array['from'](_0x3fb0b6['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x48046f['removeMarker'](_0x4d641);}),_0x29995c['isReady']=!0x1,_0x3fb0b6['model']['enqueueChange'](_0x412f9b=>{_0x412f9b['setSelection'](null),_0x412f9b['removeSelectionAttribute'](_0x3fb0b6['model']['document']['selection']['getAttributeKeys']());const _0x4371af=Object['keys'](_0x16dcef);for(const _0x27604c of _0x3fb0b6['model']['document']['roots'])'$graveyard'!=_0x27604c['rootName']&&_0x27604c['isAttached']()&&!_0x4371af['includes'](_0x27604c['rootName'])&&_0x412f9b['detachRoot'](_0x27604c);for(const _0x1a5597 of _0x4371af){let _0x5623d3=_0x3fb0b6['model']['document']['getRoot'](_0x1a5597);_0x5623d3&&_0x5623d3['isAttached']()||(_0x5623d3=_0x412f9b['addRoot'](_0x1a5597));const _0x45c915=_0x44d2ca[_0x1a5597],_0x390601=Object['keys'](_0x45c915),_0xad5c3f=_0x16dcef[_0x1a5597];for(const _0x9e1d92 of _0x5623d3['getAttributeKeys']())_0x390601['includes'](_0x9e1d92)||_0x412f9b['removeAttribute'](_0x9e1d92,_0x5623d3);for(const _0x1c4f28 of _0x390601)_0x412f9b['setAttribute'](_0x1c4f28,_0x44d2ca[_0x1a5597][_0x1c4f28],_0x5623d3);_0x412f9b['remove'](_0x412f9b['createRangeIn'](_0x5623d3)),_0x412f9b['insert'](_0x3fb0b6['data']['parse'](_0xad5c3f,_0x5623d3),_0x5623d3,0x0);}});const _0x2ccd95=R(_0x3fb0b6['locale'],'Restored');if(_0x541cab['name'])_0x136563=-0x1==_0x541cab['name']['indexOf'](_0x2ccd95)?_0x2ccd95+':\x20'+_0x541cab['name']:_0x541cab['name'];else _0x136563=_0x2ccd95+':\x20'+(_0x541cab['createdAt']['toLocaleDateString'](_0x3fb0b6['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x541cab['createdAt']['toLocaleTimeString'](_0x3fb0b6['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x468e98['saveRevision']({'name':_0x136563}),_0x29995c['isReady']=!0x0,_0x3fb0b6['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
23
+ import{ObservableMixin as _0x4a6c07,uid as _0x2c98c9,Collection as _0xe11a17,logWarning as _0x6545d5,FocusTracker as _0x36998b,KeystrokeHandler as _0x1582ab,scrollViewportToShowTarget as _0x10a5e5,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0xa44216}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x195bda,set as _0x353420,unset as _0x491432,isEqual as _0x8a2eec}from'lodash-es';import{Plugin as _0x127458,PendingActions as _0x343091,icons as _0x40bb4f,Command as _0x2de0b5,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x5af1e4,getMarkerDomElement as _0x3ee8f5,ConfirmMixin as _0x368122,sanitizeEditorConfig as _0xf7c6a0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x564aa2,ViewText as _0x5c8e78,ViewElement as _0x150b91,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x4a2fc8,ViewAttributeElement as _0x1e2893,ViewEmptyElement as _0x22b445,ViewRawElement as _0x29f78d,ViewUIElement as _0x63087b,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0xc805c9,submitHandler as _0x381eea,LabeledFieldView as _0x5dcf12,createLabeledInputText as _0x4ecf22,createDropdown as _0x30ac16,ListView as _0x41e98c,ListItemView as _0x3d0ed0,ButtonView as te,MenuBarMenuView as _0x258a10,MenuBarMenuListView as _0x554c0e,MenuBarMenuListItemView as _0x50d436,MenuBarMenuListItemButtonView as _0x14db65,ContextualBalloon as _0xf7afe6,ToolbarSeparatorView as _0x5e02ad,IconView as _0x3c6d9e,addListToDropdown as to,ViewModel as _0x5e7a7d,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x70df5b}from'luxon';class a extends/* #__PURE__ -- @preserve */
24
+ _0x4a6c07(){constructor(_0x3e4151){super(),this['id']=_0x3e4151['id']||_0x2c98c9(),this['creator']=_0x3e4151['creator']||null,this['authors']=_0x3e4151['authors']||[],this['diffData']=_0x3e4151['diffData']||null,this['toVersion']=_0x3e4151['toVersion']||0x0,this['fromVersion']=_0x3e4151['fromVersion']||0x0,this['set']('name',_0x3e4151['name']||''),this['set']('createdAt',_0x3e4151['createdAt']||new Date()),this['set']('attributes',_0x3e4151['attributes']||{});}['setName'](_0x48280f){this['_update']({'name':_0x48280f});}['setAttribute'](_0x435227,_0x38193f){const _0x47f58b=_0x195bda(this['attributes']);_0x353420(_0x47f58b,_0x435227,_0x38193f),this['_update']({'attributes':_0x47f58b});}['removeAttribute'](_0x584b39){const _0x27fe2d=_0x195bda(this['attributes']);_0x491432(_0x27fe2d,_0x584b39),this['_update']({'attributes':_0x27fe2d});}['_update'](_0x56fe14,_0x5b2f9e=!0x1){let _0x43c79c=!0x1;const _0x240765={'id':this['id']},_0xacbd4=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xd02336 of _0xacbd4){const _0xd333b5=_0x56fe14[_0xd02336];void 0x0!==_0xd333b5&&_0xd333b5!==this[_0xd02336]&&(this[_0xd02336]=_0xd333b5,_0x240765[_0xd02336]=_0xd333b5,_0x43c79c=!0x0);}_0x43c79c&&(_0x240765['authors']&&(_0x240765['authorsIds']=_0x240765['authors']['map'](_0x22794f=>_0x22794f['id']),delete _0x240765['authors']),this['fire']('_update',_0x240765,_0x5b2f9e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x3500be=>_0x3500be['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x127458{static get['requires'](){return[_0x5af1e4];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x163ef4){super(_0x163ef4),this['_revisions']=new _0xe11a17();}['afterInit'](){!async function(_0x2edb44){const _0xe882cb=_0xd6692d([0x67,0x51,0x53,0x50,0x6b,0x4f,0x6e,0x4c,0x32,0x65,0x78,0x6a,0x54,0x69,0x4e,0x6d,0x76,0x4b,0x79,0x37,0x46,0x55,0x56,0x72,0x34,0x66,0x59,0x64,0x77,0x62,0x73,0x75,0x36,0x57,0x48,0x4d,0x31,0x6f,0x35,0x74,0x33,0x42,0x63,0x49,0x30,0x61,0x7a,0x45,0x4a,0x6c,0x58,0x43,0x44,0x38,0x39,0x71,0x5a,0x68,0x52,0x47,0x70,0x41]),_0x24b1b9=0xeb829,_0x971aab=0x2a0c8fa9,_0xf63c9a=0x2a0bd5a1^_0x971aab,_0x64b86d=window[_0xd6692d([0x44,0x61,0x74,0x65])][_0xd6692d([0x6e,0x6f,0x77])](),_0x37b699=_0x2edb44[_0xd6692d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x51dbe1=new window[(_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x168eb1=>{_0x37b699[_0xd6692d([0x6f,0x6e,0x63,0x65])](_0xd6692d([0x72,0x65,0x61,0x64,0x79]),_0x168eb1);}),_0x1fc0f0={[_0xd6692d([0x6b,0x74,0x79])]:_0xd6692d([0x45,0x43]),[_0xd6692d([0x75,0x73,0x65])]:_0xd6692d([0x73,0x69,0x67]),[_0xd6692d([0x63,0x72,0x76])]:_0xd6692d([0x50,0x2d,0x32,0x35,0x36]),[_0xd6692d([0x78])]:_0xd6692d([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]),[_0xd6692d([0x79])]:_0xd6692d([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]),[_0xd6692d([0x61,0x6c,0x67])]:_0xd6692d([0x45,0x53,0x32,0x35,0x36])},_0x328abb=_0x37b699[_0xd6692d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd6692d([0x67,0x65,0x74])](_0xd6692d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x15b8d5(){let _0xa48ff4,_0x24d0ba=null,_0x1e37cd=null;try{if(_0x328abb==_0xd6692d([0x47,0x50,0x4c]))return _0xd6692d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xa48ff4=_0x4fd155(),!_0xa48ff4)return _0xd6692d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xa48ff4[_0xd6692d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e37cd=_0x1b9892(_0xa48ff4[_0xd6692d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xa48ff4[_0xd6692d([0x6a,0x74,0x69])])),await _0x2b482e()?_0x4a7a38()?_0x39e394()?_0xd6692d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x72cc4f()?(_0xa48ff4[_0xd6692d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6692d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x24d0ba=_0x5b576e(_0xd6692d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0xa48ff4[_0xd6692d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6692d([0x74,0x72,0x69,0x61,0x6c])&&(_0x24d0ba=_0x5b576e(_0xd6692d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0xa48ff4[_0xd6692d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd6692d([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x24d0ba=_0x5b576e(_0xd6692d([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3081a4()):_0xd6692d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd6692d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd6692d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0xbdb859){return _0xd6692d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x39e394(){const _0x4facb8=[_0xd6692d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd6692d([0x74,0x72,0x69,0x61,0x6c])][_0xd6692d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa48ff4[_0xd6692d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x64b86d/0x3e8:0xe10*_0xf63c9a;return _0xa48ff4[_0xd6692d([0x65,0x78,0x70])]<_0x4facb8;}function _0x4a7a38(){const _0x1ebdb3=_0xa48ff4[_0xd6692d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x1ebdb3)return!0x1;if(_0x1ebdb3[_0xd6692d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6692d([0x2a])))return!0x0;if(_0x1ebdb3[_0xd6692d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6692d([0x52,0x48])))return!0x0;if(_0x1ebdb3[_0xd6692d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6692d([0x52,0x52,0x48]))){if(_0x20139f())return!0x0;if(_0x436abe()||_0x34989e())return!0x0;}return!0x1;}function _0x72cc4f(){const _0x4b6026=_0xa48ff4[_0xd6692d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4b6026||0x0==_0x4b6026[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52aea3}=new URL(window[_0xd6692d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4b6026[_0xd6692d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52aea3))return!0x0;const _0x540df0=_0x52aea3[_0xd6692d([0x73,0x70,0x6c,0x69,0x74])](_0xd6692d([0x2e]));return _0x4b6026[_0xd6692d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x564756=>_0x564756[_0xd6692d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd6692d([0x2a])))[_0xd6692d([0x6d,0x61,0x70])](_0x36b169=>_0x36b169[_0xd6692d([0x73,0x70,0x6c,0x69,0x74])](_0xd6692d([0x2e])))[_0xd6692d([0x73,0x6f,0x6d,0x65])](_0x41c171=>_0x540df0[_0xd6692d([0x65,0x76,0x65,0x72,0x79])]((_0x1531e2,_0x420e51)=>_0x41c171[_0x420e51]===_0x1531e2||_0x41c171[_0x420e51]===_0xd6692d([0x2a])));}function _0x3081a4(){return _0x24d0ba&&_0x1e37cd?new window[(_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d9036,_0x4d2f02)=>{_0x24d0ba[_0xd6692d([0x74,0x68,0x65,0x6e])](_0x4d9036,_0x4d2f02),_0x1e37cd[_0xd6692d([0x74,0x68,0x65,0x6e])](_0x24fc5d=>{_0x24fc5d!=_0xd6692d([0x56,0x61,0x6c,0x69,0x64])&&_0x4d9036(_0x24fc5d);},_0x4d2f02);}):_0x24d0ba||_0x1e37cd||_0xd6692d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1b9892(_0x234758,_0x130fe1){return new window[(_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x582fb8=>{if(_0x1310c7())return _0x582fb8(_0xd6692d([0x56,0x61,0x6c,0x69,0x64]));_0x78f242(),_0x37b699[_0xd6692d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd6692d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x131836=!0x1;const _0xd448ea=_0x2c98c9();function _0x5e082a(_0x3981ce){return!!_0x3981ce&&(typeof _0x3981ce===_0xd6692d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3981ce===_0xd6692d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3981ce[_0xd6692d([0x74,0x68,0x65,0x6e])]===_0xd6692d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3981ce[_0xd6692d([0x63,0x61,0x74,0x63,0x68])]===_0xd6692d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x90f6a1(_0x57f010){_0x1da912(_0x57f010)[_0xd6692d([0x74,0x68,0x65,0x6e])](_0xc4819f=>{if(!_0xc4819f||_0xc4819f[_0xd6692d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd6692d([0x6f,0x6b]))return _0xd6692d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e1fd2(_0x44c667(_0xd448ea+_0x130fe1))!=_0xc4819f[_0xd6692d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd6692d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd6692d([0x56,0x61,0x6c,0x69,0x64]);})[_0xd6692d([0x74,0x68,0x65,0x6e])](_0x3c89bc=>(_0x3fe439(),_0x3c89bc),()=>{const _0x14e6e8=_0x37822e();return null==_0x14e6e8?(_0x3fe439(),_0xd6692d([0x56,0x61,0x6c,0x69,0x64])):_0xd6692d(_0x64b86d-_0x14e6e8>(0xe000ba9^_0x971aab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd6692d([0x74,0x68,0x65,0x6e])](_0x582fb8)[_0xd6692d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x582fb8(_0xd6692d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57c8e4=0x2a3a6129^_0x971aab;function _0x3fe439(){const _0x14671d=_0xd6692d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e1fd2(_0x44c667(_0x234758)),_0x27db48=_0x5869d1(_0x3e1fd2(window[_0xd6692d([0x4d,0x61,0x74,0x68])][_0xd6692d([0x63,0x65,0x69,0x6c])](_0x64b86d/_0x57c8e4)));window[_0xd6692d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6692d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14671d,_0x27db48);}function _0x37822e(){const _0x6860b3=_0xd6692d([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e1fd2(_0x44c667(_0x234758)),_0x13f3b1=window[_0xd6692d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd6692d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x6860b3);return _0x13f3b1?window[_0xd6692d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5869d1(_0x13f3b1),0x10)*_0x57c8e4:null;}function _0x1da912(_0x279c27){return new window[(_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x137aec,_0x59edb7)=>{_0x279c27[_0xd6692d([0x74,0x68,0x65,0x6e])](_0x137aec,_0x59edb7),window[_0xd6692d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x59edb7,0x2a0d5b69^_0x971aab);});}}_0x37b699[_0xd6692d([0x6f,0x6e])](_0xd6692d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb52c9c,_0x344a55)=>{if(_0x344a55[0x0]!=_0x234758)return _0x582fb8(_0xd6692d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x344a55[0x1]={..._0x344a55[0x1],[_0xd6692d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd448ea};},{[_0xd6692d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6692d([0x68,0x69,0x67,0x68])}),_0x37b699[_0xd6692d([0x6f,0x6e])](_0xd6692d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f4e8b=>{_0x5e082a(_0x2f4e8b[_0xd6692d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x131836=!0x0,_0x90f6a1(_0x2f4e8b[_0xd6692d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd6692d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd6692d([0x6c,0x6f,0x77])}),_0x51dbe1[_0xd6692d([0x74,0x68,0x65,0x6e])](()=>{_0x131836||_0x582fb8(_0xd6692d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1310c7(){return _0x37b699[_0xd6692d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6692d([0x76,0x69,0x65,0x77])][_0xd6692d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd6692d([0x61,0x75,0x74,0x6f]);}function _0x78f242(){_0x37b699[_0xd6692d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd6692d([0x76,0x69,0x65,0x77])][_0xd6692d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd6692d([0x61,0x75,0x74,0x6f]);}}function _0x5b576e(_0x5bc82f){const _0x757311=[new window[(_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1aaf98=>setTimeout(_0x1aaf98,0x2a05b165^_0x971aab)),_0x51dbe1[_0xd6692d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x100d62=>{const _0x178bef=0x2a0c8fae^_0x971aab,_0x2a6072=_0x2edb44[_0xd6692d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x298c5e(){_0x2a6072[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x178bef&&_0x100d62();}_0x298c5e(),_0x2a6072[_0xd6692d([0x6f,0x6e])](_0xd6692d([0x61,0x64,0x64]),_0x298c5e);})),new window[(_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ffc27=>{function _0x50061b(){for(const _0xce4981 in window)if(window[_0xd6692d([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0xd6692d([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0xce4981))&&window[_0xce4981]==_0x24b1b9)return _0x4ffc27();_0x37b699[_0xd6692d([0x73,0x74,0x61,0x74,0x65])]!=_0xd6692d([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0xd6692d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x50061b,0x2a0c9c21^_0x971aab);}_0x29b4af(_0xd6692d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x50061b();})];return window[_0xd6692d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd6692d([0x72,0x61,0x63,0x65])](_0x757311)[_0xd6692d([0x74,0x68,0x65,0x6e])](()=>_0x5bc82f);}async function _0x3b6dca(){if(await _0x51dbe1,_0x29b4af(_0xd6692d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5238f8=_0x2edb44[_0xd6692d([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x4fc367=_0x2edb44[_0xd6692d([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])](_0x5238f8[_0xd6692d([0x69,0x64])]),_0x50dbcd=_0x589e34(_0xd6692d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x50dbcd[_0xd6692d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5238f8['id'],_0x4fc367?_0x4fc367['id']:null,!0x0),_0x50dbcd[_0xd6692d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xd6692d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x50dbcd[_0xd6692d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x50dbcd[_0xd6692d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1b81ce,void(_0x50dbcd[_0xd6692d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1b81ce);}if(_0x29b4af(_0xd6692d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5bb45f=_0x589e34(_0xd6692d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5bb45f[_0xd6692d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0xd6692d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5bb45f[_0xd6692d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5bb45f[_0xd6692d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1b81ce,_0x5bb45f[_0xd6692d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1b81ce;}_0x37b699[_0xd6692d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6692d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b81ce,_0x37b699[_0xd6692d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd6692d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b81ce,_0x37b699[_0xd6692d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd6692d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20139f(){return _0x29b4af(_0xd6692d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x589e34(_0xd6692d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0xd6692d([0x73,0x74,0x61,0x74,0x65])]==_0xd6692d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x436abe(){return _0x29b4af(_0xd6692d([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 _0x34989e(){return _0x29b4af(_0xd6692d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x523d23(_0x173a99){const _0x237939=_0x3b640f();_0x37b699[_0x237939]=_0xd6692d([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])+_0x173a99,_0x173a99[_0xd6692d([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0xd6692d([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x3b640f()]=_0x24b1b9),_0x173a99!=_0xd6692d([0x56,0x61,0x6c,0x69,0x64])&&_0x3b6dca();}function _0x3b640f(){const _0x536b53=window[_0xd6692d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd6692d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd6692d([0x6e,0x6f,0x77])]())[_0xd6692d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd6692d([0x2e]),'');let _0x3027d8=_0xd6692d([0x67]);for(let _0x3ad799=0x0;_0x3ad799<_0x536b53[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3ad799+=0x2){let _0x2337a7=window[_0xd6692d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x536b53[_0xd6692d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ad799,_0x3ad799+0x2));_0x2337a7>=_0xe882cb[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2337a7-=_0xe882cb[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3027d8+=_0xe882cb[_0x2337a7];}return _0x3027d8;}function _0x4fd155(){const _0x1f37fb=_0x328abb[_0xd6692d([0x73,0x70,0x6c,0x69,0x74])](_0xd6692d([0x2e]));if(0x3!=_0x1f37fb[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x130309(_0x1f37fb[0x1]);function _0x130309(_0x34a8ca){const _0x262b96=_0x21b7e8(_0x34a8ca);return _0x262b96&&_0x232e38()?_0x262b96:null;function _0x232e38(){const _0x21c5e3=_0x262b96[_0xd6692d([0x6a,0x74,0x69])],_0x5638f4=window[_0xd6692d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x21c5e3[_0xd6692d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21c5e3[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37440e={..._0x262b96,[_0xd6692d([0x6a,0x74,0x69])]:_0x21c5e3[_0xd6692d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x21c5e3[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37440e[_0xd6692d([0x76,0x63])],_0x44c667(_0x37440e)==_0x5638f4;}}}async function _0x2b482e(){let _0x5854bc=!0x0;try{const _0x1d2762=_0x328abb[_0xd6692d([0x73,0x70,0x6c,0x69,0x74])](_0xd6692d([0x2e])),[_0x47c9f3,_0xcbaa48,_0x1a0add]=_0x1d2762;return _0x4dfbc1(_0x47c9f3),await _0x31a553(_0x47c9f3,_0xcbaa48,_0x1a0add),_0x5854bc;}catch(_0x3d3e93){return!0x1;}function _0x4dfbc1(_0x5e839f){const _0x2660de=_0x21b7e8(_0x5e839f);_0x2660de&&_0x2660de[_0xd6692d([0x61,0x6c,0x67])]==_0xd6692d([0x45,0x53,0x32,0x35,0x36])||(_0x5854bc=!0x1);}async function _0x31a553(_0x296b76,_0x2b004a,_0x49d7a9){const _0x2e2c69=window[_0xd6692d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd6692d([0x66,0x72,0x6f,0x6d])](_0x117cee(_0x49d7a9),_0x4193c1=>_0x4193c1[_0xd6692d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x34823d=new window[(_0xd6692d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd6692d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x296b76+_0xd6692d([0x2e])+_0x2b004a),_0xd33727=window[_0xd6692d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd6692d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xd33727)return;const _0x11d50d=await _0xd33727[_0xd6692d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd6692d([0x6a,0x77,0x6b]),_0x1fc0f0,{[_0xd6692d([0x6e,0x61,0x6d,0x65])]:_0xd6692d([0x45,0x43,0x44,0x53,0x41]),[_0xd6692d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd6692d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd6692d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xd33727[_0xd6692d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd6692d([0x6e,0x61,0x6d,0x65])]:_0xd6692d([0x45,0x43,0x44,0x53,0x41]),[_0xd6692d([0x68,0x61,0x73,0x68])]:{[_0xd6692d([0x6e,0x61,0x6d,0x65])]:_0xd6692d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11d50d,_0x2e2c69,_0x34823d)||(_0x5854bc=!0x1);}}function _0x21b7e8(_0x2fb146){return _0x2fb146[_0xd6692d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd6692d([0x65,0x79]))?JSON[_0xd6692d([0x70,0x61,0x72,0x73,0x65])](_0x117cee(_0x2fb146)):null;}function _0x117cee(_0x5bb2a7){return window[_0xd6692d([0x61,0x74,0x6f,0x62])](_0x5bb2a7[_0xd6692d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd6692d([0x2b]))[_0xd6692d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd6692d([0x2f])));}function _0x44c667(_0x11c1f9){let _0x36ba4d=0x1505;function _0x2ef83b(_0x3e5386){for(let _0x356639=0x0;_0x356639<_0x3e5386[_0xd6692d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x356639++){const _0x1d3c2d=_0x3e5386[_0xd6692d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x356639);_0x36ba4d=(_0x36ba4d<<0x5)+_0x36ba4d+_0x1d3c2d,_0x36ba4d&=_0x36ba4d;}}function _0x5af384(_0x2a19c2){Array[_0xd6692d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2a19c2)?_0x2a19c2[_0xd6692d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5af384):_0x2a19c2&&typeof _0x2a19c2==_0xd6692d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd6692d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2a19c2)[_0xd6692d([0x73,0x6f,0x72,0x74])]()[_0xd6692d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xcd4c6,_0x2760d8])=>{_0x2ef83b(_0xcd4c6),_0x5af384(_0x2760d8);}):_0x2ef83b(window[_0xd6692d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2a19c2));}return _0x5af384(_0x11c1f9),_0x36ba4d>>>0x0;}function _0x3e1fd2(_0x3235d5){return _0x3235d5[_0xd6692d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd6692d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd6692d([0x30]));}function _0x5869d1(_0x3c9148){return _0x3c9148[_0xd6692d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd6692d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd6692d([0x6a,0x6f,0x69,0x6e])]('');}function _0x29b4af(_0x16d8c4){return _0x37b699[_0xd6692d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd6692d([0x68,0x61,0x73])](_0x16d8c4);}function _0x589e34(_0x3b74f4){return _0x37b699[_0xd6692d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0xd6692d([0x67,0x65,0x74])](_0x3b74f4);}function _0x1b81ce(){}function _0xd6692d(_0x1cb92f){return _0x1cb92f['map'](_0x503e76=>String['fromCharCode'](_0x503e76))['join']('');}_0x523d23(await _0x15b8d5());}(this);}['createRevision'](_0x5e424c){const _0x3120e1=this['editor']['plugins']['get']('Users');return new a({'id':_0x5e424c['id'],'name':_0x5e424c['name'],'creator':_0x5e424c['creatorId']?_0x3120e1['getUser'](_0x5e424c['creatorId']):null,'diffData':_0x5e424c['diffData']||_0x5e424c['data'],'authors':_0x5e424c['authorsIds']['map'](_0x123fe2=>_0x3120e1['getUser'](_0x123fe2)),'createdAt':new Date(_0x5e424c['createdAt']),'attributes':_0x5e424c['attributes'],'fromVersion':_0x5e424c['fromVersion'],'toVersion':_0x5e424c['toVersion']});}['addRevision'](_0x4a447c,_0x471d81=0x0){this['_revisions']['add'](_0x4a447c,_0x471d81);}['getRevision'](_0x4fee45){return this['_revisions']['get'](_0x4fee45);}['getRevisions'](_0x520a1c={'toJSON':!0x1}){const _0x54a163=Array['from'](this['_revisions']);return _0x54a163['reverse'](),_0x520a1c['toJSON']?_0x54a163['map'](_0x49fafa=>_0x49fafa['toJSON']()):_0x54a163;}['getIndex'](_0xc05123){return this['_revisions']['getIndex'](_0xc05123);}['getEarlierVisibleRevision'](_0x3bc6c2){const [,_0x3863cd]=this['getRevisionsIterator'](_0x3bc6c2,{'direction':'earlier'});return _0x3863cd;}['getLaterVisibleRevision'](_0x105436){const [,_0xbe2f3b]=this['getRevisionsIterator'](_0x105436,{'direction':'later'});return _0xbe2f3b;}['getRevisionsInDiff'](_0x2c85c7){const _0x183f40=[];for(const _0x5e892b of this['getRevisionsIterator'](_0x2c85c7['newRevisionId']))if(_0x183f40['push'](_0x5e892b),_0x5e892b['id']===_0x2c85c7['oldRevisionId'])break;return _0x183f40;}*['getRevisionsIterator'](_0x34c8fb,{direction:_0x4be074='earlier',filter:_0x35039c=()=>!0x0}={}){const _0x5aec1a='earlier'===_0x4be074?0x1:-0x1;let _0x59e8eb=this['_revisions']['get'](_0x34c8fb),_0x4dcc2e=this['getIndex'](_0x59e8eb);for(yield _0x59e8eb;_0x59e8eb;){if(_0x4dcc2e+=_0x5aec1a,_0x59e8eb=this['getRevision'](_0x4dcc2e),!_0x59e8eb)return;_0x35039c(_0x59e8eb)&&(yield _0x59e8eb);}}}function R(_0x3b605c,_0x594876,_0x28d2e4){const t=_0x3b605c['t'];switch(_0x594876){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'},_0x28d2e4);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x28d2e4);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 C={'c':_0x4a2fc8,'a':_0x1e2893,'e':_0x22b445,'r':_0x29f78d,'u':_0x63087b};class l extends _0x127458{static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5af1e4,j,_0x343091];}constructor(_0xdf05a3){super(_0xdf05a3),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5bbcda=_0x2c98c9();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5bbcda},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 _0x21f3a4=this['repository']['getRevision'](0x0),_0x1d115c=_0x21f3a4&&null===_0x21f3a4['creator']?_0x21f3a4:null;if(this['_continueCurrentRevision']=!!_0x1d115c&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x24505b=this['_source']['getCurrentRevisionId'](),_0x32eb83=this['repository']['getRevision'](_0x24505b);if(_0x32eb83)this['_startingVersion']=_0x32eb83['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x459ab9=this['_source']['history']['_operations']['find'](_0x1e2a96=>!_0x1e2a96['_isInit']),_0x22fc23=_0x459ab9?_0x459ab9['baseVersion']:this['_source']['history']['version'];_0x21f3a4?(_0x21f3a4['toVersion']<_0x22fc23&&_0x21f3a4['_update']({'toVersion':_0x22fc23}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x1d115c['id'],this['_startingVersion']=_0x1d115c['fromVersion']):(this['_startingVersion']=_0x21f3a4['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x22fc23,this['_continueCurrentRevision']=!0x1);}}else _0x1d115c&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x1d115c['toVersion'],this['editor']['model']['document']['history']['version']),_0x1d115c['fromVersion']===_0x1d115c['toVersion']?(0x0!==_0x1d115c['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d115c['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x1d115c['id'],this['_startingVersion']=_0x1d115c['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',_0x2d1f2b=>!_0x2d1f2b),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5399da=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1b57d1;for(const _0x24d3be in _0x5399da){const _0x4ee845=_0x24d3be,_0x32fb5c=_0x5399da[_0x4ee845];if('revisionHistoryLicenseKeyValid'==_0x32fb5c||'revisionHistoryLicenseKeyInvalid'==_0x32fb5c||'revisionHistoryLicenseKeyExpired'==_0x32fb5c||'revisionHistoryLicenseKeyDomainLimit'==_0x32fb5c||'revisionHistoryLicenseKeyNotAllowed'==_0x32fb5c||'revisionHistoryLicenseKeyEvaluationLimit'==_0x32fb5c||'revisionHistoryLicenseKeyTrialLimit'==_0x32fb5c||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x32fb5c||'revisionHistoryLicenseKeyUsageLimit'==_0x32fb5c){delete _0x5399da[_0x4ee845],_0x1b57d1=_0x32fb5c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x1b57d1&&_0x5399da['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x1b57d1&&_0x5399da['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x1b57d1&&_0x5399da['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x1b57d1&&_0x5399da['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x1b57d1&&_0x5399da['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x1b57d1&&_0x5399da['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x1b57d1&&_0x5399da['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x1b57d1&&_0x5399da['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x527d9e=this['repository']['getRevision'](0x0),_0x307a20=await this['getRevisionDocumentData'](_0x527d9e),_0x4e551c=await this['getRevisionRootsAttributes'](_0x527d9e);this['_replaceEditorDataWithRevisionData'](_0x307a20,_0x4e551c);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x5f2439){this['_source']=_0x5f2439;}async['update'](){const _0x253064=await this['_source']['getLatestVersion']();if(_0x253064>this['currentRevision']['toVersion']){await this['_loadState']();const _0x138f06=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x253064});_0x138f06['authors']=_0x138f06['authorsIds']['map'](_0x460217=>this['editor']['plugins']['get']('Users')['getUser'](_0x460217)),this['currentRevision']['_update'](_0x138f06);}}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'](_0x29b71c={},_0x5665c4=null){const _0x22d372=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x5665c4>this['currentRevision']['toVersion']&&(_0x5665c4=null),null===_0x5665c4&&(_0x5665c4=await this['_source']['getLatestVersion']());const _0xc3bf13=this['_getFromVersion'](_0x5665c4),_0x40fe9e=this['buildRevisionData']({'from':_0xc3bf13,'to':_0x5665c4});if(this['currentRevision']['toVersion']<_0x5665c4){const _0x1e84cf=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x5665c4,'to':_0x5665c4});_0x1e84cf['authors']=[],_0x1e84cf['authorsIds']=[],_0x1e84cf['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x1e84cf,!0x0),delete _0x1e84cf['authors'],_0x22d372['push'](_0x1e84cf);}_0x29b71c['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x29b71c['name']=_0x29b71c['name']||null,_0x29b71c['id']=_0x29b71c['id']||_0x2c98c9(),_0x29b71c={..._0x29b71c,..._0x40fe9e};const _0x495985=this['addRevisionData'](_0x29b71c);_0x22d372['push'](_0x29b71c);const _0x5a913=this['repository']['getIndex'](_0x495985);if(0x0!==_0x5a913){const _0xcf7f98=this['repository']['getRevision'](_0x5a913-0x1);if(_0xcf7f98['fromVersion']!==_0x5665c4){const _0x5f1b14=this['_revisionDataBuilder']['getData'](_0x5665c4,_0xcf7f98['toVersion']),_0x214287={'id':_0xcf7f98['id'],'diffData':_0x5f1b14['diffData'],'authorsIds':_0x5f1b14['authorsIds'],'authors':_0x5f1b14['authorsIds']['map'](_0x302d1d=>this['editor']['plugins']['get']('Users')['getUser'](_0x302d1d)),'fromVersion':_0x5665c4};_0xcf7f98===this['currentRevision']&&(_0x214287['createdAt']=new Date(_0x29b71c['createdAt']['getTime']()+0xa)),_0xcf7f98['_update'](_0x214287,!0x0),delete _0x214287['authors'],_0x22d372['push'](_0x214287);}}if(this['adapter']){for(const _0x2494cf of _0x22d372)this['_bufferUpdate'](_0x2494cf['id'],_0x2494cf,!0x0);this['sendBufferedUpdates']();}return _0x495985;}['addRevisionData'](_0x25bb23){const _0xaf40b9=this['repository']['createRevision'](_0x25bb23);return this['adapter']&&_0xaf40b9['on']('_update',(_0x3b5f8d,_0xc52b14,_0x5375f2)=>{_0x5375f2||(this['_bufferUpdate'](_0xc52b14['id'],_0xc52b14,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xaf40b9,this['_findInsertionIndex'](_0xaf40b9)),_0xaf40b9;}async['getRevisionDocumentData'](_0x3caebd){await this['_loadRevisionData'](_0x3caebd);const _0x82447a={};for(const _0x503366 in _0x3caebd['diffData']){if(_0x3caebd['diffData'][_0x503366]['attachChange']&&!_0x3caebd['diffData'][_0x503366]['attachChange']['isAttached'])continue;const _0x3661dc=this['_removeRevisionMarkers'](JSON['parse'](_0x3caebd['diffData'][_0x503366]['insertions'])),_0x4433c9=this['editor']['editing']['view']['document'],_0x4156da=new _0x564aa2(_0x4433c9,_0x3661dc['map'](_0x2b32d4=>V(_0x2b32d4,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x82447a[_0x503366]=this['editor']['data']['processor']['toData'](_0x4156da),this['editor']['data']['processor']['useFillerType']('default');}return _0x82447a;}async['getRevisionRootsAttributes'](_0x2cd6b0){await this['_loadRevisionData'](_0x2cd6b0);const _0x40e127={};for(const _0x8bd29a in _0x2cd6b0['diffData'])_0x2cd6b0['diffData'][_0x8bd29a]['attachChange']&&!_0x2cd6b0['diffData'][_0x8bd29a]['attachChange']['isAttached']||(_0x40e127[_0x8bd29a]=_0x2cd6b0['diffData'][_0x8bd29a]['attributesAfter']||{});return _0x40e127;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x139d65=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x2c010a=0x0;_0x2c010a<_0x139d65['length'];_0x2c010a++){const _0x46e436=_0x139d65[_0x2c010a];let _0x11fcc8=!0x1;for(const _0x4b06dd of Object['keys'](_0x46e436))void 0x0===_0x46e436[_0x4b06dd]?delete _0x46e436[_0x4b06dd]:'id'!==_0x4b06dd&&(_0x11fcc8=!0x0);_0x11fcc8||(_0x139d65[_0x2c010a]=null);}if(_0x139d65=_0x139d65['filter'](_0x1a597c=>null!==_0x1a597c),!_0x139d65['length'])return;for(let _0x452f42=0x0;_0x452f42<_0x139d65['length'];_0x452f42++){const _0x126d2e=_0x139d65[_0x452f42];void 0x0!==_0x126d2e['fromVersion']&&void 0x0===_0x126d2e['toVersion']&&(_0x126d2e['toVersion']=this['repository']['getRevision'](_0x126d2e['id'])['toVersion']),void 0x0!==_0x126d2e['toVersion']&&void 0x0===_0x126d2e['fromVersion']&&(_0x126d2e['fromVersion']=this['repository']['getRevision'](_0x126d2e['id'])['fromVersion']);}const _0x34b6d2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x139d65,_0x34b6d2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4365e2=>{if(_0x4365e2){for(const _0x570a32 of _0x4365e2)this['setRevisionData']({'id':_0x570a32['id'],'createdAt':_0x570a32['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4ec222,_0x20e865){let _0xf100cc=this['editor']['config']['get']('initialData'),_0x42c174=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0xf100cc){_0xf100cc={};for(const _0x19abae of this['editor']['model']['document']['getRootNames']())_0xf100cc[_0x19abae]='';}if('string'==typeof _0xf100cc&&(_0xf100cc={'main':_0xf100cc}),void 0x0===_0x42c174){_0x42c174={};for(const _0x532b34 of this['editor']['model']['document']['getRootNames']())_0x42c174[_0x532b34]={};}let _0x1a5a1=!0x1;const _0x148239=Object['keys'](_0xf100cc),_0x2943e5=Object['keys'](_0x4ec222);for(const _0x5e6fb6 of _0x148239){if(_0xf100cc[_0x5e6fb6]!==_0x4ec222[_0x5e6fb6]&&''!==_0xf100cc[_0x5e6fb6]['trim']()){_0x1a5a1=!0x0;break;}if(!_0x8a2eec(_0x42c174[_0x5e6fb6],_0x20e865[_0x5e6fb6])&&Object['keys'](_0x42c174[_0x5e6fb6])['length']>0x0){_0x1a5a1=!0x0;break;}}_0x1a5a1||(_0x1a5a1=_0x2943e5['some'](_0x311bc0=>!this['editor']['model']['document']['getRoot'](_0x311bc0))),_0x1a5a1&&_0x6545d5('editor-initial-data-replaced-with-revision-data',{'editorData':_0xf100cc,'editorRootsAttributes':_0x42c174,'revisionData':_0x4ec222,'revisionRootsAttributes':_0x20e865}),this['editor']['config']['set']('initialData',_0x4ec222),this['editor']['config']['set']('rootsAttributes',_0x20e865);}['_addPendingAction'](){if(!this['_pendingAction']){const _0xd4fe36=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0xd4fe36['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x5332b7){const _0x51a82c=this['repository']['getRevisions']();_0x51a82c['reverse']();let _0x35779c=0x0;for(;_0x35779c<_0x51a82c['length'];){const _0x1ed64e=_0x51a82c[_0x35779c];if(_0x1ed64e===this['currentRevision']){_0x35779c++;continue;}if(_0x1ed64e['id']===this['_initialRevisionId'])break;const _0x17a6de=_0x5332b7['toVersion']-_0x1ed64e['toVersion']||_0x5332b7['fromVersion']-_0x1ed64e['fromVersion'];if(_0x17a6de>0x0)break;if(_0x17a6de<0x0)_0x35779c++;else{if(!_0x5332b7['creator']&&_0x1ed64e['creator'])break;if(_0x1ed64e['creator']||!_0x5332b7['creator']){if(_0x5332b7['createdAt']>_0x1ed64e['createdAt'])break;_0x35779c++;}else _0x35779c++;}}return _0x35779c;}['setRevisionData'](_0x105551){const _0x454e8f=this['repository']['getRevision'](_0x105551['id']);if(_0x105551['createdAt']&&(_0x105551['createdAt']=new Date(_0x105551['createdAt'])),_0x105551['authorsIds']){const _0x586ea3=this['editor']['plugins']['get']('Users');_0x105551['authors']=_0x105551['authorsIds']['map'](_0x38e4e5=>_0x586ea3['getUser'](_0x38e4e5));}_0x454e8f['_update'](_0x105551,!0x0);}['buildRevisionData']({revision:_0x115529=null,from:_0x1c1e2a=null,to:_0x5eb594=null}){_0x1c1e2a=null!==_0x1c1e2a?_0x1c1e2a:_0x115529['fromVersion'],_0x5eb594=null!==_0x5eb594?_0x5eb594:_0x115529['toVersion'];const _0x5c123d=this['_revisionDataBuilder']['getData'](_0x1c1e2a,_0x5eb594),_0x1da44c={'diffData':_0x5c123d['diffData'],'authorsIds':_0x5c123d['authorsIds'],'fromVersion':_0x1c1e2a,'toVersion':_0x5eb594};if(!_0x115529||_0x5eb594!==_0x115529['toVersion']){const _0x32cea4=_0x5eb594-0x1,_0x454101=this['_source']['history']['getOperation'](_0x32cea4);_0x1da44c['createdAt']=_0x454101&&_0x454101['createdAt']||new Date();}if(this['_loadedStateData']&&_0x1c1e2a===this['_loadedStateData']['fromVersion']){for(const _0x2d6a14 of this['_loadedStateData']['authors'])_0x1da44c['authorsIds']['includes'](_0x2d6a14['id'])||_0x1da44c['authorsIds']['push'](_0x2d6a14['id']);}return _0x1da44c;}['_loadRevisionData'](_0xf63bc4){if(!_0xf63bc4||_0xf63bc4['diffData'])return Promise['resolve']();{const _0x922d58=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x922d58,'revisionId':_0xf63bc4['id']})['then'](_0x5abb22=>{_0xf63bc4['diffData']=_0x5abb22['diffData'];});}}['_bufferUpdate'](_0x530ce4,_0x38cc1c,_0x297594){if(this['_bufferedUpdates']['has'](_0x530ce4)){const _0x17e497=this['_bufferedUpdates']['get'](_0x530ce4);_0x38cc1c=_0x297594?{..._0x17e497,..._0x38cc1c}:{..._0x38cc1c,..._0x17e497};}this['_bufferedUpdates']['set'](_0x530ce4,_0x38cc1c);}['_getFromVersion'](_0x293694){const _0x12d939=this['repository']['getRevisions']();_0x12d939['reverse'](),_0x12d939['shift']();const _0x92cad=_0x12d939['find'](_0x4d3b43=>_0x4d3b43['toVersion']<=_0x293694)['toVersion'];return _0x92cad<this['_startingVersion']?this['_startingVersion']:_0x92cad;}['_createInitialRevision'](_0x439b76){const _0x3d4989=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x3d4989)this['_initialRevisionId']=_0x3d4989['id'];else{const _0x35d9a9=!this['editor']['model']['document']['roots']['find'](_0x258ae4=>this['editor']['model']['hasContent'](_0x258ae4)),_0x49050a=this['editor']['plugins']['get']('Users')['me']['id'],_0x5e1a9a=R(this['editor']['locale'],_0x35d9a9?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x439b76,'to':_0x439b76,'id':this['_initialRevisionId'],'name':_0x5e1a9a,'creatorId':_0x49050a});}}['_createCurrentRevision'](_0x8da257){const _0xa8f468=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0xa8f468),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x8da257,'to':_0x8da257,'id':_0xa8f468,'name':'','creatorId':null}));}['_makeRevision']({name:_0x4c28ff,from:_0x2b3256,to:_0x5b83af,creatorId:_0x4026dd,id:_0x2141e8}){const _0x1c0fb4=this['buildRevisionData']({'from':_0x2b3256,'to':_0x5b83af});_0x1c0fb4['name']=_0x4c28ff,_0x1c0fb4['creatorId']=_0x4026dd,_0x1c0fb4['id']=_0x2141e8;const _0xd562f8=this['addRevisionData'](_0x1c0fb4);return this['adapter']&&this['_bufferUpdate'](_0x1c0fb4['id'],_0x1c0fb4,!0x0),_0xd562f8;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x55d1ef){return(_0x55d1ef=_0x55d1ef['filter'](_0x143490=>!_0x143490['name']||'revision-start'!==_0x143490['name']&&'revision-end'!==_0x143490['name']))['forEach'](_0x5c6e8c=>{'string'!=typeof _0x5c6e8c&&(_0x5c6e8c['children']=this['_removeRevisionMarkers'](_0x5c6e8c['children']),_0x5c6e8c['attributes']=_0x5c6e8c['attributes']['filter'](_0x5e839b=>!_0x5e839b[0x0]['startsWith']('data-revision-')));}),_0x55d1ef;}}function V(_0x31d86a,_0x299887){const _0x5360ac=_0x299887['editing']['view']['document'];if('string'==typeof _0x31d86a)return new _0x5c8e78(_0x5360ac,_0x31d86a);{const _0x5b6930=_0x31d86a['children']['map'](_0xc997bb=>V(_0xc997bb,_0x299887));return new(C[_0x31d86a['type']]||_0x150b91)(_0x5360ac,_0x31d86a['name'],_0x31d86a['attributes'],_0x5b6930);}}class T{constructor(_0x5aa122){this['editor']=_0x5aa122,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'](_0x4c875c){this['source']=_0x4c875c;const _0x437e30=new Map(),_0x4f6f33=new Map(),_0x4b2d69=this['editor']['model']['document']['roots']['map'](_0xaf4ef8=>_0xaf4ef8['rootName']);for(const _0x44ce09 of _0x4b2d69){const _0x35a8b9=this['editor']['model']['document']['getRoot'](_0x44ce09),_0xe7689d=F(_0x35a8b9);_0x437e30['set'](_0x44ce09,_0xe7689d),_0x4f6f33['set'](_0x44ce09,Object['fromEntries'](_0x35a8b9['getAttributes']()));}const _0x4f696e=Array['from'](this['editor']['model']['markers'])['map'](_0x4c2b49=>[_0x4c2b49['name'],_0x4c2b49['getRange']()]),_0x2efa6f=this['source']['version'];this['_saveMetaData'](_0x2efa6f,_0x437e30,_0x4f696e,_0x4f6f33),this['_startingRevisionId']=this['_revisionId'];const _0x10b889=new Map(),_0x2c22ba=new Map();for(const _0x5190d5 of _0x4b2d69){const _0x28c643=B(_0x5190d5);_0x10b889['set'](_0x5190d5,_0x28c643),_0x2c22ba['set'](_0x5190d5,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x10b889,[],_0x2c22ba);}['getData'](_0xcf35f4,_0xc7c918){if(this['_lastFrom']===_0xcf35f4&&this['_lastTo']<=_0xc7c918)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0xc7c918,!0x0);else{if(!this['_savedMetaData']['has'](_0xcf35f4)){const _0x1b2758=this['_getPreviousFrom'](_0xcf35f4);this['_calculateMetaData'](_0x1b2758,_0xcf35f4,!0x1);}this['_calculateMetaData'](_0xcf35f4,_0xc7c918,!0x0);}return this['_lastFrom']=_0xcf35f4,this['_lastTo']=_0xc7c918,this['_getState']();}['loadState'](_0x2ef261){this['_reset'](),this['_lastFrom']=_0x2ef261['fromVersion'],this['_lastTo']=_0x2ef261['toVersion'];for(const _0x38187d in _0x2ef261['diffData']){const _0x331830=_0x2ef261['diffData'][_0x38187d]['attachChange'],_0x47ae33=_0x195bda(_0x2ef261['diffData'][_0x38187d]['attributesBefore'])||{},_0x289c48=this['_makeModelFromViewString'](_0x2ef261['diffData'][_0x38187d]['deletions']);_0x289c48['rootName']=_0x38187d,_0x289c48['_isAttached']=!_0x331830||!_0x331830['isAttached'],_0x289c48['isAttached']=()=>_0x289c48['_isAttached'],this['_baseRoots']['set'](_0x38187d,_0x289c48),this['_baseRootsAttributes']['set'](_0x38187d,_0x47ae33),_0x331830&&this['_touchedRoots']['set'](_0x38187d,_0x331830);const _0x38ddf5=this['_makeIdsRoot'](_0x289c48);this['_baseIdsRoots']['set'](_0x38187d,_0x38ddf5);for(const [_0x877915,_0x3d67d0]of _0x289c48['markers']){if(!_0x877915['startsWith']('revision:'))continue;const _0x510015=_0x877915['split'](':')[0x2];for(const _0x9e8478 of _0x3d67d0['getWalker']({'singleCharacters':!0x0})){const _0x4095a0=this['_getVidAttributeName'](_0x9e8478),_0x2e15ad='elementEnd'==_0x9e8478['type']?_0x9e8478['previousPosition']['path']['slice'](0x0,-0x1):_0x9e8478['previousPosition']['path'],_0x45c348=_0x38ddf5['getNodeByPath'](_0x2e15ad)['getAttribute'](_0x4095a0);this['_touched']['set'](_0x45c348,{'userId':_0x510015});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2dc09c=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x311315=>!this['_touched']['has'](_0x311315));let _0x3739aa=0x0;const _0x321650=new Map();for(const _0x989f88 in _0x2ef261['diffData']){const _0x48ce1f=_0x2ef261['diffData'][_0x989f88]['attachChange'],_0x3f3466=_0x195bda(_0x2ef261['diffData'][_0x989f88]['attributesAfter'])||{},_0x41d327=this['_makeModelFromViewString'](_0x2ef261['diffData'][_0x989f88]['insertions']);_0x41d327['rootName']=_0x989f88,_0x41d327['_isAttached']=!_0x48ce1f||_0x48ce1f['isAttached'],_0x41d327['isAttached']=()=>_0x41d327['_isAttached'],this['_diffRoots']['set'](_0x989f88,_0x41d327),this['_diffRootsAttributes']['set'](_0x989f88,_0x3f3466);const _0xf8154a=this['_makeIdsRoot'](_0x41d327,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x989f88,_0xf8154a),_0x321650['set'](_0x989f88,_0x41d327['isAttached']()?_0x3f3466:{});for(const [_0x40a886,_0x290a2f]of _0x41d327['markers']){if(!_0x40a886['startsWith']('revision:'))continue;const _0x100338=_0x40a886['split'](':')[0x2];for(const _0x5dc306 of _0x290a2f['getWalker']({'singleCharacters':!0x0})){const _0x4f91a9=this['_getVidAttributeName'](_0x5dc306),_0x1ade94=this['_revisionId']++,_0x10d28d='elementEnd'==_0x5dc306['type']?_0x5dc306['previousPosition']['path']['slice'](0x0,-0x1):_0x5dc306['previousPosition']['path'];_0xf8154a['getNodeByPath'](_0x10d28d)['_setAttribute'](_0x4f91a9,_0x1ade94),this['_touched']['set'](_0x1ade94,{'userId':_0x100338});}}for(const _0x1e0e84 of this['editor']['model']['createRangeIn'](_0x41d327)['getWalker']({'singleCharacters':!0x0})){const _0x3170c5=this['_getVidAttributeName'](_0x1e0e84),_0x27f503='elementEnd'==_0x1e0e84['type']?_0x1e0e84['previousPosition']['path']['slice'](0x0,-0x1):_0x1e0e84['previousPosition']['path'],_0xb4b201=_0xf8154a['getNodeByPath'](_0x27f503);_0xb4b201['getAttribute'](_0x3170c5)>0x0||_0xb4b201['_setAttribute'](_0x3170c5,_0x2dc09c[_0x3739aa++]);}for(const [_0x5b93fa,_0xf5e32b]of _0x41d327['markers'])_0x5b93fa['startsWith']('revision:')||this['_markers']['set'](_0x5b93fa,_0xf5e32b);}const _0x367701=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x367701),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x367701,0x1));const _0x48b55a=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x48b55a),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x48b55a,0x1));const _0x13a57d=Array['from'](this['_diffRoots'])['map'](([_0x6121ae,_0x32b3c0])=>[_0x6121ae,F(_0x32b3c0)]);this['_saveMetaData'](this['_lastTo'],_0x13a57d,this['_markers'],_0x321650);}['_makeModelFromViewString'](_0x58aaf6){const _0x2b1d6d=JSON['parse'](_0x58aaf6),_0x49ac1d=this['editor']['editing']['view']['document'],_0x172146=new _0x564aa2(_0x49ac1d,_0x2b1d6d['map'](_0x247856=>V(_0x247856,this['editor'])));return this['editor']['data']['toModel'](_0x172146);}['_saveMetaData'](_0x5838e6,_0x174b09,_0x245d16,_0x2671ba){const _0x18ffc3=new Map(_0x174b09),_0x2ded0d=new Map(_0x195bda(_0x2671ba)),_0x506816=new Map();for(const [_0x3119c9,_0x45d41c]of _0x245d16)_0x506816['set'](_0x3119c9,{'start':_0x45d41c['start']['clone'](),'end':_0x45d41c['end']['clone'](),'rootName':_0x45d41c['root']['rootName']});this['_savedMetaData']['set'](_0x5838e6,{'roots':_0x18ffc3,'markers':_0x506816,'rootsAttributes':_0x2ded0d});}['_removeMetaData'](_0x4d834a){this['_savedMetaData']['delete'](_0x4d834a);}['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'](_0x3b6934,_0x3119a8=null){let _0x149f06=null;_0x3b6934['is']('documentFragment')||(_0x149f06=new ft(_0x3b6934['name'],{'vid_start':null===_0x3119a8?this['_revisionId']++:_0x3119a8++}));const _0x447a68=[];for(const _0x54c2c7 of _0x3b6934['getChildren']())if(_0x54c2c7['is']('element')){_0x447a68['push'](this['_makeIdsRoot'](_0x54c2c7,_0x3119a8));const _0x1a4f92=_0x447a68[_0x447a68['length']-0x1];null!==_0x3119a8&&(_0x3119a8=_0x1a4f92['is']('element','$text')?_0x1a4f92['getAttribute']('vid')+0x1:_0x1a4f92['getAttribute']('vid_end')+0x1);}else{for(let _0x79b49d=0x0;_0x79b49d<_0x54c2c7['offsetSize'];_0x79b49d++)_0x447a68['push'](new ft('$text',{'vid':null===_0x3119a8?this['_revisionId']++:_0x3119a8++}));}if(_0x3b6934['is']('documentFragment')){const _0x289e37=B(_0x3b6934['rootName']);return _0x289e37['_insertChild'](0x0,_0x447a68),_0x289e37;}return _0x149f06['_setAttribute']('vid_end',null===_0x3119a8?this['_revisionId']++:_0x3119a8++),_0x149f06['_insertChild'](0x0,_0x447a68),_0x149f06;}['_calculateMetaData'](_0x360825,_0x17808a,_0x3611e1){this['_reset']();const {roots:_0x4eaa2c,markers:_0x568627,rootsAttributes:_0x5941ce}=this['_savedMetaData']['get'](_0x360825);this['_baseRoots']=new Map(_0x4eaa2c),this['_baseRootsAttributes']=new Map(_0x195bda(_0x5941ce));for(const [_0x214284,_0xc6be2b]of this['_baseRoots'])if('$graveyard'!==_0x214284&&(this['_diffRoots']['set'](_0x214284,F(_0xc6be2b)),this['_diffRootsAttributes']=new Map(_0x195bda(_0x5941ce)),_0x3611e1)){const _0x56778d=this['_revisionId'];this['_idsRoots']['set'](_0x214284,this['_makeIdsRoot'](_0xc6be2b)),this['_baseIdsRoots']['set'](_0x214284,this['_makeIdsRoot'](_0xc6be2b,_0x56778d));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x3611e1&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x15a060,_0x1d96ad]of _0x568627){const _0x4ce031=this['_baseRoots']['get'](_0x1d96ad['rootName']),_0x294442=this['_diffRoots']['get'](_0x1d96ad['rootName']),_0x429130=new vt(this['_fixPosition'](_0x1d96ad['start'],_0x4ce031),this['_fixPosition'](_0x1d96ad['end'],_0x4ce031)),_0x1822fa=this['_fixRange'](_0x429130,_0x294442);_0x4ce031['markers']['set'](_0x15a060,_0x429130),this['_markers']['set'](_0x15a060,_0x1822fa);}this['_applyOperations'](_0x360825,_0x17808a,_0x3611e1);}['_applyOperations'](_0x4b96fd,_0x48a2bd,_0x2c27de){for(const _0x34cabd of this['source']['getOperations'](_0x4b96fd,_0x48a2bd))this['_handleOperation'](_0x34cabd,_0x2c27de);for(const _0x1ef1aa of this['_diffRoots']['values']())_0x1ef1aa['markers']['clear']();for(const [_0x2bb403,_0x3f8fdd]of this['_markers']){this['_diffRoots']['get'](_0x3f8fdd['root']['rootName'])['markers']['set'](_0x2bb403,_0x3f8fdd['clone']());}const _0x368cd7=new Map(),_0x24b04c=new Map();for(const [_0x193e5e,_0x261cde]of this['_diffRoots'])_0x368cd7['set'](_0x193e5e,F(_0x261cde)),_0x24b04c['set'](_0x193e5e,this['_diffRootsAttributes']['get'](_0x193e5e));this['_saveMetaData'](_0x48a2bd,_0x368cd7,this['_markers'],_0x24b04c);}['_getPreviousFrom'](_0x41ebe6){const _0x2dd290=Array['from'](this['_savedMetaData']['keys']());_0x2dd290['sort']((_0x736675,_0x18d6e9)=>_0x736675-_0x18d6e9),_0x2dd290['reverse']();for(const _0x549093 of _0x2dd290)if(_0x549093<_0x41ebe6)return _0x549093;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3b59b7,_0x1e7ca0){const _0x150d83=Array['from'](_0x1e7ca0['markers'])['map'](([_0x4553da,_0x327e55])=>[_0x4553da,this['_fixRange'](_0x327e55,_0x3b59b7)]);_0x3b59b7['markers']=new Map(_0x150d83);}['_transformMarkers'](_0x29bc62){for(const _0x3af2fb of this['_markers']['values']()){const _0x253b27=_0x3af2fb['getTransformedByOperation'](_0x29bc62),_0x2acaed=vt['_createFromRanges'](_0x253b27);_0x3af2fb['start']=_0x2acaed['start'],_0x3af2fb['end']=_0x2acaed['end'];}}['_handleOperation'](_0x3be8e1,_0x209b84){if('addRoot'!=_0x3be8e1['type']&&'detachRoot'!=_0x3be8e1['type']){if('insert'==_0x3be8e1['type']){const _0x3f156b=_0x3be8e1['position']['root']['rootName'];this['_diffRoots']['has'](_0x3f156b)||(this['_diffRoots']['set'](_0x3f156b,B(_0x3f156b,!0x0)),this['_diffRootsAttributes']['set'](_0x3f156b,{}),_0x209b84&&this['_idsRoots']['set'](_0x3f156b,B(_0x3f156b,!0x0)));}else{if('addRootAttribute'==_0x3be8e1['type']||'removeRootAttribute'==_0x3be8e1['type']||'changeRootAttribute'==_0x3be8e1['type'])return void this['_handleRootAttributeOperation'](_0x3be8e1);'marker'==_0x3be8e1['type']&&this['_handleMarkerOperation'](_0x3be8e1);}if('marker'!==_0x3be8e1['type']){const _0x4aad67=this['_cloneOperation'](_0x3be8e1,this['_diffRoots']);_0x4aad67['_execute'](),this['_transformMarkers'](_0x4aad67);}if(_0x209b84)switch(_0x3be8e1['type']){case'insert':this['_handleInsertOperation'](_0x3be8e1);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x3be8e1);break;case'merge':this['_handleMergeOperation'](_0x3be8e1);break;case'split':this['_handleSplitOperation'](_0x3be8e1);}}else this['_handleRootOperation'](_0x3be8e1,_0x209b84);}['_cloneOperation'](_0x9dbcf1,_0x5785cc){const _0x4fb487=_0x9dbcf1['clone']();return _0x4fb487['_authorId']=_0x9dbcf1['_authorId'],this['_fixOperation'](_0x4fb487,_0x5785cc),_0x4fb487;}['_getBaseVids'](_0x19287b){return _0x19287b['map'](_0x31ecc8=>{const _0x5331d2=this['_getVidAttributeName'](_0x31ecc8);return Number(_0x31ecc8['item']['getAttribute'](_0x5331d2));});}['_generateTape'](_0x2cc3e1,_0x52f61e){if(_0x2cc3e1['is']('element','$text'))_0x52f61e['push']({'item':_0x2cc3e1,'type':'text'});else{_0x2cc3e1['is']('element')&&_0x52f61e['push']({'item':_0x2cc3e1,'type':'elementStart'});for(const _0xd864e7 of _0x2cc3e1['getChildren']())this['_generateTape'](_0xd864e7,_0x52f61e);_0x2cc3e1['is']('element')&&_0x52f61e['push']({'item':_0x2cc3e1,'type':'elementEnd'});}return _0x52f61e;}['_getState'](){const _0x5498ca=new Map(this['_touched']),_0x260160=new Map(_0x5498ca),_0x10a52c=new Map(),_0x2dfa44={'insertions':{},'deletions':{}},_0x3d942b={'insertions':{},'deletions':{}},_0x21ec94=new Map(),_0x5a2fdb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x5a2fdb['delete']('$graveyard');for(const _0x1df50e of _0x5a2fdb){const _0x130f1a=this['_diffRoots']['get'](_0x1df50e)||B(_0x1df50e,!0x1),_0x5aa24e=this['_baseRoots']['get'](_0x1df50e)||B(_0x1df50e,!0x1);_0x130f1a['isAttached']()||_0x5aa24e['isAttached']()?(_0x2dfa44['insertions'][_0x1df50e]=F(_0x130f1a),_0x2dfa44['deletions'][_0x1df50e]=F(_0x5aa24e),this['_copyMarkers'](_0x2dfa44['deletions'][_0x1df50e],_0x5aa24e),this['_copyMarkers'](_0x2dfa44['insertions'][_0x1df50e],_0x130f1a),_0x3d942b['insertions'][_0x1df50e]=this['_generateTape'](this['_idsRoots']['get'](_0x1df50e),[]),_0x3d942b['deletions'][_0x1df50e]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1df50e)||B(_0x1df50e,!0x1),[])):_0x5a2fdb['delete'](_0x1df50e);}for(const _0x116dbb of _0x5a2fdb){const _0x229799=_0x3d942b['insertions'][_0x116dbb];for(const _0x285d9a of _0x229799){const _0x338a81=this['_getVidAttributeName'](_0x285d9a),_0x299df3=_0x285d9a['item']['getAttribute'](_0x338a81);_0x260160['delete'](_0x299df3),_0x299df3>=this['_startingRevisionId']&&_0x10a52c['set'](_0x299df3,_0x5498ca['get'](_0x299df3));}}for(const _0x554e70 of _0x5a2fdb){const _0x4bd683=_0x3d942b['insertions'][_0x554e70],_0x584317=this['_getBaseVids'](_0x3d942b['deletions'][_0x554e70]);let _0x1f0534=0x0;for(const _0x1b734d of _0x4bd683){const _0x53fc46=this['_getVidAttributeName'](_0x1b734d),_0x3935d0=_0x1b734d['item']['getAttribute'](_0x53fc46);if(!_0x10a52c['has'](_0x3935d0)&&!_0x21ec94['has'](_0x3935d0)){if(_0x260160['has'](_0x3935d0))_0x1f0534++;else{if(_0x3935d0!=_0x584317[_0x1f0534]){const _0x28ffd4=_0x5498ca['get'](_0x3935d0)||_0x5498ca['get'](_0x584317[_0x1f0534]);for(;_0x3935d0!=_0x584317[_0x1f0534];)_0x260160['has'](_0x584317[_0x1f0534])||(_0x21ec94['set'](_0x584317[_0x1f0534],_0x28ffd4),_0x5498ca['set'](_0x584317[_0x1f0534],_0x28ffd4)),_0x1f0534++;}_0x1f0534++;}}}}for(const _0x46c2cf of _0x5a2fdb){const _0x176271=_0x3d942b['insertions'][_0x46c2cf];for(const _0x39b921 of _0x176271){const _0x5bce62=this['_getVidAttributeName'](_0x39b921),_0x299f21=_0x39b921['item']['getAttribute'](_0x5bce62);if(_0x21ec94['has'](_0x299f21)){const _0x4f934c=_0x21ec94['get'](_0x299f21);_0x260160['has'](_0x299f21)||_0x260160['set'](_0x299f21,{..._0x4f934c}),_0x10a52c['set'](_0x299f21,{..._0x4f934c});}}}for(const _0x1fa8a5 of _0x260160['keys']())_0x1fa8a5>=this['_startingRevisionId']&&_0x260160['delete'](_0x1fa8a5);const _0x2b84a8=new Map();for(const _0x2a4ab0 of _0x5a2fdb){let _0x3eb2b8=_0x3d942b['insertions'][_0x2a4ab0];for(const _0xde07df of _0x3eb2b8)if(_0xde07df['item']['is']('element','tableCell')){const _0x135c7b=this['_getVidAttributeName'](_0xde07df),_0x376b7e=_0xde07df['item']['getAttribute'](_0x135c7b);if(_0x10a52c['has'](_0x376b7e)){const _0x3432cf=_0xde07df['item']['parent']['parent']['getAttribute']('vid_start'),_0x47b761=_0x2b84a8['get'](_0x3432cf)||new Set();_0x47b761['add'](_0x10a52c['get'](_0x376b7e)['userId']),_0x2b84a8['set'](_0x3432cf,_0x47b761);}}_0x3eb2b8=_0x3d942b['deletions'][_0x2a4ab0];for(const _0x59c5c3 of _0x3eb2b8)if(_0x59c5c3['item']['is']('element','tableCell')){const _0x34e70f=this['_getVidAttributeName'](_0x59c5c3),_0x26c5f3=_0x59c5c3['item']['getAttribute'](_0x34e70f);if(_0x260160['has'](_0x26c5f3)){const _0x4cafd7=_0x59c5c3['item']['parent']['parent']['getAttribute']('vid_start'),_0x115075=_0x2b84a8['get'](_0x4cafd7)||new Set();_0x115075['add'](_0x260160['get'](_0x26c5f3)['userId']),_0x2b84a8['set'](_0x4cafd7,_0x115075);}}for(const _0x5c204e of _0x2b84a8['keys']())(_0x10a52c['has'](_0x5c204e)||_0x260160['has'](_0x5c204e))&&_0x2b84a8['delete'](_0x5c204e);}for(const _0x4f2192 of _0x5a2fdb){const _0xf5828c=_0x3d942b['insertions'][_0x4f2192];let _0x173de7=null,_0x573932=null;for(const _0x4d70ed of _0xf5828c){const _0x39bcfd=this['_getVidAttributeName'](_0x4d70ed),_0x22d200=_0x4d70ed['item']['getAttribute'](_0x39bcfd),_0x2a2e4a=_0x2b84a8['get'](_0x22d200);_0x2a2e4a&&'elementStart'==_0x4d70ed['type']&&(_0x173de7=Array['from'](_0x2a2e4a)[0x0],_0x573932=_0x4d70ed['item']['getAttribute']('vid_end')),_0x173de7&&(_0x260160['set'](_0x22d200,{'userId':_0x173de7}),_0x10a52c['set'](_0x22d200,{'userId':_0x173de7})),_0x22d200==_0x573932&&(_0x173de7=null,_0x573932=null);}}const _0x31d312={},_0x5df9e5=new Set();for(const _0x5164a0 of _0x5a2fdb){const _0x5bf933=_0x2dfa44['deletions'][_0x5164a0],_0x294610=_0x2dfa44['insertions'][_0x5164a0];for(const {userId:_0x249c49}of this['_touchedMarkers']['values']())null!==_0x249c49&&_0x5df9e5['add'](_0x249c49);for(const {userId:_0x3af39b}of this['_touchedRoots']['values']())null!==_0x3af39b&&_0x5df9e5['add'](_0x3af39b);this['_markChanges'](_0x294610,_0x3d942b['insertions'][_0x5164a0],_0x10a52c,'insertion',_0x5df9e5),this['_markChanges'](_0x5bf933,_0x3d942b['deletions'][_0x5164a0],_0x260160,'deletion',_0x5df9e5),_0x31d312[_0x5164a0]={'insertions':this['_prepareViewToSave'](_0x294610),'deletions':this['_prepareViewToSave'](_0x5bf933),'attachChange':this['_touchedRoots']['get'](_0x5164a0)||null,'attributesBefore':_0x195bda(this['_baseRootsAttributes']['get'](_0x5164a0))||{},'attributesAfter':_0x195bda(this['_diffRootsAttributes']['get'](_0x5164a0))};}return{'diffData':_0x31d312,'authorsIds':Array['from'](_0x5df9e5)};}['_processRootBeforeSave'](_0x1b9742){for(const [,_0xe195da]of _0x1b9742['markers']){const _0x44ac56=_0xe195da['start']['getAncestors']()['filter'](_0x300cd2=>'tableCell'==_0x300cd2['name']);for(const _0xec0627 of _0x44ac56)0x1==_0xec0627['childCount']&&_0xec0627['getChild'](0x0)['is']('element','paragraph')&&_0xec0627['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x2a9f2b){this['_processRootBeforeSave'](_0x2a9f2b);const _0x1d3b24=this['editor']['data']['toView'](_0x2a9f2b,{}),_0x32cfa0=Array['from'](_0x1d3b24['getChildren']())['map'](_0x2202bc=>this['_getViewJson'](_0x2202bc));return JSON['stringify'](_0x32cfa0);}['_getViewJson'](_0x201946){if(_0x201946['is']('$text'))return _0x201946['data'];{const _0x46ec42=_0x201946;return{'type':Object['keys'](C)['find'](_0x304333=>_0x201946 instanceof C[_0x304333]),'name':_0x46ec42['name'],'attributes':Array['from'](_0x46ec42['getAttributes']()),'children':Array['from'](_0x46ec42['getChildren']())['map'](_0x499237=>this['_getViewJson'](_0x499237))};}}['_markChanges'](_0x1084e5,_0xc59271,_0x264f0b,_0x26dc1d,_0x336d75){let _0x286ea2=null,_0x3c07c0=null,_0x3c1170=0x0;const _0x17207d=this['editor']['model'];for(let _0x511498=0x0;_0x511498<_0xc59271['length'];_0x511498++){const _0x126f94=this['_getVidAttributeName'](_0xc59271[_0x511498]),_0x3f814a=_0xc59271[_0x511498]['item']['getAttribute'](_0x126f94),_0x441567=_0x264f0b['get'](_0x3f814a),_0x4a390e=_0x511498==_0xc59271['length']-0x1;(!_0x286ea2&&_0x441567&&(_0x286ea2=_0x441567,_0x3c07c0=_0xc59271[_0x511498]),_0x286ea2&&(!_0x441567||_0x441567['userId']!=_0x286ea2['userId']))&&(_0x397b43(_0x441567,J(_0x3c07c0,_0x1084e5,_0x17207d),J(_0xc59271[_0x511498],_0x1084e5,_0x17207d)),_0x286ea2=_0x441567||null,_0x3c07c0=_0x441567?_0xc59271[_0x511498]:null),_0x286ea2&&_0x4a390e&&_0x397b43(_0x441567,J(_0x3c07c0,_0x1084e5,_0x17207d),q(_0xc59271[_0x511498],_0x1084e5,_0x17207d));}function _0x397b43(_0xf7d78b,_0x103273,_0x18cf79){const _0x298abf=_0x286ea2['userId'],_0x331639='revision:'+_0x26dc1d+':'+_0x298abf+':'+_0x3c1170++,_0x3ef473=_0x17207d['createRange'](_0x103273,_0x18cf79);_0x1084e5['markers']['set'](_0x331639,_0x3ef473),null!==_0x298abf&&_0x336d75['add'](_0x298abf);}}['_getVidAttributeName'](_0x2e93b2){switch(_0x2e93b2['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x1f1252,_0x4d39a0){_0x1f1252['baseVersion']=null;for(const _0x38774b in _0x1f1252){const _0x4e5815=_0x1f1252[_0x38774b];if(_0x4e5815 instanceof gt){const _0x207b14=_0x4d39a0['get'](_0x4e5815['root']['rootName']);_0x1f1252[_0x38774b]=this['_fixPosition'](_0x4e5815,_0x207b14);}if(_0x4e5815 instanceof vt){const _0x310db6=_0x4d39a0['get'](_0x4e5815['root']['rootName']);_0x1f1252[_0x38774b]=this['_fixRange'](_0x4e5815,_0x310db6);}'root'===_0x38774b&&(_0x1f1252['root']=_0x4d39a0['get'](_0x1f1252['root']['rootName']));}}['_fixRange'](_0xf6b275,_0x45d395){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf6b275['start'],_0x45d395),this['_fixPosition'](_0xf6b275['end'],_0x45d395));}['_fixPosition'](_0xd85d40,_0x392b47){return this['editor']['model']['createPositionFromPath'](_0x392b47,_0xd85d40['path'],_0xd85d40['stickiness']);}['_handleInsertOperation'](_0x4023e8){const _0x5a5c4b=this['_idsRoots']['get'](_0x4023e8['position']['root']['rootName']),_0x37c420=this['_fixPosition'](_0x4023e8['position'],_0x5a5c4b),_0x467ce3=null===_0x4023e8['_authorId']?null:_0x4023e8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xdfd4b=_0x37c420['parent'],_0x4f5dff=this['_revisionId'],_0x343ad3=[];for(const _0x252f9d of _0x4023e8['nodes'])if(_0x252f9d['is']('element'))_0x343ad3['push'](this['_makeIdsRoot'](_0x252f9d));else{for(let _0x2e94bb=0x0;_0x2e94bb<_0x252f9d['offsetSize'];_0x2e94bb++)_0x343ad3['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2e77e1=this['_revisionId'];for(let _0x15ede5=_0x4f5dff;_0x15ede5<_0x2e77e1;_0x15ede5++)this['_touched']['set'](_0x15ede5,{'userId':_0x467ce3});_0xdfd4b['_insertChild'](_0x37c420['offset'],_0x343ad3);}['_handleMoveOperation'](_0x3f08a2){(_0x3f08a2=this['_cloneOperation'](_0x3f08a2,this['_idsRoots']))['_execute']();const _0x27d65e=null===_0x3f08a2['_authorId']?null:_0x3f08a2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x17632f=_0x3f08a2['getMovedRangeStart'](),_0x52e94e=_0x17632f['parent'],_0xfbdca7=_0x17632f['offset'];!function _0x14ab0a(_0x5b79a7,_0x1be1d8,_0xdc159b,_0x1c6dbc){for(let _0x51774d=_0xdc159b;_0x51774d<_0x1c6dbc;_0x51774d++){const _0x8f5d54=_0x1be1d8['getChild'](_0x51774d);_0x8f5d54['is']('element','$text')?_0x5b79a7['set'](_0x8f5d54['getAttribute']('vid'),{'userId':_0x27d65e}):(_0x5b79a7['set'](_0x8f5d54['getAttribute']('vid_start'),{'userId':_0x27d65e}),_0x14ab0a(_0x5b79a7,_0x8f5d54,0x0,_0x8f5d54['childCount']),_0x5b79a7['set'](_0x8f5d54['getAttribute']('vid_end'),{'userId':_0x27d65e}));}}(this['_touched'],_0x52e94e,_0xfbdca7,_0xfbdca7+_0x3f08a2['howMany']);}['_handleMergeOperation'](_0x374f94){const _0x144982=null===(_0x374f94=this['_cloneOperation'](_0x374f94,this['_idsRoots']))['_authorId']?null:_0x374f94['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7e75d4=_0x374f94['targetPosition']['parent'],_0x1724f1=_0x374f94['sourcePosition']['parent'],_0xdc0649=_0x7e75d4['getAttribute']('vid_end'),_0x302af9=_0x1724f1['getAttribute']('vid_start');_0x7e75d4['_setAttribute']('vid_end',_0x1724f1['getAttribute']('vid_end')),_0x1724f1['_setAttribute']('vid_end',_0xdc0649),this['_touched']['set'](_0x302af9,{'userId':_0x144982}),this['_touched']['set'](_0xdc0649,{'userId':_0x144982}),_0x374f94['_execute']();}['_handleSplitOperation'](_0x2fd7fe){const _0x2f31be=null===(_0x2fd7fe=this['_cloneOperation'](_0x2fd7fe,this['_idsRoots']))['_authorId']?null:_0x2fd7fe['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x48b9ba=_0x2fd7fe['graveyardPosition'],_0x1f339b=_0x2fd7fe['splitPosition']['parent'];_0x2fd7fe['_execute']();const _0x10f32c=_0x1f339b['getAttribute']('vid_end'),_0x5b6d4f=_0x2fd7fe['insertionPosition']['nodeAfter'];if(_0x48b9ba){const _0x4d6105=_0x5b6d4f['getAttribute']('vid_end'),_0x5aff7c=_0x1f339b['getAttribute']('vid_end');_0x1f339b['_setAttribute']('vid_end',_0x4d6105),_0x5b6d4f['_setAttribute']('vid_end',_0x5aff7c),this['_touched']['set'](_0x1f339b['getAttribute']('vid_end'),{'userId':_0x2f31be}),this['_touched']['set'](_0x5b6d4f['getAttribute']('vid_start'),{'userId':_0x2f31be});}else{const _0x44fc7b=this['_revisionId']++,_0x361f7d=this['_revisionId']++;_0x1f339b['_setAttribute']('vid_end',_0x44fc7b),_0x5b6d4f['_setAttribute']('vid_start',_0x361f7d),_0x5b6d4f['_setAttribute']('vid_end',_0x10f32c),this['_touched']['set'](_0x44fc7b,{'userId':_0x2f31be}),this['_touched']['set'](_0x361f7d,{'userId':_0x2f31be});}}['_handleMarkerOperation'](_0x2a650b){if(!_0x2a650b['affectsData'])return;const _0x438ea2=(_0x2a650b=this['_cloneOperation'](_0x2a650b,this['_diffRoots']))['oldRange']?_0x2a650b['oldRange']['root']:null,_0x1b2c49=_0x2a650b['newRange']?_0x2a650b['newRange']['root']:null;_0x438ea2&&this['_markers']['delete'](_0x2a650b['name']),_0x1b2c49&&this['_markers']['set'](_0x2a650b['name'],_0x2a650b['newRange']['clone']());const _0x36cb92=null===_0x2a650b['_authorId']?null:_0x2a650b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xa3713e=_0x2a650b['name'];if(!this['_touchedMarkers']['has'](_0xa3713e))return void this['_touchedMarkers']['set'](_0xa3713e,{'range':_0x2a650b['oldRange'],'userId':_0x36cb92});const _0x35b87=this['_touchedMarkers']['get'](_0xa3713e),_0x3b2b0c=_0x35b87['range'],_0x533610=_0x2a650b['newRange'];null==_0x3b2b0c&&null==_0x533610||_0x3b2b0c&&_0x533610&&_0x3b2b0c['isEqual'](_0x533610)?this['_touchedMarkers']['delete'](_0x2a650b['name']):_0x35b87['userId']=_0x36cb92;}['_handleRootOperation'](_0x4a6fb2,_0x210db5){this['_diffRoots']['has'](_0x4a6fb2['rootName'])?this['_diffRoots']['get'](_0x4a6fb2['rootName'])['_isAttached']=_0x4a6fb2['isAdd']:(this['_diffRoots']['set'](_0x4a6fb2['rootName'],B(_0x4a6fb2['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x4a6fb2['rootName'],{}),_0x210db5&&this['_idsRoots']['set'](_0x4a6fb2['rootName'],B(_0x4a6fb2['rootName'],!0x0)));const _0x12ee38=null===_0x4a6fb2['_authorId']?null:_0x4a6fb2['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x3fbc91=this['_touchedRoots']['get'](_0x4a6fb2['rootName']);_0x3fbc91&&_0x3fbc91['userId']===_0x12ee38?this['_touchedRoots']['delete'](_0x4a6fb2['rootName']):this['_touchedRoots']['set'](_0x4a6fb2['rootName'],{'userId':_0x12ee38,'isAttached':_0x4a6fb2['isAdd']});}['_handleRootAttributeOperation'](_0x4a8726){const _0x3852a4=this['_diffRootsAttributes']['get'](_0x4a8726['root']['rootName']);null===_0x4a8726['newValue']?delete _0x3852a4[_0x4a8726['key']]:_0x3852a4[_0x4a8726['key']]=_0x4a8726['newValue'];}}function F(_0x498384){const _0x5b5e3a=B(_0x498384['rootName'],_0x498384['isAttached']());for(const _0x3b3dc1 of _0x498384['getChildren']()){const _0x1ddf3d=_0x3b3dc1['_clone'](!0x0);_0x5b5e3a['_appendChild'](_0x1ddf3d);}return _0x5b5e3a;}function B(_0x691cac,_0x451a14=!0x0){const _0x2f0733=new mt();return _0x2f0733['rootName']=_0x691cac,_0x2f0733['_isAttached']=_0x451a14,_0x2f0733['isAttached']=()=>_0x2f0733['_isAttached'],_0x2f0733;}function J(_0x194d05,_0x31531c,_0x46950a){const _0x3c5265='elementEnd'==_0x194d05['type']?_0x46950a['createPositionAt'](_0x194d05['item'],'end'):_0x46950a['createPositionBefore'](_0x194d05['item']);return _0x46950a['createPositionFromPath'](_0x31531c,_0x3c5265['path'],_0x3c5265['stickiness']);}function q(_0x24fe97,_0x2838d3,_0x1e7106){const _0x467a2d='elementStart'==_0x24fe97['type']?_0x1e7106['createPositionAt'](_0x24fe97['item'],0x0):_0x1e7106['createPositionAfter'](_0x24fe97['item']);return _0x1e7106['createPositionFromPath'](_0x2838d3,_0x467a2d['path'],_0x467a2d['stickiness']);}class hs extends ts{constructor(_0x3062a8,_0x3dedd1){super(_0x3062a8),this['focusTracker']=new _0x36998b(),this['keystrokes']=new _0x1582ab(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3dedd1),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0xc805c9(this);}['render'](){super['render'](),_0x381eea({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x56b9e0=_0x1e0d28=>_0x1e0d28['stopPropagation']();this['keystrokes']['set']('arrowright',_0x56b9e0),this['keystrokes']['set']('arrowleft',_0x56b9e0),this['keystrokes']['set']('arrowup',_0x56b9e0),this['keystrokes']['set']('arrowdown',_0x56b9e0);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x5f4217){this['revisionNameInputView']['fieldView']['element']['value']=_0x5f4217['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x36b17d){const _0x100af0=new _0x5dcf12(this['locale'],_0x4ecf22),_0xa5f2b4=_0x100af0['fieldView'];_0xa5f2b4['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x196cd9=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x36b17d&&(_0x196cd9+='\x20('+R(this['locale'],'optional')+')'),(_0x100af0['label']=_0x196cd9,_0xa5f2b4['on']('input',()=>{this['revisionNameInputValue']=_0xa5f2b4['element']['value']['trim']();}),_0x100af0);}}class u extends _0x127458{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['init'](){const _0x3cf7d4=this['editor'],_0x5addb1=_0x3cf7d4['plugins']['get']('RevisionTracker');_0x3cf7d4['ui']['componentFactory']['add']('revisionHistory',_0x36faad=>{const _0x398ead=_0x30ac16(_0x36faad),_0x31bf01=_0x398ead['panelView']['children'],_0x168245=new _0x41e98c(_0x36faad),_0x295331=new _0x3d0ed0(_0x36faad),_0x13a8fb=new te(_0x36faad),_0x4fd8ad=new _0x3d0ed0(_0x36faad),_0x19e3a0=new te(_0x36faad);return _0x398ead['bind']('isEnabled')['to'](_0x5addb1,'isReady',_0x5addb1,'isEnabled',_0x3cf7d4,'isReadOnly',(_0x1ac7e8,_0x536e50,_0x5e48e9)=>_0x1ac7e8&&_0x536e50&&!_0x5e48e9),_0x398ead['buttonView']['set']({'icon':_0x40bb4f['history'],'label':R(_0x36faad,'Revision\x20history'),'tooltip':!0x0}),_0x13a8fb['set']({'label':R(_0x36faad,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x13a8fb['bind']('isEnabled')['to'](_0x5addb1,'isReady',_0x5addb1,'isEnabled',_0x3cf7d4,'isReadOnly',(_0x308a63,_0xe098a9,_0x2c766b)=>_0x308a63&&_0xe098a9&&!_0x2c766b),_0x13a8fb['on']('execute',()=>this['_showDialog']()),_0x19e3a0['set']({'label':R(_0x36faad,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x19e3a0['bind']('isEnabled')['to'](_0x5addb1,'isReady',_0x3cf7d4,'isReadOnly',(_0x49f15c,_0x198b59)=>_0x49f15c&&!_0x198b59),_0x19e3a0['on']('execute',()=>{_0x3cf7d4['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x398ead['isOpen']=!0x1,_0x3cf7d4['editing']['view']['focus']();}),_0x295331['children']['add'](_0x13a8fb),_0x4fd8ad['children']['add'](_0x19e3a0),_0x168245['role']='menu',_0x168245['items']['addMany']([_0x295331,_0x4fd8ad]),_0x31bf01['add'](_0x168245),_0x398ead;}),_0x3cf7d4['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x1570c9=this['editor'],_0x236919=_0x1570c9['locale'],_0x304020=new _0x258a10(_0x236919),_0x11a44d=new _0x554c0e(_0x236919);_0x304020['buttonView']['set']({'icon':_0x40bb4f['history'],'label':R(_0x236919,'Revision\x20history')});const _0x15683a=new _0x50d436(_0x236919,_0x304020),_0x5cdb3e=new _0x14db65(_0x236919);_0x5cdb3e['set']({'label':R(_0x236919,'Save\x20current\x20revision')}),_0x5cdb3e['delegate']('execute')['to'](_0x304020),_0x5cdb3e['on']('execute',()=>{this['_showDialog']();}),_0x15683a['children']['add'](_0x5cdb3e),_0x11a44d['items']['add'](_0x15683a);const _0x4043d6=new _0x50d436(_0x236919,_0x304020),_0x543b66=new _0x14db65(_0x236919);return _0x543b66['set']({'label':R(_0x236919,'Open\x20revision\x20history')}),_0x543b66['delegate']('execute')['to'](_0x304020),_0x543b66['on']('execute',()=>{_0x1570c9['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x4043d6['children']['add'](_0x543b66),_0x11a44d['items']['add'](_0x4043d6),_0x304020['panelView']['children']['add'](_0x11a44d),_0x304020;}['_showDialog'](){const _0xe25af2=this['editor'],_0x5207e3=_0xe25af2['locale'],_0x324570=_0xe25af2['plugins']['get']('Dialog'),_0x4a712e=_0xe25af2['plugins']['get']('RevisionTracker');function _0x51d3fe(_0x341ef7){_0xe25af2['config']['get']('revisionHistory.requireRevisionName')&&''===_0x341ef7['revisionName']?_0x341ef7['revisionNameInputView']['errorText']=R(_0x5207e3,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0xe25af2['plugins']['get'](l)['saveRevision']({'name':_0x341ef7['revisionName']}),_0x324570['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x51d3fe(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x324570['show']({'id':'revisionSave','title':R(_0x5207e3,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0xe25af2['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x324570['hide']()},{'label':R(_0xe25af2['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x2c5773){_0x2c5773['bind']('isEnabled')['to'](_0x4a712e,'isReady',_0x4a712e,'isEnabled',_0xe25af2,'isReadOnly',(_0x40d37e,_0x4cf70c,_0xf10578)=>_0x40d37e&&_0x4cf70c&&!_0xf10578);},'onExecute':()=>_0x51d3fe(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x326c24=this['editor'],_0x48cfd7=_0x326c24['locale'];this['_saveRevisionFormView']=new hs(_0x48cfd7,_0x326c24['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{constructor(_0x33800c,_0x334822){super(_0x33800c),this['_model']=_0x334822,this['changeId']=_0x334822['id'];const _0x6d46b8=this['bindTemplate'],_0x206c48=R(_0x33800c,_0x334822['data']['isSuggestion']?'Suggested\x20by':'add'==_0x334822['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x334822['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x6d46b8['to']('type',_0x4109d4=>'ck-revision-change__'+_0x4109d4)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x206c48}]},{'text':'\x20'+_0x334822['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
25
+ _0x4a6c07(){constructor(_0x1d7881){super(),this['id']=_0x1d7881['id']||_0x2c98c9(),this['author']=_0x1d7881['author'],this['type']=_0x1d7881['type'],this['data']=_0x1d7881['data']||{},this['rootName']=_0x1d7881['rootName'],this['set']('createdAt',_0x1d7881['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{constructor(_0x34b0e8,_0x4375b3){this['newRevisionId']=_0x34b0e8,this['oldRevisionId']=_0x4375b3,this['changes']=new _0xe11a17();}['_setChanges'](_0x2931fb){for(const _0x38eaf7 of _0x2931fb)this['changes']['add'](_0x38eaf7);}}const Z={'c':_0x4a2fc8,'a':_0x1e2893,'e':_0x22b445,'r':_0x29f78d,'u':_0x63087b};class d extends _0x127458{static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x5af1e4,_0xf7afe6,j];}constructor(_0x12d0ee){super(_0x12d0ee),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',(_0xdf8b02,_0x53e081,_0x19ffd9)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x3a4af4=>{for(const _0x29492d of this['editor']['editing']['view']['document']['roots'])_0x19ffd9?_0x3a4af4['removeClass']('ck-editor__editable__overlay',_0x29492d):_0x3a4af4['addClass']('ck-editor__editable__overlay',_0x29492d);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2dd84c=>null!==_0x2dd84c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x9106a7,_0x21e462,_0x5757ad)=>_0x9106a7&&_0x5757ad?_0x21e462['changes']['getIndex'](_0x5757ad):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3e7689,_0x284880)=>_0x3e7689?_0x284880['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xf7afe6);}['init'](){const _0x79ce4d=this['editor'],_0x1a0679=new _t(_0x79ce4d,{'direction':'backward'}),_0x3b963f=new _t(_0x79ce4d,{'direction':'forward'});(_0x79ce4d['commands']['add']('showPreviousChange',_0x1a0679),_0x79ce4d['commands']['add']('showNextChange',_0x3b963f),_0x79ce4d['commands']['add']('restoreRevision',new yt(_0x79ce4d)),this['on']('change:numberOfChanges',()=>{_0x1a0679['refresh'](),_0x3b963f['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x79ce4d['enableReadOnlyMode']('revision-viewer'),_0x79ce4d['plugins']['has']('WidgetToolbarRepository'))&&_0x79ce4d['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x50d3a9){await this['loadRevisionData'](_0x50d3a9);const _0x79057f={};for(const _0x283af5 in _0x50d3a9['diffData']){if(_0x50d3a9['diffData'][_0x283af5]['attachChange']&&!_0x50d3a9['diffData'][_0x283af5]['attachChange']['isAttached'])continue;const _0x4c4897=this['_removeRevisionMarkers'](JSON['parse'](_0x50d3a9['diffData'][_0x283af5]['insertions'])),_0x375ab8=this['editor']['editing']['view']['document'],_0x5535da=new _0x564aa2(_0x375ab8,_0x4c4897['map'](_0x2de327=>this['_getViewObj'](_0x2de327)));this['editor']['data']['processor']['useFillerType']('marked'),_0x79057f[_0x283af5]=this['editor']['data']['processor']['toData'](_0x5535da),this['editor']['data']['processor']['useFillerType']('default');}return _0x79057f;}async['getRevisionRootsAttributes'](_0x5a6bba){await this['loadRevisionData'](_0x5a6bba);const _0x1c27b7={};for(const _0x358f78 in _0x5a6bba['diffData'])_0x5a6bba['diffData'][_0x358f78]['attachChange']&&!_0x5a6bba['diffData'][_0x358f78]['attachChange']['isAttached']||(_0x1c27b7[_0x358f78]=_0x5a6bba['diffData'][_0x358f78]['attributesAfter']||{});return _0x1c27b7;}['_removeRevisionMarkers'](_0x5a04a0){return(_0x5a04a0=_0x5a04a0['filter'](_0x43831e=>!_0x43831e['name']||'revision-start'!==_0x43831e['name']&&'revision-end'!==_0x43831e['name']))['forEach'](_0xc18a56=>{'string'!=typeof _0xc18a56&&(_0xc18a56['children']=this['_removeRevisionMarkers'](_0xc18a56['children']),_0xc18a56['attributes']=_0xc18a56['attributes']['filter'](_0x25017a=>!_0x25017a[0x0]['startsWith']('data-revision-')));}),_0x5a04a0;}async['compare'](_0x2896fc,_0x37b9a1,_0x1dc66f=!0x1){if(!this['isEnabled'])return;const _0x2529b9=this['diff'],_0x261fa3=this['repository'],_0x50ffbb='string'==typeof _0x2896fc?_0x261fa3['getRevision'](_0x2896fc):_0x2896fc,_0x279efc='string'==typeof _0x37b9a1?_0x261fa3['getRevision'](_0x37b9a1):_0x37b9a1,_0x4c4a3e=_0x50ffbb['id'],_0x4bba12=_0x279efc?_0x279efc['id']:null;if(!_0x1dc66f&&this['diff']&&this['diff']['newRevisionId']===_0x4c4a3e&&this['diff']['oldRevisionId']===_0x4bba12)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4c4a3e,_0x4bba12);const _0x1a4656=this['_getRevisionsRange'](_0x50ffbb,_0x279efc,!0x0)['map'](_0x1daccc=>this['loadRevisionData'](_0x1daccc));return _0x1a4656['push'](new Promise(_0x23ec27=>{setTimeout(_0x23ec27,0x14);})),Promise['all'](_0x1a4656)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2a75b4=this['_getDiff'](_0x4c4a3e,_0x4bba12);for(const _0x5403e2 of _0x2a75b4['changes'])this['_changeIdToChange']['set'](_0x5403e2['id'],_0x5403e2);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x1ef76b=>{for(const _0xde4132 of this['editor']['model']['document']['getRootNames']())_0x1ef76b['detachRoot'](_0xde4132);for(const _0x1f3f6f of Object['keys'](_0x2a75b4['model'])){const _0x4f53d4=_0x1ef76b['addRoot'](_0x1f3f6f);for(const _0x49bef5 of Object['keys'](_0x2a75b4['attributes'][_0x1f3f6f]))_0x1ef76b['setAttribute'](_0x49bef5,_0x2a75b4['attributes'][_0x1f3f6f][_0x49bef5],_0x4f53d4);_0x1ef76b['insert'](_0x2a75b4['model'][_0x1f3f6f],_0x4f53d4,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2a75b4['changes'])),this['isReady']=!0x0;})['catch'](_0x7f69=>{console['error'](_0x7f69),this['_cleanUp'](),_0x2529b9&&(this['diff']=_0x2529b9),this['isReady']=!0x0;});}['addRevisionData'](_0x2c9195,_0x4b7f3c){const _0x24650c=this['repository']['createRevision'](_0x2c9195);return _0x24650c['on']('_update',(_0x94c62c,_0x259e89,_0x381c24)=>_0x4b7f3c(_0x259e89,_0x381c24,_0x24650c)),this['repository']['addRevision'](_0x24650c),_0x24650c;}['loadRevisionData'](_0x270bab){if(!_0x270bab||_0x270bab['diffData'])return Promise['resolve']();{const _0x23ac5d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x23ac5d,'revisionId':_0x270bab['id']})['then'](_0x3e6de8=>{_0x270bab['_update']({'diffData':_0x3e6de8['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},_0x23f03d=>{for(const _0x591206 of this['editor']['model']['document']['getRootNames']())_0x23f03d['detachRoot'](_0x591206);});}['_sortAndFilterDiffChanges'](_0x4deaae){const _0x48c808=[],_0x4eb1f7=new Map();for(const _0xab7806 of this['editor']['model']['document']['getRootNames']()){const _0x22b9f5=this['editor']['editing']['view']['getDomRoot'](_0xab7806);if(!_0x22b9f5)continue;const _0x14bfc3=_0x22b9f5['getClientRects']()['item'](0x0);_0x14bfc3&&(_0x48c808['push'](_0xab7806),_0x4eb1f7['set'](_0xab7806,_0x14bfc3));}return _0x48c808['sort']((_0x1af0cb,_0xf6d73)=>{const _0x4dabd3=_0x4eb1f7['get'](_0x1af0cb),_0x3d5fcb=_0x4eb1f7['get'](_0xf6d73);return _0x4dabd3['y']-_0x3d5fcb['y']||_0x4dabd3['x']-_0x3d5fcb['x'];}),(_0x4deaae=_0x4deaae['filter'](_0x223fac=>_0x48c808['includes'](_0x223fac['rootName'])))['sort']((_0x1c2fda,_0x1bbf23)=>_0x48c808['indexOf'](_0x1c2fda['rootName'])-_0x48c808['indexOf'](_0x1bbf23['rootName'])),_0x4deaae;}['_makeTape'](_0x97a70a){const _0x79458d=Array['from'](_0x97a70a['markers'])['filter'](([_0xbcff0b,_0x55d687])=>_0xbcff0b['startsWith']('revision:')&&!_0x55d687['isCollapsed']),_0x5be3f2=Array['from'](this['editor']['model']['createRangeIn'](_0x97a70a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x79458d['length'])for(const _0x517130 of _0x5be3f2){const [_0x308329,_0x2e1dbf]=_0x79458d[0x0],[,_0x3c07f4,_0x4070d4]=_0x308329['split'](':');if(_0x2e1dbf['end']['isEqual'](_0x517130['nextPosition'])&&_0x79458d['shift'](),(_0x517130['previousPosition']['isEqual'](_0x2e1dbf['start'])||_0x517130['previousPosition']['isAfter'](_0x2e1dbf['start']))&&('insertion'==_0x3c07f4?_0x517130['isAdded']={'userId':_0x4070d4}:'deletion'==_0x3c07f4&&(_0x517130['isRemoved']={'userId':_0x4070d4})),0x0==_0x79458d['length'])break;}return _0x5be3f2;}['_refreshStartEndIndex'](_0x163105){const _0x224aea=new Map();for(let _0x4d91b5=0x0;_0x4d91b5<_0x163105['length'];_0x4d91b5++)'text'===_0x163105[_0x4d91b5]['type']?(_0x163105[_0x4d91b5]['item']['startIndex']=_0x4d91b5,_0x163105[_0x4d91b5]['item']['endIndex']=_0x4d91b5):('elementStart'===_0x163105[_0x4d91b5]['type']?_0x163105[_0x4d91b5]['item']['startIndex']=_0x4d91b5:'elementEnd'===_0x163105[_0x4d91b5]['type']&&(_0x163105[_0x4d91b5]['item']['endIndex']=_0x4d91b5),_0x224aea['set'](_0x163105[_0x4d91b5]['id'],_0x4d91b5));for(const _0x5aa811 of _0x224aea['values']())'elementStart'===_0x163105[_0x5aa811]['type']?_0x163105[_0x5aa811]['item']['endIndex']=_0x224aea['get'](_0x163105[_0x5aa811]['pairId']):'elementEnd'===_0x163105[_0x5aa811]['type']&&(_0x163105[_0x5aa811]['item']['startIndex']=_0x224aea['get'](_0x163105[_0x5aa811]['pairId']));}['_processTape'](_0x40884d){for(let _0x3a3bb5=0x0;_0x3a3bb5<_0x40884d['length'];_0x3a3bb5++){if('elementStart'===_0x40884d[_0x3a3bb5]['type'])_0x40884d[_0x3a3bb5]['item']['startIndex']=_0x3a3bb5;else{if('elementEnd'===_0x40884d[_0x3a3bb5]['type']){_0x40884d[_0x3a3bb5]['item']['endIndex']=_0x3a3bb5;const _0x25b2d3=_0x40884d[_0x3a3bb5]['item']['startIndex'];_0x40884d[_0x25b2d3]['pairId']=_0x40884d[_0x3a3bb5]['id'],_0x40884d[_0x3a3bb5]['pairId']=_0x40884d[_0x25b2d3]['id'];}else _0x40884d[_0x3a3bb5]['item']['startIndex']=_0x3a3bb5,_0x40884d[_0x3a3bb5]['item']['endIndex']=_0x3a3bb5,_0x40884d[_0x3a3bb5]['pairId']=null;}_0x40884d[_0x3a3bb5]['markersStart']||(_0x40884d[_0x3a3bb5]['markersStart']=[],_0x40884d[_0x3a3bb5]['markersEnd']=[]);}}['_markInsertions'](_0x3ef8b1,_0x711090){const _0xaa5d69=_0x3ef8b1['filter'](_0x15ed73=>!_0x15ed73['isAdded']);for(let _0x41e987=0x0;_0x41e987<_0x711090['length'];_0x41e987++)_0x711090[_0x41e987]['isAdded']&&(_0xaa5d69[_0x41e987]['isAdded']=_0x711090[_0x41e987]['isAdded']);}['_makeModelFromViewString'](_0x185469){const _0x15aef5=JSON['parse'](_0x185469),_0xe5fe0d=this['editor']['editing']['view']['document'],_0x3709d9=new _0x564aa2(_0xe5fe0d,_0x15aef5['map'](_0x3f05d4=>this['_getViewObj'](_0x3f05d4)));return this['editor']['data']['toModel'](_0x3709d9);}['_getViewObj'](_0x4741ae){const _0x4c747e=this['editor']['editing']['view']['document'];if('string'==typeof _0x4741ae)return new _0x5c8e78(_0x4c747e,_0x4741ae);{const _0x511e39=_0x4741ae['children']['map'](_0x3a1a72=>this['_getViewObj'](_0x3a1a72));return new(Z[_0x4741ae['type']]||_0x150b91)(_0x4c747e,_0x4741ae['name'],_0x4741ae['attributes'],_0x511e39);}}['_getDiff'](_0x4e8cc0,_0x3cc1f2=null){const _0x1381e6=this['repository']['getRevision'](_0x4e8cc0),_0x5d1b3c=_0x3cc1f2?this['repository']['getRevision'](_0x3cc1f2):null,_0x435ab0=this['_getRevisionsRange'](_0x1381e6,_0x5d1b3c),_0x3845e8=_0x435ab0[_0x435ab0['length']-0x1],_0x2ec047=new Map(),_0x35118f={'model':{},'attributes':{},'changes':[]},_0x107e6d=new Set(),_0x161325=new Map();for(let _0x10c1ae=_0x435ab0['length']-0x1;_0x10c1ae>=0x0;_0x10c1ae--){const _0x272b57=_0x435ab0[_0x10c1ae];for(const _0x4a58e2 of Object['keys'](_0x272b57['diffData']))if(_0x272b57['diffData'][_0x4a58e2]['attachChange']){const _0x29458b=_0x272b57['diffData'][_0x4a58e2]['attachChange'];_0x29458b['isAttached']?(_0x107e6d['add'](_0x4a58e2),_0x161325['has'](_0x4a58e2)&&_0x161325['get'](_0x4a58e2)['userId']==_0x29458b['userId']?_0x161325['delete'](_0x4a58e2):_0x161325['set'](_0x4a58e2,_0x29458b)):_0x161325['has'](_0x4a58e2)?(_0x107e6d['delete'](_0x4a58e2),_0x161325['delete'](_0x4a58e2)):(_0x107e6d['add'](_0x4a58e2),_0x161325['set'](_0x4a58e2,_0x29458b));}else _0x107e6d['add'](_0x4a58e2);}for(const _0x4d4e6a of _0x107e6d){const _0x9aa837=_0x161325['has'](_0x4d4e6a)&&!_0x161325['get'](_0x4d4e6a)['isAttached'];let _0x345b35=_0x9aa837?_0x435ab0['length']-0x1:0x0;const _0x56d2aa=_0x9aa837?-0x1:0x1;for(;_0x435ab0[_0x345b35];){const _0x4442d9=_0x435ab0[_0x345b35];if(_0x4442d9['diffData'][_0x4d4e6a]){const _0x22ab15=_0x9aa837?_0x4442d9['diffData'][_0x4d4e6a]['attributesBefore']:_0x4442d9['diffData'][_0x4d4e6a]['attributesAfter'];_0x35118f['attributes'][_0x4d4e6a]=_0x22ab15?_0x195bda(_0x22ab15):{};break;}_0x345b35+=_0x56d2aa;}}for(const _0x3c3f0d of _0x435ab0){_0x3c3f0d['model']={};for(const _0x3912c1 of _0x3c3f0d['authors'])_0x2ec047['set'](_0x3912c1['id'],_0x3912c1);for(const _0x21c4b9 of _0x107e6d){const _0x1f9c8b=_0x3c3f0d['diffData'][_0x21c4b9]?_0x3c3f0d['diffData'][_0x21c4b9]['insertions']:'[]',_0x3440d6=_0x3c3f0d['diffData'][_0x21c4b9]?_0x3c3f0d['diffData'][_0x21c4b9]['deletions']:'[]';_0x3c3f0d['model'][_0x21c4b9]={'insertions':this['_makeModelFromViewString'](_0x1f9c8b),'deletions':this['_makeModelFromViewString'](_0x3440d6)};}}for(const _0x2a41f5 of _0x107e6d){let _0x542a15=null,_0x5766e7=0x0;const _0x1e4bc4=new Map(Array['from'](_0x1381e6['model'][_0x2a41f5]['insertions']['markers'])['filter'](([_0x158a09])=>!_0x158a09['startsWith']('revision:')));let _0x25e651=0x0;for(const _0x38f3c5 of _0x435ab0){const _0x456373=this['_makeTape'](_0x38f3c5['model'][_0x2a41f5]['insertions']);_0x38f3c5==_0x1381e6?(_0x542a15=_0x456373,_0x5766e7=_0x542a15['length'],_0x542a15['forEach'](_0x3252b6=>{_0x3252b6['id']=_0x25e651++;}),this['_processTape'](_0x542a15)):this['_markInsertions'](_0x542a15,_0x456373);const _0x436e36=_0x542a15['filter'](_0x318880=>!_0x318880['isAdded'])['map'](_0xe1a33c=>_0xe1a33c['id']);let _0x5fbe0d=0x0;const _0xd11265=this['_makeTape'](_0x38f3c5['model'][_0x2a41f5]['deletions']);_0xd11265['forEach'](_0x549d66=>{_0x549d66['isRemoved']?_0x549d66['id']=_0x5766e7++:_0x549d66['id']=_0x436e36[_0x5fbe0d++];}),this['_processTape'](_0xd11265),this['_setDistance'](_0x542a15,'isAdded'),this['_setDistance'](_0xd11265,'isRemoved'),_0x38f3c5==_0x1381e6&&this['_markMarkers'](_0x542a15,_0x1e4bc4),_0x542a15=this['_joinTapes'](_0x542a15,_0xd11265),this['_refreshStartEndIndex'](_0x542a15),this['_setDistance'](_0x542a15,'isRemoved');}_0x542a15=_0x542a15['filter'](_0x17feba=>!(_0x17feba['isAdded']&&_0x17feba['isRemoved']));const _0x45679e=new Map(_0x3845e8['model'][_0x2a41f5]['deletions']['markers']),_0x3a9df3=new Set(_0x1e4bc4['keys']());for(const _0x5f037c of _0x45679e['keys']())_0x3a9df3['delete'](_0x5f037c);this['_markSuggestions'](_0x542a15,_0x3a9df3),this['_fixObsoleteTags'](_0x542a15),_0x542a15=this['_removeMissingPairs'](_0x542a15),_0x542a15=this['_markMismatchedRemovedTags'](_0x542a15),_0x542a15=this['_removeUnsupportedChanges'](_0x542a15);const {root:_0x30f1e5,changes:_0x4b221e}=this['_makeModelFromTape'](_0x542a15,_0x2ec047,_0x2a41f5);_0x35118f['model'][_0x2a41f5]=_0x30f1e5;const _0x593a2f=_0x161325['get'](_0x2a41f5);if(_0x593a2f){const _0x35ed5b=_0x2ec047['get'](_0x593a2f['userId']),_0x122a81=new r({'author':_0x35ed5b,'type':_0x593a2f['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2a41f5});_0x4b221e['unshift'](_0x122a81),_0x35118f['attributes'][_0x2a41f5]['revisionHistoryAttachChange']=_0x122a81['id'];}_0x35118f['changes']=_0x35118f['changes']['concat'](_0x4b221e);}return _0x35118f;}['_markMarkers'](_0x2ebea8,_0x17d5fa){for(let _0xa98677=0x0;_0xa98677<_0x2ebea8['length'];_0xa98677++)for(const [_0x266133,_0x42b6b7]of _0x17d5fa)_0x42b6b7['start']['isEqual'](_0x2ebea8[_0xa98677]['previousPosition'])&&_0x2ebea8[_0xa98677]['markersStart']['push'](_0x266133),_0x42b6b7['end']['isEqual'](_0x2ebea8[_0xa98677]['nextPosition'])&&_0x2ebea8[_0xa98677]['markersEnd']['push'](_0x266133);}['_joinTapes'](_0x398158,_0x3e949d){let _0x25cb0a=[],_0x21fce2=0x0,_0x3dc5ea=0x0;for(;_0x21fce2<_0x398158['length']||_0x3dc5ea<_0x3e949d['length'];){const _0xfe20a3=_0x398158[_0x21fce2]||{},_0x2b99c8=_0x3e949d[_0x3dc5ea]||{};if(_0xfe20a3['id']==_0x2b99c8['id'])_0x21fce2++,_0x3dc5ea++,_0x25cb0a['push'](_0xfe20a3);else{if(_0x2b99c8['isRemoved']&&_0xfe20a3['isAdded']){const {commonTape:_0x5b7c28,iEnd:_0x2d5eda,jEnd:_0x79b842}=this['_threeWayMerge'](_0x398158,_0x21fce2,_0x3e949d,_0x3dc5ea);_0x25cb0a=_0x25cb0a['concat'](_0x5b7c28),_0x21fce2=_0x2d5eda,_0x3dc5ea=_0x79b842;}else _0x2b99c8['isRemoved']?(_0x3dc5ea++,_0x25cb0a['push'](_0x2b99c8)):(_0x21fce2++,_0x25cb0a['push'](_0xfe20a3));}}return _0x25cb0a;}['_markSuggestions'](_0x58a96e,_0x77b441){const _0x50b6fb=[];for(let _0x4c9f1a=0x0;_0x4c9f1a<_0x58a96e['length'];_0x4c9f1a++){for(let _0x361479=0x0;_0x361479<_0x58a96e[_0x4c9f1a]['markersStart']['length'];_0x361479++){const _0x442259=_0x58a96e[_0x4c9f1a]['markersStart'][_0x361479];if(!_0x77b441['has'](_0x442259))continue;const {group:_0x28451f,type:_0x2836ef,authorId:_0xd42faa}=_0x4e47d5(_0x442259);'revision-suggestion'!=_0x28451f||'insertion'!=_0x2836ef&&'deletion'!=_0x2836ef||(_0x50b6fb['unshift']({'type':_0x2836ef,'name':_0x442259,'userId':_0xd42faa}),_0x58a96e[_0x4c9f1a]['markersStart']['splice'](_0x361479,0x1),_0x361479--);}_0x4e1bf3(_0x58a96e[_0x4c9f1a]);for(let _0x1e3f40=0x0;_0x1e3f40<_0x58a96e[_0x4c9f1a]['markersEnd']['length'];_0x1e3f40++){const _0x291569=_0x58a96e[_0x4c9f1a]['markersEnd'][_0x1e3f40];if(!_0x77b441['has'](_0x291569))continue;const {group:_0x4aba7b,type:_0x21f48d}=_0x4e47d5(_0x291569);if('revision-suggestion'!=_0x4aba7b||'insertion'!=_0x21f48d&&'deletion'!=_0x21f48d)continue;_0x58a96e[_0x4c9f1a]['markersEnd']['splice'](_0x1e3f40,0x1),_0x1e3f40--;const _0x338cda=_0x50b6fb['findIndex'](_0x46c933=>_0x46c933['name']==_0x291569);_0x338cda>-0x1&&_0x50b6fb['splice'](_0x338cda,0x1);}}function _0x4e47d5(_0x59c73e){const _0x221956=_0x59c73e['split'](':');return{'group':_0x221956[0x0],'type':_0x221956[0x1],'subType':_0x221956['length']>=0x5?_0x221956[0x2]:null,'id':_0x221956['length']<0x5?_0x221956[0x2]:_0x221956[0x3],'authorId':_0x221956['length']<0x5?_0x221956[0x3]:_0x221956[0x4],'markerCount':0x6==_0x221956['length']?_0x221956[0x5]:null};}function _0x4e1bf3(_0x1b6f70){for(let _0x43db5f=0x0;_0x43db5f<_0x50b6fb['length'];_0x43db5f++){if(_0x1b6f70['isAdded']&&'insertion'==_0x50b6fb[_0x43db5f]['type'])return _0x1b6f70['isAddSuggestion']=_0x50b6fb[_0x43db5f],void delete _0x1b6f70['isAdded'];if(!_0x1b6f70['isAdded']&&!_0x1b6f70['isRemoved']&&'deletion'==_0x50b6fb[_0x43db5f]['type'])return void(_0x1b6f70['isRemoveSuggestion']=_0x50b6fb[_0x43db5f]);}}}['_setDistance'](_0x5a45ab,_0x39ff48){let _0x8e3e68=0x0,_0x433119=!0x1;const _0x2c2000=new Map();for(const _0x204005 of _0x5a45ab)_0x204005[_0x39ff48]?_0x433119&&(_0x8e3e68++,_0x433119=!0x1):(_0x8e3e68++,_0x433119=!0x0),_0x2c2000['set'](_0x204005['id'],_0x8e3e68);for(let _0x392681=0x0;_0x392681<_0x5a45ab['length'];_0x392681++){if('isRemoved'==_0x39ff48&&_0x5a45ab[_0x392681]['isAdded']||'isAdded'==_0x39ff48&&_0x5a45ab[_0x392681]['isRemoved'])continue;if('text'==_0x5a45ab[_0x392681]['type']){_0x5a45ab[_0x392681]['distance']=0x0;continue;}const _0x2ffc6d=_0x2c2000['get'](_0x5a45ab[_0x392681]['pairId']),_0x1c5d72=_0x2c2000['get'](_0x5a45ab[_0x392681]['id']);_0x5a45ab[_0x392681]['distance']=_0x2ffc6d-_0x1c5d72;}}['_getRevisionsRange'](_0x18f114,_0x182c8c,_0x1da871=!0x1){const _0x3dd52e=[];let _0x437e59=this['repository']['getIndex'](_0x18f114),_0xa0e6f4=this['repository']['getIndex'](_0x182c8c);for(-0x1==_0xa0e6f4&&(_0xa0e6f4=this['repository']['_revisions']['length'],_0x1da871=!0x1);_0x437e59<_0xa0e6f4;)_0x3dd52e['push'](this['repository']['getRevision'](_0x437e59)),_0x437e59++;return _0x1da871&&_0x3dd52e['push'](this['repository']['getRevision'](_0x437e59)),_0x3dd52e;}['_threeWayMerge'](_0x21fd13,_0x4b7f98,_0x58ad85,_0x228058){const _0xc84b52=this['editor']['model']['schema'];let _0x356325=_0x4b7f98;for(;_0x21fd13[_0x356325]&&_0x21fd13[_0x356325]['isAdded'];)_0x356325++;let _0x4ec0b6=_0x228058;for(;_0x58ad85[_0x4ec0b6]&&_0x58ad85[_0x4ec0b6]['isRemoved'];)_0x4ec0b6++;_0x4bf8fc(_0x21fd13,_0x4b7f98,_0x356325),_0x4bf8fc(_0x58ad85,_0x228058,_0x4ec0b6);const _0xa84408=_0x58ad85['slice'](_0x228058,_0x4ec0b6)['concat'](_0x21fd13['slice'](_0x4b7f98,_0x356325));return _0xa84408['sort']((_0x143eef,_0x18fbe4)=>_0x143eef['side']!=_0x18fbe4['side']?_0x143eef['side']-_0x18fbe4['side']:_0x143eef['level']!=_0x18fbe4['level']?_0x143eef['level']-_0x18fbe4['level']:_0x143eef['distance']!=_0x18fbe4['distance']?_0x18fbe4['distance']-_0x143eef['distance']:!!_0x143eef['isAdded']!=!!_0x18fbe4['isAdded']?-0x1==_0x143eef['side']||0x0==_0x143eef['side']?_0x143eef['isAdded']?-0x1:0x1:_0x143eef['isAdded']?0x1:-0x1:_0x143eef['index']-_0x18fbe4['index']),{'commonTape':_0xa84408,'iEnd':_0x356325,'jEnd':_0x4ec0b6};function _0x4bf8fc(_0x463332,_0x1981cd,_0x1d7a60){let _0x304ab5=-0x1,_0x721290=Number['POSITIVE_INFINITY'],_0x5268fa=!0x0;for(let _0xc07f16=_0x1981cd;_0xc07f16<_0x1d7a60;_0xc07f16++)if(_0xc84b52['isInline'](_0x463332[_0xc07f16]['item'])||(_0x5268fa=!0x1),_0x463332[_0xc07f16]['item']['startIndex']<_0x1981cd&&(_0x304ab5=_0xc07f16),_0x463332[_0xc07f16]['item']['endIndex']>=_0x1d7a60){_0x721290=_0xc07f16;break;}_0x5268fa&&(_0x304ab5=_0x1d7a60-0x1);for(let _0x23853c=_0x1981cd;_0x23853c<_0x1d7a60;_0x23853c++)_0x463332[_0x23853c]['side']=_0x23853c<=_0x304ab5?-0x1:_0x23853c<_0x721290?0x0:0x1,_0x463332[_0x23853c]['index']=_0x23853c;let _0x31ba29=0x0;for(let _0x473f49=_0x1981cd;_0x473f49<=_0x304ab5;_0x473f49++)0x0==_0x463332[_0x473f49]['distance']?_0x463332[_0x473f49]['level']=_0x31ba29:(_0x31ba29++,_0x463332[_0x473f49]['level']=_0x31ba29,_0x31ba29++);for(let _0x5106de=_0x1981cd;_0x5106de<_0x1d7a60;_0x5106de++)0x0==_0x463332[_0x5106de]['side']&&(_0x463332[_0x5106de]['level']=_0x31ba29);_0x31ba29=0x0;for(let _0x1e302f=_0x1d7a60-0x1;_0x1e302f>=_0x721290;_0x1e302f--)0x0==_0x463332[_0x1e302f]['distance']?_0x463332[_0x1e302f]['level']=_0x31ba29:(_0x31ba29--,_0x463332[_0x1e302f]['level']=_0x31ba29,_0x31ba29--);}}['_fixObsoleteTags'](_0x53c4f5){const _0x347500=new Map(),_0x117e89=this['editor']['model']['schema'];for(let _0x36d691=0x1;_0x36d691<_0x53c4f5['length'];_0x36d691++){let _0x5409ad,_0x301677,_0x384f04;const _0x339286=_0x53c4f5[_0x36d691],_0x4579c4=_0x53c4f5[_0x36d691-0x1];if('text'==_0x339286['type'])continue;if(_0x339286['type']!=_0x4579c4['type'])continue;if(!_0x117e89['isBlock'](_0x4579c4['item'])||_0x117e89['isLimit'](_0x4579c4['item']))continue;if(!_0x117e89['isBlock'](_0x339286['item'])||_0x117e89['isLimit'](_0x339286['item']))continue;if((_0x53c4f5[_0x36d691]['isAdded']||_0x53c4f5[_0x36d691]['isAddSuggestion'])&&_0x53c4f5[_0x36d691-0x1]['isRemoved'])_0x5409ad=_0x53c4f5[_0x36d691],_0x301677=_0x53c4f5[_0x36d691-0x1],_0x384f04=_0x36d691-0x1;else{if(!_0x53c4f5[_0x36d691]['isRemoved']||!_0x53c4f5[_0x36d691-0x1]['isAdded']&&!_0x53c4f5[_0x36d691-0x1]['isAddSuggestion'])continue;_0x5409ad=_0x53c4f5[_0x36d691-0x1],_0x301677=_0x53c4f5[_0x36d691],_0x384f04=_0x36d691;}const _0x49f87c=_0x5409ad['level']==_0x301677['level'],_0x22aef7=Math['abs'](_0x5409ad['level'])<Math['abs'](_0x301677['level'])&&0x0==_0x301677['distance'];(_0x49f87c||_0x22aef7)&&(_0x347500['set'](_0x301677['id'],_0x5409ad['id']),_0x53c4f5['splice'](_0x384f04,0x1),_0x36d691--,_0x5409ad['isAdded']=!0x1);}for(let _0xd63cd7=0x0;_0xd63cd7<_0x53c4f5['length'];_0xd63cd7++)_0x347500['has'](_0x53c4f5[_0xd63cd7]['pairId'])&&(_0x53c4f5[_0xd63cd7]['pairId']=_0x347500['get'](_0x53c4f5[_0xd63cd7]['pairId']));}['_removeMissingPairs'](_0x9acd77){const _0xf96e7d=new Set(_0x9acd77['map'](_0x55ec46=>_0x55ec46['id']));for(let _0x160459=0x0;_0x160459<_0x9acd77['length'];_0x160459++)_0xf96e7d['has'](_0x9acd77[_0x160459]['pairId'])||0x0==_0x9acd77[_0x160459]['distance']||(_0x9acd77[_0x160459]['isIncorrect']=!0x0);return _0x9acd77['filter'](_0x24382b=>!_0x24382b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x35ee14){const _0x199d88=new Set();for(let _0x3a3d34=0x0;_0x3a3d34<_0x35ee14['length'];_0x3a3d34++){if(_0x199d88['has'](_0x35ee14[_0x3a3d34]['id'])&&_0x35ee14[_0x3a3d34]['isRemoved']&&(_0x35ee14[_0x3a3d34]['isIncorrect']=!0x0),_0x35ee14[_0x3a3d34]['isIncorrect'])continue;if(0x0==_0x35ee14[_0x3a3d34]['distance'])continue;if('elementStart'!=_0x35ee14[_0x3a3d34]['type'])continue;if(null==_0x35ee14[_0x3a3d34]['pairId'])continue;let _0x18513a=_0x3a3d34+0x1,_0x3654a7=0x0;for(;_0x35ee14[_0x18513a]['id']!=_0x35ee14[_0x3a3d34]['pairId'];)'elementStart'==_0x35ee14[_0x18513a]['type']?_0x3654a7++:'elementEnd'==_0x35ee14[_0x18513a]['type']&&_0x3654a7--,_0x18513a++;if(0x0!=_0x3654a7){if(_0x35ee14[_0x3a3d34]['isRemoved'])_0x35ee14[_0x3a3d34]['isIncorrect']=!0x0;else{for(;_0x18513a!=_0x3a3d34;)_0x35ee14[_0x18513a]['isRemoved']&&0x0!=_0x35ee14[_0x18513a]['distance']&&(_0x35ee14[_0x18513a]['isIncorrect']=!0x0,_0x199d88['add'](_0x35ee14[_0x18513a]['pairId'])),_0x18513a--;}}}return _0x35ee14['filter'](_0x518852=>!_0x518852['isIncorrect']);}['_removeUnsupportedChanges'](_0x145a3b){const _0x553dd3=this['editor']['model']['schema'];for(let _0x33b09e=0x0;_0x33b09e<_0x145a3b['length'];_0x33b09e++){if(!(_0x145a3b[_0x33b09e]['isAdded']||_0x145a3b[_0x33b09e]['isAddSuggestion']||_0x145a3b[_0x33b09e]['isRemoved']||_0x145a3b[_0x33b09e]['isRemoveSuggestion']))continue;if(0x0==_0x145a3b[_0x33b09e]['distance'])continue;const _0x4832cc=_0x145a3b[_0x33b09e]['item'];_0x553dd3['isBlock'](_0x4832cc)||_0x553dd3['isLimit'](_0x4832cc)||(_0x145a3b[_0x33b09e]['isAdded']&&delete _0x145a3b[_0x33b09e]['isAdded'],_0x145a3b[_0x33b09e]['isAddSuggestion']&&delete _0x145a3b[_0x33b09e]['isAddSuggestion'],_0x145a3b[_0x33b09e]['isRemoveSuggestion']&&delete _0x145a3b[_0x33b09e]['isRemoveSuggestion'],_0x145a3b[_0x33b09e]['isRemoved']&&(_0x145a3b[_0x33b09e]['isIncorrect']=!0x0));}return _0x145a3b['filter'](_0xb9c363=>!_0xb9c363['isIncorrect']);}['_makeModelFromTape'](_0x3f41eb,_0x48fbe0,_0x16f3c0){const _0x57b127=new mt(),_0x4c612b=[],_0x4d4bef=new Map(),_0x31b151=this['editor']['model'],_0x547be3=_0x31b151['schema'],_0x2f15a3=[_0x57b127],_0x512e04={},_0x1b6910={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x426cb8=null;const _0x922ed3=[0x0];for(let _0x59d4f5=0x0;_0x59d4f5<_0x3f41eb['length'];_0x59d4f5++)if('elementStart'===_0x3f41eb[_0x59d4f5]['type']){_0x3f41eb[_0x59d4f5]['previousPosition']=_0x31b151['createPositionFromPath'](_0x57b127,_0x922ed3);const _0x39fa9e=new ft(_0x3f41eb[_0x59d4f5]['item']['name'],_0x3f41eb[_0x59d4f5]['item']['getAttributes']());_0x2f15a3[0x0]['_appendChild'](_0x39fa9e),_0x922ed3['push'](0x0),_0x2f15a3['unshift'](_0x39fa9e),_0x3f41eb[_0x59d4f5]['nextPosition']=_0x31b151['createPositionFromPath'](_0x57b127,_0x922ed3);}else'elementEnd'===_0x3f41eb[_0x59d4f5]['type']?(_0x2f15a3['shift'](),_0x3f41eb[_0x59d4f5]['previousPosition']=_0x31b151['createPositionFromPath'](_0x57b127,_0x922ed3),_0x922ed3['pop'](),_0x922ed3[_0x922ed3['length']-0x1]++,_0x3f41eb[_0x59d4f5]['nextPosition']=_0x31b151['createPositionFromPath'](_0x57b127,_0x922ed3)):(_0x3f41eb[_0x59d4f5]['previousPosition']=_0x31b151['createPositionFromPath'](_0x57b127,_0x922ed3),_0x426cb8?_0x426cb8['_data']+=_0x3f41eb[_0x59d4f5]['item']['data']:_0x426cb8=new wt(_0x3f41eb[_0x59d4f5]['item']['data'],_0x3f41eb[_0x59d4f5]['item']['getAttributes']()),_0x3f41eb[_0x59d4f5+0x1]&&'text'===_0x3f41eb[_0x59d4f5+0x1]['type']&&_0x3358c3(_0x426cb8,_0x3f41eb[_0x59d4f5+0x1]['item'])||(_0x2f15a3[0x0]['_appendChild'](_0x426cb8),_0x426cb8=null),_0x922ed3[_0x922ed3['length']-0x1]+=_0x3f41eb[_0x59d4f5]['item']['offsetSize'],_0x3f41eb[_0x59d4f5]['nextPosition']=_0x31b151['createPositionFromPath'](_0x57b127,_0x922ed3));for(let _0x4bb03e=0x0;_0x4bb03e<_0x3f41eb['length'];_0x4bb03e++){const _0x4f07f4=_0x3f41eb[_0x4bb03e]['previousPosition'],_0x1e31da=_0x3f41eb[_0x4bb03e]['nextPosition'];for(const _0x20ce9d of _0x3f41eb[_0x4bb03e]['markersStart'])_0x4d4bef['set'](_0x20ce9d,{'start':_0x4f07f4,'end':null});_0x5c5233('isRemoveSuggestion',_0x4bb03e,_0x4f07f4,_0x1e31da),_0x5c5233('isAddSuggestion',_0x4bb03e,_0x4f07f4,_0x1e31da),_0x5c5233('isRemoved',_0x4bb03e,_0x4f07f4,_0x1e31da),_0x5c5233('isAdded',_0x4bb03e,_0x4f07f4,_0x1e31da);for(const _0x2f2fe2 of _0x3f41eb[_0x4bb03e]['markersEnd']){_0x4d4bef['get'](_0x2f2fe2)['end']=_0x1e31da;}}for(const [_0x30b22a,_0x39c872]of _0x4d4bef){const _0x198169=this['editor']['model']['createRange'](_0x39c872['start'],_0x39c872['end']);_0x57b127['markers']['set'](_0x30b22a,_0x198169);}return _0x4c612b['sort']((_0x18e7fd,_0x359286)=>{const _0x25f8bf=_0x57b127['markers']['get']('revision:'+_0x18e7fd['id']),_0x3932d8=_0x57b127['markers']['get']('revision:'+_0x359286['id']);return _0x25f8bf['start']['isBefore'](_0x3932d8['start'])?-0x1:_0x25f8bf['start']['isAfter'](_0x3932d8['start'])?0x1:_0x25f8bf['end']['isBefore'](_0x3932d8['end'])?-0x1:_0x25f8bf['end']['isAfter'](_0x3932d8['end'])?0x1:'add'===_0x18e7fd['type']?-0x1:0x1;}),{'root':_0x57b127,'changes':_0x4c612b};function _0x5c5233(_0x38ef29,_0x51b3e7,_0x12ceeb,_0x878d65){const _0x5025be=!!_0x3f41eb[_0x51b3e7][_0x38ef29],_0x10ad88=_0x5025be?_0x3f41eb[_0x51b3e7][_0x38ef29]['userId']:null,_0x29eb70=_0x51b3e7===_0x3f41eb['length']-0x1,_0x151e24=_0x1b6910[_0x38ef29][0x0],_0x2f04ae=_0x547be3['isObject'](_0x3f41eb[_0x51b3e7]['item']);!_0x512e04[_0x38ef29]&&_0x5025be?_0x512e04[_0x38ef29]={'start':_0x12ceeb,'tapeItem':_0x3f41eb[_0x51b3e7],'userId':_0x10ad88,'type':_0x38ef29}:_0x512e04[_0x38ef29]&&!_0x5025be?(_0x512e04[_0x38ef29]['end']=_0x12ceeb,_0xe51645(_0x512e04[_0x38ef29]),_0x512e04[_0x38ef29]=null):_0x512e04[_0x38ef29]&&_0x5025be&&_0x512e04[_0x38ef29]['userId']!==_0x10ad88&&(_0x512e04[_0x38ef29]['end']=_0x12ceeb,_0x151e24&&_0x151e24['userId']===_0x512e04[_0x38ef29]['userId']||_0xe51645(_0x512e04[_0x38ef29]),_0x512e04[_0x38ef29]={'start':_0x12ceeb,'tapeItem':_0x3f41eb[_0x51b3e7],'userId':_0x10ad88,'type':_0x38ef29}),_0x512e04[_0x38ef29]&&_0x2f04ae&&('elementStart'!==_0x3f41eb[_0x51b3e7]['type']||_0x151e24&&_0x151e24['userId']===_0x10ad88||_0x1b6910[_0x38ef29]['unshift']({'userId':_0x10ad88,'object':_0x3f41eb[_0x51b3e7]['item'],'change':_0x512e04[_0x38ef29]}),'elementEnd'===_0x3f41eb[_0x51b3e7]['type']&&_0x151e24&&_0x151e24['object']===_0x3f41eb[_0x51b3e7]['item']&&(_0x1b6910[_0x38ef29]['shift'](),_0x512e04[_0x38ef29]=_0x151e24['change'])),_0x512e04[_0x38ef29]&&_0x29eb70&&(_0x512e04[_0x38ef29]['end']=_0x878d65,_0xe51645(_0x512e04[_0x38ef29]),_0x512e04[_0x38ef29]=null);}function _0xe51645({start:_0x1151b7,end:_0x59b325,tapeItem:_0x92ddc3,userId:_0x1405ac,type:_0x1bdf76}){const _0x5cfd95=_0x92ddc3['item'],_0x45c0c6=_0x31b151['schema']['isBlock'](_0x5cfd95)&&!_0x31b151['schema']['isLimit'](_0x5cfd95),_0x3dac03=_0x1151b7['nodeAfter']==_0x59b325['parent']&&_0x59b325['isAtStart'];if(_0x45c0c6&&_0x3dac03)return;const _0x62b5e9=_0x31b151['createRange'](_0x1151b7,_0x59b325),_0x591a1e=_0x48fbe0['get'](_0x1405ac),_0x2a515b=new r({'author':_0x591a1e,'type':'isAdded'==_0x1bdf76||'isAddSuggestion'==_0x1bdf76?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x1bdf76||'isRemoveSuggestion'==_0x1bdf76},'createdAt':new Date(),'rootName':_0x16f3c0});_0x4c612b['push'](_0x2a515b),_0x57b127['markers']['set']('revision:'+_0x2a515b['id'],_0x62b5e9);}function _0x3358c3(_0x2121e5,_0x279d35){const _0x2888c7=_0x2121e5['getAttributes'](),_0xcabe3a=_0x279d35['getAttributes']();for(const _0x726843 of _0x2888c7){if(_0x726843[0x1]!==_0x279d35['getAttribute'](_0x726843[0x0]))return!0x1;_0xcabe3a['next']();}return _0xcabe3a['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x12b35f=>{const _0x5e9fa4=_0x12b35f['markerName']['split'](':')[0x1],_0x1259b0=this['_getChangeFromId'](_0x5e9fa4);if(!_0x1259b0)return null;const _0x2f77cc='add'==_0x1259b0['type']?'insertion':'deletion',_0xe72b6e=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2f77cc];return _0x1259b0['data']['isSuggestion']&&_0xe72b6e['push']('ck-suggestion-marker-'+_0x2f77cc+'-new'),this['activeChange']==_0x1259b0&&_0xe72b6e['push']('ck-suggestion-marker--active'),{'classes':_0xe72b6e,'attributes':{'data-change-id':_0x5e9fa4}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1b41f1=>{_0x1b41f1['on']('element:pre',(_0x338aec,_0x2ddce7,_0x1d53d5)=>{const _0x3a30b2=_0x2ddce7['viewItem']['getChild'](0x0);if(!_0x3a30b2||!_0x3a30b2['is']('element','code'))return;if(!_0x1d53d5['consumable']['consume'](_0x3a30b2,{'attributes':['vid_start','vid_end']}))return;const _0x5c17e8=_0x2ddce7['modelRange']['start']['nodeAfter'];_0x1d53d5['writer']['setAttribute']('vid_start',_0x3a30b2['getAttribute']('vid_start'),_0x5c17e8),_0x1d53d5['writer']['setAttribute']('vid_end',_0x3a30b2['getAttribute']('vid_end'),_0x5c17e8);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x4bf62d=>{_0x4bf62d['on']('element',(_0x17e2c1,_0x552061,_0xa8fb8)=>{if(!_0xa8fb8['consumable']['consume'](_0x552061['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x552061['modelRange']['isCollapsed'])return;const _0x430b55=_0x552061['modelRange']['start']['nodeAfter'];_0x430b55['hasAttribute']('vid_start')||_0x430b55['hasAttribute']('vid')||(_0xa8fb8['writer']['setAttribute']('vid_start',_0x552061['viewItem']['getAttribute']('vid_start'),_0x430b55),_0xa8fb8['writer']['setAttribute']('vid_end',_0x552061['viewItem']['getAttribute']('vid_end'),_0x430b55));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x357e85=>_0x357e85['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x420843,[,_0x16f4c5])=>{['vid_start','vid_end','vid']['includes'](_0x16f4c5)&&(_0x420843['return']=!0x0,_0x420843['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x361c3a=>{_0x361c3a['on']('attribute:vid',(_0x1036f6,_0x5d340e,_0x19b322)=>{if('\x20'!=_0x5d340e['item']['data']||_0x5d340e['item']['parent']['maxOffset']>0x1)return;if(!_0x19b322['consumable']['consume'](_0x5d340e['item'],_0x1036f6['name']))return;const _0x3f2ea9=_0x19b322['writer'],_0xd1c32a=_0x19b322['mapper']['toViewRange'](_0x5d340e['range']);_0x3f2ea9['wrap'](_0xd1c32a,_0x3f2ea9['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4795ba){const _0x44f934=_0x4795ba['plugins']['get']('RevisionViewer');return(_0x4343d3,_0x2dc45d,_0x40d07f)=>{const _0x224dd2=_0x2dc45d['markerName']['split'](':')[0x1],_0x2691fc=_0x44f934['_getChangeFromId'](_0x224dd2);if(!_0x2691fc)return null;const _0x132b81='add'==_0x2691fc['type']?'split':'merge';if(!_0x40d07f['consumable']['test'](_0x2dc45d['markerRange'],_0x4343d3['name']))return;const _0x25309b=_0x2dc45d['markerRange']['getWalker'](),_0x225c18=_0x2dc45d['markerRange']['start'],_0x540f03=_0x4795ba['model']['schema'];let _0x350608=null,_0x55ceed=null,_0x25fddd=!0x1,_0xdea2f8=!0x1;for(const _0xd6b905 of _0x25309b){const _0x20ff3d=_0xd6b905['item'];_0x25fddd=_0x25fddd||_0x540f03['isContent'](_0x20ff3d);const _0x2b0889=_0x40d07f['mapper']['toViewElement'](_0x20ff3d);if(_0x2b0889&&_0x2b0889['getCustomProperty']('addHighlight'))return;'elementEnd'==_0xd6b905['type']&&(_0x540f03['isBlock'](_0x20ff3d)&&!_0x540f03['isLimit'](_0x20ff3d)&&(_0x20ff3d['nextSibling']||_0x225c18['isAtEnd']?_0x350608&&_0x350608['parent']==_0x20ff3d||(_0x350608=_0x20ff3d,_0x34b258(_0xd6b905['previousPosition']),_0xdea2f8=!0x0):_0x55ceed=_0x55ceed||_0xd6b905['previousPosition']));}function _0x34b258(_0x898ba5){const _0x3e5ccd=_0x40d07f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x132b81}),_0x311a74=_0x40d07f['mapper']['toViewPosition'](_0x898ba5);_0x2691fc['data']['isSuggestion']&&_0x40d07f['writer']['addClass']('ck-suggestion-marker-'+_0x132b81+'-new',_0x3e5ccd),_0x44f934['activeChange']==_0x2691fc&&_0x40d07f['writer']['addClass']('ck-suggestion-marker--active',_0x3e5ccd),_0x40d07f['writer']['insert'](_0x311a74,_0x3e5ccd),_0x40d07f['mapper']['bindElementToMarker'](_0x3e5ccd,_0x2dc45d['markerName']);}_0x25fddd||_0xdea2f8||!_0x55ceed||_0x34b258(_0x55ceed);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0xb8d1ed,_0x59b0e1,_0x229368)=>{const _0x1a6810=_0x229368['mapper']['markerNameToElements'](_0x59b0e1['markerName']);if(_0x1a6810){for(const _0x37b90e of _0x1a6810)(_0x37b90e['hasClass']('ck-suggestion-marker-split')||_0x37b90e['hasClass']('ck-suggestion-marker-merge'))&&(_0x229368['mapper']['unbindElementFromMarkerName'](_0x37b90e,_0x59b0e1['markerName']),_0x229368['writer']['remove'](_0x37b90e));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x133b07,_0x28f09b,_0x483d6d)=>{const _0x254c36=_0x28f09b['markerName']['split'](':')[0x1],_0x3d991d=this['_getChangeFromId'](_0x254c36);if(!_0x3d991d)return null;const _0x3a7fb6='add'==_0x3d991d['type']?'split':'merge';if(_0x483d6d['consumable']['test'](_0x28f09b['markerRange'],_0x133b07['name']))for(const _0x44ab98 of _0x28f09b['markerRange']['getItems']()){if(!_0x44ab98['is']('element','softBreak'))continue;const _0x242fe2=_0x483d6d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3a7fb6}),_0xcecc57=_0x483d6d['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x44ab98));_0x3d991d['data']['isSuggestion']&&_0x483d6d['writer']['addClass']('ck-suggestion-marker-'+_0x3a7fb6+'-new',_0x242fe2),this['activeChange']==_0x3d991d&&_0x483d6d['writer']['addClass']('ck-suggestion-marker--active',_0x242fe2),_0x483d6d['writer']['insert'](_0xcecc57,_0x242fe2),_0x483d6d['mapper']['bindElementToMarker'](_0x242fe2,_0x28f09b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x281563=>{for(const _0x106a85 of this['editor']['model']['document']['getRootNames']()){const _0x48cb03=this['editor']['model']['document']['getRoot'](_0x106a85),_0x5b2150=this['editor']['editing']['view']['document']['getRoot'](_0x106a85);if(_0x5b2150){const _0x5b524d=_0x48cb03['getAttribute']('revisionHistoryAttachChange');if(_0x281563['removeAttribute']('data-change-id',_0x5b2150),_0x281563['removeClass']('ck-revision-history-root-add',_0x5b2150),_0x281563['removeClass']('ck-revision-history-root-remove',_0x5b2150),_0x281563['removeClass']('ck-revision-history-root--active',_0x5b2150),_0x5b524d){const _0x5d596a=this['_getChangeFromId'](_0x5b524d);if(!_0x5d596a)return null;_0x281563['setAttribute']('data-change-id',_0x5b524d,_0x5b2150),_0x281563['addClass']('ck-revision-history-root-'+_0x5d596a['type'],_0x5b2150),this['activeChange']==_0x5d596a&&_0x281563['addClass']('ck-revision-history-root--active',_0x5b2150);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x3d14c3=>'revision-comment:'+_0x3d14c3,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0xb691f8=>'revision-suggestion:'+_0xb691f8,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0xcb8a37=>({'name':'suggestion:'+_0xcb8a37,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x4c1656=>{const _0xf21afb=_0x4c1656['markerName']['split'](':')[0x1];return'insertion'!=_0xf21afb&&'deletion'!=_0xf21afb?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0xf21afb]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x196fc4,_0x1ba7c3,_0x34df68)=>{const _0x33a358=_0x34df68['mapper']['markerNameToElements'](_0x1ba7c3['markerName']);if(_0x33a358){for(const _0x4c3e98 of _0x33a358)_0x4c3e98['is']('uiElement')&&(_0x34df68['mapper']['unbindElementFromMarkerName'](_0x4c3e98,_0x1ba7c3['markerName']),_0x34df68['writer']['remove'](_0x4c3e98));}},{'priority':'high'});}['_getChangeFromId'](_0x5de447){return this['_changeIdToChange']['get'](_0x5de447);}['_getViewForChange'](_0x409dd1){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x409dd1),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x3fc90e,_0x2cbb57,_0x11a936,_0x211e8e)=>{_0x211e8e&&this['_balloon']['remove'](_0x211e8e),_0x11a936&&(this['_balloon']['add']({'view':_0x11a936,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x564c3b=this['editor']['editing'],_0x41c425=this['_getChangeFromId'](_0x11a936['changeId']);let _0x4f000f;if(_0x41c425['data']['isOnRoot']){const _0x44b53b=_0x564c3b['view']['getDomRoot'](_0x41c425['rootName']);_0x4f000f=Array['from'](_0x44b53b['getClientRects']());}else{const _0x3ebf21=this['editor']['model']['markers']['get']('revision:'+_0x11a936['changeId']);_0x4f000f=Array['from'](_0x564c3b['mapper']['markerNameToElements'](_0x3ebf21['name']))['map'](_0x5b697a=>_0x564c3b['view']['domConverter']['mapViewToDom'](_0x5b697a))['map'](_0x24777f=>Array['from'](_0x24777f['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x4f000f[0x0];return _0x4f000f['find'](_0x5a8cea=>_0x5a8cea['top']-0x3<=this['_activeViewTarget']['y']&&_0x5a8cea['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x5a8cea['left']-0x3<=this['_activeViewTarget']['x']&&_0x5a8cea['right']+0x3>=this['_activeViewTarget']['x'])||_0x4f000f[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x50b56c,_0x64afc1,_0xab8ded,_0x31dbe5)=>{this['activeView']=_0xab8ded?this['_getViewForChange'](_0xab8ded):null,this['editor']['model']['change'](()=>{const _0x35e7ab=this['editor']['editing'];_0x31dbe5&&(_0x31dbe5['data']['isOnRoot']?_0x35e7ab['view']['change'](_0xaf33ea=>{_0xaf33ea['removeClass']('ck-revision-history-root--active',_0x35e7ab['view']['document']['getRoot'](_0x31dbe5['rootName']));}):_0x35e7ab['reconvertMarker']('revision:'+_0x31dbe5['id'])),_0xab8ded&&(_0xab8ded['data']['isOnRoot']?_0x35e7ab['view']['change'](_0x3aa107=>{_0x3aa107['addClass']('ck-revision-history-root--active',_0x35e7ab['view']['document']['getRoot'](_0xab8ded['rootName']));}):_0x35e7ab['reconvertMarker']('revision:'+_0xab8ded['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x23e8d8,_0x48d1df)=>{if(this['activeChange'])return;const _0x347f94=this['_findChangeIdFromDomTarget'](_0x48d1df['target']),_0x477d37=this['_changeIdToChange']['get'](_0x347f94);_0x477d37?(this['_activeViewTarget']={'x':_0x48d1df['domEvent']['x'],'y':_0x48d1df['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x477d37)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x2d5369,_0x560c0f)=>{const _0x2ffce3=this['_findChangeIdFromDomTarget'](_0x560c0f['target']),_0x2d641d=this['_changeIdToChange']['get'](_0x2ffce3);_0x2d641d?(this['_activeViewTarget']={'x':_0x560c0f['domEvent']['x'],'y':_0x560c0f['domEvent']['y']},_0x2d641d===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x2d641d):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x24b0f2){do{const _0x4bc33e=_0x24b0f2['getAttribute']('data-change-id');if(_0x4bc33e)return _0x4bc33e;_0x24b0f2=_0x24b0f2['parent'];}while(_0x24b0f2);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x148bf4=>{for(const _0xdb5557 of this['editor']['model']['markers'])_0x148bf4['removeMarker'](_0xdb5557);});}}function tt(_0x5d5657,_0x38953d){return(_0x177a91,_0x182c2,_0x242820)=>{if(!_0x242820['consumable']['test'](_0x182c2['markerRange'],_0x177a91['name']))return;const _0x373d4a=_0x182c2['markerRange']['getWalker'](),_0x42707d=_0x182c2['markerRange']['start'],_0x297825=_0x5d5657['model']['schema'];let _0x10fd41=null,_0x2be561=null,_0x15bf65=!0x1,_0x360a4c=!0x1;for(const _0x7d09b3 of _0x373d4a){const _0x111f66=_0x7d09b3['item'];_0x15bf65=_0x15bf65||_0x297825['isContent'](_0x111f66);const _0x5d8f02=_0x242820['mapper']['toViewElement'](_0x111f66);if(_0x5d8f02&&_0x5d8f02['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x7d09b3['type']&&(_0x297825['isBlock'](_0x111f66)&&!_0x297825['isLimit'](_0x111f66)&&(_0x111f66['nextSibling']||_0x42707d['isAtEnd']?_0x10fd41&&_0x10fd41['parent']==_0x111f66||(_0x10fd41=_0x111f66,_0x2f6818(_0x7d09b3['previousPosition']),_0x360a4c=!0x0):_0x2be561=_0x2be561||_0x7d09b3['previousPosition']));}function _0x2f6818(_0x1dba9b){const _0x5ec388=_0x242820['mapper']['toViewPosition'](_0x1dba9b),_0x2af9fd=_0x242820['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x38953d});_0x242820['writer']['insert'](_0x5ec388,_0x2af9fd),_0x242820['mapper']['bindElementToMarker'](_0x2af9fd,_0x182c2['markerName']);}_0x15bf65||_0x360a4c||!_0x2be561||_0x2f6818(_0x2be561);};}class yt extends _0x2de0b5{constructor(_0x5cfeed){super(_0x5cfeed);const _0x2d39ce=_0x5cfeed['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x2d39ce,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2d39ce,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x3435c7=this['editor'],_0x11e557=_0x3435c7['plugins']['get'](d),_0x362337=_0x11e557['isReady']?_0x11e557['diff']['newRevisionId']:null;_0x3435c7['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x362337);}['refresh'](){const {isReady:_0x5dffd1,isEnabled:_0x3f6f98,repository:_0x570d0e,diff:_0x2e7528}=this['editor']['plugins']['get'](d),_0x1894f5=_0x2e7528&&_0x570d0e['getLaterVisibleRevision'](_0x2e7528['newRevisionId']);this['isEnabled']=_0x5dffd1&&_0x3f6f98&&Boolean(_0x1894f5);}}class _t extends _0x2de0b5{constructor(_0x4cb144,{direction:_0x594efc}){super(_0x4cb144);const _0x5a9056=_0x4cb144['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x594efc?0x1:-0x1,this['listenTo'](_0x5a9056,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5a9056,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x5a9056,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x211de3=this['editor'],_0x222588=_0x211de3['plugins']['get'](d),{isNavigationMode:_0x4bbda0,currentChangeNumber:_0x5fcc7e}=_0x222588;let _0x35992d;if(_0x222588['activeChange']=_0x4bbda0?_0x222588['diff']['changes']['get'](_0x5fcc7e+this['_step']):_0x222588['diff']['changes']['first'],_0x222588['activeChange']['data']['isOnRoot'])_0x35992d=_0x211de3['editing']['view']['getDomRoot'](_0x222588['activeChange']['rootName']);else{const _0x6e3b76=_0x211de3['model']['markers']['get']('revision:'+_0x222588['activeChange']['id']);_0x35992d=_0x3ee8f5(_0x211de3['editing'],_0x6e3b76);}_0x10a5e5({'target':_0x35992d,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x16899c,currentChangeNumber:_0x280a42,numberOfChanges:_0x19e5eb,isReady:_0x532272,isEnabled:_0x5352f2}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x5352f2&&_0x532272&&_0x19e5eb)&&(!_0x16899c||(0x1===this['_step']?_0x280a42<_0x19e5eb-0x1:_0x280a42>0x0));}}class di extends ts{constructor(_0x43b838){super(_0x43b838);const _0x11c66f=this['bindTemplate'],_0x9f3dba=new te(_0x43b838),_0x18a0f3=new te(_0x43b838);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',(_0x43025e,_0x151638)=>_0x43025e&&_0x151638>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x5a7e97,_0x36d0c4,_0x190b39,_0x50347f)=>{if(!_0x5a7e97)return R(_0x43b838,'Loading...');if(!_0x190b39)return R(_0x43b838,'No\x20changes');const _0x5ea77b=R(_0x43b838,'NUMBER_OF_CHANGES',_0x190b39);return _0x50347f?R(_0x43b838,'X_OF_Y_CHANGES',[_0x36d0c4+0x1,_0x190b39]):_0x5ea77b;}),_0x9f3dba['set']({'label':R(_0x43b838,'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'}),_0x18a0f3['set']({'label':R(_0x43b838,'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'}),_0x9f3dba['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x18a0f3['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x9f3dba['on']('execute',()=>this['fire']('execute','backward')),_0x18a0f3['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',_0x11c66f['if']('_isStatusLabelVisible','ck-hidden',_0x1e92e0=>!_0x1e92e0)]},'children':[{'text':_0x11c66f['to']('isNavigationMode',_0x25e457=>_0x25e457?R(_0x43b838,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x43b838,'Total')+':\x20')}]},{'text':_0x11c66f['to']('_statusText')}]},new _0x5e02ad(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x9f3dba,_0x18a0f3]}]});}}const le='ck-editor__editable__loading-overlay';class ge extends _0x127458{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x4ebac6=this['editor']['editing']['view'];_0x4ebac6['change'](_0x4a4124=>{for(const _0x8ecb85 of _0x4ebac6['document']['roots'])_0x4a4124['addClass'](le,_0x8ecb85);});}['hide'](){const _0x509399=this['editor']['editing']['view'];_0x509399['change'](_0x461a76=>{for(const _0x4253f9 of _0x509399['document']['roots'])_0x461a76['removeClass'](le,_0x4253f9);});}}class m extends _0x127458{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ge];}['init'](){const _0x2e6ffa=this['editor'],_0x1c0731=_0x2e6ffa['plugins']['get'](d),_0x1d6e5a=_0x2e6ffa['plugins']['get'](ge);_0x2e6ffa['ui']['componentFactory']['add']('exitToEditing',_0x5ab086=>{const _0x4b29f6=new te(_0x5ab086);return _0x4b29f6['set']({'label':R(_0x5ab086,'Back\x20to\x20editing'),'icon':_0x40bb4f['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x4b29f6,'execute',()=>{_0x2e6ffa['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x4b29f6;}),_0x2e6ffa['ui']['componentFactory']['add']('restoreRevision',_0x4421a1=>{const _0x341553=new te(_0x4421a1);return _0x341553['set']({'label':R(_0x4421a1,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x341553['bind']('isEnabled')['to'](_0x2e6ffa['commands']['get']('restoreRevision')),this['listenTo'](_0x341553,'execute',()=>_0x2e6ffa['execute']('restoreRevision')),_0x341553;}),_0x2e6ffa['ui']['componentFactory']['add']('changesNavigation',_0x240e67=>{const _0x91debe=new di(_0x240e67),_0x2b6aba=_0x2e6ffa['commands']['get']('showPreviousChange'),_0x143e84=_0x2e6ffa['commands']['get']('showNextChange');return _0x91debe['bind']('isBackwardNavigationEnabled')['to'](_0x2b6aba,'isEnabled'),_0x91debe['bind']('isForwardNavigationEnabled')['to'](_0x143e84,'isEnabled'),_0x91debe['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x1c0731),this['listenTo'](_0x91debe,'execute',(_0x3c0aec,_0x323606)=>{_0x2e6ffa['execute']('forward'===_0x323606?'showNextChange':'showPreviousChange');}),_0x91debe;}),_0x1d6e5a['show'](),_0x1c0731['on']('change:isReady',(_0x451df4,_0x5d24c1,_0x1e43ca)=>{_0x1e43ca?_0x1d6e5a['hide']():_0x1d6e5a['show']();});}}class pt extends _0x5dcf12{constructor(_0x16fc07,_0x1bded7){super(_0x16fc07,_0x1bded7),this['_resizeObserver']=null;const _0x1119cf=this['bindTemplate'];this['set']({'label':R(_0x16fc07,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x16fc07,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1119cf['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 _0x112035=this['fieldView']['element'];this['_tooltipString']=_0x112035['scrollWidth']>_0x112035['clientWidth']&&_0x112035['value']||'';}}class oi extends ts{constructor(_0x3db3e6,_0x277a32,_0x29c3f9){super(_0x3db3e6);const _0x5f41d1=new _0x3c6d9e();_0x5f41d1['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 _0x146e03=['ck','ck-revision-history-sidebar__revision-author'];_0x29c3f9&&_0x146e03['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4fc871=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x3db3e6,_0x29c3f9?'Revision\x20creator':'Revision\x20author')},'children':[_0x5f41d1,_0x277a32['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x146e03},'children':_0x4fc871});}}function ai(_0x4a993e,_0x35a16c){const _0x1a0091=_0x4a993e['bindTemplate'],_0x375cd9=_0x4a993e['locale'],_0x31257d=_0x30ac16(_0x375cd9);_0x31257d['panelPosition']='sw';const _0x160816=function(_0x1744b4,_0x8838d3){const _0xaccf71=function(_0x33b123,_0x26e0ae){const _0x346edf=_0x33b123['locale'],_0x547f94={'Compare\x20against\x20selected':R(_0x346edf,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x346edf,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x346edf,'Restore\x20this\x20revision')};return _0x26e0ae['map'](_0x4dd26e=>{const _0x347fb3=_0x547f94[_0x4dd26e['name']];return _0x347fb3&&_0x347fb3!==_0x4dd26e['name']&&(_0x4dd26e['name']=_0x347fb3),_0x4dd26e;});}(_0x1744b4,_0x8838d3),_0x1f3f7c=new _0xe11a17();for(const _0x306d6f of _0xaccf71){const _0x1201a4={'type':'button','model':new _0x5e7a7d({'label':_0x306d6f['name'],'class':_0x306d6f['class'],'withText':!0x0,'role':'menuitem','_action':_0x306d6f['action']})};_0x1201a4['model']['bind']('isEnabled')['to'](_0x1744b4,'isActionsDropdownOpen',_0x219b81=>'function'!=typeof _0x306d6f['isEnabled']||(!_0x219b81||_0x306d6f['isEnabled'](_0x1744b4))),_0x1f3f7c['add'](_0x1201a4);}return _0x1f3f7c;}(_0x4a993e,_0x35a16c);return _0x4a993e['bind']('isActionsDropdownOpen')['to'](_0x31257d,'isOpen'),_0x31257d['buttonView']['set']({'label':R(_0x375cd9,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x40bb4f['threeVerticalDots']}),_0x31257d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1a0091['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x1a0091['to'](_0x215752=>_0x215752['stopPropagation']())}}),_0x31257d['on']('execute',_0x364172=>{_0x4a993e['isReady']&&'function'==typeof _0x364172['source']['_action']&&_0x364172['source']['_action'](_0x4a993e);}),to(_0x31257d,_0x160816,{'role':'menu'}),_0x31257d['listenTo'](_0x4a993e,'change:isActionsDropdownOpen',(_0x17b113,_0x574724,_0x106769)=>{if(_0x106769)for(const _0x164875 of _0x31257d['listView']['items']){const _0x1ae2b2=_0x164875['children']['first'],_0x26a585=_0x35a16c['find'](_0xdaab5b=>_0xdaab5b['action']===_0x1ae2b2['_action'])['isVisible'];_0x164875['isVisible']=void 0x0===_0x26a585||_0x26a585(_0x4a993e);}}),_0x31257d;}class si extends/* #__PURE__ -- @preserve */
26
+ _0x368122(ts){constructor(_0x363247,_0x3794ed,_0x54f026,_0x585904){super(_0x363247);const _0x3d0284=this['bindTemplate'],_0x5bf74c=function(_0x17cb66,_0xf56031){const _0x1df185=Array['from'](_0xf56031['authors'])['filter'](_0x30c3f6=>_0x30c3f6!=_0xf56031['creator']);return _0xf56031['creator']&&_0x1df185['unshift'](_0xf56031['creator']),_0x1df185['map'](_0x3f96e4=>new oi(_0x17cb66,_0x3f96e4,_0x3f96e4==_0xf56031['creator']));}(_0x363247,_0x3794ed);this['id']=_0x3794ed['id'],this['_revision']=_0x3794ed,this['_requireRevisionName']=_0x585904,this['bind']('name','createdAt')['to'](_0x3794ed),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x5c80d7=>{return _0x548122=_0x363247['uiLanguage'],(_0x148c0c=_0x5c80d7)['toLocaleDateString'](_0x548122,{'month':'long','day':'numeric'})+',\x20'+_0x148c0c['toLocaleTimeString'](_0x548122,{'hour':'numeric','minute':'numeric'});var _0x548122,_0x148c0c;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x363247,_0x4ecf22),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x59afca=>_0x59afca||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x77d73d,_0x208542)=>_0x77d73d&&_0x208542),this['revisionActionsView']=_0x54f026&&_0x54f026['length']?ai(this,_0x54f026):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x3d0284['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x3d0284['if']('isEnabled','ck-disabled',_0x49f0e4=>!_0x49f0e4),_0x3d0284['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x3d0284['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x3d0284['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':_0x3d0284['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':_0x5bf74c}]},this['revisionActionsView']],'on':{'click':_0x3d0284['to'](_0x3b8fa6=>{_0x3b8fa6['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x401e35=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x401e35,'change',()=>{this['_requireRevisionName']&&!_0x401e35['value']||this['fire']('setName',{'id':this['id'],'name':_0x401e35['value']}),_0x401e35['value']||(_0x401e35['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function ti(_0x236967,_0x452580){const _0x193092=_0x70df5b['fromJSDate'](_0x236967)['setLocale'](_0x452580),_0x11afe4=_0x70df5b['local'](),_0x21ae43=_0x11afe4['minus']({'days':0x1})['startOf']('day');let _0x241189,_0x192f19;return _0x193092['hasSame'](_0x11afe4,'day')?(_0x241189=_0x193092['startOf']('day')['toJSDate'](),_0x192f19=_0x193092['toRelativeCalendar']()):_0x193092['hasSame'](_0x21ae43,'day')?(_0x241189=_0x21ae43['toJSDate'](),_0x192f19=_0x193092['toRelativeCalendar']()):_0x193092['hasSame'](_0x11afe4,'week')?(_0x241189=_0x193092['startOf']('week')['toJSDate'](),_0x192f19=_0x193092['weekdayLong']||''):_0x193092['hasSame'](_0x11afe4,'year')?(_0x241189=_0x193092['startOf']('month')['toJSDate'](),_0x192f19=_0x193092['monthLong']||''):(_0x241189=_0x193092['startOf']('year')['toJSDate'](),_0x192f19=String(_0x193092['year'])),{'startDate':_0x241189,'localizedPeriodName':_0x192f19};}class ei extends ts{constructor(_0x1dea16,_0x266741,_0x4b7cde,_0x567606){super(_0x1dea16);const _0x372ac2=ti(_0x266741,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x266741,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x4b7cde,this['_requireRevisionName']=_0x567606,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':_0x372ac2}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x181eec){const _0x4eed47=new si(this['locale'],_0x181eec,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x4eed47);}['removeRevision'](_0x4abc9c){const _0x5b0832=this['revisionViews']['find'](_0x36b88d=>_0x36b88d['id']===_0x4abc9c['id']);this['revisionViews']['remove'](_0x5b0832);}}class cs extends ts{constructor(_0xeedd61){super(_0xeedd61);const _0x4f87fd=new _0x3c6d9e();_0x4f87fd['content']=_0x40bb4f['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4f87fd,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0xeedd61,'Revision\x20history')]}]});}}class ii extends ts{constructor(_0x4574dd,_0x2ea525,_0x37c0e5,_0x131346){super(_0x4574dd);const _0x33ac68=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x2ea525,this['_revisionActions']=_0x37c0e5,this['_requireRevisionName']=_0x131346,this['on']('select',(_0xaa8240,_0x7af90b)=>{this['fire']('revisionSelected',_0x7af90b);}),this['on']('setName',(_0x215492,_0x3fe581)=>{this['fire']('revisionSetName',_0x3fe581);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new cs(_0x4574dd),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x33ac68['if']('isEnabled','ck-disabled',_0x26d582=>!_0x26d582)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x30385f of this['_revisions'])this['_addRevision'](_0x30385f);this['_revisions']['on']('add',(_0x30cd30,_0x16d010)=>{this['_addRevision'](_0x16d010);}),this['_revisions']['on']('remove',(_0x1777c5,_0x2deb89)=>{this['_removeRevision'](_0x2deb89);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x1864b6=>_0x1864b6['revisionViews']['map'](_0x43bb58=>_0x43bb58))['flat']();}['selectRevision'](_0x3091ca){for(const _0x3e3e6f of this['revisionViews'])_0x3091ca&&_0x3091ca['id']===_0x3e3e6f['id']?_0x3e3e6f['select']():_0x3e3e6f['deselect']();}['highlightRevisions'](_0x2e579e){for(const _0x374fab of this['revisionViews'])_0x2e579e['some'](({id:_0x493dd7})=>_0x493dd7===_0x374fab['id'])?_0x374fab['highlight']():_0x374fab['unhighlight']();}['_addRevision'](_0x4e07ac){const _0x42ca8b=ti(_0x4e07ac['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x392fd8=this['timePeriodViews']['get'](0x0);_0x392fd8&&_0x392fd8['startDate']['getTime']()===_0x42ca8b['getTime']()||(_0x392fd8=new ei(this['locale'],_0x42ca8b,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x392fd8)),_0x392fd8['addRevision'](_0x4e07ac);}['_removeRevision'](_0x4ccf56){const _0x235f1d=ti(_0x4ccf56['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x235f1d)['removeRevision'](_0x4ccf56);}['_getTimePeriodViewByStartDate'](_0x503c51){return this['timePeriodViews']['find'](_0x5479a9=>_0x5479a9['startDate']['getTime']()===_0x503c51['getTime']());}}class g extends _0x127458{static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x34881d){super(_0x34881d),this['_revisionViewer']=_0x34881d['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x473852=this['_revisionsRepository']['_revisions'],_0x3b6d07=this['_createRevisionActions'](),_0x38711e=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ii(this['editor']['locale'],_0x473852,_0x3b6d07,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',(_0x48d858,_0x47d0c1)=>{_0x47d0c1['revisionViews']['on']('add',(_0x5ef06f,_0x30719b)=>{_0x30719b['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)),_0x38711e['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x160d48=this['_revisionsRepository']['getRevision'](0x0);if(_0x160d48){const _0x338b1d=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x160d48['id']);this['_revisionViewer']['compare'](_0x160d48,_0x338b1d);}}['_handleRevisionSelected'](_0x1c238c,_0x5397d4){const _0x47d7d7=this['_revisionsRepository']['getRevision'](_0x5397d4['id']),_0x33b46f=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x47d7d7['id']);this['_revisionViewer']['compare'](_0x47d7d7,_0x33b46f);}['_handleRevisionSetName'](_0x22df7e,_0x6f45ab){this['_revisionsRepository']['getRevision'](_0x6f45ab['id'])['setName'](_0x6f45ab['name']);}['_handleDiffChange'](_0x80c855,_0x966e82,_0x1671ed){const _0x4ce130=this['_revisionsRepository']['getRevisionsInDiff'](_0x1671ed);_0x4ce130['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x4ce130),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x4ce130[0x0]));}['_createRevisionActions'](){const _0x4f5402=this['editor'],_0x103fc3=g['availableRevisionActions'],_0x11cb44=_0x4f5402['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x11cb44['length'])return _0x11cb44['map'](_0x451e2e=>{const _0x43a3d7='string'==typeof _0x451e2e?Object['assign']({},_0x103fc3[_0x451e2e]):_0x451e2e;return _0x43a3d7['action']=_0x43a3d7['action']['bind'](this,_0x4f5402),_0x43a3d7['isVisible']&&(_0x43a3d7['isVisible']=_0x43a3d7['isVisible']['bind'](this,_0x4f5402)),_0x43a3d7;});}}g['defaultRevisionActions']=['compareAgainstSelected','restoreRevision','nameRevision'],g['availableRevisionActions']={'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x162000},_0x1da52d)=>{const _0x42f8f4=_0x162000['get'](d),_0x4d4234=_0x42f8f4['repository'];let _0x504f69=_0x42f8f4['diff']['newRevisionId'],_0x1d0de3=_0x1da52d['id'];_0x4d4234['getIndex'](_0x504f69)>_0x4d4234['getIndex'](_0x1d0de3)&&([_0x504f69,_0x1d0de3]=[_0x1d0de3,_0x504f69]),_0x42f8f4['compare'](_0x504f69,_0x1d0de3);},'isVisible':({plugins:_0x489b6e},_0x422827)=>{const _0x564a73=_0x489b6e['get'](d);return!(_0x564a73['repository']['getRevisionsInDiff'](_0x564a73['diff'])['length']>0x2||_0x422827['isSelected']);}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x348ea4,{id:_0x242216})=>{_0x348ea4['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x242216);},'isVisible':({plugins:_0x29b976},_0x3f773f)=>!!_0x29b976['get'](d)['repository']['getLaterVisibleRevision'](_0x3f773f['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x5ee5cd},{id:_0x20f4bf,revisionNameView:_0x17e61a})=>{const _0x5a4e9d=_0x5ee5cd['get'](d),_0x282140=_0x5a4e9d['repository']['getEarlierVisibleRevision'](_0x20f4bf);_0x5a4e9d['compare'](_0x20f4bf,_0x282140),_0x17e61a['focus'](),_0x17e61a['fieldView']['select']();}}};class et extends ot{get['view'](){return this['_view'];}constructor(_0x1b6ac5,_0x430837){super(_0x1b6ac5),this['_view']=_0x430837,this['_toolbarConfig']=ht(_0x1b6ac5['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x1c696b){const _0x4fc2f7=this['editor'],_0x31f9e=this['view'],_0x3de831=_0x4fc2f7['editing']['view'],_0x12567e=_0x31f9e['editable'],_0x3d0be5=_0x3de831['document']['getRoot']();_0x12567e['name']=_0x3d0be5['rootName'],_0x31f9e['render']();const _0x216408=_0x12567e['element'];this['setEditableElement'](_0x12567e['name'],_0x216408),_0x31f9e['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x3de831['attachDomRoot'](_0x216408),this['_elementReplacer']['replace'](_0x1c696b,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x992df2=this['view'],_0xf8e3a8=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0xf8e3a8['detachDomRoot'](_0x992df2['editable']['name']),_0x992df2['destroy']();}['_initToolbar'](){const _0x4a66ce=this['view'];_0x4a66ce['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x4a66ce['stickyPanel']['limiterElement']=_0x4a66ce['element'],_0x4a66ce['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x340aa6})=>_0x340aa6),_0x4a66ce['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x4a66ce['toolbar']);}}class st extends dt{get['editable'](){return this['_editable'];}constructor(_0x595c11,_0x5dc1f4,_0x3f37cf={}){super(_0x595c11),this['stickyPanel']=new lt(_0x595c11),this['toolbar']=new nt(_0x595c11,{'shouldGroupWhenFull':_0x3f37cf['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x595c11,_0x5dc1f4);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
27
+ rt(it){get['ui'](){return this['_ui'];}constructor(_0x298508,_0x5089ca){super(_0x5089ca),this['sourceElement']=_0x298508,this['model']['document']['createRoot']();const _0x50e9cd=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x50e9cd);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x257ed5,_0x4ca1ef){const _0x222193=new this(_0x257ed5,_0x4ca1ef);return await _0x222193['initPlugins'](),await _0x222193['ui']['init'](_0x257ed5),await _0x222193['data']['init'](_0x222193['config']['get']('initialData')||''),_0x222193['fire']('ready'),_0x222193;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x127458{static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x669f70){function _0x497203(_0x34e9ed){return _0x34e9ed['map'](_0x5a88bc=>String['fromCharCode'](_0x5a88bc))['join']('');}super(_0x669f70),this['result']='end',_0x669f70[_0x497203([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x497203([0x76,0x69,0x65,0x77])][_0x497203([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x497203([0x61,0x75,0x74,0x6f]),_0x669f70[_0x497203([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x497203([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x497203([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x497203([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x497203([0x6f,0x6b])});}}class H extends _0x127458{static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x6d0688){if(super(_0x6d0688),!this['editor']['config']['get']('revisionHistory'))throw new _0xa44216('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x5d389d=>this['_showRevisionViewer']({..._0x5d389d,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x1c758c=>this['_closeRevisionViewer'](_0x1c758c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x102d70=>this['_restoreRevision'](_0x102d70)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x4fadd9){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x4fadd9;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x181731){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x181731);}['getRevision'](_0x392489){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x392489);}['getRevisions'](_0x5b2d0d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x5b2d0d||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x1ff67a=this['editor'],_0xcb77b=_0xf7c6a0(_0x1ff67a,p),_0x22eac5=_0x1ff67a['plugins']['get']('RevisionTracker'),_0x2cdb80=_0x1ff67a['plugins']['get']('Users')['users'];return _0xcb77b['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0xcb77b['lazyRoots'],(_0xcb77b['plugins']['push'](k,d,m,class extends _0x127458{static get['requires'](){return[d,'Users'];}['init'](){const _0x442a02=this['editor']['plugins']['get']('Users');for(const _0x783304 of _0x2cdb80)_0x783304['isAnonymous']||_0x442a02['getUser'](_0x783304['id'])||_0x442a02['addUser'](_0x783304);const _0xb1072d=_0x22eac5['repository']['getRevisions']();let _0x4013e3=null;const _0x5a64a8=this['editor']['plugins']['get']('RevisionViewer');_0x5a64a8['adapter']=_0x22eac5['adapter'],_0x5a64a8['bind']('isEnabled')['to'](_0x22eac5),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x1ff67a,'isReadOnly',_0x13f9a2=>!_0x13f9a2);for(const _0x27b725 of _0xb1072d){const _0x11ba99=null===_0x27b725['creator'];if(_0x11ba99&&_0x27b725['toVersion']===_0x27b725['fromVersion'])continue;const _0x397890=_0x27b725['toJSON']();_0x5a64a8['addRevisionData'](_0x397890,(_0x7c0482,_0x42c443,_0x3814a6)=>{if(_0x11ba99){if(_0x4013e3)_0x4013e3['_update'](_0x7c0482,_0x42c443);else{if(!_0x42c443){const _0x3f5991=_0x3814a6['toJSON']();_0x3f5991['id']=_0x2c98c9(),_0x22eac5['saveRevision'](_0x3f5991,_0x3814a6['toVersion'])['then'](_0x497c24=>{_0x4013e3=_0x497c24;});}}}else _0x27b725['_update'](_0x7c0482,_0x42c443);});}}},g),_0xcb77b);}['_enhanceShowRevisionViewerCallback'](){const _0xd66a82=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x20c963=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x8ad887=this['editor']['plugins']['get']('Autosave');await _0x8ad887['save']();}else await _0x20c963['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x2dd103=this['editor']['plugins']['get']('Dialog');_0x2dd103['isOpen']&&_0x2dd103['hide']();}const _0x3c55b4=this['_getRevisionViewerEditorConfig']();return _0xd66a82(_0x3c55b4)['then'](_0x6e74ee=>{return(this['_viewerEditor']=_0x6e74ee,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x6e74ee;})['catch'](_0x5f2acf=>(console['error'](_0x5f2acf),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x1d26b5=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'](),_0x1d26b5(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0xd19dcd=this['editor']['plugins']['get']('Annotations');_0xd19dcd['refreshVisibility'](),_0xd19dcd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x2b819f){const _0x3f05f0=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x1afa68=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x3fff95=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0x3fff95,_0x2b819f)['then'](_0x10a4af=>(_0x1afa68['style']['display']='block',_0x3f05f0['style']['display']='none',_0x10a4af));}['_closeRevisionViewer'](_0x2ee879){const _0x5f242d=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x5f242d['style']['display']='',_0x2ee879['destroy']();}async['_restoreRevision'](_0x4f175a){const _0x357534=this['editor'],_0x701adf=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x4527af=_0x357534['plugins']['get']('RevisionTracker'),_0x3db73e=_0x701adf['repository']['getRevision'](_0x4f175a);let _0x48b279,_0x350cc5,_0x3064fc;try{_0x48b279=await _0x701adf['getRevisionData'](_0x3db73e),_0x350cc5=await _0x701adf['getRevisionRootsAttributes'](_0x3db73e);}catch(_0x52a1d7){return void console['error'](_0x52a1d7);}_0x357534['model']['change'](_0x2ddf2c=>{for(const _0xf9ac4d of Array['from'](_0x357534['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x2ddf2c['removeMarker'](_0xf9ac4d);}),_0x701adf['isReady']=!0x1,_0x357534['model']['enqueueChange'](_0x40340c=>{_0x40340c['setSelection'](null),_0x40340c['removeSelectionAttribute'](_0x357534['model']['document']['selection']['getAttributeKeys']());const _0x1e52db=Object['keys'](_0x48b279);for(const _0x4c5d61 of _0x357534['model']['document']['roots'])'$graveyard'!=_0x4c5d61['rootName']&&_0x4c5d61['isAttached']()&&!_0x1e52db['includes'](_0x4c5d61['rootName'])&&_0x40340c['detachRoot'](_0x4c5d61);for(const _0x56cc70 of _0x1e52db){let _0x16e986=_0x357534['model']['document']['getRoot'](_0x56cc70);_0x16e986&&_0x16e986['isAttached']()||(_0x16e986=_0x40340c['addRoot'](_0x56cc70));const _0x2f6cf8=_0x350cc5[_0x56cc70],_0x29daef=Object['keys'](_0x2f6cf8),_0xd36bd1=_0x48b279[_0x56cc70];for(const _0x3f3cc3 of _0x16e986['getAttributeKeys']())_0x29daef['includes'](_0x3f3cc3)||_0x40340c['removeAttribute'](_0x3f3cc3,_0x16e986);for(const _0x5bc53f of _0x29daef)_0x40340c['setAttribute'](_0x5bc53f,_0x350cc5[_0x56cc70][_0x5bc53f],_0x16e986);_0x40340c['remove'](_0x40340c['createRangeIn'](_0x16e986)),_0x40340c['insert'](_0x357534['data']['parse'](_0xd36bd1,_0x16e986),_0x16e986,0x0);}});const _0x3185c6=R(_0x357534['locale'],'Restored');if(_0x3db73e['name'])_0x3064fc=-0x1==_0x3db73e['name']['indexOf'](_0x3185c6)?_0x3185c6+':\x20'+_0x3db73e['name']:_0x3db73e['name'];else _0x3064fc=_0x3185c6+':\x20'+(_0x3db73e['createdAt']['toLocaleDateString'](_0x357534['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x3db73e['createdAt']['toLocaleTimeString'](_0x357534['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x4527af['saveRevision']({'name':_0x3064fc}),_0x701adf['isReady']=!0x0,_0x357534['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ge as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};