@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231215.0 → 0.0.0-nightly-20231216.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 (58) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +7 -6
  3. package/src/augmentation.d.ts +1 -1
  4. package/src/changeitem.d.ts +3 -3
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.d.ts +3 -3
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.d.ts +3 -3
  9. package/src/editor/revisionviewereditorui.js +1 -1
  10. package/src/editor/revisionviewereditoruiview.d.ts +3 -3
  11. package/src/editor/revisionviewereditoruiview.js +1 -1
  12. package/src/index.d.ts +11 -11
  13. package/src/index.js +1 -1
  14. package/src/revision.d.ts +3 -3
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.d.ts +3 -3
  17. package/src/revisiondiff.js +1 -1
  18. package/src/revisionhistory.d.ts +6 -6
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionhistoryadapter.d.ts +1 -1
  21. package/src/revisionsrepository.d.ts +3 -3
  22. package/src/revisionsrepository.js +1 -1
  23. package/src/revisiontracker.d.ts +5 -5
  24. package/src/revisiontracker.js +1 -1
  25. package/src/revisionviewer.js +1 -1
  26. package/src/ui/revision/createrevisionactionsdropdown.d.ts +1 -1
  27. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  28. package/src/ui/revision/revisionauthorview.js +1 -1
  29. package/src/ui/revision/revisionnameview.js +1 -1
  30. package/src/ui/revision/revisionview.d.ts +6 -6
  31. package/src/ui/revision/revisionview.js +1 -1
  32. package/src/ui/revision/subrevisioncollapserview.d.ts +2 -2
  33. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  34. package/src/ui/revision/subrevisionview.d.ts +3 -3
  35. package/src/ui/revision/subrevisionview.js +1 -1
  36. package/src/ui/revision/utils.js +1 -1
  37. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -2
  38. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  39. package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
  40. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  41. package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
  42. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  43. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  44. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +5 -5
  45. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  46. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +6 -6
  47. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  48. package/src/ui/revisionssidebar/utils.js +1 -1
  49. package/src/ui/revisionviewer/changedetailsview.d.ts +3 -3
  50. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  51. package/src/ui/revisionviewer/changesnavigationview.d.ts +2 -2
  52. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  53. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  54. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  55. package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
  56. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  57. package/src/utils/common-translations.d.ts +1 -1
  58. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5347=['endIndex','revision-suggestion:','_setDistance','revision-comment:','restoreRevision','rootName','removeClass','hasAttribute','getCustomProperty','insert','span','forEach','domEvent','_getViewObj','_markInsertions','_markMarkers','revisionHistoryLabel','getItems','distance','revisionHistoryAttachChange','detachRoot','insertions','WidgetToolbarRepository','parent','shift','editing','RevisionViewer','maxOffset','consume','change:isEnabled','indexOf','isAddSuggestion','changes','_markSuggestions','item','processor','isIncorrect','writer','startsWith','next','forceDisabled','conversion','insertion','attributes','bindElementToMarker','markerName','bottom','level','checkAttribute','_getChangeFromId','ck-editor__editable__overlay','return','revision-suggestion','error','markerToHighlight','attributesBefore','ck-suggestion-marker-','getDomRoot','push','keys','repository','newRevisionId','markersStart','attributesAfter','findIndex','commands','getClientRects','nextSibling','createRangeIn','suggestion','removeMarker:revision','model','createPositionBefore','uiElement','toModel','activeView','getChild','code','_data','editor','userId','pairId','from','change','viewItem','for','isEqual','isRemoveSuggestion','execute','split','index','changeId','ck-revision-history-root--active','text','reconvertMarker','_markMismatchedRemovedTags','getRevisionData','compare','vid_start','object','enqueueChange','isBlock','unshift','name','createPositionFromPath','delete','hasClass','deletions','set','getAttribute','destroy','setAttribute','elementStart','isBefore','isRemoved','revision-start','_update','getWalker','map','resolve','change:numberOfChanges','consumable','nextPosition','removeMarker:revision-suggestion','addClass','ck-suggestion-marker-split','left','ck-suggestion-marker--active','comment','data','deletion','start','revision-viewer','type','slice','has','_findChangeIdFromDomTarget','vid_end','config','_joinTapes','_processTape','parse','isOnRoot','isContent','getRootNames','offsetSize','_getDiff','element:pre','unbindElementFromMarkerName','schema','domConverter','removeMarker','markers','length','diffData','removeAttribute','_threeWayMerge','_balloon','revision','isSuggestion','mapper','find','_makeModelFromViewString','filter','side','_changeView','isAfter','document','oldRevisionId','loadRevisionData','includes','abs','change:isReady','collaboration.channelId','revision:','addRevision','toViewPosition','_cleanUp','_initInteractions','upcast','_makeModelFromTape','data-change-id','merge','wrap','forward','_fixObsoleteTags','activeChange','markerRange','_removeUnsupportedChanges','diff','_makeTape','addMarker:revision','listenTo','remove','ck-revision-history-root-','default','_getRevisionsRange','addRevisionData','getRoot','high','isAtEnd','clear','refresh','startIndex','isAtStart','add','view','restoreRevisionCallback','markerToData','ck-revision-history-root-add','revisionHistory','createRange','modelRange','-new','_sortAndFilterDiffChanges','isCollapsed','_getViewForChange','mapViewToDom','affectsData','markersEnd','element','downcastDispatcher','_removeRevisionMarkers','revision-end','_setConversion','mousedown','updatePosition','isAttached','string','getIndex','change:activeChange','ck-suggestion-preview-marker','end','bind','children','highest','locale','isReady','addRoot','all','RevisionsRepository','low','useFillerType','done','ck-suggestion-marker-merge','elementEnd','isLimit','isInline','adapter','currentChangeNumber','_setChanges','get','ck-revision-history-root-remove','concat','isEnabled','_removeMissingPairs','addMarker:revision-suggestion:insertion','splice','editingDowncast','attachChange','_changeIdToChange','plugins','nodeAfter','createUIElement','addMarker:revision-suggestion:deletion','_activeViewTarget','change:activeView','marked','range','_appendChild','flat','then','data-revision-','authors','toViewElement','getAttributes','test','addHighlight','getRevision','_refreshStartEndIndex','ck-suggestion-preview-marker-','previousPosition','dataDowncast','sort','_cleanMarkers','ck-suggestion-marker','POSITIVE_INFINITY','softBreak','roots','top','isAdded','_step','pop','stop','showPreviousChange','vid','markerNameToElements'];(function(_0x1d1126,_0x5347d1){const _0x598925=function(_0x3d1dec){while(--_0x3d1dec){_0x1d1126['push'](_0x1d1126['shift']());}};_0x598925(++_0x5347d1);}(_0x5347,0xde));const _0x5989=function(_0x1d1126,_0x5347d1){_0x1d1126=_0x1d1126-0x0;let _0x598925=_0x5347[_0x1d1126];return _0x598925;};import{Plugin as _0x134e88,Command as _0x3d4b20}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5cf0d1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2a17ce}from'ckeditor5/src/ui';import{DocumentFragment as _0xc66f45,Element as _0xcf83e4,Text as _0x16f66b,ViewDocumentFragment as _0x28deba,ViewText as _0x1377c3,ViewElement as _0x4e72fa,ViewContainerElement as _0x3aa904,ViewAttributeElement as _0x4f1c19,ViewEmptyElement as _0x248db1,ViewRawElement as _0xc0127a,ViewUIElement as _0x24b365}from'ckeditor5/src/engine';import{Users as _0x41b2c7,getMarkerDomElement as _0x272b66}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b9da8 from'./ui/revisionviewer/changedetailsview';import _0x122e19 from'./revisionsrepository';import _0x389466 from'./changeitem';import{default as _0x3b0e06}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x21e9ac}from'lodash-es';const tt={'c':_0x3aa904,'a':_0x4f1c19,'e':_0x248db1,'r':_0xc0127a,'u':_0x24b365};export default class d extends _0x134e88{static get['pluginName'](){return _0x5989('0x65');}static get['requires'](){return[_0x41b2c7,_0x2a17ce,_0x122e19];}constructor(_0x39b02d){super(_0x39b02d),this[_0x5989('0x87')]=this[_0x5989('0x9a')][_0x5989('0x27')][_0x5989('0x1d')](_0x5989('0x12')),this[_0x5989('0xb7')](_0x5989('0x105'),null),this[_0x5989('0xb7')](_0x5989('0x96'),null),this[_0x5989('0x2b')]=null,this[_0x5989('0xb7')](_0x5989('0x108'),null),this[_0x5989('0xb7')](_0x5989('0xf'),!0x1),this[_0x5989('0xb7')]('isEnabled',!0x0),this['on']('change:isEnabled',(_0x1026a3,_0x4b03f5,_0x4e9fdb)=>{this['activeChange']=null,this[_0x5989('0x96')]=null,this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0x9e')](_0x11bf55=>{for(const _0x1e7e84 of this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')][_0x5989('0x42')])_0x4e9fdb?_0x11bf55[_0x5989('0x51')](_0x5989('0x7d'),_0x1e7e84):_0x11bf55[_0x5989('0xc7')]('ck-editor__editable__overlay',_0x1e7e84);});}),this['bind']('isNavigationMode')['to'](this,_0x5989('0x105'),_0x5568ba=>null!==_0x5568ba),this[_0x5989('0xb')](_0x5989('0x1b'))['to'](this,_0x5989('0xf'),this,_0x5989('0x108'),this,_0x5989('0x105'),(_0x5e5537,_0x1e892d,_0x3ac1ae)=>_0x5e5537&&_0x3ac1ae?_0x1e892d[_0x5989('0x6b')][_0x5989('0x7')](_0x3ac1ae):0x0),this[_0x5989('0xb')]('numberOfChanges')['to'](this,_0x5989('0xf'),this,_0x5989('0x108'),(_0x409a6a,_0x50f726)=>_0x409a6a?_0x50f726[_0x5989('0x6b')][_0x5989('0xe4')]:0x0),this[_0x5989('0xf0')]=null,this['_changeIdToChange']=new Map(),this[_0x5989('0x1a')]=null,this['_balloon']=this[_0x5989('0x9a')][_0x5989('0x27')][_0x5989('0x1d')](_0x2a17ce);}['init'](){const _0x5b25bc=this[_0x5989('0x9a')],_0x42b509=new ShowChangeCommand(_0x5b25bc,{'direction':'backward'}),_0x4aa10c=new ShowChangeCommand(_0x5b25bc,{'direction':_0x5989('0x103')});(_0x5b25bc[_0x5989('0x8c')][_0x5989('0x118')](_0x5989('0x48'),_0x42b509),_0x5b25bc['commands'][_0x5989('0x118')]('showNextChange',_0x4aa10c),_0x5b25bc[_0x5989('0x8c')][_0x5989('0x118')](_0x5989('0x4f'),new RestoreRevisionCommand(_0x5b25bc)),this['on'](_0x5989('0xc3'),()=>{_0x42b509[_0x5989('0x115')](),_0x4aa10c[_0x5989('0x115')]();}),this[_0x5989('0x2')](),this['_initInteractions'](),_0x5b25bc['enableReadOnlyMode'](_0x5989('0xcf')),_0x5b25bc[_0x5989('0x27')][_0x5989('0xd2')]('WidgetToolbarRepository'))&&_0x5b25bc['plugins'][_0x5989('0x1d')](_0x5989('0x61'))[_0x5989('0x73')](_0x5989('0xcf'));}async[_0x5989('0xab')](_0x5d565c){await this[_0x5989('0xf4')](_0x5d565c);const _0x2c407a={};for(const _0x4e6a56 in _0x5d565c[_0x5989('0xe5')]){if(_0x5d565c[_0x5989('0xe5')][_0x4e6a56][_0x5989('0x25')]&&!_0x5d565c[_0x5989('0xe5')][_0x4e6a56][_0x5989('0x25')][_0x5989('0x5')])continue;const _0x583b03=this[_0x5989('0x0')](JSON['parse'](_0x5d565c[_0x5989('0xe5')][_0x4e6a56]['insertions'])),_0x117a00=this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')],_0x1271b9=new _0x28deba(_0x117a00,_0x583b03[_0x5989('0xc1')](_0x3b5680=>this[_0x5989('0x58')](_0x3b5680)));this[_0x5989('0x9a')][_0x5989('0xcc')][_0x5989('0x6e')]['useFillerType'](_0x5989('0x2d')),_0x2c407a[_0x4e6a56]=this[_0x5989('0x9a')][_0x5989('0xcc')][_0x5989('0x6e')]['toData'](_0x1271b9),this[_0x5989('0x9a')]['data']['processor'][_0x5989('0x14')](_0x5989('0x10e'));}return _0x2c407a;}async['getRevisionRootsAttributes'](_0x407ee8){await this['loadRevisionData'](_0x407ee8);const _0x4c307c={};for(const _0x18fbf9 in _0x407ee8[_0x5989('0xe5')])_0x407ee8[_0x5989('0xe5')][_0x18fbf9][_0x5989('0x25')]&&!_0x407ee8[_0x5989('0xe5')][_0x18fbf9]['attachChange']['isAttached']||(_0x4c307c[_0x18fbf9]=_0x407ee8[_0x5989('0xe5')][_0x18fbf9][_0x5989('0x8a')]||{});return _0x4c307c;}['_removeRevisionMarkers'](_0x3e4a5f){return(_0x3e4a5f=_0x3e4a5f[_0x5989('0xee')](_0x19d725=>!_0x19d725[_0x5989('0xb2')]||_0x5989('0xbe')!==_0x19d725[_0x5989('0xb2')]&&_0x5989('0x1')!==_0x19d725['name']))[_0x5989('0x56')](_0x4f3cf4=>{'string'!=typeof _0x4f3cf4&&(_0x4f3cf4['children']=this[_0x5989('0x0')](_0x4f3cf4[_0x5989('0xc')]),_0x4f3cf4[_0x5989('0x76')]=_0x4f3cf4[_0x5989('0x76')][_0x5989('0xee')](_0x5c3722=>!_0x5c3722[0x0][_0x5989('0x71')](_0x5989('0x32'))));}),_0x3e4a5f;}async[_0x5989('0xac')](_0x1c3d2d,_0x460be9,_0x39b694=!0x1){if(!this[_0x5989('0x20')])return;const _0x1063ed=this['diff'],_0x447c21=this[_0x5989('0x87')],_0x355566=_0x5989('0x6')==typeof _0x1c3d2d?_0x447c21[_0x5989('0x38')](_0x1c3d2d):_0x1c3d2d,_0x366247=_0x5989('0x6')==typeof _0x460be9?_0x447c21[_0x5989('0x38')](_0x460be9):_0x460be9,_0x294de1=_0x355566['id'],_0x4d3b4f=_0x366247?_0x366247['id']:null;if(!_0x39b694&&this[_0x5989('0x108')]&&this[_0x5989('0x108')][_0x5989('0x88')]===_0x294de1&&this[_0x5989('0x108')][_0x5989('0xf3')]===_0x4d3b4f)return Promise[_0x5989('0xc2')]();this[_0x5989('0xf')]=!0x1,this[_0x5989('0x96')]=null,this[_0x5989('0x105')]=null,this[_0x5989('0x108')]=new _0x3b0e06(_0x294de1,_0x4d3b4f);const _0x5ef247=this[_0x5989('0x10f')](_0x355566,_0x366247,!0x0)[_0x5989('0xc1')](_0x335e52=>this['loadRevisionData'](_0x335e52));return _0x5ef247[_0x5989('0x85')](new Promise(_0x3a0cd2=>{setTimeout(_0x3a0cd2,0x14);})),Promise[_0x5989('0x11')](_0x5ef247)[_0x5989('0x31')](()=>{if(!this['isEnabled'])return;this[_0x5989('0xfc')]();const _0x2aabc8=this[_0x5989('0xdd')](_0x294de1,_0x4d3b4f);for(const _0x4103b4 of _0x2aabc8[_0x5989('0x6b')])this[_0x5989('0x26')][_0x5989('0xb7')](_0x4103b4['id'],_0x4103b4);this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xaf')]({'isUndoable':!0x1},_0x439e32=>{for(const _0x178d3f of this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')][_0x5989('0xdb')]())_0x439e32[_0x5989('0x5f')](_0x178d3f);for(const _0x199081 of Object[_0x5989('0x86')](_0x2aabc8[_0x5989('0x92')])){const _0x3642d7=_0x439e32[_0x5989('0x10')](_0x199081);for(const _0x518dc2 of Object['keys'](_0x2aabc8['attributes'][_0x199081]))_0x439e32[_0x5989('0xba')](_0x518dc2,_0x2aabc8[_0x5989('0x76')][_0x199081][_0x518dc2],_0x3642d7);_0x439e32[_0x5989('0x54')](_0x2aabc8[_0x5989('0x92')][_0x199081],_0x3642d7,0x0);}}),this['diff'][_0x5989('0x1c')](this[_0x5989('0x121')](_0x2aabc8[_0x5989('0x6b')])),this[_0x5989('0xf')]=!0x0;})['catch'](_0x31a36c=>{console[_0x5989('0x80')](_0x31a36c),this['_cleanUp'](),_0x1063ed&&(this[_0x5989('0x108')]=_0x1063ed),this[_0x5989('0xf')]=!0x0;});}[_0x5989('0x110')](_0x2ad305,_0xcc77c){const _0x6246c9=this[_0x5989('0x87')]['createRevision'](_0x2ad305);return _0x6246c9['on'](_0x5989('0xbf'),(_0xdc104,_0x38248b,_0x573383)=>_0xcc77c(_0x38248b,_0x573383,_0x6246c9)),this['repository'][_0x5989('0xfa')](_0x6246c9),_0x6246c9;}[_0x5989('0xf4')](_0x10f505){if(!_0x10f505||_0x10f505[_0x5989('0xe5')])return Promise[_0x5989('0xc2')]();{const _0x5836eb=this['editor'][_0x5989('0xd5')][_0x5989('0x1d')](_0x5989('0xf8'));return this[_0x5989('0x1a')]['getRevision']({'channelId':_0x5836eb,'revisionId':_0x10f505['id']})[_0x5989('0x31')](_0x249e62=>{_0x10f505[_0x5989('0xbf')]({'diffData':_0x249e62['diffData']},!0x0);});}}[_0x5989('0xfc')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x5989('0xf0')]&&this[_0x5989('0xf0')][_0x5989('0xb9')](),this['_changeView']=null,this[_0x5989('0x26')][_0x5989('0x114')](),this['editor'][_0x5989('0x92')][_0x5989('0xaf')]({'isUndoable':!0x1},_0x10fa12=>{for(const _0x23102f of this[_0x5989('0x9a')][_0x5989('0x92')]['document'][_0x5989('0xdb')]())_0x10fa12[_0x5989('0x5f')](_0x23102f);});}['_sortAndFilterDiffChanges'](_0x4b25aa){const _0x2ac936=[],_0x353fe1=new Map();for(const _0x106539 of this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')][_0x5989('0xdb')]()){const _0x48e241=this['editor'][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0x84')](_0x106539);if(!_0x48e241)continue;const _0x157add=_0x48e241[_0x5989('0x8d')]()['item'](0x0);_0x157add&&(_0x2ac936[_0x5989('0x85')](_0x106539),_0x353fe1[_0x5989('0xb7')](_0x106539,_0x157add));}return _0x2ac936[_0x5989('0x3d')]((_0x211a3b,_0x20687d)=>{const _0x365000=_0x353fe1['get'](_0x211a3b),_0x2c7181=_0x353fe1[_0x5989('0x1d')](_0x20687d);return _0x365000['y']-_0x2c7181['y']||_0x365000['x']-_0x2c7181['x'];}),(_0x4b25aa=_0x4b25aa['filter'](_0x1a90cb=>_0x2ac936[_0x5989('0xf5')](_0x1a90cb[_0x5989('0x50')])))[_0x5989('0x3d')]((_0x1dbbcb,_0x3fd233)=>_0x2ac936[_0x5989('0x69')](_0x1dbbcb['rootName'])-_0x2ac936[_0x5989('0x69')](_0x3fd233[_0x5989('0x50')])),_0x4b25aa;}[_0x5989('0x109')](_0x417d1b){const _0x513146=Array[_0x5989('0x9d')](_0x417d1b[_0x5989('0xe3')])['filter'](([_0x44da3d,_0x2587fa])=>_0x44da3d[_0x5989('0x71')](_0x5989('0xf9'))&&!_0x2587fa[_0x5989('0x122')]),_0x1e4065=Array[_0x5989('0x9d')](this['editor'][_0x5989('0x92')][_0x5989('0x8f')](_0x417d1b)[_0x5989('0xc0')]({'singleCharacters':!0x0}));if(0x0!=_0x513146['length'])for(const _0x5af7c8 of _0x1e4065){const [_0x3bb7fe,_0x11278d]=_0x513146[0x0],[,_0x444f66,_0x4d2102]=_0x3bb7fe['split'](':');if(_0x11278d[_0x5989('0xa')]['isEqual'](_0x5af7c8[_0x5989('0xc5')])&&_0x513146[_0x5989('0x63')](),(_0x5af7c8[_0x5989('0x3b')]['isEqual'](_0x11278d[_0x5989('0xce')])||_0x5af7c8[_0x5989('0x3b')][_0x5989('0xf1')](_0x11278d[_0x5989('0xce')]))&&(_0x5989('0x75')==_0x444f66?_0x5af7c8[_0x5989('0x44')]={'userId':_0x4d2102}:_0x5989('0xcd')==_0x444f66&&(_0x5af7c8[_0x5989('0xbd')]={'userId':_0x4d2102})),0x0==_0x513146['length'])break;}return _0x1e4065;}[_0x5989('0x39')](_0x90b126){const _0x493be4=new Map();for(let _0x596349=0x0;_0x596349<_0x90b126[_0x5989('0xe4')];_0x596349++)_0x5989('0xa8')===_0x90b126[_0x596349][_0x5989('0xd0')]?(_0x90b126[_0x596349][_0x5989('0x6d')][_0x5989('0x116')]=_0x596349,_0x90b126[_0x596349]['item'][_0x5989('0x4b')]=_0x596349):(_0x5989('0xbb')===_0x90b126[_0x596349][_0x5989('0xd0')]?_0x90b126[_0x596349][_0x5989('0x6d')][_0x5989('0x116')]=_0x596349:_0x5989('0x17')===_0x90b126[_0x596349][_0x5989('0xd0')]&&(_0x90b126[_0x596349][_0x5989('0x6d')][_0x5989('0x4b')]=_0x596349),_0x493be4[_0x5989('0xb7')](_0x90b126[_0x596349]['id'],_0x596349));for(const _0x51a5ea of _0x493be4['values']())_0x5989('0xbb')===_0x90b126[_0x51a5ea][_0x5989('0xd0')]?_0x90b126[_0x51a5ea]['item'][_0x5989('0x4b')]=_0x493be4['get'](_0x90b126[_0x51a5ea][_0x5989('0x9c')]):_0x5989('0x17')===_0x90b126[_0x51a5ea]['type']&&(_0x90b126[_0x51a5ea][_0x5989('0x6d')][_0x5989('0x116')]=_0x493be4[_0x5989('0x1d')](_0x90b126[_0x51a5ea][_0x5989('0x9c')]));}[_0x5989('0xd7')](_0x10a496){for(let _0x402610=0x0;_0x402610<_0x10a496['length'];_0x402610++){if(_0x5989('0xbb')===_0x10a496[_0x402610][_0x5989('0xd0')])_0x10a496[_0x402610]['item'][_0x5989('0x116')]=_0x402610;else{if(_0x5989('0x17')===_0x10a496[_0x402610][_0x5989('0xd0')]){_0x10a496[_0x402610][_0x5989('0x6d')][_0x5989('0x4b')]=_0x402610;const _0x3a97c7=_0x10a496[_0x402610][_0x5989('0x6d')][_0x5989('0x116')];_0x10a496[_0x3a97c7]['pairId']=_0x10a496[_0x402610]['id'],_0x10a496[_0x402610][_0x5989('0x9c')]=_0x10a496[_0x3a97c7]['id'];}else _0x10a496[_0x402610]['item'][_0x5989('0x116')]=_0x402610,_0x10a496[_0x402610][_0x5989('0x6d')][_0x5989('0x4b')]=_0x402610,_0x10a496[_0x402610][_0x5989('0x9c')]=null;}_0x10a496[_0x402610][_0x5989('0x89')]||(_0x10a496[_0x402610][_0x5989('0x89')]=[],_0x10a496[_0x402610][_0x5989('0x126')]=[]);}}[_0x5989('0x59')](_0x20fb36,_0x41689a){const _0x501d3a=_0x20fb36[_0x5989('0xee')](_0x2de3d6=>!_0x2de3d6[_0x5989('0x44')]);for(let _0x422dcc=0x0;_0x422dcc<_0x41689a[_0x5989('0xe4')];_0x422dcc++)_0x41689a[_0x422dcc]['isAdded']&&(_0x501d3a[_0x422dcc]['isAdded']=_0x41689a[_0x422dcc][_0x5989('0x44')]);}[_0x5989('0xed')](_0x3b5f19){const _0x510c33=JSON[_0x5989('0xd8')](_0x3b5f19),_0x278b7c=this[_0x5989('0x9a')][_0x5989('0x64')]['view'][_0x5989('0xf2')],_0x5c2616=new _0x28deba(_0x278b7c,_0x510c33[_0x5989('0xc1')](_0x3d1176=>this[_0x5989('0x58')](_0x3d1176)));return this['editor'][_0x5989('0xcc')][_0x5989('0x95')](_0x5c2616);}[_0x5989('0x58')](_0x4ba7dc){const _0x10f081=this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')];if(_0x5989('0x6')==typeof _0x4ba7dc)return new _0x1377c3(_0x10f081,_0x4ba7dc);{const _0x24a9c0=_0x4ba7dc['children'][_0x5989('0xc1')](_0x2890ba=>this['_getViewObj'](_0x2890ba));return new(tt[_0x4ba7dc[(_0x5989('0xd0'))]]||_0x4e72fa)(_0x10f081,_0x4ba7dc['name'],_0x4ba7dc['attributes'],_0x24a9c0);}}[_0x5989('0xdd')](_0x5b5e15,_0x3e236d=null){const _0x31db0d=this['repository'][_0x5989('0x38')](_0x5b5e15),_0x90ba75=_0x3e236d?this[_0x5989('0x87')]['getRevision'](_0x3e236d):null,_0x2881e1=this[_0x5989('0x10f')](_0x31db0d,_0x90ba75),_0x11d615=_0x2881e1[_0x2881e1[_0x5989('0xe4')]-0x1],_0x22803b=new Map(),_0x1eb004={'model':{},'attributes':{},'changes':[]},_0x452926=new Set(),_0x286bb8=new Map();for(let _0x1e9b4d=_0x2881e1[_0x5989('0xe4')]-0x1;_0x1e9b4d>=0x0;_0x1e9b4d--){const _0x272ffa=_0x2881e1[_0x1e9b4d];for(const _0x1fefea of Object[_0x5989('0x86')](_0x272ffa['diffData']))if(_0x272ffa[_0x5989('0xe5')][_0x1fefea][_0x5989('0x25')]){const _0x3f9b59=_0x272ffa[_0x5989('0xe5')][_0x1fefea][_0x5989('0x25')];_0x3f9b59['isAttached']?(_0x452926['add'](_0x1fefea),_0x286bb8[_0x5989('0xd2')](_0x1fefea)&&_0x286bb8['get'](_0x1fefea)['userId']==_0x3f9b59['userId']?_0x286bb8[_0x5989('0xb4')](_0x1fefea):_0x286bb8[_0x5989('0xb7')](_0x1fefea,_0x3f9b59)):_0x286bb8[_0x5989('0xd2')](_0x1fefea)?(_0x452926[_0x5989('0xb4')](_0x1fefea),_0x286bb8['delete'](_0x1fefea)):(_0x452926[_0x5989('0x118')](_0x1fefea),_0x286bb8[_0x5989('0xb7')](_0x1fefea,_0x3f9b59));}else _0x452926['add'](_0x1fefea);}for(const _0x18d647 of _0x452926){const _0x166645=_0x286bb8[_0x5989('0xd2')](_0x18d647)&&!_0x286bb8[_0x5989('0x1d')](_0x18d647)[_0x5989('0x5')];let _0x56d2cb=_0x166645?_0x2881e1[_0x5989('0xe4')]-0x1:0x0;const _0x441320=_0x166645?-0x1:0x1;for(;_0x2881e1[_0x56d2cb];){const _0x2a56ed=_0x2881e1[_0x56d2cb];if(_0x2a56ed['diffData'][_0x18d647]){const _0x3e5727=_0x166645?_0x2a56ed[_0x5989('0xe5')][_0x18d647][_0x5989('0x82')]:_0x2a56ed[_0x5989('0xe5')][_0x18d647]['attributesAfter'];_0x1eb004['attributes'][_0x18d647]=_0x3e5727?_0x21e9ac(_0x3e5727):{};break;}_0x56d2cb+=_0x441320;}}for(const _0x1cebfe of _0x2881e1){_0x1cebfe[_0x5989('0x92')]={};for(const _0x475d5b of _0x1cebfe[_0x5989('0x33')])_0x22803b[_0x5989('0xb7')](_0x475d5b['id'],_0x475d5b);for(const _0x4c5aaf of _0x452926){const _0x1d3b6e=_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf]?_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf]['insertions']:'[]',_0x210044=_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf]?_0x1cebfe[_0x5989('0xe5')][_0x4c5aaf][_0x5989('0xb6')]:'[]';_0x1cebfe[_0x5989('0x92')][_0x4c5aaf]={'insertions':this['_makeModelFromViewString'](_0x1d3b6e),'deletions':this[_0x5989('0xed')](_0x210044)};}}for(const _0x513745 of _0x452926){let _0x23959b=null,_0x522381=0x0;const _0x50c073=new Map(Array[_0x5989('0x9d')](_0x31db0d['model'][_0x513745][_0x5989('0x60')][_0x5989('0xe3')])[_0x5989('0xee')](([_0x484470])=>!_0x484470[_0x5989('0x71')](_0x5989('0xf9'))));let _0x230b13=0x0;for(const _0x1f15c8 of _0x2881e1){const _0x20b90e=this[_0x5989('0x109')](_0x1f15c8[_0x5989('0x92')][_0x513745][_0x5989('0x60')]);_0x1f15c8==_0x31db0d?(_0x23959b=_0x20b90e,_0x522381=_0x23959b['length'],_0x23959b[_0x5989('0x56')](_0x35fe1c=>{_0x35fe1c['id']=_0x230b13++;}),this[_0x5989('0xd7')](_0x23959b)):this[_0x5989('0x59')](_0x23959b,_0x20b90e);const _0x5d2f8d=_0x23959b[_0x5989('0xee')](_0x40f912=>!_0x40f912[_0x5989('0x44')])[_0x5989('0xc1')](_0xc3889c=>_0xc3889c['id']);let _0x328b68=0x0;const _0x25e2eb=this[_0x5989('0x109')](_0x1f15c8[_0x5989('0x92')][_0x513745][_0x5989('0xb6')]);_0x25e2eb[_0x5989('0x56')](_0x1e7073=>{_0x1e7073[_0x5989('0xbd')]?_0x1e7073['id']=_0x522381++:_0x1e7073['id']=_0x5d2f8d[_0x328b68++];}),this[_0x5989('0xd7')](_0x25e2eb),this[_0x5989('0x4d')](_0x23959b,_0x5989('0x44')),this['_setDistance'](_0x25e2eb,_0x5989('0xbd')),_0x1f15c8==_0x31db0d&&this[_0x5989('0x5a')](_0x23959b,_0x50c073),_0x23959b=this[_0x5989('0xd6')](_0x23959b,_0x25e2eb),this[_0x5989('0x39')](_0x23959b),this['_setDistance'](_0x23959b,'isRemoved');}_0x23959b=_0x23959b['filter'](_0x29a6e0=>!(_0x29a6e0['isAdded']&&_0x29a6e0[_0x5989('0xbd')]));const _0x59fe74=new Map(_0x11d615[_0x5989('0x92')][_0x513745][_0x5989('0xb6')]['markers']),_0x1e8915=new Set(_0x50c073[_0x5989('0x86')]());for(const _0xd5d325 of _0x59fe74[_0x5989('0x86')]())_0x1e8915[_0x5989('0xb4')](_0xd5d325);this['_markSuggestions'](_0x23959b,_0x1e8915),this[_0x5989('0x104')](_0x23959b),_0x23959b=this[_0x5989('0x21')](_0x23959b),_0x23959b=this[_0x5989('0xaa')](_0x23959b),_0x23959b=this[_0x5989('0x107')](_0x23959b);const {root:_0x56c41a,changes:_0x3f7222}=this[_0x5989('0xff')](_0x23959b,_0x22803b,_0x513745);_0x1eb004[_0x5989('0x92')][_0x513745]=_0x56c41a;const _0x3e37e4=_0x286bb8[_0x5989('0x1d')](_0x513745);if(_0x3e37e4){const _0x1c2725=_0x22803b[_0x5989('0x1d')](_0x3e37e4[_0x5989('0x9b')]),_0x46f33=new _0x389466({'author':_0x1c2725,'type':_0x3e37e4[_0x5989('0x5')]?_0x5989('0x118'):_0x5989('0x10c'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x513745});_0x3f7222[_0x5989('0xb1')](_0x46f33),_0x1eb004['attributes'][_0x513745][_0x5989('0x5e')]=_0x46f33['id'];}_0x1eb004['changes']=_0x1eb004['changes'][_0x5989('0x1f')](_0x3f7222);}return _0x1eb004;}[_0x5989('0x5a')](_0x5f19c1,_0x48c8d){for(let _0x90fde2=0x0;_0x90fde2<_0x5f19c1[_0x5989('0xe4')];_0x90fde2++)for(const [_0x26beda,_0x45cc69]of _0x48c8d)_0x45cc69[_0x5989('0xce')][_0x5989('0xa1')](_0x5f19c1[_0x90fde2][_0x5989('0x3b')])&&_0x5f19c1[_0x90fde2][_0x5989('0x89')][_0x5989('0x85')](_0x26beda),_0x45cc69['end'][_0x5989('0xa1')](_0x5f19c1[_0x90fde2][_0x5989('0xc5')])&&_0x5f19c1[_0x90fde2][_0x5989('0x126')][_0x5989('0x85')](_0x26beda);}['_joinTapes'](_0x4b053e,_0x2ff50c){let _0x1718e6=[],_0x5f1585=0x0,_0x57b51f=0x0;for(;_0x5f1585<_0x4b053e[_0x5989('0xe4')]||_0x57b51f<_0x2ff50c[_0x5989('0xe4')];){const _0x43cde2=_0x4b053e[_0x5f1585]||{},_0x5419d4=_0x2ff50c[_0x57b51f]||{};if(_0x43cde2['id']==_0x5419d4['id'])_0x5f1585++,_0x57b51f++,_0x1718e6[_0x5989('0x85')](_0x43cde2);else{if(_0x5419d4['isRemoved']&&_0x43cde2[_0x5989('0x44')]){const {commonTape:_0x32d3e1,iEnd:_0x24b435,jEnd:_0x35ce06}=this['_threeWayMerge'](_0x4b053e,_0x5f1585,_0x2ff50c,_0x57b51f);_0x1718e6=_0x1718e6[_0x5989('0x1f')](_0x32d3e1),_0x5f1585=_0x24b435,_0x57b51f=_0x35ce06;}else _0x5419d4[_0x5989('0xbd')]?(_0x57b51f++,_0x1718e6[_0x5989('0x85')](_0x5419d4)):(_0x5f1585++,_0x1718e6[_0x5989('0x85')](_0x43cde2));}}return _0x1718e6;}[_0x5989('0x6c')](_0x49e2b3,_0x11401e){const _0x459dd2=[];for(let _0x3498ed=0x0;_0x3498ed<_0x49e2b3[_0x5989('0xe4')];_0x3498ed++){for(let _0x5c4a20=0x0;_0x5c4a20<_0x49e2b3[_0x3498ed][_0x5989('0x89')][_0x5989('0xe4')];_0x5c4a20++){const _0x10962d=_0x49e2b3[_0x3498ed][_0x5989('0x89')][_0x5c4a20];if(!_0x11401e[_0x5989('0xd2')](_0x10962d))continue;const {group:_0x26d5dc,type:_0x3afe61,authorId:_0x3b13d7}=_0x4c5426(_0x10962d);_0x5989('0x7f')!=_0x26d5dc||_0x5989('0x75')!=_0x3afe61&&_0x5989('0xcd')!=_0x3afe61||(_0x459dd2['unshift']({'type':_0x3afe61,'name':_0x10962d,'userId':_0x3b13d7}),_0x49e2b3[_0x3498ed][_0x5989('0x89')]['splice'](_0x5c4a20,0x1),_0x5c4a20--);}_0x41b2a0(_0x49e2b3[_0x3498ed]);for(let _0x28a130=0x0;_0x28a130<_0x49e2b3[_0x3498ed]['markersEnd'][_0x5989('0xe4')];_0x28a130++){const _0x56737b=_0x49e2b3[_0x3498ed][_0x5989('0x126')][_0x28a130];if(!_0x11401e[_0x5989('0xd2')](_0x56737b))continue;const {group:_0x3abe78,type:_0x24410f}=_0x4c5426(_0x56737b);if(_0x5989('0x7f')!=_0x3abe78||_0x5989('0x75')!=_0x24410f&&_0x5989('0xcd')!=_0x24410f)continue;_0x49e2b3[_0x3498ed][_0x5989('0x126')][_0x5989('0x23')](_0x28a130,0x1),_0x28a130--;const _0x54c332=_0x459dd2[_0x5989('0x8b')](_0x2ffc80=>_0x2ffc80['name']==_0x56737b);_0x54c332>-0x1&&_0x459dd2[_0x5989('0x23')](_0x54c332,0x1);}}function _0x4c5426(_0x2981c8){const _0x4dbef7=_0x2981c8[_0x5989('0xa4')](':');return{'group':_0x4dbef7[0x0],'type':_0x4dbef7[0x1],'subType':_0x4dbef7['length']>=0x5?_0x4dbef7[0x2]:null,'id':_0x4dbef7[_0x5989('0xe4')]<0x5?_0x4dbef7[0x2]:_0x4dbef7[0x3],'authorId':_0x4dbef7['length']<0x5?_0x4dbef7[0x3]:_0x4dbef7[0x4],'markerCount':0x6==_0x4dbef7[_0x5989('0xe4')]?_0x4dbef7[0x5]:null};}function _0x41b2a0(_0x37587b){for(let _0x59e42b=0x0;_0x59e42b<_0x459dd2[_0x5989('0xe4')];_0x59e42b++){if(_0x37587b[_0x5989('0x44')]&&'insertion'==_0x459dd2[_0x59e42b][_0x5989('0xd0')])return _0x37587b[_0x5989('0x6a')]=_0x459dd2[_0x59e42b],void delete _0x37587b['isAdded'];if(!_0x37587b['isAdded']&&!_0x37587b[_0x5989('0xbd')]&&_0x5989('0xcd')==_0x459dd2[_0x59e42b][_0x5989('0xd0')])return void(_0x37587b[_0x5989('0xa2')]=_0x459dd2[_0x59e42b]);}}}[_0x5989('0x4d')](_0x2d3d25,_0x386503){let _0x23e12d=0x0,_0x2b87ff=!0x1;const _0x53128b=new Map();for(const _0x89d513 of _0x2d3d25)_0x89d513[_0x386503]?_0x2b87ff&&(_0x23e12d++,_0x2b87ff=!0x1):(_0x23e12d++,_0x2b87ff=!0x0),_0x53128b[_0x5989('0xb7')](_0x89d513['id'],_0x23e12d);for(let _0x280777=0x0;_0x280777<_0x2d3d25[_0x5989('0xe4')];_0x280777++){if(_0x5989('0xbd')==_0x386503&&_0x2d3d25[_0x280777][_0x5989('0x44')]||_0x5989('0x44')==_0x386503&&_0x2d3d25[_0x280777][_0x5989('0xbd')])continue;if(_0x5989('0xa8')==_0x2d3d25[_0x280777]['type']){_0x2d3d25[_0x280777]['distance']=0x0;continue;}const _0x249f1c=_0x53128b['get'](_0x2d3d25[_0x280777][_0x5989('0x9c')]),_0x2b6b5a=_0x53128b['get'](_0x2d3d25[_0x280777]['id']);_0x2d3d25[_0x280777][_0x5989('0x5d')]=_0x249f1c-_0x2b6b5a;}}['_getRevisionsRange'](_0x510a42,_0x1d65ec,_0x342c1f=!0x1){const _0x58c33e=[];let _0x29ac75=this['repository'][_0x5989('0x7')](_0x510a42),_0x3d75ea=this['repository']['getIndex'](_0x1d65ec);for(-0x1==_0x3d75ea&&(_0x3d75ea=this[_0x5989('0x87')]['_revisions'][_0x5989('0xe4')],_0x342c1f=!0x1);_0x29ac75<_0x3d75ea;)_0x58c33e['push'](this[_0x5989('0x87')][_0x5989('0x38')](_0x29ac75)),_0x29ac75++;return _0x342c1f&&_0x58c33e[_0x5989('0x85')](this[_0x5989('0x87')]['getRevision'](_0x29ac75)),_0x58c33e;}[_0x5989('0xe7')](_0xd8fadf,_0x2f0203,_0x2c6626,_0x59d503){const _0x1ab309=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')];let _0x1404d4=_0x2f0203;for(;_0xd8fadf[_0x1404d4]&&_0xd8fadf[_0x1404d4][_0x5989('0x44')];)_0x1404d4++;let _0x813ec5=_0x59d503;for(;_0x2c6626[_0x813ec5]&&_0x2c6626[_0x813ec5]['isRemoved'];)_0x813ec5++;_0x18ebcd(_0xd8fadf,_0x2f0203,_0x1404d4),_0x18ebcd(_0x2c6626,_0x59d503,_0x813ec5);const _0x21a82f=_0x2c6626['slice'](_0x59d503,_0x813ec5)[_0x5989('0x1f')](_0xd8fadf[_0x5989('0xd1')](_0x2f0203,_0x1404d4));return _0x21a82f[_0x5989('0x3d')]((_0x57ab51,_0x2c0c2b)=>_0x57ab51[_0x5989('0xef')]!=_0x2c0c2b[_0x5989('0xef')]?_0x57ab51[_0x5989('0xef')]-_0x2c0c2b[_0x5989('0xef')]:_0x57ab51[_0x5989('0x7a')]!=_0x2c0c2b[_0x5989('0x7a')]?_0x57ab51[_0x5989('0x7a')]-_0x2c0c2b['level']:_0x57ab51['distance']!=_0x2c0c2b[_0x5989('0x5d')]?_0x2c0c2b['distance']-_0x57ab51[_0x5989('0x5d')]:!!_0x57ab51[_0x5989('0x44')]!=!!_0x2c0c2b['isAdded']?-0x1==_0x57ab51[_0x5989('0xef')]||0x0==_0x57ab51[_0x5989('0xef')]?_0x57ab51[_0x5989('0x44')]?-0x1:0x1:_0x57ab51[_0x5989('0x44')]?0x1:-0x1:_0x57ab51[_0x5989('0xa5')]-_0x2c0c2b[_0x5989('0xa5')]),{'commonTape':_0x21a82f,'iEnd':_0x1404d4,'jEnd':_0x813ec5};function _0x18ebcd(_0x1a8257,_0x1f985a,_0x2e7266){let _0x3797c3=-0x1,_0x2c4a6b=Number[_0x5989('0x40')],_0x2fee25=!0x0;for(let _0x249a58=_0x1f985a;_0x249a58<_0x2e7266;_0x249a58++)if(_0x1ab309[_0x5989('0x19')](_0x1a8257[_0x249a58][_0x5989('0x6d')])||(_0x2fee25=!0x1),_0x1a8257[_0x249a58]['item'][_0x5989('0x116')]<_0x1f985a&&(_0x3797c3=_0x249a58),_0x1a8257[_0x249a58][_0x5989('0x6d')][_0x5989('0x4b')]>=_0x2e7266){_0x2c4a6b=_0x249a58;break;}_0x2fee25&&(_0x3797c3=_0x2e7266-0x1);for(let _0x12fa80=_0x1f985a;_0x12fa80<_0x2e7266;_0x12fa80++)_0x1a8257[_0x12fa80][_0x5989('0xef')]=_0x12fa80<=_0x3797c3?-0x1:_0x12fa80<_0x2c4a6b?0x0:0x1,_0x1a8257[_0x12fa80][_0x5989('0xa5')]=_0x12fa80;let _0x26a423=0x0;for(let _0x1283c6=_0x1f985a;_0x1283c6<=_0x3797c3;_0x1283c6++)0x0==_0x1a8257[_0x1283c6]['distance']?_0x1a8257[_0x1283c6][_0x5989('0x7a')]=_0x26a423:(_0x26a423++,_0x1a8257[_0x1283c6][_0x5989('0x7a')]=_0x26a423,_0x26a423++);for(let _0x29af74=_0x1f985a;_0x29af74<_0x2e7266;_0x29af74++)0x0==_0x1a8257[_0x29af74]['side']&&(_0x1a8257[_0x29af74]['level']=_0x26a423);_0x26a423=0x0;for(let _0x14c33c=_0x2e7266-0x1;_0x14c33c>=_0x2c4a6b;_0x14c33c--)0x0==_0x1a8257[_0x14c33c]['distance']?_0x1a8257[_0x14c33c][_0x5989('0x7a')]=_0x26a423:(_0x26a423--,_0x1a8257[_0x14c33c][_0x5989('0x7a')]=_0x26a423,_0x26a423--);}}[_0x5989('0x104')](_0x2f794e){const _0x194508=new Map(),_0x59fc26=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')];for(let _0x4b9fcc=0x1;_0x4b9fcc<_0x2f794e[_0x5989('0xe4')];_0x4b9fcc++){let _0x9bb74,_0x150557,_0x5857bc;const _0x1b9d24=_0x2f794e[_0x4b9fcc],_0x54c8ff=_0x2f794e[_0x4b9fcc-0x1];if('text'==_0x1b9d24['type'])continue;if(_0x1b9d24[_0x5989('0xd0')]!=_0x54c8ff['type'])continue;if(!_0x59fc26[_0x5989('0xb0')](_0x54c8ff[_0x5989('0x6d')])||_0x59fc26['isLimit'](_0x54c8ff[_0x5989('0x6d')]))continue;if(!_0x59fc26[_0x5989('0xb0')](_0x1b9d24[_0x5989('0x6d')])||_0x59fc26[_0x5989('0x18')](_0x1b9d24[_0x5989('0x6d')]))continue;if((_0x2f794e[_0x4b9fcc]['isAdded']||_0x2f794e[_0x4b9fcc][_0x5989('0x6a')])&&_0x2f794e[_0x4b9fcc-0x1]['isRemoved'])_0x9bb74=_0x2f794e[_0x4b9fcc],_0x150557=_0x2f794e[_0x4b9fcc-0x1],_0x5857bc=_0x4b9fcc-0x1;else{if(!_0x2f794e[_0x4b9fcc][_0x5989('0xbd')]||!_0x2f794e[_0x4b9fcc-0x1]['isAdded']&&!_0x2f794e[_0x4b9fcc-0x1][_0x5989('0x6a')])continue;_0x9bb74=_0x2f794e[_0x4b9fcc-0x1],_0x150557=_0x2f794e[_0x4b9fcc],_0x5857bc=_0x4b9fcc;}const _0x1ee1f6=_0x9bb74['level']==_0x150557[_0x5989('0x7a')],_0x4c5156=Math[_0x5989('0xf6')](_0x9bb74[_0x5989('0x7a')])<Math[_0x5989('0xf6')](_0x150557[_0x5989('0x7a')])&&0x0==_0x150557[_0x5989('0x5d')];(_0x1ee1f6||_0x4c5156)&&(_0x194508[_0x5989('0xb7')](_0x150557['id'],_0x9bb74['id']),_0x2f794e[_0x5989('0x23')](_0x5857bc,0x1),_0x4b9fcc--,_0x9bb74[_0x5989('0x44')]=!0x1);}for(let _0x49acf3=0x0;_0x49acf3<_0x2f794e[_0x5989('0xe4')];_0x49acf3++)_0x194508[_0x5989('0xd2')](_0x2f794e[_0x49acf3][_0x5989('0x9c')])&&(_0x2f794e[_0x49acf3][_0x5989('0x9c')]=_0x194508[_0x5989('0x1d')](_0x2f794e[_0x49acf3]['pairId']));}[_0x5989('0x21')](_0x25adc1){const _0x21e8ca=new Set(_0x25adc1[_0x5989('0xc1')](_0x462048=>_0x462048['id']));for(let _0x60f0e9=0x0;_0x60f0e9<_0x25adc1[_0x5989('0xe4')];_0x60f0e9++)_0x21e8ca[_0x5989('0xd2')](_0x25adc1[_0x60f0e9][_0x5989('0x9c')])||0x0==_0x25adc1[_0x60f0e9][_0x5989('0x5d')]||(_0x25adc1[_0x60f0e9][_0x5989('0x6f')]=!0x0);return _0x25adc1['filter'](_0x52de8f=>!_0x52de8f[_0x5989('0x6f')]);}[_0x5989('0xaa')](_0x5effc5){const _0x254ff3=new Set();for(let _0x2c0180=0x0;_0x2c0180<_0x5effc5[_0x5989('0xe4')];_0x2c0180++){if(_0x254ff3[_0x5989('0xd2')](_0x5effc5[_0x2c0180]['id'])&&_0x5effc5[_0x2c0180][_0x5989('0xbd')]&&(_0x5effc5[_0x2c0180][_0x5989('0x6f')]=!0x0),_0x5effc5[_0x2c0180]['isIncorrect'])continue;if(0x0==_0x5effc5[_0x2c0180][_0x5989('0x5d')])continue;if(_0x5989('0xbb')!=_0x5effc5[_0x2c0180][_0x5989('0xd0')])continue;if(null==_0x5effc5[_0x2c0180][_0x5989('0x9c')])continue;let _0x431f7e=_0x2c0180+0x1,_0x4fda5d=0x0;for(;_0x5effc5[_0x431f7e]['id']!=_0x5effc5[_0x2c0180][_0x5989('0x9c')];)'elementStart'==_0x5effc5[_0x431f7e]['type']?_0x4fda5d++:'elementEnd'==_0x5effc5[_0x431f7e][_0x5989('0xd0')]&&_0x4fda5d--,_0x431f7e++;if(0x0!=_0x4fda5d){if(_0x5effc5[_0x2c0180][_0x5989('0xbd')])_0x5effc5[_0x2c0180][_0x5989('0x6f')]=!0x0;else for(;_0x431f7e!=_0x2c0180;)_0x5effc5[_0x431f7e][_0x5989('0xbd')]&&0x0!=_0x5effc5[_0x431f7e][_0x5989('0x5d')]&&(_0x5effc5[_0x431f7e][_0x5989('0x6f')]=!0x0,_0x254ff3[_0x5989('0x118')](_0x5effc5[_0x431f7e][_0x5989('0x9c')])),_0x431f7e--;}}return _0x5effc5[_0x5989('0xee')](_0x343b36=>!_0x343b36[_0x5989('0x6f')]);}[_0x5989('0x107')](_0x48cc5d){const _0x287d50=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')];for(let _0x334e2=0x0;_0x334e2<_0x48cc5d[_0x5989('0xe4')];_0x334e2++){if(!(_0x48cc5d[_0x334e2][_0x5989('0x44')]||_0x48cc5d[_0x334e2][_0x5989('0x6a')]||_0x48cc5d[_0x334e2][_0x5989('0xbd')]||_0x48cc5d[_0x334e2][_0x5989('0xa2')]))continue;if(0x0==_0x48cc5d[_0x334e2][_0x5989('0x5d')])continue;const _0x5ae669=_0x48cc5d[_0x334e2]['item'];_0x287d50[_0x5989('0xb0')](_0x5ae669)||_0x287d50[_0x5989('0x18')](_0x5ae669)||(_0x48cc5d[_0x334e2]['isAdded']&&delete _0x48cc5d[_0x334e2][_0x5989('0x44')],_0x48cc5d[_0x334e2][_0x5989('0x6a')]&&delete _0x48cc5d[_0x334e2][_0x5989('0x6a')],_0x48cc5d[_0x334e2][_0x5989('0xa2')]&&delete _0x48cc5d[_0x334e2][_0x5989('0xa2')],_0x48cc5d[_0x334e2]['isRemoved']&&(_0x48cc5d[_0x334e2][_0x5989('0x6f')]=!0x0));}return _0x48cc5d['filter'](_0x484fa4=>!_0x484fa4['isIncorrect']);}['_makeModelFromTape'](_0x256721,_0x402967,_0x49b69f){const _0x56f099=new _0xc66f45(),_0x3347f0=[],_0x13901a=new Map(),_0x1d95c4=this[_0x5989('0x9a')][_0x5989('0x92')],_0x5b9226=_0x1d95c4[_0x5989('0xe0')],_0x44d055=[_0x56f099],_0x14c1b0={},_0x4c2be1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x20a845=null;const _0x5ea085=[0x0];for(let _0x11409e=0x0;_0x11409e<_0x256721['length'];_0x11409e++){let _0x14399d,_0x16ee17;if(_0x5989('0xbb')===_0x256721[_0x11409e]['type']){_0x14399d=_0x1d95c4['createPositionFromPath'](_0x56f099,_0x5ea085);const _0x206553=new _0xcf83e4(_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xb2')],_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0x35')]());_0x44d055[0x0][_0x5989('0x2f')](_0x206553),_0x5ea085[_0x5989('0x85')](0x0),_0x44d055[_0x5989('0xb1')](_0x206553),_0x16ee17=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x20a845=null;}else{if(_0x5989('0x17')===_0x256721[_0x11409e][_0x5989('0xd0')])_0x44d055[_0x5989('0x63')](),_0x14399d=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x5ea085[_0x5989('0x46')](),_0x5ea085[_0x5ea085[_0x5989('0xe4')]-0x1]++,_0x16ee17=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x20a845=null;else{if(_0x14399d=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085),_0x20a845&&_0x5d1814(_0x20a845,_0x256721[_0x11409e][_0x5989('0x6d')]))_0x20a845[_0x5989('0x99')]+=_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xcc')];else{const _0x154f39=new _0x16f66b(_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xcc')],_0x256721[_0x11409e][_0x5989('0x6d')]['getAttributes']());_0x44d055[0x0]['_appendChild'](_0x154f39),_0x20a845=_0x154f39;}_0x5ea085[_0x5ea085[_0x5989('0xe4')]-0x1]+=_0x256721[_0x11409e][_0x5989('0x6d')][_0x5989('0xdc')],_0x16ee17=_0x1d95c4[_0x5989('0xb3')](_0x56f099,_0x5ea085);}}for(const _0x30e9e7 of _0x256721[_0x11409e][_0x5989('0x89')])_0x13901a[_0x5989('0xb7')](_0x30e9e7,{'start':_0x14399d,'end':null});_0x23a530(_0x5989('0xa2'),_0x11409e,_0x14399d,_0x16ee17),_0x23a530(_0x5989('0x6a'),_0x11409e,_0x14399d,_0x16ee17),_0x23a530(_0x5989('0xbd'),_0x11409e,_0x14399d,_0x16ee17),_0x23a530(_0x5989('0x44'),_0x11409e,_0x14399d,_0x16ee17);for(const _0x7684fe of _0x256721[_0x11409e][_0x5989('0x126')]){_0x13901a['get'](_0x7684fe)[_0x5989('0xa')]=_0x16ee17;}}for(const [_0x178cc5,_0x3edbfb]of _0x13901a){const _0x189dbb=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0x11e')](_0x3edbfb[_0x5989('0xce')],_0x3edbfb[_0x5989('0xa')]);_0x56f099[_0x5989('0xe3')][_0x5989('0xb7')](_0x178cc5,_0x189dbb);}return _0x3347f0[_0x5989('0x3d')]((_0x41a5f8,_0x575cd6)=>{const _0x153a06=_0x56f099[_0x5989('0xe3')][_0x5989('0x1d')](_0x5989('0xf9')+_0x41a5f8['id']),_0x447459=_0x56f099[_0x5989('0xe3')]['get']('revision:'+_0x575cd6['id']);return _0x153a06[_0x5989('0xce')][_0x5989('0xbc')](_0x447459['start'])?-0x1:_0x153a06['start'][_0x5989('0xf1')](_0x447459[_0x5989('0xce')])?0x1:_0x153a06['end'][_0x5989('0xbc')](_0x447459['end'])?-0x1:_0x153a06['end']['isAfter'](_0x447459[_0x5989('0xa')])?0x1:'add'===_0x41a5f8[_0x5989('0xd0')]?-0x1:0x1;}),{'root':_0x56f099,'changes':_0x3347f0};function _0x23a530(_0x17574e,_0x58ab5d,_0x598cbe,_0xcde9f2){const _0xe7332a=!!_0x256721[_0x58ab5d][_0x17574e],_0x4c18ce=_0xe7332a?_0x256721[_0x58ab5d][_0x17574e][_0x5989('0x9b')]:null,_0x5d3a57=_0x58ab5d===_0x256721[_0x5989('0xe4')]-0x1,_0x4f4d84=_0x4c2be1[_0x17574e][0x0],_0x199ac8=_0x5b9226['isObject'](_0x256721[_0x58ab5d][_0x5989('0x6d')]);!_0x14c1b0[_0x17574e]&&_0xe7332a?_0x14c1b0[_0x17574e]={'start':_0x598cbe,'tapeItem':_0x256721[_0x58ab5d],'userId':_0x4c18ce,'type':_0x17574e}:_0x14c1b0[_0x17574e]&&!_0xe7332a?(_0x14c1b0[_0x17574e][_0x5989('0xa')]=_0x598cbe,_0x2837ab(_0x14c1b0[_0x17574e]),_0x14c1b0[_0x17574e]=null):_0x14c1b0[_0x17574e]&&_0xe7332a&&_0x14c1b0[_0x17574e][_0x5989('0x9b')]!==_0x4c18ce&&(_0x14c1b0[_0x17574e][_0x5989('0xa')]=_0x598cbe,_0x4f4d84&&_0x4f4d84[_0x5989('0x9b')]===_0x14c1b0[_0x17574e]['userId']||_0x2837ab(_0x14c1b0[_0x17574e]),_0x14c1b0[_0x17574e]={'start':_0x598cbe,'tapeItem':_0x256721[_0x58ab5d],'userId':_0x4c18ce,'type':_0x17574e}),_0x14c1b0[_0x17574e]&&_0x199ac8&&(_0x5989('0xbb')!==_0x256721[_0x58ab5d][_0x5989('0xd0')]||_0x4f4d84&&_0x4f4d84[_0x5989('0x9b')]===_0x4c18ce||_0x4c2be1[_0x17574e]['unshift']({'userId':_0x4c18ce,'object':_0x256721[_0x58ab5d][_0x5989('0x6d')],'change':_0x14c1b0[_0x17574e]}),_0x5989('0x17')===_0x256721[_0x58ab5d]['type']&&_0x4f4d84&&_0x4f4d84[_0x5989('0xae')]===_0x256721[_0x58ab5d][_0x5989('0x6d')]&&(_0x4c2be1[_0x17574e][_0x5989('0x63')](),_0x14c1b0[_0x17574e]=_0x4f4d84[_0x5989('0x9e')])),_0x14c1b0[_0x17574e]&&_0x5d3a57&&(_0x14c1b0[_0x17574e][_0x5989('0xa')]=_0xcde9f2,_0x2837ab(_0x14c1b0[_0x17574e]),_0x14c1b0[_0x17574e]=null);}function _0x2837ab({start:_0x4cadb8,end:_0x3c701a,tapeItem:_0x4be47f,userId:_0x4d8ce1,type:_0x2b6c12}){const _0x27c1fb=_0x4be47f[_0x5989('0x6d')],_0x35fd58=_0x1d95c4[_0x5989('0xe0')][_0x5989('0xb0')](_0x27c1fb)&&!_0x1d95c4[_0x5989('0xe0')][_0x5989('0x18')](_0x27c1fb),_0x5e1b79=_0x4cadb8[_0x5989('0x28')]==_0x3c701a[_0x5989('0x62')]&&_0x3c701a[_0x5989('0x117')];if(_0x35fd58&&_0x5e1b79)return;const _0x4f03b5=_0x1d95c4['createRange'](_0x4cadb8,_0x3c701a),_0x44fc37=_0x402967[_0x5989('0x1d')](_0x4d8ce1),_0x3e3df9=new _0x389466({'author':_0x44fc37,'type':'isAdded'==_0x2b6c12||_0x5989('0x6a')==_0x2b6c12?_0x5989('0x118'):_0x5989('0x10c'),'data':{'isSuggestion':_0x5989('0x6a')==_0x2b6c12||_0x5989('0xa2')==_0x2b6c12},'createdAt':new Date(),'rootName':_0x49b69f});_0x3347f0[_0x5989('0x85')](_0x3e3df9),_0x56f099['markers'][_0x5989('0xb7')](_0x5989('0xf9')+_0x3e3df9['id'],_0x4f03b5);}function _0x5d1814(_0x29d88e,_0x1d6839){const _0x41da8f=_0x29d88e['getAttributes'](),_0x62c852=_0x1d6839['getAttributes']();for(const _0x2e9474 of _0x41da8f){if(_0x2e9474[0x1]!==_0x1d6839[_0x5989('0xb8')](_0x2e9474[0x0]))return!0x1;_0x62c852[_0x5989('0x72')]();}return _0x62c852[_0x5989('0x72')]()[_0x5989('0x15')];}}[_0x5989('0x2')](){this[_0x5989('0x9a')]['conversion'][_0x5989('0xa0')](_0x5989('0xfe'))['dataToMarker']({'view':_0x5989('0xe9')}),this['editor'][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0x24'))[_0x5989('0x81')]({'model':_0x5989('0xe9'),'view':_0x2cfab2=>{const _0x254e41=_0x2cfab2['markerName']['split'](':')[0x1],_0x4d24bc=this['_getChangeFromId'](_0x254e41);if(!_0x4d24bc)return null;const _0x5b321e=_0x5989('0x118')==_0x4d24bc[_0x5989('0xd0')]?'insertion':_0x5989('0xcd'),_0x57d487=[_0x5989('0x3f'),_0x5989('0x83')+_0x5b321e];return _0x4d24bc[_0x5989('0xcc')][_0x5989('0xea')]&&_0x57d487['push'](_0x5989('0x83')+_0x5b321e+'-new'),this[_0x5989('0x105')]==_0x4d24bc&&_0x57d487[_0x5989('0x85')]('ck-suggestion-marker--active'),{'classes':_0x57d487,'attributes':{'data-change-id':_0x254e41}};}}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))['add'](_0x355de6=>{_0x355de6['on'](_0x5989('0xde'),(_0x24672c,_0x53854e,_0x7db77c)=>{const _0x48795d=_0x53854e[_0x5989('0x9f')][_0x5989('0x97')](0x0);if(!_0x48795d||!_0x48795d['is']('element',_0x5989('0x98')))return;if(!_0x7db77c[_0x5989('0xc4')][_0x5989('0x67')](_0x48795d,{'attributes':[_0x5989('0xad'),_0x5989('0xd4')]}))return;const _0x2a2a4a=_0x53854e['modelRange'][_0x5989('0xce')][_0x5989('0x28')];_0x7db77c[_0x5989('0x70')]['setAttribute'](_0x5989('0xad'),_0x48795d[_0x5989('0xb8')](_0x5989('0xad')),_0x2a2a4a),_0x7db77c['writer']['setAttribute'](_0x5989('0xd4'),_0x48795d[_0x5989('0xb8')](_0x5989('0xd4')),_0x2a2a4a);},{'priority':_0x5989('0x13')});}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))[_0x5989('0x118')](_0x34d767=>{_0x34d767['on']('element',(_0x1c8967,_0x36afd5,_0x20973f)=>{if(!_0x20973f['consumable'][_0x5989('0x67')](_0x36afd5[_0x5989('0x9f')],{'attributes':[_0x5989('0xad'),'vid_end']}))return;if(_0x36afd5[_0x5989('0x11f')][_0x5989('0x122')])return;const _0x4aa724=_0x36afd5[_0x5989('0x11f')][_0x5989('0xce')]['nodeAfter'];_0x4aa724[_0x5989('0x52')](_0x5989('0xad'))||_0x4aa724['hasAttribute'](_0x5989('0x49'))||(_0x20973f[_0x5989('0x70')]['setAttribute'](_0x5989('0xad'),_0x36afd5[_0x5989('0x9f')][_0x5989('0xb8')](_0x5989('0xad')),_0x4aa724),_0x20973f[_0x5989('0x70')][_0x5989('0xba')](_0x5989('0xd4'),_0x36afd5['viewItem']['getAttribute'](_0x5989('0xd4')),_0x4aa724));},{'priority':_0x5989('0x13')});}),this[_0x5989('0x9a')]['conversion'][_0x5989('0xa0')](_0x5989('0xfe'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x2d547e=>_0x2d547e[_0x5989('0xb8')](_0x5989('0x49'))}}),this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe0')]['on'](_0x5989('0x7b'),(_0x51c7cc,[,_0x24893a])=>{[_0x5989('0xad'),'vid_end','vid'][_0x5989('0xf5')](_0x24893a)&&(_0x51c7cc[_0x5989('0x7e')]=!0x0,_0x51c7cc[_0x5989('0x47')]());},{'priority':_0x5989('0xd')}),this['editor'][_0x5989('0x74')]['for']('dataDowncast')[_0x5989('0x118')](_0x1cba5=>{_0x1cba5['on']('attribute:vid',(_0x579561,_0x4f5ecb,_0x127a68)=>{if('\x20'!=_0x4f5ecb['item'][_0x5989('0xcc')]||_0x4f5ecb[_0x5989('0x6d')][_0x5989('0x62')][_0x5989('0x66')]>0x1)return;if(!_0x127a68[_0x5989('0xc4')][_0x5989('0x67')](_0x4f5ecb[_0x5989('0x6d')],_0x579561[_0x5989('0xb2')]))return;const _0x4d92ac=_0x127a68['writer'],_0xed6768=_0x127a68[_0x5989('0xeb')]['toViewRange'](_0x4f5ecb[_0x5989('0x2e')]);_0x4d92ac[_0x5989('0x102')](_0xed6768,_0x4d92ac['createAttributeElement']('span'));});}),this[_0x5989('0x9a')]['conversion'][_0x5989('0xa0')](_0x5989('0x3c'))[_0x5989('0x11b')]({'model':_0x5989('0xe9')}),this['editor'][_0x5989('0x64')]['downcastDispatcher']['on'](_0x5989('0x10a'),function(_0x4eb325){const _0x29dc91=_0x4eb325[_0x5989('0x27')][_0x5989('0x1d')](_0x5989('0x65'));return(_0x3e0f0c,_0x5e70e9,_0x266803)=>{const _0x28efc7=_0x5e70e9['markerName']['split'](':')[0x1],_0xc054a1=_0x29dc91[_0x5989('0x7c')](_0x28efc7);if(!_0xc054a1)return null;const _0x23b92c=_0x5989('0x118')==_0xc054a1[_0x5989('0xd0')]?_0x5989('0xa4'):_0x5989('0x101');if(!_0x266803['consumable']['test'](_0x5e70e9[_0x5989('0x106')],_0x3e0f0c[_0x5989('0xb2')]))return;const _0x43d2af=_0x5e70e9['markerRange'][_0x5989('0xc0')](),_0x3e02b5=_0x5e70e9['markerRange'][_0x5989('0xce')],_0x463510=_0x4eb325[_0x5989('0x92')]['schema'];let _0x201748=null,_0x364ce1=null,_0xdda5d9=!0x1,_0x417bdc=!0x1;for(const _0x2d38d9 of _0x43d2af){const _0x79d27=_0x2d38d9['item'];_0xdda5d9=_0xdda5d9||_0x463510[_0x5989('0xda')](_0x79d27);const _0x1267d5=_0x266803[_0x5989('0xeb')]['toViewElement'](_0x79d27);if(_0x1267d5&&_0x1267d5[_0x5989('0x53')](_0x5989('0x37')))return;'elementEnd'==_0x2d38d9['type']&&(_0x463510[_0x5989('0xb0')](_0x79d27)&&!_0x463510[_0x5989('0x18')](_0x79d27)&&(_0x79d27[_0x5989('0x8e')]||_0x3e02b5[_0x5989('0x113')]?_0x201748&&_0x201748[_0x5989('0x62')]==_0x79d27||(_0x201748=_0x79d27,_0xf01b31(_0x2d38d9[_0x5989('0x3b')]),_0x417bdc=!0x0):_0x364ce1=_0x364ce1||_0x2d38d9[_0x5989('0x3b')]));}function _0xf01b31(_0x2dba00){const _0x5744b2=_0x266803[_0x5989('0x70')]['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x23b92c}),_0x19cced=_0x266803[_0x5989('0xeb')][_0x5989('0xfb')](_0x2dba00);_0xc054a1['data'][_0x5989('0xea')]&&_0x266803[_0x5989('0x70')]['addClass'](_0x5989('0x83')+_0x23b92c+_0x5989('0x120'),_0x5744b2),_0x29dc91[_0x5989('0x105')]==_0xc054a1&&_0x266803['writer'][_0x5989('0xc7')](_0x5989('0xca'),_0x5744b2),_0x266803['writer'][_0x5989('0x54')](_0x19cced,_0x5744b2),_0x266803['mapper'][_0x5989('0x77')](_0x5744b2,_0x5e70e9[_0x5989('0x78')]);}_0xdda5d9||_0x417bdc||!_0x364ce1||_0xf01b31(_0x364ce1);};}(this[_0x5989('0x9a')]),{'priority':'high'}),this['editor'][_0x5989('0x64')][_0x5989('0x128')]['on'](_0x5989('0x91'),(_0xaebcf6,_0x478bac,_0x594115)=>{const _0x4a0bed=_0x594115[_0x5989('0xeb')][_0x5989('0x4a')](_0x478bac['markerName']);if(_0x4a0bed)for(const _0x13b6b7 of _0x4a0bed)(_0x13b6b7[_0x5989('0xb5')](_0x5989('0xc8'))||_0x13b6b7[_0x5989('0xb5')](_0x5989('0x16')))&&(_0x594115[_0x5989('0xeb')][_0x5989('0xdf')](_0x13b6b7,_0x478bac[_0x5989('0x78')]),_0x594115[_0x5989('0x70')][_0x5989('0x10c')](_0x13b6b7));},{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x128')]['on']('addMarker:revision',(_0x4fd6a8,_0x171b9,_0x1d0208)=>{const _0x1ef66b=_0x171b9[_0x5989('0x78')][_0x5989('0xa4')](':')[0x1],_0x15d470=this[_0x5989('0x7c')](_0x1ef66b);if(!_0x15d470)return null;const _0x36cd23=_0x5989('0x118')==_0x15d470['type']?_0x5989('0xa4'):_0x5989('0x101');if(_0x1d0208[_0x5989('0xc4')]['test'](_0x171b9[_0x5989('0x106')],_0x4fd6a8[_0x5989('0xb2')]))for(const _0x3fcab4 of _0x171b9[_0x5989('0x106')][_0x5989('0x5c')]()){if(!_0x3fcab4['is'](_0x5989('0x127'),_0x5989('0x41')))continue;const _0x288ae7=_0x1d0208['writer'][_0x5989('0x29')](_0x5989('0x55'),{'class':_0x5989('0x83')+_0x36cd23}),_0x47fdb4=_0x1d0208[_0x5989('0xeb')][_0x5989('0xfb')](this['editor'][_0x5989('0x92')][_0x5989('0x93')](_0x3fcab4));_0x15d470[_0x5989('0xcc')][_0x5989('0xea')]&&_0x1d0208[_0x5989('0x70')][_0x5989('0xc7')](_0x5989('0x83')+_0x36cd23+_0x5989('0x120'),_0x288ae7),this[_0x5989('0x105')]==_0x15d470&&_0x1d0208[_0x5989('0x70')][_0x5989('0xc7')]('ck-suggestion-marker--active',_0x288ae7),_0x1d0208[_0x5989('0x70')][_0x5989('0x54')](_0x47fdb4,_0x288ae7),_0x1d0208[_0x5989('0xeb')][_0x5989('0x77')](_0x288ae7,_0x171b9[_0x5989('0x78')]);}},{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')]['model'][_0x5989('0xf2')]['on'](_0x5989('0x9e'),()=>{this[_0x5989('0x9a')]['editing'][_0x5989('0x119')][_0x5989('0x9e')](_0x4d4cd8=>{for(const _0xe988e0 of this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')][_0x5989('0xdb')]()){const _0x4b69d5=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xf2')]['getRoot'](_0xe988e0),_0x2cdc9e=this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')][_0x5989('0x111')](_0xe988e0);if(_0x2cdc9e){const _0x17abb1=_0x4b69d5[_0x5989('0xb8')](_0x5989('0x5e'));if(_0x4d4cd8[_0x5989('0xe6')](_0x5989('0x100'),_0x2cdc9e),_0x4d4cd8[_0x5989('0x51')](_0x5989('0x11c'),_0x2cdc9e),_0x4d4cd8[_0x5989('0x51')](_0x5989('0x1e'),_0x2cdc9e),_0x4d4cd8[_0x5989('0x51')](_0x5989('0xa7'),_0x2cdc9e),_0x17abb1){const _0x2174a9=this['_getChangeFromId'](_0x17abb1);if(!_0x2174a9)return null;_0x4d4cd8[_0x5989('0xba')](_0x5989('0x100'),_0x17abb1,_0x2cdc9e),_0x4d4cd8[_0x5989('0xc7')](_0x5989('0x10d')+_0x2174a9[_0x5989('0xd0')],_0x2cdc9e),this[_0x5989('0x105')]==_0x2174a9&&_0x4d4cd8[_0x5989('0xc7')](_0x5989('0xa7'),_0x2cdc9e);}}}});}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))['dataToMarker']({'view':_0x5989('0xcb'),'model':_0x448a4e=>_0x5989('0x4e')+_0x448a4e,'converterPriority':_0x5989('0xd')}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')](_0x5989('0xfe'))['dataToMarker']({'view':_0x5989('0x90'),'model':_0x9acacc=>_0x5989('0x4c')+_0x9acacc,'converterPriority':_0x5989('0xd')}),this[_0x5989('0x9a')][_0x5989('0x74')]['for']('dataDowncast')[_0x5989('0x11b')]({'model':_0x5989('0x7f'),'view':_0x1bd2cc=>({'name':'suggestion:'+_0x1bd2cc,'group':_0x5989('0x7f')}),'converterPriority':'highest'}),this[_0x5989('0x9a')][_0x5989('0x74')][_0x5989('0xa0')]('editingDowncast')[_0x5989('0x81')]({'model':_0x5989('0x7f'),'view':_0x237534=>{const _0x5bbd4b=_0x237534[_0x5989('0x78')][_0x5989('0xa4')](':')[0x1];return _0x5989('0x75')!=_0x5bbd4b&&_0x5989('0xcd')!=_0x5bbd4b?null:{'classes':[_0x5989('0x9'),'ck-suggestion-preview-marker-'+_0x5bbd4b]};}}),this['editor'][_0x5989('0x64')]['downcastDispatcher']['on'](_0x5989('0x2a'),et(this[_0x5989('0x9a')],'merge'),{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')]['editing'][_0x5989('0x128')]['on'](_0x5989('0x22'),et(this['editor'],'split'),{'priority':_0x5989('0x112')}),this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x128')]['on'](_0x5989('0xc6'),(_0xbfd98a,_0x48f46f,_0x27e7c2)=>{const _0x4a3873=_0x27e7c2['mapper']['markerNameToElements'](_0x48f46f[_0x5989('0x78')]);if(_0x4a3873)for(const _0x10e03d of _0x4a3873)_0x10e03d['is'](_0x5989('0x94'))&&(_0x27e7c2[_0x5989('0xeb')]['unbindElementFromMarkerName'](_0x10e03d,_0x48f46f['markerName']),_0x27e7c2[_0x5989('0x70')][_0x5989('0x10c')](_0x10e03d));},{'priority':_0x5989('0x112')});}[_0x5989('0x7c')](_0x49a72e){return this[_0x5989('0x26')][_0x5989('0x1d')](_0x49a72e);}[_0x5989('0x123')](_0x269387){return this[_0x5989('0xf0')]&&this[_0x5989('0xf0')][_0x5989('0xb9')](),this[_0x5989('0xf0')]=new _0x4b9da8(this[_0x5989('0x9a')][_0x5989('0xe')],_0x269387),this[_0x5989('0xf0')];}[_0x5989('0xfd')](){this['editor'][_0x5989('0x92')][_0x5989('0xf2')]['selection']['observeMarkers'](_0x5989('0xe9')),this['on'](_0x5989('0x2c'),(_0x16ce88,_0x441e61,_0xdad4a3,_0x17d55f)=>{_0x17d55f&&this['_balloon'][_0x5989('0x10c')](_0x17d55f),_0xdad4a3&&(this[_0x5989('0xe8')][_0x5989('0x118')]({'view':_0xdad4a3,'stackId':_0x5989('0x5b'),'position':{'target':()=>{const _0x58f81b=this[_0x5989('0x9a')]['editing'],_0x512004=this['_getChangeFromId'](_0xdad4a3[_0x5989('0xa6')]);let _0x6c8ea4;if(_0x512004['data'][_0x5989('0xd9')]){const _0x486b17=_0x58f81b[_0x5989('0x119')][_0x5989('0x84')](_0x512004[_0x5989('0x50')]);_0x6c8ea4=Array[_0x5989('0x9d')](_0x486b17['getClientRects']());}else{const _0x16e392=this[_0x5989('0x9a')][_0x5989('0x92')][_0x5989('0xe3')][_0x5989('0x1d')]('revision:'+_0xdad4a3[_0x5989('0xa6')]);_0x6c8ea4=Array[_0x5989('0x9d')](_0x58f81b[_0x5989('0xeb')]['markerNameToElements'](_0x16e392[_0x5989('0xb2')]))['map'](_0x212831=>_0x58f81b[_0x5989('0x119')][_0x5989('0xe1')][_0x5989('0x124')](_0x212831))['map'](_0x59bc58=>Array[_0x5989('0x9d')](_0x59bc58[_0x5989('0x8d')]()))[_0x5989('0x30')]();}if(!this[_0x5989('0x2b')])return _0x6c8ea4[0x0];return _0x6c8ea4[_0x5989('0xec')](_0x54ddaf=>_0x54ddaf[_0x5989('0x43')]-0x3<=this[_0x5989('0x2b')]['y']&&_0x54ddaf[_0x5989('0x79')]+0x3>=this[_0x5989('0x2b')]['y']&&_0x54ddaf[_0x5989('0xc9')]-0x3<=this['_activeViewTarget']['x']&&_0x54ddaf['right']+0x3>=this[_0x5989('0x2b')]['x'])||_0x6c8ea4[0x0];}}}),this[_0x5989('0xe8')]['showStack'](_0x5989('0x5b')));}),this['on']('change:activeChange',(_0xfd1d09,_0x2322f5,_0x3ac927,_0x20bd5a)=>{this[_0x5989('0x96')]=_0x3ac927?this[_0x5989('0x123')](_0x3ac927):null,this[_0x5989('0x9a')]['model'][_0x5989('0x9e')](()=>{const _0x28a71c=this['editor'][_0x5989('0x64')];_0x20bd5a&&(_0x20bd5a[_0x5989('0xcc')][_0x5989('0xd9')]?_0x28a71c[_0x5989('0x119')][_0x5989('0x9e')](_0x489208=>{_0x489208[_0x5989('0x51')](_0x5989('0xa7'),_0x28a71c['view']['document'][_0x5989('0x111')](_0x20bd5a[_0x5989('0x50')]));}):_0x28a71c[_0x5989('0xa9')](_0x5989('0xf9')+_0x20bd5a['id'])),_0x3ac927&&(_0x3ac927['data'][_0x5989('0xd9')]?_0x28a71c[_0x5989('0x119')][_0x5989('0x9e')](_0x53f55e=>{_0x53f55e[_0x5989('0xc7')]('ck-revision-history-root--active',_0x28a71c[_0x5989('0x119')][_0x5989('0xf2')][_0x5989('0x111')](_0x3ac927[_0x5989('0x50')]));}):_0x28a71c[_0x5989('0xa9')](_0x5989('0xf9')+_0x3ac927['id']));});}),this['listenTo'](this['editor'][_0x5989('0x64')][_0x5989('0x119')]['document'],'mouseover',(_0x4c85ba,_0x30d040)=>{if(this[_0x5989('0x105')])return;const _0x431df3=this[_0x5989('0xd3')](_0x30d040['target']),_0x4e9276=this['_changeIdToChange'][_0x5989('0x1d')](_0x431df3);_0x4e9276?(this[_0x5989('0x2b')]={'x':_0x30d040[_0x5989('0x57')]['x'],'y':_0x30d040[_0x5989('0x57')]['y']},this['activeView']=this[_0x5989('0x123')](_0x4e9276)):(this[_0x5989('0x2b')]=null,this[_0x5989('0x96')]=null);}),this[_0x5989('0x10b')](this[_0x5989('0x9a')][_0x5989('0x64')][_0x5989('0x119')][_0x5989('0xf2')],_0x5989('0x3'),(_0x2c3ca8,_0x4be9ae)=>{const _0x5bcf04=this[_0x5989('0xd3')](_0x4be9ae['target']),_0x39ca62=this[_0x5989('0x26')][_0x5989('0x1d')](_0x5bcf04);_0x39ca62?(this[_0x5989('0x2b')]={'x':_0x4be9ae[_0x5989('0x57')]['x'],'y':_0x4be9ae[_0x5989('0x57')]['y']},_0x39ca62===this[_0x5989('0x105')]?this[_0x5989('0xe8')][_0x5989('0x4')]():this[_0x5989('0x105')]=_0x39ca62):(this[_0x5989('0x2b')]=null,this[_0x5989('0x105')]=null);});}[_0x5989('0xd3')](_0x92ead0){do{const _0x1ab26b=_0x92ead0[_0x5989('0xb8')]('data-change-id');if(_0x1ab26b)return _0x1ab26b;_0x92ead0=_0x92ead0[_0x5989('0x62')];}while(_0x92ead0);return null;}[_0x5989('0x3e')](){this[_0x5989('0x9a')]['model'][_0x5989('0x9e')](_0x2db352=>{for(const _0x3fdde4 of this['editor']['model'][_0x5989('0xe3')])_0x2db352[_0x5989('0xe2')](_0x3fdde4);});}}function et(_0x3e3c88,_0x332da1){return(_0xaf6838,_0x42039b,_0x55a3fd)=>{if(!_0x55a3fd[_0x5989('0xc4')][_0x5989('0x36')](_0x42039b[_0x5989('0x106')],_0xaf6838[_0x5989('0xb2')]))return;const _0x5274a8=_0x42039b[_0x5989('0x106')][_0x5989('0xc0')](),_0x880973=_0x42039b['markerRange']['start'],_0x27185f=_0x3e3c88[_0x5989('0x92')]['schema'];let _0x4a3bde=null,_0x618dcb=null,_0x405a25=!0x1,_0x3ea186=!0x1;for(const _0x33a70e of _0x5274a8){const _0x2b2748=_0x33a70e[_0x5989('0x6d')];_0x405a25=_0x405a25||_0x27185f[_0x5989('0xda')](_0x2b2748);const _0x22ddf4=_0x55a3fd[_0x5989('0xeb')][_0x5989('0x34')](_0x2b2748);if(_0x22ddf4&&_0x22ddf4['getCustomProperty'](_0x5989('0x37')))return;_0x5989('0x17')==_0x33a70e[_0x5989('0xd0')]&&(_0x27185f[_0x5989('0xb0')](_0x2b2748)&&!_0x27185f[_0x5989('0x18')](_0x2b2748)&&(_0x2b2748['nextSibling']||_0x880973[_0x5989('0x113')]?_0x4a3bde&&_0x4a3bde[_0x5989('0x62')]==_0x2b2748||(_0x4a3bde=_0x2b2748,_0x1c6910(_0x33a70e['previousPosition']),_0x3ea186=!0x0):_0x618dcb=_0x618dcb||_0x33a70e['previousPosition']));}function _0x1c6910(_0x235b9f){const _0x2adad5=_0x55a3fd[_0x5989('0xeb')][_0x5989('0xfb')](_0x235b9f),_0x30dd52=_0x55a3fd[_0x5989('0x70')][_0x5989('0x29')](_0x5989('0x55'),{'class':_0x5989('0x3a')+_0x332da1});_0x55a3fd['writer'][_0x5989('0x54')](_0x2adad5,_0x30dd52),_0x55a3fd['mapper'][_0x5989('0x77')](_0x30dd52,_0x42039b['markerName']);}_0x405a25||_0x3ea186||!_0x618dcb||_0x1c6910(_0x618dcb);};}export class RestoreRevisionCommand extends _0x3d4b20{constructor(_0x1e0223){super(_0x1e0223);const _0x353dae=_0x1e0223[_0x5989('0x27')][_0x5989('0x1d')](d);this[_0x5989('0x125')]=!0x1,this[_0x5989('0x10b')](_0x353dae,_0x5989('0xf7'),()=>this['refresh']()),this[_0x5989('0x10b')](_0x353dae,_0x5989('0x68'),()=>this[_0x5989('0x115')]());}[_0x5989('0xa3')](){const _0x2b5a66=this[_0x5989('0x9a')],_0x24fc4f=_0x2b5a66[_0x5989('0x27')][_0x5989('0x1d')](d),_0x5d65ac=_0x24fc4f[_0x5989('0xf')]?_0x24fc4f['diff'][_0x5989('0x88')]:null;_0x2b5a66[_0x5989('0xd5')][_0x5989('0x1d')](_0x5989('0x11d'))[_0x5989('0x11a')](_0x5d65ac);}['refresh'](){const {isReady:_0xb81446,isEnabled:_0x4a2d9d}=this[_0x5989('0x9a')]['plugins'][_0x5989('0x1d')](d);this[_0x5989('0x20')]=_0xb81446&&_0x4a2d9d;}}export class ShowChangeCommand extends _0x3d4b20{constructor(_0x1d3ed9,{direction:_0x36c728}){super(_0x1d3ed9);const _0x79faf2=_0x1d3ed9[_0x5989('0x27')][_0x5989('0x1d')](d);this[_0x5989('0x125')]=!0x1,this[_0x5989('0x45')]=_0x5989('0x103')===_0x36c728?0x1:-0x1,this[_0x5989('0x10b')](_0x79faf2,'change:isReady',()=>this['refresh']()),this[_0x5989('0x10b')](_0x79faf2,_0x5989('0x68'),()=>this[_0x5989('0x115')]()),this['listenTo'](_0x79faf2,_0x5989('0x8'),()=>this['refresh']());}[_0x5989('0xa3')](){const _0x42fc16=this[_0x5989('0x9a')],_0x37fb4f=_0x42fc16[_0x5989('0x27')][_0x5989('0x1d')](d),{isNavigationMode:_0x102af3,currentChangeNumber:_0x132156}=_0x37fb4f;let _0x307ce1;if(_0x37fb4f[_0x5989('0x105')]=_0x102af3?_0x37fb4f[_0x5989('0x108')][_0x5989('0x6b')][_0x5989('0x1d')](_0x132156+this['_step']):_0x37fb4f[_0x5989('0x108')][_0x5989('0x6b')]['first'],_0x37fb4f['activeChange'][_0x5989('0xcc')][_0x5989('0xd9')])_0x307ce1=_0x42fc16['editing']['view'][_0x5989('0x84')](_0x37fb4f[_0x5989('0x105')]['rootName']);else{const _0x190817=_0x42fc16[_0x5989('0x92')][_0x5989('0xe3')][_0x5989('0x1d')]('revision:'+_0x37fb4f[_0x5989('0x105')]['id']);_0x307ce1=_0x272b66(_0x42fc16[_0x5989('0x64')],_0x190817);}_0x5cf0d1({'target':_0x307ce1,'viewportOffset':0x28});}[_0x5989('0x115')](){const {isNavigationMode:_0x2b4d9b,currentChangeNumber:_0xf98b75,numberOfChanges:_0x49bc6c,isReady:_0x26d9fe,isEnabled:_0x12f506}=this['editor'][_0x5989('0x27')][_0x5989('0x1d')](d);this[_0x5989('0x20')]=!!(_0x12f506&&_0x26d9fe&&_0x49bc6c)&&(!_0x2b4d9b||(0x1===this[_0x5989('0x45')]?_0xf98b75<_0x49bc6c-0x1:_0xf98b75>0x0));}}
23
+ const _0x1777=['children','markersStart','splice','diffData','target','mousedown','downcastDispatcher','end','toViewPosition','markerNameToElements','markerName','_fixObsoleteTags','comment','rootName','maxOffset','revisionHistoryAttachChange','getClientRects','currentChangeNumber','change','createRevision','reconvertMarker','userId','_markSuggestions','find','isSuggestion','createAttributeElement','deletions','resolve','toViewElement','_setDistance','addRevisionData','merge','string','forEach','revision-suggestion:','filter','removeClass','updatePosition','nodeAfter','_revisions','addRevision','then','item','_step','init','isRemoved','error','elementToAttribute','isOnRoot','isAttached','getItems','values','_sortAndFilterDiffChanges','shift','revision-suggestion','showStack','observeMarkers','nextSibling','ck-revision-history-root--active','includes','ck-suggestion-preview-marker','removeAttribute','addMarker:revision-suggestion:deletion','addClass','return','dataToMarker','enqueueChange','dataDowncast','mapper','suggestion:','refresh','sort','isRemoveSuggestion','ck-suggestion-marker--active','POSITIVE_INFINITY','revision-viewer','getChild','highest','toViewRange','length','markersEnd','has','change:isReady','top','get','vid','repository','changes','restoreRevisionCallback','_changeView','endIndex','isEqual','_appendChild','startsWith','activeChange','from','_makeTape','affectsData','toModel','span','map','insertion','-new','isAtEnd','_processTape','isReady','isContent','_markMismatchedRemovedTags','offsetSize','_setChanges','_markMarkers','getIndex','isCollapsed','data','keys','parent','hasAttribute','activeView','data-revision-','forward','previousPosition','markers','test','_initInteractions','_balloon','distance','catch','getRevisionData','getDomRoot','text','isAtStart','editor','conversion','split','flat','createUIElement','editing','getAttribute','destroy','isAdded','_findChangeIdFromDomTarget','pairId','RevisionsRepository','push','element:pre','forceDisabled','isLimit','vid_end','_removeUnsupportedChanges','newRevisionId','deletion','addHighlight','processor','elementEnd','createRange','isEnabled','markerToHighlight','add','setAttribute','modelRange','bottom','ck-suggestion-marker-','uiElement','ck-suggestion-preview-marker-','_getRevisionsRange','createRangeIn','restoreRevision','isObject','_getChangeFromId','viewItem','getCustomProperty','elementStart','editingDowncast','isNavigationMode','_markInsertions','attributes','_cleanUp','ck-revision-history-root-','ck-suggestion-marker-split','_getDiff','document','_removeRevisionMarkers','model','markerRange','commands','compare','upcast','unbindElementFromMarkerName','view','left','name','attachChange','_makeModelFromTape','code','loadRevisionData','getRootNames','object','RevisionViewer','_makeModelFromViewString','revision-comment:','checkAttribute','revision:','insert','unshift','_refreshStartEndIndex','_removeMissingPairs','startIndex','_joinTapes','findIndex','revisionHistoryLabel','getRevision','isBefore','isIncorrect','ck-revision-history-root-add','consumable','element','nextPosition','removeMarker:revision','markerToData','_threeWayMerge','domConverter','indexOf','pop','for','delete','plugins','WidgetToolbarRepository','remove','change:activeView','writer','isAfter','softBreak','revision-end','set','_update','start','attributesAfter','attribute:vid','changeId','bindElementToMarker','mouseover','getAttributes','diff','ck-suggestion-marker-merge','ck-suggestion-marker','concat','next','config','selection','slice','consume','insertions','_activeViewTarget','getRoot','high','enableReadOnlyMode','change:numberOfChanges','_setConversion','adapter','index','listenTo','data-change-id','side','abs','type','vid_start','createPositionFromPath','revisionHistory','revision','useFillerType','isBlock','_changeIdToChange','suggestion','detachRoot','addMarker:revision-suggestion:insertion','mapViewToDom','getWalker','bind','_getViewForChange','hasClass','revision-start','change:activeChange','createPositionBefore','low','domEvent','_cleanMarkers','schema','isInline','isAddSuggestion','change:isEnabled','level'];(function(_0x136578,_0x177717){const _0x88890b=function(_0x2c71c2){while(--_0x2c71c2){_0x136578['push'](_0x136578['shift']());}};_0x88890b(++_0x177717);}(_0x1777,0xb5));const _0x8889=function(_0x136578,_0x177717){_0x136578=_0x136578-0x0;let _0x88890b=_0x1777[_0x136578];return _0x88890b;};import{Plugin as _0x2c0c97,Command as _0x53c07f}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1c74cd}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x41155c}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x15ab90,Element as _0xed5a84,Text as _0x1b7bcb,ViewDocumentFragment as _0x36a454,ViewText as _0x20cdb8,ViewElement as _0x5b4354,ViewContainerElement as _0x1c8f8c,ViewAttributeElement as _0x43ad0d,ViewEmptyElement as _0x3b63bb,ViewRawElement as _0x1a479a,ViewUIElement as _0x2baa8a}from'ckeditor5/src/engine.js';import{Users as _0x3151f3,getMarkerDomElement as _0x466862}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3bd9c5 from'./ui/revisionviewer/changedetailsview.js';import _0xee87b1 from'./revisionsrepository.js';import _0x43f9a8 from'./changeitem.js';import{default as _0x453cae}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x4cb777}from'lodash-es';const tt={'c':_0x1c8f8c,'a':_0x43ad0d,'e':_0x3b63bb,'r':_0x1a479a,'u':_0x2baa8a};export default class d extends _0x2c0c97{static get['pluginName'](){return'RevisionViewer';}static get['requires'](){return[_0x3151f3,_0x41155c,_0xee87b1];}constructor(_0x1cf7a7){super(_0x1cf7a7),this[_0x8889('0xc4')]=this[_0x8889('0xf1')][_0x8889('0x2c')][_0x8889('0xc2')](_0x8889('0xfc')),this[_0x8889('0x34')](_0x8889('0xcc'),null),this[_0x8889('0x34')](_0x8889('0xe3'),null),this['_activeViewTarget']=null,this[_0x8889('0x34')](_0x8889('0x3d'),null),this[_0x8889('0x34')](_0x8889('0xd7'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x8889('0x6c'),(_0x43f588,_0x1879f7,_0xc1e726)=>{this[_0x8889('0xcc')]=null,this[_0x8889('0xe3')]=null,this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x80')](_0x3ff6f6=>{for(const _0x33dad7 of this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x122')]['roots'])_0xc1e726?_0x3ff6f6[_0x8889('0x92')]('ck-editor__editable__overlay',_0x33dad7):_0x3ff6f6[_0x8889('0xad')]('ck-editor__editable__overlay',_0x33dad7);});}),this[_0x8889('0x60')](_0x8889('0x11b'))['to'](this,_0x8889('0xcc'),_0x37e1a0=>null!==_0x37e1a0),this[_0x8889('0x60')](_0x8889('0x7f'))['to'](this,_0x8889('0xd7'),this,'diff',this,'activeChange',(_0x342212,_0x3a7cc9,_0x462cb2)=>_0x342212&&_0x462cb2?_0x3a7cc9[_0x8889('0xc5')][_0x8889('0xdd')](_0x462cb2):0x0),this['bind']('numberOfChanges')['to'](this,_0x8889('0xd7'),this,_0x8889('0x3d'),(_0x882d98,_0x4ad344)=>_0x882d98?_0x4ad344['changes'][_0x8889('0xbd')]:0x0),this[_0x8889('0xc7')]=null,this['_changeIdToChange']=new Map(),this[_0x8889('0x4d')]=null,this[_0x8889('0xea')]=this[_0x8889('0xf1')]['plugins'][_0x8889('0xc2')](_0x41155c);}[_0x8889('0x9a')](){const _0x116827=this['editor'],_0x1f02f3=new ShowChangeCommand(_0x116827,{'direction':'backward'}),_0x3997ba=new ShowChangeCommand(_0x116827,{'direction':'forward'});(_0x116827[_0x8889('0x3')][_0x8889('0x10b')]('showPreviousChange',_0x1f02f3),_0x116827[_0x8889('0x3')][_0x8889('0x10b')]('showNextChange',_0x3997ba),_0x116827[_0x8889('0x3')][_0x8889('0x10b')](_0x8889('0x114'),new RestoreRevisionCommand(_0x116827)),this['on'](_0x8889('0x4b'),()=>{_0x1f02f3[_0x8889('0xb4')](),_0x3997ba['refresh']();}),this[_0x8889('0x4c')](),this[_0x8889('0xe9')](),_0x116827[_0x8889('0x4a')](_0x8889('0xb9')),_0x116827[_0x8889('0x2c')][_0x8889('0xbf')](_0x8889('0x2d')))&&_0x116827[_0x8889('0x2c')][_0x8889('0xc2')]('WidgetToolbarRepository')[_0x8889('0xff')](_0x8889('0xb9'));}async[_0x8889('0xed')](_0x4658d4){await this[_0x8889('0xd')](_0x4658d4);const _0x3ebff4={};for(const _0x2fcd48 in _0x4658d4[_0x8889('0x71')]){if(_0x4658d4[_0x8889('0x71')][_0x2fcd48][_0x8889('0xa')]&&!_0x4658d4[_0x8889('0x71')][_0x2fcd48][_0x8889('0xa')][_0x8889('0x9f')])continue;const _0x2296f0=this[_0x8889('0x0')](JSON['parse'](_0x4658d4[_0x8889('0x71')][_0x2fcd48][_0x8889('0x46')])),_0x40fa0a=this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x122')],_0x3b4f9d=new _0x36a454(_0x40fa0a,_0x2296f0[_0x8889('0xd2')](_0x41c7d5=>this['_getViewObj'](_0x41c7d5)));this[_0x8889('0xf1')][_0x8889('0xdf')]['processor'][_0x8889('0x58')]('marked'),_0x3ebff4[_0x2fcd48]=this[_0x8889('0xf1')][_0x8889('0xdf')][_0x8889('0x106')]['toData'](_0x3b4f9d),this[_0x8889('0xf1')]['data'][_0x8889('0x106')]['useFillerType']('default');}return _0x3ebff4;}async['getRevisionRootsAttributes'](_0x527e53){await this[_0x8889('0xd')](_0x527e53);const _0x20aa3e={};for(const _0x3ebafa in _0x527e53[_0x8889('0x71')])_0x527e53[_0x8889('0x71')][_0x3ebafa]['attachChange']&&!_0x527e53[_0x8889('0x71')][_0x3ebafa][_0x8889('0xa')]['isAttached']||(_0x20aa3e[_0x3ebafa]=_0x527e53[_0x8889('0x71')][_0x3ebafa][_0x8889('0x37')]||{});return _0x20aa3e;}[_0x8889('0x0')](_0x2bab15){return(_0x2bab15=_0x2bab15[_0x8889('0x91')](_0x54f38d=>!_0x54f38d[_0x8889('0x9')]||_0x8889('0x63')!==_0x54f38d[_0x8889('0x9')]&&_0x8889('0x33')!==_0x54f38d[_0x8889('0x9')]))[_0x8889('0x8f')](_0x3e268b=>{_0x8889('0x8e')!=typeof _0x3e268b&&(_0x3e268b[_0x8889('0x6e')]=this[_0x8889('0x0')](_0x3e268b['children']),_0x3e268b[_0x8889('0x11d')]=_0x3e268b[_0x8889('0x11d')]['filter'](_0x17ce05=>!_0x17ce05[0x0]['startsWith'](_0x8889('0xe4'))));}),_0x2bab15;}async[_0x8889('0x4')](_0x5a7b1c,_0x25257b,_0x5af36b=!0x1){if(!this[_0x8889('0x109')])return;const _0x5c6306=this['diff'],_0x28bafc=this[_0x8889('0xc4')],_0x368e10=_0x8889('0x8e')==typeof _0x5a7b1c?_0x28bafc[_0x8889('0x1d')](_0x5a7b1c):_0x5a7b1c,_0xae4680='string'==typeof _0x25257b?_0x28bafc[_0x8889('0x1d')](_0x25257b):_0x25257b,_0x4a6838=_0x368e10['id'],_0x3f7209=_0xae4680?_0xae4680['id']:null;if(!_0x5af36b&&this[_0x8889('0x3d')]&&this[_0x8889('0x3d')][_0x8889('0x103')]===_0x4a6838&&this[_0x8889('0x3d')]['oldRevisionId']===_0x3f7209)return Promise['resolve']();this[_0x8889('0xd7')]=!0x1,this[_0x8889('0xe3')]=null,this[_0x8889('0xcc')]=null,this['diff']=new _0x453cae(_0x4a6838,_0x3f7209);const _0x26fbcb=this[_0x8889('0x112')](_0x368e10,_0xae4680,!0x0)[_0x8889('0xd2')](_0xd58ecf=>this[_0x8889('0xd')](_0xd58ecf));return _0x26fbcb[_0x8889('0xfd')](new Promise(_0x1b62f0=>{setTimeout(_0x1b62f0,0x14);})),Promise['all'](_0x26fbcb)[_0x8889('0x97')](()=>{if(!this['isEnabled'])return;this[_0x8889('0x11e')]();const _0x4a17ac=this[_0x8889('0x121')](_0x4a6838,_0x3f7209);for(const _0x5ddd17 of _0x4a17ac[_0x8889('0xc5')])this[_0x8889('0x5a')][_0x8889('0x34')](_0x5ddd17['id'],_0x5ddd17);this['editor'][_0x8889('0x1')][_0x8889('0xb0')]({'isUndoable':!0x1},_0x1c8aff=>{for(const _0x442347 of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0xe')]())_0x1c8aff[_0x8889('0x5c')](_0x442347);for(const _0x19dda7 of Object[_0x8889('0xe0')](_0x4a17ac['model'])){const _0x1c7ee6=_0x1c8aff['addRoot'](_0x19dda7);for(const _0x4f6db9 of Object[_0x8889('0xe0')](_0x4a17ac[_0x8889('0x11d')][_0x19dda7]))_0x1c8aff[_0x8889('0x10c')](_0x4f6db9,_0x4a17ac[_0x8889('0x11d')][_0x19dda7][_0x4f6db9],_0x1c7ee6);_0x1c8aff[_0x8889('0x15')](_0x4a17ac[_0x8889('0x1')][_0x19dda7],_0x1c7ee6,0x0);}}),this[_0x8889('0x3d')][_0x8889('0xdb')](this[_0x8889('0xa2')](_0x4a17ac[_0x8889('0xc5')])),this['isReady']=!0x0;})[_0x8889('0xec')](_0xb59d07=>{console[_0x8889('0x9c')](_0xb59d07),this[_0x8889('0x11e')](),_0x5c6306&&(this[_0x8889('0x3d')]=_0x5c6306),this['isReady']=!0x0;});}[_0x8889('0x8c')](_0x471a76,_0x37050a){const _0x4168c7=this[_0x8889('0xc4')][_0x8889('0x81')](_0x471a76);return _0x4168c7['on'](_0x8889('0x35'),(_0xa3b70c,_0x5c3794,_0x53f188)=>_0x37050a(_0x5c3794,_0x53f188,_0x4168c7)),this['repository'][_0x8889('0x96')](_0x4168c7),_0x4168c7;}[_0x8889('0xd')](_0x4d5292){if(!_0x4d5292||_0x4d5292[_0x8889('0x71')])return Promise[_0x8889('0x89')]();{const _0x378b6d=this[_0x8889('0xf1')][_0x8889('0x42')][_0x8889('0xc2')]('collaboration.channelId');return this[_0x8889('0x4d')]['getRevision']({'channelId':_0x378b6d,'revisionId':_0x4d5292['id']})[_0x8889('0x97')](_0x3f15d9=>{_0x4d5292['_update']({'diffData':_0x3f15d9[_0x8889('0x71')]},!0x0);});}}[_0x8889('0x11e')](){this['activeChange']=null,this[_0x8889('0x68')](),this[_0x8889('0xc7')]&&this[_0x8889('0xc7')][_0x8889('0xf8')](),this['_changeView']=null,this[_0x8889('0x5a')]['clear'](),this[_0x8889('0xf1')]['model']['enqueueChange']({'isUndoable':!0x1},_0x4cdd65=>{for(const _0x5be85b of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0xe')]())_0x4cdd65[_0x8889('0x5c')](_0x5be85b);});}[_0x8889('0xa2')](_0x4a6fa6){const _0x1c5a39=[],_0x49c5a3=new Map();for(const _0x233490 of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0xe')]()){const _0x4190d4=this['editor'][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0xee')](_0x233490);if(!_0x4190d4)continue;const _0xcaf9f9=_0x4190d4[_0x8889('0x7e')]()[_0x8889('0x98')](0x0);_0xcaf9f9&&(_0x1c5a39['push'](_0x233490),_0x49c5a3['set'](_0x233490,_0xcaf9f9));}return _0x1c5a39['sort']((_0x52f1f7,_0x389cf2)=>{const _0x479d24=_0x49c5a3[_0x8889('0xc2')](_0x52f1f7),_0x473e7a=_0x49c5a3[_0x8889('0xc2')](_0x389cf2);return _0x479d24['y']-_0x473e7a['y']||_0x479d24['x']-_0x473e7a['x'];}),(_0x4a6fa6=_0x4a6fa6[_0x8889('0x91')](_0x302ec4=>_0x1c5a39['includes'](_0x302ec4[_0x8889('0x7b')])))[_0x8889('0xb5')]((_0x3131b2,_0x54ef8b)=>_0x1c5a39[_0x8889('0x28')](_0x3131b2['rootName'])-_0x1c5a39['indexOf'](_0x54ef8b[_0x8889('0x7b')])),_0x4a6fa6;}[_0x8889('0xce')](_0x47aca2){const _0x4adad4=Array['from'](_0x47aca2[_0x8889('0xe7')])[_0x8889('0x91')](([_0x2077be,_0xa8e793])=>_0x2077be[_0x8889('0xcb')](_0x8889('0x14'))&&!_0xa8e793[_0x8889('0xde')]),_0x3f7e98=Array[_0x8889('0xcd')](this['editor'][_0x8889('0x1')][_0x8889('0x113')](_0x47aca2)[_0x8889('0x5f')]({'singleCharacters':!0x0}));if(0x0!=_0x4adad4['length'])for(const _0x4366a6 of _0x3f7e98){const [_0x36dd66,_0x146491]=_0x4adad4[0x0],[,_0x4aaae2,_0x134377]=_0x36dd66['split'](':');if(_0x146491[_0x8889('0x75')][_0x8889('0xc9')](_0x4366a6[_0x8889('0x23')])&&_0x4adad4[_0x8889('0xa3')](),(_0x4366a6['previousPosition'][_0x8889('0xc9')](_0x146491[_0x8889('0x36')])||_0x4366a6['previousPosition'][_0x8889('0x31')](_0x146491[_0x8889('0x36')]))&&(_0x8889('0xd3')==_0x4aaae2?_0x4366a6[_0x8889('0xf9')]={'userId':_0x134377}:_0x8889('0x104')==_0x4aaae2&&(_0x4366a6[_0x8889('0x9b')]={'userId':_0x134377})),0x0==_0x4adad4[_0x8889('0xbd')])break;}return _0x3f7e98;}['_refreshStartEndIndex'](_0x214250){const _0x4344b7=new Map();for(let _0x298976=0x0;_0x298976<_0x214250[_0x8889('0xbd')];_0x298976++)_0x8889('0xef')===_0x214250[_0x298976][_0x8889('0x53')]?(_0x214250[_0x298976][_0x8889('0x98')][_0x8889('0x19')]=_0x298976,_0x214250[_0x298976]['item'][_0x8889('0xc8')]=_0x298976):(_0x8889('0x119')===_0x214250[_0x298976][_0x8889('0x53')]?_0x214250[_0x298976][_0x8889('0x98')][_0x8889('0x19')]=_0x298976:_0x8889('0x107')===_0x214250[_0x298976][_0x8889('0x53')]&&(_0x214250[_0x298976][_0x8889('0x98')][_0x8889('0xc8')]=_0x298976),_0x4344b7[_0x8889('0x34')](_0x214250[_0x298976]['id'],_0x298976));for(const _0x4dd838 of _0x4344b7[_0x8889('0xa1')]())'elementStart'===_0x214250[_0x4dd838][_0x8889('0x53')]?_0x214250[_0x4dd838][_0x8889('0x98')][_0x8889('0xc8')]=_0x4344b7[_0x8889('0xc2')](_0x214250[_0x4dd838][_0x8889('0xfb')]):_0x8889('0x107')===_0x214250[_0x4dd838][_0x8889('0x53')]&&(_0x214250[_0x4dd838][_0x8889('0x98')]['startIndex']=_0x4344b7['get'](_0x214250[_0x4dd838]['pairId']));}[_0x8889('0xd6')](_0x404aa3){for(let _0x5847ea=0x0;_0x5847ea<_0x404aa3[_0x8889('0xbd')];_0x5847ea++){if('elementStart'===_0x404aa3[_0x5847ea][_0x8889('0x53')])_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0x19')]=_0x5847ea;else{if(_0x8889('0x107')===_0x404aa3[_0x5847ea][_0x8889('0x53')]){_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0xc8')]=_0x5847ea;const _0x1d434b=_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0x19')];_0x404aa3[_0x1d434b][_0x8889('0xfb')]=_0x404aa3[_0x5847ea]['id'],_0x404aa3[_0x5847ea]['pairId']=_0x404aa3[_0x1d434b]['id'];}else _0x404aa3[_0x5847ea][_0x8889('0x98')]['startIndex']=_0x5847ea,_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0xc8')]=_0x5847ea,_0x404aa3[_0x5847ea][_0x8889('0xfb')]=null;}_0x404aa3[_0x5847ea][_0x8889('0x6f')]||(_0x404aa3[_0x5847ea][_0x8889('0x6f')]=[],_0x404aa3[_0x5847ea][_0x8889('0xbe')]=[]);}}[_0x8889('0x11c')](_0x2414d5,_0x2bb674){const _0x35c407=_0x2414d5[_0x8889('0x91')](_0x4d5daa=>!_0x4d5daa[_0x8889('0xf9')]);for(let _0x4e032d=0x0;_0x4e032d<_0x2bb674[_0x8889('0xbd')];_0x4e032d++)_0x2bb674[_0x4e032d][_0x8889('0xf9')]&&(_0x35c407[_0x4e032d]['isAdded']=_0x2bb674[_0x4e032d][_0x8889('0xf9')]);}[_0x8889('0x11')](_0x220b2c){const _0xc7cbbd=JSON['parse'](_0x220b2c),_0x29cd25=this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x122')],_0x23f890=new _0x36a454(_0x29cd25,_0xc7cbbd['map'](_0x1942ba=>this['_getViewObj'](_0x1942ba)));return this[_0x8889('0xf1')][_0x8889('0xdf')][_0x8889('0xd0')](_0x23f890);}['_getViewObj'](_0x2717e4){const _0x31cf1c=this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x122')];if(_0x8889('0x8e')==typeof _0x2717e4)return new _0x20cdb8(_0x31cf1c,_0x2717e4);{const _0x140f1d=_0x2717e4[_0x8889('0x6e')][_0x8889('0xd2')](_0x3784ac=>this['_getViewObj'](_0x3784ac));return new(tt[_0x2717e4[(_0x8889('0x53'))]]||_0x5b4354)(_0x31cf1c,_0x2717e4[_0x8889('0x9')],_0x2717e4[_0x8889('0x11d')],_0x140f1d);}}['_getDiff'](_0x221111,_0x566b31=null){const _0x1bc5cb=this['repository'][_0x8889('0x1d')](_0x221111),_0x2ca1f7=_0x566b31?this[_0x8889('0xc4')][_0x8889('0x1d')](_0x566b31):null,_0x44b169=this[_0x8889('0x112')](_0x1bc5cb,_0x2ca1f7),_0x1bb079=_0x44b169[_0x44b169['length']-0x1],_0x1518bf=new Map(),_0x5dd5bc={'model':{},'attributes':{},'changes':[]},_0x261d84=new Set(),_0x551a70=new Map();for(let _0x11ca5e=_0x44b169[_0x8889('0xbd')]-0x1;_0x11ca5e>=0x0;_0x11ca5e--){const _0x17e0c5=_0x44b169[_0x11ca5e];for(const _0x44ba3e of Object[_0x8889('0xe0')](_0x17e0c5[_0x8889('0x71')]))if(_0x17e0c5[_0x8889('0x71')][_0x44ba3e][_0x8889('0xa')]){const _0xc535fd=_0x17e0c5['diffData'][_0x44ba3e][_0x8889('0xa')];_0xc535fd[_0x8889('0x9f')]?(_0x261d84[_0x8889('0x10b')](_0x44ba3e),_0x551a70[_0x8889('0xbf')](_0x44ba3e)&&_0x551a70[_0x8889('0xc2')](_0x44ba3e)[_0x8889('0x83')]==_0xc535fd[_0x8889('0x83')]?_0x551a70[_0x8889('0x2b')](_0x44ba3e):_0x551a70['set'](_0x44ba3e,_0xc535fd)):_0x551a70['has'](_0x44ba3e)?(_0x261d84['delete'](_0x44ba3e),_0x551a70['delete'](_0x44ba3e)):(_0x261d84[_0x8889('0x10b')](_0x44ba3e),_0x551a70['set'](_0x44ba3e,_0xc535fd));}else _0x261d84[_0x8889('0x10b')](_0x44ba3e);}for(const _0x29021b of _0x261d84){const _0x27fb2a=_0x551a70[_0x8889('0xbf')](_0x29021b)&&!_0x551a70[_0x8889('0xc2')](_0x29021b)[_0x8889('0x9f')];let _0x49d4ae=_0x27fb2a?_0x44b169[_0x8889('0xbd')]-0x1:0x0;const _0x3a3126=_0x27fb2a?-0x1:0x1;for(;_0x44b169[_0x49d4ae];){const _0x9b2a5d=_0x44b169[_0x49d4ae];if(_0x9b2a5d[_0x8889('0x71')][_0x29021b]){const _0x4a7415=_0x27fb2a?_0x9b2a5d[_0x8889('0x71')][_0x29021b]['attributesBefore']:_0x9b2a5d['diffData'][_0x29021b]['attributesAfter'];_0x5dd5bc[_0x8889('0x11d')][_0x29021b]=_0x4a7415?_0x4cb777(_0x4a7415):{};break;}_0x49d4ae+=_0x3a3126;}}for(const _0x1bfc69 of _0x44b169){_0x1bfc69[_0x8889('0x1')]={};for(const _0x1e87d4 of _0x1bfc69['authors'])_0x1518bf[_0x8889('0x34')](_0x1e87d4['id'],_0x1e87d4);for(const _0x19b065 of _0x261d84){const _0x198e10=_0x1bfc69[_0x8889('0x71')][_0x19b065]?_0x1bfc69[_0x8889('0x71')][_0x19b065][_0x8889('0x46')]:'[]',_0x2719c7=_0x1bfc69[_0x8889('0x71')][_0x19b065]?_0x1bfc69['diffData'][_0x19b065][_0x8889('0x88')]:'[]';_0x1bfc69[_0x8889('0x1')][_0x19b065]={'insertions':this[_0x8889('0x11')](_0x198e10),'deletions':this[_0x8889('0x11')](_0x2719c7)};}}for(const _0x33827c of _0x261d84){let _0x226f4a=null,_0x29038d=0x0;const _0x3af2e5=new Map(Array[_0x8889('0xcd')](_0x1bc5cb['model'][_0x33827c]['insertions'][_0x8889('0xe7')])['filter'](([_0x2c30c0])=>!_0x2c30c0[_0x8889('0xcb')](_0x8889('0x14'))));let _0x10eef6=0x0;for(const _0x2afc4a of _0x44b169){const _0x39cdae=this[_0x8889('0xce')](_0x2afc4a[_0x8889('0x1')][_0x33827c]['insertions']);_0x2afc4a==_0x1bc5cb?(_0x226f4a=_0x39cdae,_0x29038d=_0x226f4a[_0x8889('0xbd')],_0x226f4a[_0x8889('0x8f')](_0x4634ff=>{_0x4634ff['id']=_0x10eef6++;}),this[_0x8889('0xd6')](_0x226f4a)):this[_0x8889('0x11c')](_0x226f4a,_0x39cdae);const _0x50e185=_0x226f4a['filter'](_0x3f5a5b=>!_0x3f5a5b[_0x8889('0xf9')])[_0x8889('0xd2')](_0x5b1776=>_0x5b1776['id']);let _0x4a3bfb=0x0;const _0x2c1f12=this[_0x8889('0xce')](_0x2afc4a[_0x8889('0x1')][_0x33827c][_0x8889('0x88')]);_0x2c1f12[_0x8889('0x8f')](_0x3bbd2a=>{_0x3bbd2a['isRemoved']?_0x3bbd2a['id']=_0x29038d++:_0x3bbd2a['id']=_0x50e185[_0x4a3bfb++];}),this[_0x8889('0xd6')](_0x2c1f12),this[_0x8889('0x8b')](_0x226f4a,_0x8889('0xf9')),this[_0x8889('0x8b')](_0x2c1f12,_0x8889('0x9b')),_0x2afc4a==_0x1bc5cb&&this[_0x8889('0xdc')](_0x226f4a,_0x3af2e5),_0x226f4a=this[_0x8889('0x1a')](_0x226f4a,_0x2c1f12),this[_0x8889('0x17')](_0x226f4a),this['_setDistance'](_0x226f4a,'isRemoved');}_0x226f4a=_0x226f4a['filter'](_0x1a6cc5=>!(_0x1a6cc5[_0x8889('0xf9')]&&_0x1a6cc5['isRemoved']));const _0x817428=new Map(_0x1bb079[_0x8889('0x1')][_0x33827c]['deletions']['markers']),_0x3f390d=new Set(_0x3af2e5[_0x8889('0xe0')]());for(const _0x18a095 of _0x817428[_0x8889('0xe0')]())_0x3f390d[_0x8889('0x2b')](_0x18a095);this['_markSuggestions'](_0x226f4a,_0x3f390d),this[_0x8889('0x79')](_0x226f4a),_0x226f4a=this[_0x8889('0x18')](_0x226f4a),_0x226f4a=this[_0x8889('0xd9')](_0x226f4a),_0x226f4a=this[_0x8889('0x102')](_0x226f4a);const {root:_0x2f918c,changes:_0x3c5d6b}=this[_0x8889('0xb')](_0x226f4a,_0x1518bf,_0x33827c);_0x5dd5bc['model'][_0x33827c]=_0x2f918c;const _0x392401=_0x551a70[_0x8889('0xc2')](_0x33827c);if(_0x392401){const _0x238168=_0x1518bf['get'](_0x392401['userId']),_0x2c1978=new _0x43f9a8({'author':_0x238168,'type':_0x392401[_0x8889('0x9f')]?_0x8889('0x10b'):_0x8889('0x2e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33827c});_0x3c5d6b[_0x8889('0x16')](_0x2c1978),_0x5dd5bc[_0x8889('0x11d')][_0x33827c][_0x8889('0x7d')]=_0x2c1978['id'];}_0x5dd5bc[_0x8889('0xc5')]=_0x5dd5bc['changes'][_0x8889('0x40')](_0x3c5d6b);}return _0x5dd5bc;}[_0x8889('0xdc')](_0x55471f,_0x170a44){for(let _0x16dee6=0x0;_0x16dee6<_0x55471f['length'];_0x16dee6++)for(const [_0x5ce21e,_0x11a796]of _0x170a44)_0x11a796['start'][_0x8889('0xc9')](_0x55471f[_0x16dee6]['previousPosition'])&&_0x55471f[_0x16dee6][_0x8889('0x6f')][_0x8889('0xfd')](_0x5ce21e),_0x11a796[_0x8889('0x75')][_0x8889('0xc9')](_0x55471f[_0x16dee6]['nextPosition'])&&_0x55471f[_0x16dee6]['markersEnd']['push'](_0x5ce21e);}[_0x8889('0x1a')](_0x3ff3bb,_0xfad5bd){let _0x2ef325=[],_0x3d4307=0x0,_0x4a4d8a=0x0;for(;_0x3d4307<_0x3ff3bb[_0x8889('0xbd')]||_0x4a4d8a<_0xfad5bd[_0x8889('0xbd')];){const _0x1adc36=_0x3ff3bb[_0x3d4307]||{},_0x43491b=_0xfad5bd[_0x4a4d8a]||{};if(_0x1adc36['id']==_0x43491b['id'])_0x3d4307++,_0x4a4d8a++,_0x2ef325[_0x8889('0xfd')](_0x1adc36);else{if(_0x43491b[_0x8889('0x9b')]&&_0x1adc36['isAdded']){const {commonTape:_0x3fd854,iEnd:_0x3d4462,jEnd:_0x2e43cf}=this[_0x8889('0x26')](_0x3ff3bb,_0x3d4307,_0xfad5bd,_0x4a4d8a);_0x2ef325=_0x2ef325['concat'](_0x3fd854),_0x3d4307=_0x3d4462,_0x4a4d8a=_0x2e43cf;}else _0x43491b[_0x8889('0x9b')]?(_0x4a4d8a++,_0x2ef325['push'](_0x43491b)):(_0x3d4307++,_0x2ef325[_0x8889('0xfd')](_0x1adc36));}}return _0x2ef325;}[_0x8889('0x84')](_0x121a3c,_0x4f0443){const _0x5f028d=[];for(let _0x2fe1a6=0x0;_0x2fe1a6<_0x121a3c[_0x8889('0xbd')];_0x2fe1a6++){for(let _0x31f16b=0x0;_0x31f16b<_0x121a3c[_0x2fe1a6][_0x8889('0x6f')][_0x8889('0xbd')];_0x31f16b++){const _0x25ed3f=_0x121a3c[_0x2fe1a6]['markersStart'][_0x31f16b];if(!_0x4f0443[_0x8889('0xbf')](_0x25ed3f))continue;const {group:_0x43fe55,type:_0x136c26,authorId:_0x3a806e}=_0x137f73(_0x25ed3f);_0x8889('0xa4')!=_0x43fe55||_0x8889('0xd3')!=_0x136c26&&_0x8889('0x104')!=_0x136c26||(_0x5f028d[_0x8889('0x16')]({'type':_0x136c26,'name':_0x25ed3f,'userId':_0x3a806e}),_0x121a3c[_0x2fe1a6][_0x8889('0x6f')][_0x8889('0x70')](_0x31f16b,0x1),_0x31f16b--);}_0x3170ac(_0x121a3c[_0x2fe1a6]);for(let _0x1a16c6=0x0;_0x1a16c6<_0x121a3c[_0x2fe1a6][_0x8889('0xbe')][_0x8889('0xbd')];_0x1a16c6++){const _0x48ab61=_0x121a3c[_0x2fe1a6]['markersEnd'][_0x1a16c6];if(!_0x4f0443[_0x8889('0xbf')](_0x48ab61))continue;const {group:_0x5a09fc,type:_0x3d290e}=_0x137f73(_0x48ab61);if(_0x8889('0xa4')!=_0x5a09fc||_0x8889('0xd3')!=_0x3d290e&&_0x8889('0x104')!=_0x3d290e)continue;_0x121a3c[_0x2fe1a6][_0x8889('0xbe')][_0x8889('0x70')](_0x1a16c6,0x1),_0x1a16c6--;const _0x52c8e3=_0x5f028d[_0x8889('0x1b')](_0x384aa1=>_0x384aa1[_0x8889('0x9')]==_0x48ab61);_0x52c8e3>-0x1&&_0x5f028d[_0x8889('0x70')](_0x52c8e3,0x1);}}function _0x137f73(_0x4d276e){const _0x272482=_0x4d276e[_0x8889('0xf3')](':');return{'group':_0x272482[0x0],'type':_0x272482[0x1],'subType':_0x272482[_0x8889('0xbd')]>=0x5?_0x272482[0x2]:null,'id':_0x272482[_0x8889('0xbd')]<0x5?_0x272482[0x2]:_0x272482[0x3],'authorId':_0x272482[_0x8889('0xbd')]<0x5?_0x272482[0x3]:_0x272482[0x4],'markerCount':0x6==_0x272482['length']?_0x272482[0x5]:null};}function _0x3170ac(_0x59e40d){for(let _0x393c46=0x0;_0x393c46<_0x5f028d['length'];_0x393c46++){if(_0x59e40d[_0x8889('0xf9')]&&'insertion'==_0x5f028d[_0x393c46][_0x8889('0x53')])return _0x59e40d[_0x8889('0x6b')]=_0x5f028d[_0x393c46],void delete _0x59e40d[_0x8889('0xf9')];if(!_0x59e40d[_0x8889('0xf9')]&&!_0x59e40d[_0x8889('0x9b')]&&'deletion'==_0x5f028d[_0x393c46][_0x8889('0x53')])return void(_0x59e40d[_0x8889('0xb6')]=_0x5f028d[_0x393c46]);}}}[_0x8889('0x8b')](_0x3cddb7,_0x529bef){let _0x4cb168=0x0,_0x302129=!0x1;const _0x2d7d4e=new Map();for(const _0x42fb3b of _0x3cddb7)_0x42fb3b[_0x529bef]?_0x302129&&(_0x4cb168++,_0x302129=!0x1):(_0x4cb168++,_0x302129=!0x0),_0x2d7d4e['set'](_0x42fb3b['id'],_0x4cb168);for(let _0x2c5a50=0x0;_0x2c5a50<_0x3cddb7[_0x8889('0xbd')];_0x2c5a50++){if(_0x8889('0x9b')==_0x529bef&&_0x3cddb7[_0x2c5a50][_0x8889('0xf9')]||_0x8889('0xf9')==_0x529bef&&_0x3cddb7[_0x2c5a50]['isRemoved'])continue;if(_0x8889('0xef')==_0x3cddb7[_0x2c5a50][_0x8889('0x53')]){_0x3cddb7[_0x2c5a50][_0x8889('0xeb')]=0x0;continue;}const _0xe3aba=_0x2d7d4e[_0x8889('0xc2')](_0x3cddb7[_0x2c5a50][_0x8889('0xfb')]),_0x23bc35=_0x2d7d4e[_0x8889('0xc2')](_0x3cddb7[_0x2c5a50]['id']);_0x3cddb7[_0x2c5a50][_0x8889('0xeb')]=_0xe3aba-_0x23bc35;}}[_0x8889('0x112')](_0x21d47c,_0x5a85c0,_0x17eef6=!0x1){const _0x3c10b4=[];let _0x1f4fe7=this['repository'][_0x8889('0xdd')](_0x21d47c),_0x1a19d4=this['repository'][_0x8889('0xdd')](_0x5a85c0);for(-0x1==_0x1a19d4&&(_0x1a19d4=this[_0x8889('0xc4')][_0x8889('0x95')][_0x8889('0xbd')],_0x17eef6=!0x1);_0x1f4fe7<_0x1a19d4;)_0x3c10b4[_0x8889('0xfd')](this[_0x8889('0xc4')]['getRevision'](_0x1f4fe7)),_0x1f4fe7++;return _0x17eef6&&_0x3c10b4[_0x8889('0xfd')](this[_0x8889('0xc4')]['getRevision'](_0x1f4fe7)),_0x3c10b4;}[_0x8889('0x26')](_0x22a847,_0x429b3c,_0x16277e,_0x2c1095){const _0x2b56a0=this[_0x8889('0xf1')]['model'][_0x8889('0x69')];let _0x3b75cf=_0x429b3c;for(;_0x22a847[_0x3b75cf]&&_0x22a847[_0x3b75cf]['isAdded'];)_0x3b75cf++;let _0x29ed8d=_0x2c1095;for(;_0x16277e[_0x29ed8d]&&_0x16277e[_0x29ed8d][_0x8889('0x9b')];)_0x29ed8d++;_0x3cd3d2(_0x22a847,_0x429b3c,_0x3b75cf),_0x3cd3d2(_0x16277e,_0x2c1095,_0x29ed8d);const _0xa7cdbb=_0x16277e[_0x8889('0x44')](_0x2c1095,_0x29ed8d)['concat'](_0x22a847['slice'](_0x429b3c,_0x3b75cf));return _0xa7cdbb[_0x8889('0xb5')]((_0x5792ad,_0x1f71a6)=>_0x5792ad['side']!=_0x1f71a6[_0x8889('0x51')]?_0x5792ad[_0x8889('0x51')]-_0x1f71a6[_0x8889('0x51')]:_0x5792ad['level']!=_0x1f71a6[_0x8889('0x6d')]?_0x5792ad[_0x8889('0x6d')]-_0x1f71a6[_0x8889('0x6d')]:_0x5792ad['distance']!=_0x1f71a6[_0x8889('0xeb')]?_0x1f71a6[_0x8889('0xeb')]-_0x5792ad[_0x8889('0xeb')]:!!_0x5792ad[_0x8889('0xf9')]!=!!_0x1f71a6[_0x8889('0xf9')]?-0x1==_0x5792ad[_0x8889('0x51')]||0x0==_0x5792ad[_0x8889('0x51')]?_0x5792ad[_0x8889('0xf9')]?-0x1:0x1:_0x5792ad['isAdded']?0x1:-0x1:_0x5792ad['index']-_0x1f71a6[_0x8889('0x4e')]),{'commonTape':_0xa7cdbb,'iEnd':_0x3b75cf,'jEnd':_0x29ed8d};function _0x3cd3d2(_0x25a5c5,_0xa40919,_0xb54b02){let _0x1fbfb8=-0x1,_0x1d717c=Number[_0x8889('0xb8')],_0x341521=!0x0;for(let _0x1e11e9=_0xa40919;_0x1e11e9<_0xb54b02;_0x1e11e9++)if(_0x2b56a0[_0x8889('0x6a')](_0x25a5c5[_0x1e11e9][_0x8889('0x98')])||(_0x341521=!0x1),_0x25a5c5[_0x1e11e9][_0x8889('0x98')][_0x8889('0x19')]<_0xa40919&&(_0x1fbfb8=_0x1e11e9),_0x25a5c5[_0x1e11e9][_0x8889('0x98')][_0x8889('0xc8')]>=_0xb54b02){_0x1d717c=_0x1e11e9;break;}_0x341521&&(_0x1fbfb8=_0xb54b02-0x1);for(let _0x1efc45=_0xa40919;_0x1efc45<_0xb54b02;_0x1efc45++)_0x25a5c5[_0x1efc45][_0x8889('0x51')]=_0x1efc45<=_0x1fbfb8?-0x1:_0x1efc45<_0x1d717c?0x0:0x1,_0x25a5c5[_0x1efc45][_0x8889('0x4e')]=_0x1efc45;let _0x461114=0x0;for(let _0x49a628=_0xa40919;_0x49a628<=_0x1fbfb8;_0x49a628++)0x0==_0x25a5c5[_0x49a628][_0x8889('0xeb')]?_0x25a5c5[_0x49a628][_0x8889('0x6d')]=_0x461114:(_0x461114++,_0x25a5c5[_0x49a628][_0x8889('0x6d')]=_0x461114,_0x461114++);for(let _0x5020fd=_0xa40919;_0x5020fd<_0xb54b02;_0x5020fd++)0x0==_0x25a5c5[_0x5020fd][_0x8889('0x51')]&&(_0x25a5c5[_0x5020fd][_0x8889('0x6d')]=_0x461114);_0x461114=0x0;for(let _0x2e3549=_0xb54b02-0x1;_0x2e3549>=_0x1d717c;_0x2e3549--)0x0==_0x25a5c5[_0x2e3549][_0x8889('0xeb')]?_0x25a5c5[_0x2e3549]['level']=_0x461114:(_0x461114--,_0x25a5c5[_0x2e3549][_0x8889('0x6d')]=_0x461114,_0x461114--);}}[_0x8889('0x79')](_0x487e02){const _0x27098e=new Map(),_0x4dd148=this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x69')];for(let _0x1cfcb0=0x1;_0x1cfcb0<_0x487e02['length'];_0x1cfcb0++){let _0x400f11,_0x576ec5,_0x75830;const _0x2ff171=_0x487e02[_0x1cfcb0],_0x3057b8=_0x487e02[_0x1cfcb0-0x1];if(_0x8889('0xef')==_0x2ff171[_0x8889('0x53')])continue;if(_0x2ff171[_0x8889('0x53')]!=_0x3057b8[_0x8889('0x53')])continue;if(!_0x4dd148[_0x8889('0x59')](_0x3057b8[_0x8889('0x98')])||_0x4dd148[_0x8889('0x100')](_0x3057b8['item']))continue;if(!_0x4dd148[_0x8889('0x59')](_0x2ff171[_0x8889('0x98')])||_0x4dd148[_0x8889('0x100')](_0x2ff171['item']))continue;if((_0x487e02[_0x1cfcb0][_0x8889('0xf9')]||_0x487e02[_0x1cfcb0][_0x8889('0x6b')])&&_0x487e02[_0x1cfcb0-0x1]['isRemoved'])_0x400f11=_0x487e02[_0x1cfcb0],_0x576ec5=_0x487e02[_0x1cfcb0-0x1],_0x75830=_0x1cfcb0-0x1;else{if(!_0x487e02[_0x1cfcb0][_0x8889('0x9b')]||!_0x487e02[_0x1cfcb0-0x1][_0x8889('0xf9')]&&!_0x487e02[_0x1cfcb0-0x1][_0x8889('0x6b')])continue;_0x400f11=_0x487e02[_0x1cfcb0-0x1],_0x576ec5=_0x487e02[_0x1cfcb0],_0x75830=_0x1cfcb0;}const _0x177f41=_0x400f11['level']==_0x576ec5[_0x8889('0x6d')],_0x5de0d1=Math['abs'](_0x400f11[_0x8889('0x6d')])<Math[_0x8889('0x52')](_0x576ec5[_0x8889('0x6d')])&&0x0==_0x576ec5[_0x8889('0xeb')];(_0x177f41||_0x5de0d1)&&(_0x27098e[_0x8889('0x34')](_0x576ec5['id'],_0x400f11['id']),_0x487e02[_0x8889('0x70')](_0x75830,0x1),_0x1cfcb0--,_0x400f11[_0x8889('0xf9')]=!0x1);}for(let _0x354f84=0x0;_0x354f84<_0x487e02[_0x8889('0xbd')];_0x354f84++)_0x27098e[_0x8889('0xbf')](_0x487e02[_0x354f84][_0x8889('0xfb')])&&(_0x487e02[_0x354f84][_0x8889('0xfb')]=_0x27098e[_0x8889('0xc2')](_0x487e02[_0x354f84][_0x8889('0xfb')]));}[_0x8889('0x18')](_0x28083d){const _0x3183f3=new Set(_0x28083d[_0x8889('0xd2')](_0x2a36c3=>_0x2a36c3['id']));for(let _0x475a57=0x0;_0x475a57<_0x28083d[_0x8889('0xbd')];_0x475a57++)_0x3183f3[_0x8889('0xbf')](_0x28083d[_0x475a57][_0x8889('0xfb')])||0x0==_0x28083d[_0x475a57]['distance']||(_0x28083d[_0x475a57][_0x8889('0x1f')]=!0x0);return _0x28083d['filter'](_0x50e1c1=>!_0x50e1c1[_0x8889('0x1f')]);}[_0x8889('0xd9')](_0x446652){const _0x28b094=new Set();for(let _0x4e55a7=0x0;_0x4e55a7<_0x446652['length'];_0x4e55a7++){if(_0x28b094[_0x8889('0xbf')](_0x446652[_0x4e55a7]['id'])&&_0x446652[_0x4e55a7][_0x8889('0x9b')]&&(_0x446652[_0x4e55a7][_0x8889('0x1f')]=!0x0),_0x446652[_0x4e55a7][_0x8889('0x1f')])continue;if(0x0==_0x446652[_0x4e55a7][_0x8889('0xeb')])continue;if(_0x8889('0x119')!=_0x446652[_0x4e55a7][_0x8889('0x53')])continue;if(null==_0x446652[_0x4e55a7][_0x8889('0xfb')])continue;let _0x507edf=_0x4e55a7+0x1,_0x400ed0=0x0;for(;_0x446652[_0x507edf]['id']!=_0x446652[_0x4e55a7][_0x8889('0xfb')];)_0x8889('0x119')==_0x446652[_0x507edf][_0x8889('0x53')]?_0x400ed0++:_0x8889('0x107')==_0x446652[_0x507edf][_0x8889('0x53')]&&_0x400ed0--,_0x507edf++;if(0x0!=_0x400ed0){if(_0x446652[_0x4e55a7][_0x8889('0x9b')])_0x446652[_0x4e55a7][_0x8889('0x1f')]=!0x0;else for(;_0x507edf!=_0x4e55a7;)_0x446652[_0x507edf]['isRemoved']&&0x0!=_0x446652[_0x507edf][_0x8889('0xeb')]&&(_0x446652[_0x507edf][_0x8889('0x1f')]=!0x0,_0x28b094[_0x8889('0x10b')](_0x446652[_0x507edf]['pairId'])),_0x507edf--;}}return _0x446652[_0x8889('0x91')](_0x546238=>!_0x546238['isIncorrect']);}['_removeUnsupportedChanges'](_0x28e2a2){const _0x297df2=this['editor'][_0x8889('0x1')][_0x8889('0x69')];for(let _0x309cdc=0x0;_0x309cdc<_0x28e2a2[_0x8889('0xbd')];_0x309cdc++){if(!(_0x28e2a2[_0x309cdc][_0x8889('0xf9')]||_0x28e2a2[_0x309cdc]['isAddSuggestion']||_0x28e2a2[_0x309cdc][_0x8889('0x9b')]||_0x28e2a2[_0x309cdc][_0x8889('0xb6')]))continue;if(0x0==_0x28e2a2[_0x309cdc][_0x8889('0xeb')])continue;const _0x240792=_0x28e2a2[_0x309cdc][_0x8889('0x98')];_0x297df2['isBlock'](_0x240792)||_0x297df2['isLimit'](_0x240792)||(_0x28e2a2[_0x309cdc]['isAdded']&&delete _0x28e2a2[_0x309cdc][_0x8889('0xf9')],_0x28e2a2[_0x309cdc][_0x8889('0x6b')]&&delete _0x28e2a2[_0x309cdc][_0x8889('0x6b')],_0x28e2a2[_0x309cdc][_0x8889('0xb6')]&&delete _0x28e2a2[_0x309cdc]['isRemoveSuggestion'],_0x28e2a2[_0x309cdc][_0x8889('0x9b')]&&(_0x28e2a2[_0x309cdc][_0x8889('0x1f')]=!0x0));}return _0x28e2a2[_0x8889('0x91')](_0xf153a7=>!_0xf153a7[_0x8889('0x1f')]);}[_0x8889('0xb')](_0x361fa4,_0xd8b662,_0x1ea2a6){const _0x4a3209=new _0x15ab90(),_0x38093f=[],_0x5aa3e6=new Map(),_0x2b2643=this['editor'][_0x8889('0x1')],_0x1e9c65=_0x2b2643[_0x8889('0x69')],_0x5a8435=[_0x4a3209],_0x1842dc={},_0x14fd18={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x48a0df=null;const _0x18bbdb=[0x0];for(let _0x298410=0x0;_0x298410<_0x361fa4[_0x8889('0xbd')];_0x298410++){let _0x2adf10,_0x499413;if(_0x8889('0x119')===_0x361fa4[_0x298410]['type']){_0x2adf10=_0x2b2643[_0x8889('0x55')](_0x4a3209,_0x18bbdb);const _0x27e534=new _0xed5a84(_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0x9')],_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0x3c')]());_0x5a8435[0x0][_0x8889('0xca')](_0x27e534),_0x18bbdb['push'](0x0),_0x5a8435['unshift'](_0x27e534),_0x499413=_0x2b2643['createPositionFromPath'](_0x4a3209,_0x18bbdb),_0x48a0df=null;}else{if(_0x8889('0x107')===_0x361fa4[_0x298410][_0x8889('0x53')])_0x5a8435[_0x8889('0xa3')](),_0x2adf10=_0x2b2643['createPositionFromPath'](_0x4a3209,_0x18bbdb),_0x18bbdb[_0x8889('0x29')](),_0x18bbdb[_0x18bbdb[_0x8889('0xbd')]-0x1]++,_0x499413=_0x2b2643[_0x8889('0x55')](_0x4a3209,_0x18bbdb),_0x48a0df=null;else{if(_0x2adf10=_0x2b2643[_0x8889('0x55')](_0x4a3209,_0x18bbdb),_0x48a0df&&_0x33035f(_0x48a0df,_0x361fa4[_0x298410]['item']))_0x48a0df['_data']+=_0x361fa4[_0x298410][_0x8889('0x98')]['data'];else{const _0x4abcd6=new _0x1b7bcb(_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0xdf')],_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0x3c')]());_0x5a8435[0x0][_0x8889('0xca')](_0x4abcd6),_0x48a0df=_0x4abcd6;}_0x18bbdb[_0x18bbdb[_0x8889('0xbd')]-0x1]+=_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0xda')],_0x499413=_0x2b2643['createPositionFromPath'](_0x4a3209,_0x18bbdb);}}for(const _0x44bcbd of _0x361fa4[_0x298410][_0x8889('0x6f')])_0x5aa3e6['set'](_0x44bcbd,{'start':_0x2adf10,'end':null});_0x34975d(_0x8889('0xb6'),_0x298410,_0x2adf10,_0x499413),_0x34975d(_0x8889('0x6b'),_0x298410,_0x2adf10,_0x499413),_0x34975d('isRemoved',_0x298410,_0x2adf10,_0x499413),_0x34975d(_0x8889('0xf9'),_0x298410,_0x2adf10,_0x499413);for(const _0x4158d2 of _0x361fa4[_0x298410][_0x8889('0xbe')]){_0x5aa3e6[_0x8889('0xc2')](_0x4158d2)[_0x8889('0x75')]=_0x499413;}}for(const [_0x13133e,_0x3b54ae]of _0x5aa3e6){const _0x30cf29=this[_0x8889('0xf1')]['model']['createRange'](_0x3b54ae[_0x8889('0x36')],_0x3b54ae[_0x8889('0x75')]);_0x4a3209[_0x8889('0xe7')][_0x8889('0x34')](_0x13133e,_0x30cf29);}return _0x38093f['sort']((_0x56c9e8,_0x548a38)=>{const _0x2f46e7=_0x4a3209[_0x8889('0xe7')][_0x8889('0xc2')](_0x8889('0x14')+_0x56c9e8['id']),_0x1d7cb9=_0x4a3209['markers'][_0x8889('0xc2')](_0x8889('0x14')+_0x548a38['id']);return _0x2f46e7[_0x8889('0x36')][_0x8889('0x1e')](_0x1d7cb9[_0x8889('0x36')])?-0x1:_0x2f46e7[_0x8889('0x36')]['isAfter'](_0x1d7cb9[_0x8889('0x36')])?0x1:_0x2f46e7[_0x8889('0x75')][_0x8889('0x1e')](_0x1d7cb9[_0x8889('0x75')])?-0x1:_0x2f46e7['end'][_0x8889('0x31')](_0x1d7cb9[_0x8889('0x75')])?0x1:'add'===_0x56c9e8[_0x8889('0x53')]?-0x1:0x1;}),{'root':_0x4a3209,'changes':_0x38093f};function _0x34975d(_0x14dc64,_0xbe39f5,_0x404971,_0x1d2b29){const _0x2fedee=!!_0x361fa4[_0xbe39f5][_0x14dc64],_0x110cdb=_0x2fedee?_0x361fa4[_0xbe39f5][_0x14dc64]['userId']:null,_0x491599=_0xbe39f5===_0x361fa4[_0x8889('0xbd')]-0x1,_0x3f467a=_0x14fd18[_0x14dc64][0x0],_0x28f8c1=_0x1e9c65[_0x8889('0x115')](_0x361fa4[_0xbe39f5][_0x8889('0x98')]);!_0x1842dc[_0x14dc64]&&_0x2fedee?_0x1842dc[_0x14dc64]={'start':_0x404971,'tapeItem':_0x361fa4[_0xbe39f5],'userId':_0x110cdb,'type':_0x14dc64}:_0x1842dc[_0x14dc64]&&!_0x2fedee?(_0x1842dc[_0x14dc64][_0x8889('0x75')]=_0x404971,_0x1aaeb1(_0x1842dc[_0x14dc64]),_0x1842dc[_0x14dc64]=null):_0x1842dc[_0x14dc64]&&_0x2fedee&&_0x1842dc[_0x14dc64][_0x8889('0x83')]!==_0x110cdb&&(_0x1842dc[_0x14dc64][_0x8889('0x75')]=_0x404971,_0x3f467a&&_0x3f467a['userId']===_0x1842dc[_0x14dc64][_0x8889('0x83')]||_0x1aaeb1(_0x1842dc[_0x14dc64]),_0x1842dc[_0x14dc64]={'start':_0x404971,'tapeItem':_0x361fa4[_0xbe39f5],'userId':_0x110cdb,'type':_0x14dc64}),_0x1842dc[_0x14dc64]&&_0x28f8c1&&(_0x8889('0x119')!==_0x361fa4[_0xbe39f5]['type']||_0x3f467a&&_0x3f467a[_0x8889('0x83')]===_0x110cdb||_0x14fd18[_0x14dc64][_0x8889('0x16')]({'userId':_0x110cdb,'object':_0x361fa4[_0xbe39f5][_0x8889('0x98')],'change':_0x1842dc[_0x14dc64]}),_0x8889('0x107')===_0x361fa4[_0xbe39f5][_0x8889('0x53')]&&_0x3f467a&&_0x3f467a[_0x8889('0xf')]===_0x361fa4[_0xbe39f5][_0x8889('0x98')]&&(_0x14fd18[_0x14dc64]['shift'](),_0x1842dc[_0x14dc64]=_0x3f467a[_0x8889('0x80')])),_0x1842dc[_0x14dc64]&&_0x491599&&(_0x1842dc[_0x14dc64][_0x8889('0x75')]=_0x1d2b29,_0x1aaeb1(_0x1842dc[_0x14dc64]),_0x1842dc[_0x14dc64]=null);}function _0x1aaeb1({start:_0x1c4eaf,end:_0x3fcd7f,tapeItem:_0x375fcc,userId:_0x12525e,type:_0x1f06c1}){const _0x1dde79=_0x375fcc['item'],_0x440dfc=_0x2b2643[_0x8889('0x69')][_0x8889('0x59')](_0x1dde79)&&!_0x2b2643[_0x8889('0x69')][_0x8889('0x100')](_0x1dde79),_0x61bf38=_0x1c4eaf['nodeAfter']==_0x3fcd7f[_0x8889('0xe1')]&&_0x3fcd7f[_0x8889('0xf0')];if(_0x440dfc&&_0x61bf38)return;const _0x164695=_0x2b2643[_0x8889('0x108')](_0x1c4eaf,_0x3fcd7f),_0x3e6043=_0xd8b662[_0x8889('0xc2')](_0x12525e),_0x1d4bb9=new _0x43f9a8({'author':_0x3e6043,'type':'isAdded'==_0x1f06c1||_0x8889('0x6b')==_0x1f06c1?_0x8889('0x10b'):_0x8889('0x2e'),'data':{'isSuggestion':_0x8889('0x6b')==_0x1f06c1||_0x8889('0xb6')==_0x1f06c1},'createdAt':new Date(),'rootName':_0x1ea2a6});_0x38093f[_0x8889('0xfd')](_0x1d4bb9),_0x4a3209['markers'][_0x8889('0x34')]('revision:'+_0x1d4bb9['id'],_0x164695);}function _0x33035f(_0x19b4b6,_0x2dd893){const _0x25ea8b=_0x19b4b6[_0x8889('0x3c')](),_0x51594a=_0x2dd893[_0x8889('0x3c')]();for(const _0xabb36d of _0x25ea8b){if(_0xabb36d[0x1]!==_0x2dd893['getAttribute'](_0xabb36d[0x0]))return!0x1;_0x51594a[_0x8889('0x41')]();}return _0x51594a[_0x8889('0x41')]()['done'];}}[_0x8889('0x4c')](){this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))['dataToMarker']({'view':'revision'}),this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x11a'))[_0x8889('0x10a')]({'model':_0x8889('0x57'),'view':_0x41fecb=>{const _0x315a74=_0x41fecb['markerName'][_0x8889('0xf3')](':')[0x1],_0x24142a=this[_0x8889('0x116')](_0x315a74);if(!_0x24142a)return null;const _0x33eda1=_0x8889('0x10b')==_0x24142a[_0x8889('0x53')]?_0x8889('0xd3'):_0x8889('0x104'),_0x521ef0=[_0x8889('0x3f'),_0x8889('0x10f')+_0x33eda1];return _0x24142a['data'][_0x8889('0x86')]&&_0x521ef0[_0x8889('0xfd')](_0x8889('0x10f')+_0x33eda1+_0x8889('0xd4')),this[_0x8889('0xcc')]==_0x24142a&&_0x521ef0[_0x8889('0xfd')](_0x8889('0xb7')),{'classes':_0x521ef0,'attributes':{'data-change-id':_0x315a74}};}}),this[_0x8889('0xf1')]['conversion'][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0x10b')](_0x2cad25=>{_0x2cad25['on'](_0x8889('0xfe'),(_0x1bd63c,_0x38f051,_0x25319b)=>{const _0x4e11e9=_0x38f051['viewItem'][_0x8889('0xba')](0x0);if(!_0x4e11e9||!_0x4e11e9['is'](_0x8889('0x22'),_0x8889('0xc')))return;if(!_0x25319b[_0x8889('0x21')][_0x8889('0x45')](_0x4e11e9,{'attributes':[_0x8889('0x54'),_0x8889('0x101')]}))return;const _0x129225=_0x38f051[_0x8889('0x10d')]['start'][_0x8889('0x94')];_0x25319b['writer'][_0x8889('0x10c')]('vid_start',_0x4e11e9[_0x8889('0xf7')](_0x8889('0x54')),_0x129225),_0x25319b[_0x8889('0x30')]['setAttribute']('vid_end',_0x4e11e9[_0x8889('0xf7')](_0x8889('0x101')),_0x129225);},{'priority':'low'});}),this[_0x8889('0xf1')][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0x10b')](_0x5b7433=>{_0x5b7433['on'](_0x8889('0x22'),(_0x3788e9,_0x3bee70,_0x95b490)=>{if(!_0x95b490[_0x8889('0x21')]['consume'](_0x3bee70[_0x8889('0x117')],{'attributes':[_0x8889('0x54'),_0x8889('0x101')]}))return;if(_0x3bee70[_0x8889('0x10d')][_0x8889('0xde')])return;const _0x4f47ce=_0x3bee70['modelRange'][_0x8889('0x36')][_0x8889('0x94')];_0x4f47ce[_0x8889('0xe2')](_0x8889('0x54'))||_0x4f47ce[_0x8889('0xe2')](_0x8889('0xc3'))||(_0x95b490[_0x8889('0x30')][_0x8889('0x10c')](_0x8889('0x54'),_0x3bee70[_0x8889('0x117')]['getAttribute']('vid_start'),_0x4f47ce),_0x95b490[_0x8889('0x30')][_0x8889('0x10c')](_0x8889('0x101'),_0x3bee70[_0x8889('0x117')][_0x8889('0xf7')](_0x8889('0x101')),_0x4f47ce));},{'priority':_0x8889('0x66')});}),this['editor'][_0x8889('0xf2')]['for']('upcast')[_0x8889('0x9d')]({'view':{'name':_0x8889('0xd1'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43889c=>_0x43889c[_0x8889('0xf7')]('vid')}}),this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x69')]['on'](_0x8889('0x13'),(_0x39f315,[,_0x904687])=>{[_0x8889('0x54'),_0x8889('0x101'),_0x8889('0xc3')][_0x8889('0xa9')](_0x904687)&&(_0x39f315[_0x8889('0xae')]=!0x0,_0x39f315['stop']());},{'priority':_0x8889('0xbb')}),this[_0x8889('0xf1')]['conversion'][_0x8889('0x2a')]('dataDowncast')[_0x8889('0x10b')](_0x280856=>{_0x280856['on'](_0x8889('0x38'),(_0x325ec3,_0x540cff,_0x59c7b0)=>{if('\x20'!=_0x540cff[_0x8889('0x98')]['data']||_0x540cff['item'][_0x8889('0xe1')][_0x8889('0x7c')]>0x1)return;if(!_0x59c7b0[_0x8889('0x21')][_0x8889('0x45')](_0x540cff[_0x8889('0x98')],_0x325ec3[_0x8889('0x9')]))return;const _0x4dbb10=_0x59c7b0[_0x8889('0x30')],_0x129944=_0x59c7b0[_0x8889('0xb2')][_0x8889('0xbc')](_0x540cff['range']);_0x4dbb10['wrap'](_0x129944,_0x4dbb10[_0x8889('0x87')](_0x8889('0xd1')));});}),this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0xb1'))[_0x8889('0x25')]({'model':_0x8889('0x57')}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on']('addMarker:revision',function(_0x31f9e3){const _0x2babde=_0x31f9e3[_0x8889('0x2c')][_0x8889('0xc2')](_0x8889('0x10'));return(_0x52ea39,_0x3655cc,_0x1e96bb)=>{const _0x2c4b61=_0x3655cc[_0x8889('0x78')][_0x8889('0xf3')](':')[0x1],_0x274e77=_0x2babde[_0x8889('0x116')](_0x2c4b61);if(!_0x274e77)return null;const _0xc022cf=_0x8889('0x10b')==_0x274e77[_0x8889('0x53')]?_0x8889('0xf3'):'merge';if(!_0x1e96bb[_0x8889('0x21')][_0x8889('0xe8')](_0x3655cc[_0x8889('0x2')],_0x52ea39[_0x8889('0x9')]))return;const _0x4d18dd=_0x3655cc[_0x8889('0x2')][_0x8889('0x5f')](),_0x2394a2=_0x3655cc['markerRange'][_0x8889('0x36')],_0x2e98fe=_0x31f9e3[_0x8889('0x1')][_0x8889('0x69')];let _0x52f973=null,_0x91bdb=null,_0x3a27c1=!0x1,_0x5900b7=!0x1;for(const _0x42a8fc of _0x4d18dd){const _0x550c6f=_0x42a8fc[_0x8889('0x98')];_0x3a27c1=_0x3a27c1||_0x2e98fe[_0x8889('0xd8')](_0x550c6f);const _0x4aa806=_0x1e96bb[_0x8889('0xb2')][_0x8889('0x8a')](_0x550c6f);if(_0x4aa806&&_0x4aa806['getCustomProperty'](_0x8889('0x105')))return;_0x8889('0x107')==_0x42a8fc[_0x8889('0x53')]&&(_0x2e98fe[_0x8889('0x59')](_0x550c6f)&&!_0x2e98fe['isLimit'](_0x550c6f)&&(_0x550c6f[_0x8889('0xa7')]||_0x2394a2['isAtEnd']?_0x52f973&&_0x52f973[_0x8889('0xe1')]==_0x550c6f||(_0x52f973=_0x550c6f,_0x8e45af(_0x42a8fc[_0x8889('0xe6')]),_0x5900b7=!0x0):_0x91bdb=_0x91bdb||_0x42a8fc[_0x8889('0xe6')]));}function _0x8e45af(_0x2dc24d){const _0x48c7cd=_0x1e96bb['writer'][_0x8889('0xf5')](_0x8889('0xd1'),{'class':'ck-suggestion-marker-'+_0xc022cf}),_0x3ac8eb=_0x1e96bb[_0x8889('0xb2')][_0x8889('0x76')](_0x2dc24d);_0x274e77['data'][_0x8889('0x86')]&&_0x1e96bb[_0x8889('0x30')]['addClass']('ck-suggestion-marker-'+_0xc022cf+_0x8889('0xd4'),_0x48c7cd),_0x2babde[_0x8889('0xcc')]==_0x274e77&&_0x1e96bb[_0x8889('0x30')]['addClass'](_0x8889('0xb7'),_0x48c7cd),_0x1e96bb[_0x8889('0x30')][_0x8889('0x15')](_0x3ac8eb,_0x48c7cd),_0x1e96bb[_0x8889('0xb2')]['bindElementToMarker'](_0x48c7cd,_0x3655cc[_0x8889('0x78')]);}_0x3a27c1||_0x5900b7||!_0x91bdb||_0x8e45af(_0x91bdb);};}(this[_0x8889('0xf1')]),{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0xf6')]['downcastDispatcher']['on'](_0x8889('0x24'),(_0x1ab6d7,_0x5de708,_0x3dc945)=>{const _0x217b1e=_0x3dc945[_0x8889('0xb2')]['markerNameToElements'](_0x5de708['markerName']);if(_0x217b1e)for(const _0x3e7022 of _0x217b1e)(_0x3e7022['hasClass'](_0x8889('0x120'))||_0x3e7022[_0x8889('0x62')](_0x8889('0x3e')))&&(_0x3dc945[_0x8889('0xb2')][_0x8889('0x6')](_0x3e7022,_0x5de708['markerName']),_0x3dc945[_0x8889('0x30')]['remove'](_0x3e7022));},{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on']('addMarker:revision',(_0x11100d,_0x502a2b,_0x3c9f1e)=>{const _0x1eaeb0=_0x502a2b['markerName']['split'](':')[0x1],_0x5a9094=this[_0x8889('0x116')](_0x1eaeb0);if(!_0x5a9094)return null;const _0x4c08d4=_0x8889('0x10b')==_0x5a9094[_0x8889('0x53')]?_0x8889('0xf3'):_0x8889('0x8d');if(_0x3c9f1e[_0x8889('0x21')][_0x8889('0xe8')](_0x502a2b[_0x8889('0x2')],_0x11100d[_0x8889('0x9')]))for(const _0x18e354 of _0x502a2b[_0x8889('0x2')][_0x8889('0xa0')]()){if(!_0x18e354['is'](_0x8889('0x22'),_0x8889('0x32')))continue;const _0x5b7d55=_0x3c9f1e[_0x8889('0x30')]['createUIElement'](_0x8889('0xd1'),{'class':_0x8889('0x10f')+_0x4c08d4}),_0x5ce8c6=_0x3c9f1e[_0x8889('0xb2')][_0x8889('0x76')](this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x65')](_0x18e354));_0x5a9094[_0x8889('0xdf')]['isSuggestion']&&_0x3c9f1e[_0x8889('0x30')]['addClass']('ck-suggestion-marker-'+_0x4c08d4+'-new',_0x5b7d55),this[_0x8889('0xcc')]==_0x5a9094&&_0x3c9f1e['writer'][_0x8889('0xad')](_0x8889('0xb7'),_0x5b7d55),_0x3c9f1e[_0x8889('0x30')][_0x8889('0x15')](_0x5ce8c6,_0x5b7d55),_0x3c9f1e['mapper']['bindElementToMarker'](_0x5b7d55,_0x502a2b['markerName']);}},{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0x1')]['document']['on'](_0x8889('0x80'),()=>{this['editor'][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x80')](_0x39add2=>{for(const _0xc84f97 of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')]['getRootNames']()){const _0x20646a=this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0x48')](_0xc84f97),_0x31a703=this[_0x8889('0xf1')]['editing']['view'][_0x8889('0x122')][_0x8889('0x48')](_0xc84f97);if(_0x31a703){const _0x5f2b5f=_0x20646a[_0x8889('0xf7')](_0x8889('0x7d'));if(_0x39add2[_0x8889('0xab')](_0x8889('0x50'),_0x31a703),_0x39add2['removeClass'](_0x8889('0x20'),_0x31a703),_0x39add2[_0x8889('0x92')]('ck-revision-history-root-remove',_0x31a703),_0x39add2[_0x8889('0x92')](_0x8889('0xa8'),_0x31a703),_0x5f2b5f){const _0x47bc5f=this['_getChangeFromId'](_0x5f2b5f);if(!_0x47bc5f)return null;_0x39add2['setAttribute'](_0x8889('0x50'),_0x5f2b5f,_0x31a703),_0x39add2[_0x8889('0xad')](_0x8889('0x11f')+_0x47bc5f['type'],_0x31a703),this['activeChange']==_0x47bc5f&&_0x39add2[_0x8889('0xad')](_0x8889('0xa8'),_0x31a703);}}}});}),this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0xaf')]({'view':_0x8889('0x7a'),'model':_0xe7161b=>_0x8889('0x12')+_0xe7161b,'converterPriority':_0x8889('0xbb')}),this[_0x8889('0xf1')][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0xaf')]({'view':_0x8889('0x5b'),'model':_0x5ccf53=>_0x8889('0x90')+_0x5ccf53,'converterPriority':_0x8889('0xbb')}),this['editor']['conversion']['for'](_0x8889('0xb1'))[_0x8889('0x25')]({'model':'revision-suggestion','view':_0x68c45b=>({'name':_0x8889('0xb3')+_0x68c45b,'group':'revision-suggestion'}),'converterPriority':_0x8889('0xbb')}),this[_0x8889('0xf1')][_0x8889('0xf2')]['for'](_0x8889('0x11a'))[_0x8889('0x10a')]({'model':_0x8889('0xa4'),'view':_0xfb1f7b=>{const _0x2961a2=_0xfb1f7b[_0x8889('0x78')][_0x8889('0xf3')](':')[0x1];return _0x8889('0xd3')!=_0x2961a2&&_0x8889('0x104')!=_0x2961a2?null:{'classes':[_0x8889('0xaa'),'ck-suggestion-preview-marker-'+_0x2961a2]};}}),this[_0x8889('0xf1')]['editing'][_0x8889('0x74')]['on'](_0x8889('0xac'),et(this[_0x8889('0xf1')],_0x8889('0x8d')),{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on'](_0x8889('0x5d'),et(this[_0x8889('0xf1')],_0x8889('0xf3')),{'priority':'high'}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on']('removeMarker:revision-suggestion',(_0x2769f9,_0x844e5f,_0x4673ed)=>{const _0x5359f1=_0x4673ed[_0x8889('0xb2')][_0x8889('0x77')](_0x844e5f[_0x8889('0x78')]);if(_0x5359f1)for(const _0x16bb08 of _0x5359f1)_0x16bb08['is'](_0x8889('0x110'))&&(_0x4673ed['mapper'][_0x8889('0x6')](_0x16bb08,_0x844e5f[_0x8889('0x78')]),_0x4673ed[_0x8889('0x30')]['remove'](_0x16bb08));},{'priority':'high'});}[_0x8889('0x116')](_0x4d6384){return this[_0x8889('0x5a')]['get'](_0x4d6384);}['_getViewForChange'](_0x128ce0){return this[_0x8889('0xc7')]&&this[_0x8889('0xc7')][_0x8889('0xf8')](),this[_0x8889('0xc7')]=new _0x3bd9c5(this[_0x8889('0xf1')]['locale'],_0x128ce0),this[_0x8889('0xc7')];}[_0x8889('0xe9')](){this[_0x8889('0xf1')]['model'][_0x8889('0x122')][_0x8889('0x43')][_0x8889('0xa6')](_0x8889('0x57')),this['on'](_0x8889('0x2f'),(_0x442089,_0x2c7a2a,_0x45fdad,_0x363e3b)=>{_0x363e3b&&this['_balloon'][_0x8889('0x2e')](_0x363e3b),_0x45fdad&&(this[_0x8889('0xea')][_0x8889('0x10b')]({'view':_0x45fdad,'stackId':_0x8889('0x1c'),'position':{'target':()=>{const _0x430f46=this[_0x8889('0xf1')][_0x8889('0xf6')],_0x4188e3=this[_0x8889('0x116')](_0x45fdad['changeId']);let _0x531078;if(_0x4188e3['data'][_0x8889('0x9e')]){const _0x225ccc=_0x430f46[_0x8889('0x7')][_0x8889('0xee')](_0x4188e3[_0x8889('0x7b')]);_0x531078=Array[_0x8889('0xcd')](_0x225ccc[_0x8889('0x7e')]());}else{const _0x25214a=this['editor'][_0x8889('0x1')][_0x8889('0xe7')]['get'](_0x8889('0x14')+_0x45fdad[_0x8889('0x39')]);_0x531078=Array[_0x8889('0xcd')](_0x430f46[_0x8889('0xb2')][_0x8889('0x77')](_0x25214a[_0x8889('0x9')]))[_0x8889('0xd2')](_0x1a55fe=>_0x430f46[_0x8889('0x7')][_0x8889('0x27')][_0x8889('0x5e')](_0x1a55fe))['map'](_0x48b65f=>Array[_0x8889('0xcd')](_0x48b65f[_0x8889('0x7e')]()))[_0x8889('0xf4')]();}if(!this['_activeViewTarget'])return _0x531078[0x0];return _0x531078[_0x8889('0x85')](_0x339fbd=>_0x339fbd[_0x8889('0xc1')]-0x3<=this[_0x8889('0x47')]['y']&&_0x339fbd[_0x8889('0x10e')]+0x3>=this[_0x8889('0x47')]['y']&&_0x339fbd[_0x8889('0x8')]-0x3<=this['_activeViewTarget']['x']&&_0x339fbd['right']+0x3>=this['_activeViewTarget']['x'])||_0x531078[0x0];}}}),this[_0x8889('0xea')][_0x8889('0xa5')](_0x8889('0x1c')));}),this['on'](_0x8889('0x64'),(_0x2eca83,_0x377b30,_0x2a8fd3,_0x5037a5)=>{this['activeView']=_0x2a8fd3?this[_0x8889('0x61')](_0x2a8fd3):null,this[_0x8889('0xf1')]['model'][_0x8889('0x80')](()=>{const _0x3cf4bf=this[_0x8889('0xf1')]['editing'];_0x5037a5&&(_0x5037a5[_0x8889('0xdf')][_0x8889('0x9e')]?_0x3cf4bf['view'][_0x8889('0x80')](_0x49de90=>{_0x49de90[_0x8889('0x92')](_0x8889('0xa8'),_0x3cf4bf[_0x8889('0x7')]['document'][_0x8889('0x48')](_0x5037a5[_0x8889('0x7b')]));}):_0x3cf4bf[_0x8889('0x82')](_0x8889('0x14')+_0x5037a5['id'])),_0x2a8fd3&&(_0x2a8fd3[_0x8889('0xdf')]['isOnRoot']?_0x3cf4bf[_0x8889('0x7')][_0x8889('0x80')](_0x257ce8=>{_0x257ce8['addClass'](_0x8889('0xa8'),_0x3cf4bf[_0x8889('0x7')]['document'][_0x8889('0x48')](_0x2a8fd3[_0x8889('0x7b')]));}):_0x3cf4bf[_0x8889('0x82')]('revision:'+_0x2a8fd3['id']));});}),this[_0x8889('0x4f')](this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x122')],_0x8889('0x3b'),(_0x2f4478,_0x9eee44)=>{if(this[_0x8889('0xcc')])return;const _0x42a401=this[_0x8889('0xfa')](_0x9eee44[_0x8889('0x72')]),_0xd6c082=this['_changeIdToChange'][_0x8889('0xc2')](_0x42a401);_0xd6c082?(this[_0x8889('0x47')]={'x':_0x9eee44[_0x8889('0x67')]['x'],'y':_0x9eee44[_0x8889('0x67')]['y']},this[_0x8889('0xe3')]=this[_0x8889('0x61')](_0xd6c082)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x8889('0x4f')](this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x122')],_0x8889('0x73'),(_0x26af05,_0xf7653d)=>{const _0x1a120f=this[_0x8889('0xfa')](_0xf7653d[_0x8889('0x72')]),_0x5472d0=this[_0x8889('0x5a')][_0x8889('0xc2')](_0x1a120f);_0x5472d0?(this[_0x8889('0x47')]={'x':_0xf7653d[_0x8889('0x67')]['x'],'y':_0xf7653d['domEvent']['y']},_0x5472d0===this[_0x8889('0xcc')]?this['_balloon'][_0x8889('0x93')]():this[_0x8889('0xcc')]=_0x5472d0):(this[_0x8889('0x47')]=null,this[_0x8889('0xcc')]=null);});}[_0x8889('0xfa')](_0x6ec06d){do{const _0x1f23fb=_0x6ec06d[_0x8889('0xf7')](_0x8889('0x50'));if(_0x1f23fb)return _0x1f23fb;_0x6ec06d=_0x6ec06d[_0x8889('0xe1')];}while(_0x6ec06d);return null;}[_0x8889('0x68')](){this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x80')](_0x47e991=>{for(const _0x4f9d80 of this[_0x8889('0xf1')]['model'][_0x8889('0xe7')])_0x47e991['removeMarker'](_0x4f9d80);});}}function et(_0x28b8c9,_0xa606a4){return(_0x4293ae,_0x3e4d5a,_0x32ae7c)=>{if(!_0x32ae7c[_0x8889('0x21')]['test'](_0x3e4d5a[_0x8889('0x2')],_0x4293ae['name']))return;const _0x429e82=_0x3e4d5a[_0x8889('0x2')][_0x8889('0x5f')](),_0x37c6b6=_0x3e4d5a['markerRange']['start'],_0x4994d1=_0x28b8c9[_0x8889('0x1')][_0x8889('0x69')];let _0x3b5ae5=null,_0x59d16c=null,_0x14a210=!0x1,_0x573a96=!0x1;for(const _0x11726e of _0x429e82){const _0x1c2bf3=_0x11726e['item'];_0x14a210=_0x14a210||_0x4994d1[_0x8889('0xd8')](_0x1c2bf3);const _0x3817fd=_0x32ae7c[_0x8889('0xb2')]['toViewElement'](_0x1c2bf3);if(_0x3817fd&&_0x3817fd[_0x8889('0x118')](_0x8889('0x105')))return;_0x8889('0x107')==_0x11726e['type']&&(_0x4994d1['isBlock'](_0x1c2bf3)&&!_0x4994d1[_0x8889('0x100')](_0x1c2bf3)&&(_0x1c2bf3['nextSibling']||_0x37c6b6[_0x8889('0xd5')]?_0x3b5ae5&&_0x3b5ae5['parent']==_0x1c2bf3||(_0x3b5ae5=_0x1c2bf3,_0x2043c9(_0x11726e[_0x8889('0xe6')]),_0x573a96=!0x0):_0x59d16c=_0x59d16c||_0x11726e[_0x8889('0xe6')]));}function _0x2043c9(_0x3b0fdc){const _0xed37ca=_0x32ae7c[_0x8889('0xb2')]['toViewPosition'](_0x3b0fdc),_0x176129=_0x32ae7c['writer'][_0x8889('0xf5')]('span',{'class':_0x8889('0x111')+_0xa606a4});_0x32ae7c[_0x8889('0x30')]['insert'](_0xed37ca,_0x176129),_0x32ae7c[_0x8889('0xb2')][_0x8889('0x3a')](_0x176129,_0x3e4d5a[_0x8889('0x78')]);}_0x14a210||_0x573a96||!_0x59d16c||_0x2043c9(_0x59d16c);};}export class RestoreRevisionCommand extends _0x53c07f{constructor(_0x44cd27){super(_0x44cd27);const _0xac581a=_0x44cd27[_0x8889('0x2c')][_0x8889('0xc2')](d);this[_0x8889('0xcf')]=!0x1,this[_0x8889('0x4f')](_0xac581a,_0x8889('0xc0'),()=>this['refresh']()),this[_0x8889('0x4f')](_0xac581a,_0x8889('0x6c'),()=>this[_0x8889('0xb4')]());}['execute'](){const _0x3041c9=this['editor'],_0x5ea531=_0x3041c9['plugins'][_0x8889('0xc2')](d),_0x438430=_0x5ea531[_0x8889('0xd7')]?_0x5ea531[_0x8889('0x3d')][_0x8889('0x103')]:null;_0x3041c9['config'][_0x8889('0xc2')](_0x8889('0x56'))[_0x8889('0xc6')](_0x438430);}[_0x8889('0xb4')](){const {isReady:_0x27b368,isEnabled:_0x4b6f68}=this[_0x8889('0xf1')][_0x8889('0x2c')]['get'](d);this[_0x8889('0x109')]=_0x27b368&&_0x4b6f68;}}export class ShowChangeCommand extends _0x53c07f{constructor(_0x4900c0,{direction:_0x58d02e}){super(_0x4900c0);const _0x5109ea=_0x4900c0[_0x8889('0x2c')]['get'](d);this[_0x8889('0xcf')]=!0x1,this[_0x8889('0x99')]=_0x8889('0xe5')===_0x58d02e?0x1:-0x1,this['listenTo'](_0x5109ea,_0x8889('0xc0'),()=>this['refresh']()),this['listenTo'](_0x5109ea,_0x8889('0x6c'),()=>this[_0x8889('0xb4')]()),this[_0x8889('0x4f')](_0x5109ea,'change:activeChange',()=>this[_0x8889('0xb4')]());}['execute'](){const _0x27af60=this[_0x8889('0xf1')],_0x29b0df=_0x27af60['plugins'][_0x8889('0xc2')](d),{isNavigationMode:_0x5cb5fe,currentChangeNumber:_0x1ddb08}=_0x29b0df;let _0x337b73;if(_0x29b0df[_0x8889('0xcc')]=_0x5cb5fe?_0x29b0df[_0x8889('0x3d')][_0x8889('0xc5')]['get'](_0x1ddb08+this[_0x8889('0x99')]):_0x29b0df['diff'][_0x8889('0xc5')]['first'],_0x29b0df[_0x8889('0xcc')]['data'][_0x8889('0x9e')])_0x337b73=_0x27af60[_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0xee')](_0x29b0df[_0x8889('0xcc')]['rootName']);else{const _0x5a5878=_0x27af60[_0x8889('0x1')][_0x8889('0xe7')][_0x8889('0xc2')]('revision:'+_0x29b0df['activeChange']['id']);_0x337b73=_0x466862(_0x27af60[_0x8889('0xf6')],_0x5a5878);}_0x1c74cd({'target':_0x337b73,'viewportOffset':0x28});}[_0x8889('0xb4')](){const {isNavigationMode:_0x48efac,currentChangeNumber:_0x462a93,numberOfChanges:_0x64816f,isReady:_0x2f28ab,isEnabled:_0x36501e}=this[_0x8889('0xf1')][_0x8889('0x2c')]['get'](d);this[_0x8889('0x109')]=!!(_0x36501e&&_0x2f28ab&&_0x64816f)&&(!_0x48efac||(0x1===this[_0x8889('0x99')]?_0x462a93<_0x64816f-0x1:_0x462a93>0x0));}}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Model } from 'ckeditor5/src/ui';
5
+ import { Model } from 'ckeditor5/src/ui.js';
6
6
  import '../../../theme/revision/revisionactions.css';
7
7
  export interface RevisionDropdownOptions {
8
8
  type: 'button';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x16ed=['panelPosition','threeVerticalDots','button','set','locale','listenTo','Compare\x20against\x20selected','listView','stopPropagation','ck-on','children','source','items','Restore\x20this\x20revision','extendTemplate','add','first','name','isEnabled','isReady','Show\x20more\x20items','_action','bind','class','model','isActionsDropdownOpen','execute','action','function','bindTemplate','isVisible','map','buttonView','ck-revision-history-sidebar__revision__actions','change:isActionsDropdownOpen'];(function(_0xa3dda6,_0x16ed4f){const _0x277947=function(_0x420dfa){while(--_0x420dfa){_0xa3dda6['push'](_0xa3dda6['shift']());}};_0x277947(++_0x16ed4f);}(_0x16ed,0x8f));const _0x2779=function(_0xa3dda6,_0x16ed4f){_0xa3dda6=_0xa3dda6-0x0;let _0x277947=_0x16ed[_0xa3dda6];return _0x277947;};import{Collection as _0x33bd42}from'ckeditor5/src/utils';import{icons as _0x41b544}from'ckeditor5/src/core';import{Model as _0x522c32,addListToDropdown as _0x135280,createDropdown as _0x230b38}from'ckeditor5/src/ui';import{getTranslation as _0x339830}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3b0c3c,_0x478742){const _0x2917d1=_0x3b0c3c[_0x2779('0x1a')],_0x574f3f=_0x3b0c3c['locale'],_0x33582f=_0x230b38(_0x574f3f);_0x33582f[_0x2779('0x20')]='sw';const _0x59b51b=function(_0x22c1e4,_0x2b5d9d){const _0x5b5b28=function(_0xd5d3c,_0x2fe33b){const _0xff7817=_0xd5d3c[_0x2779('0x1')],_0x308033={'Compare\x20against\x20selected':_0x339830(_0xff7817,_0x2779('0x3')),'Name\x20this\x20revision':_0x339830(_0xff7817,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x339830(_0xff7817,_0x2779('0xa'))};return _0x2fe33b[_0x2779('0x1c')](_0x5aa5ec=>{const _0x338194=_0x308033[_0x5aa5ec['name']];return _0x338194&&_0x338194!==_0x5aa5ec[_0x2779('0xe')]&&(_0x5aa5ec[_0x2779('0xe')]=_0x338194),_0x5aa5ec;});}(_0x22c1e4,_0x2b5d9d),_0x51d8bd=new _0x33bd42();for(const _0x445c62 of _0x5b5b28){const _0xc33dfd={'type':_0x2779('0x22'),'model':new _0x522c32({'label':_0x445c62[_0x2779('0xe')],'class':_0x445c62[_0x2779('0x14')],'withText':!0x0,'_action':_0x445c62['action']})};_0xc33dfd[_0x2779('0x15')]['bind'](_0x2779('0xf'))['to'](_0x22c1e4,_0x2779('0x16'),_0x2b381b=>'function'!=typeof _0x445c62[_0x2779('0xf')]||(!_0x2b381b||_0x445c62['isEnabled'](_0x22c1e4))),_0x51d8bd[_0x2779('0xc')](_0xc33dfd);}return _0x51d8bd;}(_0x3b0c3c,_0x478742);return _0x3b0c3c[_0x2779('0x13')](_0x2779('0x16'))['to'](_0x33582f,'isOpen'),_0x33582f[_0x2779('0x1d')][_0x2779('0x0')]({'label':_0x339830(_0x574f3f,_0x2779('0x11')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x41b544[_0x2779('0x21')]}),_0x33582f[_0x2779('0xb')]({'attributes':{'class':[_0x2779('0x1e'),_0x2917d1['if'](_0x2779('0x16'),_0x2779('0x6'))]},'on':{'click':_0x2917d1['to'](_0x385169=>_0x385169[_0x2779('0x5')]())}}),_0x33582f['on'](_0x2779('0x17'),_0xe9b04c=>{_0x3b0c3c[_0x2779('0x10')]&&_0x2779('0x19')==typeof _0xe9b04c[_0x2779('0x8')][_0x2779('0x12')]&&_0xe9b04c[_0x2779('0x8')][_0x2779('0x12')](_0x3b0c3c);}),_0x135280(_0x33582f,_0x59b51b),_0x33582f[_0x2779('0x2')](_0x3b0c3c,_0x2779('0x1f'),(_0x22acac,_0x3e30ee,_0x4ce971)=>{if(_0x4ce971)for(const _0x23c1bc of _0x33582f[_0x2779('0x4')][_0x2779('0x9')]){const _0x1c301b=_0x23c1bc[_0x2779('0x7')][_0x2779('0xd')],_0x29f315=_0x478742['find'](_0x26d83c=>_0x26d83c[_0x2779('0x18')]===_0x1c301b[_0x2779('0x12')])[_0x2779('0x1b')];_0x23c1bc[_0x2779('0x1b')]=void 0x0===_0x29f315||_0x29f315(_0x3b0c3c);}}),_0x33582f;}
23
+ const _0x1e05=['find','add','class','bind','locale','map','change:isActionsDropdownOpen','ck-revision-history-sidebar__revision__actions','execute','Show\x20more\x20items','name','items','listenTo','isEnabled','_action','bindTemplate','function','children','threeVerticalDots','Restore\x20this\x20revision','isActionsDropdownOpen','source','panelPosition','isVisible','action','ck-on','set','listView'];(function(_0x48a0cd,_0x1e05b8){const _0x436471=function(_0x23c8f7){while(--_0x23c8f7){_0x48a0cd['push'](_0x48a0cd['shift']());}};_0x436471(++_0x1e05b8);}(_0x1e05,0x195));const _0x4364=function(_0x48a0cd,_0x1e05b8){_0x48a0cd=_0x48a0cd-0x0;let _0x436471=_0x1e05[_0x48a0cd];return _0x436471;};import{Collection as _0x22bae4}from'ckeditor5/src/utils.js';import{icons as _0x5aa729}from'ckeditor5/src/core.js';import{Model as _0x18c813,addListToDropdown as _0x59d901,createDropdown as _0x2fb0e9}from'ckeditor5/src/ui.js';import{getTranslation as _0x26c0a8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xa06d43,_0x5ecabb){const _0x956a5=_0xa06d43[_0x4364('0x2')],_0xffa2f0=_0xa06d43[_0x4364('0x13')],_0xeebf7=_0x2fb0e9(_0xffa2f0);_0xeebf7[_0x4364('0x9')]='sw';const _0x3ee4d5=function(_0x5728ad,_0x1de4d9){const _0x1c0671=function(_0x8747c9,_0x1b055e){const _0x471b92=_0x8747c9[_0x4364('0x13')],_0x372a21={'Compare\x20against\x20selected':_0x26c0a8(_0x471b92,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x26c0a8(_0x471b92,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x26c0a8(_0x471b92,_0x4364('0x6'))};return _0x1b055e[_0x4364('0x14')](_0x215495=>{const _0x3148ce=_0x372a21[_0x215495[_0x4364('0x19')]];return _0x3148ce&&_0x3148ce!==_0x215495['name']&&(_0x215495['name']=_0x3148ce),_0x215495;});}(_0x5728ad,_0x1de4d9),_0x316ef1=new _0x22bae4();for(const _0x197745 of _0x1c0671){const _0x2a2259={'type':'button','model':new _0x18c813({'label':_0x197745[_0x4364('0x19')],'class':_0x197745[_0x4364('0x11')],'withText':!0x0,'_action':_0x197745[_0x4364('0xb')]})};_0x2a2259['model'][_0x4364('0x12')]('isEnabled')['to'](_0x5728ad,'isActionsDropdownOpen',_0x522c74=>_0x4364('0x3')!=typeof _0x197745[_0x4364('0x0')]||(!_0x522c74||_0x197745[_0x4364('0x0')](_0x5728ad))),_0x316ef1[_0x4364('0x10')](_0x2a2259);}return _0x316ef1;}(_0xa06d43,_0x5ecabb);return _0xa06d43[_0x4364('0x12')](_0x4364('0x7'))['to'](_0xeebf7,'isOpen'),_0xeebf7['buttonView'][_0x4364('0xd')]({'label':_0x26c0a8(_0xffa2f0,_0x4364('0x18')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5aa729[_0x4364('0x5')]}),_0xeebf7['extendTemplate']({'attributes':{'class':[_0x4364('0x16'),_0x956a5['if'](_0x4364('0x7'),_0x4364('0xc'))]},'on':{'click':_0x956a5['to'](_0x361dad=>_0x361dad['stopPropagation']())}}),_0xeebf7['on'](_0x4364('0x17'),_0x169811=>{_0xa06d43['isReady']&&'function'==typeof _0x169811[_0x4364('0x8')][_0x4364('0x1')]&&_0x169811[_0x4364('0x8')]['_action'](_0xa06d43);}),_0x59d901(_0xeebf7,_0x3ee4d5),_0xeebf7[_0x4364('0x1b')](_0xa06d43,_0x4364('0x15'),(_0x1aa2a2,_0x1af7bb,_0x1697bc)=>{if(_0x1697bc)for(const _0x2eeda1 of _0xeebf7[_0x4364('0xe')][_0x4364('0x1a')]){const _0x8185be=_0x2eeda1[_0x4364('0x4')]['first'],_0x274442=_0x5ecabb[_0x4364('0xf')](_0x22f306=>_0x22f306[_0x4364('0xb')]===_0x8185be['_action'])[_0x4364('0xa')];_0x2eeda1[_0x4364('0xa')]=void 0x0===_0x274442||_0x274442(_0xa06d43);}}),_0xeebf7;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x29de=['name','ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010','set','ck-revision-history-sidebar__revision-author_creator','push','Revision\x20author','setTemplate','span','ck-revision-history-sidebar__revision-author__name'];(function(_0x56fde9,_0x29de33){const _0x355afa=function(_0xf1ec3){while(--_0xf1ec3){_0x56fde9['push'](_0x56fde9['shift']());}};_0x355afa(++_0x29de33);}(_0x29de,0x1d1));const _0x355a=function(_0x56fde9,_0x29de33){_0x56fde9=_0x56fde9-0x0;let _0x355afa=_0x29de[_0x56fde9];return _0x355afa;};import{View as _0x3f4447,IconView as _0x5f5b45}from'ckeditor5/src/ui';import{getTranslation as _0x4fd130}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x471b2c from'../../../theme/icons/user.svg';export default class ti extends _0x3f4447{constructor(_0x2d909b,_0x54544a,_0x1491bc){super(_0x2d909b);const _0x22174e=new _0x5f5b45();_0x22174e[_0x355a('0x8')]({'content':_0x471b2c,'viewBox':_0x355a('0x7')});const _0x81680b=['ck',_0x355a('0x6')];_0x1491bc&&_0x81680b[_0x355a('0x0')](_0x355a('0x9'));const _0xe1188c=[{'tag':_0x355a('0x3'),'attributes':{'class':['ck',_0x355a('0x4')],'title':_0x4fd130(_0x2d909b,_0x1491bc?'Revision\x20creator':_0x355a('0x1'))},'children':[_0x22174e,_0x54544a[_0x355a('0x5')]]}];this[_0x355a('0x2')]({'tag':'li','attributes':{'class':_0x81680b},'children':_0xe1188c});}}
23
+ const _0x5c94=['name','span','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','0\x200\x2011\x2010','Revision\x20creator','Revision\x20author','set'];(function(_0xe290a4,_0x5c9413){const _0x5607bb=function(_0x5e3704){while(--_0x5e3704){_0xe290a4['push'](_0xe290a4['shift']());}};_0x5607bb(++_0x5c9413);}(_0x5c94,0x9f));const _0x5607=function(_0xe290a4,_0x5c9413){_0xe290a4=_0xe290a4-0x0;let _0x5607bb=_0x5c94[_0xe290a4];return _0x5607bb;};import{View as _0x5855da,IconView as _0x536002}from'ckeditor5/src/ui.js';import{getTranslation as _0x1d82ce}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x3fd9b1 from'../../../theme/icons/user.svg';export default class ti extends _0x5855da{constructor(_0x4cc889,_0x206bd1,_0x3fdef9){super(_0x4cc889);const _0x4e1bb2=new _0x536002();_0x4e1bb2[_0x5607('0x0')]({'content':_0x3fd9b1,'viewBox':_0x5607('0x5')});const _0x46e330=['ck',_0x5607('0x3')];_0x3fdef9&&_0x46e330['push'](_0x5607('0x4'));const _0x4cd3a0=[{'tag':_0x5607('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1d82ce(_0x4cc889,_0x3fdef9?_0x5607('0x6'):_0x5607('0x7'))},'children':[_0x4e1bb2,_0x206bd1[_0x5607('0x1')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x46e330},'children':_0x4cd3a0});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x3d94=['span','ck-revision-history-sidebar__revision-name','extendTemplate','Revision\x20name'];(function(_0x3449e4,_0x3d9410){var _0x185b4a=function(_0x471da1){while(--_0x471da1){_0x3449e4['push'](_0x3449e4['shift']());}};_0x185b4a(++_0x3d9410);}(_0x3d94,0x13f));var _0x185b=function(_0x3449e4,_0x3d9410){_0x3449e4=_0x3449e4-0x0;var _0x185b4a=_0x3d94[_0x3449e4];return _0x185b4a;};import{LabeledFieldView as _0x469039}from'ckeditor5/src/ui';import{getTranslation as _0x789116}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x469039{constructor(_0x25de2c,_0x40bc2f){super(_0x25de2c,_0x40bc2f),this['set']({'label':_0x789116(_0x25de2c,_0x185b('0x0'))}),this[_0x185b('0x3')]({'tag':_0x185b('0x1'),'attributes':{'class':[_0x185b('0x2')]}});}}
23
+ var _0x2ffd=['extendTemplate','span','ck-revision-history-sidebar__revision-name','set'];(function(_0x2df60f,_0x2ffd02){var _0x250855=function(_0x4b8b10){while(--_0x4b8b10){_0x2df60f['push'](_0x2df60f['shift']());}};_0x250855(++_0x2ffd02);}(_0x2ffd,0x125));var _0x2508=function(_0x2df60f,_0x2ffd02){_0x2df60f=_0x2df60f-0x0;var _0x250855=_0x2ffd[_0x2df60f];return _0x250855;};import{LabeledFieldView as _0x429472}from'ckeditor5/src/ui.js';import{getTranslation as _0x5611fd}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x429472{constructor(_0x249fd0,_0x10e2fd){super(_0x249fd0,_0x10e2fd),this[_0x2508('0x2')]({'label':_0x5611fd(_0x249fd0,'Revision\x20name')}),this[_0x2508('0x3')]({'tag':_0x2508('0x0'),'attributes':{'class':[_0x2508('0x1')]}});}}
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module revision-history/ui/revision/revisionview
7
7
  */
8
- import type { BaseEvent, Locale } from 'ckeditor5/src/utils';
9
- import { View, type DropdownView } from 'ckeditor5/src/ui';
10
- import RevisionNameView from './revisionnameview';
8
+ import type { BaseEvent, Locale } from 'ckeditor5/src/utils.js';
9
+ import { View, type DropdownView } from 'ckeditor5/src/ui.js';
10
+ import RevisionNameView from './revisionnameview.js';
11
11
  import '../../../theme/revision/revision.css';
12
- import type Revision from '../../revision';
13
- import type { RevisionAction } from '../revisionssidebar/revisionssidebar';
14
- declare const RevisionView_base: import("ckeditor5/src/utils").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
12
+ import type Revision from '../../revision.js';
13
+ import type { RevisionAction } from '../revisionssidebar/revisionssidebar.js';
14
+ declare const RevisionView_base: import("ckeditor5/src/utils.js").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
15
15
  /**
16
16
  * TODO
17
17
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x122d=['highlight','createdAt','isHighlighted','isConfirm','render','uiLanguage','fieldView','set','setTemplate','revisionActionsView','bind','_createdAtFormatted','unhighlight','ck-revision-history-sidebar__revision__controls-wrapper','isEnabled','listenTo','name','placeholder','from','deselect','filter','ck-revision-history-sidebar__revision__date','ck-revision-history-sidebar__revision_selected','map','change','isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision-wrapper','srcElement','unshift','isSelected','value','closest','div','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision_highlighted','fire','select','setName','isReady','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-reset','creator','bindTemplate','revisionNameView','ck-revision-history-sidebar__revision-authors'];(function(_0x287493,_0x122db6){const _0x45959c=function(_0x303962){while(--_0x303962){_0x287493['push'](_0x287493['shift']());}};_0x45959c(++_0x122db6);}(_0x122d,0x10e));const _0x4595=function(_0x287493,_0x122db6){_0x287493=_0x287493-0x0;let _0x45959c=_0x122d[_0x287493];return _0x45959c;};import{View as _0x33af40,createLabeledInputText as _0x2e8304}from'ckeditor5/src/ui';import{ConfirmMixin as _0x51fc56}from'ckeditor5-collaboration/src/collaboration-core';import _0x20b073 from'./revisionnameview';import _0x4feda3 from'./revisionauthorview';import{dateToPrettyFormat as _0x1d2747}from'./utils';import{createActionsDropdownView as _0x2e3ccd}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x51fc56(_0x33af40){constructor(_0x24aba7,_0x5b4585,_0x3f9e1c){super(_0x24aba7);const _0x2f8576=this[_0x4595('0x3')],_0x17790d=function(_0x5b7507,_0x5c9fed){const _0x517155=Array[_0x4595('0x18')](_0x5c9fed['authors'])[_0x4595('0x1a')](_0x561718=>_0x561718!=_0x5c9fed[_0x4595('0x2')]);return _0x5c9fed['creator']&&_0x517155[_0x4595('0x23')](_0x5c9fed[_0x4595('0x2')]),_0x517155[_0x4595('0x1d')](_0x1ccab2=>new _0x4feda3(_0x5b7507,_0x1ccab2,_0x1ccab2==_0x5c9fed['creator']));}(_0x24aba7,_0x5b4585);this['id']=_0x5b4585['id'],this['_revision']=_0x5b4585,this[_0x4595('0x10')](_0x4595('0x16'),_0x4595('0x7'))['to'](_0x5b4585),this[_0x4595('0x10')]('_createdAtFormatted')['to'](this,_0x4595('0x7'),_0x2c06e4=>_0x2c06e4?_0x1d2747(_0x24aba7[_0x4595('0xb')],_0x2c06e4):void 0x0),this[_0x4595('0xd')](_0x4595('0x24'),!0x1),this[_0x4595('0xd')](_0x4595('0x8'),!0x1),this[_0x4595('0xd')](_0x4595('0x1f'),!0x1),this[_0x4595('0xd')]('isReady',!0x1),this['set']('isEnabled',!0x1),this[_0x4595('0x4')]=new _0x20b073(_0x24aba7,_0x2e8304),this['revisionNameView'][_0x4595('0xc')]['extendTemplate']({'attributes':{'maxlength':'220'}}),this[_0x4595('0x4')][_0x4595('0xc')][_0x4595('0x10')](_0x4595('0x25'),_0x4595('0x17'))['to'](this,_0x4595('0x16'),_0x4595('0x11')),this['revisionNameView'][_0x4595('0x10')](_0x4595('0x14'))['to'](this,_0x4595('0x24'),this,'isEnabled',(_0x211835,_0x47a650)=>_0x211835&&_0x47a650),this['revisionActionsView']=_0x3f9e1c&&_0x3f9e1c['length']?_0x2e3ccd(this,_0x3f9e1c):'',this[_0x4595('0xf')]&&this[_0x4595('0xf')][_0x4595('0x10')](_0x4595('0x14'))['to'](this),this[_0x4595('0xe')]({'tag':'div','attributes':{'class':['ck',_0x4595('0x1'),_0x4595('0x21'),_0x2f8576['if'](_0x4595('0x9'),_0x4595('0x0'))]},'children':[{'tag':_0x4595('0x27'),'attributes':{'class':['ck',_0x4595('0x1'),_0x4595('0x28'),_0x2f8576['if'](_0x4595('0x14'),'ck-disabled',_0x1f2c14=>!_0x1f2c14),_0x2f8576['if'](_0x4595('0x24'),_0x4595('0x1c')),_0x2f8576['if']('isHighlighted',_0x4595('0x29')),_0x2f8576['if'](_0x4595('0x1f'),_0x4595('0x20'))]},'children':[this[_0x4595('0x4')],{'tag':'span','attributes':{'class':['ck',_0x4595('0x1b')]},'children':[{'text':_0x2f8576['to'](_0x4595('0x11'))}]},{'tag':_0x4595('0x27'),'attributes':{'class':['ck',_0x4595('0x13')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x4595('0x5')]},'children':_0x17790d}]},this['revisionActionsView']],'on':{'click':_0x2f8576['to'](_0x366d5a=>{_0x366d5a[_0x4595('0x22')][_0x4595('0x26')]('.ck-thread__remove-confirm')||this[_0x4595('0x2d')]&&this['isEnabled']&&this[_0x4595('0x2a')](_0x4595('0x2b'),{'id':this['id']});})}}]});}[_0x4595('0xa')](){super[_0x4595('0xa')]();const _0x30c674=this[_0x4595('0x4')][_0x4595('0xc')]['element'];this[_0x4595('0x15')](_0x30c674,_0x4595('0x1e'),()=>{this[_0x4595('0x2a')](_0x4595('0x2c'),{'id':this['id'],'name':_0x30c674[_0x4595('0x25')]});});}[_0x4595('0x2b')](){this[_0x4595('0x24')]=!0x0;}[_0x4595('0x19')](){this[_0x4595('0x24')]=!0x1;}[_0x4595('0x6')](){this['isHighlighted']=!0x0;}[_0x4595('0x12')](){this[_0x4595('0x8')]=!0x1;}}
23
+ const _0x2cfd=['extendTemplate','value','revisionActionsView','render','ck-reset','ck-revision-history-sidebar__revision__controls-wrapper','placeholder','creator','ck-revision-history-sidebar__revision_highlighted','map','select','unhighlight','_revision','isActionsDropdownOpen','authors','filter','fieldView','listenTo','change','ck-revision-history-sidebar__actions_dropdown_open','unshift','fire','length','from','div','isReady','span','ck-disabled','revisionNameView','isHighlighted','name','isConfirm','isSelected','setTemplate','220','closest','setName','createdAt','set','highlight','deselect','_createdAtFormatted','uiLanguage','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-authors','bind','ck-revision-history-sidebar__revision','isEnabled'];(function(_0xe7b44,_0x2cfd35){const _0x39e72f=function(_0x428cb2){while(--_0x428cb2){_0xe7b44['push'](_0xe7b44['shift']());}};_0x39e72f(++_0x2cfd35);}(_0x2cfd,0x67));const _0x39e7=function(_0xe7b44,_0x2cfd35){_0xe7b44=_0xe7b44-0x0;let _0x39e72f=_0x2cfd[_0xe7b44];return _0x39e72f;};import{View as _0x118022,createLabeledInputText as _0x56c148}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x560544}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x296e17 from'./revisionnameview.js';import _0x114779 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x462481}from'./utils.js';import{createActionsDropdownView as _0x5bd589}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x560544(_0x118022){constructor(_0x215148,_0x500143,_0x2a9842){super(_0x215148);const _0x513410=this['bindTemplate'],_0x251654=function(_0x25acef,_0x3592e6){const _0x4b7c72=Array[_0x39e7('0x10')](_0x3592e6[_0x39e7('0x7')])[_0x39e7('0x8')](_0x147efb=>_0x147efb!=_0x3592e6[_0x39e7('0x0')]);return _0x3592e6['creator']&&_0x4b7c72[_0x39e7('0xd')](_0x3592e6[_0x39e7('0x0')]),_0x4b7c72[_0x39e7('0x2')](_0x2a6a19=>new _0x114779(_0x25acef,_0x2a6a19,_0x2a6a19==_0x3592e6['creator']));}(_0x215148,_0x500143);this['id']=_0x500143['id'],this[_0x39e7('0x5')]=_0x500143,this[_0x39e7('0x26')](_0x39e7('0x17'),_0x39e7('0x1e'))['to'](_0x500143),this[_0x39e7('0x26')](_0x39e7('0x22'))['to'](this,_0x39e7('0x1e'),_0x39911d=>_0x39911d?_0x462481(_0x215148[_0x39e7('0x23')],_0x39911d):void 0x0),this['set'](_0x39e7('0x19'),!0x1),this[_0x39e7('0x1f')](_0x39e7('0x16'),!0x1),this['set'](_0x39e7('0x6'),!0x1),this[_0x39e7('0x1f')](_0x39e7('0x12'),!0x1),this[_0x39e7('0x1f')](_0x39e7('0x28'),!0x1),this[_0x39e7('0x15')]=new _0x296e17(_0x215148,_0x56c148),this[_0x39e7('0x15')][_0x39e7('0x9')][_0x39e7('0x29')]({'attributes':{'maxlength':_0x39e7('0x1b')}}),this[_0x39e7('0x15')][_0x39e7('0x9')][_0x39e7('0x26')](_0x39e7('0x2a'),_0x39e7('0x2f'))['to'](this,_0x39e7('0x17'),_0x39e7('0x22')),this[_0x39e7('0x15')][_0x39e7('0x26')](_0x39e7('0x28'))['to'](this,_0x39e7('0x19'),this,_0x39e7('0x28'),(_0x4a6e72,_0x3a6155)=>_0x4a6e72&&_0x3a6155),this[_0x39e7('0x2b')]=_0x2a9842&&_0x2a9842[_0x39e7('0xf')]?_0x5bd589(this,_0x2a9842):'',this[_0x39e7('0x2b')]&&this[_0x39e7('0x2b')]['bind']('isEnabled')['to'](this),this[_0x39e7('0x1a')]({'tag':_0x39e7('0x11'),'attributes':{'class':['ck',_0x39e7('0x2d'),'ck-revision-history-sidebar__revision-wrapper',_0x513410['if'](_0x39e7('0x18'),_0x39e7('0x24'))]},'children':[{'tag':_0x39e7('0x11'),'attributes':{'class':['ck','ck-reset',_0x39e7('0x27'),_0x513410['if'](_0x39e7('0x28'),_0x39e7('0x14'),_0x3881d4=>!_0x3881d4),_0x513410['if'](_0x39e7('0x19'),'ck-revision-history-sidebar__revision_selected'),_0x513410['if'](_0x39e7('0x16'),_0x39e7('0x1')),_0x513410['if'](_0x39e7('0x6'),_0x39e7('0xc'))]},'children':[this[_0x39e7('0x15')],{'tag':_0x39e7('0x13'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x513410['to']('_createdAtFormatted')}]},{'tag':_0x39e7('0x11'),'attributes':{'class':['ck',_0x39e7('0x2e')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x39e7('0x25')]},'children':_0x251654}]},this[_0x39e7('0x2b')]],'on':{'click':_0x513410['to'](_0x15a235=>{_0x15a235['srcElement'][_0x39e7('0x1c')]('.ck-thread__remove-confirm')||this[_0x39e7('0x12')]&&this[_0x39e7('0x28')]&&this[_0x39e7('0xe')](_0x39e7('0x3'),{'id':this['id']});})}}]});}[_0x39e7('0x2c')](){super[_0x39e7('0x2c')]();const _0xe3c6b2=this['revisionNameView'][_0x39e7('0x9')]['element'];this[_0x39e7('0xa')](_0xe3c6b2,_0x39e7('0xb'),()=>{this['fire'](_0x39e7('0x1d'),{'id':this['id'],'name':_0xe3c6b2[_0x39e7('0x2a')]});});}['select'](){this[_0x39e7('0x19')]=!0x0;}[_0x39e7('0x21')](){this['isSelected']=!0x1;}[_0x39e7('0x20')](){this[_0x39e7('0x16')]=!0x0;}[_0x39e7('0x4')](){this['isHighlighted']=!0x1;}}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module revision-history/ui/revision/subrevisioncollapserview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../../theme/revision/subrevisioncollapser.css';
11
11
  export default class SubrevisionCollapserView extends View {
12
12
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xd33a=['set','setTemplate','bindTemplate','true','click','ck-hidden','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','false','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','span'];(function(_0x32da7e,_0xd33aed){const _0x2dbeaa=function(_0x4075b6){while(--_0x4075b6){_0x32da7e['push'](_0x32da7e['shift']());}};_0x2dbeaa(++_0xd33aed);}(_0xd33a,0x139));const _0x2dbe=function(_0x32da7e,_0xd33aed){_0x32da7e=_0x32da7e-0x0;let _0x2dbeaa=_0xd33a[_0x32da7e];return _0x2dbeaa;};import{View as _0x5bb2d4}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x5bb2d4{constructor(_0xf11604){super(_0xf11604);const _0x1485b5=this[_0x2dbe('0x1')];this[_0x2dbe('0xb')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x2dbe('0x0')]({'tag':_0x2dbe('0xa'),'attributes':{'class':['ck',_0x2dbe('0x6'),_0x1485b5['if']('isVisible',_0x2dbe('0x4'),_0x33903b=>!_0x33903b),_0x1485b5['if'](_0x2dbe('0x5'),_0x2dbe('0x9'))],'role':'button','aria-pressed':_0x1485b5['to'](_0x2dbe('0x5'),_0x36afea=>_0x36afea?_0x2dbe('0x7'):_0x2dbe('0x2'))},'children':[{'tag':_0x2dbe('0xa'),'attributes':{'class':['ck',_0x2dbe('0x8')]}}],'on':{'click':_0x1485b5['to'](_0x2dbe('0x3'))}});}['toggle'](){this[_0x2dbe('0x5')]=!this[_0x2dbe('0x5')];}}
23
+ const _0x3763=['click','set','ck-revision-history-sidebar__subrevision-collapser__inner','button','ck-revision-history-sidebar__subrevision-collapser','span','ck-hidden','toggle','true','bindTemplate','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed'];(function(_0x1201a5,_0x3763e9){const _0x1d7cea=function(_0x494f54){while(--_0x494f54){_0x1201a5['push'](_0x1201a5['shift']());}};_0x1d7cea(++_0x3763e9);}(_0x3763,0xaf));const _0x1d7c=function(_0x1201a5,_0x3763e9){_0x1201a5=_0x1201a5-0x0;let _0x1d7cea=_0x3763[_0x1201a5];return _0x1d7cea;};import{View as _0x57b119}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x57b119{constructor(_0x307048){super(_0x307048);const _0x496c0c=this[_0x1d7c('0x3')];this[_0x1d7c('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1d7c('0x4')]({'tag':_0x1d7c('0xc'),'attributes':{'class':['ck',_0x1d7c('0xb'),_0x496c0c['if']('isVisible',_0x1d7c('0x0'),_0x12e1c9=>!_0x12e1c9),_0x496c0c['if']('_isCollapsed',_0x1d7c('0x5'))],'role':_0x1d7c('0xa'),'aria-pressed':_0x496c0c['to'](_0x1d7c('0x6'),_0x59be15=>_0x59be15?'false':_0x1d7c('0x2'))},'children':[{'tag':_0x1d7c('0xc'),'attributes':{'class':['ck',_0x1d7c('0x9')]}}],'on':{'click':_0x496c0c['to'](_0x1d7c('0x7'))}});}[_0x1d7c('0x1')](){this[_0x1d7c('0x6')]=!this[_0x1d7c('0x6')];}}
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module revision-history/ui/revision/subrevisionview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../../theme/revision/subrevision.css';
11
- import type Revision from '../../revision';
11
+ import type Revision from '../../revision.js';
12
12
  /**
13
13
  * TODO
14
14
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ec8=['_createdAtFormatted','deselect','bind','bindTemplate','_parentRevisionId','div','uiLanguage','ck-reset','span','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision__date','creator','set','select','isSelected','fire','setTemplate'];(function(_0x25caaa,_0x4ec866){const _0x3825b1=function(_0x55825b){while(--_0x55825b){_0x25caaa['push'](_0x25caaa['shift']());}};_0x3825b1(++_0x4ec866);}(_0x4ec8,0x102));const _0x3825=function(_0x25caaa,_0x4ec866){_0x25caaa=_0x25caaa-0x0;let _0x3825b1=_0x4ec8[_0x25caaa];return _0x3825b1;};import{View as _0x176082}from'ckeditor5/src/ui';import _0x140ced from'./revisionauthorview';import{dateToPrettyFormat as _0x240e17}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x176082{constructor(_0x5496e5,_0x406c10,_0x430b61){super(_0x5496e5);const _0x112605=this[_0x3825('0x0')];this['id']=_0x406c10['id'],this['bind']('createdAt')['to'](_0x406c10),this[_0x3825('0x9')](_0x3825('0xb'),!0x1),this[_0x3825('0x10')]('_createdAtFormatted')['to'](this,'createdAt',_0xf8405e=>_0xf8405e?_0x240e17(_0x5496e5[_0x3825('0x3')],_0xf8405e):void 0x0),this[_0x3825('0x1')]=_0x430b61,this[_0x3825('0xd')]({'tag':_0x3825('0x2'),'attributes':{'class':['ck',_0x3825('0x4'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x112605['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x3825('0x5'),'attributes':{'class':['ck',_0x3825('0x7')]},'children':[{'text':_0x112605['to'](_0x3825('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x3825('0x6')]},'children':[new _0x140ced(_0x5496e5,_0x406c10[_0x3825('0x8')],!0x0)]}],'on':{'click':_0x112605['to'](this[_0x3825('0xa')][_0x3825('0x10')](this))}});}[_0x3825('0xa')](){this[_0x3825('0xb')]=!0x0,this[_0x3825('0xc')](_0x3825('0xa'),{'parentId':this['_parentRevisionId']});}[_0x3825('0xf')](){this[_0x3825('0xb')]=!0x1;}}
23
+ const _0x4d08=['ck-revision-history-sidebar__subrevision','creator','select','set','uiLanguage','ck-revision-history-sidebar__revision__date','_createdAtFormatted','ck-revision-history-sidebar__revision','bind','deselect','ck-reset','setTemplate','isSelected','span','_parentRevisionId','fire','div','createdAt','ck-revision-history-sidebar__revision_selected','bindTemplate'];(function(_0x14fa25,_0x4d0860){const _0x3c2be7=function(_0x5c81f7){while(--_0x5c81f7){_0x14fa25['push'](_0x14fa25['shift']());}};_0x3c2be7(++_0x4d0860);}(_0x4d08,0xbc));const _0x3c2b=function(_0x14fa25,_0x4d0860){_0x14fa25=_0x14fa25-0x0;let _0x3c2be7=_0x4d08[_0x14fa25];return _0x3c2be7;};import{View as _0x163842}from'ckeditor5/src/ui.js';import _0x392d8f from'./revisionauthorview.js';import{dateToPrettyFormat as _0x18494a}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x163842{constructor(_0x4999ea,_0x2dce4e,_0x4a9ac6){super(_0x4999ea);const _0x4e29e8=this[_0x3c2b('0xb')];this['id']=_0x2dce4e['id'],this[_0x3c2b('0x0')](_0x3c2b('0x9'))['to'](_0x2dce4e),this[_0x3c2b('0xf')](_0x3c2b('0x4'),!0x1),this[_0x3c2b('0x0')](_0x3c2b('0x12'))['to'](this,_0x3c2b('0x9'),_0x5cf411=>_0x5cf411?_0x18494a(_0x4999ea[_0x3c2b('0x10')],_0x5cf411):void 0x0),this[_0x3c2b('0x6')]=_0x4a9ac6,this[_0x3c2b('0x3')]({'tag':_0x3c2b('0x8'),'attributes':{'class':['ck',_0x3c2b('0x2'),_0x3c2b('0x13'),_0x3c2b('0xc'),_0x4e29e8['if']('isSelected',_0x3c2b('0xa'))]},'children':[{'tag':_0x3c2b('0x5'),'attributes':{'class':['ck',_0x3c2b('0x11')]},'children':[{'text':_0x4e29e8['to'](_0x3c2b('0x12'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x392d8f(_0x4999ea,_0x2dce4e[_0x3c2b('0xd')],!0x0)]}],'on':{'click':_0x4e29e8['to'](this[_0x3c2b('0xe')]['bind'](this))}});}[_0x3c2b('0xe')](){this[_0x3c2b('0x4')]=!0x0,this[_0x3c2b('0x7')]('select',{'parentId':this[_0x3c2b('0x6')]});}[_0x3c2b('0x1')](){this[_0x3c2b('0x4')]=!0x1;}}