@ckeditor/ckeditor5-revision-history 38.2.0-alpha.0 → 38.2.0-alpha.1

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 +6 -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 _0x46fb=['index','_removeRevisionMarkers','_markSuggestions','merge','commands','span','done','marked','insert','isAdded','forward','markerToData','_balloon','left','isCollapsed','string','ck-suggestion-marker-split','adapter','_markMismatchedRemovedTags','getAttribute','distance','text','endIndex','roots','uiElement','insertion','getWalker','_processTape','isAtEnd','change:activeView','markerToHighlight','attributes','start','test','affectsData','data-change-id','data','useFillerType','addHighlight','isAttached','createRangeIn','document','change:isEnabled','enableReadOnlyMode','removeClass','_step','changeId','removeMarker','requires','createUIElement','ck-revision-history-root--active','previousPosition','revision-suggestion','_getViewObj','downcastDispatcher','_getChangeFromId','reconvertMarker','filter','startsWith','consume','ck-suggestion-marker--active','markersStart','toViewRange','bottom','addClass','_findChangeIdFromDomTarget','numberOfChanges','mapper','_setDistance','set','revision:','element','isNavigationMode','createRange','toData','pluginName','plugins','dataToMarker','unshift','conversion','_makeTape','insertions','isAtStart','startIndex','mouseover','_refreshStartEndIndex','isRemoveSuggestion','item','pairId','createPositionBefore','bindElementToMarker','isEnabled','isEqual','domEvent','revision-comment:','viewItem','isBefore','revisionHistory','compare','unbindElementFromMarkerName','diffData','highest','_fixObsoleteTags','object','getClientRects','side','createAttributeElement','createPositionFromPath','hasClass','rootName','_makeModelFromViewString','get','_sortAndFilterDiffChanges','dataDowncast','writer','_removeUnsupportedChanges','add','then','change','getRevisionData','_getDiff','_changeIdToChange','getAttributes','attributesBefore','toViewElement','deletion','setAttribute','high','vid_start','isContent','push','_update','getRoot','wrap','findIndex','changes','first','isAddSuggestion','attributesAfter','name','return','pop','_changeView','markerNameToElements','attachChange','removeMarker:revision','execute','splice','_joinTapes','default','parse','getCustomProperty','backward','addRevision','_getRevisionsRange','bind','revisionHistoryAttachChange','-new','_threeWayMerge','newRevisionId','model','ck-suggestion-preview-marker-','_activeViewTarget','schema','vid','elementStart','isAfter','refresh','locale','restoreRevision','WidgetToolbarRepository','removeAttribute','getRootNames','nextPosition','forceDisabled','end','_setConversion','isOnRoot','target','getRevision','editingDowncast','length','nextSibling','checkAttribute','authors','consumable','suggestion','userId','ck-editor__editable__overlay','change:numberOfChanges','hasAttribute','_getViewForChange','modelRange','RevisionViewer','updatePosition','forEach','change:activeChange','resolve','_cleanUp','isReady','removeMarker:revision-suggestion','revision-viewer','ck-suggestion-marker-merge','includes','ck-suggestion-preview-marker','editing','revision-end','revision','diff','delete','elementToAttribute','loadRevisionData','_initInteractions','next','_data','repository','_cleanMarkers','for','softBreak','error','offsetSize','catch','getChild','isRemoved','processor','children','enqueueChange','markerName','markerRange','isIncorrect','shift','getIndex','isSuggestion','clear','RevisionsRepository','map','ck-suggestion-marker','abs','maxOffset','flat','editor','_markMarkers','low','has','deletions','view','parent','_setChanges','ck-suggestion-marker-','collaboration.channelId','destroy','_makeModelFromTape','code','markersEnd','from','toViewPosition','elementEnd','upcast','remove','getDomRoot','vid_end','markers','indexOf','listenTo','keys','getItems','change:isReady','createRevision','_markInsertions','detachRoot','_appendChild','isLimit','concat','slice','type','level','sort','toModel','nodeAfter','activeView','_revisions','isBlock','revisionHistoryLabel','activeChange','split'];(function(_0x45de24,_0x46fb85){const _0x8e220c=function(_0x4f3a33){while(--_0x4f3a33){_0x45de24['push'](_0x45de24['shift']());}};_0x8e220c(++_0x46fb85);}(_0x46fb,0x189));const _0x8e22=function(_0x45de24,_0x46fb85){_0x45de24=_0x45de24-0x0;let _0x8e220c=_0x46fb[_0x45de24];return _0x8e220c;};import{Plugin as _0x56c8a5,Command as _0x275622}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x4a5469}from'ckeditor5/src/utils';import{ContextualBalloon as _0x139090}from'ckeditor5/src/ui';import{DocumentFragment as _0x152052,Element as _0x1aaf7c,Text as _0x3bb3a3,ViewDocumentFragment as _0x1b666b,ViewText as _0x9bfb00,ViewElement as _0x4767d0,ViewContainerElement as _0x4d0c97,ViewAttributeElement as _0x31ab6f,ViewEmptyElement as _0x480fd9,ViewRawElement as _0xa329e3,ViewUIElement as _0x57eac9}from'ckeditor5/src/engine';import{Users as _0x497434,getMarkerDomElement as _0xffd23b}from'ckeditor5-collaboration/src/collaboration-core';import _0x1d10a2 from'./ui/revisionviewer/changedetailsview';import _0x338566 from'./revisionsrepository';import _0x5d77d4 from'./changeitem';import{default as _0xb28449}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4ba645}from'lodash-es';const Y={'c':_0x4d0c97,'a':_0x31ab6f,'e':_0x480fd9,'r':_0xa329e3,'u':_0x57eac9};export default class d extends _0x56c8a5{static get[_0x8e22('0xfc')](){return _0x8e22('0x55');}static get[_0x8e22('0xe1')](){return[_0x497434,_0x139090,_0x338566];}constructor(_0xc8c643){super(_0xc8c643),this[_0x8e22('0x6b')]=this[_0x8e22('0x84')][_0x8e22('0xfd')][_0x8e22('0x3')](_0x8e22('0x7e')),this[_0x8e22('0xf6')](_0x8e22('0xaf'),null),this[_0x8e22('0xf6')](_0x8e22('0xab'),null),this[_0x8e22('0x36')]=null,this[_0x8e22('0xf6')]('diff',null),this['set'](_0x8e22('0x5b'),!0x1),this[_0x8e22('0xf6')]('isEnabled',!0x0),this['on'](_0x8e22('0xdb'),(_0x2adabc,_0x22a3aa,_0x452bdb)=>{this[_0x8e22('0xaf')]=null,this[_0x8e22('0xab')]=null,this[_0x8e22('0x84')]['editing'][_0x8e22('0x89')][_0x8e22('0xa')](_0x4010b4=>{for(const _0x492553 of this[_0x8e22('0x84')][_0x8e22('0x61')]['view'][_0x8e22('0xda')][_0x8e22('0xc8')])_0x452bdb?_0x4010b4['removeClass'](_0x8e22('0x50'),_0x492553):_0x4010b4['addClass'](_0x8e22('0x50'),_0x492553);});}),this['bind'](_0x8e22('0xf9'))['to'](this,_0x8e22('0xaf'),_0x43175b=>null!==_0x43175b),this[_0x8e22('0x2f')]('currentChangeNumber')['to'](this,_0x8e22('0x5b'),this,_0x8e22('0x64'),this,_0x8e22('0xaf'),(_0x34aecf,_0x4f4794,_0x4d1a3f)=>_0x34aecf&&_0x4d1a3f?_0x4f4794['changes'][_0x8e22('0x7b')](_0x4d1a3f):0x0),this['bind'](_0x8e22('0xf3'))['to'](this,_0x8e22('0x5b'),this,'diff',(_0x291cf2,_0x16605f)=>_0x291cf2?_0x16605f[_0x8e22('0x1b')][_0x8e22('0x49')]:0x0),this[_0x8e22('0x22')]=null,this[_0x8e22('0xd')]=new Map(),this[_0x8e22('0xc2')]=null,this[_0x8e22('0xbd')]=this['editor'][_0x8e22('0xfd')][_0x8e22('0x3')](_0x139090);}['init'](){const _0x27c5a2=this[_0x8e22('0x84')],_0x232022=new ShowChangeCommand(_0x27c5a2,{'direction':_0x8e22('0x2c')}),_0x34facb=new ShowChangeCommand(_0x27c5a2,{'direction':'forward'});(_0x27c5a2['commands'][_0x8e22('0x8')]('showPreviousChange',_0x232022),_0x27c5a2[_0x8e22('0xb5')][_0x8e22('0x8')]('showNextChange',_0x34facb),_0x27c5a2[_0x8e22('0xb5')]['add'](_0x8e22('0x3d'),new RestoreRevisionCommand(_0x27c5a2)),this['on'](_0x8e22('0x51'),()=>{_0x232022[_0x8e22('0x3b')](),_0x34facb[_0x8e22('0x3b')]();}),this[_0x8e22('0x44')](),this[_0x8e22('0x68')](),_0x27c5a2[_0x8e22('0xdc')](_0x8e22('0x5d')),_0x27c5a2[_0x8e22('0xfd')]['has'](_0x8e22('0x3e')))&&_0x27c5a2[_0x8e22('0xfd')][_0x8e22('0x3')](_0x8e22('0x3e'))[_0x8e22('0x42')]('revision-viewer');}async[_0x8e22('0xb')](_0x2318ef){await this[_0x8e22('0x67')](_0x2318ef);const _0x108c0a={};for(const _0x38c307 in _0x2318ef[_0x8e22('0x115')]){if(_0x2318ef[_0x8e22('0x115')][_0x38c307][_0x8e22('0x24')]&&!_0x2318ef[_0x8e22('0x115')][_0x38c307]['attachChange']['isAttached'])continue;const _0x2c1bea=this['_removeRevisionMarkers'](JSON[_0x8e22('0x2a')](_0x2318ef[_0x8e22('0x115')][_0x38c307][_0x8e22('0x102')])),_0x4cf3f8=this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0x89')]['document'],_0xd7dd78=new _0x1b666b(_0x4cf3f8,_0x2c1bea[_0x8e22('0x7f')](_0x555cc6=>this[_0x8e22('0xe6')](_0x555cc6)));this[_0x8e22('0x84')][_0x8e22('0xd5')]['processor']['useFillerType'](_0x8e22('0xb8')),_0x108c0a[_0x38c307]=this[_0x8e22('0x84')][_0x8e22('0xd5')]['processor'][_0x8e22('0xfb')](_0xd7dd78),this[_0x8e22('0x84')]['data'][_0x8e22('0x74')][_0x8e22('0xd6')](_0x8e22('0x29'));}return _0x108c0a;}async['getRevisionRootsAttributes'](_0x784867){await this[_0x8e22('0x67')](_0x784867);const _0x26e0a1={};for(const _0x35feda in _0x784867[_0x8e22('0x115')])_0x784867[_0x8e22('0x115')][_0x35feda]['attachChange']&&!_0x784867[_0x8e22('0x115')][_0x35feda][_0x8e22('0x24')][_0x8e22('0xd8')]||(_0x26e0a1[_0x35feda]=_0x784867['diffData'][_0x35feda][_0x8e22('0x1e')]||{});return _0x26e0a1;}[_0x8e22('0xb2')](_0xea9d8){return(_0xea9d8=_0xea9d8[_0x8e22('0xea')](_0x12687b=>!_0x12687b[_0x8e22('0x1f')]||'revision-start'!==_0x12687b[_0x8e22('0x1f')]&&_0x8e22('0x62')!==_0x12687b[_0x8e22('0x1f')]))[_0x8e22('0x57')](_0x484406=>{_0x8e22('0xc0')!=typeof _0x484406&&(_0x484406['children']=this['_removeRevisionMarkers'](_0x484406['children']),_0x484406[_0x8e22('0xd0')]=_0x484406[_0x8e22('0xd0')]['filter'](_0x41ef4d=>!_0x41ef4d[0x0][_0x8e22('0xeb')]('data-revision-')));}),_0xea9d8;}async[_0x8e22('0x113')](_0x4268f4,_0xb3ccbc,_0x57f3eb=!0x1){if(!this['isEnabled'])return;const _0x16a988=this[_0x8e22('0x64')],_0x44852b=this[_0x8e22('0x6b')],_0x223cc8='string'==typeof _0x4268f4?_0x44852b[_0x8e22('0x47')](_0x4268f4):_0x4268f4,_0x25a2cb=_0x8e22('0xc0')==typeof _0xb3ccbc?_0x44852b[_0x8e22('0x47')](_0xb3ccbc):_0xb3ccbc,_0x434561=_0x223cc8['id'],_0xcccc56=_0x25a2cb?_0x25a2cb['id']:null;if(!_0x57f3eb&&this['diff']&&this[_0x8e22('0x64')][_0x8e22('0x33')]===_0x434561&&this[_0x8e22('0x64')]['oldRevisionId']===_0xcccc56)return Promise[_0x8e22('0x59')]();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x8e22('0x64')]=new _0xb28449(_0x434561,_0xcccc56);const _0x1b200a=this[_0x8e22('0x2e')](_0x223cc8,_0x25a2cb,!0x0)[_0x8e22('0x7f')](_0x48ba7a=>this[_0x8e22('0x67')](_0x48ba7a));return _0x1b200a[_0x8e22('0x16')](new Promise(_0x24f609=>{setTimeout(_0x24f609,0x14);})),Promise['all'](_0x1b200a)['then'](()=>{if(!this[_0x8e22('0x10c')])return;this['_cleanUp']();const _0x4b0db0=this[_0x8e22('0xc')](_0x434561,_0xcccc56);for(const _0x593e92 of _0x4b0db0['changes'])this[_0x8e22('0xd')][_0x8e22('0xf6')](_0x593e92['id'],_0x593e92);this['editor'][_0x8e22('0x34')][_0x8e22('0x76')]({'isUndoable':!0x1},_0x28d421=>{for(const _0x1c147b of this[_0x8e22('0x84')][_0x8e22('0x34')]['document']['getRootNames']())_0x28d421[_0x8e22('0xa1')](_0x1c147b);for(const _0x2163a8 of Object[_0x8e22('0x9c')](_0x4b0db0[_0x8e22('0x34')])){const _0x200c18=_0x28d421['addRoot'](_0x2163a8);for(const _0x21d6c3 of Object[_0x8e22('0x9c')](_0x4b0db0[_0x8e22('0xd0')][_0x2163a8]))_0x28d421['setAttribute'](_0x21d6c3,_0x4b0db0[_0x8e22('0xd0')][_0x2163a8][_0x21d6c3],_0x200c18);_0x28d421[_0x8e22('0xb9')](_0x4b0db0[_0x8e22('0x34')][_0x2163a8],_0x200c18,0x0);}}),this[_0x8e22('0x64')][_0x8e22('0x8b')](this['_sortAndFilterDiffChanges'](_0x4b0db0[_0x8e22('0x1b')])),this[_0x8e22('0x5b')]=!0x0;})[_0x8e22('0x71')](_0x44728e=>{console[_0x8e22('0x6f')](_0x44728e),this['_cleanUp'](),_0x16a988&&(this['diff']=_0x16a988),this[_0x8e22('0x5b')]=!0x0;});}['addRevisionData'](_0xe902de,_0x2c25fc){const _0x643ce7=this[_0x8e22('0x6b')][_0x8e22('0x9f')](_0xe902de);return _0x643ce7['on'](_0x8e22('0x17'),(_0x268cef,_0x3896a6,_0x320027)=>_0x2c25fc(_0x3896a6,_0x320027,_0x643ce7)),this[_0x8e22('0x6b')][_0x8e22('0x2d')](_0x643ce7),_0x643ce7;}[_0x8e22('0x67')](_0x45b961){if(!_0x45b961||_0x45b961[_0x8e22('0x115')])return Promise[_0x8e22('0x59')]();{const _0x3b8dc7=this[_0x8e22('0x84')]['config']['get'](_0x8e22('0x8d'));return this[_0x8e22('0xc2')][_0x8e22('0x47')]({'channelId':_0x3b8dc7,'revisionId':_0x45b961['id']})[_0x8e22('0x9')](_0x33a661=>{_0x45b961['_update']({'diffData':_0x33a661[_0x8e22('0x115')]},!0x0);});}}[_0x8e22('0x5a')](){this[_0x8e22('0xaf')]=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView'][_0x8e22('0x8e')](),this[_0x8e22('0x22')]=null,this[_0x8e22('0xd')][_0x8e22('0x7d')](),this['editor'][_0x8e22('0x34')][_0x8e22('0x76')]({'isUndoable':!0x1},_0x577835=>{for(const _0x478e5c of this[_0x8e22('0x84')][_0x8e22('0x34')]['document'][_0x8e22('0x40')]())_0x577835[_0x8e22('0xa1')](_0x478e5c);});}[_0x8e22('0x4')](_0x3e305e){const _0x3033fd=[],_0x491a55=new Map();for(const _0x35af3f of this[_0x8e22('0x84')]['model'][_0x8e22('0xda')]['getRootNames']()){const _0x3ae524=this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0x89')][_0x8e22('0x97')](_0x35af3f);if(!_0x3ae524)continue;const _0x253417=_0x3ae524[_0x8e22('0x119')]()[_0x8e22('0x108')](0x0);_0x253417&&(_0x3033fd[_0x8e22('0x16')](_0x35af3f),_0x491a55[_0x8e22('0xf6')](_0x35af3f,_0x253417));}return _0x3033fd[_0x8e22('0xa8')]((_0x1d8d5b,_0x25fdb3)=>{const _0x3c0da8=_0x491a55[_0x8e22('0x3')](_0x1d8d5b),_0x2bb771=_0x491a55[_0x8e22('0x3')](_0x25fdb3);return _0x3c0da8['y']-_0x2bb771['y']||_0x3c0da8['x']-_0x2bb771['x'];}),(_0x3e305e=_0x3e305e[_0x8e22('0xea')](_0x169d77=>_0x3033fd['includes'](_0x169d77[_0x8e22('0x1')])))[_0x8e22('0xa8')]((_0xc683da,_0x4989ad)=>_0x3033fd[_0x8e22('0x9a')](_0xc683da['rootName'])-_0x3033fd[_0x8e22('0x9a')](_0x4989ad[_0x8e22('0x1')])),_0x3e305e;}[_0x8e22('0x101')](_0x2332d9){const _0x4ed2dc=Array[_0x8e22('0x92')](_0x2332d9['markers'])[_0x8e22('0xea')](([_0x4571e2,_0x3ed4b0])=>_0x4571e2[_0x8e22('0xeb')](_0x8e22('0xf7'))&&!_0x3ed4b0[_0x8e22('0xbf')]),_0x57bef5=Array[_0x8e22('0x92')](this['editor'][_0x8e22('0x34')][_0x8e22('0xd9')](_0x2332d9)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4ed2dc[_0x8e22('0x49')])for(const _0x13e3ab of _0x57bef5){const [_0x333c36,_0x1459ea]=_0x4ed2dc[0x0],[,_0x2d9406,_0x1b4ed9]=_0x333c36[_0x8e22('0xb0')](':');if(_0x1459ea[_0x8e22('0x43')]['isEqual'](_0x13e3ab[_0x8e22('0x41')])&&_0x4ed2dc['shift'](),(_0x13e3ab['previousPosition'][_0x8e22('0x10d')](_0x1459ea[_0x8e22('0xd1')])||_0x13e3ab['previousPosition'][_0x8e22('0x3a')](_0x1459ea[_0x8e22('0xd1')]))&&(_0x8e22('0xca')==_0x2d9406?_0x13e3ab[_0x8e22('0xba')]={'userId':_0x1b4ed9}:_0x8e22('0x11')==_0x2d9406&&(_0x13e3ab[_0x8e22('0x73')]={'userId':_0x1b4ed9})),0x0==_0x4ed2dc['length'])break;}return _0x57bef5;}['_refreshStartEndIndex'](_0x308883){const _0x585ccd=new Map();for(let _0x10df5f=0x0;_0x10df5f<_0x308883[_0x8e22('0x49')];_0x10df5f++)_0x8e22('0xc6')===_0x308883[_0x10df5f][_0x8e22('0xa6')]?(_0x308883[_0x10df5f][_0x8e22('0x108')][_0x8e22('0x104')]=_0x10df5f,_0x308883[_0x10df5f][_0x8e22('0x108')][_0x8e22('0xc7')]=_0x10df5f):(_0x8e22('0x39')===_0x308883[_0x10df5f][_0x8e22('0xa6')]?_0x308883[_0x10df5f][_0x8e22('0x108')][_0x8e22('0x104')]=_0x10df5f:_0x8e22('0x94')===_0x308883[_0x10df5f][_0x8e22('0xa6')]&&(_0x308883[_0x10df5f]['item'][_0x8e22('0xc7')]=_0x10df5f),_0x585ccd[_0x8e22('0xf6')](_0x308883[_0x10df5f]['id'],_0x10df5f));for(const _0x46ce5d of _0x585ccd['values']())'elementStart'===_0x308883[_0x46ce5d]['type']?_0x308883[_0x46ce5d][_0x8e22('0x108')][_0x8e22('0xc7')]=_0x585ccd[_0x8e22('0x3')](_0x308883[_0x46ce5d][_0x8e22('0x109')]):_0x8e22('0x94')===_0x308883[_0x46ce5d]['type']&&(_0x308883[_0x46ce5d]['item']['startIndex']=_0x585ccd[_0x8e22('0x3')](_0x308883[_0x46ce5d][_0x8e22('0x109')]));}[_0x8e22('0xcc')](_0x3adeb6){for(let _0x1cef2d=0x0;_0x1cef2d<_0x3adeb6[_0x8e22('0x49')];_0x1cef2d++){if(_0x8e22('0x39')===_0x3adeb6[_0x1cef2d][_0x8e22('0xa6')])_0x3adeb6[_0x1cef2d]['item'][_0x8e22('0x104')]=_0x1cef2d;else{if(_0x8e22('0x94')===_0x3adeb6[_0x1cef2d][_0x8e22('0xa6')]){_0x3adeb6[_0x1cef2d]['item'][_0x8e22('0xc7')]=_0x1cef2d;const _0x4a51b4=_0x3adeb6[_0x1cef2d][_0x8e22('0x108')][_0x8e22('0x104')];_0x3adeb6[_0x4a51b4][_0x8e22('0x109')]=_0x3adeb6[_0x1cef2d]['id'],_0x3adeb6[_0x1cef2d][_0x8e22('0x109')]=_0x3adeb6[_0x4a51b4]['id'];}else _0x3adeb6[_0x1cef2d][_0x8e22('0x108')][_0x8e22('0x104')]=_0x1cef2d,_0x3adeb6[_0x1cef2d][_0x8e22('0x108')][_0x8e22('0xc7')]=_0x1cef2d,_0x3adeb6[_0x1cef2d]['pairId']=null;}_0x3adeb6[_0x1cef2d][_0x8e22('0xee')]||(_0x3adeb6[_0x1cef2d]['markersStart']=[],_0x3adeb6[_0x1cef2d][_0x8e22('0x91')]=[]);}}[_0x8e22('0xa0')](_0x27d3cf,_0x5bda8a){const _0x353644=_0x27d3cf[_0x8e22('0xea')](_0x8bc607=>!_0x8bc607[_0x8e22('0xba')]);for(let _0xd222a5=0x0;_0xd222a5<_0x5bda8a['length'];_0xd222a5++)_0x5bda8a[_0xd222a5][_0x8e22('0xba')]&&(_0x353644[_0xd222a5][_0x8e22('0xba')]=_0x5bda8a[_0xd222a5][_0x8e22('0xba')]);}[_0x8e22('0x2')](_0x49a4fa){const _0x4683f3=JSON[_0x8e22('0x2a')](_0x49a4fa),_0x587ad4=this['editor'][_0x8e22('0x61')][_0x8e22('0x89')][_0x8e22('0xda')],_0x3dc89a=new _0x1b666b(_0x587ad4,_0x4683f3['map'](_0x24505b=>this[_0x8e22('0xe6')](_0x24505b)));return this[_0x8e22('0x84')][_0x8e22('0xd5')][_0x8e22('0xa9')](_0x3dc89a);}['_getViewObj'](_0x798732){const _0x405f74=this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0x89')][_0x8e22('0xda')];if(_0x8e22('0xc0')==typeof _0x798732)return new _0x9bfb00(_0x405f74,_0x798732);{const _0xa7545f=_0x798732[_0x8e22('0x75')][_0x8e22('0x7f')](_0x200ffe=>this[_0x8e22('0xe6')](_0x200ffe));return new(Y[_0x798732[(_0x8e22('0xa6'))]]||_0x4767d0)(_0x405f74,_0x798732['name'],_0x798732[_0x8e22('0xd0')],_0xa7545f);}}[_0x8e22('0xc')](_0x18fdb5,_0x4c9031=null){const _0x48bef8=this[_0x8e22('0x6b')]['getRevision'](_0x18fdb5),_0x1143f0=_0x4c9031?this[_0x8e22('0x6b')]['getRevision'](_0x4c9031):null,_0x2aff9d=this['_getRevisionsRange'](_0x48bef8,_0x1143f0),_0x2a9002=_0x2aff9d[_0x2aff9d[_0x8e22('0x49')]-0x1],_0x27beb6=new Map(),_0x218704={'model':{},'attributes':{},'changes':[]},_0x33ac27=new Set(),_0x8c5dd6=new Map();for(let _0x4aed39=_0x2aff9d[_0x8e22('0x49')]-0x1;_0x4aed39>=0x0;_0x4aed39--){const _0x4cfae4=_0x2aff9d[_0x4aed39];for(const _0x12f69a of Object[_0x8e22('0x9c')](_0x4cfae4[_0x8e22('0x115')]))if(_0x4cfae4[_0x8e22('0x115')][_0x12f69a]['attachChange']){const _0x46e973=_0x4cfae4[_0x8e22('0x115')][_0x12f69a][_0x8e22('0x24')];_0x46e973[_0x8e22('0xd8')]?(_0x33ac27['add'](_0x12f69a),_0x8c5dd6['has'](_0x12f69a)&&_0x8c5dd6[_0x8e22('0x3')](_0x12f69a)[_0x8e22('0x4f')]==_0x46e973[_0x8e22('0x4f')]?_0x8c5dd6[_0x8e22('0x65')](_0x12f69a):_0x8c5dd6['set'](_0x12f69a,_0x46e973)):_0x8c5dd6['has'](_0x12f69a)?(_0x33ac27['delete'](_0x12f69a),_0x8c5dd6[_0x8e22('0x65')](_0x12f69a)):(_0x33ac27[_0x8e22('0x8')](_0x12f69a),_0x8c5dd6[_0x8e22('0xf6')](_0x12f69a,_0x46e973));}else _0x33ac27['add'](_0x12f69a);}for(const _0x17fa52 of _0x33ac27){const _0x514317=_0x8c5dd6['has'](_0x17fa52)&&!_0x8c5dd6[_0x8e22('0x3')](_0x17fa52)[_0x8e22('0xd8')];let _0xa6ce7d=_0x514317?_0x2aff9d[_0x8e22('0x49')]-0x1:0x0;const _0x132f00=_0x514317?-0x1:0x1;for(;_0x2aff9d[_0xa6ce7d];){const _0x9f31dc=_0x2aff9d[_0xa6ce7d];if(_0x9f31dc[_0x8e22('0x115')][_0x17fa52]){const _0x2ab7ef=_0x514317?_0x9f31dc[_0x8e22('0x115')][_0x17fa52][_0x8e22('0xf')]:_0x9f31dc[_0x8e22('0x115')][_0x17fa52][_0x8e22('0x1e')];_0x218704[_0x8e22('0xd0')][_0x17fa52]=_0x2ab7ef?_0x4ba645(_0x2ab7ef):{};break;}_0xa6ce7d+=_0x132f00;}}for(const _0x3772c9 of _0x2aff9d){_0x3772c9['model']={};for(const _0x2bf966 of _0x3772c9[_0x8e22('0x4c')])_0x27beb6[_0x8e22('0xf6')](_0x2bf966['id'],_0x2bf966);for(const _0x49ebd5 of _0x33ac27){const _0x394bbb=_0x3772c9[_0x8e22('0x115')][_0x49ebd5]?_0x3772c9[_0x8e22('0x115')][_0x49ebd5][_0x8e22('0x102')]:'[]',_0xb17591=_0x3772c9[_0x8e22('0x115')][_0x49ebd5]?_0x3772c9[_0x8e22('0x115')][_0x49ebd5][_0x8e22('0x88')]:'[]';_0x3772c9[_0x8e22('0x34')][_0x49ebd5]={'insertions':this[_0x8e22('0x2')](_0x394bbb),'deletions':this[_0x8e22('0x2')](_0xb17591)};}}for(const _0xaa5b5e of _0x33ac27){let _0x108b1c=null,_0x2f5517=0x0;const _0x2e7ce6=new Map(Array[_0x8e22('0x92')](_0x48bef8['model'][_0xaa5b5e][_0x8e22('0x102')][_0x8e22('0x99')])[_0x8e22('0xea')](([_0x55b099])=>!_0x55b099[_0x8e22('0xeb')](_0x8e22('0xf7'))));let _0x50f4b6=0x0;for(const _0x177d0c of _0x2aff9d){const _0x5346df=this[_0x8e22('0x101')](_0x177d0c[_0x8e22('0x34')][_0xaa5b5e][_0x8e22('0x102')]);_0x177d0c==_0x48bef8?(_0x108b1c=_0x5346df,_0x2f5517=_0x108b1c[_0x8e22('0x49')],_0x108b1c['forEach'](_0x305c29=>{_0x305c29['id']=_0x50f4b6++;}),this[_0x8e22('0xcc')](_0x108b1c)):this[_0x8e22('0xa0')](_0x108b1c,_0x5346df);const _0x1cc39b=_0x108b1c[_0x8e22('0xea')](_0xe296ab=>!_0xe296ab[_0x8e22('0xba')])[_0x8e22('0x7f')](_0x3d2cce=>_0x3d2cce['id']);let _0x92464=0x0;const _0x1b24d4=this[_0x8e22('0x101')](_0x177d0c[_0x8e22('0x34')][_0xaa5b5e][_0x8e22('0x88')]);_0x1b24d4[_0x8e22('0x57')](_0x26e70e=>{_0x26e70e[_0x8e22('0x73')]?_0x26e70e['id']=_0x2f5517++:_0x26e70e['id']=_0x1cc39b[_0x92464++];}),this[_0x8e22('0xcc')](_0x1b24d4),this[_0x8e22('0xf5')](_0x108b1c,_0x8e22('0xba')),this[_0x8e22('0xf5')](_0x1b24d4,_0x8e22('0x73')),_0x177d0c==_0x48bef8&&this[_0x8e22('0x85')](_0x108b1c,_0x2e7ce6),_0x108b1c=this[_0x8e22('0x28')](_0x108b1c,_0x1b24d4),this[_0x8e22('0x106')](_0x108b1c),this[_0x8e22('0xf5')](_0x108b1c,_0x8e22('0x73'));}_0x108b1c=_0x108b1c['filter'](_0x3ef9eb=>!(_0x3ef9eb['isAdded']&&_0x3ef9eb[_0x8e22('0x73')]));const _0x1e8acc=new Map(_0x2a9002['model'][_0xaa5b5e][_0x8e22('0x88')][_0x8e22('0x99')]),_0xa81f9e=new Set(_0x2e7ce6[_0x8e22('0x9c')]());for(const _0x330bbf of _0x1e8acc[_0x8e22('0x9c')]())_0xa81f9e['delete'](_0x330bbf);this['_markSuggestions'](_0x108b1c,_0xa81f9e),this[_0x8e22('0x117')](_0x108b1c),_0x108b1c=this['_removeMissingPairs'](_0x108b1c),_0x108b1c=this[_0x8e22('0xc3')](_0x108b1c),_0x108b1c=this[_0x8e22('0x7')](_0x108b1c);const {root:_0x11af48,changes:_0x608e29}=this[_0x8e22('0x8f')](_0x108b1c,_0x27beb6,_0xaa5b5e);_0x218704['model'][_0xaa5b5e]=_0x11af48;const _0x135f45=_0x8c5dd6[_0x8e22('0x3')](_0xaa5b5e);if(_0x135f45){const _0x41a6d2=_0x27beb6[_0x8e22('0x3')](_0x135f45[_0x8e22('0x4f')]),_0x5372c8=new _0x5d77d4({'author':_0x41a6d2,'type':_0x135f45[_0x8e22('0xd8')]?_0x8e22('0x8'):_0x8e22('0x96'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xaa5b5e});_0x608e29['unshift'](_0x5372c8),_0x218704[_0x8e22('0xd0')][_0xaa5b5e][_0x8e22('0x30')]=_0x5372c8['id'];}_0x218704['changes']=_0x218704[_0x8e22('0x1b')][_0x8e22('0xa4')](_0x608e29);}return _0x218704;}[_0x8e22('0x85')](_0x373d99,_0x44d2ea){for(let _0x78e182=0x0;_0x78e182<_0x373d99[_0x8e22('0x49')];_0x78e182++)for(const [_0x41790c,_0x315334]of _0x44d2ea)_0x315334['start']['isEqual'](_0x373d99[_0x78e182]['previousPosition'])&&_0x373d99[_0x78e182][_0x8e22('0xee')][_0x8e22('0x16')](_0x41790c),_0x315334['end'][_0x8e22('0x10d')](_0x373d99[_0x78e182][_0x8e22('0x41')])&&_0x373d99[_0x78e182][_0x8e22('0x91')][_0x8e22('0x16')](_0x41790c);}[_0x8e22('0x28')](_0x30ed55,_0x15494e){let _0x43d4c3=[],_0x5cb1b2=0x0,_0x5d1e39=0x0;for(;_0x5cb1b2<_0x30ed55[_0x8e22('0x49')]||_0x5d1e39<_0x15494e['length'];){const _0x292a03=_0x30ed55[_0x5cb1b2]||{},_0x1916b0=_0x15494e[_0x5d1e39]||{};if(_0x292a03['id']==_0x1916b0['id'])_0x5cb1b2++,_0x5d1e39++,_0x43d4c3[_0x8e22('0x16')](_0x292a03);else{if(_0x1916b0[_0x8e22('0x73')]&&_0x292a03[_0x8e22('0xba')]){const {commonTape:_0xda9d6b,iEnd:_0x41f040,jEnd:_0x5d0b68}=this[_0x8e22('0x32')](_0x30ed55,_0x5cb1b2,_0x15494e,_0x5d1e39);_0x43d4c3=_0x43d4c3[_0x8e22('0xa4')](_0xda9d6b),_0x5cb1b2=_0x41f040,_0x5d1e39=_0x5d0b68;}else _0x1916b0[_0x8e22('0x73')]?(_0x5d1e39++,_0x43d4c3['push'](_0x1916b0)):(_0x5cb1b2++,_0x43d4c3[_0x8e22('0x16')](_0x292a03));}}return _0x43d4c3;}[_0x8e22('0xb3')](_0x3341b0,_0xb42de3){const _0x32e57f=[];for(let _0xb9e536=0x0;_0xb9e536<_0x3341b0['length'];_0xb9e536++){for(let _0x4e0c0b=0x0;_0x4e0c0b<_0x3341b0[_0xb9e536]['markersStart'][_0x8e22('0x49')];_0x4e0c0b++){const _0x570ce6=_0x3341b0[_0xb9e536]['markersStart'][_0x4e0c0b];if(!_0xb42de3[_0x8e22('0x87')](_0x570ce6))continue;const {group:_0x4c2f67,type:_0x204701,authorId:_0x73f349}=_0x577199(_0x570ce6);_0x8e22('0xe5')!=_0x4c2f67||'insertion'!=_0x204701&&'deletion'!=_0x204701||(_0x32e57f[_0x8e22('0xff')]({'type':_0x204701,'name':_0x570ce6,'userId':_0x73f349}),_0x3341b0[_0xb9e536]['markersStart'][_0x8e22('0x27')](_0x4e0c0b,0x1),_0x4e0c0b--);}_0x36c126(_0x3341b0[_0xb9e536]);for(let _0x35c3c2=0x0;_0x35c3c2<_0x3341b0[_0xb9e536][_0x8e22('0x91')]['length'];_0x35c3c2++){const _0x17e7d0=_0x3341b0[_0xb9e536][_0x8e22('0x91')][_0x35c3c2];if(!_0xb42de3[_0x8e22('0x87')](_0x17e7d0))continue;const {group:_0x4e89a5,type:_0x538758}=_0x577199(_0x17e7d0);if(_0x8e22('0xe5')!=_0x4e89a5||'insertion'!=_0x538758&&_0x8e22('0x11')!=_0x538758)continue;_0x3341b0[_0xb9e536][_0x8e22('0x91')][_0x8e22('0x27')](_0x35c3c2,0x1),_0x35c3c2--;const _0x295bcb=_0x32e57f[_0x8e22('0x1a')](_0x195d48=>_0x195d48['name']==_0x17e7d0);_0x295bcb>-0x1&&_0x32e57f[_0x8e22('0x27')](_0x295bcb,0x1);}}function _0x577199(_0x5e3dcd){const _0x4779ef=_0x5e3dcd['split'](':');return{'group':_0x4779ef[0x0],'type':_0x4779ef[0x1],'subType':_0x4779ef[_0x8e22('0x49')]>=0x5?_0x4779ef[0x2]:null,'id':_0x4779ef['length']<0x5?_0x4779ef[0x2]:_0x4779ef[0x3],'authorId':_0x4779ef['length']<0x5?_0x4779ef[0x3]:_0x4779ef[0x4],'markerCount':0x6==_0x4779ef[_0x8e22('0x49')]?_0x4779ef[0x5]:null};}function _0x36c126(_0x3ff966){for(let _0x101586=0x0;_0x101586<_0x32e57f['length'];_0x101586++){if(_0x3ff966[_0x8e22('0xba')]&&_0x8e22('0xca')==_0x32e57f[_0x101586][_0x8e22('0xa6')])return _0x3ff966[_0x8e22('0x1d')]=_0x32e57f[_0x101586],void delete _0x3ff966['isAdded'];if(!_0x3ff966[_0x8e22('0xba')]&&!_0x3ff966[_0x8e22('0x73')]&&_0x8e22('0x11')==_0x32e57f[_0x101586][_0x8e22('0xa6')])return void(_0x3ff966['isRemoveSuggestion']=_0x32e57f[_0x101586]);}}}[_0x8e22('0xf5')](_0x5c32a0,_0x497836){let _0x2bb754=0x0,_0x8172f=!0x1;const _0x752d80=new Map();for(const _0x5421d3 of _0x5c32a0)_0x5421d3[_0x497836]?_0x8172f&&(_0x2bb754++,_0x8172f=!0x1):(_0x2bb754++,_0x8172f=!0x0),_0x752d80[_0x8e22('0xf6')](_0x5421d3['id'],_0x2bb754);for(let _0x2da7a9=0x0;_0x2da7a9<_0x5c32a0['length'];_0x2da7a9++){if(_0x8e22('0x73')==_0x497836&&_0x5c32a0[_0x2da7a9][_0x8e22('0xba')]||_0x8e22('0xba')==_0x497836&&_0x5c32a0[_0x2da7a9][_0x8e22('0x73')])continue;if(_0x8e22('0xc6')==_0x5c32a0[_0x2da7a9][_0x8e22('0xa6')]){_0x5c32a0[_0x2da7a9][_0x8e22('0xc5')]=0x0;continue;}const _0x20a71d=_0x752d80[_0x8e22('0x3')](_0x5c32a0[_0x2da7a9][_0x8e22('0x109')]),_0x47436b=_0x752d80[_0x8e22('0x3')](_0x5c32a0[_0x2da7a9]['id']);_0x5c32a0[_0x2da7a9][_0x8e22('0xc5')]=_0x20a71d-_0x47436b;}}['_getRevisionsRange'](_0x40d24d,_0x273d69,_0x4b7023=!0x1){const _0x3f900a=[];let _0x36af2f=this['repository']['getIndex'](_0x40d24d),_0x58a327=this['repository']['getIndex'](_0x273d69);for(-0x1==_0x58a327&&(_0x58a327=this[_0x8e22('0x6b')][_0x8e22('0xac')][_0x8e22('0x49')],_0x4b7023=!0x1);_0x36af2f<_0x58a327;)_0x3f900a['push'](this[_0x8e22('0x6b')]['getRevision'](_0x36af2f)),_0x36af2f++;return _0x4b7023&&_0x3f900a[_0x8e22('0x16')](this[_0x8e22('0x6b')][_0x8e22('0x47')](_0x36af2f)),_0x3f900a;}[_0x8e22('0x32')](_0x16ff8d,_0x577f7e,_0x22b7d3,_0x4639da){const _0x1ba6c5=this[_0x8e22('0x84')]['model']['schema'];let _0x249667=_0x577f7e;for(;_0x16ff8d[_0x249667]&&_0x16ff8d[_0x249667][_0x8e22('0xba')];)_0x249667++;let _0x57a2c2=_0x4639da;for(;_0x22b7d3[_0x57a2c2]&&_0x22b7d3[_0x57a2c2][_0x8e22('0x73')];)_0x57a2c2++;_0x2cd021(_0x16ff8d,_0x577f7e,_0x249667),_0x2cd021(_0x22b7d3,_0x4639da,_0x57a2c2);const _0x4f6fa6=_0x22b7d3['slice'](_0x4639da,_0x57a2c2)[_0x8e22('0xa4')](_0x16ff8d[_0x8e22('0xa5')](_0x577f7e,_0x249667));return _0x4f6fa6[_0x8e22('0xa8')]((_0x142d98,_0x333cda)=>_0x142d98[_0x8e22('0x11a')]!=_0x333cda[_0x8e22('0x11a')]?_0x142d98[_0x8e22('0x11a')]-_0x333cda['side']:_0x142d98[_0x8e22('0xa7')]!=_0x333cda[_0x8e22('0xa7')]?_0x142d98[_0x8e22('0xa7')]-_0x333cda['level']:_0x142d98['distance']!=_0x333cda['distance']?_0x333cda[_0x8e22('0xc5')]-_0x142d98[_0x8e22('0xc5')]:!!_0x142d98[_0x8e22('0xba')]!=!!_0x333cda['isAdded']?-0x1==_0x142d98[_0x8e22('0x11a')]||0x0==_0x142d98['side']?_0x142d98[_0x8e22('0xba')]?-0x1:0x1:_0x142d98['isAdded']?0x1:-0x1:_0x142d98[_0x8e22('0xb1')]-_0x333cda[_0x8e22('0xb1')]),{'commonTape':_0x4f6fa6,'iEnd':_0x249667,'jEnd':_0x57a2c2};function _0x2cd021(_0x10dce7,_0x27d3a1,_0x547376){let _0x27686c=-0x1,_0x2792b0=Number['POSITIVE_INFINITY'],_0x469fe2=!0x0;for(let _0x2277a8=_0x27d3a1;_0x2277a8<_0x547376;_0x2277a8++)if(_0x1ba6c5['isInline'](_0x10dce7[_0x2277a8]['item'])||(_0x469fe2=!0x1),_0x10dce7[_0x2277a8][_0x8e22('0x108')][_0x8e22('0x104')]<_0x27d3a1&&(_0x27686c=_0x2277a8),_0x10dce7[_0x2277a8]['item']['endIndex']>=_0x547376){_0x2792b0=_0x2277a8;break;}_0x469fe2&&(_0x27686c=_0x547376-0x1);for(let _0x4a206a=_0x27d3a1;_0x4a206a<_0x547376;_0x4a206a++)_0x10dce7[_0x4a206a]['side']=_0x4a206a<=_0x27686c?-0x1:_0x4a206a<_0x2792b0?0x0:0x1,_0x10dce7[_0x4a206a][_0x8e22('0xb1')]=_0x4a206a;let _0x35f8ce=0x0;for(let _0x363776=_0x27d3a1;_0x363776<=_0x27686c;_0x363776++)0x0==_0x10dce7[_0x363776][_0x8e22('0xc5')]?_0x10dce7[_0x363776]['level']=_0x35f8ce:(_0x35f8ce++,_0x10dce7[_0x363776][_0x8e22('0xa7')]=_0x35f8ce,_0x35f8ce++);for(let _0x11d2ad=_0x27d3a1;_0x11d2ad<_0x547376;_0x11d2ad++)0x0==_0x10dce7[_0x11d2ad][_0x8e22('0x11a')]&&(_0x10dce7[_0x11d2ad][_0x8e22('0xa7')]=_0x35f8ce);_0x35f8ce=0x0;for(let _0x155f00=_0x547376-0x1;_0x155f00>=_0x2792b0;_0x155f00--)0x0==_0x10dce7[_0x155f00][_0x8e22('0xc5')]?_0x10dce7[_0x155f00]['level']=_0x35f8ce:(_0x35f8ce--,_0x10dce7[_0x155f00][_0x8e22('0xa7')]=_0x35f8ce,_0x35f8ce--);}}[_0x8e22('0x117')](_0x23eb59){const _0x3aa071=new Map(),_0x113ec8=this[_0x8e22('0x84')]['model']['schema'];for(let _0x4b63b0=0x1;_0x4b63b0<_0x23eb59[_0x8e22('0x49')];_0x4b63b0++){let _0x431a1c,_0x1c2916,_0x2a2732;const _0xcf4798=_0x23eb59[_0x4b63b0],_0x298729=_0x23eb59[_0x4b63b0-0x1];if(_0x8e22('0xc6')==_0xcf4798[_0x8e22('0xa6')])continue;if(_0xcf4798[_0x8e22('0xa6')]!=_0x298729[_0x8e22('0xa6')])continue;if(!_0x113ec8['isBlock'](_0x298729[_0x8e22('0x108')])||_0x113ec8[_0x8e22('0xa3')](_0x298729[_0x8e22('0x108')]))continue;if(!_0x113ec8[_0x8e22('0xad')](_0xcf4798[_0x8e22('0x108')])||_0x113ec8[_0x8e22('0xa3')](_0xcf4798[_0x8e22('0x108')]))continue;if((_0x23eb59[_0x4b63b0][_0x8e22('0xba')]||_0x23eb59[_0x4b63b0][_0x8e22('0x1d')])&&_0x23eb59[_0x4b63b0-0x1][_0x8e22('0x73')])_0x431a1c=_0x23eb59[_0x4b63b0],_0x1c2916=_0x23eb59[_0x4b63b0-0x1],_0x2a2732=_0x4b63b0-0x1;else{if(!_0x23eb59[_0x4b63b0][_0x8e22('0x73')]||!_0x23eb59[_0x4b63b0-0x1][_0x8e22('0xba')]&&!_0x23eb59[_0x4b63b0-0x1]['isAddSuggestion'])continue;_0x431a1c=_0x23eb59[_0x4b63b0-0x1],_0x1c2916=_0x23eb59[_0x4b63b0],_0x2a2732=_0x4b63b0;}const _0x308c24=_0x431a1c[_0x8e22('0xa7')]==_0x1c2916[_0x8e22('0xa7')],_0x258a91=Math[_0x8e22('0x81')](_0x431a1c[_0x8e22('0xa7')])<Math['abs'](_0x1c2916[_0x8e22('0xa7')])&&0x0==_0x1c2916[_0x8e22('0xc5')];(_0x308c24||_0x258a91)&&(_0x3aa071[_0x8e22('0xf6')](_0x1c2916['id'],_0x431a1c['id']),_0x23eb59[_0x8e22('0x27')](_0x2a2732,0x1),_0x4b63b0--,_0x431a1c[_0x8e22('0xba')]=!0x1);}for(let _0x28cf5f=0x0;_0x28cf5f<_0x23eb59[_0x8e22('0x49')];_0x28cf5f++)_0x3aa071[_0x8e22('0x87')](_0x23eb59[_0x28cf5f]['pairId'])&&(_0x23eb59[_0x28cf5f][_0x8e22('0x109')]=_0x3aa071[_0x8e22('0x3')](_0x23eb59[_0x28cf5f][_0x8e22('0x109')]));}['_removeMissingPairs'](_0x5d48cd){const _0x46db67=new Set(_0x5d48cd['map'](_0x25938f=>_0x25938f['id']));for(let _0x1a8613=0x0;_0x1a8613<_0x5d48cd[_0x8e22('0x49')];_0x1a8613++)_0x46db67['has'](_0x5d48cd[_0x1a8613][_0x8e22('0x109')])||0x0==_0x5d48cd[_0x1a8613][_0x8e22('0xc5')]||(_0x5d48cd[_0x1a8613][_0x8e22('0x79')]=!0x0);return _0x5d48cd[_0x8e22('0xea')](_0x6654a9=>!_0x6654a9['isIncorrect']);}[_0x8e22('0xc3')](_0x4afb7a){const _0x5c7549=new Set();for(let _0x2f950b=0x0;_0x2f950b<_0x4afb7a[_0x8e22('0x49')];_0x2f950b++){if(_0x5c7549['has'](_0x4afb7a[_0x2f950b]['id'])&&_0x4afb7a[_0x2f950b][_0x8e22('0x73')]&&(_0x4afb7a[_0x2f950b][_0x8e22('0x79')]=!0x0),_0x4afb7a[_0x2f950b][_0x8e22('0x79')])continue;if(0x0==_0x4afb7a[_0x2f950b][_0x8e22('0xc5')])continue;if(_0x8e22('0x39')!=_0x4afb7a[_0x2f950b][_0x8e22('0xa6')])continue;if(null==_0x4afb7a[_0x2f950b][_0x8e22('0x109')])continue;let _0x25046b=_0x2f950b+0x1,_0x82fc23=0x0;for(;_0x4afb7a[_0x25046b]['id']!=_0x4afb7a[_0x2f950b]['pairId'];)_0x8e22('0x39')==_0x4afb7a[_0x25046b][_0x8e22('0xa6')]?_0x82fc23++:_0x8e22('0x94')==_0x4afb7a[_0x25046b][_0x8e22('0xa6')]&&_0x82fc23--,_0x25046b++;if(0x0!=_0x82fc23){if(_0x4afb7a[_0x2f950b][_0x8e22('0x73')])_0x4afb7a[_0x2f950b][_0x8e22('0x79')]=!0x0;else for(;_0x25046b!=_0x2f950b;)_0x4afb7a[_0x25046b]['isRemoved']&&0x0!=_0x4afb7a[_0x25046b]['distance']&&(_0x4afb7a[_0x25046b][_0x8e22('0x79')]=!0x0,_0x5c7549[_0x8e22('0x8')](_0x4afb7a[_0x25046b]['pairId'])),_0x25046b--;}}return _0x4afb7a[_0x8e22('0xea')](_0x8bea58=>!_0x8bea58[_0x8e22('0x79')]);}[_0x8e22('0x7')](_0xeded2e){const _0x43bd7f=this['editor']['model'][_0x8e22('0x37')];for(let _0x513a6e=0x0;_0x513a6e<_0xeded2e[_0x8e22('0x49')];_0x513a6e++){if(!(_0xeded2e[_0x513a6e][_0x8e22('0xba')]||_0xeded2e[_0x513a6e][_0x8e22('0x1d')]||_0xeded2e[_0x513a6e][_0x8e22('0x73')]||_0xeded2e[_0x513a6e]['isRemoveSuggestion']))continue;if(0x0==_0xeded2e[_0x513a6e][_0x8e22('0xc5')])continue;const _0x4500f1=_0xeded2e[_0x513a6e][_0x8e22('0x108')];_0x43bd7f[_0x8e22('0xad')](_0x4500f1)||_0x43bd7f['isLimit'](_0x4500f1)||(_0xeded2e[_0x513a6e][_0x8e22('0xba')]&&delete _0xeded2e[_0x513a6e][_0x8e22('0xba')],_0xeded2e[_0x513a6e][_0x8e22('0x1d')]&&delete _0xeded2e[_0x513a6e][_0x8e22('0x1d')],_0xeded2e[_0x513a6e][_0x8e22('0x107')]&&delete _0xeded2e[_0x513a6e][_0x8e22('0x107')],_0xeded2e[_0x513a6e][_0x8e22('0x73')]&&(_0xeded2e[_0x513a6e]['isIncorrect']=!0x0));}return _0xeded2e['filter'](_0x4a5a29=>!_0x4a5a29[_0x8e22('0x79')]);}['_makeModelFromTape'](_0x45f6b7,_0x490fb7,_0x5cf64b){const _0x2c719d=new _0x152052(),_0x23fd1a=[],_0x225d91=new Map(),_0x35add7=this[_0x8e22('0x84')][_0x8e22('0x34')],_0x4532c5=_0x35add7[_0x8e22('0x37')],_0x233652=[_0x2c719d],_0x3ba13b={},_0x272e8d={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xd1787c=null;const _0x57a3a3=[0x0];for(let _0xe6bea4=0x0;_0xe6bea4<_0x45f6b7[_0x8e22('0x49')];_0xe6bea4++){let _0x104e71,_0x1171ba;if(_0x8e22('0x39')===_0x45f6b7[_0xe6bea4][_0x8e22('0xa6')]){_0x104e71=_0x35add7['createPositionFromPath'](_0x2c719d,_0x57a3a3);const _0x2b802d=new _0x1aaf7c(_0x45f6b7[_0xe6bea4][_0x8e22('0x108')][_0x8e22('0x1f')],_0x45f6b7[_0xe6bea4][_0x8e22('0x108')][_0x8e22('0xe')]());_0x233652[0x0]['_appendChild'](_0x2b802d),_0x57a3a3['push'](0x0),_0x233652[_0x8e22('0xff')](_0x2b802d),_0x1171ba=_0x35add7[_0x8e22('0x11c')](_0x2c719d,_0x57a3a3),_0xd1787c=null;}else{if(_0x8e22('0x94')===_0x45f6b7[_0xe6bea4]['type'])_0x233652['shift'](),_0x104e71=_0x35add7[_0x8e22('0x11c')](_0x2c719d,_0x57a3a3),_0x57a3a3[_0x8e22('0x21')](),_0x57a3a3[_0x57a3a3['length']-0x1]++,_0x1171ba=_0x35add7[_0x8e22('0x11c')](_0x2c719d,_0x57a3a3),_0xd1787c=null;else{if(_0x104e71=_0x35add7[_0x8e22('0x11c')](_0x2c719d,_0x57a3a3),_0xd1787c&&_0x4887a3(_0xd1787c,_0x45f6b7[_0xe6bea4][_0x8e22('0x108')]))_0xd1787c[_0x8e22('0x6a')]+=_0x45f6b7[_0xe6bea4][_0x8e22('0x108')][_0x8e22('0xd5')];else{const _0x1422e7=new _0x3bb3a3(_0x45f6b7[_0xe6bea4][_0x8e22('0x108')][_0x8e22('0xd5')],_0x45f6b7[_0xe6bea4]['item']['getAttributes']());_0x233652[0x0][_0x8e22('0xa2')](_0x1422e7),_0xd1787c=_0x1422e7;}_0x57a3a3[_0x57a3a3[_0x8e22('0x49')]-0x1]+=_0x45f6b7[_0xe6bea4][_0x8e22('0x108')][_0x8e22('0x70')],_0x1171ba=_0x35add7['createPositionFromPath'](_0x2c719d,_0x57a3a3);}}for(const _0x379af8 of _0x45f6b7[_0xe6bea4][_0x8e22('0xee')])_0x225d91[_0x8e22('0xf6')](_0x379af8,{'start':_0x104e71,'end':null});_0x149655('isRemoveSuggestion',_0xe6bea4,_0x104e71,_0x1171ba),_0x149655(_0x8e22('0x1d'),_0xe6bea4,_0x104e71,_0x1171ba),_0x149655(_0x8e22('0x73'),_0xe6bea4,_0x104e71,_0x1171ba),_0x149655(_0x8e22('0xba'),_0xe6bea4,_0x104e71,_0x1171ba);for(const _0x192e03 of _0x45f6b7[_0xe6bea4][_0x8e22('0x91')]){_0x225d91[_0x8e22('0x3')](_0x192e03)[_0x8e22('0x43')]=_0x1171ba;}}for(const [_0xf3f17b,_0x448a50]of _0x225d91){const _0x45205c=this['editor'][_0x8e22('0x34')][_0x8e22('0xfa')](_0x448a50['start'],_0x448a50[_0x8e22('0x43')]);_0x2c719d['markers'][_0x8e22('0xf6')](_0xf3f17b,_0x45205c);}return _0x23fd1a[_0x8e22('0xa8')]((_0x5defb8,_0x116c76)=>{const _0x2fbbca=_0x2c719d[_0x8e22('0x99')][_0x8e22('0x3')]('revision:'+_0x5defb8['id']),_0x4127cf=_0x2c719d[_0x8e22('0x99')][_0x8e22('0x3')]('revision:'+_0x116c76['id']);return _0x2fbbca[_0x8e22('0xd1')][_0x8e22('0x111')](_0x4127cf[_0x8e22('0xd1')])?-0x1:_0x2fbbca['start'][_0x8e22('0x3a')](_0x4127cf[_0x8e22('0xd1')])?0x1:_0x2fbbca['end']['isBefore'](_0x4127cf[_0x8e22('0x43')])?-0x1:_0x2fbbca[_0x8e22('0x43')][_0x8e22('0x3a')](_0x4127cf[_0x8e22('0x43')])?0x1:_0x8e22('0x8')===_0x5defb8[_0x8e22('0xa6')]?-0x1:0x1;}),{'root':_0x2c719d,'changes':_0x23fd1a};function _0x149655(_0x3653ae,_0x23e61a,_0x2649d1,_0x2910e8){const _0x180a9c=!!_0x45f6b7[_0x23e61a][_0x3653ae],_0xae605c=_0x180a9c?_0x45f6b7[_0x23e61a][_0x3653ae]['userId']:null,_0x418778=_0x23e61a===_0x45f6b7[_0x8e22('0x49')]-0x1,_0x20fb8d=_0x272e8d[_0x3653ae][0x0],_0x1f7656=_0x4532c5['isObject'](_0x45f6b7[_0x23e61a]['item']);!_0x3ba13b[_0x3653ae]&&_0x180a9c?_0x3ba13b[_0x3653ae]={'start':_0x2649d1,'tapeItem':_0x45f6b7[_0x23e61a],'userId':_0xae605c,'type':_0x3653ae}:_0x3ba13b[_0x3653ae]&&!_0x180a9c?(_0x3ba13b[_0x3653ae][_0x8e22('0x43')]=_0x2649d1,_0x8109ac(_0x3ba13b[_0x3653ae]),_0x3ba13b[_0x3653ae]=null):_0x3ba13b[_0x3653ae]&&_0x180a9c&&_0x3ba13b[_0x3653ae][_0x8e22('0x4f')]!==_0xae605c&&(_0x3ba13b[_0x3653ae][_0x8e22('0x43')]=_0x2649d1,_0x20fb8d&&_0x20fb8d[_0x8e22('0x4f')]===_0x3ba13b[_0x3653ae][_0x8e22('0x4f')]||_0x8109ac(_0x3ba13b[_0x3653ae]),_0x3ba13b[_0x3653ae]={'start':_0x2649d1,'tapeItem':_0x45f6b7[_0x23e61a],'userId':_0xae605c,'type':_0x3653ae}),_0x3ba13b[_0x3653ae]&&_0x1f7656&&(_0x8e22('0x39')!==_0x45f6b7[_0x23e61a]['type']||_0x20fb8d&&_0x20fb8d[_0x8e22('0x4f')]===_0xae605c||_0x272e8d[_0x3653ae][_0x8e22('0xff')]({'userId':_0xae605c,'object':_0x45f6b7[_0x23e61a]['item'],'change':_0x3ba13b[_0x3653ae]}),'elementEnd'===_0x45f6b7[_0x23e61a][_0x8e22('0xa6')]&&_0x20fb8d&&_0x20fb8d[_0x8e22('0x118')]===_0x45f6b7[_0x23e61a][_0x8e22('0x108')]&&(_0x272e8d[_0x3653ae][_0x8e22('0x7a')](),_0x3ba13b[_0x3653ae]=_0x20fb8d[_0x8e22('0xa')])),_0x3ba13b[_0x3653ae]&&_0x418778&&(_0x3ba13b[_0x3653ae][_0x8e22('0x43')]=_0x2910e8,_0x8109ac(_0x3ba13b[_0x3653ae]),_0x3ba13b[_0x3653ae]=null);}function _0x8109ac({start:_0x5565ab,end:_0x2bb2dc,tapeItem:_0x54c61e,userId:_0x26fafa,type:_0x48945f}){const _0x12bf9d=_0x54c61e[_0x8e22('0x108')],_0x1e2a09=_0x35add7[_0x8e22('0x37')]['isBlock'](_0x12bf9d)&&!_0x35add7['schema'][_0x8e22('0xa3')](_0x12bf9d),_0x52a736=_0x5565ab['nodeAfter']==_0x2bb2dc[_0x8e22('0x8a')]&&_0x2bb2dc[_0x8e22('0x103')];if(_0x1e2a09&&_0x52a736)return;const _0x37f8f3=_0x35add7[_0x8e22('0xfa')](_0x5565ab,_0x2bb2dc),_0x59b075=_0x490fb7[_0x8e22('0x3')](_0x26fafa),_0x414849=new _0x5d77d4({'author':_0x59b075,'type':'isAdded'==_0x48945f||_0x8e22('0x1d')==_0x48945f?_0x8e22('0x8'):'remove','data':{'isSuggestion':'isAddSuggestion'==_0x48945f||'isRemoveSuggestion'==_0x48945f},'createdAt':new Date(),'rootName':_0x5cf64b});_0x23fd1a[_0x8e22('0x16')](_0x414849),_0x2c719d['markers'][_0x8e22('0xf6')](_0x8e22('0xf7')+_0x414849['id'],_0x37f8f3);}function _0x4887a3(_0x596d89,_0x4789bf){const _0x2df283=_0x596d89['getAttributes'](),_0x2396c0=_0x4789bf[_0x8e22('0xe')]();for(const _0x3bb302 of _0x2df283){if(_0x3bb302[0x1]!==_0x4789bf[_0x8e22('0xc4')](_0x3bb302[0x0]))return!0x1;_0x2396c0[_0x8e22('0x69')]();}return _0x2396c0['next']()[_0x8e22('0xb7')];}}['_setConversion'](){this[_0x8e22('0x84')][_0x8e22('0x100')]['for'](_0x8e22('0x95'))[_0x8e22('0xfe')]({'view':'revision'}),this[_0x8e22('0x84')]['conversion']['for']('editingDowncast')[_0x8e22('0xcf')]({'model':_0x8e22('0x63'),'view':_0x5d5dc2=>{const _0x36fa02=_0x5d5dc2[_0x8e22('0x77')][_0x8e22('0xb0')](':')[0x1],_0x383770=this[_0x8e22('0xe8')](_0x36fa02);if(!_0x383770)return null;const _0x5756bf=_0x8e22('0x8')==_0x383770[_0x8e22('0xa6')]?'insertion':_0x8e22('0x11'),_0x18bf26=[_0x8e22('0x80'),_0x8e22('0x8c')+_0x5756bf];return _0x383770[_0x8e22('0xd5')][_0x8e22('0x7c')]&&_0x18bf26[_0x8e22('0x16')](_0x8e22('0x8c')+_0x5756bf+_0x8e22('0x31')),this[_0x8e22('0xaf')]==_0x383770&&_0x18bf26[_0x8e22('0x16')](_0x8e22('0xed')),{'classes':_0x18bf26,'attributes':{'data-change-id':_0x36fa02}};}}),this[_0x8e22('0x84')][_0x8e22('0x100')][_0x8e22('0x6d')](_0x8e22('0x95'))['add'](_0x6ad62d=>{_0x6ad62d['on']('element:pre',(_0x32551b,_0x9e913f,_0x3b0937)=>{const _0x1f619f=_0x9e913f['viewItem'][_0x8e22('0x72')](0x0);if(!_0x1f619f||!_0x1f619f['is'](_0x8e22('0xf8'),_0x8e22('0x90')))return;if(!_0x3b0937[_0x8e22('0x4d')][_0x8e22('0xec')](_0x1f619f,{'attributes':[_0x8e22('0x14'),'vid_end']}))return;const _0x33f776=_0x9e913f[_0x8e22('0x54')][_0x8e22('0xd1')][_0x8e22('0xaa')];_0x3b0937[_0x8e22('0x6')]['setAttribute'](_0x8e22('0x14'),_0x1f619f[_0x8e22('0xc4')](_0x8e22('0x14')),_0x33f776),_0x3b0937[_0x8e22('0x6')][_0x8e22('0x12')]('vid_end',_0x1f619f[_0x8e22('0xc4')](_0x8e22('0x98')),_0x33f776);},{'priority':_0x8e22('0x86')});}),this[_0x8e22('0x84')][_0x8e22('0x100')][_0x8e22('0x6d')](_0x8e22('0x95'))[_0x8e22('0x8')](_0x1cbb72=>{_0x1cbb72['on'](_0x8e22('0xf8'),(_0x491054,_0x23c76e,_0x5513ac)=>{if(!_0x5513ac[_0x8e22('0x4d')][_0x8e22('0xec')](_0x23c76e['viewItem'],{'attributes':[_0x8e22('0x14'),_0x8e22('0x98')]}))return;if(_0x23c76e[_0x8e22('0x54')]['isCollapsed'])return;const _0x2e325b=_0x23c76e[_0x8e22('0x54')][_0x8e22('0xd1')]['nodeAfter'];_0x2e325b[_0x8e22('0x52')](_0x8e22('0x14'))||_0x2e325b[_0x8e22('0x52')](_0x8e22('0x38'))||(_0x5513ac[_0x8e22('0x6')][_0x8e22('0x12')](_0x8e22('0x14'),_0x23c76e['viewItem'][_0x8e22('0xc4')](_0x8e22('0x14')),_0x2e325b),_0x5513ac[_0x8e22('0x6')][_0x8e22('0x12')](_0x8e22('0x98'),_0x23c76e[_0x8e22('0x110')]['getAttribute'](_0x8e22('0x98')),_0x2e325b));},{'priority':_0x8e22('0x86')});}),this[_0x8e22('0x84')][_0x8e22('0x100')]['for'](_0x8e22('0x95'))[_0x8e22('0x66')]({'view':{'name':_0x8e22('0xb6'),'attributes':{'vid':!0x0}},'model':{'key':_0x8e22('0x38'),'value':_0x3e78a8=>_0x3e78a8[_0x8e22('0xc4')]('vid')}}),this[_0x8e22('0x84')]['model'][_0x8e22('0x37')]['on'](_0x8e22('0x4b'),(_0x85827d,[,_0x3d75ba])=>{['vid_start',_0x8e22('0x98'),'vid'][_0x8e22('0x5f')](_0x3d75ba)&&(_0x85827d[_0x8e22('0x20')]=!0x0,_0x85827d['stop']());},{'priority':'highest'}),this[_0x8e22('0x84')][_0x8e22('0x100')][_0x8e22('0x6d')](_0x8e22('0x5'))[_0x8e22('0x8')](_0x116478=>{_0x116478['on']('attribute:vid',(_0x58a197,_0x54ae3d,_0x520eb6)=>{if('\x20'!=_0x54ae3d[_0x8e22('0x108')][_0x8e22('0xd5')]||_0x54ae3d[_0x8e22('0x108')]['parent'][_0x8e22('0x82')]>0x1)return;if(!_0x520eb6['consumable'][_0x8e22('0xec')](_0x54ae3d[_0x8e22('0x108')],_0x58a197[_0x8e22('0x1f')]))return;const _0x40a50c=_0x520eb6[_0x8e22('0x6')],_0x13ab74=_0x520eb6[_0x8e22('0xf4')][_0x8e22('0xef')](_0x54ae3d['range']);_0x40a50c[_0x8e22('0x19')](_0x13ab74,_0x40a50c[_0x8e22('0x11b')](_0x8e22('0xb6')));});}),this[_0x8e22('0x84')]['conversion'][_0x8e22('0x6d')](_0x8e22('0x5'))[_0x8e22('0xbc')]({'model':_0x8e22('0x63')}),this[_0x8e22('0x84')]['editing'][_0x8e22('0xe7')]['on']('addMarker:revision',function(_0x23870f){const _0x54a516=_0x23870f['plugins']['get'](_0x8e22('0x55'));return(_0x18998d,_0xdf3d56,_0x39e1ca)=>{const _0x4f84e2=_0xdf3d56['markerName']['split'](':')[0x1],_0x416410=_0x54a516[_0x8e22('0xe8')](_0x4f84e2);if(!_0x416410)return null;const _0x3daf47=_0x8e22('0x8')==_0x416410['type']?_0x8e22('0xb0'):_0x8e22('0xb4');if(!_0x39e1ca[_0x8e22('0x4d')]['test'](_0xdf3d56[_0x8e22('0x78')],_0x18998d['name']))return;const _0x29324e=_0xdf3d56[_0x8e22('0x78')][_0x8e22('0xcb')](),_0x2a2ac3=_0xdf3d56['markerRange']['start'],_0x4485c5=_0x23870f[_0x8e22('0x34')][_0x8e22('0x37')];let _0x16a62a=null,_0x3a720d=null,_0x5d3120=!0x1,_0x5555f7=!0x1;for(const _0x4cac7d of _0x29324e){const _0x3cfab2=_0x4cac7d[_0x8e22('0x108')];_0x5d3120=_0x5d3120||_0x4485c5[_0x8e22('0x15')](_0x3cfab2);const _0x3aab7f=_0x39e1ca['mapper'][_0x8e22('0x10')](_0x3cfab2);if(_0x3aab7f&&_0x3aab7f[_0x8e22('0x2b')](_0x8e22('0xd7')))return;_0x8e22('0x94')==_0x4cac7d[_0x8e22('0xa6')]&&(_0x4485c5['isBlock'](_0x3cfab2)&&!_0x4485c5[_0x8e22('0xa3')](_0x3cfab2)&&(_0x3cfab2[_0x8e22('0x4a')]||_0x2a2ac3[_0x8e22('0xcd')]?_0x16a62a&&_0x16a62a['parent']==_0x3cfab2||(_0x16a62a=_0x3cfab2,_0x31da2b(_0x4cac7d[_0x8e22('0xe4')]),_0x5555f7=!0x0):_0x3a720d=_0x3a720d||_0x4cac7d[_0x8e22('0xe4')]));}function _0x31da2b(_0x594e51){const _0xe15242=_0x39e1ca[_0x8e22('0x6')][_0x8e22('0xe2')](_0x8e22('0xb6'),{'class':_0x8e22('0x8c')+_0x3daf47}),_0x5c0a93=_0x39e1ca[_0x8e22('0xf4')]['toViewPosition'](_0x594e51);_0x416410[_0x8e22('0xd5')][_0x8e22('0x7c')]&&_0x39e1ca[_0x8e22('0x6')][_0x8e22('0xf1')](_0x8e22('0x8c')+_0x3daf47+'-new',_0xe15242),_0x54a516[_0x8e22('0xaf')]==_0x416410&&_0x39e1ca['writer']['addClass']('ck-suggestion-marker--active',_0xe15242),_0x39e1ca[_0x8e22('0x6')]['insert'](_0x5c0a93,_0xe15242),_0x39e1ca[_0x8e22('0xf4')][_0x8e22('0x10b')](_0xe15242,_0xdf3d56[_0x8e22('0x77')]);}_0x5d3120||_0x5555f7||!_0x3a720d||_0x31da2b(_0x3a720d);};}(this[_0x8e22('0x84')]),{'priority':'high'}),this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0xe7')]['on'](_0x8e22('0x25'),(_0x44803f,_0x187690,_0x144667)=>{const _0xfcdab2=_0x144667['mapper'][_0x8e22('0x23')](_0x187690[_0x8e22('0x77')]);if(_0xfcdab2)for(const _0x121d4f of _0xfcdab2)(_0x121d4f[_0x8e22('0x0')](_0x8e22('0xc1'))||_0x121d4f[_0x8e22('0x0')](_0x8e22('0x5e')))&&(_0x144667[_0x8e22('0xf4')][_0x8e22('0x114')](_0x121d4f,_0x187690[_0x8e22('0x77')]),_0x144667[_0x8e22('0x6')]['remove'](_0x121d4f));},{'priority':'high'}),this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0xe7')]['on']('addMarker:revision',(_0x50078b,_0x6db474,_0x3ca2cd)=>{const _0x1427f4=_0x6db474[_0x8e22('0x77')]['split'](':')[0x1],_0x3fd492=this[_0x8e22('0xe8')](_0x1427f4);if(!_0x3fd492)return null;const _0x479811=_0x8e22('0x8')==_0x3fd492['type']?_0x8e22('0xb0'):'merge';if(_0x3ca2cd[_0x8e22('0x4d')][_0x8e22('0xd2')](_0x6db474[_0x8e22('0x78')],_0x50078b['name']))for(const _0x310d1d of _0x6db474['markerRange'][_0x8e22('0x9d')]()){if(!_0x310d1d['is']('element',_0x8e22('0x6e')))continue;const _0xbc6170=_0x3ca2cd['writer'][_0x8e22('0xe2')]('span',{'class':_0x8e22('0x8c')+_0x479811}),_0x3ac593=_0x3ca2cd[_0x8e22('0xf4')][_0x8e22('0x93')](this['editor']['model'][_0x8e22('0x10a')](_0x310d1d));_0x3fd492[_0x8e22('0xd5')][_0x8e22('0x7c')]&&_0x3ca2cd[_0x8e22('0x6')][_0x8e22('0xf1')](_0x8e22('0x8c')+_0x479811+'-new',_0xbc6170),this[_0x8e22('0xaf')]==_0x3fd492&&_0x3ca2cd[_0x8e22('0x6')][_0x8e22('0xf1')]('ck-suggestion-marker--active',_0xbc6170),_0x3ca2cd[_0x8e22('0x6')][_0x8e22('0xb9')](_0x3ac593,_0xbc6170),_0x3ca2cd['mapper'][_0x8e22('0x10b')](_0xbc6170,_0x6db474['markerName']);}},{'priority':_0x8e22('0x13')}),this['editor'][_0x8e22('0x34')]['document']['on']('change',()=>{this[_0x8e22('0x84')]['editing'][_0x8e22('0x89')][_0x8e22('0xa')](_0x567266=>{for(const _0x143e63 of this[_0x8e22('0x84')][_0x8e22('0x34')][_0x8e22('0xda')][_0x8e22('0x40')]()){const _0x1696f3=this[_0x8e22('0x84')]['model'][_0x8e22('0xda')]['getRoot'](_0x143e63),_0x467b55=this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0x89')][_0x8e22('0xda')]['getRoot'](_0x143e63);if(_0x467b55){const _0x521e09=_0x1696f3['getAttribute'](_0x8e22('0x30'));if(_0x567266[_0x8e22('0x3f')]('data-change-id',_0x467b55),_0x567266[_0x8e22('0xdd')]('ck-revision-history-root-add',_0x467b55),_0x567266['removeClass']('ck-revision-history-root-remove',_0x467b55),_0x567266[_0x8e22('0xdd')]('ck-revision-history-root--active',_0x467b55),_0x521e09){const _0x2c763e=this[_0x8e22('0xe8')](_0x521e09);if(!_0x2c763e)return null;_0x567266['setAttribute'](_0x8e22('0xd4'),_0x521e09,_0x467b55),_0x567266['addClass']('ck-revision-history-root-'+_0x2c763e[_0x8e22('0xa6')],_0x467b55),this[_0x8e22('0xaf')]==_0x2c763e&&_0x567266[_0x8e22('0xf1')](_0x8e22('0xe3'),_0x467b55);}}}});}),this[_0x8e22('0x84')][_0x8e22('0x100')]['for'](_0x8e22('0x95'))[_0x8e22('0xfe')]({'view':'comment','model':_0x1943bf=>_0x8e22('0x10f')+_0x1943bf,'converterPriority':_0x8e22('0x116')}),this[_0x8e22('0x84')][_0x8e22('0x100')]['for']('upcast')[_0x8e22('0xfe')]({'view':_0x8e22('0x4e'),'model':_0x24e426=>'revision-suggestion:'+_0x24e426,'converterPriority':_0x8e22('0x116')}),this['editor'][_0x8e22('0x100')][_0x8e22('0x6d')](_0x8e22('0x5'))[_0x8e22('0xbc')]({'model':_0x8e22('0xe5'),'view':_0xb30241=>({'name':'suggestion:'+_0xb30241,'group':_0x8e22('0xe5')}),'converterPriority':'highest'}),this['editor'][_0x8e22('0x100')]['for'](_0x8e22('0x48'))[_0x8e22('0xcf')]({'model':_0x8e22('0xe5'),'view':_0xe03e3e=>{const _0x4bbdf3=_0xe03e3e[_0x8e22('0x77')][_0x8e22('0xb0')](':')[0x1];return _0x8e22('0xca')!=_0x4bbdf3&&_0x8e22('0x11')!=_0x4bbdf3?null:{'classes':[_0x8e22('0x60'),'ck-suggestion-preview-marker-'+_0x4bbdf3]};}}),this['editor']['editing'][_0x8e22('0xe7')]['on']('addMarker:revision-suggestion:deletion',Z(this[_0x8e22('0x84')],_0x8e22('0xb4')),{'priority':_0x8e22('0x13')}),this[_0x8e22('0x84')]['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this[_0x8e22('0x84')],_0x8e22('0xb0')),{'priority':_0x8e22('0x13')}),this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0xe7')]['on'](_0x8e22('0x5c'),(_0x3317b4,_0x2e7be5,_0x447d9)=>{const _0x3513df=_0x447d9['mapper']['markerNameToElements'](_0x2e7be5[_0x8e22('0x77')]);if(_0x3513df)for(const _0x258a5c of _0x3513df)_0x258a5c['is'](_0x8e22('0xc9'))&&(_0x447d9[_0x8e22('0xf4')][_0x8e22('0x114')](_0x258a5c,_0x2e7be5[_0x8e22('0x77')]),_0x447d9[_0x8e22('0x6')]['remove'](_0x258a5c));},{'priority':_0x8e22('0x13')});}['_getChangeFromId'](_0x3a6e1e){return this['_changeIdToChange']['get'](_0x3a6e1e);}['_getViewForChange'](_0x24a23d){return this['_changeView']&&this[_0x8e22('0x22')][_0x8e22('0x8e')](),this[_0x8e22('0x22')]=new _0x1d10a2(this[_0x8e22('0x84')][_0x8e22('0x3c')],_0x24a23d),this['_changeView'];}[_0x8e22('0x68')](){this[_0x8e22('0x84')][_0x8e22('0x34')][_0x8e22('0xda')]['selection']['observeMarkers'](_0x8e22('0x63')),this['on'](_0x8e22('0xce'),(_0x1802db,_0x3bf3b2,_0x1485c1,_0x48a734)=>{_0x48a734&&this[_0x8e22('0xbd')][_0x8e22('0x96')](_0x48a734),_0x1485c1&&(this[_0x8e22('0xbd')]['add']({'view':_0x1485c1,'stackId':_0x8e22('0xae'),'position':{'target':()=>{const _0x47a52e=this[_0x8e22('0x84')]['editing'],_0xa9b18c=this[_0x8e22('0xe8')](_0x1485c1['changeId']);let _0x32f068;if(_0xa9b18c['data']['isOnRoot']){const _0x4f430d=_0x47a52e[_0x8e22('0x89')][_0x8e22('0x97')](_0xa9b18c[_0x8e22('0x1')]);_0x32f068=Array[_0x8e22('0x92')](_0x4f430d['getClientRects']());}else{const _0x27456d=this[_0x8e22('0x84')][_0x8e22('0x34')][_0x8e22('0x99')]['get'](_0x8e22('0xf7')+_0x1485c1[_0x8e22('0xdf')]);_0x32f068=Array[_0x8e22('0x92')](_0x47a52e[_0x8e22('0xf4')]['markerNameToElements'](_0x27456d[_0x8e22('0x1f')]))[_0x8e22('0x7f')](_0x281372=>_0x47a52e[_0x8e22('0x89')]['domConverter']['mapViewToDom'](_0x281372))['map'](_0x403ddf=>Array[_0x8e22('0x92')](_0x403ddf[_0x8e22('0x119')]()))[_0x8e22('0x83')]();}if(!this[_0x8e22('0x36')])return _0x32f068[0x0];return _0x32f068['find'](_0x2c1067=>_0x2c1067['top']-0x3<=this[_0x8e22('0x36')]['y']&&_0x2c1067[_0x8e22('0xf0')]+0x3>=this['_activeViewTarget']['y']&&_0x2c1067[_0x8e22('0xbe')]-0x3<=this[_0x8e22('0x36')]['x']&&_0x2c1067['right']+0x3>=this[_0x8e22('0x36')]['x'])||_0x32f068[0x0];}}}),this['_balloon']['showStack'](_0x8e22('0xae')));}),this['on'](_0x8e22('0x58'),(_0x56e85a,_0x454b8f,_0x5b940d,_0x24701d)=>{this[_0x8e22('0xab')]=_0x5b940d?this[_0x8e22('0x53')](_0x5b940d):null,this[_0x8e22('0x84')][_0x8e22('0x34')]['change'](()=>{const _0x2ed191=this[_0x8e22('0x84')]['editing'];_0x24701d&&(_0x24701d[_0x8e22('0xd5')][_0x8e22('0x45')]?_0x2ed191[_0x8e22('0x89')][_0x8e22('0xa')](_0x1310c5=>{_0x1310c5[_0x8e22('0xdd')](_0x8e22('0xe3'),_0x2ed191[_0x8e22('0x89')]['document'][_0x8e22('0x18')](_0x24701d[_0x8e22('0x1')]));}):_0x2ed191[_0x8e22('0xe9')](_0x8e22('0xf7')+_0x24701d['id'])),_0x5b940d&&(_0x5b940d[_0x8e22('0xd5')][_0x8e22('0x45')]?_0x2ed191[_0x8e22('0x89')][_0x8e22('0xa')](_0x5295fc=>{_0x5295fc[_0x8e22('0xf1')](_0x8e22('0xe3'),_0x2ed191['view']['document']['getRoot'](_0x5b940d[_0x8e22('0x1')]));}):_0x2ed191[_0x8e22('0xe9')](_0x8e22('0xf7')+_0x5b940d['id']));});}),this[_0x8e22('0x9b')](this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0x89')][_0x8e22('0xda')],_0x8e22('0x105'),(_0x22bc1b,_0x15849c)=>{if(this[_0x8e22('0xaf')])return;const _0x3da500=this['_findChangeIdFromDomTarget'](_0x15849c[_0x8e22('0x46')]),_0x208ac1=this[_0x8e22('0xd')]['get'](_0x3da500);_0x208ac1?(this[_0x8e22('0x36')]={'x':_0x15849c[_0x8e22('0x10e')]['x'],'y':_0x15849c[_0x8e22('0x10e')]['y']},this[_0x8e22('0xab')]=this[_0x8e22('0x53')](_0x208ac1)):(this[_0x8e22('0x36')]=null,this[_0x8e22('0xab')]=null);}),this[_0x8e22('0x9b')](this[_0x8e22('0x84')][_0x8e22('0x61')][_0x8e22('0x89')][_0x8e22('0xda')],'mousedown',(_0x54aaa9,_0x8dd507)=>{const _0x360d74=this[_0x8e22('0xf2')](_0x8dd507[_0x8e22('0x46')]),_0x335ab0=this[_0x8e22('0xd')][_0x8e22('0x3')](_0x360d74);_0x335ab0?(this[_0x8e22('0x36')]={'x':_0x8dd507[_0x8e22('0x10e')]['x'],'y':_0x8dd507[_0x8e22('0x10e')]['y']},_0x335ab0===this['activeChange']?this[_0x8e22('0xbd')][_0x8e22('0x56')]():this[_0x8e22('0xaf')]=_0x335ab0):(this['_activeViewTarget']=null,this[_0x8e22('0xaf')]=null);});}['_findChangeIdFromDomTarget'](_0x1a37ac){do{const _0x37a3f4=_0x1a37ac[_0x8e22('0xc4')](_0x8e22('0xd4'));if(_0x37a3f4)return _0x37a3f4;_0x1a37ac=_0x1a37ac[_0x8e22('0x8a')];}while(_0x1a37ac);return null;}[_0x8e22('0x6c')](){this[_0x8e22('0x84')][_0x8e22('0x34')][_0x8e22('0xa')](_0x1367b1=>{for(const _0x46ff4e of this[_0x8e22('0x84')]['model'][_0x8e22('0x99')])_0x1367b1[_0x8e22('0xe0')](_0x46ff4e);});}}function Z(_0x3c3b11,_0x393559){return(_0x541b1b,_0xe644ba,_0x387e43)=>{if(!_0x387e43[_0x8e22('0x4d')][_0x8e22('0xd2')](_0xe644ba[_0x8e22('0x78')],_0x541b1b[_0x8e22('0x1f')]))return;const _0x36ed8f=_0xe644ba[_0x8e22('0x78')][_0x8e22('0xcb')](),_0x1b4bb3=_0xe644ba['markerRange']['start'],_0x316ffd=_0x3c3b11['model']['schema'];let _0xdbd4ae=null,_0x5463a8=null,_0x3f99c9=!0x1,_0x34dd9f=!0x1;for(const _0x3e5c64 of _0x36ed8f){const _0xe9e067=_0x3e5c64[_0x8e22('0x108')];_0x3f99c9=_0x3f99c9||_0x316ffd[_0x8e22('0x15')](_0xe9e067);const _0x47fb04=_0x387e43[_0x8e22('0xf4')][_0x8e22('0x10')](_0xe9e067);if(_0x47fb04&&_0x47fb04[_0x8e22('0x2b')]('addHighlight'))return;_0x8e22('0x94')==_0x3e5c64[_0x8e22('0xa6')]&&(_0x316ffd[_0x8e22('0xad')](_0xe9e067)&&!_0x316ffd[_0x8e22('0xa3')](_0xe9e067)&&(_0xe9e067[_0x8e22('0x4a')]||_0x1b4bb3[_0x8e22('0xcd')]?_0xdbd4ae&&_0xdbd4ae[_0x8e22('0x8a')]==_0xe9e067||(_0xdbd4ae=_0xe9e067,_0x514c8a(_0x3e5c64['previousPosition']),_0x34dd9f=!0x0):_0x5463a8=_0x5463a8||_0x3e5c64['previousPosition']));}function _0x514c8a(_0x33f5cc){const _0x317aa6=_0x387e43[_0x8e22('0xf4')][_0x8e22('0x93')](_0x33f5cc),_0x3b3565=_0x387e43[_0x8e22('0x6')]['createUIElement']('span',{'class':_0x8e22('0x35')+_0x393559});_0x387e43[_0x8e22('0x6')]['insert'](_0x317aa6,_0x3b3565),_0x387e43['mapper'][_0x8e22('0x10b')](_0x3b3565,_0xe644ba[_0x8e22('0x77')]);}_0x3f99c9||_0x34dd9f||!_0x5463a8||_0x514c8a(_0x5463a8);};}export class RestoreRevisionCommand extends _0x275622{constructor(_0x241466){super(_0x241466);const _0x222c5a=_0x241466[_0x8e22('0xfd')][_0x8e22('0x3')](d);this[_0x8e22('0xd3')]=!0x1,this[_0x8e22('0x9b')](_0x222c5a,_0x8e22('0x9e'),()=>this[_0x8e22('0x3b')]()),this[_0x8e22('0x9b')](_0x222c5a,_0x8e22('0xdb'),()=>this[_0x8e22('0x3b')]());}[_0x8e22('0x26')](){const _0x560a4d=this[_0x8e22('0x84')],_0x5028d3=_0x560a4d['plugins'][_0x8e22('0x3')](d),_0x5b9d20=_0x5028d3['isReady']?_0x5028d3[_0x8e22('0x64')][_0x8e22('0x33')]:null;_0x560a4d['config'][_0x8e22('0x3')](_0x8e22('0x112'))['restoreRevisionCallback'](_0x5b9d20);}[_0x8e22('0x3b')](){const {isReady:_0x26a077,isEnabled:_0x3bbec5}=this[_0x8e22('0x84')][_0x8e22('0xfd')][_0x8e22('0x3')](d);this[_0x8e22('0x10c')]=_0x26a077&&_0x3bbec5;}}export class ShowChangeCommand extends _0x275622{constructor(_0x1e2134,{direction:_0x4e0f99}){super(_0x1e2134);const _0x2f8796=_0x1e2134['plugins']['get'](d);this[_0x8e22('0xd3')]=!0x1,this[_0x8e22('0xde')]=_0x8e22('0xbb')===_0x4e0f99?0x1:-0x1,this[_0x8e22('0x9b')](_0x2f8796,_0x8e22('0x9e'),()=>this['refresh']()),this[_0x8e22('0x9b')](_0x2f8796,'change:isEnabled',()=>this['refresh']());}[_0x8e22('0x26')](){const _0x3ca123=this[_0x8e22('0x84')],_0x4be95a=_0x3ca123[_0x8e22('0xfd')][_0x8e22('0x3')](d),{isNavigationMode:_0x5b2778,currentChangeNumber:_0x300304}=_0x4be95a;let _0x15c09b;if(_0x4be95a[_0x8e22('0xaf')]=_0x5b2778?_0x4be95a[_0x8e22('0x64')]['changes'][_0x8e22('0x3')](_0x300304+this['_step']):_0x4be95a[_0x8e22('0x64')][_0x8e22('0x1b')][_0x8e22('0x1c')],_0x4be95a[_0x8e22('0xaf')][_0x8e22('0xd5')]['isOnRoot'])_0x15c09b=_0x3ca123['editing'][_0x8e22('0x89')][_0x8e22('0x97')](_0x4be95a[_0x8e22('0xaf')][_0x8e22('0x1')]);else{const _0x17e0a0=_0x3ca123[_0x8e22('0x34')][_0x8e22('0x99')][_0x8e22('0x3')](_0x8e22('0xf7')+_0x4be95a['activeChange']['id']);_0x15c09b=_0xffd23b(_0x3ca123['editing'],_0x17e0a0);}_0x4a5469({'target':_0x15c09b,'viewportOffset':0x28});}[_0x8e22('0x3b')](){const {isNavigationMode:_0x5ef609,currentChangeNumber:_0x583a30,numberOfChanges:_0x4e50ed,isReady:_0x77a180,isEnabled:_0x3b3b13}=this[_0x8e22('0x84')]['plugins'][_0x8e22('0x3')](d);this[_0x8e22('0x10c')]=!!(_0x3b3b13&&_0x77a180&&_0x4e50ed)&&(!_0x5ef609||(0x1===this[_0x8e22('0xde')]?_0x583a30<_0x4e50ed-0x1:_0x583a30>0x0));}}
23
+ const _0x13b1=['code','isAtEnd','_cleanMarkers','isOnRoot','highest','revision-comment:','domConverter','isSuggestion','isNavigationMode','merge','isEqual','nextPosition','_changeIdToChange','isContent','find','RevisionsRepository','add','listenTo','range','high','offsetSize','addClass','_processTape','_activeViewTarget','change','modelRange','markerToData','consume','ck-suggestion-marker-merge','diff','stop','findIndex','model','wrap','includes','upcast','getRevision','WidgetToolbarRepository','suggestion','_getChangeFromId','top','dataDowncast','children','startsWith','low','changes','slice','insertions','suggestion:','revision:','distance','push','backward','revisionHistoryAttachChange','revision-viewer','forEach','ck-revision-history-root-add','setAttribute','isIncorrect','createRange','selection','comment','element:pre','toViewPosition','data','keys','addHighlight','getRootNames','isRemoveSuggestion','for','splice','updatePosition','from','_update','done','vid_start','parent','_threeWayMerge','index','ck-revision-history-root--active','removeAttribute','change:activeChange','getAttributes','attribute:vid','toData','reconvertMarker','_setConversion','deletion','nextSibling','bindElementToMarker','writer','createPositionFromPath','type','target','_markSuggestions','markersEnd','ck-suggestion-preview-marker','bottom','collaboration.channelId','bind','markers','rootName','markerNameToElements','_setDistance','right','return','split','forward','ck-editor__editable__overlay','isCollapsed','requires','attachChange','document','pluginName','next','downcastDispatcher','_removeMissingPairs','RevisionViewer','activeChange','ck-suggestion-preview-marker-','data-change-id','remove','mapper','_step','attributes','_markInsertions','showPreviousChange','toViewRange','name','getItems','showNextChange','_getViewForChange','insertion','revision-start','isEnabled','getAttribute','default','previousPosition','isReady','has','isAddSuggestion','_makeModelFromTape','addMarker:revision','isAttached','isAfter','_data','insert','_appendChild','startIndex','_markMarkers','repository','mousedown','viewItem','_makeModelFromViewString','enqueueChange','map','first','span','_makeTape','_markMismatchedRemovedTags','changeId','restoreRevision','item','_removeRevisionMarkers','concat','conversion','enableReadOnlyMode','revision','editingDowncast','isInline','isLimit','plugins','test','abs','execute','refresh','end','loadRevisionData','removeClass','revision-suggestion','revisionHistory','config','_changeView','data-revision-','revisionHistoryLabel','_initInteractions','diffData','pairId','activeView','adapter','createRevision','numberOfChanges','toModel','unbindElementFromMarkerName','get','nodeAfter','ck-suggestion-marker-','getWalker','pop','_fixObsoleteTags','destroy','removeMarker','_getViewObj','editing','userId','change:isReady','_removeUnsupportedChanges','getClientRects','createPositionBefore','deletions','change:isEnabled','string','isRemoved','mouseover','left','getDomRoot','isAtStart','getRevisionData','_refreshStartEndIndex','shift','marked','uiElement','markersStart','side','set','text','markerName','endIndex','length','useFillerType','authors','_getDiff','markerRange','removeMarker:revision-suggestion','isBefore','level','createRangeIn','schema','isAdded','dataToMarker','maxOffset','catch','addRevision','getRoot','detachRoot','sort','filter','ck-revision-history-root-','view','hasAttribute','domEvent','attributesAfter','elementStart','getRevisionRootsAttributes','delete','processor','elementEnd','then','vid','createAttributeElement','-new','markerToHighlight','error','newRevisionId','unshift','isObject','ck-suggestion-marker--active','commands','start','editor','getIndex','_balloon','clear','_joinTapes','ck-revision-history-root-remove','consumable','_cleanUp','_findChangeIdFromDomTarget','vid_end','getCustomProperty','roots','toViewElement','resolve','_getRevisionsRange','isBlock','ck-suggestion-marker','affectsData'];(function(_0x3c8c5b,_0x13b1da){const _0x2bf378=function(_0x47c6d8){while(--_0x47c6d8){_0x3c8c5b['push'](_0x3c8c5b['shift']());}};_0x2bf378(++_0x13b1da);}(_0x13b1,0x73));const _0x2bf3=function(_0x3c8c5b,_0x13b1da){_0x3c8c5b=_0x3c8c5b-0x0;let _0x2bf378=_0x13b1[_0x3c8c5b];return _0x2bf378;};import{Plugin as _0xdc9ebc,Command as _0x524872}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x240ab4}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x1f5acd}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x375ce7,Element as _0x59b09a,Text as _0x3efad0,ViewDocumentFragment as _0x3fe7bf,ViewText as _0x32a398,ViewElement as _0x171304,ViewContainerElement as _0x2d5251,ViewAttributeElement as _0x2d2d44,ViewEmptyElement as _0x115905,ViewRawElement as _0x2215d6,ViewUIElement as _0x2ea457}from'ckeditor5/src/engine.js';import{Users as _0x17a36a,getMarkerDomElement as _0x24264c}from'ckeditor5-collaboration';import _0x3a53e9 from'./ui/revisionviewer/changedetailsview.js';import _0x6042d8 from'./revisionsrepository.js';import _0x2291e3 from'./changeitem.js';import{default as _0x5790e7}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x44e643}from'lodash-es';const tt={'c':_0x2d5251,'a':_0x2d2d44,'e':_0x115905,'r':_0x2215d6,'u':_0x2ea457};export default class d extends _0xdc9ebc{static get[_0x2bf3('0x11d')](){return'RevisionViewer';}static get[_0x2bf3('0x11a')](){return[_0x17a36a,_0x1f5acd,_0x6042d8];}constructor(_0x322bfd){super(_0x322bfd),this[_0x2bf3('0x23')]=this[_0x2bf3('0x9a')]['plugins'][_0x2bf3('0x4f')](_0x2bf3('0xbb')),this['set'](_0x2bf3('0x3'),null),this[_0x2bf3('0x6d')](_0x2bf3('0x49'),null),this[_0x2bf3('0xc3')]=null,this[_0x2bf3('0x6d')](_0x2bf3('0xc9'),null),this[_0x2bf3('0x6d')](_0x2bf3('0x17'),!0x1),this[_0x2bf3('0x6d')](_0x2bf3('0x13'),!0x0),this['on']('change:isEnabled',(_0x381a3f,_0x423ff4,_0x571cbf)=>{this['activeChange']=null,this[_0x2bf3('0x49')]=null,this[_0x2bf3('0x9a')][_0x2bf3('0x58')]['view'][_0x2bf3('0xc4')](_0x34277c=>{for(const _0x3f424d of this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')][_0x2bf3('0xa5')])_0x571cbf?_0x34277c[_0x2bf3('0x3f')](_0x2bf3('0x118'),_0x3f424d):_0x34277c[_0x2bf3('0xc1')](_0x2bf3('0x118'),_0x3f424d);});}),this['bind'](_0x2bf3('0xb4'))['to'](this,'activeChange',_0x224cf4=>null!==_0x224cf4),this[_0x2bf3('0x10f')]('currentChangeNumber')['to'](this,_0x2bf3('0x17'),this,_0x2bf3('0xc9'),this,_0x2bf3('0x3'),(_0x2b82ef,_0x24bfc4,_0x152f84)=>_0x2b82ef&&_0x152f84?_0x24bfc4['changes'][_0x2bf3('0x9b')](_0x152f84):0x0),this[_0x2bf3('0x10f')](_0x2bf3('0x4c'))['to'](this,_0x2bf3('0x17'),this,_0x2bf3('0xc9'),(_0x5178d4,_0x3473b9)=>_0x5178d4?_0x3473b9[_0x2bf3('0xd9')][_0x2bf3('0x71')]:0x0),this[_0x2bf3('0x43')]=null,this[_0x2bf3('0xb8')]=new Map(),this['adapter']=null,this[_0x2bf3('0x9c')]=this[_0x2bf3('0x9a')][_0x2bf3('0x38')][_0x2bf3('0x4f')](_0x1f5acd);}['init'](){const _0x328bf0=this[_0x2bf3('0x9a')],_0x3f4fa1=new ShowChangeCommand(_0x328bf0,{'direction':_0x2bf3('0xe0')}),_0x3be40e=new ShowChangeCommand(_0x328bf0,{'direction':_0x2bf3('0x117')});(_0x328bf0[_0x2bf3('0x98')][_0x2bf3('0xbc')](_0x2bf3('0xb'),_0x3f4fa1),_0x328bf0['commands'][_0x2bf3('0xbc')](_0x2bf3('0xf'),_0x3be40e),_0x328bf0[_0x2bf3('0x98')]['add'](_0x2bf3('0x2e'),new RestoreRevisionCommand(_0x328bf0)),this['on']('change:numberOfChanges',()=>{_0x3f4fa1[_0x2bf3('0x3c')](),_0x3be40e['refresh']();}),this[_0x2bf3('0x102')](),this[_0x2bf3('0x46')](),_0x328bf0[_0x2bf3('0x33')](_0x2bf3('0xe2')),_0x328bf0['plugins']['has']('WidgetToolbarRepository'))&&_0x328bf0[_0x2bf3('0x38')][_0x2bf3('0x4f')](_0x2bf3('0xd1'))['forceDisabled'](_0x2bf3('0xe2'));}async[_0x2bf3('0x66')](_0x1c6696){await this['loadRevisionData'](_0x1c6696);const _0x218718={};for(const _0xd447e4 in _0x1c6696[_0x2bf3('0x47')]){if(_0x1c6696['diffData'][_0xd447e4][_0x2bf3('0x11b')]&&!_0x1c6696[_0x2bf3('0x47')][_0xd447e4][_0x2bf3('0x11b')][_0x2bf3('0x1c')])continue;const _0xb60634=this[_0x2bf3('0x30')](JSON['parse'](_0x1c6696[_0x2bf3('0x47')][_0xd447e4]['insertions'])),_0x1c0468=this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x85')]['document'],_0x1daad9=new _0x3fe7bf(_0x1c0468,_0xb60634[_0x2bf3('0x28')](_0x444125=>this[_0x2bf3('0x57')](_0x444125)));this['editor'][_0x2bf3('0xec')][_0x2bf3('0x8c')][_0x2bf3('0x72')](_0x2bf3('0x69')),_0x218718[_0xd447e4]=this[_0x2bf3('0x9a')][_0x2bf3('0xec')]['processor'][_0x2bf3('0x100')](_0x1daad9),this[_0x2bf3('0x9a')][_0x2bf3('0xec')][_0x2bf3('0x8c')][_0x2bf3('0x72')](_0x2bf3('0x15'));}return _0x218718;}async[_0x2bf3('0x8a')](_0x3013c3){await this[_0x2bf3('0x3e')](_0x3013c3);const _0x494fda={};for(const _0x1e1985 in _0x3013c3['diffData'])_0x3013c3[_0x2bf3('0x47')][_0x1e1985][_0x2bf3('0x11b')]&&!_0x3013c3[_0x2bf3('0x47')][_0x1e1985][_0x2bf3('0x11b')][_0x2bf3('0x1c')]||(_0x494fda[_0x1e1985]=_0x3013c3[_0x2bf3('0x47')][_0x1e1985][_0x2bf3('0x88')]||{});return _0x494fda;}[_0x2bf3('0x30')](_0x3708be){return(_0x3708be=_0x3708be[_0x2bf3('0x83')](_0xa349dd=>!_0xa349dd[_0x2bf3('0xd')]||_0x2bf3('0x12')!==_0xa349dd[_0x2bf3('0xd')]&&'revision-end'!==_0xa349dd[_0x2bf3('0xd')]))[_0x2bf3('0xe3')](_0x2a6e38=>{_0x2bf3('0x60')!=typeof _0x2a6e38&&(_0x2a6e38[_0x2bf3('0xd6')]=this[_0x2bf3('0x30')](_0x2a6e38[_0x2bf3('0xd6')]),_0x2a6e38[_0x2bf3('0x9')]=_0x2a6e38[_0x2bf3('0x9')][_0x2bf3('0x83')](_0x1125ac=>!_0x1125ac[0x0][_0x2bf3('0xd7')](_0x2bf3('0x44'))));}),_0x3708be;}async['compare'](_0x756eb5,_0x51f079,_0x4e0871=!0x1){if(!this['isEnabled'])return;const _0x4ac253=this['diff'],_0x9d1039=this[_0x2bf3('0x23')],_0xd5517e=_0x2bf3('0x60')==typeof _0x756eb5?_0x9d1039[_0x2bf3('0xd0')](_0x756eb5):_0x756eb5,_0x3611e4='string'==typeof _0x51f079?_0x9d1039['getRevision'](_0x51f079):_0x51f079,_0x2ce47f=_0xd5517e['id'],_0x18bcf9=_0x3611e4?_0x3611e4['id']:null;if(!_0x4e0871&&this[_0x2bf3('0xc9')]&&this[_0x2bf3('0xc9')]['newRevisionId']===_0x2ce47f&&this[_0x2bf3('0xc9')]['oldRevisionId']===_0x18bcf9)return Promise['resolve']();this['isReady']=!0x1,this[_0x2bf3('0x49')]=null,this[_0x2bf3('0x3')]=null,this[_0x2bf3('0xc9')]=new _0x5790e7(_0x2ce47f,_0x18bcf9);const _0x40b06c=this['_getRevisionsRange'](_0xd5517e,_0x3611e4,!0x0)[_0x2bf3('0x28')](_0x1b6fcc=>this['loadRevisionData'](_0x1b6fcc));return _0x40b06c[_0x2bf3('0xdf')](new Promise(_0x5aa72a=>{setTimeout(_0x5aa72a,0x14);})),Promise['all'](_0x40b06c)[_0x2bf3('0x8e')](()=>{if(!this[_0x2bf3('0x13')])return;this[_0x2bf3('0xa1')]();const _0x24141f=this[_0x2bf3('0x74')](_0x2ce47f,_0x18bcf9);for(const _0x5dd3ec of _0x24141f['changes'])this[_0x2bf3('0xb8')][_0x2bf3('0x6d')](_0x5dd3ec['id'],_0x5dd3ec);this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x27')]({'isUndoable':!0x1},_0x1d2c1e=>{for(const _0x62499a of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['document']['getRootNames']())_0x1d2c1e[_0x2bf3('0x81')](_0x62499a);for(const _0xadf351 of Object[_0x2bf3('0xed')](_0x24141f[_0x2bf3('0xcc')])){const _0x577cc4=_0x1d2c1e['addRoot'](_0xadf351);for(const _0x5a456f of Object['keys'](_0x24141f[_0x2bf3('0x9')][_0xadf351]))_0x1d2c1e[_0x2bf3('0xe5')](_0x5a456f,_0x24141f[_0x2bf3('0x9')][_0xadf351][_0x5a456f],_0x577cc4);_0x1d2c1e[_0x2bf3('0x1f')](_0x24141f['model'][_0xadf351],_0x577cc4,0x0);}}),this[_0x2bf3('0xc9')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x24141f['changes'])),this['isReady']=!0x0;})[_0x2bf3('0x7e')](_0x19fa9b=>{console[_0x2bf3('0x93')](_0x19fa9b),this[_0x2bf3('0xa1')](),_0x4ac253&&(this['diff']=_0x4ac253),this[_0x2bf3('0x17')]=!0x0;});}['addRevisionData'](_0x256308,_0x2e9b73){const _0x253ccb=this['repository'][_0x2bf3('0x4b')](_0x256308);return _0x253ccb['on'](_0x2bf3('0xf5'),(_0x218798,_0x3bba83,_0x39257c)=>_0x2e9b73(_0x3bba83,_0x39257c,_0x253ccb)),this[_0x2bf3('0x23')][_0x2bf3('0x7f')](_0x253ccb),_0x253ccb;}[_0x2bf3('0x3e')](_0x59a898){if(!_0x59a898||_0x59a898[_0x2bf3('0x47')])return Promise[_0x2bf3('0xa7')]();{const _0x4089f6=this[_0x2bf3('0x9a')][_0x2bf3('0x42')]['get'](_0x2bf3('0x10e'));return this[_0x2bf3('0x4a')][_0x2bf3('0xd0')]({'channelId':_0x4089f6,'revisionId':_0x59a898['id']})[_0x2bf3('0x8e')](_0x58f5b0=>{_0x59a898[_0x2bf3('0xf5')]({'diffData':_0x58f5b0[_0x2bf3('0x47')]},!0x0);});}}['_cleanUp'](){this[_0x2bf3('0x3')]=null,this['_cleanMarkers'](),this['_changeView']&&this[_0x2bf3('0x43')]['destroy'](),this['_changeView']=null,this[_0x2bf3('0xb8')][_0x2bf3('0x9d')](),this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x27')]({'isUndoable':!0x1},_0x47f506=>{for(const _0x1ff1a9 of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['document'][_0x2bf3('0xef')]())_0x47f506[_0x2bf3('0x81')](_0x1ff1a9);});}['_sortAndFilterDiffChanges'](_0x5b2cbb){const _0x7e2885=[],_0x4bc04c=new Map();for(const _0x305393 of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x11c')][_0x2bf3('0xef')]()){const _0x59c4e6=this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x64')](_0x305393);if(!_0x59c4e6)continue;const _0x12ec61=_0x59c4e6[_0x2bf3('0x5c')]()['item'](0x0);_0x12ec61&&(_0x7e2885[_0x2bf3('0xdf')](_0x305393),_0x4bc04c['set'](_0x305393,_0x12ec61));}return _0x7e2885[_0x2bf3('0x82')]((_0x677a37,_0x111e80)=>{const _0x5cd327=_0x4bc04c['get'](_0x677a37),_0x17c9d0=_0x4bc04c[_0x2bf3('0x4f')](_0x111e80);return _0x5cd327['y']-_0x17c9d0['y']||_0x5cd327['x']-_0x17c9d0['x'];}),(_0x5b2cbb=_0x5b2cbb[_0x2bf3('0x83')](_0x21fcd8=>_0x7e2885[_0x2bf3('0xce')](_0x21fcd8[_0x2bf3('0x111')])))['sort']((_0x879b26,_0x590f2b)=>_0x7e2885['indexOf'](_0x879b26['rootName'])-_0x7e2885['indexOf'](_0x590f2b[_0x2bf3('0x111')])),_0x5b2cbb;}[_0x2bf3('0x2b')](_0x301ec2){const _0x8990bf=Array[_0x2bf3('0xf4')](_0x301ec2[_0x2bf3('0x110')])[_0x2bf3('0x83')](([_0x27a1bb,_0x185f2f])=>_0x27a1bb[_0x2bf3('0xd7')](_0x2bf3('0xdd'))&&!_0x185f2f[_0x2bf3('0x119')]),_0x571ce0=Array[_0x2bf3('0xf4')](this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x79')](_0x301ec2)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x8990bf[_0x2bf3('0x71')])for(const _0xbe633d of _0x571ce0){const [_0x4a3264,_0x4d188a]=_0x8990bf[0x0],[,_0x1ee86b,_0x272a9a]=_0x4a3264[_0x2bf3('0x116')](':');if(_0x4d188a[_0x2bf3('0x3d')]['isEqual'](_0xbe633d[_0x2bf3('0xb7')])&&_0x8990bf[_0x2bf3('0x68')](),(_0xbe633d[_0x2bf3('0x16')][_0x2bf3('0xb6')](_0x4d188a[_0x2bf3('0x99')])||_0xbe633d[_0x2bf3('0x16')][_0x2bf3('0x1d')](_0x4d188a[_0x2bf3('0x99')]))&&('insertion'==_0x1ee86b?_0xbe633d['isAdded']={'userId':_0x272a9a}:'deletion'==_0x1ee86b&&(_0xbe633d[_0x2bf3('0x61')]={'userId':_0x272a9a})),0x0==_0x8990bf['length'])break;}return _0x571ce0;}[_0x2bf3('0x67')](_0x2c130f){const _0x498e23=new Map();for(let _0x2bef04=0x0;_0x2bef04<_0x2c130f['length'];_0x2bef04++)'text'===_0x2c130f[_0x2bef04]['type']?(_0x2c130f[_0x2bef04][_0x2bf3('0x2f')][_0x2bf3('0x21')]=_0x2bef04,_0x2c130f[_0x2bef04]['item'][_0x2bf3('0x70')]=_0x2bef04):('elementStart'===_0x2c130f[_0x2bef04][_0x2bf3('0x108')]?_0x2c130f[_0x2bef04][_0x2bf3('0x2f')]['startIndex']=_0x2bef04:_0x2bf3('0x8d')===_0x2c130f[_0x2bef04]['type']&&(_0x2c130f[_0x2bef04][_0x2bf3('0x2f')]['endIndex']=_0x2bef04),_0x498e23[_0x2bf3('0x6d')](_0x2c130f[_0x2bef04]['id'],_0x2bef04));for(const _0x25d029 of _0x498e23['values']())_0x2bf3('0x89')===_0x2c130f[_0x25d029][_0x2bf3('0x108')]?_0x2c130f[_0x25d029][_0x2bf3('0x2f')][_0x2bf3('0x70')]=_0x498e23[_0x2bf3('0x4f')](_0x2c130f[_0x25d029][_0x2bf3('0x48')]):'elementEnd'===_0x2c130f[_0x25d029][_0x2bf3('0x108')]&&(_0x2c130f[_0x25d029][_0x2bf3('0x2f')][_0x2bf3('0x21')]=_0x498e23[_0x2bf3('0x4f')](_0x2c130f[_0x25d029][_0x2bf3('0x48')]));}[_0x2bf3('0xc2')](_0x466af8){for(let _0x1c7882=0x0;_0x1c7882<_0x466af8['length'];_0x1c7882++){if('elementStart'===_0x466af8[_0x1c7882][_0x2bf3('0x108')])_0x466af8[_0x1c7882][_0x2bf3('0x2f')][_0x2bf3('0x21')]=_0x1c7882;else{if('elementEnd'===_0x466af8[_0x1c7882][_0x2bf3('0x108')]){_0x466af8[_0x1c7882][_0x2bf3('0x2f')][_0x2bf3('0x70')]=_0x1c7882;const _0x189402=_0x466af8[_0x1c7882][_0x2bf3('0x2f')][_0x2bf3('0x21')];_0x466af8[_0x189402][_0x2bf3('0x48')]=_0x466af8[_0x1c7882]['id'],_0x466af8[_0x1c7882][_0x2bf3('0x48')]=_0x466af8[_0x189402]['id'];}else _0x466af8[_0x1c7882][_0x2bf3('0x2f')]['startIndex']=_0x1c7882,_0x466af8[_0x1c7882]['item'][_0x2bf3('0x70')]=_0x1c7882,_0x466af8[_0x1c7882]['pairId']=null;}_0x466af8[_0x1c7882][_0x2bf3('0x6b')]||(_0x466af8[_0x1c7882]['markersStart']=[],_0x466af8[_0x1c7882][_0x2bf3('0x10b')]=[]);}}[_0x2bf3('0xa')](_0x53c964,_0x38687d){const _0x34c14b=_0x53c964['filter'](_0x4da1eb=>!_0x4da1eb[_0x2bf3('0x7b')]);for(let _0x4d0884=0x0;_0x4d0884<_0x38687d[_0x2bf3('0x71')];_0x4d0884++)_0x38687d[_0x4d0884]['isAdded']&&(_0x34c14b[_0x4d0884][_0x2bf3('0x7b')]=_0x38687d[_0x4d0884][_0x2bf3('0x7b')]);}['_makeModelFromViewString'](_0x36a37f){const _0x43f972=JSON['parse'](_0x36a37f),_0x5b7740=this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')],_0x5c84c5=new _0x3fe7bf(_0x5b7740,_0x43f972[_0x2bf3('0x28')](_0x3c65b2=>this[_0x2bf3('0x57')](_0x3c65b2)));return this[_0x2bf3('0x9a')][_0x2bf3('0xec')][_0x2bf3('0x4d')](_0x5c84c5);}[_0x2bf3('0x57')](_0x1a361b){const _0x338135=this['editor'][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')];if(_0x2bf3('0x60')==typeof _0x1a361b)return new _0x32a398(_0x338135,_0x1a361b);{const _0x2df7c7=_0x1a361b[_0x2bf3('0xd6')]['map'](_0x17e5e8=>this[_0x2bf3('0x57')](_0x17e5e8));return new(tt[_0x1a361b['type']]||_0x171304)(_0x338135,_0x1a361b['name'],_0x1a361b[_0x2bf3('0x9')],_0x2df7c7);}}[_0x2bf3('0x74')](_0x1c3e05,_0x1424cc=null){const _0x5aefba=this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0x1c3e05),_0x5a45af=_0x1424cc?this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0x1424cc):null,_0x5a5b92=this[_0x2bf3('0xa8')](_0x5aefba,_0x5a45af),_0x198dd3=_0x5a5b92[_0x5a5b92[_0x2bf3('0x71')]-0x1],_0x449983=new Map(),_0x2764e5={'model':{},'attributes':{},'changes':[]},_0x11b056=new Set(),_0x3dd9d9=new Map();for(let _0x583f20=_0x5a5b92[_0x2bf3('0x71')]-0x1;_0x583f20>=0x0;_0x583f20--){const _0x38f31f=_0x5a5b92[_0x583f20];for(const _0x407770 of Object['keys'](_0x38f31f[_0x2bf3('0x47')]))if(_0x38f31f[_0x2bf3('0x47')][_0x407770]['attachChange']){const _0x24357c=_0x38f31f[_0x2bf3('0x47')][_0x407770][_0x2bf3('0x11b')];_0x24357c[_0x2bf3('0x1c')]?(_0x11b056['add'](_0x407770),_0x3dd9d9[_0x2bf3('0x18')](_0x407770)&&_0x3dd9d9['get'](_0x407770)[_0x2bf3('0x59')]==_0x24357c[_0x2bf3('0x59')]?_0x3dd9d9[_0x2bf3('0x8b')](_0x407770):_0x3dd9d9[_0x2bf3('0x6d')](_0x407770,_0x24357c)):_0x3dd9d9[_0x2bf3('0x18')](_0x407770)?(_0x11b056['delete'](_0x407770),_0x3dd9d9['delete'](_0x407770)):(_0x11b056[_0x2bf3('0xbc')](_0x407770),_0x3dd9d9[_0x2bf3('0x6d')](_0x407770,_0x24357c));}else _0x11b056[_0x2bf3('0xbc')](_0x407770);}for(const _0x1fb0a5 of _0x11b056){const _0x4accd5=_0x3dd9d9[_0x2bf3('0x18')](_0x1fb0a5)&&!_0x3dd9d9[_0x2bf3('0x4f')](_0x1fb0a5)['isAttached'];let _0x5b4810=_0x4accd5?_0x5a5b92[_0x2bf3('0x71')]-0x1:0x0;const _0x292c7e=_0x4accd5?-0x1:0x1;for(;_0x5a5b92[_0x5b4810];){const _0x236215=_0x5a5b92[_0x5b4810];if(_0x236215[_0x2bf3('0x47')][_0x1fb0a5]){const _0x578a98=_0x4accd5?_0x236215[_0x2bf3('0x47')][_0x1fb0a5]['attributesBefore']:_0x236215[_0x2bf3('0x47')][_0x1fb0a5][_0x2bf3('0x88')];_0x2764e5[_0x2bf3('0x9')][_0x1fb0a5]=_0x578a98?_0x44e643(_0x578a98):{};break;}_0x5b4810+=_0x292c7e;}}for(const _0x269a41 of _0x5a5b92){_0x269a41[_0x2bf3('0xcc')]={};for(const _0x38e1b6 of _0x269a41[_0x2bf3('0x73')])_0x449983[_0x2bf3('0x6d')](_0x38e1b6['id'],_0x38e1b6);for(const _0x101025 of _0x11b056){const _0x237b35=_0x269a41[_0x2bf3('0x47')][_0x101025]?_0x269a41[_0x2bf3('0x47')][_0x101025]['insertions']:'[]',_0x7afd9b=_0x269a41[_0x2bf3('0x47')][_0x101025]?_0x269a41[_0x2bf3('0x47')][_0x101025][_0x2bf3('0x5e')]:'[]';_0x269a41[_0x2bf3('0xcc')][_0x101025]={'insertions':this['_makeModelFromViewString'](_0x237b35),'deletions':this[_0x2bf3('0x26')](_0x7afd9b)};}}for(const _0x1136ee of _0x11b056){let _0x3d7de7=null,_0x2e37ca=0x0;const _0xd29a9b=new Map(Array['from'](_0x5aefba[_0x2bf3('0xcc')][_0x1136ee][_0x2bf3('0xdb')][_0x2bf3('0x110')])[_0x2bf3('0x83')](([_0x563d94])=>!_0x563d94[_0x2bf3('0xd7')](_0x2bf3('0xdd'))));let _0x4cdb79=0x0;for(const _0x3ec4d5 of _0x5a5b92){const _0x42859a=this[_0x2bf3('0x2b')](_0x3ec4d5[_0x2bf3('0xcc')][_0x1136ee][_0x2bf3('0xdb')]);_0x3ec4d5==_0x5aefba?(_0x3d7de7=_0x42859a,_0x2e37ca=_0x3d7de7['length'],_0x3d7de7['forEach'](_0x303eb3=>{_0x303eb3['id']=_0x4cdb79++;}),this['_processTape'](_0x3d7de7)):this['_markInsertions'](_0x3d7de7,_0x42859a);const _0x3aec1c=_0x3d7de7[_0x2bf3('0x83')](_0x54a747=>!_0x54a747[_0x2bf3('0x7b')])[_0x2bf3('0x28')](_0x4f4ded=>_0x4f4ded['id']);let _0x24e289=0x0;const _0x379e80=this[_0x2bf3('0x2b')](_0x3ec4d5[_0x2bf3('0xcc')][_0x1136ee]['deletions']);_0x379e80[_0x2bf3('0xe3')](_0x229b3e=>{_0x229b3e[_0x2bf3('0x61')]?_0x229b3e['id']=_0x2e37ca++:_0x229b3e['id']=_0x3aec1c[_0x24e289++];}),this['_processTape'](_0x379e80),this[_0x2bf3('0x113')](_0x3d7de7,_0x2bf3('0x7b')),this[_0x2bf3('0x113')](_0x379e80,_0x2bf3('0x61')),_0x3ec4d5==_0x5aefba&&this[_0x2bf3('0x22')](_0x3d7de7,_0xd29a9b),_0x3d7de7=this['_joinTapes'](_0x3d7de7,_0x379e80),this[_0x2bf3('0x67')](_0x3d7de7),this[_0x2bf3('0x113')](_0x3d7de7,_0x2bf3('0x61'));}_0x3d7de7=_0x3d7de7[_0x2bf3('0x83')](_0x5ad71f=>!(_0x5ad71f[_0x2bf3('0x7b')]&&_0x5ad71f['isRemoved']));const _0x31ffcd=new Map(_0x198dd3[_0x2bf3('0xcc')][_0x1136ee]['deletions'][_0x2bf3('0x110')]),_0x418855=new Set(_0xd29a9b[_0x2bf3('0xed')]());for(const _0x38ff61 of _0x31ffcd[_0x2bf3('0xed')]())_0x418855[_0x2bf3('0x8b')](_0x38ff61);this[_0x2bf3('0x10a')](_0x3d7de7,_0x418855),this['_fixObsoleteTags'](_0x3d7de7),_0x3d7de7=this[_0x2bf3('0x1')](_0x3d7de7),_0x3d7de7=this[_0x2bf3('0x2c')](_0x3d7de7),_0x3d7de7=this['_removeUnsupportedChanges'](_0x3d7de7);const {root:_0x3e4100,changes:_0x5bdbce}=this[_0x2bf3('0x1a')](_0x3d7de7,_0x449983,_0x1136ee);_0x2764e5[_0x2bf3('0xcc')][_0x1136ee]=_0x3e4100;const _0x1e3f92=_0x3dd9d9[_0x2bf3('0x4f')](_0x1136ee);if(_0x1e3f92){const _0x46773e=_0x449983[_0x2bf3('0x4f')](_0x1e3f92['userId']),_0x1cd248=new _0x2291e3({'author':_0x46773e,'type':_0x1e3f92[_0x2bf3('0x1c')]?_0x2bf3('0xbc'):_0x2bf3('0x6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1136ee});_0x5bdbce[_0x2bf3('0x95')](_0x1cd248),_0x2764e5['attributes'][_0x1136ee][_0x2bf3('0xe1')]=_0x1cd248['id'];}_0x2764e5['changes']=_0x2764e5[_0x2bf3('0xd9')]['concat'](_0x5bdbce);}return _0x2764e5;}[_0x2bf3('0x22')](_0x386cd1,_0x467a29){for(let _0x589fb8=0x0;_0x589fb8<_0x386cd1[_0x2bf3('0x71')];_0x589fb8++)for(const [_0x4aae1d,_0x13419a]of _0x467a29)_0x13419a[_0x2bf3('0x99')][_0x2bf3('0xb6')](_0x386cd1[_0x589fb8]['previousPosition'])&&_0x386cd1[_0x589fb8][_0x2bf3('0x6b')][_0x2bf3('0xdf')](_0x4aae1d),_0x13419a[_0x2bf3('0x3d')][_0x2bf3('0xb6')](_0x386cd1[_0x589fb8]['nextPosition'])&&_0x386cd1[_0x589fb8][_0x2bf3('0x10b')]['push'](_0x4aae1d);}[_0x2bf3('0x9e')](_0x1e434d,_0x24e71c){let _0x4aa50b=[],_0x4f17ca=0x0,_0x38812c=0x0;for(;_0x4f17ca<_0x1e434d['length']||_0x38812c<_0x24e71c[_0x2bf3('0x71')];){const _0x4a1515=_0x1e434d[_0x4f17ca]||{},_0x3ee982=_0x24e71c[_0x38812c]||{};if(_0x4a1515['id']==_0x3ee982['id'])_0x4f17ca++,_0x38812c++,_0x4aa50b[_0x2bf3('0xdf')](_0x4a1515);else{if(_0x3ee982[_0x2bf3('0x61')]&&_0x4a1515[_0x2bf3('0x7b')]){const {commonTape:_0x519afd,iEnd:_0x4f210c,jEnd:_0x41dd58}=this[_0x2bf3('0xf9')](_0x1e434d,_0x4f17ca,_0x24e71c,_0x38812c);_0x4aa50b=_0x4aa50b[_0x2bf3('0x31')](_0x519afd),_0x4f17ca=_0x4f210c,_0x38812c=_0x41dd58;}else _0x3ee982[_0x2bf3('0x61')]?(_0x38812c++,_0x4aa50b[_0x2bf3('0xdf')](_0x3ee982)):(_0x4f17ca++,_0x4aa50b[_0x2bf3('0xdf')](_0x4a1515));}}return _0x4aa50b;}['_markSuggestions'](_0x57e969,_0x19f2b4){const _0x31c852=[];for(let _0x2736cc=0x0;_0x2736cc<_0x57e969[_0x2bf3('0x71')];_0x2736cc++){for(let _0x44c154=0x0;_0x44c154<_0x57e969[_0x2736cc][_0x2bf3('0x6b')][_0x2bf3('0x71')];_0x44c154++){const _0x1561da=_0x57e969[_0x2736cc][_0x2bf3('0x6b')][_0x44c154];if(!_0x19f2b4['has'](_0x1561da))continue;const {group:_0x30f37c,type:_0x595f85,authorId:_0x3914a3}=_0x4cd415(_0x1561da);_0x2bf3('0x40')!=_0x30f37c||_0x2bf3('0x11')!=_0x595f85&&_0x2bf3('0x103')!=_0x595f85||(_0x31c852[_0x2bf3('0x95')]({'type':_0x595f85,'name':_0x1561da,'userId':_0x3914a3}),_0x57e969[_0x2736cc][_0x2bf3('0x6b')][_0x2bf3('0xf2')](_0x44c154,0x1),_0x44c154--);}_0xa9d7e9(_0x57e969[_0x2736cc]);for(let _0x7c3963=0x0;_0x7c3963<_0x57e969[_0x2736cc]['markersEnd'][_0x2bf3('0x71')];_0x7c3963++){const _0x9bbaba=_0x57e969[_0x2736cc][_0x2bf3('0x10b')][_0x7c3963];if(!_0x19f2b4[_0x2bf3('0x18')](_0x9bbaba))continue;const {group:_0x1aa89b,type:_0x4205b7}=_0x4cd415(_0x9bbaba);if('revision-suggestion'!=_0x1aa89b||_0x2bf3('0x11')!=_0x4205b7&&'deletion'!=_0x4205b7)continue;_0x57e969[_0x2736cc][_0x2bf3('0x10b')]['splice'](_0x7c3963,0x1),_0x7c3963--;const _0x61e0c6=_0x31c852[_0x2bf3('0xcb')](_0x362982=>_0x362982[_0x2bf3('0xd')]==_0x9bbaba);_0x61e0c6>-0x1&&_0x31c852[_0x2bf3('0xf2')](_0x61e0c6,0x1);}}function _0x4cd415(_0x5e6ea6){const _0x583d15=_0x5e6ea6[_0x2bf3('0x116')](':');return{'group':_0x583d15[0x0],'type':_0x583d15[0x1],'subType':_0x583d15[_0x2bf3('0x71')]>=0x5?_0x583d15[0x2]:null,'id':_0x583d15['length']<0x5?_0x583d15[0x2]:_0x583d15[0x3],'authorId':_0x583d15['length']<0x5?_0x583d15[0x3]:_0x583d15[0x4],'markerCount':0x6==_0x583d15[_0x2bf3('0x71')]?_0x583d15[0x5]:null};}function _0xa9d7e9(_0x23a5a6){for(let _0x1b80f2=0x0;_0x1b80f2<_0x31c852[_0x2bf3('0x71')];_0x1b80f2++){if(_0x23a5a6['isAdded']&&_0x2bf3('0x11')==_0x31c852[_0x1b80f2][_0x2bf3('0x108')])return _0x23a5a6['isAddSuggestion']=_0x31c852[_0x1b80f2],void delete _0x23a5a6[_0x2bf3('0x7b')];if(!_0x23a5a6[_0x2bf3('0x7b')]&&!_0x23a5a6['isRemoved']&&_0x2bf3('0x103')==_0x31c852[_0x1b80f2]['type'])return void(_0x23a5a6[_0x2bf3('0xf0')]=_0x31c852[_0x1b80f2]);}}}['_setDistance'](_0x5a02e5,_0x3b8cb7){let _0x347147=0x0,_0x17949b=!0x1;const _0x25c781=new Map();for(const _0x2a336d of _0x5a02e5)_0x2a336d[_0x3b8cb7]?_0x17949b&&(_0x347147++,_0x17949b=!0x1):(_0x347147++,_0x17949b=!0x0),_0x25c781['set'](_0x2a336d['id'],_0x347147);for(let _0xa46289=0x0;_0xa46289<_0x5a02e5[_0x2bf3('0x71')];_0xa46289++){if(_0x2bf3('0x61')==_0x3b8cb7&&_0x5a02e5[_0xa46289][_0x2bf3('0x7b')]||_0x2bf3('0x7b')==_0x3b8cb7&&_0x5a02e5[_0xa46289][_0x2bf3('0x61')])continue;if(_0x2bf3('0x6e')==_0x5a02e5[_0xa46289][_0x2bf3('0x108')]){_0x5a02e5[_0xa46289]['distance']=0x0;continue;}const _0x43f04c=_0x25c781[_0x2bf3('0x4f')](_0x5a02e5[_0xa46289][_0x2bf3('0x48')]),_0x52eb10=_0x25c781[_0x2bf3('0x4f')](_0x5a02e5[_0xa46289]['id']);_0x5a02e5[_0xa46289][_0x2bf3('0xde')]=_0x43f04c-_0x52eb10;}}[_0x2bf3('0xa8')](_0x47965c,_0x1e379c,_0x3c5648=!0x1){const _0x306032=[];let _0xe8c0cd=this[_0x2bf3('0x23')][_0x2bf3('0x9b')](_0x47965c),_0x1b3032=this[_0x2bf3('0x23')][_0x2bf3('0x9b')](_0x1e379c);for(-0x1==_0x1b3032&&(_0x1b3032=this[_0x2bf3('0x23')]['_revisions'][_0x2bf3('0x71')],_0x3c5648=!0x1);_0xe8c0cd<_0x1b3032;)_0x306032[_0x2bf3('0xdf')](this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0xe8c0cd)),_0xe8c0cd++;return _0x3c5648&&_0x306032['push'](this[_0x2bf3('0x23')][_0x2bf3('0xd0')](_0xe8c0cd)),_0x306032;}['_threeWayMerge'](_0x10e677,_0x374996,_0x4a698d,_0x6f8fdb){const _0x158837=this[_0x2bf3('0x9a')]['model']['schema'];let _0x452b4a=_0x374996;for(;_0x10e677[_0x452b4a]&&_0x10e677[_0x452b4a][_0x2bf3('0x7b')];)_0x452b4a++;let _0x1f5802=_0x6f8fdb;for(;_0x4a698d[_0x1f5802]&&_0x4a698d[_0x1f5802][_0x2bf3('0x61')];)_0x1f5802++;_0x1ab526(_0x10e677,_0x374996,_0x452b4a),_0x1ab526(_0x4a698d,_0x6f8fdb,_0x1f5802);const _0x54af92=_0x4a698d[_0x2bf3('0xda')](_0x6f8fdb,_0x1f5802)[_0x2bf3('0x31')](_0x10e677[_0x2bf3('0xda')](_0x374996,_0x452b4a));return _0x54af92['sort']((_0x4d4804,_0x723205)=>_0x4d4804[_0x2bf3('0x6c')]!=_0x723205[_0x2bf3('0x6c')]?_0x4d4804['side']-_0x723205[_0x2bf3('0x6c')]:_0x4d4804[_0x2bf3('0x78')]!=_0x723205['level']?_0x4d4804[_0x2bf3('0x78')]-_0x723205[_0x2bf3('0x78')]:_0x4d4804[_0x2bf3('0xde')]!=_0x723205[_0x2bf3('0xde')]?_0x723205[_0x2bf3('0xde')]-_0x4d4804['distance']:!!_0x4d4804[_0x2bf3('0x7b')]!=!!_0x723205[_0x2bf3('0x7b')]?-0x1==_0x4d4804[_0x2bf3('0x6c')]||0x0==_0x4d4804[_0x2bf3('0x6c')]?_0x4d4804[_0x2bf3('0x7b')]?-0x1:0x1:_0x4d4804['isAdded']?0x1:-0x1:_0x4d4804[_0x2bf3('0xfa')]-_0x723205['index']),{'commonTape':_0x54af92,'iEnd':_0x452b4a,'jEnd':_0x1f5802};function _0x1ab526(_0x38127c,_0x45d903,_0x1e9010){let _0xaedd81=-0x1,_0x5d3ce7=Number['POSITIVE_INFINITY'],_0x464af6=!0x0;for(let _0x10af6d=_0x45d903;_0x10af6d<_0x1e9010;_0x10af6d++)if(_0x158837[_0x2bf3('0x36')](_0x38127c[_0x10af6d][_0x2bf3('0x2f')])||(_0x464af6=!0x1),_0x38127c[_0x10af6d][_0x2bf3('0x2f')][_0x2bf3('0x21')]<_0x45d903&&(_0xaedd81=_0x10af6d),_0x38127c[_0x10af6d][_0x2bf3('0x2f')][_0x2bf3('0x70')]>=_0x1e9010){_0x5d3ce7=_0x10af6d;break;}_0x464af6&&(_0xaedd81=_0x1e9010-0x1);for(let _0x93fee5=_0x45d903;_0x93fee5<_0x1e9010;_0x93fee5++)_0x38127c[_0x93fee5][_0x2bf3('0x6c')]=_0x93fee5<=_0xaedd81?-0x1:_0x93fee5<_0x5d3ce7?0x0:0x1,_0x38127c[_0x93fee5][_0x2bf3('0xfa')]=_0x93fee5;let _0x1fef53=0x0;for(let _0x1fa4db=_0x45d903;_0x1fa4db<=_0xaedd81;_0x1fa4db++)0x0==_0x38127c[_0x1fa4db]['distance']?_0x38127c[_0x1fa4db][_0x2bf3('0x78')]=_0x1fef53:(_0x1fef53++,_0x38127c[_0x1fa4db]['level']=_0x1fef53,_0x1fef53++);for(let _0x46affd=_0x45d903;_0x46affd<_0x1e9010;_0x46affd++)0x0==_0x38127c[_0x46affd][_0x2bf3('0x6c')]&&(_0x38127c[_0x46affd][_0x2bf3('0x78')]=_0x1fef53);_0x1fef53=0x0;for(let _0x532d96=_0x1e9010-0x1;_0x532d96>=_0x5d3ce7;_0x532d96--)0x0==_0x38127c[_0x532d96][_0x2bf3('0xde')]?_0x38127c[_0x532d96]['level']=_0x1fef53:(_0x1fef53--,_0x38127c[_0x532d96][_0x2bf3('0x78')]=_0x1fef53,_0x1fef53--);}}[_0x2bf3('0x54')](_0x406345){const _0x51cc4a=new Map(),_0x5919d2=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x7a')];for(let _0x4a93b2=0x1;_0x4a93b2<_0x406345[_0x2bf3('0x71')];_0x4a93b2++){let _0x57d06c,_0x2cbaa9,_0xcde88a;const _0x5cd603=_0x406345[_0x4a93b2],_0xce6e21=_0x406345[_0x4a93b2-0x1];if('text'==_0x5cd603['type'])continue;if(_0x5cd603['type']!=_0xce6e21['type'])continue;if(!_0x5919d2['isBlock'](_0xce6e21[_0x2bf3('0x2f')])||_0x5919d2[_0x2bf3('0x37')](_0xce6e21['item']))continue;if(!_0x5919d2[_0x2bf3('0xa9')](_0x5cd603[_0x2bf3('0x2f')])||_0x5919d2[_0x2bf3('0x37')](_0x5cd603[_0x2bf3('0x2f')]))continue;if((_0x406345[_0x4a93b2][_0x2bf3('0x7b')]||_0x406345[_0x4a93b2][_0x2bf3('0x19')])&&_0x406345[_0x4a93b2-0x1][_0x2bf3('0x61')])_0x57d06c=_0x406345[_0x4a93b2],_0x2cbaa9=_0x406345[_0x4a93b2-0x1],_0xcde88a=_0x4a93b2-0x1;else{if(!_0x406345[_0x4a93b2][_0x2bf3('0x61')]||!_0x406345[_0x4a93b2-0x1]['isAdded']&&!_0x406345[_0x4a93b2-0x1]['isAddSuggestion'])continue;_0x57d06c=_0x406345[_0x4a93b2-0x1],_0x2cbaa9=_0x406345[_0x4a93b2],_0xcde88a=_0x4a93b2;}const _0x295303=_0x57d06c[_0x2bf3('0x78')]==_0x2cbaa9[_0x2bf3('0x78')],_0x42fc43=Math[_0x2bf3('0x3a')](_0x57d06c[_0x2bf3('0x78')])<Math['abs'](_0x2cbaa9[_0x2bf3('0x78')])&&0x0==_0x2cbaa9['distance'];(_0x295303||_0x42fc43)&&(_0x51cc4a['set'](_0x2cbaa9['id'],_0x57d06c['id']),_0x406345['splice'](_0xcde88a,0x1),_0x4a93b2--,_0x57d06c[_0x2bf3('0x7b')]=!0x1);}for(let _0x2f365f=0x0;_0x2f365f<_0x406345[_0x2bf3('0x71')];_0x2f365f++)_0x51cc4a[_0x2bf3('0x18')](_0x406345[_0x2f365f][_0x2bf3('0x48')])&&(_0x406345[_0x2f365f]['pairId']=_0x51cc4a[_0x2bf3('0x4f')](_0x406345[_0x2f365f][_0x2bf3('0x48')]));}[_0x2bf3('0x1')](_0x57678a){const _0x348eb8=new Set(_0x57678a[_0x2bf3('0x28')](_0x5c6dae=>_0x5c6dae['id']));for(let _0x5ce3db=0x0;_0x5ce3db<_0x57678a[_0x2bf3('0x71')];_0x5ce3db++)_0x348eb8[_0x2bf3('0x18')](_0x57678a[_0x5ce3db][_0x2bf3('0x48')])||0x0==_0x57678a[_0x5ce3db]['distance']||(_0x57678a[_0x5ce3db][_0x2bf3('0xe6')]=!0x0);return _0x57678a[_0x2bf3('0x83')](_0x481025=>!_0x481025[_0x2bf3('0xe6')]);}['_markMismatchedRemovedTags'](_0x55e591){const _0x31651a=new Set();for(let _0xa9fa7a=0x0;_0xa9fa7a<_0x55e591['length'];_0xa9fa7a++){if(_0x31651a[_0x2bf3('0x18')](_0x55e591[_0xa9fa7a]['id'])&&_0x55e591[_0xa9fa7a][_0x2bf3('0x61')]&&(_0x55e591[_0xa9fa7a]['isIncorrect']=!0x0),_0x55e591[_0xa9fa7a][_0x2bf3('0xe6')])continue;if(0x0==_0x55e591[_0xa9fa7a][_0x2bf3('0xde')])continue;if(_0x2bf3('0x89')!=_0x55e591[_0xa9fa7a][_0x2bf3('0x108')])continue;if(null==_0x55e591[_0xa9fa7a][_0x2bf3('0x48')])continue;let _0x30750e=_0xa9fa7a+0x1,_0x51f45a=0x0;for(;_0x55e591[_0x30750e]['id']!=_0x55e591[_0xa9fa7a][_0x2bf3('0x48')];)_0x2bf3('0x89')==_0x55e591[_0x30750e][_0x2bf3('0x108')]?_0x51f45a++:_0x2bf3('0x8d')==_0x55e591[_0x30750e][_0x2bf3('0x108')]&&_0x51f45a--,_0x30750e++;if(0x0!=_0x51f45a){if(_0x55e591[_0xa9fa7a][_0x2bf3('0x61')])_0x55e591[_0xa9fa7a][_0x2bf3('0xe6')]=!0x0;else for(;_0x30750e!=_0xa9fa7a;)_0x55e591[_0x30750e][_0x2bf3('0x61')]&&0x0!=_0x55e591[_0x30750e][_0x2bf3('0xde')]&&(_0x55e591[_0x30750e][_0x2bf3('0xe6')]=!0x0,_0x31651a['add'](_0x55e591[_0x30750e][_0x2bf3('0x48')])),_0x30750e--;}}return _0x55e591[_0x2bf3('0x83')](_0x4147ba=>!_0x4147ba[_0x2bf3('0xe6')]);}[_0x2bf3('0x5b')](_0x237ca4){const _0x2ffcb8=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['schema'];for(let _0x3b21aa=0x0;_0x3b21aa<_0x237ca4[_0x2bf3('0x71')];_0x3b21aa++){if(!(_0x237ca4[_0x3b21aa][_0x2bf3('0x7b')]||_0x237ca4[_0x3b21aa][_0x2bf3('0x19')]||_0x237ca4[_0x3b21aa][_0x2bf3('0x61')]||_0x237ca4[_0x3b21aa][_0x2bf3('0xf0')]))continue;if(0x0==_0x237ca4[_0x3b21aa]['distance'])continue;const _0x20fe35=_0x237ca4[_0x3b21aa][_0x2bf3('0x2f')];_0x2ffcb8[_0x2bf3('0xa9')](_0x20fe35)||_0x2ffcb8['isLimit'](_0x20fe35)||(_0x237ca4[_0x3b21aa][_0x2bf3('0x7b')]&&delete _0x237ca4[_0x3b21aa][_0x2bf3('0x7b')],_0x237ca4[_0x3b21aa]['isAddSuggestion']&&delete _0x237ca4[_0x3b21aa]['isAddSuggestion'],_0x237ca4[_0x3b21aa][_0x2bf3('0xf0')]&&delete _0x237ca4[_0x3b21aa][_0x2bf3('0xf0')],_0x237ca4[_0x3b21aa][_0x2bf3('0x61')]&&(_0x237ca4[_0x3b21aa][_0x2bf3('0xe6')]=!0x0));}return _0x237ca4[_0x2bf3('0x83')](_0x28078b=>!_0x28078b[_0x2bf3('0xe6')]);}[_0x2bf3('0x1a')](_0x22bf65,_0x1b3376,_0x2fd35a){const _0x339c86=new _0x375ce7(),_0x4f3a38=[],_0xbeb4a0=new Map(),_0x388c88=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')],_0x405b30=_0x388c88[_0x2bf3('0x7a')],_0x21dd96=[_0x339c86],_0x175aa2={},_0x2b84ac={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x540e61=null;const _0x133be8=[0x0];for(let _0x5d2878=0x0;_0x5d2878<_0x22bf65[_0x2bf3('0x71')];_0x5d2878++){let _0x1c0a9f,_0x1f9101;if(_0x2bf3('0x89')===_0x22bf65[_0x5d2878][_0x2bf3('0x108')]){_0x1c0a9f=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8);const _0x41e46b=new _0x59b09a(_0x22bf65[_0x5d2878][_0x2bf3('0x2f')][_0x2bf3('0xd')],_0x22bf65[_0x5d2878]['item'][_0x2bf3('0xfe')]());_0x21dd96[0x0][_0x2bf3('0x20')](_0x41e46b),_0x133be8[_0x2bf3('0xdf')](0x0),_0x21dd96['unshift'](_0x41e46b),_0x1f9101=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8),_0x540e61=null;}else{if(_0x2bf3('0x8d')===_0x22bf65[_0x5d2878]['type'])_0x21dd96[_0x2bf3('0x68')](),_0x1c0a9f=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8),_0x133be8[_0x2bf3('0x53')](),_0x133be8[_0x133be8['length']-0x1]++,_0x1f9101=_0x388c88['createPositionFromPath'](_0x339c86,_0x133be8),_0x540e61=null;else{if(_0x1c0a9f=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8),_0x540e61&&_0x133fef(_0x540e61,_0x22bf65[_0x5d2878][_0x2bf3('0x2f')]))_0x540e61[_0x2bf3('0x1e')]+=_0x22bf65[_0x5d2878][_0x2bf3('0x2f')]['data'];else{const _0x31ef6b=new _0x3efad0(_0x22bf65[_0x5d2878]['item'][_0x2bf3('0xec')],_0x22bf65[_0x5d2878][_0x2bf3('0x2f')][_0x2bf3('0xfe')]());_0x21dd96[0x0]['_appendChild'](_0x31ef6b),_0x540e61=_0x31ef6b;}_0x133be8[_0x133be8[_0x2bf3('0x71')]-0x1]+=_0x22bf65[_0x5d2878]['item'][_0x2bf3('0xc0')],_0x1f9101=_0x388c88[_0x2bf3('0x107')](_0x339c86,_0x133be8);}}for(const _0x46e9ab of _0x22bf65[_0x5d2878][_0x2bf3('0x6b')])_0xbeb4a0[_0x2bf3('0x6d')](_0x46e9ab,{'start':_0x1c0a9f,'end':null});_0x2604e1(_0x2bf3('0xf0'),_0x5d2878,_0x1c0a9f,_0x1f9101),_0x2604e1(_0x2bf3('0x19'),_0x5d2878,_0x1c0a9f,_0x1f9101),_0x2604e1(_0x2bf3('0x61'),_0x5d2878,_0x1c0a9f,_0x1f9101),_0x2604e1(_0x2bf3('0x7b'),_0x5d2878,_0x1c0a9f,_0x1f9101);for(const _0x1e037c of _0x22bf65[_0x5d2878][_0x2bf3('0x10b')]){_0xbeb4a0[_0x2bf3('0x4f')](_0x1e037c)[_0x2bf3('0x3d')]=_0x1f9101;}}for(const [_0x40dae3,_0x486963]of _0xbeb4a0){const _0x55dc2b=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['createRange'](_0x486963[_0x2bf3('0x99')],_0x486963[_0x2bf3('0x3d')]);_0x339c86[_0x2bf3('0x110')][_0x2bf3('0x6d')](_0x40dae3,_0x55dc2b);}return _0x4f3a38[_0x2bf3('0x82')]((_0x4003ab,_0x49b268)=>{const _0x5c5c08=_0x339c86[_0x2bf3('0x110')][_0x2bf3('0x4f')]('revision:'+_0x4003ab['id']),_0x30a6ae=_0x339c86[_0x2bf3('0x110')]['get']('revision:'+_0x49b268['id']);return _0x5c5c08[_0x2bf3('0x99')][_0x2bf3('0x77')](_0x30a6ae['start'])?-0x1:_0x5c5c08[_0x2bf3('0x99')][_0x2bf3('0x1d')](_0x30a6ae[_0x2bf3('0x99')])?0x1:_0x5c5c08[_0x2bf3('0x3d')][_0x2bf3('0x77')](_0x30a6ae['end'])?-0x1:_0x5c5c08[_0x2bf3('0x3d')]['isAfter'](_0x30a6ae['end'])?0x1:_0x2bf3('0xbc')===_0x4003ab[_0x2bf3('0x108')]?-0x1:0x1;}),{'root':_0x339c86,'changes':_0x4f3a38};function _0x2604e1(_0x14227a,_0x1c1e67,_0x114e76,_0x499f3b){const _0x458a84=!!_0x22bf65[_0x1c1e67][_0x14227a],_0x1143c4=_0x458a84?_0x22bf65[_0x1c1e67][_0x14227a][_0x2bf3('0x59')]:null,_0x1c7b15=_0x1c1e67===_0x22bf65['length']-0x1,_0x11c9a8=_0x2b84ac[_0x14227a][0x0],_0x28b60e=_0x405b30[_0x2bf3('0x96')](_0x22bf65[_0x1c1e67][_0x2bf3('0x2f')]);!_0x175aa2[_0x14227a]&&_0x458a84?_0x175aa2[_0x14227a]={'start':_0x114e76,'tapeItem':_0x22bf65[_0x1c1e67],'userId':_0x1143c4,'type':_0x14227a}:_0x175aa2[_0x14227a]&&!_0x458a84?(_0x175aa2[_0x14227a][_0x2bf3('0x3d')]=_0x114e76,_0x39a773(_0x175aa2[_0x14227a]),_0x175aa2[_0x14227a]=null):_0x175aa2[_0x14227a]&&_0x458a84&&_0x175aa2[_0x14227a][_0x2bf3('0x59')]!==_0x1143c4&&(_0x175aa2[_0x14227a][_0x2bf3('0x3d')]=_0x114e76,_0x11c9a8&&_0x11c9a8[_0x2bf3('0x59')]===_0x175aa2[_0x14227a]['userId']||_0x39a773(_0x175aa2[_0x14227a]),_0x175aa2[_0x14227a]={'start':_0x114e76,'tapeItem':_0x22bf65[_0x1c1e67],'userId':_0x1143c4,'type':_0x14227a}),_0x175aa2[_0x14227a]&&_0x28b60e&&('elementStart'!==_0x22bf65[_0x1c1e67][_0x2bf3('0x108')]||_0x11c9a8&&_0x11c9a8[_0x2bf3('0x59')]===_0x1143c4||_0x2b84ac[_0x14227a][_0x2bf3('0x95')]({'userId':_0x1143c4,'object':_0x22bf65[_0x1c1e67][_0x2bf3('0x2f')],'change':_0x175aa2[_0x14227a]}),_0x2bf3('0x8d')===_0x22bf65[_0x1c1e67][_0x2bf3('0x108')]&&_0x11c9a8&&_0x11c9a8['object']===_0x22bf65[_0x1c1e67][_0x2bf3('0x2f')]&&(_0x2b84ac[_0x14227a][_0x2bf3('0x68')](),_0x175aa2[_0x14227a]=_0x11c9a8[_0x2bf3('0xc4')])),_0x175aa2[_0x14227a]&&_0x1c7b15&&(_0x175aa2[_0x14227a]['end']=_0x499f3b,_0x39a773(_0x175aa2[_0x14227a]),_0x175aa2[_0x14227a]=null);}function _0x39a773({start:_0x25151b,end:_0x1ad674,tapeItem:_0x43192c,userId:_0x58dfd6,type:_0x596e90}){const _0x543a8c=_0x43192c['item'],_0x3bedbc=_0x388c88[_0x2bf3('0x7a')][_0x2bf3('0xa9')](_0x543a8c)&&!_0x388c88[_0x2bf3('0x7a')][_0x2bf3('0x37')](_0x543a8c),_0x230e08=_0x25151b['nodeAfter']==_0x1ad674[_0x2bf3('0xf8')]&&_0x1ad674[_0x2bf3('0x65')];if(_0x3bedbc&&_0x230e08)return;const _0x3dadab=_0x388c88[_0x2bf3('0xe7')](_0x25151b,_0x1ad674),_0x3b8d03=_0x1b3376[_0x2bf3('0x4f')](_0x58dfd6),_0x4bc568=new _0x2291e3({'author':_0x3b8d03,'type':_0x2bf3('0x7b')==_0x596e90||'isAddSuggestion'==_0x596e90?_0x2bf3('0xbc'):'remove','data':{'isSuggestion':_0x2bf3('0x19')==_0x596e90||'isRemoveSuggestion'==_0x596e90},'createdAt':new Date(),'rootName':_0x2fd35a});_0x4f3a38[_0x2bf3('0xdf')](_0x4bc568),_0x339c86[_0x2bf3('0x110')]['set'](_0x2bf3('0xdd')+_0x4bc568['id'],_0x3dadab);}function _0x133fef(_0x544bbe,_0x32b171){const _0x1e4d9f=_0x544bbe[_0x2bf3('0xfe')](),_0x44717d=_0x32b171[_0x2bf3('0xfe')]();for(const _0x3a20dd of _0x1e4d9f){if(_0x3a20dd[0x1]!==_0x32b171[_0x2bf3('0x14')](_0x3a20dd[0x0]))return!0x1;_0x44717d[_0x2bf3('0x11e')]();}return _0x44717d[_0x2bf3('0x11e')]()[_0x2bf3('0xf6')];}}[_0x2bf3('0x102')](){this[_0x2bf3('0x9a')][_0x2bf3('0x32')]['for'](_0x2bf3('0xcf'))[_0x2bf3('0x7c')]({'view':_0x2bf3('0x34')}),this['editor'][_0x2bf3('0x32')]['for'](_0x2bf3('0x35'))['markerToHighlight']({'model':'revision','view':_0xfb8cf0=>{const _0x878729=_0xfb8cf0[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1],_0x57a9d3=this[_0x2bf3('0xd3')](_0x878729);if(!_0x57a9d3)return null;const _0x446b8c=_0x2bf3('0xbc')==_0x57a9d3[_0x2bf3('0x108')]?_0x2bf3('0x11'):_0x2bf3('0x103'),_0x336d7e=[_0x2bf3('0xaa'),_0x2bf3('0x51')+_0x446b8c];return _0x57a9d3[_0x2bf3('0xec')]['isSuggestion']&&_0x336d7e[_0x2bf3('0xdf')](_0x2bf3('0x51')+_0x446b8c+_0x2bf3('0x91')),this[_0x2bf3('0x3')]==_0x57a9d3&&_0x336d7e[_0x2bf3('0xdf')](_0x2bf3('0x97')),{'classes':_0x336d7e,'attributes':{'data-change-id':_0x878729}};}}),this['editor'][_0x2bf3('0x32')][_0x2bf3('0xf1')](_0x2bf3('0xcf'))[_0x2bf3('0xbc')](_0x28d8f8=>{_0x28d8f8['on'](_0x2bf3('0xea'),(_0x48ccff,_0x18342c,_0x561a39)=>{const _0x4be4d7=_0x18342c[_0x2bf3('0x25')]['getChild'](0x0);if(!_0x4be4d7||!_0x4be4d7['is']('element',_0x2bf3('0xac')))return;if(!_0x561a39[_0x2bf3('0xa0')][_0x2bf3('0xc7')](_0x4be4d7,{'attributes':[_0x2bf3('0xf7'),_0x2bf3('0xa3')]}))return;const _0x2a4ad8=_0x18342c[_0x2bf3('0xc5')]['start']['nodeAfter'];_0x561a39[_0x2bf3('0x106')]['setAttribute'](_0x2bf3('0xf7'),_0x4be4d7[_0x2bf3('0x14')](_0x2bf3('0xf7')),_0x2a4ad8),_0x561a39[_0x2bf3('0x106')]['setAttribute'](_0x2bf3('0xa3'),_0x4be4d7[_0x2bf3('0x14')]('vid_end'),_0x2a4ad8);},{'priority':'low'});}),this['editor'][_0x2bf3('0x32')][_0x2bf3('0xf1')](_0x2bf3('0xcf'))[_0x2bf3('0xbc')](_0x10516b=>{_0x10516b['on']('element',(_0x3b58de,_0x1c20f6,_0x56ea3e)=>{if(!_0x56ea3e[_0x2bf3('0xa0')][_0x2bf3('0xc7')](_0x1c20f6[_0x2bf3('0x25')],{'attributes':[_0x2bf3('0xf7'),_0x2bf3('0xa3')]}))return;if(_0x1c20f6['modelRange'][_0x2bf3('0x119')])return;const _0x3ad183=_0x1c20f6['modelRange'][_0x2bf3('0x99')][_0x2bf3('0x50')];_0x3ad183[_0x2bf3('0x86')](_0x2bf3('0xf7'))||_0x3ad183[_0x2bf3('0x86')](_0x2bf3('0x8f'))||(_0x56ea3e[_0x2bf3('0x106')]['setAttribute']('vid_start',_0x1c20f6[_0x2bf3('0x25')][_0x2bf3('0x14')](_0x2bf3('0xf7')),_0x3ad183),_0x56ea3e['writer'][_0x2bf3('0xe5')](_0x2bf3('0xa3'),_0x1c20f6['viewItem'][_0x2bf3('0x14')](_0x2bf3('0xa3')),_0x3ad183));},{'priority':_0x2bf3('0xd8')});}),this['editor'][_0x2bf3('0x32')][_0x2bf3('0xf1')]('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x2bf3('0x8f'),'value':_0x5902a5=>_0x5902a5[_0x2bf3('0x14')](_0x2bf3('0x8f'))}}),this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x7a')]['on']('checkAttribute',(_0xc0414,[,_0x2cc6a2])=>{['vid_start','vid_end',_0x2bf3('0x8f')][_0x2bf3('0xce')](_0x2cc6a2)&&(_0xc0414[_0x2bf3('0x115')]=!0x0,_0xc0414[_0x2bf3('0xca')]());},{'priority':_0x2bf3('0xb0')}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xd5'))['add'](_0x1f614f=>{_0x1f614f['on'](_0x2bf3('0xff'),(_0x4456e7,_0x11aaa7,_0x47df1e)=>{if('\x20'!=_0x11aaa7[_0x2bf3('0x2f')][_0x2bf3('0xec')]||_0x11aaa7[_0x2bf3('0x2f')][_0x2bf3('0xf8')][_0x2bf3('0x7d')]>0x1)return;if(!_0x47df1e['consumable'][_0x2bf3('0xc7')](_0x11aaa7['item'],_0x4456e7[_0x2bf3('0xd')]))return;const _0x24e6b8=_0x47df1e[_0x2bf3('0x106')],_0xb9bc=_0x47df1e[_0x2bf3('0x7')][_0x2bf3('0xc')](_0x11aaa7[_0x2bf3('0xbe')]);_0x24e6b8[_0x2bf3('0xcd')](_0xb9bc,_0x24e6b8[_0x2bf3('0x90')](_0x2bf3('0x2a')));});}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xd5'))['markerToData']({'model':'revision'}),this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x0')]['on'](_0x2bf3('0x1b'),function(_0x9cfa6b){const _0x438f86=_0x9cfa6b['plugins'][_0x2bf3('0x4f')](_0x2bf3('0x2'));return(_0x4e9c10,_0x464a85,_0x111d05)=>{const _0x375914=_0x464a85[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1],_0x22c4be=_0x438f86['_getChangeFromId'](_0x375914);if(!_0x22c4be)return null;const _0x2b9b31=_0x2bf3('0xbc')==_0x22c4be['type']?_0x2bf3('0x116'):'merge';if(!_0x111d05[_0x2bf3('0xa0')][_0x2bf3('0x39')](_0x464a85[_0x2bf3('0x75')],_0x4e9c10[_0x2bf3('0xd')]))return;const _0x120269=_0x464a85[_0x2bf3('0x75')]['getWalker'](),_0x53bc60=_0x464a85[_0x2bf3('0x75')]['start'],_0x5365ad=_0x9cfa6b['model'][_0x2bf3('0x7a')];let _0x43220a=null,_0xbee2f8=null,_0x1da614=!0x1,_0x26fdfe=!0x1;for(const _0x543e55 of _0x120269){const _0x185025=_0x543e55[_0x2bf3('0x2f')];_0x1da614=_0x1da614||_0x5365ad[_0x2bf3('0xb9')](_0x185025);const _0x2c58a3=_0x111d05[_0x2bf3('0x7')][_0x2bf3('0xa6')](_0x185025);if(_0x2c58a3&&_0x2c58a3[_0x2bf3('0xa4')]('addHighlight'))return;_0x2bf3('0x8d')==_0x543e55[_0x2bf3('0x108')]&&(_0x5365ad[_0x2bf3('0xa9')](_0x185025)&&!_0x5365ad[_0x2bf3('0x37')](_0x185025)&&(_0x185025[_0x2bf3('0x104')]||_0x53bc60[_0x2bf3('0xad')]?_0x43220a&&_0x43220a['parent']==_0x185025||(_0x43220a=_0x185025,_0x18cfaa(_0x543e55[_0x2bf3('0x16')]),_0x26fdfe=!0x0):_0xbee2f8=_0xbee2f8||_0x543e55['previousPosition']));}function _0x18cfaa(_0x7f692b){const _0x11c1ba=_0x111d05[_0x2bf3('0x106')]['createUIElement'](_0x2bf3('0x2a'),{'class':'ck-suggestion-marker-'+_0x2b9b31}),_0x4aab6c=_0x111d05[_0x2bf3('0x7')][_0x2bf3('0xeb')](_0x7f692b);_0x22c4be['data']['isSuggestion']&&_0x111d05[_0x2bf3('0x106')][_0x2bf3('0xc1')]('ck-suggestion-marker-'+_0x2b9b31+_0x2bf3('0x91'),_0x11c1ba),_0x438f86[_0x2bf3('0x3')]==_0x22c4be&&_0x111d05['writer'][_0x2bf3('0xc1')](_0x2bf3('0x97'),_0x11c1ba),_0x111d05['writer']['insert'](_0x4aab6c,_0x11c1ba),_0x111d05[_0x2bf3('0x7')][_0x2bf3('0x105')](_0x11c1ba,_0x464a85[_0x2bf3('0x6f')]);}_0x1da614||_0x26fdfe||!_0xbee2f8||_0x18cfaa(_0xbee2f8);};}(this['editor']),{'priority':'high'}),this['editor'][_0x2bf3('0x58')][_0x2bf3('0x0')]['on']('removeMarker:revision',(_0x5a120a,_0x213156,_0x1ff27a)=>{const _0x4b0790=_0x1ff27a[_0x2bf3('0x7')]['markerNameToElements'](_0x213156[_0x2bf3('0x6f')]);if(_0x4b0790)for(const _0x15cd49 of _0x4b0790)(_0x15cd49['hasClass']('ck-suggestion-marker-split')||_0x15cd49['hasClass'](_0x2bf3('0xc8')))&&(_0x1ff27a[_0x2bf3('0x7')][_0x2bf3('0x4e')](_0x15cd49,_0x213156[_0x2bf3('0x6f')]),_0x1ff27a[_0x2bf3('0x106')][_0x2bf3('0x6')](_0x15cd49));},{'priority':_0x2bf3('0xbf')}),this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x0')]['on']('addMarker:revision',(_0x56fd39,_0x406f7a,_0x3b2063)=>{const _0x2cd6f0=_0x406f7a[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1],_0x17cd67=this[_0x2bf3('0xd3')](_0x2cd6f0);if(!_0x17cd67)return null;const _0x254c08=_0x2bf3('0xbc')==_0x17cd67[_0x2bf3('0x108')]?_0x2bf3('0x116'):_0x2bf3('0xb5');if(_0x3b2063[_0x2bf3('0xa0')][_0x2bf3('0x39')](_0x406f7a[_0x2bf3('0x75')],_0x56fd39[_0x2bf3('0xd')]))for(const _0x1e057b of _0x406f7a[_0x2bf3('0x75')][_0x2bf3('0xe')]()){if(!_0x1e057b['is']('element','softBreak'))continue;const _0x1a1e75=_0x3b2063[_0x2bf3('0x106')]['createUIElement'](_0x2bf3('0x2a'),{'class':_0x2bf3('0x51')+_0x254c08}),_0x29f608=_0x3b2063[_0x2bf3('0x7')][_0x2bf3('0xeb')](this[_0x2bf3('0x9a')]['model'][_0x2bf3('0x5d')](_0x1e057b));_0x17cd67[_0x2bf3('0xec')][_0x2bf3('0xb3')]&&_0x3b2063[_0x2bf3('0x106')]['addClass'](_0x2bf3('0x51')+_0x254c08+_0x2bf3('0x91'),_0x1a1e75),this[_0x2bf3('0x3')]==_0x17cd67&&_0x3b2063['writer'][_0x2bf3('0xc1')](_0x2bf3('0x97'),_0x1a1e75),_0x3b2063[_0x2bf3('0x106')]['insert'](_0x29f608,_0x1a1e75),_0x3b2063['mapper']['bindElementToMarker'](_0x1a1e75,_0x406f7a[_0x2bf3('0x6f')]);}},{'priority':'high'}),this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x11c')]['on']('change',()=>{this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0xc4')](_0x470006=>{for(const _0x4b891c of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x11c')][_0x2bf3('0xef')]()){const _0x190124=this['editor'][_0x2bf3('0xcc')][_0x2bf3('0x11c')][_0x2bf3('0x80')](_0x4b891c),_0x98a8c5=this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')][_0x2bf3('0x80')](_0x4b891c);if(_0x98a8c5){const _0xae59db=_0x190124['getAttribute'](_0x2bf3('0xe1'));if(_0x470006[_0x2bf3('0xfc')](_0x2bf3('0x5'),_0x98a8c5),_0x470006['removeClass'](_0x2bf3('0xe4'),_0x98a8c5),_0x470006['removeClass'](_0x2bf3('0x9f'),_0x98a8c5),_0x470006[_0x2bf3('0x3f')]('ck-revision-history-root--active',_0x98a8c5),_0xae59db){const _0x5db2f1=this[_0x2bf3('0xd3')](_0xae59db);if(!_0x5db2f1)return null;_0x470006[_0x2bf3('0xe5')]('data-change-id',_0xae59db,_0x98a8c5),_0x470006[_0x2bf3('0xc1')](_0x2bf3('0x84')+_0x5db2f1[_0x2bf3('0x108')],_0x98a8c5),this['activeChange']==_0x5db2f1&&_0x470006[_0x2bf3('0xc1')](_0x2bf3('0xfb'),_0x98a8c5);}}}});}),this['editor']['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xcf'))[_0x2bf3('0x7c')]({'view':_0x2bf3('0xe9'),'model':_0x3c1daf=>_0x2bf3('0xb1')+_0x3c1daf,'converterPriority':'highest'}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xcf'))['dataToMarker']({'view':_0x2bf3('0xd2'),'model':_0x17d6de=>'revision-suggestion:'+_0x17d6de,'converterPriority':_0x2bf3('0xb0')}),this[_0x2bf3('0x9a')]['conversion'][_0x2bf3('0xf1')](_0x2bf3('0xd5'))[_0x2bf3('0xc6')]({'model':'revision-suggestion','view':_0x2ff7b7=>({'name':_0x2bf3('0xdc')+_0x2ff7b7,'group':_0x2bf3('0x40')}),'converterPriority':_0x2bf3('0xb0')}),this[_0x2bf3('0x9a')]['conversion']['for'](_0x2bf3('0x35'))[_0x2bf3('0x92')]({'model':_0x2bf3('0x40'),'view':_0x35b64d=>{const _0x2e0ff0=_0x35b64d[_0x2bf3('0x6f')][_0x2bf3('0x116')](':')[0x1];return'insertion'!=_0x2e0ff0&&_0x2bf3('0x103')!=_0x2e0ff0?null:{'classes':[_0x2bf3('0x10c'),'ck-suggestion-preview-marker-'+_0x2e0ff0]};}}),this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x0')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x2bf3('0x9a')],_0x2bf3('0xb5')),{'priority':_0x2bf3('0xbf')}),this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x0')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x2bf3('0x9a')],'split'),{'priority':_0x2bf3('0xbf')}),this[_0x2bf3('0x9a')][_0x2bf3('0x58')]['downcastDispatcher']['on'](_0x2bf3('0x76'),(_0xe0e7b2,_0x310395,_0x910b5e)=>{const _0x2d2ce1=_0x910b5e['mapper'][_0x2bf3('0x112')](_0x310395[_0x2bf3('0x6f')]);if(_0x2d2ce1)for(const _0x3e7c4a of _0x2d2ce1)_0x3e7c4a['is'](_0x2bf3('0x6a'))&&(_0x910b5e['mapper'][_0x2bf3('0x4e')](_0x3e7c4a,_0x310395['markerName']),_0x910b5e[_0x2bf3('0x106')]['remove'](_0x3e7c4a));},{'priority':'high'});}[_0x2bf3('0xd3')](_0x910835){return this[_0x2bf3('0xb8')][_0x2bf3('0x4f')](_0x910835);}[_0x2bf3('0x10')](_0x3e8610){return this[_0x2bf3('0x43')]&&this[_0x2bf3('0x43')][_0x2bf3('0x55')](),this[_0x2bf3('0x43')]=new _0x3a53e9(this[_0x2bf3('0x9a')]['locale'],_0x3e8610),this[_0x2bf3('0x43')];}[_0x2bf3('0x46')](){this[_0x2bf3('0x9a')]['model']['document'][_0x2bf3('0xe8')]['observeMarkers']('revision'),this['on']('change:activeView',(_0x292f70,_0x64c03c,_0x39c6e1,_0x21a529)=>{_0x21a529&&this[_0x2bf3('0x9c')][_0x2bf3('0x6')](_0x21a529),_0x39c6e1&&(this[_0x2bf3('0x9c')][_0x2bf3('0xbc')]({'view':_0x39c6e1,'stackId':_0x2bf3('0x45'),'position':{'target':()=>{const _0x19d8ac=this[_0x2bf3('0x9a')][_0x2bf3('0x58')],_0x575f2e=this['_getChangeFromId'](_0x39c6e1['changeId']);let _0x306c1b;if(_0x575f2e[_0x2bf3('0xec')][_0x2bf3('0xaf')]){const _0x2a9795=_0x19d8ac[_0x2bf3('0x85')]['getDomRoot'](_0x575f2e['rootName']);_0x306c1b=Array['from'](_0x2a9795['getClientRects']());}else{const _0x59ce90=this[_0x2bf3('0x9a')][_0x2bf3('0xcc')]['markers']['get'](_0x2bf3('0xdd')+_0x39c6e1[_0x2bf3('0x2d')]);_0x306c1b=Array[_0x2bf3('0xf4')](_0x19d8ac[_0x2bf3('0x7')][_0x2bf3('0x112')](_0x59ce90[_0x2bf3('0xd')]))['map'](_0x3ac408=>_0x19d8ac[_0x2bf3('0x85')][_0x2bf3('0xb2')]['mapViewToDom'](_0x3ac408))[_0x2bf3('0x28')](_0x38d261=>Array[_0x2bf3('0xf4')](_0x38d261[_0x2bf3('0x5c')]()))['flat']();}if(!this['_activeViewTarget'])return _0x306c1b[0x0];return _0x306c1b[_0x2bf3('0xba')](_0x1c8f39=>_0x1c8f39[_0x2bf3('0xd4')]-0x3<=this[_0x2bf3('0xc3')]['y']&&_0x1c8f39[_0x2bf3('0x10d')]+0x3>=this[_0x2bf3('0xc3')]['y']&&_0x1c8f39[_0x2bf3('0x63')]-0x3<=this['_activeViewTarget']['x']&&_0x1c8f39[_0x2bf3('0x114')]+0x3>=this['_activeViewTarget']['x'])||_0x306c1b[0x0];}}}),this[_0x2bf3('0x9c')]['showStack']('revisionHistoryLabel'));}),this['on'](_0x2bf3('0xfd'),(_0x8386e0,_0x16d75a,_0x412285,_0x20eb24)=>{this[_0x2bf3('0x49')]=_0x412285?this[_0x2bf3('0x10')](_0x412285):null,this['editor'][_0x2bf3('0xcc')]['change'](()=>{const _0x11fc21=this[_0x2bf3('0x9a')][_0x2bf3('0x58')];_0x20eb24&&(_0x20eb24[_0x2bf3('0xec')][_0x2bf3('0xaf')]?_0x11fc21['view'][_0x2bf3('0xc4')](_0x407866=>{_0x407866[_0x2bf3('0x3f')](_0x2bf3('0xfb'),_0x11fc21[_0x2bf3('0x85')][_0x2bf3('0x11c')]['getRoot'](_0x20eb24[_0x2bf3('0x111')]));}):_0x11fc21[_0x2bf3('0x101')](_0x2bf3('0xdd')+_0x20eb24['id'])),_0x412285&&(_0x412285[_0x2bf3('0xec')]['isOnRoot']?_0x11fc21[_0x2bf3('0x85')][_0x2bf3('0xc4')](_0x409f27=>{_0x409f27[_0x2bf3('0xc1')](_0x2bf3('0xfb'),_0x11fc21[_0x2bf3('0x85')][_0x2bf3('0x11c')][_0x2bf3('0x80')](_0x412285[_0x2bf3('0x111')]));}):_0x11fc21['reconvertMarker'](_0x2bf3('0xdd')+_0x412285['id']));});}),this[_0x2bf3('0xbd')](this[_0x2bf3('0x9a')][_0x2bf3('0x58')][_0x2bf3('0x85')][_0x2bf3('0x11c')],_0x2bf3('0x62'),(_0x54526d,_0x5645ac)=>{if(this['activeChange'])return;const _0x5ad545=this[_0x2bf3('0xa2')](_0x5645ac[_0x2bf3('0x109')]),_0x1a299e=this[_0x2bf3('0xb8')][_0x2bf3('0x4f')](_0x5ad545);_0x1a299e?(this[_0x2bf3('0xc3')]={'x':_0x5645ac[_0x2bf3('0x87')]['x'],'y':_0x5645ac[_0x2bf3('0x87')]['y']},this[_0x2bf3('0x49')]=this[_0x2bf3('0x10')](_0x1a299e)):(this[_0x2bf3('0xc3')]=null,this[_0x2bf3('0x49')]=null);}),this['listenTo'](this[_0x2bf3('0x9a')]['editing'][_0x2bf3('0x85')][_0x2bf3('0x11c')],_0x2bf3('0x24'),(_0x336008,_0x3d739f)=>{const _0x37a1a2=this[_0x2bf3('0xa2')](_0x3d739f[_0x2bf3('0x109')]),_0x1e78fa=this[_0x2bf3('0xb8')][_0x2bf3('0x4f')](_0x37a1a2);_0x1e78fa?(this[_0x2bf3('0xc3')]={'x':_0x3d739f[_0x2bf3('0x87')]['x'],'y':_0x3d739f[_0x2bf3('0x87')]['y']},_0x1e78fa===this[_0x2bf3('0x3')]?this['_balloon'][_0x2bf3('0xf3')]():this['activeChange']=_0x1e78fa):(this[_0x2bf3('0xc3')]=null,this[_0x2bf3('0x3')]=null);});}[_0x2bf3('0xa2')](_0x457335){do{const _0x2788c3=_0x457335[_0x2bf3('0x14')]('data-change-id');if(_0x2788c3)return _0x2788c3;_0x457335=_0x457335[_0x2bf3('0xf8')];}while(_0x457335);return null;}[_0x2bf3('0xae')](){this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0xc4')](_0x5e2d96=>{for(const _0x10a90e of this[_0x2bf3('0x9a')][_0x2bf3('0xcc')][_0x2bf3('0x110')])_0x5e2d96[_0x2bf3('0x56')](_0x10a90e);});}}function et(_0x4b7709,_0x565e37){return(_0x149879,_0x562566,_0x4dde8e)=>{if(!_0x4dde8e['consumable'][_0x2bf3('0x39')](_0x562566[_0x2bf3('0x75')],_0x149879[_0x2bf3('0xd')]))return;const _0x59d39d=_0x562566['markerRange'][_0x2bf3('0x52')](),_0x1e3afc=_0x562566[_0x2bf3('0x75')][_0x2bf3('0x99')],_0x2419d9=_0x4b7709[_0x2bf3('0xcc')][_0x2bf3('0x7a')];let _0xa8c73b=null,_0xebe857=null,_0x3fdef7=!0x1,_0x59a102=!0x1;for(const _0x172040 of _0x59d39d){const _0x1ff105=_0x172040[_0x2bf3('0x2f')];_0x3fdef7=_0x3fdef7||_0x2419d9[_0x2bf3('0xb9')](_0x1ff105);const _0x88c757=_0x4dde8e[_0x2bf3('0x7')][_0x2bf3('0xa6')](_0x1ff105);if(_0x88c757&&_0x88c757[_0x2bf3('0xa4')](_0x2bf3('0xee')))return;_0x2bf3('0x8d')==_0x172040[_0x2bf3('0x108')]&&(_0x2419d9[_0x2bf3('0xa9')](_0x1ff105)&&!_0x2419d9[_0x2bf3('0x37')](_0x1ff105)&&(_0x1ff105[_0x2bf3('0x104')]||_0x1e3afc[_0x2bf3('0xad')]?_0xa8c73b&&_0xa8c73b[_0x2bf3('0xf8')]==_0x1ff105||(_0xa8c73b=_0x1ff105,_0x137189(_0x172040[_0x2bf3('0x16')]),_0x59a102=!0x0):_0xebe857=_0xebe857||_0x172040[_0x2bf3('0x16')]));}function _0x137189(_0x9b52eb){const _0x15216b=_0x4dde8e[_0x2bf3('0x7')][_0x2bf3('0xeb')](_0x9b52eb),_0x2f813=_0x4dde8e[_0x2bf3('0x106')]['createUIElement'](_0x2bf3('0x2a'),{'class':_0x2bf3('0x4')+_0x565e37});_0x4dde8e[_0x2bf3('0x106')][_0x2bf3('0x1f')](_0x15216b,_0x2f813),_0x4dde8e[_0x2bf3('0x7')]['bindElementToMarker'](_0x2f813,_0x562566[_0x2bf3('0x6f')]);}_0x3fdef7||_0x59a102||!_0xebe857||_0x137189(_0xebe857);};}export class RestoreRevisionCommand extends _0x524872{constructor(_0x3f6d0f){super(_0x3f6d0f);const _0x4514de=_0x3f6d0f[_0x2bf3('0x38')][_0x2bf3('0x4f')](d);this[_0x2bf3('0xab')]=!0x1,this['listenTo'](_0x4514de,_0x2bf3('0x5a'),()=>this[_0x2bf3('0x3c')]()),this['listenTo'](_0x4514de,_0x2bf3('0x5f'),()=>this[_0x2bf3('0x3c')]());}[_0x2bf3('0x3b')](){const _0x2efafa=this[_0x2bf3('0x9a')],_0x280a6c=_0x2efafa[_0x2bf3('0x38')][_0x2bf3('0x4f')](d),_0x40d2c9=_0x280a6c['isReady']?_0x280a6c['diff'][_0x2bf3('0x94')]:null;_0x2efafa['config'][_0x2bf3('0x4f')](_0x2bf3('0x41'))['restoreRevisionCallback'](_0x40d2c9);}['refresh'](){const {isReady:_0x135b73,isEnabled:_0x2f99ed}=this[_0x2bf3('0x9a')][_0x2bf3('0x38')][_0x2bf3('0x4f')](d);this['isEnabled']=_0x135b73&&_0x2f99ed;}}export class ShowChangeCommand extends _0x524872{constructor(_0x3fd06f,{direction:_0x37be5d}){super(_0x3fd06f);const _0x422e9c=_0x3fd06f[_0x2bf3('0x38')][_0x2bf3('0x4f')](d);this[_0x2bf3('0xab')]=!0x1,this[_0x2bf3('0x8')]=_0x2bf3('0x117')===_0x37be5d?0x1:-0x1,this[_0x2bf3('0xbd')](_0x422e9c,_0x2bf3('0x5a'),()=>this[_0x2bf3('0x3c')]()),this[_0x2bf3('0xbd')](_0x422e9c,_0x2bf3('0x5f'),()=>this[_0x2bf3('0x3c')]());}[_0x2bf3('0x3b')](){const _0x43eeca=this[_0x2bf3('0x9a')],_0x1d7032=_0x43eeca[_0x2bf3('0x38')][_0x2bf3('0x4f')](d),{isNavigationMode:_0x5e22a6,currentChangeNumber:_0x10413e}=_0x1d7032;let _0x3e2e04;if(_0x1d7032['activeChange']=_0x5e22a6?_0x1d7032[_0x2bf3('0xc9')]['changes'][_0x2bf3('0x4f')](_0x10413e+this[_0x2bf3('0x8')]):_0x1d7032[_0x2bf3('0xc9')]['changes'][_0x2bf3('0x29')],_0x1d7032[_0x2bf3('0x3')]['data']['isOnRoot'])_0x3e2e04=_0x43eeca['editing'][_0x2bf3('0x85')][_0x2bf3('0x64')](_0x1d7032['activeChange'][_0x2bf3('0x111')]);else{const _0x15fc21=_0x43eeca[_0x2bf3('0xcc')]['markers'][_0x2bf3('0x4f')](_0x2bf3('0xdd')+_0x1d7032[_0x2bf3('0x3')]['id']);_0x3e2e04=_0x24264c(_0x43eeca['editing'],_0x15fc21);}_0x240ab4({'target':_0x3e2e04,'viewportOffset':0x28});}[_0x2bf3('0x3c')](){const {isNavigationMode:_0x5dc4dd,currentChangeNumber:_0x30d629,numberOfChanges:_0x54efbb,isReady:_0x549cfc,isEnabled:_0x1e5536}=this['editor']['plugins'][_0x2bf3('0x4f')](d);this[_0x2bf3('0x13')]=!!(_0x1e5536&&_0x549cfc&&_0x54efbb)&&(!_0x5dc4dd||(0x1===this[_0x2bf3('0x8')]?_0x30d629<_0x54efbb-0x1:_0x30d629>0x0));}}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @module revision-history/ui/revision/createrevisionactionsdropdown
3
3
  */
4
- import { Model } from 'ckeditor5/src/ui';
4
+ import { Model } from 'ckeditor5/src/ui.js';
5
5
  import '../../../theme/revision/revisionactions.css';
6
6
  export interface RevisionDropdownOptions {
7
7
  type: 'button';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3d1c=['map','ck-on','function','items','isActionsDropdownOpen','bind','listView','bindTemplate','execute','stopPropagation','name','Show\x20more\x20items','model','action','Compare\x20against\x20selected','listenTo','change:isActionsDropdownOpen','isOpen','children','class','_action','ck-revision-history-sidebar__revision__actions','locale','isVisible','source','isEnabled','isReady','button','first','set','buttonView'];(function(_0x34de85,_0x3d1c18){const _0x46ea8a=function(_0x5145e2){while(--_0x5145e2){_0x34de85['push'](_0x34de85['shift']());}};_0x46ea8a(++_0x3d1c18);}(_0x3d1c,0x142));const _0x46ea=function(_0x34de85,_0x3d1c18){_0x34de85=_0x34de85-0x0;let _0x46ea8a=_0x3d1c[_0x34de85];return _0x46ea8a;};import{Collection as _0x5945f3}from'ckeditor5/src/utils';import{icons as _0x57bf46}from'ckeditor5/src/core';import{Model as _0x2c8b52,addListToDropdown as _0x11b685,createDropdown as _0x2264ff}from'ckeditor5/src/ui';import{getTranslation as _0x713af}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x3f057c,_0x49f27d){const _0x4d8564=_0x3f057c[_0x46ea('0x1a')],_0x52a1c3=_0x3f057c[_0x46ea('0xa')],_0x21b552=_0x2264ff(_0x52a1c3);_0x21b552['panelPosition']='sw';const _0x25bbaa=function(_0xd4c8e0,_0x372be9){const _0x12a3f3=function(_0x19fcd1,_0x17c510){const _0x401e8b=_0x19fcd1[_0x46ea('0xa')],_0x534ebc={'Compare\x20against\x20selected':_0x713af(_0x401e8b,_0x46ea('0x2')),'Name\x20this\x20revision':_0x713af(_0x401e8b,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x713af(_0x401e8b,'Restore\x20this\x20revision')};return _0x17c510[_0x46ea('0x13')](_0x2fde20=>{const _0x4f3b25=_0x534ebc[_0x2fde20['name']];return _0x4f3b25&&_0x4f3b25!==_0x2fde20['name']&&(_0x2fde20[_0x46ea('0x1d')]=_0x4f3b25),_0x2fde20;});}(_0xd4c8e0,_0x372be9),_0x59d0db=new _0x5945f3();for(const _0x387b78 of _0x12a3f3){const _0x175866={'type':_0x46ea('0xf'),'model':new _0x2c8b52({'label':_0x387b78['name'],'class':_0x387b78[_0x46ea('0x7')],'withText':!0x0,'_action':_0x387b78[_0x46ea('0x1')]})};_0x175866[_0x46ea('0x0')][_0x46ea('0x18')](_0x46ea('0xd'))['to'](_0xd4c8e0,_0x46ea('0x17'),_0x11a88f=>_0x46ea('0x15')!=typeof _0x387b78[_0x46ea('0xd')]||(!_0x11a88f||_0x387b78[_0x46ea('0xd')](_0xd4c8e0))),_0x59d0db['add'](_0x175866);}return _0x59d0db;}(_0x3f057c,_0x49f27d);return _0x3f057c[_0x46ea('0x18')](_0x46ea('0x17'))['to'](_0x21b552,_0x46ea('0x5')),_0x21b552[_0x46ea('0x12')][_0x46ea('0x11')]({'label':_0x713af(_0x52a1c3,_0x46ea('0x1e')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x57bf46['threeVerticalDots']}),_0x21b552['extendTemplate']({'attributes':{'class':[_0x46ea('0x9'),_0x4d8564['if'](_0x46ea('0x17'),_0x46ea('0x14'))]},'on':{'click':_0x4d8564['to'](_0xb9e277=>_0xb9e277[_0x46ea('0x1c')]())}}),_0x21b552['on'](_0x46ea('0x1b'),_0x58d797=>{_0x3f057c[_0x46ea('0xe')]&&_0x46ea('0x15')==typeof _0x58d797[_0x46ea('0xc')][_0x46ea('0x8')]&&_0x58d797['source'][_0x46ea('0x8')](_0x3f057c);}),_0x11b685(_0x21b552,_0x25bbaa),_0x21b552[_0x46ea('0x3')](_0x3f057c,_0x46ea('0x4'),(_0x1de614,_0x163520,_0x38e4d3)=>{if(_0x38e4d3)for(const _0x555e66 of _0x21b552[_0x46ea('0x19')][_0x46ea('0x16')]){const _0x46a03f=_0x555e66[_0x46ea('0x6')][_0x46ea('0x10')],_0x5d591f=_0x49f27d['find'](_0x15377f=>_0x15377f['action']===_0x46a03f[_0x46ea('0x8')])['isVisible'];_0x555e66[_0x46ea('0xb')]=void 0x0===_0x5d591f||_0x5d591f(_0x3f057c);}}),_0x21b552;}
23
+ const _0x5c72=['locale','action','model','add','source','execute','isOpen','change:isActionsDropdownOpen','map','Name\x20this\x20revision','stopPropagation','find','_action','Compare\x20against\x20selected','Show\x20more\x20items','name','isReady','bind','isActionsDropdownOpen','children','function','Restore\x20this\x20revision','button','listView','buttonView','ck-on','bindTemplate','threeVerticalDots','isEnabled','extendTemplate','isVisible'];(function(_0x29452f,_0x5c72d4){const _0x5c8128=function(_0x5d0efb){while(--_0x5d0efb){_0x29452f['push'](_0x29452f['shift']());}};_0x5c8128(++_0x5c72d4);}(_0x5c72,0x111));const _0x5c81=function(_0x29452f,_0x5c72d4){_0x29452f=_0x29452f-0x0;let _0x5c8128=_0x5c72[_0x29452f];return _0x5c8128;};import{Collection as _0x3d1982}from'ckeditor5/src/utils.js';import{icons as _0x1d8b0d}from'ckeditor5/src/core.js';import{Model as _0x17cc95,addListToDropdown as _0x845c58,createDropdown as _0x3fd888}from'ckeditor5/src/ui.js';import{getTranslation as _0x3437dd}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x599825,_0x8f2dd3){const _0x1de2ed=_0x599825[_0x5c81('0x1')],_0x28c9d3=_0x599825[_0x5c81('0x6')],_0x21458e=_0x3fd888(_0x28c9d3);_0x21458e['panelPosition']='sw';const _0x2af126=function(_0x2b9128,_0x18ead5){const _0x395055=function(_0x405ca1,_0x2be3a0){const _0x1d4454=_0x405ca1[_0x5c81('0x6')],_0x43a436={'Compare\x20against\x20selected':_0x3437dd(_0x1d4454,_0x5c81('0x13')),'Name\x20this\x20revision':_0x3437dd(_0x1d4454,_0x5c81('0xf')),'Restore\x20this\x20revision':_0x3437dd(_0x1d4454,_0x5c81('0x1b'))};return _0x2be3a0[_0x5c81('0xe')](_0x2aa517=>{const _0x4730f8=_0x43a436[_0x2aa517[_0x5c81('0x15')]];return _0x4730f8&&_0x4730f8!==_0x2aa517['name']&&(_0x2aa517[_0x5c81('0x15')]=_0x4730f8),_0x2aa517;});}(_0x2b9128,_0x18ead5),_0x1bb9bd=new _0x3d1982();for(const _0x2d7d7d of _0x395055){const _0x49fe50={'type':_0x5c81('0x1c'),'model':new _0x17cc95({'label':_0x2d7d7d[_0x5c81('0x15')],'class':_0x2d7d7d['class'],'withText':!0x0,'_action':_0x2d7d7d[_0x5c81('0x7')]})};_0x49fe50[_0x5c81('0x8')]['bind']('isEnabled')['to'](_0x2b9128,'isActionsDropdownOpen',_0x16b6f2=>_0x5c81('0x1a')!=typeof _0x2d7d7d[_0x5c81('0x3')]||(!_0x16b6f2||_0x2d7d7d[_0x5c81('0x3')](_0x2b9128))),_0x1bb9bd[_0x5c81('0x9')](_0x49fe50);}return _0x1bb9bd;}(_0x599825,_0x8f2dd3);return _0x599825[_0x5c81('0x17')](_0x5c81('0x18'))['to'](_0x21458e,_0x5c81('0xc')),_0x21458e[_0x5c81('0x1e')]['set']({'label':_0x3437dd(_0x28c9d3,_0x5c81('0x14')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1d8b0d[_0x5c81('0x2')]}),_0x21458e[_0x5c81('0x4')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x1de2ed['if'](_0x5c81('0x18'),_0x5c81('0x0'))]},'on':{'click':_0x1de2ed['to'](_0x44a6ec=>_0x44a6ec[_0x5c81('0x10')]())}}),_0x21458e['on'](_0x5c81('0xb'),_0x371b09=>{_0x599825[_0x5c81('0x16')]&&'function'==typeof _0x371b09[_0x5c81('0xa')][_0x5c81('0x12')]&&_0x371b09['source'][_0x5c81('0x12')](_0x599825);}),_0x845c58(_0x21458e,_0x2af126),_0x21458e['listenTo'](_0x599825,_0x5c81('0xd'),(_0x41ca8a,_0x475bed,_0x9a5c78)=>{if(_0x9a5c78)for(const _0x4749a6 of _0x21458e[_0x5c81('0x1d')]['items']){const _0x63f1c1=_0x4749a6[_0x5c81('0x19')]['first'],_0x2de014=_0x8f2dd3[_0x5c81('0x11')](_0xe9f762=>_0xe9f762['action']===_0x63f1c1['_action'])[_0x5c81('0x5')];_0x4749a6[_0x5c81('0x5')]=void 0x0===_0x2de014||_0x2de014(_0x599825);}}),_0x21458e;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3dcb=['ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author_creator','span','set','name','setTemplate','Revision\x20author'];(function(_0x3ed30e,_0x3dcbb5){const _0x24a5d4=function(_0x2cabbd){while(--_0x2cabbd){_0x3ed30e['push'](_0x3ed30e['shift']());}};_0x24a5d4(++_0x3dcbb5);}(_0x3dcb,0x16c));const _0x24a5=function(_0x3ed30e,_0x3dcbb5){_0x3ed30e=_0x3ed30e-0x0;let _0x24a5d4=_0x3dcb[_0x3ed30e];return _0x24a5d4;};import{View as _0x1535f9,IconView as _0xe9c3a5}from'ckeditor5/src/ui';import{getTranslation as _0x52ce09}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0xda17d1 from'../../../theme/icons/user.svg';export default class ti extends _0x1535f9{constructor(_0x405930,_0x4f9162,_0x1dda31){super(_0x405930);const _0x28cfb4=new _0xe9c3a5();_0x28cfb4[_0x24a5('0x3')]({'content':_0xda17d1,'viewBox':'0\x200\x2011\x2010'});const _0x11560d=['ck','ck-revision-history-sidebar__revision-author'];_0x1dda31&&_0x11560d['push'](_0x24a5('0x1'));const _0x373b53=[{'tag':_0x24a5('0x2'),'attributes':{'class':['ck',_0x24a5('0x0')],'title':_0x52ce09(_0x405930,_0x1dda31?'Revision\x20creator':_0x24a5('0x6'))},'children':[_0x28cfb4,_0x4f9162[_0x24a5('0x4')]]}];this[_0x24a5('0x5')]({'tag':'li','attributes':{'class':_0x11560d},'children':_0x373b53});}}
23
+ const _0x21ca=['setTemplate','set','ck-revision-history-sidebar__revision-author__name','name','Revision\x20creator','0\x200\x2011\x2010','span','ck-revision-history-sidebar__revision-author_creator'];(function(_0x469bb4,_0x21ca8d){const _0x40fbff=function(_0x6beb7a){while(--_0x6beb7a){_0x469bb4['push'](_0x469bb4['shift']());}};_0x40fbff(++_0x21ca8d);}(_0x21ca,0x18c));const _0x40fb=function(_0x469bb4,_0x21ca8d){_0x469bb4=_0x469bb4-0x0;let _0x40fbff=_0x21ca[_0x469bb4];return _0x40fbff;};import{View as _0x46bbd5,IconView as _0x1bc968}from'ckeditor5/src/ui.js';import{getTranslation as _0xdd0551}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x2bace6 from'../../../theme/icons/user.svg';export default class ti extends _0x46bbd5{constructor(_0xa26e55,_0x58a611,_0xfa246c){super(_0xa26e55);const _0x45a2ff=new _0x1bc968();_0x45a2ff[_0x40fb('0x5')]({'content':_0x2bace6,'viewBox':_0x40fb('0x1')});const _0x209067=['ck','ck-revision-history-sidebar__revision-author'];_0xfa246c&&_0x209067['push'](_0x40fb('0x3'));const _0xf34e1d=[{'tag':_0x40fb('0x2'),'attributes':{'class':['ck',_0x40fb('0x6')],'title':_0xdd0551(_0xa26e55,_0xfa246c?_0x40fb('0x0'):'Revision\x20author')},'children':[_0x45a2ff,_0x58a611[_0x40fb('0x7')]]}];this[_0x40fb('0x4')]({'tag':'li','attributes':{'class':_0x209067},'children':_0xf34e1d});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x999d=['extendTemplate','Revision\x20name','set','ck-revision-history-sidebar__revision-name','span'];(function(_0x46cd86,_0x999d65){var _0x1bac40=function(_0x5274c4){while(--_0x5274c4){_0x46cd86['push'](_0x46cd86['shift']());}};_0x1bac40(++_0x999d65);}(_0x999d,0x18d));var _0x1bac=function(_0x46cd86,_0x999d65){_0x46cd86=_0x46cd86-0x0;var _0x1bac40=_0x999d[_0x46cd86];return _0x1bac40;};import{LabeledFieldView as _0x229bff}from'ckeditor5/src/ui';import{getTranslation as _0x40f98d}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x229bff{constructor(_0x43d698,_0x4c129e){super(_0x43d698,_0x4c129e),this[_0x1bac('0x0')]({'label':_0x40f98d(_0x43d698,_0x1bac('0x4'))}),this[_0x1bac('0x3')]({'tag':_0x1bac('0x2'),'attributes':{'class':[_0x1bac('0x1')]}});}}
23
+ var _0x45d1=['Revision\x20name','span','extendTemplate'];(function(_0x537055,_0x45d1d8){var _0x4f4663=function(_0x4576ae){while(--_0x4576ae){_0x537055['push'](_0x537055['shift']());}};_0x4f4663(++_0x45d1d8);}(_0x45d1,0x1c2));var _0x4f46=function(_0x537055,_0x45d1d8){_0x537055=_0x537055-0x0;var _0x4f4663=_0x45d1[_0x537055];return _0x4f4663;};import{LabeledFieldView as _0x1a6718}from'ckeditor5/src/ui.js';import{getTranslation as _0xef3296}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x1a6718{constructor(_0x25cee5,_0x1c967f){super(_0x25cee5,_0x1c967f),this['set']({'label':_0xef3296(_0x25cee5,_0x4f46('0x0'))}),this[_0x4f46('0x2')]({'tag':_0x4f46('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -1,13 +1,13 @@
1
1
  /**
2
2
  * @module revision-history/ui/revision/revisionview
3
3
  */
4
- import type { BaseEvent, Locale } from 'ckeditor5/src/utils';
5
- import { View, type DropdownView } from 'ckeditor5/src/ui';
6
- import RevisionNameView from './revisionnameview';
4
+ import type { BaseEvent, Locale } from 'ckeditor5/src/utils.js';
5
+ import { View, type DropdownView } from 'ckeditor5/src/ui.js';
6
+ import RevisionNameView from './revisionnameview.js';
7
7
  import '../../../theme/revision/revision.css';
8
- import type Revision from '../../revision';
9
- import type { RevisionAction } from '../revisionssidebar/revisionssidebar';
10
- declare const RevisionView_base: import("ckeditor5/src/utils").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
8
+ import type Revision from '../../revision.js';
9
+ import type { RevisionAction } from '../revisionssidebar/revisionssidebar.js';
10
+ declare const RevisionView_base: import("ckeditor5/src/utils.js").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
11
11
  /**
12
12
  * TODO
13
13
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xcfa8=['srcElement','name','highlight','_revision','isReady','isConfirm','createdAt','fire','setTemplate','creator','isHighlighted','map','220','select','isSelected','filter','isActionsDropdownOpen','span','.ck-thread__remove-confirm','ck-revision-history-sidebar__revision__date','fieldView','revisionNameView','ck-revision-history-sidebar__revision_highlighted','set','_createdAtFormatted','isEnabled','extendTemplate','deselect','render','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision_selected','revisionActionsView','from','ck-revision-history-sidebar__revision-authors','ck-disabled','authors','ck-reset','change','div','unshift','bindTemplate','ck-revision-history-sidebar__revision','value','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','bind'];(function(_0x33887c,_0xcfa8db){const _0x5af7ab=function(_0x2bf27f){while(--_0x2bf27f){_0x33887c['push'](_0x33887c['shift']());}};_0x5af7ab(++_0xcfa8db);}(_0xcfa8,0x71));const _0x5af7=function(_0x33887c,_0xcfa8db){_0x33887c=_0x33887c-0x0;let _0x5af7ab=_0xcfa8[_0x33887c];return _0x5af7ab;};import{View as _0x4a80db,createLabeledInputText as _0x3b5629}from'ckeditor5/src/ui';import{ConfirmMixin as _0x39ecb5}from'ckeditor5-collaboration/src/collaboration-core';import _0x8c1e13 from'./revisionnameview';import _0x3d7536 from'./revisionauthorview';import{dateToPrettyFormat as _0x82d90d}from'./utils';import{createActionsDropdownView as _0x5ab555}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x39ecb5(_0x4a80db){constructor(_0x1b1386,_0x24359,_0x3ac873){super(_0x1b1386);const _0x21e826=this[_0x5af7('0x11')],_0x185a6a=function(_0x3a70c0,_0x2b34e0){const _0x41f9c3=Array[_0x5af7('0x9')](_0x2b34e0[_0x5af7('0xc')])[_0x5af7('0x25')](_0xbaf2f5=>_0xbaf2f5!=_0x2b34e0[_0x5af7('0x1f')]);return _0x2b34e0['creator']&&_0x41f9c3[_0x5af7('0x10')](_0x2b34e0[_0x5af7('0x1f')]),_0x41f9c3[_0x5af7('0x21')](_0x3cb5f3=>new _0x3d7536(_0x3a70c0,_0x3cb5f3,_0x3cb5f3==_0x2b34e0['creator']));}(_0x1b1386,_0x24359);this['id']=_0x24359['id'],this[_0x5af7('0x19')]=_0x24359,this[_0x5af7('0x15')]('name',_0x5af7('0x1c'))['to'](_0x24359),this[_0x5af7('0x15')]('_createdAtFormatted')['to'](this,_0x5af7('0x1c'),_0x594f51=>_0x594f51?_0x82d90d(_0x1b1386['uiLanguage'],_0x594f51):void 0x0),this['set'](_0x5af7('0x24'),!0x1),this[_0x5af7('0x0')]('isHighlighted',!0x1),this['set'](_0x5af7('0x26'),!0x1),this[_0x5af7('0x0')](_0x5af7('0x1a'),!0x1),this[_0x5af7('0x0')]('isEnabled',!0x1),this['revisionNameView']=new _0x8c1e13(_0x1b1386,_0x3b5629),this[_0x5af7('0x2b')][_0x5af7('0x2a')][_0x5af7('0x3')]({'attributes':{'maxlength':_0x5af7('0x22')}}),this[_0x5af7('0x2b')]['fieldView'][_0x5af7('0x15')](_0x5af7('0x13'),'placeholder')['to'](this,_0x5af7('0x17'),_0x5af7('0x1')),this[_0x5af7('0x2b')]['bind'](_0x5af7('0x2'))['to'](this,_0x5af7('0x24'),this,'isEnabled',(_0x351cec,_0xcb4245)=>_0x351cec&&_0xcb4245),this[_0x5af7('0x8')]=_0x3ac873&&_0x3ac873['length']?_0x5ab555(this,_0x3ac873):'',this[_0x5af7('0x8')]&&this['revisionActionsView'][_0x5af7('0x15')](_0x5af7('0x2'))['to'](this),this[_0x5af7('0x1e')]({'tag':_0x5af7('0xf'),'attributes':{'class':['ck',_0x5af7('0xd'),_0x5af7('0x6'),_0x21e826['if'](_0x5af7('0x1b'),_0x5af7('0x14'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x5af7('0xd'),_0x5af7('0x12'),_0x21e826['if'](_0x5af7('0x2'),_0x5af7('0xb'),_0x2bbcf3=>!_0x2bbcf3),_0x21e826['if']('isSelected',_0x5af7('0x7')),_0x21e826['if'](_0x5af7('0x20'),_0x5af7('0x2c')),_0x21e826['if'](_0x5af7('0x26'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this['revisionNameView'],{'tag':_0x5af7('0x27'),'attributes':{'class':['ck',_0x5af7('0x29')]},'children':[{'text':_0x21e826['to'](_0x5af7('0x1'))}]},{'tag':_0x5af7('0xf'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5af7('0xa')]},'children':_0x185a6a}]},this[_0x5af7('0x8')]],'on':{'click':_0x21e826['to'](_0xdb8c6f=>{_0xdb8c6f[_0x5af7('0x16')]['closest'](_0x5af7('0x28'))||this[_0x5af7('0x1a')]&&this[_0x5af7('0x2')]&&this[_0x5af7('0x1d')](_0x5af7('0x23'),{'id':this['id']});})}}]});}[_0x5af7('0x5')](){super[_0x5af7('0x5')]();const _0x634406=this[_0x5af7('0x2b')][_0x5af7('0x2a')]['element'];this['listenTo'](_0x634406,_0x5af7('0xe'),()=>{this[_0x5af7('0x1d')]('setName',{'id':this['id'],'name':_0x634406[_0x5af7('0x13')]});});}[_0x5af7('0x23')](){this[_0x5af7('0x24')]=!0x0;}[_0x5af7('0x4')](){this['isSelected']=!0x1;}[_0x5af7('0x18')](){this[_0x5af7('0x20')]=!0x0;}['unhighlight'](){this[_0x5af7('0x20')]=!0x1;}}
23
+ const _0x4bc5=['isReady','isEnabled','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision_selected','placeholder','ck-revision-history-sidebar__revision__date','srcElement','from','isConfirm','closest','change','_createdAtFormatted','element','ck-revision-history-sidebar__revision-authors','authors','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','set','select','value','render','ck-disabled','isHighlighted','uiLanguage','listenTo','highlight','filter','fire','unhighlight','setName','length','unshift','ck-reset','span','div','revisionNameView','createdAt','220','deselect','ck-revision-history-sidebar__revision__controls-wrapper','revisionActionsView','creator','fieldView','name','.ck-thread__remove-confirm','bind','setTemplate','bindTemplate','isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open','map','isSelected'];(function(_0x70b6c,_0x4bc5cc){const _0xbd4453=function(_0x1d20ce){while(--_0x1d20ce){_0x70b6c['push'](_0x70b6c['shift']());}};_0xbd4453(++_0x4bc5cc);}(_0x4bc5,0x65));const _0xbd44=function(_0x70b6c,_0x4bc5cc){_0x70b6c=_0x70b6c-0x0;let _0xbd4453=_0x4bc5[_0x70b6c];return _0xbd4453;};import{View as _0x42b853,createLabeledInputText as _0x1695ac}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x11e694}from'ckeditor5-collaboration';import _0x4bc380 from'./revisionnameview.js';import _0x3aaca5 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x1cc527}from'./utils.js';import{createActionsDropdownView as _0x3d9159}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x11e694(_0x42b853){constructor(_0xa9aa0b,_0x4b045a,_0x5362fd){super(_0xa9aa0b);const _0x146859=this[_0xbd44('0x32')],_0x2b945a=function(_0x3658a1,_0x43e33c){const _0x104a76=Array[_0xbd44('0xa')](_0x43e33c[_0xbd44('0x11')])[_0xbd44('0x1d')](_0x2a4de8=>_0x2a4de8!=_0x43e33c[_0xbd44('0x2c')]);return _0x43e33c[_0xbd44('0x2c')]&&_0x104a76[_0xbd44('0x22')](_0x43e33c[_0xbd44('0x2c')]),_0x104a76[_0xbd44('0x1')](_0x40ebc8=>new _0x3aaca5(_0x3658a1,_0x40ebc8,_0x40ebc8==_0x43e33c['creator']));}(_0xa9aa0b,_0x4b045a);this['id']=_0x4b045a['id'],this['_revision']=_0x4b045a,this[_0xbd44('0x30')](_0xbd44('0x2e'),_0xbd44('0x27'))['to'](_0x4b045a),this[_0xbd44('0x30')](_0xbd44('0xe'))['to'](this,'createdAt',_0xad9b68=>_0xad9b68?_0x1cc527(_0xa9aa0b[_0xbd44('0x1a')],_0xad9b68):void 0x0),this[_0xbd44('0x14')](_0xbd44('0x2'),!0x1),this[_0xbd44('0x14')](_0xbd44('0x19'),!0x1),this[_0xbd44('0x14')](_0xbd44('0x33'),!0x1),this['set'](_0xbd44('0x3'),!0x1),this['set'](_0xbd44('0x4'),!0x1),this[_0xbd44('0x26')]=new _0x4bc380(_0xa9aa0b,_0x1695ac),this['revisionNameView'][_0xbd44('0x2d')]['extendTemplate']({'attributes':{'maxlength':_0xbd44('0x28')}}),this['revisionNameView'][_0xbd44('0x2d')][_0xbd44('0x30')](_0xbd44('0x16'),_0xbd44('0x7'))['to'](this,_0xbd44('0x2e'),_0xbd44('0xe')),this[_0xbd44('0x26')][_0xbd44('0x30')](_0xbd44('0x4'))['to'](this,_0xbd44('0x2'),this,_0xbd44('0x4'),(_0x8ff722,_0x1cf0cf)=>_0x8ff722&&_0x1cf0cf),this['revisionActionsView']=_0x5362fd&&_0x5362fd[_0xbd44('0x21')]?_0x3d9159(this,_0x5362fd):'',this[_0xbd44('0x2b')]&&this[_0xbd44('0x2b')][_0xbd44('0x30')](_0xbd44('0x4'))['to'](this),this[_0xbd44('0x31')]({'tag':_0xbd44('0x25'),'attributes':{'class':['ck',_0xbd44('0x23'),_0xbd44('0x12'),_0x146859['if'](_0xbd44('0xb'),_0xbd44('0x13'))]},'children':[{'tag':_0xbd44('0x25'),'attributes':{'class':['ck',_0xbd44('0x23'),'ck-revision-history-sidebar__revision',_0x146859['if']('isEnabled',_0xbd44('0x18'),_0x5aced0=>!_0x5aced0),_0x146859['if'](_0xbd44('0x2'),_0xbd44('0x6')),_0x146859['if']('isHighlighted',_0xbd44('0x5')),_0x146859['if'](_0xbd44('0x33'),_0xbd44('0x0'))]},'children':[this[_0xbd44('0x26')],{'tag':_0xbd44('0x24'),'attributes':{'class':['ck',_0xbd44('0x8')]},'children':[{'text':_0x146859['to']('_createdAtFormatted')}]},{'tag':'div','attributes':{'class':['ck',_0xbd44('0x2a')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0xbd44('0x10')]},'children':_0x2b945a}]},this[_0xbd44('0x2b')]],'on':{'click':_0x146859['to'](_0x3bf273=>{_0x3bf273[_0xbd44('0x9')][_0xbd44('0xc')](_0xbd44('0x2f'))||this['isReady']&&this[_0xbd44('0x4')]&&this[_0xbd44('0x1e')](_0xbd44('0x15'),{'id':this['id']});})}}]});}['render'](){super[_0xbd44('0x17')]();const _0x3b10b6=this[_0xbd44('0x26')][_0xbd44('0x2d')][_0xbd44('0xf')];this[_0xbd44('0x1b')](_0x3b10b6,_0xbd44('0xd'),()=>{this[_0xbd44('0x1e')](_0xbd44('0x20'),{'id':this['id'],'name':_0x3b10b6['value']});});}[_0xbd44('0x15')](){this[_0xbd44('0x2')]=!0x0;}[_0xbd44('0x29')](){this[_0xbd44('0x2')]=!0x1;}[_0xbd44('0x1c')](){this[_0xbd44('0x19')]=!0x0;}[_0xbd44('0x1f')](){this[_0xbd44('0x19')]=!0x1;}}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module revision-history/ui/revision/subrevisioncollapserview
3
3
  */
4
- import { View } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
4
+ import { View } from 'ckeditor5/src/ui.js';
5
+ import type { Locale } from 'ckeditor5/src/utils.js';
6
6
  import '../../../theme/revision/subrevisioncollapser.css';
7
7
  export default class SubrevisionCollapserView extends View {
8
8
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xc2f7=['toggle','true','_isCollapsed','setTemplate','button','ck-hidden','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','isVisible','false','bindTemplate'];(function(_0x2e84bb,_0xc2f79c){const _0xbc1683=function(_0x532e21){while(--_0x532e21){_0x2e84bb['push'](_0x2e84bb['shift']());}};_0xbc1683(++_0xc2f79c);}(_0xc2f7,0x70));const _0xbc16=function(_0x2e84bb,_0xc2f79c){_0x2e84bb=_0x2e84bb-0x0;let _0xbc1683=_0xc2f7[_0x2e84bb];return _0xbc1683;};import{View as _0x1e9cf9}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x1e9cf9{constructor(_0x41f520){super(_0x41f520);const _0x5a9229=this[_0xbc16('0x8')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0xbc16('0x1')]({'tag':'span','attributes':{'class':['ck',_0xbc16('0x4'),_0x5a9229['if'](_0xbc16('0x6'),_0xbc16('0x3'),_0x451848=>!_0x451848),_0x5a9229['if'](_0xbc16('0x0'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0xbc16('0x2'),'aria-pressed':_0x5a9229['to'](_0xbc16('0x0'),_0x382c25=>_0x382c25?_0xbc16('0x7'):_0xbc16('0xa'))},'children':[{'tag':'span','attributes':{'class':['ck',_0xbc16('0x5')]}}],'on':{'click':_0x5a9229['to']('click')}});}[_0xbc16('0x9')](){this['_isCollapsed']=!this[_0xbc16('0x0')];}}
23
+ const _0x7d0d=['_isCollapsed','bindTemplate','toggle','ck-revision-history-sidebar__subrevision-collapser','click','set','true','ck-revision-history-sidebar__subrevision-collapser_collapsed','false','isVisible'];(function(_0x536612,_0x7d0d5){const _0x8caa50=function(_0x293c26){while(--_0x293c26){_0x536612['push'](_0x536612['shift']());}};_0x8caa50(++_0x7d0d5);}(_0x7d0d,0x1c2));const _0x8caa=function(_0x536612,_0x7d0d5){_0x536612=_0x536612-0x0;let _0x8caa50=_0x7d0d[_0x536612];return _0x8caa50;};import{View as _0x544013}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x544013{constructor(_0x12649f){super(_0x12649f);const _0x5e645b=this[_0x8caa('0x1')];this[_0x8caa('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0x8caa('0x3'),_0x5e645b['if'](_0x8caa('0x9'),'ck-hidden',_0xfb0838=>!_0xfb0838),_0x5e645b['if'](_0x8caa('0x0'),_0x8caa('0x7'))],'role':'button','aria-pressed':_0x5e645b['to'](_0x8caa('0x0'),_0x301a30=>_0x301a30?_0x8caa('0x8'):_0x8caa('0x6'))},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x5e645b['to'](_0x8caa('0x4'))}});}[_0x8caa('0x2')](){this[_0x8caa('0x0')]=!this[_0x8caa('0x0')];}}
@@ -1,10 +1,10 @@
1
1
  /**
2
2
  * @module revision-history/ui/revision/subrevisionview
3
3
  */
4
- import { View } from 'ckeditor5/src/ui';
5
- import type { Locale } from 'ckeditor5/src/utils';
4
+ import { View } from 'ckeditor5/src/ui.js';
5
+ import type { Locale } from 'ckeditor5/src/utils.js';
6
6
  import '../../../theme/revision/subrevision.css';
7
- import type Revision from '../../revision';
7
+ import type Revision from '../../revision.js';
8
8
  /**
9
9
  * TODO
10
10
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5863=['uiLanguage','ck-revision-history-sidebar__subrevision','isSelected','div','ck-revision-history-sidebar__revision_selected','bindTemplate','createdAt','deselect','bind','set','_parentRevisionId','ck-revision-history-sidebar__revision','creator','span','select','setTemplate','_createdAtFormatted'];(function(_0x1edfa0,_0x58631c){const _0x538c7c=function(_0x131ad8){while(--_0x131ad8){_0x1edfa0['push'](_0x1edfa0['shift']());}};_0x538c7c(++_0x58631c);}(_0x5863,0xe5));const _0x538c=function(_0x1edfa0,_0x58631c){_0x1edfa0=_0x1edfa0-0x0;let _0x538c7c=_0x5863[_0x1edfa0];return _0x538c7c;};import{View as _0xc75e00}from'ckeditor5/src/ui';import _0x5e8683 from'./revisionauthorview';import{dateToPrettyFormat as _0x527474}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xc75e00{constructor(_0x305ee7,_0x144010,_0x1766b9){super(_0x305ee7);const _0x5a86a0=this[_0x538c('0xe')];this['id']=_0x144010['id'],this[_0x538c('0x0')](_0x538c('0xf'))['to'](_0x144010),this[_0x538c('0x1')](_0x538c('0xb'),!0x1),this[_0x538c('0x0')](_0x538c('0x8'))['to'](this,'createdAt',_0x452c31=>_0x452c31?_0x527474(_0x305ee7[_0x538c('0x9')],_0x452c31):void 0x0),this[_0x538c('0x2')]=_0x1766b9,this[_0x538c('0x7')]({'tag':_0x538c('0xc'),'attributes':{'class':['ck','ck-reset',_0x538c('0x3'),_0x538c('0xa'),_0x5a86a0['if']('isSelected',_0x538c('0xd'))]},'children':[{'tag':_0x538c('0x5'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5a86a0['to'](_0x538c('0x8'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x5e8683(_0x305ee7,_0x144010[_0x538c('0x4')],!0x0)]}],'on':{'click':_0x5a86a0['to'](this['select'][_0x538c('0x0')](this))}});}['select'](){this[_0x538c('0xb')]=!0x0,this['fire'](_0x538c('0x6'),{'parentId':this[_0x538c('0x2')]});}[_0x538c('0x10')](){this['isSelected']=!0x1;}}
23
+ const _0x3354=['fire','isSelected','bindTemplate','deselect','createdAt','ck-revision-history-sidebar__subrevision','div','_parentRevisionId','bind','_createdAtFormatted','creator','uiLanguage','span','ck-revision-history-sidebar__revision__date','select','ck-revision-history-sidebar__revision'];(function(_0xc09f91,_0x33542f){const _0x9423b1=function(_0x52d942){while(--_0x52d942){_0xc09f91['push'](_0xc09f91['shift']());}};_0x9423b1(++_0x33542f);}(_0x3354,0x96));const _0x9423=function(_0xc09f91,_0x33542f){_0xc09f91=_0xc09f91-0x0;let _0x9423b1=_0x3354[_0xc09f91];return _0x9423b1;};import{View as _0x29e9bc}from'ckeditor5/src/ui.js';import _0x430097 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x15ae32}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x29e9bc{constructor(_0xb7e4e0,_0x120517,_0x517cff){super(_0xb7e4e0);const _0x118563=this[_0x9423('0xc')];this['id']=_0x120517['id'],this[_0x9423('0x2')](_0x9423('0xe'))['to'](_0x120517),this['set'](_0x9423('0xb'),!0x1),this[_0x9423('0x2')](_0x9423('0x3'))['to'](this,'createdAt',_0x5b9f8c=>_0x5b9f8c?_0x15ae32(_0xb7e4e0[_0x9423('0x5')],_0x5b9f8c):void 0x0),this[_0x9423('0x1')]=_0x517cff,this['setTemplate']({'tag':_0x9423('0x0'),'attributes':{'class':['ck','ck-reset',_0x9423('0x9'),_0x9423('0xf'),_0x118563['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x9423('0x6'),'attributes':{'class':['ck',_0x9423('0x7')]},'children':[{'text':_0x118563['to'](_0x9423('0x3'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x430097(_0xb7e4e0,_0x120517[_0x9423('0x4')],!0x0)]}],'on':{'click':_0x118563['to'](this[_0x9423('0x8')]['bind'](this))}});}['select'](){this['isSelected']=!0x0,this[_0x9423('0xa')](_0x9423('0x8'),{'parentId':this[_0x9423('0x1')]});}[_0x9423('0xd')](){this['isSelected']=!0x1;}}