@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231214.0 → 0.0.0-nightly-20231216.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +7 -6
  3. package/src/augmentation.d.ts +1 -1
  4. package/src/changeitem.d.ts +3 -3
  5. package/src/changeitem.js +1 -1
  6. package/src/editor/revisionviewereditor.d.ts +3 -3
  7. package/src/editor/revisionviewereditor.js +1 -1
  8. package/src/editor/revisionviewereditorui.d.ts +3 -3
  9. package/src/editor/revisionviewereditorui.js +1 -1
  10. package/src/editor/revisionviewereditoruiview.d.ts +3 -3
  11. package/src/editor/revisionviewereditoruiview.js +1 -1
  12. package/src/index.d.ts +11 -11
  13. package/src/index.js +1 -1
  14. package/src/revision.d.ts +3 -3
  15. package/src/revision.js +1 -1
  16. package/src/revisiondiff.d.ts +3 -3
  17. package/src/revisiondiff.js +1 -1
  18. package/src/revisionhistory.d.ts +6 -6
  19. package/src/revisionhistory.js +1 -1
  20. package/src/revisionhistoryadapter.d.ts +1 -1
  21. package/src/revisionsrepository.d.ts +3 -3
  22. package/src/revisionsrepository.js +1 -1
  23. package/src/revisiontracker.d.ts +5 -5
  24. package/src/revisiontracker.js +1 -1
  25. package/src/revisionviewer.js +1 -1
  26. package/src/ui/revision/createrevisionactionsdropdown.d.ts +1 -1
  27. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  28. package/src/ui/revision/revisionauthorview.js +1 -1
  29. package/src/ui/revision/revisionnameview.js +1 -1
  30. package/src/ui/revision/revisionview.d.ts +6 -6
  31. package/src/ui/revision/revisionview.js +1 -1
  32. package/src/ui/revision/subrevisioncollapserview.d.ts +2 -2
  33. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  34. package/src/ui/revision/subrevisionview.d.ts +3 -3
  35. package/src/ui/revision/subrevisionview.js +1 -1
  36. package/src/ui/revision/utils.js +1 -1
  37. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.d.ts +2 -2
  38. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  39. package/src/ui/revisionhistory/revisionhistoryui.d.ts +2 -2
  40. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  41. package/src/ui/revisionssidebar/revisionssidebar.d.ts +3 -3
  42. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  43. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  44. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.d.ts +5 -5
  45. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  46. package/src/ui/revisionssidebar/revisionssidebarview.d.ts +6 -6
  47. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  48. package/src/ui/revisionssidebar/utils.js +1 -1
  49. package/src/ui/revisionviewer/changedetailsview.d.ts +3 -3
  50. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  51. package/src/ui/revisionviewer/changesnavigationview.d.ts +2 -2
  52. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  53. package/src/ui/revisionviewer/revisionviewerloadingoverlay.d.ts +1 -1
  54. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  55. package/src/ui/revisionviewer/revisionviewerui.d.ts +3 -3
  56. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  57. package/src/utils/common-translations.d.ts +1 -1
  58. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x27ab=['target','index','isInline','revision-viewer','ck-revision-history-root-','offsetSize','nextSibling','addMarker:revision-suggestion:insertion','createAttributeElement','concat','markersEnd','config','_data','nodeAfter','isAddSuggestion','_cleanUp','getAttributes','_revisions','adapter','authors','startIndex','toData','ck-suggestion-marker--active','execute','bottom','error','_cleanMarkers','_makeTape','oldRevisionId','insert','addClass','-new','for','data-change-id','setAttribute','vid','deletion','activeChange','requires','diff','currentChangeNumber','updatePosition','keys','level','viewItem','left','observeMarkers','useFillerType','includes','processor','ck-revision-history-root-add','commands','unshift','showNextChange','createPositionFromPath','first','_findChangeIdFromDomTarget','elementToAttribute','isBlock','pop','data','hasClass','findIndex','clear','forEach','downcastDispatcher','revision-suggestion:','vid_end','previousPosition','rootName','ck-revision-history-root--active','_getChangeFromId','RevisionViewer','repository','toViewElement','_getDiff','_refreshStartEndIndex','_changeIdToChange','ck-suggestion-preview-marker-','_getRevisionsRange','bindElementToMarker','length','checkAttribute','change:isEnabled','_activeViewTarget','markerName','_markSuggestions','_removeUnsupportedChanges','attributesAfter','from','isContent','getRevision','distance','then','getIndex','attachChange','sort','slice','forceDisabled','upcast','remove','pairId','elementEnd','text','createUIElement','item','unbindElementFromMarkerName','markerToHighlight','ck-editor__editable__overlay','editor','data-revision-','indexOf','createRevision','insertions','change:activeView','deletions','children','range','mapper','revision:','backward','wrap','_balloon','toViewPosition','change:numberOfChanges','numberOfChanges','_initInteractions','_getViewObj','removeClass','object','nextPosition','_processTape','addMarker:revision-suggestion:deletion','enqueueChange','addRevisionData','elementStart','abs','ck-suggestion-marker-split','compare','isIncorrect','softBreak','_getViewForChange','reconvertMarker','test','change','markerRange','getItems','ck-suggestion-preview-marker','getDomRoot','isAtStart','all','addRoot','bind','_makeModelFromTape','diffData','refresh','revision','_step','span','consumable','isRemoved','delete','getRootNames','uiElement','isObject','document','removeMarker:revision','editing','loadRevisionData','toModel','filter','_threeWayMerge','high','addMarker:revision','revisionHistoryLabel','highest','detachRoot','userId','element','low','revision-start','createRange','isAfter','plugins','listenTo','addRevision','markerNameToElements','right','schema','name','hasAttribute','showPreviousChange','getChild','collaboration.channelId','_removeMissingPairs','maxOffset','dataDowncast','restoreRevision','_markMismatchedRemovedTags','parse','revision-suggestion','string','attributes','modelRange','top','model','change:isReady','getRoot','isLimit','markers','get','insertion','_removeRevisionMarkers','isSuggestion','isAttached','conversion','isEqual','_update','pluginName','parent','removeMarker:revision-suggestion','isOnRoot','map','newRevisionId','locale','vid_start','start','getWalker','next','createRangeIn','flat','_setChanges','_setDistance','writer','getClientRects','split','view','markerToData','side','stop','isCollapsed','destroy','element:pre','resolve','mouseover','revision-comment:','revision-end','_joinTapes','isRemoveSuggestion','end','consume','_sortAndFilterDiffChanges','isReady','getAttribute','changeId','markersStart','forward','isAtEnd','shift','_setConversion','mapViewToDom','ck-suggestion-marker-','_markInsertions','revisionHistoryAttachChange','attributesBefore','endIndex','isAdded','change:activeChange','has','activeView','getCustomProperty','attribute:vid','WidgetToolbarRepository','enableReadOnlyMode','type','add','domEvent','push','createPositionBefore','_markMarkers','startsWith','merge','return','isEnabled','set','changes','_fixObsoleteTags','_makeModelFromViewString','getRevisionData','_changeView','affectsData','dataToMarker','splice'];(function(_0x305b3b,_0x27ab27){const _0x20221b=function(_0x18f338){while(--_0x18f338){_0x305b3b['push'](_0x305b3b['shift']());}};_0x20221b(++_0x27ab27);}(_0x27ab,0x12f));const _0x2022=function(_0x305b3b,_0x27ab27){_0x305b3b=_0x305b3b-0x0;let _0x20221b=_0x27ab[_0x305b3b];return _0x20221b;};import{Plugin as _0x2cc1f8,Command as _0x356bbb}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5ce67b}from'ckeditor5/src/utils';import{ContextualBalloon as _0x390cce}from'ckeditor5/src/ui';import{DocumentFragment as _0x197c08,Element as _0x479e62,Text as _0x5fa407,ViewDocumentFragment as _0x4b1a00,ViewText as _0x4a8b84,ViewElement as _0x3d4192,ViewContainerElement as _0x5d522a,ViewAttributeElement as _0x12e6ca,ViewEmptyElement as _0x29a267,ViewRawElement as _0xc3ef03,ViewUIElement as _0x1855af}from'ckeditor5/src/engine';import{Users as _0x101cf8,getMarkerDomElement as _0x842571}from'ckeditor5-collaboration/src/collaboration-core';import _0x1beb22 from'./ui/revisionviewer/changedetailsview';import _0x25ac15 from'./revisionsrepository';import _0x130e94 from'./changeitem';import{default as _0x220120}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x247f68}from'lodash-es';const tt={'c':_0x5d522a,'a':_0x12e6ca,'e':_0x29a267,'r':_0xc3ef03,'u':_0x1855af};export default class d extends _0x2cc1f8{static get[_0x2022('0xd0')](){return _0x2022('0x3e');}static get[_0x2022('0x1c')](){return[_0x101cf8,_0x390cce,_0x25ac15];}constructor(_0x171c6b){super(_0x171c6b),this['repository']=this[_0x2022('0x63')][_0x2022('0xad')]['get']('RevisionsRepository'),this['set'](_0x2022('0x1b'),null),this[_0x2022('0x112')](_0x2022('0x103'),null),this[_0x2022('0x4a')]=null,this['set'](_0x2022('0x1d'),null),this['set'](_0x2022('0xf2'),!0x1),this[_0x2022('0x112')](_0x2022('0x111'),!0x0),this['on'](_0x2022('0x49'),(_0x55b608,_0x327b4f,_0x2c1b39)=>{this['activeChange']=null,this[_0x2022('0x103')]=null,this['editor'][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x86')](_0x12a718=>{for(const _0x1d361a of this['editor']['editing']['view'][_0x2022('0x9b')]['roots'])_0x2c1b39?_0x12a718[_0x2022('0x76')](_0x2022('0x62'),_0x1d361a):_0x12a718[_0x2022('0x14')](_0x2022('0x62'),_0x1d361a);});}),this[_0x2022('0x8e')]('isNavigationMode')['to'](this,'activeChange',_0x4a6652=>null!==_0x4a6652),this[_0x2022('0x8e')](_0x2022('0x1e'))['to'](this,_0x2022('0xf2'),this,_0x2022('0x1d'),this,_0x2022('0x1b'),(_0x293a3e,_0x54c80f,_0x44a4d7)=>_0x293a3e&&_0x44a4d7?_0x54c80f[_0x2022('0x113')][_0x2022('0x54')](_0x44a4d7):0x0),this[_0x2022('0x8e')](_0x2022('0x73'))['to'](this,_0x2022('0xf2'),this,'diff',(_0x3e0046,_0x52a5f8)=>_0x3e0046?_0x52a5f8[_0x2022('0x113')][_0x2022('0x47')]:0x0),this['_changeView']=null,this[_0x2022('0x43')]=new Map(),this[_0x2022('0x8')]=null,this[_0x2022('0x70')]=this[_0x2022('0x63')][_0x2022('0xad')][_0x2022('0xc8')](_0x390cce);}['init'](){const _0x1db915=this[_0x2022('0x63')],_0x167ece=new ShowChangeCommand(_0x1db915,{'direction':_0x2022('0x6e')}),_0x2f1645=new ShowChangeCommand(_0x1db915,{'direction':_0x2022('0xf6')});(_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0xb5'),_0x167ece),_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0x2b'),_0x2f1645),_0x1db915[_0x2022('0x29')][_0x2022('0x109')](_0x2022('0xbb'),new RestoreRevisionCommand(_0x1db915)),this['on'](_0x2022('0x72'),()=>{_0x167ece[_0x2022('0x91')](),_0x2f1645[_0x2022('0x91')]();}),this[_0x2022('0xf9')](),this[_0x2022('0x74')](),_0x1db915[_0x2022('0x107')](_0x2022('0x11e')),_0x1db915['plugins'][_0x2022('0x102')](_0x2022('0x106')))&&_0x1db915[_0x2022('0xad')][_0x2022('0xc8')](_0x2022('0x106'))[_0x2022('0x58')](_0x2022('0x11e'));}async[_0x2022('0x116')](_0x84db4d){await this[_0x2022('0x9e')](_0x84db4d);const _0x572da3={};for(const _0x1bf031 in _0x84db4d[_0x2022('0x90')]){if(_0x84db4d[_0x2022('0x90')][_0x1bf031][_0x2022('0x55')]&&!_0x84db4d['diffData'][_0x1bf031]['attachChange'][_0x2022('0xcc')])continue;const _0x59b301=this[_0x2022('0xca')](JSON[_0x2022('0xbd')](_0x84db4d[_0x2022('0x90')][_0x1bf031][_0x2022('0x67')])),_0x38ae31=this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0xe2')]['document'],_0x3ca9de=new _0x4b1a00(_0x38ae31,_0x59b301[_0x2022('0xd4')](_0x3d4958=>this[_0x2022('0x75')](_0x3d4958)));this[_0x2022('0x63')]['data'][_0x2022('0x27')][_0x2022('0x25')]('marked'),_0x572da3[_0x1bf031]=this[_0x2022('0x63')][_0x2022('0x32')]['processor'][_0x2022('0xb')](_0x3ca9de),this[_0x2022('0x63')][_0x2022('0x32')]['processor'][_0x2022('0x25')]('default');}return _0x572da3;}async['getRevisionRootsAttributes'](_0x11780a){await this[_0x2022('0x9e')](_0x11780a);const _0x3918d7={};for(const _0x5adfeb in _0x11780a[_0x2022('0x90')])_0x11780a[_0x2022('0x90')][_0x5adfeb][_0x2022('0x55')]&&!_0x11780a[_0x2022('0x90')][_0x5adfeb][_0x2022('0x55')][_0x2022('0xcc')]||(_0x3918d7[_0x5adfeb]=_0x11780a['diffData'][_0x5adfeb]['attributesAfter']||{});return _0x3918d7;}['_removeRevisionMarkers'](_0x3fc7e1){return(_0x3fc7e1=_0x3fc7e1[_0x2022('0xa0')](_0x5ac409=>!_0x5ac409[_0x2022('0xb3')]||_0x2022('0xaa')!==_0x5ac409['name']&&_0x2022('0xec')!==_0x5ac409[_0x2022('0xb3')]))[_0x2022('0x36')](_0x3add74=>{_0x2022('0xbf')!=typeof _0x3add74&&(_0x3add74[_0x2022('0x6a')]=this[_0x2022('0xca')](_0x3add74['children']),_0x3add74[_0x2022('0xc0')]=_0x3add74[_0x2022('0xc0')]['filter'](_0xe5c93e=>!_0xe5c93e[0x0][_0x2022('0x10e')](_0x2022('0x64'))));}),_0x3fc7e1;}async[_0x2022('0x80')](_0x1e251f,_0x4c4ada,_0x20b634=!0x1){if(!this['isEnabled'])return;const _0x3c1653=this[_0x2022('0x1d')],_0x71a32b=this['repository'],_0x398793='string'==typeof _0x1e251f?_0x71a32b[_0x2022('0x51')](_0x1e251f):_0x1e251f,_0x15efb8=_0x2022('0xbf')==typeof _0x4c4ada?_0x71a32b[_0x2022('0x51')](_0x4c4ada):_0x4c4ada,_0x1d8f9f=_0x398793['id'],_0x35742a=_0x15efb8?_0x15efb8['id']:null;if(!_0x20b634&&this[_0x2022('0x1d')]&&this['diff'][_0x2022('0xd5')]===_0x1d8f9f&&this[_0x2022('0x1d')][_0x2022('0x12')]===_0x35742a)return Promise[_0x2022('0xe9')]();this['isReady']=!0x1,this[_0x2022('0x103')]=null,this[_0x2022('0x1b')]=null,this['diff']=new _0x220120(_0x1d8f9f,_0x35742a);const _0xc21473=this[_0x2022('0x45')](_0x398793,_0x15efb8,!0x0)[_0x2022('0xd4')](_0x3a8b53=>this[_0x2022('0x9e')](_0x3a8b53));return _0xc21473[_0x2022('0x10b')](new Promise(_0x3ebf9f=>{setTimeout(_0x3ebf9f,0x14);})),Promise[_0x2022('0x8c')](_0xc21473)[_0x2022('0x53')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x47c5e3=this[_0x2022('0x41')](_0x1d8f9f,_0x35742a);for(const _0x232a5b of _0x47c5e3[_0x2022('0x113')])this[_0x2022('0x43')][_0x2022('0x112')](_0x232a5b['id'],_0x232a5b);this['editor'][_0x2022('0xc3')][_0x2022('0x7b')]({'isUndoable':!0x1},_0x35d9c8=>{for(const _0x445a98 of this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]())_0x35d9c8[_0x2022('0xa6')](_0x445a98);for(const _0x46af89 of Object[_0x2022('0x20')](_0x47c5e3['model'])){const _0x194804=_0x35d9c8[_0x2022('0x8d')](_0x46af89);for(const _0x1e6e21 of Object['keys'](_0x47c5e3['attributes'][_0x46af89]))_0x35d9c8[_0x2022('0x18')](_0x1e6e21,_0x47c5e3[_0x2022('0xc0')][_0x46af89][_0x1e6e21],_0x194804);_0x35d9c8[_0x2022('0x13')](_0x47c5e3['model'][_0x46af89],_0x194804,0x0);}}),this[_0x2022('0x1d')][_0x2022('0xdd')](this[_0x2022('0xf1')](_0x47c5e3[_0x2022('0x113')])),this[_0x2022('0xf2')]=!0x0;})['catch'](_0x2268e6=>{console[_0x2022('0xf')](_0x2268e6),this['_cleanUp'](),_0x3c1653&&(this[_0x2022('0x1d')]=_0x3c1653),this['isReady']=!0x0;});}[_0x2022('0x7c')](_0x5774af,_0x1d2810){const _0x593db8=this[_0x2022('0x3f')][_0x2022('0x66')](_0x5774af);return _0x593db8['on'](_0x2022('0xcf'),(_0x31c0a8,_0x150419,_0x565456)=>_0x1d2810(_0x150419,_0x565456,_0x593db8)),this[_0x2022('0x3f')][_0x2022('0xaf')](_0x593db8),_0x593db8;}['loadRevisionData'](_0x163164){if(!_0x163164||_0x163164[_0x2022('0x90')])return Promise[_0x2022('0xe9')]();{const _0xfb1f6d=this[_0x2022('0x63')]['config'][_0x2022('0xc8')](_0x2022('0xb7'));return this[_0x2022('0x8')]['getRevision']({'channelId':_0xfb1f6d,'revisionId':_0x163164['id']})[_0x2022('0x53')](_0x5881be=>{_0x163164[_0x2022('0xcf')]({'diffData':_0x5881be[_0x2022('0x90')]},!0x0);});}}[_0x2022('0x5')](){this[_0x2022('0x1b')]=null,this['_cleanMarkers'](),this[_0x2022('0x117')]&&this['_changeView'][_0x2022('0xe7')](),this['_changeView']=null,this[_0x2022('0x43')][_0x2022('0x35')](),this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x7b')]({'isUndoable':!0x1},_0x307f85=>{for(const _0x12838b of this['editor'][_0x2022('0xc3')]['document'][_0x2022('0x98')]())_0x307f85[_0x2022('0xa6')](_0x12838b);});}[_0x2022('0xf1')](_0x29069b){const _0x39b404=[],_0x41fb88=new Map();for(const _0xcb5d07 of this['editor'][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]()){const _0x22f199=this['editor'][_0x2022('0x9d')][_0x2022('0xe2')]['getDomRoot'](_0xcb5d07);if(!_0x22f199)continue;const _0x24661c=_0x22f199[_0x2022('0xe0')]()[_0x2022('0x5f')](0x0);_0x24661c&&(_0x39b404['push'](_0xcb5d07),_0x41fb88[_0x2022('0x112')](_0xcb5d07,_0x24661c));}return _0x39b404[_0x2022('0x56')]((_0x9d0725,_0x394bf7)=>{const _0x267e8b=_0x41fb88[_0x2022('0xc8')](_0x9d0725),_0x32c2bd=_0x41fb88['get'](_0x394bf7);return _0x267e8b['y']-_0x32c2bd['y']||_0x267e8b['x']-_0x32c2bd['x'];}),(_0x29069b=_0x29069b['filter'](_0x1cdec4=>_0x39b404['includes'](_0x1cdec4['rootName'])))['sort']((_0x2cd9e2,_0x82f8fa)=>_0x39b404[_0x2022('0x65')](_0x2cd9e2['rootName'])-_0x39b404['indexOf'](_0x82f8fa[_0x2022('0x3b')])),_0x29069b;}[_0x2022('0x11')](_0x46e2ba){const _0x2a7a76=Array[_0x2022('0x4f')](_0x46e2ba[_0x2022('0xc7')])[_0x2022('0xa0')](([_0xc98a90,_0x2af25e])=>_0xc98a90[_0x2022('0x10e')]('revision:')&&!_0x2af25e['isCollapsed']),_0x99b9e=Array[_0x2022('0x4f')](this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xdb')](_0x46e2ba)[_0x2022('0xd9')]({'singleCharacters':!0x0}));if(0x0!=_0x2a7a76[_0x2022('0x47')])for(const _0x1a4edc of _0x99b9e){const [_0x488a1c,_0x2db063]=_0x2a7a76[0x0],[,_0x539ae9,_0x2ee097]=_0x488a1c[_0x2022('0xe1')](':');if(_0x2db063['end'][_0x2022('0xce')](_0x1a4edc[_0x2022('0x78')])&&_0x2a7a76[_0x2022('0xf8')](),(_0x1a4edc['previousPosition'][_0x2022('0xce')](_0x2db063[_0x2022('0xd8')])||_0x1a4edc[_0x2022('0x3a')][_0x2022('0xac')](_0x2db063['start']))&&('insertion'==_0x539ae9?_0x1a4edc[_0x2022('0x100')]={'userId':_0x2ee097}:_0x2022('0x1a')==_0x539ae9&&(_0x1a4edc[_0x2022('0x96')]={'userId':_0x2ee097})),0x0==_0x2a7a76[_0x2022('0x47')])break;}return _0x99b9e;}[_0x2022('0x42')](_0x384ddc){const _0x46786c=new Map();for(let _0x3c0143=0x0;_0x3c0143<_0x384ddc[_0x2022('0x47')];_0x3c0143++)'text'===_0x384ddc[_0x3c0143][_0x2022('0x108')]?(_0x384ddc[_0x3c0143][_0x2022('0x5f')]['startIndex']=_0x3c0143,_0x384ddc[_0x3c0143]['item'][_0x2022('0xff')]=_0x3c0143):('elementStart'===_0x384ddc[_0x3c0143][_0x2022('0x108')]?_0x384ddc[_0x3c0143][_0x2022('0x5f')][_0x2022('0xa')]=_0x3c0143:_0x2022('0x5c')===_0x384ddc[_0x3c0143]['type']&&(_0x384ddc[_0x3c0143]['item'][_0x2022('0xff')]=_0x3c0143),_0x46786c[_0x2022('0x112')](_0x384ddc[_0x3c0143]['id'],_0x3c0143));for(const _0x3db377 of _0x46786c['values']())_0x2022('0x7d')===_0x384ddc[_0x3db377][_0x2022('0x108')]?_0x384ddc[_0x3db377]['item'][_0x2022('0xff')]=_0x46786c['get'](_0x384ddc[_0x3db377][_0x2022('0x5b')]):_0x2022('0x5c')===_0x384ddc[_0x3db377][_0x2022('0x108')]&&(_0x384ddc[_0x3db377]['item'][_0x2022('0xa')]=_0x46786c[_0x2022('0xc8')](_0x384ddc[_0x3db377][_0x2022('0x5b')]));}[_0x2022('0x79')](_0x4fa05c){for(let _0x6b896e=0x0;_0x6b896e<_0x4fa05c[_0x2022('0x47')];_0x6b896e++){if(_0x2022('0x7d')===_0x4fa05c[_0x6b896e][_0x2022('0x108')])_0x4fa05c[_0x6b896e][_0x2022('0x5f')]['startIndex']=_0x6b896e;else{if(_0x2022('0x5c')===_0x4fa05c[_0x6b896e]['type']){_0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xff')]=_0x6b896e;const _0x32d80e=_0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xa')];_0x4fa05c[_0x32d80e][_0x2022('0x5b')]=_0x4fa05c[_0x6b896e]['id'],_0x4fa05c[_0x6b896e]['pairId']=_0x4fa05c[_0x32d80e]['id'];}else _0x4fa05c[_0x6b896e][_0x2022('0x5f')][_0x2022('0xa')]=_0x6b896e,_0x4fa05c[_0x6b896e][_0x2022('0x5f')]['endIndex']=_0x6b896e,_0x4fa05c[_0x6b896e][_0x2022('0x5b')]=null;}_0x4fa05c[_0x6b896e][_0x2022('0xf5')]||(_0x4fa05c[_0x6b896e][_0x2022('0xf5')]=[],_0x4fa05c[_0x6b896e]['markersEnd']=[]);}}[_0x2022('0xfc')](_0x365d6a,_0x2a21bd){const _0x1c6af6=_0x365d6a[_0x2022('0xa0')](_0x5ec798=>!_0x5ec798[_0x2022('0x100')]);for(let _0x4866d6=0x0;_0x4866d6<_0x2a21bd[_0x2022('0x47')];_0x4866d6++)_0x2a21bd[_0x4866d6][_0x2022('0x100')]&&(_0x1c6af6[_0x4866d6][_0x2022('0x100')]=_0x2a21bd[_0x4866d6][_0x2022('0x100')]);}[_0x2022('0x115')](_0x364dd3){const _0x191456=JSON['parse'](_0x364dd3),_0x20fe3b=this[_0x2022('0x63')]['editing'][_0x2022('0xe2')][_0x2022('0x9b')],_0x521a7c=new _0x4b1a00(_0x20fe3b,_0x191456[_0x2022('0xd4')](_0x536d05=>this[_0x2022('0x75')](_0x536d05)));return this[_0x2022('0x63')][_0x2022('0x32')][_0x2022('0x9f')](_0x521a7c);}[_0x2022('0x75')](_0x3510a4){const _0x6d049e=this[_0x2022('0x63')][_0x2022('0x9d')]['view'][_0x2022('0x9b')];if(_0x2022('0xbf')==typeof _0x3510a4)return new _0x4a8b84(_0x6d049e,_0x3510a4);{const _0x3baa23=_0x3510a4[_0x2022('0x6a')]['map'](_0x50a6ae=>this[_0x2022('0x75')](_0x50a6ae));return new(tt[_0x3510a4['type']]||_0x3d4192)(_0x6d049e,_0x3510a4['name'],_0x3510a4[_0x2022('0xc0')],_0x3baa23);}}[_0x2022('0x41')](_0x2c7e09,_0x435718=null){const _0x57a2b0=this[_0x2022('0x3f')]['getRevision'](_0x2c7e09),_0x516685=_0x435718?this[_0x2022('0x3f')]['getRevision'](_0x435718):null,_0x3fbffc=this[_0x2022('0x45')](_0x57a2b0,_0x516685),_0xdd12d9=_0x3fbffc[_0x3fbffc[_0x2022('0x47')]-0x1],_0x50de58=new Map(),_0x30b676={'model':{},'attributes':{},'changes':[]},_0x394da8=new Set(),_0x55e998=new Map();for(let _0x4c93dc=_0x3fbffc[_0x2022('0x47')]-0x1;_0x4c93dc>=0x0;_0x4c93dc--){const _0xe0a4e1=_0x3fbffc[_0x4c93dc];for(const _0x2250f6 of Object[_0x2022('0x20')](_0xe0a4e1[_0x2022('0x90')]))if(_0xe0a4e1[_0x2022('0x90')][_0x2250f6]['attachChange']){const _0x3e80d5=_0xe0a4e1[_0x2022('0x90')][_0x2250f6][_0x2022('0x55')];_0x3e80d5[_0x2022('0xcc')]?(_0x394da8['add'](_0x2250f6),_0x55e998['has'](_0x2250f6)&&_0x55e998[_0x2022('0xc8')](_0x2250f6)['userId']==_0x3e80d5['userId']?_0x55e998['delete'](_0x2250f6):_0x55e998[_0x2022('0x112')](_0x2250f6,_0x3e80d5)):_0x55e998['has'](_0x2250f6)?(_0x394da8[_0x2022('0x97')](_0x2250f6),_0x55e998[_0x2022('0x97')](_0x2250f6)):(_0x394da8[_0x2022('0x109')](_0x2250f6),_0x55e998['set'](_0x2250f6,_0x3e80d5));}else _0x394da8[_0x2022('0x109')](_0x2250f6);}for(const _0x5f4bc1 of _0x394da8){const _0x128c8c=_0x55e998['has'](_0x5f4bc1)&&!_0x55e998[_0x2022('0xc8')](_0x5f4bc1)[_0x2022('0xcc')];let _0x354d9d=_0x128c8c?_0x3fbffc['length']-0x1:0x0;const _0xbf720d=_0x128c8c?-0x1:0x1;for(;_0x3fbffc[_0x354d9d];){const _0x494b19=_0x3fbffc[_0x354d9d];if(_0x494b19[_0x2022('0x90')][_0x5f4bc1]){const _0x58e7c2=_0x128c8c?_0x494b19[_0x2022('0x90')][_0x5f4bc1][_0x2022('0xfe')]:_0x494b19['diffData'][_0x5f4bc1][_0x2022('0x4e')];_0x30b676[_0x2022('0xc0')][_0x5f4bc1]=_0x58e7c2?_0x247f68(_0x58e7c2):{};break;}_0x354d9d+=_0xbf720d;}}for(const _0x5d3d1d of _0x3fbffc){_0x5d3d1d[_0x2022('0xc3')]={};for(const _0x593224 of _0x5d3d1d[_0x2022('0x9')])_0x50de58[_0x2022('0x112')](_0x593224['id'],_0x593224);for(const _0x1f9844 of _0x394da8){const _0x5b6f6f=_0x5d3d1d[_0x2022('0x90')][_0x1f9844]?_0x5d3d1d[_0x2022('0x90')][_0x1f9844][_0x2022('0x67')]:'[]',_0x5030a4=_0x5d3d1d[_0x2022('0x90')][_0x1f9844]?_0x5d3d1d[_0x2022('0x90')][_0x1f9844][_0x2022('0x69')]:'[]';_0x5d3d1d['model'][_0x1f9844]={'insertions':this[_0x2022('0x115')](_0x5b6f6f),'deletions':this[_0x2022('0x115')](_0x5030a4)};}}for(const _0xc35daf of _0x394da8){let _0x493002=null,_0x2aec75=0x0;const _0x3d868b=new Map(Array['from'](_0x57a2b0[_0x2022('0xc3')][_0xc35daf][_0x2022('0x67')][_0x2022('0xc7')])[_0x2022('0xa0')](([_0x473a40])=>!_0x473a40[_0x2022('0x10e')]('revision:')));let _0x1a66bf=0x0;for(const _0x4d1d5f of _0x3fbffc){const _0xc308c5=this['_makeTape'](_0x4d1d5f['model'][_0xc35daf][_0x2022('0x67')]);_0x4d1d5f==_0x57a2b0?(_0x493002=_0xc308c5,_0x2aec75=_0x493002[_0x2022('0x47')],_0x493002[_0x2022('0x36')](_0x391173=>{_0x391173['id']=_0x1a66bf++;}),this[_0x2022('0x79')](_0x493002)):this['_markInsertions'](_0x493002,_0xc308c5);const _0x395a2f=_0x493002[_0x2022('0xa0')](_0x5207f5=>!_0x5207f5[_0x2022('0x100')])['map'](_0x1f8fb2=>_0x1f8fb2['id']);let _0x230c18=0x0;const _0x43914c=this['_makeTape'](_0x4d1d5f[_0x2022('0xc3')][_0xc35daf][_0x2022('0x69')]);_0x43914c[_0x2022('0x36')](_0x5ab177=>{_0x5ab177[_0x2022('0x96')]?_0x5ab177['id']=_0x2aec75++:_0x5ab177['id']=_0x395a2f[_0x230c18++];}),this[_0x2022('0x79')](_0x43914c),this[_0x2022('0xde')](_0x493002,_0x2022('0x100')),this[_0x2022('0xde')](_0x43914c,_0x2022('0x96')),_0x4d1d5f==_0x57a2b0&&this[_0x2022('0x10d')](_0x493002,_0x3d868b),_0x493002=this[_0x2022('0xed')](_0x493002,_0x43914c),this[_0x2022('0x42')](_0x493002),this['_setDistance'](_0x493002,'isRemoved');}_0x493002=_0x493002[_0x2022('0xa0')](_0x4b60ed=>!(_0x4b60ed['isAdded']&&_0x4b60ed[_0x2022('0x96')]));const _0x39938d=new Map(_0xdd12d9[_0x2022('0xc3')][_0xc35daf]['deletions']['markers']),_0x121b14=new Set(_0x3d868b[_0x2022('0x20')]());for(const _0x3ef6cf of _0x39938d['keys']())_0x121b14[_0x2022('0x97')](_0x3ef6cf);this[_0x2022('0x4c')](_0x493002,_0x121b14),this[_0x2022('0x114')](_0x493002),_0x493002=this[_0x2022('0xb8')](_0x493002),_0x493002=this['_markMismatchedRemovedTags'](_0x493002),_0x493002=this['_removeUnsupportedChanges'](_0x493002);const {root:_0x3fd51b,changes:_0x47bade}=this[_0x2022('0x8f')](_0x493002,_0x50de58,_0xc35daf);_0x30b676[_0x2022('0xc3')][_0xc35daf]=_0x3fd51b;const _0x51495a=_0x55e998['get'](_0xc35daf);if(_0x51495a){const _0x29b6bc=_0x50de58[_0x2022('0xc8')](_0x51495a[_0x2022('0xa7')]),_0x1233af=new _0x130e94({'author':_0x29b6bc,'type':_0x51495a[_0x2022('0xcc')]?_0x2022('0x109'):'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xc35daf});_0x47bade[_0x2022('0x2a')](_0x1233af),_0x30b676[_0x2022('0xc0')][_0xc35daf][_0x2022('0xfd')]=_0x1233af['id'];}_0x30b676['changes']=_0x30b676[_0x2022('0x113')][_0x2022('0x124')](_0x47bade);}return _0x30b676;}[_0x2022('0x10d')](_0x479b8f,_0x1d9949){for(let _0x4b304c=0x0;_0x4b304c<_0x479b8f['length'];_0x4b304c++)for(const [_0x19aa9d,_0x43eb03]of _0x1d9949)_0x43eb03['start'][_0x2022('0xce')](_0x479b8f[_0x4b304c][_0x2022('0x3a')])&&_0x479b8f[_0x4b304c][_0x2022('0xf5')][_0x2022('0x10b')](_0x19aa9d),_0x43eb03[_0x2022('0xef')][_0x2022('0xce')](_0x479b8f[_0x4b304c][_0x2022('0x78')])&&_0x479b8f[_0x4b304c]['markersEnd'][_0x2022('0x10b')](_0x19aa9d);}[_0x2022('0xed')](_0x1eb268,_0x133ad6){let _0x4b1c89=[],_0x52c847=0x0,_0x105a39=0x0;for(;_0x52c847<_0x1eb268['length']||_0x105a39<_0x133ad6[_0x2022('0x47')];){const _0x492e3a=_0x1eb268[_0x52c847]||{},_0x536731=_0x133ad6[_0x105a39]||{};if(_0x492e3a['id']==_0x536731['id'])_0x52c847++,_0x105a39++,_0x4b1c89[_0x2022('0x10b')](_0x492e3a);else{if(_0x536731[_0x2022('0x96')]&&_0x492e3a[_0x2022('0x100')]){const {commonTape:_0x640173,iEnd:_0x3a815d,jEnd:_0x3cc7d0}=this[_0x2022('0xa1')](_0x1eb268,_0x52c847,_0x133ad6,_0x105a39);_0x4b1c89=_0x4b1c89[_0x2022('0x124')](_0x640173),_0x52c847=_0x3a815d,_0x105a39=_0x3cc7d0;}else _0x536731[_0x2022('0x96')]?(_0x105a39++,_0x4b1c89[_0x2022('0x10b')](_0x536731)):(_0x52c847++,_0x4b1c89['push'](_0x492e3a));}}return _0x4b1c89;}[_0x2022('0x4c')](_0x3f2374,_0x4b58c2){const _0x59337c=[];for(let _0x4aa450=0x0;_0x4aa450<_0x3f2374[_0x2022('0x47')];_0x4aa450++){for(let _0x4ce8e1=0x0;_0x4ce8e1<_0x3f2374[_0x4aa450]['markersStart'][_0x2022('0x47')];_0x4ce8e1++){const _0x593cec=_0x3f2374[_0x4aa450][_0x2022('0xf5')][_0x4ce8e1];if(!_0x4b58c2[_0x2022('0x102')](_0x593cec))continue;const {group:_0x52c1ed,type:_0x1630ae,authorId:_0x14239e}=_0x1d81ca(_0x593cec);_0x2022('0xbe')!=_0x52c1ed||'insertion'!=_0x1630ae&&_0x2022('0x1a')!=_0x1630ae||(_0x59337c[_0x2022('0x2a')]({'type':_0x1630ae,'name':_0x593cec,'userId':_0x14239e}),_0x3f2374[_0x4aa450][_0x2022('0xf5')][_0x2022('0x11a')](_0x4ce8e1,0x1),_0x4ce8e1--);}_0x200e0f(_0x3f2374[_0x4aa450]);for(let _0x382f49=0x0;_0x382f49<_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x2022('0x47')];_0x382f49++){const _0x3e269a=_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x382f49];if(!_0x4b58c2[_0x2022('0x102')](_0x3e269a))continue;const {group:_0x333cf3,type:_0xf19db1}=_0x1d81ca(_0x3e269a);if(_0x2022('0xbe')!=_0x333cf3||_0x2022('0xc9')!=_0xf19db1&&'deletion'!=_0xf19db1)continue;_0x3f2374[_0x4aa450][_0x2022('0x0')][_0x2022('0x11a')](_0x382f49,0x1),_0x382f49--;const _0x2d329a=_0x59337c[_0x2022('0x34')](_0x5022bd=>_0x5022bd[_0x2022('0xb3')]==_0x3e269a);_0x2d329a>-0x1&&_0x59337c[_0x2022('0x11a')](_0x2d329a,0x1);}}function _0x1d81ca(_0x94622f){const _0x27bd4d=_0x94622f['split'](':');return{'group':_0x27bd4d[0x0],'type':_0x27bd4d[0x1],'subType':_0x27bd4d[_0x2022('0x47')]>=0x5?_0x27bd4d[0x2]:null,'id':_0x27bd4d['length']<0x5?_0x27bd4d[0x2]:_0x27bd4d[0x3],'authorId':_0x27bd4d['length']<0x5?_0x27bd4d[0x3]:_0x27bd4d[0x4],'markerCount':0x6==_0x27bd4d[_0x2022('0x47')]?_0x27bd4d[0x5]:null};}function _0x200e0f(_0x2ab715){for(let _0xc9b7e5=0x0;_0xc9b7e5<_0x59337c['length'];_0xc9b7e5++){if(_0x2ab715[_0x2022('0x100')]&&_0x2022('0xc9')==_0x59337c[_0xc9b7e5][_0x2022('0x108')])return _0x2ab715[_0x2022('0x4')]=_0x59337c[_0xc9b7e5],void delete _0x2ab715[_0x2022('0x100')];if(!_0x2ab715['isAdded']&&!_0x2ab715[_0x2022('0x96')]&&'deletion'==_0x59337c[_0xc9b7e5][_0x2022('0x108')])return void(_0x2ab715['isRemoveSuggestion']=_0x59337c[_0xc9b7e5]);}}}[_0x2022('0xde')](_0x14a536,_0xe31ce4){let _0x4fe744=0x0,_0xe843c0=!0x1;const _0x366cae=new Map();for(const _0x5693d2 of _0x14a536)_0x5693d2[_0xe31ce4]?_0xe843c0&&(_0x4fe744++,_0xe843c0=!0x1):(_0x4fe744++,_0xe843c0=!0x0),_0x366cae[_0x2022('0x112')](_0x5693d2['id'],_0x4fe744);for(let _0x3dab9f=0x0;_0x3dab9f<_0x14a536['length'];_0x3dab9f++){if(_0x2022('0x96')==_0xe31ce4&&_0x14a536[_0x3dab9f][_0x2022('0x100')]||_0x2022('0x100')==_0xe31ce4&&_0x14a536[_0x3dab9f]['isRemoved'])continue;if(_0x2022('0x5d')==_0x14a536[_0x3dab9f][_0x2022('0x108')]){_0x14a536[_0x3dab9f]['distance']=0x0;continue;}const _0x1f3070=_0x366cae[_0x2022('0xc8')](_0x14a536[_0x3dab9f][_0x2022('0x5b')]),_0x5b8f56=_0x366cae[_0x2022('0xc8')](_0x14a536[_0x3dab9f]['id']);_0x14a536[_0x3dab9f]['distance']=_0x1f3070-_0x5b8f56;}}[_0x2022('0x45')](_0x39be3d,_0x45a4cc,_0x4025a1=!0x1){const _0x486860=[];let _0x18541b=this['repository'][_0x2022('0x54')](_0x39be3d),_0x4e1968=this[_0x2022('0x3f')][_0x2022('0x54')](_0x45a4cc);for(-0x1==_0x4e1968&&(_0x4e1968=this[_0x2022('0x3f')][_0x2022('0x7')][_0x2022('0x47')],_0x4025a1=!0x1);_0x18541b<_0x4e1968;)_0x486860['push'](this[_0x2022('0x3f')][_0x2022('0x51')](_0x18541b)),_0x18541b++;return _0x4025a1&&_0x486860[_0x2022('0x10b')](this['repository'][_0x2022('0x51')](_0x18541b)),_0x486860;}[_0x2022('0xa1')](_0x329d95,_0x46f90e,_0x4a3734,_0x2bd7f7){const _0x3d60b1=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xb2')];let _0x3c5307=_0x46f90e;for(;_0x329d95[_0x3c5307]&&_0x329d95[_0x3c5307][_0x2022('0x100')];)_0x3c5307++;let _0x35b17e=_0x2bd7f7;for(;_0x4a3734[_0x35b17e]&&_0x4a3734[_0x35b17e][_0x2022('0x96')];)_0x35b17e++;_0x20f57d(_0x329d95,_0x46f90e,_0x3c5307),_0x20f57d(_0x4a3734,_0x2bd7f7,_0x35b17e);const _0xc45c3f=_0x4a3734[_0x2022('0x57')](_0x2bd7f7,_0x35b17e)['concat'](_0x329d95[_0x2022('0x57')](_0x46f90e,_0x3c5307));return _0xc45c3f['sort']((_0x233a1c,_0x56a4a5)=>_0x233a1c[_0x2022('0xe4')]!=_0x56a4a5[_0x2022('0xe4')]?_0x233a1c[_0x2022('0xe4')]-_0x56a4a5[_0x2022('0xe4')]:_0x233a1c['level']!=_0x56a4a5[_0x2022('0x21')]?_0x233a1c[_0x2022('0x21')]-_0x56a4a5[_0x2022('0x21')]:_0x233a1c['distance']!=_0x56a4a5[_0x2022('0x52')]?_0x56a4a5[_0x2022('0x52')]-_0x233a1c[_0x2022('0x52')]:!!_0x233a1c[_0x2022('0x100')]!=!!_0x56a4a5[_0x2022('0x100')]?-0x1==_0x233a1c[_0x2022('0xe4')]||0x0==_0x233a1c['side']?_0x233a1c[_0x2022('0x100')]?-0x1:0x1:_0x233a1c[_0x2022('0x100')]?0x1:-0x1:_0x233a1c['index']-_0x56a4a5[_0x2022('0x11c')]),{'commonTape':_0xc45c3f,'iEnd':_0x3c5307,'jEnd':_0x35b17e};function _0x20f57d(_0x4e6a44,_0x277a57,_0x521d17){let _0x4edf02=-0x1,_0xf7e2e2=Number['POSITIVE_INFINITY'],_0x482a91=!0x0;for(let _0x74f5b8=_0x277a57;_0x74f5b8<_0x521d17;_0x74f5b8++)if(_0x3d60b1[_0x2022('0x11d')](_0x4e6a44[_0x74f5b8][_0x2022('0x5f')])||(_0x482a91=!0x1),_0x4e6a44[_0x74f5b8][_0x2022('0x5f')][_0x2022('0xa')]<_0x277a57&&(_0x4edf02=_0x74f5b8),_0x4e6a44[_0x74f5b8][_0x2022('0x5f')][_0x2022('0xff')]>=_0x521d17){_0xf7e2e2=_0x74f5b8;break;}_0x482a91&&(_0x4edf02=_0x521d17-0x1);for(let _0x1c2137=_0x277a57;_0x1c2137<_0x521d17;_0x1c2137++)_0x4e6a44[_0x1c2137][_0x2022('0xe4')]=_0x1c2137<=_0x4edf02?-0x1:_0x1c2137<_0xf7e2e2?0x0:0x1,_0x4e6a44[_0x1c2137][_0x2022('0x11c')]=_0x1c2137;let _0x49f7c4=0x0;for(let _0x42cc3d=_0x277a57;_0x42cc3d<=_0x4edf02;_0x42cc3d++)0x0==_0x4e6a44[_0x42cc3d][_0x2022('0x52')]?_0x4e6a44[_0x42cc3d]['level']=_0x49f7c4:(_0x49f7c4++,_0x4e6a44[_0x42cc3d]['level']=_0x49f7c4,_0x49f7c4++);for(let _0x194d25=_0x277a57;_0x194d25<_0x521d17;_0x194d25++)0x0==_0x4e6a44[_0x194d25]['side']&&(_0x4e6a44[_0x194d25]['level']=_0x49f7c4);_0x49f7c4=0x0;for(let _0x2d5083=_0x521d17-0x1;_0x2d5083>=_0xf7e2e2;_0x2d5083--)0x0==_0x4e6a44[_0x2d5083][_0x2022('0x52')]?_0x4e6a44[_0x2d5083][_0x2022('0x21')]=_0x49f7c4:(_0x49f7c4--,_0x4e6a44[_0x2d5083][_0x2022('0x21')]=_0x49f7c4,_0x49f7c4--);}}[_0x2022('0x114')](_0xbabd7e){const _0x47b58d=new Map(),_0x4f9bab=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xb2')];for(let _0x17b9df=0x1;_0x17b9df<_0xbabd7e[_0x2022('0x47')];_0x17b9df++){let _0xc39626,_0x58bf24,_0xf642bb;const _0x2e8a80=_0xbabd7e[_0x17b9df],_0x516655=_0xbabd7e[_0x17b9df-0x1];if(_0x2022('0x5d')==_0x2e8a80[_0x2022('0x108')])continue;if(_0x2e8a80['type']!=_0x516655[_0x2022('0x108')])continue;if(!_0x4f9bab[_0x2022('0x30')](_0x516655[_0x2022('0x5f')])||_0x4f9bab['isLimit'](_0x516655[_0x2022('0x5f')]))continue;if(!_0x4f9bab[_0x2022('0x30')](_0x2e8a80[_0x2022('0x5f')])||_0x4f9bab[_0x2022('0xc6')](_0x2e8a80[_0x2022('0x5f')]))continue;if((_0xbabd7e[_0x17b9df]['isAdded']||_0xbabd7e[_0x17b9df][_0x2022('0x4')])&&_0xbabd7e[_0x17b9df-0x1]['isRemoved'])_0xc39626=_0xbabd7e[_0x17b9df],_0x58bf24=_0xbabd7e[_0x17b9df-0x1],_0xf642bb=_0x17b9df-0x1;else{if(!_0xbabd7e[_0x17b9df][_0x2022('0x96')]||!_0xbabd7e[_0x17b9df-0x1][_0x2022('0x100')]&&!_0xbabd7e[_0x17b9df-0x1][_0x2022('0x4')])continue;_0xc39626=_0xbabd7e[_0x17b9df-0x1],_0x58bf24=_0xbabd7e[_0x17b9df],_0xf642bb=_0x17b9df;}const _0x3bc156=_0xc39626[_0x2022('0x21')]==_0x58bf24[_0x2022('0x21')],_0x5597bb=Math[_0x2022('0x7e')](_0xc39626[_0x2022('0x21')])<Math[_0x2022('0x7e')](_0x58bf24[_0x2022('0x21')])&&0x0==_0x58bf24[_0x2022('0x52')];(_0x3bc156||_0x5597bb)&&(_0x47b58d[_0x2022('0x112')](_0x58bf24['id'],_0xc39626['id']),_0xbabd7e[_0x2022('0x11a')](_0xf642bb,0x1),_0x17b9df--,_0xc39626[_0x2022('0x100')]=!0x1);}for(let _0x3a1266=0x0;_0x3a1266<_0xbabd7e[_0x2022('0x47')];_0x3a1266++)_0x47b58d[_0x2022('0x102')](_0xbabd7e[_0x3a1266][_0x2022('0x5b')])&&(_0xbabd7e[_0x3a1266]['pairId']=_0x47b58d[_0x2022('0xc8')](_0xbabd7e[_0x3a1266][_0x2022('0x5b')]));}[_0x2022('0xb8')](_0x1ec699){const _0xfc68b=new Set(_0x1ec699[_0x2022('0xd4')](_0x30cc2f=>_0x30cc2f['id']));for(let _0x109b37=0x0;_0x109b37<_0x1ec699['length'];_0x109b37++)_0xfc68b[_0x2022('0x102')](_0x1ec699[_0x109b37][_0x2022('0x5b')])||0x0==_0x1ec699[_0x109b37][_0x2022('0x52')]||(_0x1ec699[_0x109b37][_0x2022('0x81')]=!0x0);return _0x1ec699[_0x2022('0xa0')](_0x4486ea=>!_0x4486ea[_0x2022('0x81')]);}[_0x2022('0xbc')](_0x8cf395){const _0x1a6a02=new Set();for(let _0x199c10=0x0;_0x199c10<_0x8cf395[_0x2022('0x47')];_0x199c10++){if(_0x1a6a02['has'](_0x8cf395[_0x199c10]['id'])&&_0x8cf395[_0x199c10][_0x2022('0x96')]&&(_0x8cf395[_0x199c10]['isIncorrect']=!0x0),_0x8cf395[_0x199c10][_0x2022('0x81')])continue;if(0x0==_0x8cf395[_0x199c10][_0x2022('0x52')])continue;if('elementStart'!=_0x8cf395[_0x199c10][_0x2022('0x108')])continue;if(null==_0x8cf395[_0x199c10][_0x2022('0x5b')])continue;let _0xee37d5=_0x199c10+0x1,_0x4f0753=0x0;for(;_0x8cf395[_0xee37d5]['id']!=_0x8cf395[_0x199c10][_0x2022('0x5b')];)'elementStart'==_0x8cf395[_0xee37d5][_0x2022('0x108')]?_0x4f0753++:_0x2022('0x5c')==_0x8cf395[_0xee37d5][_0x2022('0x108')]&&_0x4f0753--,_0xee37d5++;if(0x0!=_0x4f0753){if(_0x8cf395[_0x199c10][_0x2022('0x96')])_0x8cf395[_0x199c10]['isIncorrect']=!0x0;else for(;_0xee37d5!=_0x199c10;)_0x8cf395[_0xee37d5][_0x2022('0x96')]&&0x0!=_0x8cf395[_0xee37d5][_0x2022('0x52')]&&(_0x8cf395[_0xee37d5][_0x2022('0x81')]=!0x0,_0x1a6a02[_0x2022('0x109')](_0x8cf395[_0xee37d5]['pairId'])),_0xee37d5--;}}return _0x8cf395[_0x2022('0xa0')](_0x1ad6f0=>!_0x1ad6f0['isIncorrect']);}[_0x2022('0x4d')](_0x3c6099){const _0x298e9c=this[_0x2022('0x63')][_0x2022('0xc3')]['schema'];for(let _0xb083d8=0x0;_0xb083d8<_0x3c6099[_0x2022('0x47')];_0xb083d8++){if(!(_0x3c6099[_0xb083d8][_0x2022('0x100')]||_0x3c6099[_0xb083d8][_0x2022('0x4')]||_0x3c6099[_0xb083d8][_0x2022('0x96')]||_0x3c6099[_0xb083d8][_0x2022('0xee')]))continue;if(0x0==_0x3c6099[_0xb083d8][_0x2022('0x52')])continue;const _0x29fd5b=_0x3c6099[_0xb083d8]['item'];_0x298e9c[_0x2022('0x30')](_0x29fd5b)||_0x298e9c[_0x2022('0xc6')](_0x29fd5b)||(_0x3c6099[_0xb083d8]['isAdded']&&delete _0x3c6099[_0xb083d8][_0x2022('0x100')],_0x3c6099[_0xb083d8][_0x2022('0x4')]&&delete _0x3c6099[_0xb083d8][_0x2022('0x4')],_0x3c6099[_0xb083d8][_0x2022('0xee')]&&delete _0x3c6099[_0xb083d8][_0x2022('0xee')],_0x3c6099[_0xb083d8][_0x2022('0x96')]&&(_0x3c6099[_0xb083d8][_0x2022('0x81')]=!0x0));}return _0x3c6099[_0x2022('0xa0')](_0x25c82a=>!_0x25c82a[_0x2022('0x81')]);}[_0x2022('0x8f')](_0x3e3acf,_0x1f410b,_0x40c9d6){const _0x23b2ca=new _0x197c08(),_0x300564=[],_0x242814=new Map(),_0x127d99=this[_0x2022('0x63')]['model'],_0x4236aa=_0x127d99[_0x2022('0xb2')],_0x145d73=[_0x23b2ca],_0x315cb2={},_0x59592b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x347733=null;const _0x117f33=[0x0];for(let _0x1aa575=0x0;_0x1aa575<_0x3e3acf['length'];_0x1aa575++){let _0x25b5e7,_0x21c44c;if(_0x2022('0x7d')===_0x3e3acf[_0x1aa575][_0x2022('0x108')]){_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33);const _0x33607d=new _0x479e62(_0x3e3acf[_0x1aa575]['item']['name'],_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x6')]());_0x145d73[0x0]['_appendChild'](_0x33607d),_0x117f33[_0x2022('0x10b')](0x0),_0x145d73[_0x2022('0x2a')](_0x33607d),_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733=null;}else{if('elementEnd'===_0x3e3acf[_0x1aa575][_0x2022('0x108')])_0x145d73[_0x2022('0xf8')](),_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x117f33[_0x2022('0x31')](),_0x117f33[_0x117f33['length']-0x1]++,_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733=null;else{if(_0x25b5e7=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33),_0x347733&&_0x4ea275(_0x347733,_0x3e3acf[_0x1aa575][_0x2022('0x5f')]))_0x347733[_0x2022('0x2')]+=_0x3e3acf[_0x1aa575][_0x2022('0x5f')]['data'];else{const _0x11062f=new _0x5fa407(_0x3e3acf[_0x1aa575]['item']['data'],_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x6')]());_0x145d73[0x0]['_appendChild'](_0x11062f),_0x347733=_0x11062f;}_0x117f33[_0x117f33[_0x2022('0x47')]-0x1]+=_0x3e3acf[_0x1aa575][_0x2022('0x5f')][_0x2022('0x120')],_0x21c44c=_0x127d99[_0x2022('0x2c')](_0x23b2ca,_0x117f33);}}for(const _0x3ec486 of _0x3e3acf[_0x1aa575][_0x2022('0xf5')])_0x242814['set'](_0x3ec486,{'start':_0x25b5e7,'end':null});_0xc07ad1(_0x2022('0xee'),_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1('isAddSuggestion',_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1(_0x2022('0x96'),_0x1aa575,_0x25b5e7,_0x21c44c),_0xc07ad1('isAdded',_0x1aa575,_0x25b5e7,_0x21c44c);for(const _0x55b576 of _0x3e3acf[_0x1aa575][_0x2022('0x0')]){_0x242814[_0x2022('0xc8')](_0x55b576)[_0x2022('0xef')]=_0x21c44c;}}for(const [_0x1684d7,_0x2a037d]of _0x242814){const _0x293a7d=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0xab')](_0x2a037d[_0x2022('0xd8')],_0x2a037d[_0x2022('0xef')]);_0x23b2ca[_0x2022('0xc7')]['set'](_0x1684d7,_0x293a7d);}return _0x300564['sort']((_0x71b1f,_0x5de845)=>{const _0x57a181=_0x23b2ca[_0x2022('0xc7')][_0x2022('0xc8')]('revision:'+_0x71b1f['id']),_0x1b6c31=_0x23b2ca[_0x2022('0xc7')][_0x2022('0xc8')](_0x2022('0x6d')+_0x5de845['id']);return _0x57a181[_0x2022('0xd8')]['isBefore'](_0x1b6c31['start'])?-0x1:_0x57a181[_0x2022('0xd8')][_0x2022('0xac')](_0x1b6c31[_0x2022('0xd8')])?0x1:_0x57a181[_0x2022('0xef')]['isBefore'](_0x1b6c31[_0x2022('0xef')])?-0x1:_0x57a181[_0x2022('0xef')][_0x2022('0xac')](_0x1b6c31[_0x2022('0xef')])?0x1:_0x2022('0x109')===_0x71b1f[_0x2022('0x108')]?-0x1:0x1;}),{'root':_0x23b2ca,'changes':_0x300564};function _0xc07ad1(_0x1f9a7b,_0x30c82e,_0x3495ee,_0x5eea2e){const _0x1825b6=!!_0x3e3acf[_0x30c82e][_0x1f9a7b],_0x2ac324=_0x1825b6?_0x3e3acf[_0x30c82e][_0x1f9a7b][_0x2022('0xa7')]:null,_0x6d314c=_0x30c82e===_0x3e3acf[_0x2022('0x47')]-0x1,_0x46d0f6=_0x59592b[_0x1f9a7b][0x0],_0x1f14d4=_0x4236aa[_0x2022('0x9a')](_0x3e3acf[_0x30c82e][_0x2022('0x5f')]);!_0x315cb2[_0x1f9a7b]&&_0x1825b6?_0x315cb2[_0x1f9a7b]={'start':_0x3495ee,'tapeItem':_0x3e3acf[_0x30c82e],'userId':_0x2ac324,'type':_0x1f9a7b}:_0x315cb2[_0x1f9a7b]&&!_0x1825b6?(_0x315cb2[_0x1f9a7b][_0x2022('0xef')]=_0x3495ee,_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]=null):_0x315cb2[_0x1f9a7b]&&_0x1825b6&&_0x315cb2[_0x1f9a7b]['userId']!==_0x2ac324&&(_0x315cb2[_0x1f9a7b]['end']=_0x3495ee,_0x46d0f6&&_0x46d0f6[_0x2022('0xa7')]===_0x315cb2[_0x1f9a7b][_0x2022('0xa7')]||_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]={'start':_0x3495ee,'tapeItem':_0x3e3acf[_0x30c82e],'userId':_0x2ac324,'type':_0x1f9a7b}),_0x315cb2[_0x1f9a7b]&&_0x1f14d4&&(_0x2022('0x7d')!==_0x3e3acf[_0x30c82e][_0x2022('0x108')]||_0x46d0f6&&_0x46d0f6['userId']===_0x2ac324||_0x59592b[_0x1f9a7b][_0x2022('0x2a')]({'userId':_0x2ac324,'object':_0x3e3acf[_0x30c82e]['item'],'change':_0x315cb2[_0x1f9a7b]}),_0x2022('0x5c')===_0x3e3acf[_0x30c82e][_0x2022('0x108')]&&_0x46d0f6&&_0x46d0f6[_0x2022('0x77')]===_0x3e3acf[_0x30c82e][_0x2022('0x5f')]&&(_0x59592b[_0x1f9a7b][_0x2022('0xf8')](),_0x315cb2[_0x1f9a7b]=_0x46d0f6[_0x2022('0x86')])),_0x315cb2[_0x1f9a7b]&&_0x6d314c&&(_0x315cb2[_0x1f9a7b][_0x2022('0xef')]=_0x5eea2e,_0x487749(_0x315cb2[_0x1f9a7b]),_0x315cb2[_0x1f9a7b]=null);}function _0x487749({start:_0x418bc8,end:_0x14ae73,tapeItem:_0x1c8347,userId:_0xd1921a,type:_0xe765c6}){const _0x20bec9=_0x1c8347['item'],_0xd0f9b7=_0x127d99[_0x2022('0xb2')][_0x2022('0x30')](_0x20bec9)&&!_0x127d99[_0x2022('0xb2')][_0x2022('0xc6')](_0x20bec9),_0x41ffe9=_0x418bc8[_0x2022('0x3')]==_0x14ae73['parent']&&_0x14ae73[_0x2022('0x8b')];if(_0xd0f9b7&&_0x41ffe9)return;const _0x3393ee=_0x127d99[_0x2022('0xab')](_0x418bc8,_0x14ae73),_0x281179=_0x1f410b[_0x2022('0xc8')](_0xd1921a),_0x913b85=new _0x130e94({'author':_0x281179,'type':_0x2022('0x100')==_0xe765c6||_0x2022('0x4')==_0xe765c6?_0x2022('0x109'):_0x2022('0x5a'),'data':{'isSuggestion':_0x2022('0x4')==_0xe765c6||_0x2022('0xee')==_0xe765c6},'createdAt':new Date(),'rootName':_0x40c9d6});_0x300564[_0x2022('0x10b')](_0x913b85),_0x23b2ca[_0x2022('0xc7')][_0x2022('0x112')](_0x2022('0x6d')+_0x913b85['id'],_0x3393ee);}function _0x4ea275(_0x235d4c,_0x141f32){const _0x4aac81=_0x235d4c[_0x2022('0x6')](),_0x2118b7=_0x141f32[_0x2022('0x6')]();for(const _0x1569a0 of _0x4aac81){if(_0x1569a0[0x1]!==_0x141f32['getAttribute'](_0x1569a0[0x0]))return!0x1;_0x2118b7[_0x2022('0xda')]();}return _0x2118b7['next']()['done'];}}[_0x2022('0xf9')](){this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0x59'))['dataToMarker']({'view':_0x2022('0x92')}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('editingDowncast')[_0x2022('0x61')]({'model':_0x2022('0x92'),'view':_0x52f2fd=>{const _0x29a840=_0x52f2fd[_0x2022('0x4b')]['split'](':')[0x1],_0x36e783=this[_0x2022('0x3d')](_0x29a840);if(!_0x36e783)return null;const _0x283840=_0x2022('0x109')==_0x36e783[_0x2022('0x108')]?_0x2022('0xc9'):'deletion',_0x39ac31=['ck-suggestion-marker',_0x2022('0xfb')+_0x283840];return _0x36e783[_0x2022('0x32')][_0x2022('0xcb')]&&_0x39ac31[_0x2022('0x10b')]('ck-suggestion-marker-'+_0x283840+_0x2022('0x15')),this[_0x2022('0x1b')]==_0x36e783&&_0x39ac31['push'](_0x2022('0xc')),{'classes':_0x39ac31,'attributes':{'data-change-id':_0x29a840}};}}),this[_0x2022('0x63')][_0x2022('0xcd')]['for']('upcast')[_0x2022('0x109')](_0x3d1329=>{_0x3d1329['on'](_0x2022('0xe8'),(_0x4552bd,_0x627a19,_0x3b89b1)=>{const _0x44d098=_0x627a19['viewItem'][_0x2022('0xb6')](0x0);if(!_0x44d098||!_0x44d098['is'](_0x2022('0xa8'),'code'))return;if(!_0x3b89b1[_0x2022('0x95')][_0x2022('0xf0')](_0x44d098,{'attributes':[_0x2022('0xd7'),_0x2022('0x39')]}))return;const _0x1361e6=_0x627a19[_0x2022('0xc1')][_0x2022('0xd8')]['nodeAfter'];_0x3b89b1[_0x2022('0xdf')][_0x2022('0x18')](_0x2022('0xd7'),_0x44d098['getAttribute'](_0x2022('0xd7')),_0x1361e6),_0x3b89b1[_0x2022('0xdf')]['setAttribute']('vid_end',_0x44d098[_0x2022('0xf3')](_0x2022('0x39')),_0x1361e6);},{'priority':_0x2022('0xa9')});}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('upcast')['add'](_0x5d5ecb=>{_0x5d5ecb['on']('element',(_0x3aabd8,_0x4e51c9,_0x327369)=>{if(!_0x327369[_0x2022('0x95')][_0x2022('0xf0')](_0x4e51c9[_0x2022('0x22')],{'attributes':[_0x2022('0xd7'),'vid_end']}))return;if(_0x4e51c9[_0x2022('0xc1')][_0x2022('0xe6')])return;const _0x782940=_0x4e51c9[_0x2022('0xc1')][_0x2022('0xd8')]['nodeAfter'];_0x782940['hasAttribute'](_0x2022('0xd7'))||_0x782940[_0x2022('0xb4')](_0x2022('0x19'))||(_0x327369[_0x2022('0xdf')]['setAttribute'](_0x2022('0xd7'),_0x4e51c9['viewItem'][_0x2022('0xf3')](_0x2022('0xd7')),_0x782940),_0x327369[_0x2022('0xdf')][_0x2022('0x18')](_0x2022('0x39'),_0x4e51c9[_0x2022('0x22')][_0x2022('0xf3')]('vid_end'),_0x782940));},{'priority':_0x2022('0xa9')});}),this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0x59'))[_0x2022('0x2f')]({'view':{'name':_0x2022('0x94'),'attributes':{'vid':!0x0}},'model':{'key':_0x2022('0x19'),'value':_0x228b94=>_0x228b94[_0x2022('0xf3')](_0x2022('0x19'))}}),this[_0x2022('0x63')]['model']['schema']['on'](_0x2022('0x48'),(_0x2d84b8,[,_0x17526f])=>{[_0x2022('0xd7'),_0x2022('0x39'),_0x2022('0x19')][_0x2022('0x26')](_0x17526f)&&(_0x2d84b8[_0x2022('0x110')]=!0x0,_0x2d84b8[_0x2022('0xe5')]());},{'priority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')]['for'](_0x2022('0xba'))[_0x2022('0x109')](_0x5886d3=>{_0x5886d3['on'](_0x2022('0x105'),(_0x3d3009,_0xd9946e,_0x5267ea)=>{if('\x20'!=_0xd9946e[_0x2022('0x5f')][_0x2022('0x32')]||_0xd9946e[_0x2022('0x5f')]['parent'][_0x2022('0xb9')]>0x1)return;if(!_0x5267ea[_0x2022('0x95')]['consume'](_0xd9946e[_0x2022('0x5f')],_0x3d3009['name']))return;const _0x65238=_0x5267ea[_0x2022('0xdf')],_0x151324=_0x5267ea[_0x2022('0x6c')]['toViewRange'](_0xd9946e[_0x2022('0x6b')]);_0x65238[_0x2022('0x6f')](_0x151324,_0x65238[_0x2022('0x123')]('span'));});}),this[_0x2022('0x63')]['conversion'][_0x2022('0x16')](_0x2022('0xba'))[_0x2022('0xe3')]({'model':_0x2022('0x92')}),this[_0x2022('0x63')][_0x2022('0x9d')]['downcastDispatcher']['on']('addMarker:revision',function(_0x2cde7){const _0x4da292=_0x2cde7['plugins'][_0x2022('0xc8')](_0x2022('0x3e'));return(_0xb9399c,_0x8986d9,_0x17dc57)=>{const _0x11b036=_0x8986d9['markerName'][_0x2022('0xe1')](':')[0x1],_0x46f3c9=_0x4da292[_0x2022('0x3d')](_0x11b036);if(!_0x46f3c9)return null;const _0x4df02c=_0x2022('0x109')==_0x46f3c9[_0x2022('0x108')]?_0x2022('0xe1'):_0x2022('0x10f');if(!_0x17dc57[_0x2022('0x95')][_0x2022('0x85')](_0x8986d9['markerRange'],_0xb9399c[_0x2022('0xb3')]))return;const _0x18d3ba=_0x8986d9[_0x2022('0x87')][_0x2022('0xd9')](),_0x10b70c=_0x8986d9[_0x2022('0x87')][_0x2022('0xd8')],_0x14eef4=_0x2cde7[_0x2022('0xc3')][_0x2022('0xb2')];let _0x445f6d=null,_0x1027ef=null,_0x5759be=!0x1,_0x328a68=!0x1;for(const _0x541173 of _0x18d3ba){const _0x1036b5=_0x541173[_0x2022('0x5f')];_0x5759be=_0x5759be||_0x14eef4[_0x2022('0x50')](_0x1036b5);const _0x83a958=_0x17dc57['mapper'][_0x2022('0x40')](_0x1036b5);if(_0x83a958&&_0x83a958[_0x2022('0x104')]('addHighlight'))return;_0x2022('0x5c')==_0x541173[_0x2022('0x108')]&&(_0x14eef4[_0x2022('0x30')](_0x1036b5)&&!_0x14eef4[_0x2022('0xc6')](_0x1036b5)&&(_0x1036b5[_0x2022('0x121')]||_0x10b70c[_0x2022('0xf7')]?_0x445f6d&&_0x445f6d[_0x2022('0xd1')]==_0x1036b5||(_0x445f6d=_0x1036b5,_0x1b3f37(_0x541173[_0x2022('0x3a')]),_0x328a68=!0x0):_0x1027ef=_0x1027ef||_0x541173[_0x2022('0x3a')]));}function _0x1b3f37(_0x3b8ab0){const _0x64c73=_0x17dc57[_0x2022('0xdf')][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0xfb')+_0x4df02c}),_0x21d919=_0x17dc57[_0x2022('0x6c')][_0x2022('0x71')](_0x3b8ab0);_0x46f3c9[_0x2022('0x32')]['isSuggestion']&&_0x17dc57[_0x2022('0xdf')][_0x2022('0x14')]('ck-suggestion-marker-'+_0x4df02c+_0x2022('0x15'),_0x64c73),_0x4da292[_0x2022('0x1b')]==_0x46f3c9&&_0x17dc57[_0x2022('0xdf')][_0x2022('0x14')]('ck-suggestion-marker--active',_0x64c73),_0x17dc57[_0x2022('0xdf')][_0x2022('0x13')](_0x21d919,_0x64c73),_0x17dc57[_0x2022('0x6c')][_0x2022('0x46')](_0x64c73,_0x8986d9[_0x2022('0x4b')]);}_0x5759be||_0x328a68||!_0x1027ef||_0x1b3f37(_0x1027ef);};}(this[_0x2022('0x63')]),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')]['editing'][_0x2022('0x37')]['on'](_0x2022('0x9c'),(_0x1d370c,_0xd2209e,_0x194f79)=>{const _0x1cb40f=_0x194f79[_0x2022('0x6c')][_0x2022('0xb0')](_0xd2209e[_0x2022('0x4b')]);if(_0x1cb40f)for(const _0x13ab47 of _0x1cb40f)(_0x13ab47[_0x2022('0x33')](_0x2022('0x7f'))||_0x13ab47[_0x2022('0x33')]('ck-suggestion-marker-merge'))&&(_0x194f79[_0x2022('0x6c')]['unbindElementFromMarkerName'](_0x13ab47,_0xd2209e['markerName']),_0x194f79[_0x2022('0xdf')][_0x2022('0x5a')](_0x13ab47));},{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')]['downcastDispatcher']['on'](_0x2022('0xa3'),(_0x7c49d0,_0x58e1d0,_0x2b4228)=>{const _0x168d97=_0x58e1d0['markerName'][_0x2022('0xe1')](':')[0x1],_0x144bc4=this[_0x2022('0x3d')](_0x168d97);if(!_0x144bc4)return null;const _0x159bca=_0x2022('0x109')==_0x144bc4[_0x2022('0x108')]?_0x2022('0xe1'):'merge';if(_0x2b4228[_0x2022('0x95')][_0x2022('0x85')](_0x58e1d0['markerRange'],_0x7c49d0[_0x2022('0xb3')]))for(const _0x2d86aa of _0x58e1d0['markerRange'][_0x2022('0x88')]()){if(!_0x2d86aa['is'](_0x2022('0xa8'),_0x2022('0x82')))continue;const _0x2402c8=_0x2b4228['writer'][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0xfb')+_0x159bca}),_0x534440=_0x2b4228[_0x2022('0x6c')][_0x2022('0x71')](this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x10c')](_0x2d86aa));_0x144bc4[_0x2022('0x32')][_0x2022('0xcb')]&&_0x2b4228[_0x2022('0xdf')][_0x2022('0x14')](_0x2022('0xfb')+_0x159bca+_0x2022('0x15'),_0x2402c8),this[_0x2022('0x1b')]==_0x144bc4&&_0x2b4228[_0x2022('0xdf')]['addClass'](_0x2022('0xc'),_0x2402c8),_0x2b4228[_0x2022('0xdf')][_0x2022('0x13')](_0x534440,_0x2402c8),_0x2b4228[_0x2022('0x6c')]['bindElementToMarker'](_0x2402c8,_0x58e1d0[_0x2022('0x4b')]);}},{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')]['on']('change',()=>{this[_0x2022('0x63')][_0x2022('0x9d')]['view'][_0x2022('0x86')](_0x5797ce=>{for(const _0x21d440 of this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0x98')]()){const _0x4b9dfa=this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x9b')][_0x2022('0xc5')](_0x21d440),_0x6a7e01=this['editor'][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x9b')]['getRoot'](_0x21d440);if(_0x6a7e01){const _0x2a1bec=_0x4b9dfa['getAttribute'](_0x2022('0xfd'));if(_0x5797ce['removeAttribute'](_0x2022('0x17'),_0x6a7e01),_0x5797ce[_0x2022('0x76')](_0x2022('0x28'),_0x6a7e01),_0x5797ce[_0x2022('0x76')]('ck-revision-history-root-remove',_0x6a7e01),_0x5797ce[_0x2022('0x76')](_0x2022('0x3c'),_0x6a7e01),_0x2a1bec){const _0x3f75d3=this[_0x2022('0x3d')](_0x2a1bec);if(!_0x3f75d3)return null;_0x5797ce[_0x2022('0x18')](_0x2022('0x17'),_0x2a1bec,_0x6a7e01),_0x5797ce['addClass'](_0x2022('0x11f')+_0x3f75d3[_0x2022('0x108')],_0x6a7e01),this[_0x2022('0x1b')]==_0x3f75d3&&_0x5797ce[_0x2022('0x14')](_0x2022('0x3c'),_0x6a7e01);}}}});}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')](_0x2022('0x59'))[_0x2022('0x119')]({'view':'comment','model':_0xd12ed9=>_0x2022('0xeb')+_0xd12ed9,'converterPriority':'highest'}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('upcast')[_0x2022('0x119')]({'view':'suggestion','model':_0x3af11a=>_0x2022('0x38')+_0x3af11a,'converterPriority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')]['for']('dataDowncast')[_0x2022('0xe3')]({'model':'revision-suggestion','view':_0x510049=>({'name':'suggestion:'+_0x510049,'group':_0x2022('0xbe')}),'converterPriority':_0x2022('0xa5')}),this[_0x2022('0x63')][_0x2022('0xcd')][_0x2022('0x16')]('editingDowncast')[_0x2022('0x61')]({'model':_0x2022('0xbe'),'view':_0x14783b=>{const _0x1eaaba=_0x14783b['markerName'][_0x2022('0xe1')](':')[0x1];return _0x2022('0xc9')!=_0x1eaaba&&_0x2022('0x1a')!=_0x1eaaba?null:{'classes':[_0x2022('0x89'),_0x2022('0x44')+_0x1eaaba]};}}),this['editor'][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0x7a'),et(this[_0x2022('0x63')],_0x2022('0x10f')),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0x122'),et(this[_0x2022('0x63')],_0x2022('0xe1')),{'priority':_0x2022('0xa2')}),this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0x37')]['on'](_0x2022('0xd2'),(_0x3fa606,_0x2ab38a,_0x27dede)=>{const _0x4bc2da=_0x27dede[_0x2022('0x6c')][_0x2022('0xb0')](_0x2ab38a[_0x2022('0x4b')]);if(_0x4bc2da)for(const _0x39d22b of _0x4bc2da)_0x39d22b['is'](_0x2022('0x99'))&&(_0x27dede['mapper'][_0x2022('0x60')](_0x39d22b,_0x2ab38a[_0x2022('0x4b')]),_0x27dede[_0x2022('0xdf')][_0x2022('0x5a')](_0x39d22b));},{'priority':_0x2022('0xa2')});}[_0x2022('0x3d')](_0x3f2752){return this[_0x2022('0x43')][_0x2022('0xc8')](_0x3f2752);}[_0x2022('0x83')](_0x398f0d){return this[_0x2022('0x117')]&&this[_0x2022('0x117')]['destroy'](),this['_changeView']=new _0x1beb22(this['editor'][_0x2022('0xd6')],_0x398f0d),this[_0x2022('0x117')];}['_initInteractions'](){this['editor'][_0x2022('0xc3')][_0x2022('0x9b')]['selection'][_0x2022('0x24')](_0x2022('0x92')),this['on'](_0x2022('0x68'),(_0x54b171,_0x200d6f,_0x4abebb,_0x2869e7)=>{_0x2869e7&&this[_0x2022('0x70')][_0x2022('0x5a')](_0x2869e7),_0x4abebb&&(this[_0x2022('0x70')]['add']({'view':_0x4abebb,'stackId':_0x2022('0xa4'),'position':{'target':()=>{const _0x55ce82=this[_0x2022('0x63')][_0x2022('0x9d')],_0x1f2de6=this[_0x2022('0x3d')](_0x4abebb[_0x2022('0xf4')]);let _0x1d1859;if(_0x1f2de6[_0x2022('0x32')][_0x2022('0xd3')]){const _0x55ec03=_0x55ce82['view']['getDomRoot'](_0x1f2de6[_0x2022('0x3b')]);_0x1d1859=Array[_0x2022('0x4f')](_0x55ec03['getClientRects']());}else{const _0x5b7d74=this[_0x2022('0x63')][_0x2022('0xc3')]['markers'][_0x2022('0xc8')](_0x2022('0x6d')+_0x4abebb[_0x2022('0xf4')]);_0x1d1859=Array[_0x2022('0x4f')](_0x55ce82[_0x2022('0x6c')]['markerNameToElements'](_0x5b7d74[_0x2022('0xb3')]))[_0x2022('0xd4')](_0x48614c=>_0x55ce82[_0x2022('0xe2')]['domConverter'][_0x2022('0xfa')](_0x48614c))['map'](_0x13a81a=>Array[_0x2022('0x4f')](_0x13a81a[_0x2022('0xe0')]()))[_0x2022('0xdc')]();}if(!this[_0x2022('0x4a')])return _0x1d1859[0x0];return _0x1d1859['find'](_0x4575b6=>_0x4575b6[_0x2022('0xc2')]-0x3<=this[_0x2022('0x4a')]['y']&&_0x4575b6[_0x2022('0xe')]+0x3>=this[_0x2022('0x4a')]['y']&&_0x4575b6[_0x2022('0x23')]-0x3<=this[_0x2022('0x4a')]['x']&&_0x4575b6[_0x2022('0xb1')]+0x3>=this[_0x2022('0x4a')]['x'])||_0x1d1859[0x0];}}}),this[_0x2022('0x70')]['showStack'](_0x2022('0xa4')));}),this['on'](_0x2022('0x101'),(_0x3adf4a,_0x146452,_0x10b536,_0x23228f)=>{this['activeView']=_0x10b536?this[_0x2022('0x83')](_0x10b536):null,this[_0x2022('0x63')]['model'][_0x2022('0x86')](()=>{const _0x15bef5=this['editor'][_0x2022('0x9d')];_0x23228f&&(_0x23228f[_0x2022('0x32')][_0x2022('0xd3')]?_0x15bef5['view']['change'](_0x1297c9=>{_0x1297c9[_0x2022('0x76')](_0x2022('0x3c'),_0x15bef5['view'][_0x2022('0x9b')]['getRoot'](_0x23228f[_0x2022('0x3b')]));}):_0x15bef5[_0x2022('0x84')]('revision:'+_0x23228f['id'])),_0x10b536&&(_0x10b536[_0x2022('0x32')][_0x2022('0xd3')]?_0x15bef5['view'][_0x2022('0x86')](_0x40c289=>{_0x40c289[_0x2022('0x14')]('ck-revision-history-root--active',_0x15bef5[_0x2022('0xe2')][_0x2022('0x9b')]['getRoot'](_0x10b536[_0x2022('0x3b')]));}):_0x15bef5[_0x2022('0x84')](_0x2022('0x6d')+_0x10b536['id']));});}),this[_0x2022('0xae')](this['editor'][_0x2022('0x9d')]['view']['document'],_0x2022('0xea'),(_0x2b4d3b,_0x25f811)=>{if(this[_0x2022('0x1b')])return;const _0x52f5a8=this[_0x2022('0x2e')](_0x25f811[_0x2022('0x11b')]),_0x11d813=this[_0x2022('0x43')][_0x2022('0xc8')](_0x52f5a8);_0x11d813?(this[_0x2022('0x4a')]={'x':_0x25f811[_0x2022('0x10a')]['x'],'y':_0x25f811[_0x2022('0x10a')]['y']},this[_0x2022('0x103')]=this['_getViewForChange'](_0x11d813)):(this[_0x2022('0x4a')]=null,this[_0x2022('0x103')]=null);}),this[_0x2022('0xae')](this[_0x2022('0x63')][_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x9b')],'mousedown',(_0x40129b,_0x3e9a78)=>{const _0x3f96a5=this[_0x2022('0x2e')](_0x3e9a78['target']),_0x421e9b=this['_changeIdToChange']['get'](_0x3f96a5);_0x421e9b?(this[_0x2022('0x4a')]={'x':_0x3e9a78[_0x2022('0x10a')]['x'],'y':_0x3e9a78[_0x2022('0x10a')]['y']},_0x421e9b===this[_0x2022('0x1b')]?this['_balloon'][_0x2022('0x1f')]():this[_0x2022('0x1b')]=_0x421e9b):(this[_0x2022('0x4a')]=null,this[_0x2022('0x1b')]=null);});}[_0x2022('0x2e')](_0x1d4699){do{const _0x1baa19=_0x1d4699['getAttribute'](_0x2022('0x17'));if(_0x1baa19)return _0x1baa19;_0x1d4699=_0x1d4699['parent'];}while(_0x1d4699);return null;}[_0x2022('0x10')](){this[_0x2022('0x63')][_0x2022('0xc3')][_0x2022('0x86')](_0x264906=>{for(const _0x467b4b of this['editor']['model'][_0x2022('0xc7')])_0x264906['removeMarker'](_0x467b4b);});}}function et(_0xdd5a9a,_0x4c66c9){return(_0x242300,_0x5f0041,_0x13a9d2)=>{if(!_0x13a9d2[_0x2022('0x95')][_0x2022('0x85')](_0x5f0041[_0x2022('0x87')],_0x242300[_0x2022('0xb3')]))return;const _0xf2a766=_0x5f0041[_0x2022('0x87')][_0x2022('0xd9')](),_0x3b3301=_0x5f0041[_0x2022('0x87')][_0x2022('0xd8')],_0x1cfc9a=_0xdd5a9a[_0x2022('0xc3')][_0x2022('0xb2')];let _0x33b74f=null,_0x17f63d=null,_0x2dc9ef=!0x1,_0x4bfa0b=!0x1;for(const _0x5108a0 of _0xf2a766){const _0x561a93=_0x5108a0[_0x2022('0x5f')];_0x2dc9ef=_0x2dc9ef||_0x1cfc9a['isContent'](_0x561a93);const _0x296da4=_0x13a9d2[_0x2022('0x6c')][_0x2022('0x40')](_0x561a93);if(_0x296da4&&_0x296da4['getCustomProperty']('addHighlight'))return;_0x2022('0x5c')==_0x5108a0['type']&&(_0x1cfc9a[_0x2022('0x30')](_0x561a93)&&!_0x1cfc9a['isLimit'](_0x561a93)&&(_0x561a93[_0x2022('0x121')]||_0x3b3301[_0x2022('0xf7')]?_0x33b74f&&_0x33b74f['parent']==_0x561a93||(_0x33b74f=_0x561a93,_0x339645(_0x5108a0['previousPosition']),_0x4bfa0b=!0x0):_0x17f63d=_0x17f63d||_0x5108a0[_0x2022('0x3a')]));}function _0x339645(_0x4c19d1){const _0x4a1852=_0x13a9d2[_0x2022('0x6c')]['toViewPosition'](_0x4c19d1),_0x14a716=_0x13a9d2[_0x2022('0xdf')][_0x2022('0x5e')](_0x2022('0x94'),{'class':_0x2022('0x44')+_0x4c66c9});_0x13a9d2[_0x2022('0xdf')]['insert'](_0x4a1852,_0x14a716),_0x13a9d2['mapper'][_0x2022('0x46')](_0x14a716,_0x5f0041[_0x2022('0x4b')]);}_0x2dc9ef||_0x4bfa0b||!_0x17f63d||_0x339645(_0x17f63d);};}export class RestoreRevisionCommand extends _0x356bbb{constructor(_0x43147c){super(_0x43147c);const _0x1217df=_0x43147c['plugins'][_0x2022('0xc8')](d);this[_0x2022('0x118')]=!0x1,this['listenTo'](_0x1217df,_0x2022('0xc4'),()=>this[_0x2022('0x91')]()),this[_0x2022('0xae')](_0x1217df,_0x2022('0x49'),()=>this[_0x2022('0x91')]());}['execute'](){const _0x3c66ab=this[_0x2022('0x63')],_0x26f447=_0x3c66ab[_0x2022('0xad')][_0x2022('0xc8')](d),_0x1ee7cd=_0x26f447[_0x2022('0xf2')]?_0x26f447[_0x2022('0x1d')][_0x2022('0xd5')]:null;_0x3c66ab[_0x2022('0x1')][_0x2022('0xc8')]('revisionHistory')['restoreRevisionCallback'](_0x1ee7cd);}[_0x2022('0x91')](){const {isReady:_0x3b493f,isEnabled:_0x1949da}=this['editor'][_0x2022('0xad')][_0x2022('0xc8')](d);this[_0x2022('0x111')]=_0x3b493f&&_0x1949da;}}export class ShowChangeCommand extends _0x356bbb{constructor(_0xb37ca8,{direction:_0x5ee352}){super(_0xb37ca8);const _0x43d360=_0xb37ca8[_0x2022('0xad')][_0x2022('0xc8')](d);this[_0x2022('0x118')]=!0x1,this[_0x2022('0x93')]=_0x2022('0xf6')===_0x5ee352?0x1:-0x1,this[_0x2022('0xae')](_0x43d360,_0x2022('0xc4'),()=>this['refresh']()),this['listenTo'](_0x43d360,'change:isEnabled',()=>this[_0x2022('0x91')]()),this[_0x2022('0xae')](_0x43d360,_0x2022('0x101'),()=>this[_0x2022('0x91')]());}[_0x2022('0xd')](){const _0x1d3358=this[_0x2022('0x63')],_0x189b72=_0x1d3358[_0x2022('0xad')][_0x2022('0xc8')](d),{isNavigationMode:_0x3a93e0,currentChangeNumber:_0x1a35a}=_0x189b72;let _0x8e3ba0;if(_0x189b72[_0x2022('0x1b')]=_0x3a93e0?_0x189b72[_0x2022('0x1d')][_0x2022('0x113')][_0x2022('0xc8')](_0x1a35a+this['_step']):_0x189b72['diff'][_0x2022('0x113')][_0x2022('0x2d')],_0x189b72[_0x2022('0x1b')][_0x2022('0x32')][_0x2022('0xd3')])_0x8e3ba0=_0x1d3358[_0x2022('0x9d')][_0x2022('0xe2')][_0x2022('0x8a')](_0x189b72[_0x2022('0x1b')][_0x2022('0x3b')]);else{const _0x17f3eb=_0x1d3358[_0x2022('0xc3')][_0x2022('0xc7')]['get']('revision:'+_0x189b72['activeChange']['id']);_0x8e3ba0=_0x842571(_0x1d3358[_0x2022('0x9d')],_0x17f3eb);}_0x5ce67b({'target':_0x8e3ba0,'viewportOffset':0x28});}[_0x2022('0x91')](){const {isNavigationMode:_0x1045f2,currentChangeNumber:_0x2453a2,numberOfChanges:_0x1cd02a,isReady:_0x231c67,isEnabled:_0x5e144c}=this['editor'][_0x2022('0xad')]['get'](d);this['isEnabled']=!!(_0x5e144c&&_0x231c67&&_0x1cd02a)&&(!_0x1045f2||(0x1===this['_step']?_0x2453a2<_0x1cd02a-0x1:_0x2453a2>0x0));}}
23
+ const _0x1777=['children','markersStart','splice','diffData','target','mousedown','downcastDispatcher','end','toViewPosition','markerNameToElements','markerName','_fixObsoleteTags','comment','rootName','maxOffset','revisionHistoryAttachChange','getClientRects','currentChangeNumber','change','createRevision','reconvertMarker','userId','_markSuggestions','find','isSuggestion','createAttributeElement','deletions','resolve','toViewElement','_setDistance','addRevisionData','merge','string','forEach','revision-suggestion:','filter','removeClass','updatePosition','nodeAfter','_revisions','addRevision','then','item','_step','init','isRemoved','error','elementToAttribute','isOnRoot','isAttached','getItems','values','_sortAndFilterDiffChanges','shift','revision-suggestion','showStack','observeMarkers','nextSibling','ck-revision-history-root--active','includes','ck-suggestion-preview-marker','removeAttribute','addMarker:revision-suggestion:deletion','addClass','return','dataToMarker','enqueueChange','dataDowncast','mapper','suggestion:','refresh','sort','isRemoveSuggestion','ck-suggestion-marker--active','POSITIVE_INFINITY','revision-viewer','getChild','highest','toViewRange','length','markersEnd','has','change:isReady','top','get','vid','repository','changes','restoreRevisionCallback','_changeView','endIndex','isEqual','_appendChild','startsWith','activeChange','from','_makeTape','affectsData','toModel','span','map','insertion','-new','isAtEnd','_processTape','isReady','isContent','_markMismatchedRemovedTags','offsetSize','_setChanges','_markMarkers','getIndex','isCollapsed','data','keys','parent','hasAttribute','activeView','data-revision-','forward','previousPosition','markers','test','_initInteractions','_balloon','distance','catch','getRevisionData','getDomRoot','text','isAtStart','editor','conversion','split','flat','createUIElement','editing','getAttribute','destroy','isAdded','_findChangeIdFromDomTarget','pairId','RevisionsRepository','push','element:pre','forceDisabled','isLimit','vid_end','_removeUnsupportedChanges','newRevisionId','deletion','addHighlight','processor','elementEnd','createRange','isEnabled','markerToHighlight','add','setAttribute','modelRange','bottom','ck-suggestion-marker-','uiElement','ck-suggestion-preview-marker-','_getRevisionsRange','createRangeIn','restoreRevision','isObject','_getChangeFromId','viewItem','getCustomProperty','elementStart','editingDowncast','isNavigationMode','_markInsertions','attributes','_cleanUp','ck-revision-history-root-','ck-suggestion-marker-split','_getDiff','document','_removeRevisionMarkers','model','markerRange','commands','compare','upcast','unbindElementFromMarkerName','view','left','name','attachChange','_makeModelFromTape','code','loadRevisionData','getRootNames','object','RevisionViewer','_makeModelFromViewString','revision-comment:','checkAttribute','revision:','insert','unshift','_refreshStartEndIndex','_removeMissingPairs','startIndex','_joinTapes','findIndex','revisionHistoryLabel','getRevision','isBefore','isIncorrect','ck-revision-history-root-add','consumable','element','nextPosition','removeMarker:revision','markerToData','_threeWayMerge','domConverter','indexOf','pop','for','delete','plugins','WidgetToolbarRepository','remove','change:activeView','writer','isAfter','softBreak','revision-end','set','_update','start','attributesAfter','attribute:vid','changeId','bindElementToMarker','mouseover','getAttributes','diff','ck-suggestion-marker-merge','ck-suggestion-marker','concat','next','config','selection','slice','consume','insertions','_activeViewTarget','getRoot','high','enableReadOnlyMode','change:numberOfChanges','_setConversion','adapter','index','listenTo','data-change-id','side','abs','type','vid_start','createPositionFromPath','revisionHistory','revision','useFillerType','isBlock','_changeIdToChange','suggestion','detachRoot','addMarker:revision-suggestion:insertion','mapViewToDom','getWalker','bind','_getViewForChange','hasClass','revision-start','change:activeChange','createPositionBefore','low','domEvent','_cleanMarkers','schema','isInline','isAddSuggestion','change:isEnabled','level'];(function(_0x136578,_0x177717){const _0x88890b=function(_0x2c71c2){while(--_0x2c71c2){_0x136578['push'](_0x136578['shift']());}};_0x88890b(++_0x177717);}(_0x1777,0xb5));const _0x8889=function(_0x136578,_0x177717){_0x136578=_0x136578-0x0;let _0x88890b=_0x1777[_0x136578];return _0x88890b;};import{Plugin as _0x2c0c97,Command as _0x53c07f}from'ckeditor5/src/core.js';import{scrollViewportToShowTarget as _0x1c74cd}from'ckeditor5/src/utils.js';import{ContextualBalloon as _0x41155c}from'ckeditor5/src/ui.js';import{DocumentFragment as _0x15ab90,Element as _0xed5a84,Text as _0x1b7bcb,ViewDocumentFragment as _0x36a454,ViewText as _0x20cdb8,ViewElement as _0x5b4354,ViewContainerElement as _0x1c8f8c,ViewAttributeElement as _0x43ad0d,ViewEmptyElement as _0x3b63bb,ViewRawElement as _0x1a479a,ViewUIElement as _0x2baa8a}from'ckeditor5/src/engine.js';import{Users as _0x3151f3,getMarkerDomElement as _0x466862}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x3bd9c5 from'./ui/revisionviewer/changedetailsview.js';import _0xee87b1 from'./revisionsrepository.js';import _0x43f9a8 from'./changeitem.js';import{default as _0x453cae}from'./revisiondiff.js';import'../theme/revisionviewer.css';import{cloneDeep as _0x4cb777}from'lodash-es';const tt={'c':_0x1c8f8c,'a':_0x43ad0d,'e':_0x3b63bb,'r':_0x1a479a,'u':_0x2baa8a};export default class d extends _0x2c0c97{static get['pluginName'](){return'RevisionViewer';}static get['requires'](){return[_0x3151f3,_0x41155c,_0xee87b1];}constructor(_0x1cf7a7){super(_0x1cf7a7),this[_0x8889('0xc4')]=this[_0x8889('0xf1')][_0x8889('0x2c')][_0x8889('0xc2')](_0x8889('0xfc')),this[_0x8889('0x34')](_0x8889('0xcc'),null),this[_0x8889('0x34')](_0x8889('0xe3'),null),this['_activeViewTarget']=null,this[_0x8889('0x34')](_0x8889('0x3d'),null),this[_0x8889('0x34')](_0x8889('0xd7'),!0x1),this['set']('isEnabled',!0x0),this['on'](_0x8889('0x6c'),(_0x43f588,_0x1879f7,_0xc1e726)=>{this[_0x8889('0xcc')]=null,this[_0x8889('0xe3')]=null,this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x80')](_0x3ff6f6=>{for(const _0x33dad7 of this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x122')]['roots'])_0xc1e726?_0x3ff6f6[_0x8889('0x92')]('ck-editor__editable__overlay',_0x33dad7):_0x3ff6f6[_0x8889('0xad')]('ck-editor__editable__overlay',_0x33dad7);});}),this[_0x8889('0x60')](_0x8889('0x11b'))['to'](this,_0x8889('0xcc'),_0x37e1a0=>null!==_0x37e1a0),this[_0x8889('0x60')](_0x8889('0x7f'))['to'](this,_0x8889('0xd7'),this,'diff',this,'activeChange',(_0x342212,_0x3a7cc9,_0x462cb2)=>_0x342212&&_0x462cb2?_0x3a7cc9[_0x8889('0xc5')][_0x8889('0xdd')](_0x462cb2):0x0),this['bind']('numberOfChanges')['to'](this,_0x8889('0xd7'),this,_0x8889('0x3d'),(_0x882d98,_0x4ad344)=>_0x882d98?_0x4ad344['changes'][_0x8889('0xbd')]:0x0),this[_0x8889('0xc7')]=null,this['_changeIdToChange']=new Map(),this[_0x8889('0x4d')]=null,this[_0x8889('0xea')]=this[_0x8889('0xf1')]['plugins'][_0x8889('0xc2')](_0x41155c);}[_0x8889('0x9a')](){const _0x116827=this['editor'],_0x1f02f3=new ShowChangeCommand(_0x116827,{'direction':'backward'}),_0x3997ba=new ShowChangeCommand(_0x116827,{'direction':'forward'});(_0x116827[_0x8889('0x3')][_0x8889('0x10b')]('showPreviousChange',_0x1f02f3),_0x116827[_0x8889('0x3')][_0x8889('0x10b')]('showNextChange',_0x3997ba),_0x116827[_0x8889('0x3')][_0x8889('0x10b')](_0x8889('0x114'),new RestoreRevisionCommand(_0x116827)),this['on'](_0x8889('0x4b'),()=>{_0x1f02f3[_0x8889('0xb4')](),_0x3997ba['refresh']();}),this[_0x8889('0x4c')](),this[_0x8889('0xe9')](),_0x116827[_0x8889('0x4a')](_0x8889('0xb9')),_0x116827[_0x8889('0x2c')][_0x8889('0xbf')](_0x8889('0x2d')))&&_0x116827[_0x8889('0x2c')][_0x8889('0xc2')]('WidgetToolbarRepository')[_0x8889('0xff')](_0x8889('0xb9'));}async[_0x8889('0xed')](_0x4658d4){await this[_0x8889('0xd')](_0x4658d4);const _0x3ebff4={};for(const _0x2fcd48 in _0x4658d4[_0x8889('0x71')]){if(_0x4658d4[_0x8889('0x71')][_0x2fcd48][_0x8889('0xa')]&&!_0x4658d4[_0x8889('0x71')][_0x2fcd48][_0x8889('0xa')][_0x8889('0x9f')])continue;const _0x2296f0=this[_0x8889('0x0')](JSON['parse'](_0x4658d4[_0x8889('0x71')][_0x2fcd48][_0x8889('0x46')])),_0x40fa0a=this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x122')],_0x3b4f9d=new _0x36a454(_0x40fa0a,_0x2296f0[_0x8889('0xd2')](_0x41c7d5=>this['_getViewObj'](_0x41c7d5)));this[_0x8889('0xf1')][_0x8889('0xdf')]['processor'][_0x8889('0x58')]('marked'),_0x3ebff4[_0x2fcd48]=this[_0x8889('0xf1')][_0x8889('0xdf')][_0x8889('0x106')]['toData'](_0x3b4f9d),this[_0x8889('0xf1')]['data'][_0x8889('0x106')]['useFillerType']('default');}return _0x3ebff4;}async['getRevisionRootsAttributes'](_0x527e53){await this[_0x8889('0xd')](_0x527e53);const _0x20aa3e={};for(const _0x3ebafa in _0x527e53[_0x8889('0x71')])_0x527e53[_0x8889('0x71')][_0x3ebafa]['attachChange']&&!_0x527e53[_0x8889('0x71')][_0x3ebafa][_0x8889('0xa')]['isAttached']||(_0x20aa3e[_0x3ebafa]=_0x527e53[_0x8889('0x71')][_0x3ebafa][_0x8889('0x37')]||{});return _0x20aa3e;}[_0x8889('0x0')](_0x2bab15){return(_0x2bab15=_0x2bab15[_0x8889('0x91')](_0x54f38d=>!_0x54f38d[_0x8889('0x9')]||_0x8889('0x63')!==_0x54f38d[_0x8889('0x9')]&&_0x8889('0x33')!==_0x54f38d[_0x8889('0x9')]))[_0x8889('0x8f')](_0x3e268b=>{_0x8889('0x8e')!=typeof _0x3e268b&&(_0x3e268b[_0x8889('0x6e')]=this[_0x8889('0x0')](_0x3e268b['children']),_0x3e268b[_0x8889('0x11d')]=_0x3e268b[_0x8889('0x11d')]['filter'](_0x17ce05=>!_0x17ce05[0x0]['startsWith'](_0x8889('0xe4'))));}),_0x2bab15;}async[_0x8889('0x4')](_0x5a7b1c,_0x25257b,_0x5af36b=!0x1){if(!this[_0x8889('0x109')])return;const _0x5c6306=this['diff'],_0x28bafc=this[_0x8889('0xc4')],_0x368e10=_0x8889('0x8e')==typeof _0x5a7b1c?_0x28bafc[_0x8889('0x1d')](_0x5a7b1c):_0x5a7b1c,_0xae4680='string'==typeof _0x25257b?_0x28bafc[_0x8889('0x1d')](_0x25257b):_0x25257b,_0x4a6838=_0x368e10['id'],_0x3f7209=_0xae4680?_0xae4680['id']:null;if(!_0x5af36b&&this[_0x8889('0x3d')]&&this[_0x8889('0x3d')][_0x8889('0x103')]===_0x4a6838&&this[_0x8889('0x3d')]['oldRevisionId']===_0x3f7209)return Promise['resolve']();this[_0x8889('0xd7')]=!0x1,this[_0x8889('0xe3')]=null,this[_0x8889('0xcc')]=null,this['diff']=new _0x453cae(_0x4a6838,_0x3f7209);const _0x26fbcb=this[_0x8889('0x112')](_0x368e10,_0xae4680,!0x0)[_0x8889('0xd2')](_0xd58ecf=>this[_0x8889('0xd')](_0xd58ecf));return _0x26fbcb[_0x8889('0xfd')](new Promise(_0x1b62f0=>{setTimeout(_0x1b62f0,0x14);})),Promise['all'](_0x26fbcb)[_0x8889('0x97')](()=>{if(!this['isEnabled'])return;this[_0x8889('0x11e')]();const _0x4a17ac=this[_0x8889('0x121')](_0x4a6838,_0x3f7209);for(const _0x5ddd17 of _0x4a17ac[_0x8889('0xc5')])this[_0x8889('0x5a')][_0x8889('0x34')](_0x5ddd17['id'],_0x5ddd17);this['editor'][_0x8889('0x1')][_0x8889('0xb0')]({'isUndoable':!0x1},_0x1c8aff=>{for(const _0x442347 of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0xe')]())_0x1c8aff[_0x8889('0x5c')](_0x442347);for(const _0x19dda7 of Object[_0x8889('0xe0')](_0x4a17ac['model'])){const _0x1c7ee6=_0x1c8aff['addRoot'](_0x19dda7);for(const _0x4f6db9 of Object[_0x8889('0xe0')](_0x4a17ac[_0x8889('0x11d')][_0x19dda7]))_0x1c8aff[_0x8889('0x10c')](_0x4f6db9,_0x4a17ac[_0x8889('0x11d')][_0x19dda7][_0x4f6db9],_0x1c7ee6);_0x1c8aff[_0x8889('0x15')](_0x4a17ac[_0x8889('0x1')][_0x19dda7],_0x1c7ee6,0x0);}}),this[_0x8889('0x3d')][_0x8889('0xdb')](this[_0x8889('0xa2')](_0x4a17ac[_0x8889('0xc5')])),this['isReady']=!0x0;})[_0x8889('0xec')](_0xb59d07=>{console[_0x8889('0x9c')](_0xb59d07),this[_0x8889('0x11e')](),_0x5c6306&&(this[_0x8889('0x3d')]=_0x5c6306),this['isReady']=!0x0;});}[_0x8889('0x8c')](_0x471a76,_0x37050a){const _0x4168c7=this[_0x8889('0xc4')][_0x8889('0x81')](_0x471a76);return _0x4168c7['on'](_0x8889('0x35'),(_0xa3b70c,_0x5c3794,_0x53f188)=>_0x37050a(_0x5c3794,_0x53f188,_0x4168c7)),this['repository'][_0x8889('0x96')](_0x4168c7),_0x4168c7;}[_0x8889('0xd')](_0x4d5292){if(!_0x4d5292||_0x4d5292[_0x8889('0x71')])return Promise[_0x8889('0x89')]();{const _0x378b6d=this[_0x8889('0xf1')][_0x8889('0x42')][_0x8889('0xc2')]('collaboration.channelId');return this[_0x8889('0x4d')]['getRevision']({'channelId':_0x378b6d,'revisionId':_0x4d5292['id']})[_0x8889('0x97')](_0x3f15d9=>{_0x4d5292['_update']({'diffData':_0x3f15d9[_0x8889('0x71')]},!0x0);});}}[_0x8889('0x11e')](){this['activeChange']=null,this[_0x8889('0x68')](),this[_0x8889('0xc7')]&&this[_0x8889('0xc7')][_0x8889('0xf8')](),this['_changeView']=null,this[_0x8889('0x5a')]['clear'](),this[_0x8889('0xf1')]['model']['enqueueChange']({'isUndoable':!0x1},_0x4cdd65=>{for(const _0x5be85b of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0xe')]())_0x4cdd65[_0x8889('0x5c')](_0x5be85b);});}[_0x8889('0xa2')](_0x4a6fa6){const _0x1c5a39=[],_0x49c5a3=new Map();for(const _0x233490 of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0xe')]()){const _0x4190d4=this['editor'][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0xee')](_0x233490);if(!_0x4190d4)continue;const _0xcaf9f9=_0x4190d4[_0x8889('0x7e')]()[_0x8889('0x98')](0x0);_0xcaf9f9&&(_0x1c5a39['push'](_0x233490),_0x49c5a3['set'](_0x233490,_0xcaf9f9));}return _0x1c5a39['sort']((_0x52f1f7,_0x389cf2)=>{const _0x479d24=_0x49c5a3[_0x8889('0xc2')](_0x52f1f7),_0x473e7a=_0x49c5a3[_0x8889('0xc2')](_0x389cf2);return _0x479d24['y']-_0x473e7a['y']||_0x479d24['x']-_0x473e7a['x'];}),(_0x4a6fa6=_0x4a6fa6[_0x8889('0x91')](_0x302ec4=>_0x1c5a39['includes'](_0x302ec4[_0x8889('0x7b')])))[_0x8889('0xb5')]((_0x3131b2,_0x54ef8b)=>_0x1c5a39[_0x8889('0x28')](_0x3131b2['rootName'])-_0x1c5a39['indexOf'](_0x54ef8b[_0x8889('0x7b')])),_0x4a6fa6;}[_0x8889('0xce')](_0x47aca2){const _0x4adad4=Array['from'](_0x47aca2[_0x8889('0xe7')])[_0x8889('0x91')](([_0x2077be,_0xa8e793])=>_0x2077be[_0x8889('0xcb')](_0x8889('0x14'))&&!_0xa8e793[_0x8889('0xde')]),_0x3f7e98=Array[_0x8889('0xcd')](this['editor'][_0x8889('0x1')][_0x8889('0x113')](_0x47aca2)[_0x8889('0x5f')]({'singleCharacters':!0x0}));if(0x0!=_0x4adad4['length'])for(const _0x4366a6 of _0x3f7e98){const [_0x36dd66,_0x146491]=_0x4adad4[0x0],[,_0x4aaae2,_0x134377]=_0x36dd66['split'](':');if(_0x146491[_0x8889('0x75')][_0x8889('0xc9')](_0x4366a6[_0x8889('0x23')])&&_0x4adad4[_0x8889('0xa3')](),(_0x4366a6['previousPosition'][_0x8889('0xc9')](_0x146491[_0x8889('0x36')])||_0x4366a6['previousPosition'][_0x8889('0x31')](_0x146491[_0x8889('0x36')]))&&(_0x8889('0xd3')==_0x4aaae2?_0x4366a6[_0x8889('0xf9')]={'userId':_0x134377}:_0x8889('0x104')==_0x4aaae2&&(_0x4366a6[_0x8889('0x9b')]={'userId':_0x134377})),0x0==_0x4adad4[_0x8889('0xbd')])break;}return _0x3f7e98;}['_refreshStartEndIndex'](_0x214250){const _0x4344b7=new Map();for(let _0x298976=0x0;_0x298976<_0x214250[_0x8889('0xbd')];_0x298976++)_0x8889('0xef')===_0x214250[_0x298976][_0x8889('0x53')]?(_0x214250[_0x298976][_0x8889('0x98')][_0x8889('0x19')]=_0x298976,_0x214250[_0x298976]['item'][_0x8889('0xc8')]=_0x298976):(_0x8889('0x119')===_0x214250[_0x298976][_0x8889('0x53')]?_0x214250[_0x298976][_0x8889('0x98')][_0x8889('0x19')]=_0x298976:_0x8889('0x107')===_0x214250[_0x298976][_0x8889('0x53')]&&(_0x214250[_0x298976][_0x8889('0x98')][_0x8889('0xc8')]=_0x298976),_0x4344b7[_0x8889('0x34')](_0x214250[_0x298976]['id'],_0x298976));for(const _0x4dd838 of _0x4344b7[_0x8889('0xa1')]())'elementStart'===_0x214250[_0x4dd838][_0x8889('0x53')]?_0x214250[_0x4dd838][_0x8889('0x98')][_0x8889('0xc8')]=_0x4344b7[_0x8889('0xc2')](_0x214250[_0x4dd838][_0x8889('0xfb')]):_0x8889('0x107')===_0x214250[_0x4dd838][_0x8889('0x53')]&&(_0x214250[_0x4dd838][_0x8889('0x98')]['startIndex']=_0x4344b7['get'](_0x214250[_0x4dd838]['pairId']));}[_0x8889('0xd6')](_0x404aa3){for(let _0x5847ea=0x0;_0x5847ea<_0x404aa3[_0x8889('0xbd')];_0x5847ea++){if('elementStart'===_0x404aa3[_0x5847ea][_0x8889('0x53')])_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0x19')]=_0x5847ea;else{if(_0x8889('0x107')===_0x404aa3[_0x5847ea][_0x8889('0x53')]){_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0xc8')]=_0x5847ea;const _0x1d434b=_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0x19')];_0x404aa3[_0x1d434b][_0x8889('0xfb')]=_0x404aa3[_0x5847ea]['id'],_0x404aa3[_0x5847ea]['pairId']=_0x404aa3[_0x1d434b]['id'];}else _0x404aa3[_0x5847ea][_0x8889('0x98')]['startIndex']=_0x5847ea,_0x404aa3[_0x5847ea][_0x8889('0x98')][_0x8889('0xc8')]=_0x5847ea,_0x404aa3[_0x5847ea][_0x8889('0xfb')]=null;}_0x404aa3[_0x5847ea][_0x8889('0x6f')]||(_0x404aa3[_0x5847ea][_0x8889('0x6f')]=[],_0x404aa3[_0x5847ea][_0x8889('0xbe')]=[]);}}[_0x8889('0x11c')](_0x2414d5,_0x2bb674){const _0x35c407=_0x2414d5[_0x8889('0x91')](_0x4d5daa=>!_0x4d5daa[_0x8889('0xf9')]);for(let _0x4e032d=0x0;_0x4e032d<_0x2bb674[_0x8889('0xbd')];_0x4e032d++)_0x2bb674[_0x4e032d][_0x8889('0xf9')]&&(_0x35c407[_0x4e032d]['isAdded']=_0x2bb674[_0x4e032d][_0x8889('0xf9')]);}[_0x8889('0x11')](_0x220b2c){const _0xc7cbbd=JSON['parse'](_0x220b2c),_0x29cd25=this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x122')],_0x23f890=new _0x36a454(_0x29cd25,_0xc7cbbd['map'](_0x1942ba=>this['_getViewObj'](_0x1942ba)));return this[_0x8889('0xf1')][_0x8889('0xdf')][_0x8889('0xd0')](_0x23f890);}['_getViewObj'](_0x2717e4){const _0x31cf1c=this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x122')];if(_0x8889('0x8e')==typeof _0x2717e4)return new _0x20cdb8(_0x31cf1c,_0x2717e4);{const _0x140f1d=_0x2717e4[_0x8889('0x6e')][_0x8889('0xd2')](_0x3784ac=>this['_getViewObj'](_0x3784ac));return new(tt[_0x2717e4[(_0x8889('0x53'))]]||_0x5b4354)(_0x31cf1c,_0x2717e4[_0x8889('0x9')],_0x2717e4[_0x8889('0x11d')],_0x140f1d);}}['_getDiff'](_0x221111,_0x566b31=null){const _0x1bc5cb=this['repository'][_0x8889('0x1d')](_0x221111),_0x2ca1f7=_0x566b31?this[_0x8889('0xc4')][_0x8889('0x1d')](_0x566b31):null,_0x44b169=this[_0x8889('0x112')](_0x1bc5cb,_0x2ca1f7),_0x1bb079=_0x44b169[_0x44b169['length']-0x1],_0x1518bf=new Map(),_0x5dd5bc={'model':{},'attributes':{},'changes':[]},_0x261d84=new Set(),_0x551a70=new Map();for(let _0x11ca5e=_0x44b169[_0x8889('0xbd')]-0x1;_0x11ca5e>=0x0;_0x11ca5e--){const _0x17e0c5=_0x44b169[_0x11ca5e];for(const _0x44ba3e of Object[_0x8889('0xe0')](_0x17e0c5[_0x8889('0x71')]))if(_0x17e0c5[_0x8889('0x71')][_0x44ba3e][_0x8889('0xa')]){const _0xc535fd=_0x17e0c5['diffData'][_0x44ba3e][_0x8889('0xa')];_0xc535fd[_0x8889('0x9f')]?(_0x261d84[_0x8889('0x10b')](_0x44ba3e),_0x551a70[_0x8889('0xbf')](_0x44ba3e)&&_0x551a70[_0x8889('0xc2')](_0x44ba3e)[_0x8889('0x83')]==_0xc535fd[_0x8889('0x83')]?_0x551a70[_0x8889('0x2b')](_0x44ba3e):_0x551a70['set'](_0x44ba3e,_0xc535fd)):_0x551a70['has'](_0x44ba3e)?(_0x261d84['delete'](_0x44ba3e),_0x551a70['delete'](_0x44ba3e)):(_0x261d84[_0x8889('0x10b')](_0x44ba3e),_0x551a70['set'](_0x44ba3e,_0xc535fd));}else _0x261d84[_0x8889('0x10b')](_0x44ba3e);}for(const _0x29021b of _0x261d84){const _0x27fb2a=_0x551a70[_0x8889('0xbf')](_0x29021b)&&!_0x551a70[_0x8889('0xc2')](_0x29021b)[_0x8889('0x9f')];let _0x49d4ae=_0x27fb2a?_0x44b169[_0x8889('0xbd')]-0x1:0x0;const _0x3a3126=_0x27fb2a?-0x1:0x1;for(;_0x44b169[_0x49d4ae];){const _0x9b2a5d=_0x44b169[_0x49d4ae];if(_0x9b2a5d[_0x8889('0x71')][_0x29021b]){const _0x4a7415=_0x27fb2a?_0x9b2a5d[_0x8889('0x71')][_0x29021b]['attributesBefore']:_0x9b2a5d['diffData'][_0x29021b]['attributesAfter'];_0x5dd5bc[_0x8889('0x11d')][_0x29021b]=_0x4a7415?_0x4cb777(_0x4a7415):{};break;}_0x49d4ae+=_0x3a3126;}}for(const _0x1bfc69 of _0x44b169){_0x1bfc69[_0x8889('0x1')]={};for(const _0x1e87d4 of _0x1bfc69['authors'])_0x1518bf[_0x8889('0x34')](_0x1e87d4['id'],_0x1e87d4);for(const _0x19b065 of _0x261d84){const _0x198e10=_0x1bfc69[_0x8889('0x71')][_0x19b065]?_0x1bfc69[_0x8889('0x71')][_0x19b065][_0x8889('0x46')]:'[]',_0x2719c7=_0x1bfc69[_0x8889('0x71')][_0x19b065]?_0x1bfc69['diffData'][_0x19b065][_0x8889('0x88')]:'[]';_0x1bfc69[_0x8889('0x1')][_0x19b065]={'insertions':this[_0x8889('0x11')](_0x198e10),'deletions':this[_0x8889('0x11')](_0x2719c7)};}}for(const _0x33827c of _0x261d84){let _0x226f4a=null,_0x29038d=0x0;const _0x3af2e5=new Map(Array[_0x8889('0xcd')](_0x1bc5cb['model'][_0x33827c]['insertions'][_0x8889('0xe7')])['filter'](([_0x2c30c0])=>!_0x2c30c0[_0x8889('0xcb')](_0x8889('0x14'))));let _0x10eef6=0x0;for(const _0x2afc4a of _0x44b169){const _0x39cdae=this[_0x8889('0xce')](_0x2afc4a[_0x8889('0x1')][_0x33827c]['insertions']);_0x2afc4a==_0x1bc5cb?(_0x226f4a=_0x39cdae,_0x29038d=_0x226f4a[_0x8889('0xbd')],_0x226f4a[_0x8889('0x8f')](_0x4634ff=>{_0x4634ff['id']=_0x10eef6++;}),this[_0x8889('0xd6')](_0x226f4a)):this[_0x8889('0x11c')](_0x226f4a,_0x39cdae);const _0x50e185=_0x226f4a['filter'](_0x3f5a5b=>!_0x3f5a5b[_0x8889('0xf9')])[_0x8889('0xd2')](_0x5b1776=>_0x5b1776['id']);let _0x4a3bfb=0x0;const _0x2c1f12=this[_0x8889('0xce')](_0x2afc4a[_0x8889('0x1')][_0x33827c][_0x8889('0x88')]);_0x2c1f12[_0x8889('0x8f')](_0x3bbd2a=>{_0x3bbd2a['isRemoved']?_0x3bbd2a['id']=_0x29038d++:_0x3bbd2a['id']=_0x50e185[_0x4a3bfb++];}),this[_0x8889('0xd6')](_0x2c1f12),this[_0x8889('0x8b')](_0x226f4a,_0x8889('0xf9')),this[_0x8889('0x8b')](_0x2c1f12,_0x8889('0x9b')),_0x2afc4a==_0x1bc5cb&&this[_0x8889('0xdc')](_0x226f4a,_0x3af2e5),_0x226f4a=this[_0x8889('0x1a')](_0x226f4a,_0x2c1f12),this[_0x8889('0x17')](_0x226f4a),this['_setDistance'](_0x226f4a,'isRemoved');}_0x226f4a=_0x226f4a['filter'](_0x1a6cc5=>!(_0x1a6cc5[_0x8889('0xf9')]&&_0x1a6cc5['isRemoved']));const _0x817428=new Map(_0x1bb079[_0x8889('0x1')][_0x33827c]['deletions']['markers']),_0x3f390d=new Set(_0x3af2e5[_0x8889('0xe0')]());for(const _0x18a095 of _0x817428[_0x8889('0xe0')]())_0x3f390d[_0x8889('0x2b')](_0x18a095);this['_markSuggestions'](_0x226f4a,_0x3f390d),this[_0x8889('0x79')](_0x226f4a),_0x226f4a=this[_0x8889('0x18')](_0x226f4a),_0x226f4a=this[_0x8889('0xd9')](_0x226f4a),_0x226f4a=this[_0x8889('0x102')](_0x226f4a);const {root:_0x2f918c,changes:_0x3c5d6b}=this[_0x8889('0xb')](_0x226f4a,_0x1518bf,_0x33827c);_0x5dd5bc['model'][_0x33827c]=_0x2f918c;const _0x392401=_0x551a70[_0x8889('0xc2')](_0x33827c);if(_0x392401){const _0x238168=_0x1518bf['get'](_0x392401['userId']),_0x2c1978=new _0x43f9a8({'author':_0x238168,'type':_0x392401[_0x8889('0x9f')]?_0x8889('0x10b'):_0x8889('0x2e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x33827c});_0x3c5d6b[_0x8889('0x16')](_0x2c1978),_0x5dd5bc[_0x8889('0x11d')][_0x33827c][_0x8889('0x7d')]=_0x2c1978['id'];}_0x5dd5bc[_0x8889('0xc5')]=_0x5dd5bc['changes'][_0x8889('0x40')](_0x3c5d6b);}return _0x5dd5bc;}[_0x8889('0xdc')](_0x55471f,_0x170a44){for(let _0x16dee6=0x0;_0x16dee6<_0x55471f['length'];_0x16dee6++)for(const [_0x5ce21e,_0x11a796]of _0x170a44)_0x11a796['start'][_0x8889('0xc9')](_0x55471f[_0x16dee6]['previousPosition'])&&_0x55471f[_0x16dee6][_0x8889('0x6f')][_0x8889('0xfd')](_0x5ce21e),_0x11a796[_0x8889('0x75')][_0x8889('0xc9')](_0x55471f[_0x16dee6]['nextPosition'])&&_0x55471f[_0x16dee6]['markersEnd']['push'](_0x5ce21e);}[_0x8889('0x1a')](_0x3ff3bb,_0xfad5bd){let _0x2ef325=[],_0x3d4307=0x0,_0x4a4d8a=0x0;for(;_0x3d4307<_0x3ff3bb[_0x8889('0xbd')]||_0x4a4d8a<_0xfad5bd[_0x8889('0xbd')];){const _0x1adc36=_0x3ff3bb[_0x3d4307]||{},_0x43491b=_0xfad5bd[_0x4a4d8a]||{};if(_0x1adc36['id']==_0x43491b['id'])_0x3d4307++,_0x4a4d8a++,_0x2ef325[_0x8889('0xfd')](_0x1adc36);else{if(_0x43491b[_0x8889('0x9b')]&&_0x1adc36['isAdded']){const {commonTape:_0x3fd854,iEnd:_0x3d4462,jEnd:_0x2e43cf}=this[_0x8889('0x26')](_0x3ff3bb,_0x3d4307,_0xfad5bd,_0x4a4d8a);_0x2ef325=_0x2ef325['concat'](_0x3fd854),_0x3d4307=_0x3d4462,_0x4a4d8a=_0x2e43cf;}else _0x43491b[_0x8889('0x9b')]?(_0x4a4d8a++,_0x2ef325['push'](_0x43491b)):(_0x3d4307++,_0x2ef325[_0x8889('0xfd')](_0x1adc36));}}return _0x2ef325;}[_0x8889('0x84')](_0x121a3c,_0x4f0443){const _0x5f028d=[];for(let _0x2fe1a6=0x0;_0x2fe1a6<_0x121a3c[_0x8889('0xbd')];_0x2fe1a6++){for(let _0x31f16b=0x0;_0x31f16b<_0x121a3c[_0x2fe1a6][_0x8889('0x6f')][_0x8889('0xbd')];_0x31f16b++){const _0x25ed3f=_0x121a3c[_0x2fe1a6]['markersStart'][_0x31f16b];if(!_0x4f0443[_0x8889('0xbf')](_0x25ed3f))continue;const {group:_0x43fe55,type:_0x136c26,authorId:_0x3a806e}=_0x137f73(_0x25ed3f);_0x8889('0xa4')!=_0x43fe55||_0x8889('0xd3')!=_0x136c26&&_0x8889('0x104')!=_0x136c26||(_0x5f028d[_0x8889('0x16')]({'type':_0x136c26,'name':_0x25ed3f,'userId':_0x3a806e}),_0x121a3c[_0x2fe1a6][_0x8889('0x6f')][_0x8889('0x70')](_0x31f16b,0x1),_0x31f16b--);}_0x3170ac(_0x121a3c[_0x2fe1a6]);for(let _0x1a16c6=0x0;_0x1a16c6<_0x121a3c[_0x2fe1a6][_0x8889('0xbe')][_0x8889('0xbd')];_0x1a16c6++){const _0x48ab61=_0x121a3c[_0x2fe1a6]['markersEnd'][_0x1a16c6];if(!_0x4f0443[_0x8889('0xbf')](_0x48ab61))continue;const {group:_0x5a09fc,type:_0x3d290e}=_0x137f73(_0x48ab61);if(_0x8889('0xa4')!=_0x5a09fc||_0x8889('0xd3')!=_0x3d290e&&_0x8889('0x104')!=_0x3d290e)continue;_0x121a3c[_0x2fe1a6][_0x8889('0xbe')][_0x8889('0x70')](_0x1a16c6,0x1),_0x1a16c6--;const _0x52c8e3=_0x5f028d[_0x8889('0x1b')](_0x384aa1=>_0x384aa1[_0x8889('0x9')]==_0x48ab61);_0x52c8e3>-0x1&&_0x5f028d[_0x8889('0x70')](_0x52c8e3,0x1);}}function _0x137f73(_0x4d276e){const _0x272482=_0x4d276e[_0x8889('0xf3')](':');return{'group':_0x272482[0x0],'type':_0x272482[0x1],'subType':_0x272482[_0x8889('0xbd')]>=0x5?_0x272482[0x2]:null,'id':_0x272482[_0x8889('0xbd')]<0x5?_0x272482[0x2]:_0x272482[0x3],'authorId':_0x272482[_0x8889('0xbd')]<0x5?_0x272482[0x3]:_0x272482[0x4],'markerCount':0x6==_0x272482['length']?_0x272482[0x5]:null};}function _0x3170ac(_0x59e40d){for(let _0x393c46=0x0;_0x393c46<_0x5f028d['length'];_0x393c46++){if(_0x59e40d[_0x8889('0xf9')]&&'insertion'==_0x5f028d[_0x393c46][_0x8889('0x53')])return _0x59e40d[_0x8889('0x6b')]=_0x5f028d[_0x393c46],void delete _0x59e40d[_0x8889('0xf9')];if(!_0x59e40d[_0x8889('0xf9')]&&!_0x59e40d[_0x8889('0x9b')]&&'deletion'==_0x5f028d[_0x393c46][_0x8889('0x53')])return void(_0x59e40d[_0x8889('0xb6')]=_0x5f028d[_0x393c46]);}}}[_0x8889('0x8b')](_0x3cddb7,_0x529bef){let _0x4cb168=0x0,_0x302129=!0x1;const _0x2d7d4e=new Map();for(const _0x42fb3b of _0x3cddb7)_0x42fb3b[_0x529bef]?_0x302129&&(_0x4cb168++,_0x302129=!0x1):(_0x4cb168++,_0x302129=!0x0),_0x2d7d4e['set'](_0x42fb3b['id'],_0x4cb168);for(let _0x2c5a50=0x0;_0x2c5a50<_0x3cddb7[_0x8889('0xbd')];_0x2c5a50++){if(_0x8889('0x9b')==_0x529bef&&_0x3cddb7[_0x2c5a50][_0x8889('0xf9')]||_0x8889('0xf9')==_0x529bef&&_0x3cddb7[_0x2c5a50]['isRemoved'])continue;if(_0x8889('0xef')==_0x3cddb7[_0x2c5a50][_0x8889('0x53')]){_0x3cddb7[_0x2c5a50][_0x8889('0xeb')]=0x0;continue;}const _0xe3aba=_0x2d7d4e[_0x8889('0xc2')](_0x3cddb7[_0x2c5a50][_0x8889('0xfb')]),_0x23bc35=_0x2d7d4e[_0x8889('0xc2')](_0x3cddb7[_0x2c5a50]['id']);_0x3cddb7[_0x2c5a50][_0x8889('0xeb')]=_0xe3aba-_0x23bc35;}}[_0x8889('0x112')](_0x21d47c,_0x5a85c0,_0x17eef6=!0x1){const _0x3c10b4=[];let _0x1f4fe7=this['repository'][_0x8889('0xdd')](_0x21d47c),_0x1a19d4=this['repository'][_0x8889('0xdd')](_0x5a85c0);for(-0x1==_0x1a19d4&&(_0x1a19d4=this[_0x8889('0xc4')][_0x8889('0x95')][_0x8889('0xbd')],_0x17eef6=!0x1);_0x1f4fe7<_0x1a19d4;)_0x3c10b4[_0x8889('0xfd')](this[_0x8889('0xc4')]['getRevision'](_0x1f4fe7)),_0x1f4fe7++;return _0x17eef6&&_0x3c10b4[_0x8889('0xfd')](this[_0x8889('0xc4')]['getRevision'](_0x1f4fe7)),_0x3c10b4;}[_0x8889('0x26')](_0x22a847,_0x429b3c,_0x16277e,_0x2c1095){const _0x2b56a0=this[_0x8889('0xf1')]['model'][_0x8889('0x69')];let _0x3b75cf=_0x429b3c;for(;_0x22a847[_0x3b75cf]&&_0x22a847[_0x3b75cf]['isAdded'];)_0x3b75cf++;let _0x29ed8d=_0x2c1095;for(;_0x16277e[_0x29ed8d]&&_0x16277e[_0x29ed8d][_0x8889('0x9b')];)_0x29ed8d++;_0x3cd3d2(_0x22a847,_0x429b3c,_0x3b75cf),_0x3cd3d2(_0x16277e,_0x2c1095,_0x29ed8d);const _0xa7cdbb=_0x16277e[_0x8889('0x44')](_0x2c1095,_0x29ed8d)['concat'](_0x22a847['slice'](_0x429b3c,_0x3b75cf));return _0xa7cdbb[_0x8889('0xb5')]((_0x5792ad,_0x1f71a6)=>_0x5792ad['side']!=_0x1f71a6[_0x8889('0x51')]?_0x5792ad[_0x8889('0x51')]-_0x1f71a6[_0x8889('0x51')]:_0x5792ad['level']!=_0x1f71a6[_0x8889('0x6d')]?_0x5792ad[_0x8889('0x6d')]-_0x1f71a6[_0x8889('0x6d')]:_0x5792ad['distance']!=_0x1f71a6[_0x8889('0xeb')]?_0x1f71a6[_0x8889('0xeb')]-_0x5792ad[_0x8889('0xeb')]:!!_0x5792ad[_0x8889('0xf9')]!=!!_0x1f71a6[_0x8889('0xf9')]?-0x1==_0x5792ad[_0x8889('0x51')]||0x0==_0x5792ad[_0x8889('0x51')]?_0x5792ad[_0x8889('0xf9')]?-0x1:0x1:_0x5792ad['isAdded']?0x1:-0x1:_0x5792ad['index']-_0x1f71a6[_0x8889('0x4e')]),{'commonTape':_0xa7cdbb,'iEnd':_0x3b75cf,'jEnd':_0x29ed8d};function _0x3cd3d2(_0x25a5c5,_0xa40919,_0xb54b02){let _0x1fbfb8=-0x1,_0x1d717c=Number[_0x8889('0xb8')],_0x341521=!0x0;for(let _0x1e11e9=_0xa40919;_0x1e11e9<_0xb54b02;_0x1e11e9++)if(_0x2b56a0[_0x8889('0x6a')](_0x25a5c5[_0x1e11e9][_0x8889('0x98')])||(_0x341521=!0x1),_0x25a5c5[_0x1e11e9][_0x8889('0x98')][_0x8889('0x19')]<_0xa40919&&(_0x1fbfb8=_0x1e11e9),_0x25a5c5[_0x1e11e9][_0x8889('0x98')][_0x8889('0xc8')]>=_0xb54b02){_0x1d717c=_0x1e11e9;break;}_0x341521&&(_0x1fbfb8=_0xb54b02-0x1);for(let _0x1efc45=_0xa40919;_0x1efc45<_0xb54b02;_0x1efc45++)_0x25a5c5[_0x1efc45][_0x8889('0x51')]=_0x1efc45<=_0x1fbfb8?-0x1:_0x1efc45<_0x1d717c?0x0:0x1,_0x25a5c5[_0x1efc45][_0x8889('0x4e')]=_0x1efc45;let _0x461114=0x0;for(let _0x49a628=_0xa40919;_0x49a628<=_0x1fbfb8;_0x49a628++)0x0==_0x25a5c5[_0x49a628][_0x8889('0xeb')]?_0x25a5c5[_0x49a628][_0x8889('0x6d')]=_0x461114:(_0x461114++,_0x25a5c5[_0x49a628][_0x8889('0x6d')]=_0x461114,_0x461114++);for(let _0x5020fd=_0xa40919;_0x5020fd<_0xb54b02;_0x5020fd++)0x0==_0x25a5c5[_0x5020fd][_0x8889('0x51')]&&(_0x25a5c5[_0x5020fd][_0x8889('0x6d')]=_0x461114);_0x461114=0x0;for(let _0x2e3549=_0xb54b02-0x1;_0x2e3549>=_0x1d717c;_0x2e3549--)0x0==_0x25a5c5[_0x2e3549][_0x8889('0xeb')]?_0x25a5c5[_0x2e3549]['level']=_0x461114:(_0x461114--,_0x25a5c5[_0x2e3549][_0x8889('0x6d')]=_0x461114,_0x461114--);}}[_0x8889('0x79')](_0x487e02){const _0x27098e=new Map(),_0x4dd148=this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x69')];for(let _0x1cfcb0=0x1;_0x1cfcb0<_0x487e02['length'];_0x1cfcb0++){let _0x400f11,_0x576ec5,_0x75830;const _0x2ff171=_0x487e02[_0x1cfcb0],_0x3057b8=_0x487e02[_0x1cfcb0-0x1];if(_0x8889('0xef')==_0x2ff171[_0x8889('0x53')])continue;if(_0x2ff171[_0x8889('0x53')]!=_0x3057b8[_0x8889('0x53')])continue;if(!_0x4dd148[_0x8889('0x59')](_0x3057b8[_0x8889('0x98')])||_0x4dd148[_0x8889('0x100')](_0x3057b8['item']))continue;if(!_0x4dd148[_0x8889('0x59')](_0x2ff171[_0x8889('0x98')])||_0x4dd148[_0x8889('0x100')](_0x2ff171['item']))continue;if((_0x487e02[_0x1cfcb0][_0x8889('0xf9')]||_0x487e02[_0x1cfcb0][_0x8889('0x6b')])&&_0x487e02[_0x1cfcb0-0x1]['isRemoved'])_0x400f11=_0x487e02[_0x1cfcb0],_0x576ec5=_0x487e02[_0x1cfcb0-0x1],_0x75830=_0x1cfcb0-0x1;else{if(!_0x487e02[_0x1cfcb0][_0x8889('0x9b')]||!_0x487e02[_0x1cfcb0-0x1][_0x8889('0xf9')]&&!_0x487e02[_0x1cfcb0-0x1][_0x8889('0x6b')])continue;_0x400f11=_0x487e02[_0x1cfcb0-0x1],_0x576ec5=_0x487e02[_0x1cfcb0],_0x75830=_0x1cfcb0;}const _0x177f41=_0x400f11['level']==_0x576ec5[_0x8889('0x6d')],_0x5de0d1=Math['abs'](_0x400f11[_0x8889('0x6d')])<Math[_0x8889('0x52')](_0x576ec5[_0x8889('0x6d')])&&0x0==_0x576ec5[_0x8889('0xeb')];(_0x177f41||_0x5de0d1)&&(_0x27098e[_0x8889('0x34')](_0x576ec5['id'],_0x400f11['id']),_0x487e02[_0x8889('0x70')](_0x75830,0x1),_0x1cfcb0--,_0x400f11[_0x8889('0xf9')]=!0x1);}for(let _0x354f84=0x0;_0x354f84<_0x487e02[_0x8889('0xbd')];_0x354f84++)_0x27098e[_0x8889('0xbf')](_0x487e02[_0x354f84][_0x8889('0xfb')])&&(_0x487e02[_0x354f84][_0x8889('0xfb')]=_0x27098e[_0x8889('0xc2')](_0x487e02[_0x354f84][_0x8889('0xfb')]));}[_0x8889('0x18')](_0x28083d){const _0x3183f3=new Set(_0x28083d[_0x8889('0xd2')](_0x2a36c3=>_0x2a36c3['id']));for(let _0x475a57=0x0;_0x475a57<_0x28083d[_0x8889('0xbd')];_0x475a57++)_0x3183f3[_0x8889('0xbf')](_0x28083d[_0x475a57][_0x8889('0xfb')])||0x0==_0x28083d[_0x475a57]['distance']||(_0x28083d[_0x475a57][_0x8889('0x1f')]=!0x0);return _0x28083d['filter'](_0x50e1c1=>!_0x50e1c1[_0x8889('0x1f')]);}[_0x8889('0xd9')](_0x446652){const _0x28b094=new Set();for(let _0x4e55a7=0x0;_0x4e55a7<_0x446652['length'];_0x4e55a7++){if(_0x28b094[_0x8889('0xbf')](_0x446652[_0x4e55a7]['id'])&&_0x446652[_0x4e55a7][_0x8889('0x9b')]&&(_0x446652[_0x4e55a7][_0x8889('0x1f')]=!0x0),_0x446652[_0x4e55a7][_0x8889('0x1f')])continue;if(0x0==_0x446652[_0x4e55a7][_0x8889('0xeb')])continue;if(_0x8889('0x119')!=_0x446652[_0x4e55a7][_0x8889('0x53')])continue;if(null==_0x446652[_0x4e55a7][_0x8889('0xfb')])continue;let _0x507edf=_0x4e55a7+0x1,_0x400ed0=0x0;for(;_0x446652[_0x507edf]['id']!=_0x446652[_0x4e55a7][_0x8889('0xfb')];)_0x8889('0x119')==_0x446652[_0x507edf][_0x8889('0x53')]?_0x400ed0++:_0x8889('0x107')==_0x446652[_0x507edf][_0x8889('0x53')]&&_0x400ed0--,_0x507edf++;if(0x0!=_0x400ed0){if(_0x446652[_0x4e55a7][_0x8889('0x9b')])_0x446652[_0x4e55a7][_0x8889('0x1f')]=!0x0;else for(;_0x507edf!=_0x4e55a7;)_0x446652[_0x507edf]['isRemoved']&&0x0!=_0x446652[_0x507edf][_0x8889('0xeb')]&&(_0x446652[_0x507edf][_0x8889('0x1f')]=!0x0,_0x28b094[_0x8889('0x10b')](_0x446652[_0x507edf]['pairId'])),_0x507edf--;}}return _0x446652[_0x8889('0x91')](_0x546238=>!_0x546238['isIncorrect']);}['_removeUnsupportedChanges'](_0x28e2a2){const _0x297df2=this['editor'][_0x8889('0x1')][_0x8889('0x69')];for(let _0x309cdc=0x0;_0x309cdc<_0x28e2a2[_0x8889('0xbd')];_0x309cdc++){if(!(_0x28e2a2[_0x309cdc][_0x8889('0xf9')]||_0x28e2a2[_0x309cdc]['isAddSuggestion']||_0x28e2a2[_0x309cdc][_0x8889('0x9b')]||_0x28e2a2[_0x309cdc][_0x8889('0xb6')]))continue;if(0x0==_0x28e2a2[_0x309cdc][_0x8889('0xeb')])continue;const _0x240792=_0x28e2a2[_0x309cdc][_0x8889('0x98')];_0x297df2['isBlock'](_0x240792)||_0x297df2['isLimit'](_0x240792)||(_0x28e2a2[_0x309cdc]['isAdded']&&delete _0x28e2a2[_0x309cdc][_0x8889('0xf9')],_0x28e2a2[_0x309cdc][_0x8889('0x6b')]&&delete _0x28e2a2[_0x309cdc][_0x8889('0x6b')],_0x28e2a2[_0x309cdc][_0x8889('0xb6')]&&delete _0x28e2a2[_0x309cdc]['isRemoveSuggestion'],_0x28e2a2[_0x309cdc][_0x8889('0x9b')]&&(_0x28e2a2[_0x309cdc][_0x8889('0x1f')]=!0x0));}return _0x28e2a2[_0x8889('0x91')](_0xf153a7=>!_0xf153a7[_0x8889('0x1f')]);}[_0x8889('0xb')](_0x361fa4,_0xd8b662,_0x1ea2a6){const _0x4a3209=new _0x15ab90(),_0x38093f=[],_0x5aa3e6=new Map(),_0x2b2643=this['editor'][_0x8889('0x1')],_0x1e9c65=_0x2b2643[_0x8889('0x69')],_0x5a8435=[_0x4a3209],_0x1842dc={},_0x14fd18={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x48a0df=null;const _0x18bbdb=[0x0];for(let _0x298410=0x0;_0x298410<_0x361fa4[_0x8889('0xbd')];_0x298410++){let _0x2adf10,_0x499413;if(_0x8889('0x119')===_0x361fa4[_0x298410]['type']){_0x2adf10=_0x2b2643[_0x8889('0x55')](_0x4a3209,_0x18bbdb);const _0x27e534=new _0xed5a84(_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0x9')],_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0x3c')]());_0x5a8435[0x0][_0x8889('0xca')](_0x27e534),_0x18bbdb['push'](0x0),_0x5a8435['unshift'](_0x27e534),_0x499413=_0x2b2643['createPositionFromPath'](_0x4a3209,_0x18bbdb),_0x48a0df=null;}else{if(_0x8889('0x107')===_0x361fa4[_0x298410][_0x8889('0x53')])_0x5a8435[_0x8889('0xa3')](),_0x2adf10=_0x2b2643['createPositionFromPath'](_0x4a3209,_0x18bbdb),_0x18bbdb[_0x8889('0x29')](),_0x18bbdb[_0x18bbdb[_0x8889('0xbd')]-0x1]++,_0x499413=_0x2b2643[_0x8889('0x55')](_0x4a3209,_0x18bbdb),_0x48a0df=null;else{if(_0x2adf10=_0x2b2643[_0x8889('0x55')](_0x4a3209,_0x18bbdb),_0x48a0df&&_0x33035f(_0x48a0df,_0x361fa4[_0x298410]['item']))_0x48a0df['_data']+=_0x361fa4[_0x298410][_0x8889('0x98')]['data'];else{const _0x4abcd6=new _0x1b7bcb(_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0xdf')],_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0x3c')]());_0x5a8435[0x0][_0x8889('0xca')](_0x4abcd6),_0x48a0df=_0x4abcd6;}_0x18bbdb[_0x18bbdb[_0x8889('0xbd')]-0x1]+=_0x361fa4[_0x298410][_0x8889('0x98')][_0x8889('0xda')],_0x499413=_0x2b2643['createPositionFromPath'](_0x4a3209,_0x18bbdb);}}for(const _0x44bcbd of _0x361fa4[_0x298410][_0x8889('0x6f')])_0x5aa3e6['set'](_0x44bcbd,{'start':_0x2adf10,'end':null});_0x34975d(_0x8889('0xb6'),_0x298410,_0x2adf10,_0x499413),_0x34975d(_0x8889('0x6b'),_0x298410,_0x2adf10,_0x499413),_0x34975d('isRemoved',_0x298410,_0x2adf10,_0x499413),_0x34975d(_0x8889('0xf9'),_0x298410,_0x2adf10,_0x499413);for(const _0x4158d2 of _0x361fa4[_0x298410][_0x8889('0xbe')]){_0x5aa3e6[_0x8889('0xc2')](_0x4158d2)[_0x8889('0x75')]=_0x499413;}}for(const [_0x13133e,_0x3b54ae]of _0x5aa3e6){const _0x30cf29=this[_0x8889('0xf1')]['model']['createRange'](_0x3b54ae[_0x8889('0x36')],_0x3b54ae[_0x8889('0x75')]);_0x4a3209[_0x8889('0xe7')][_0x8889('0x34')](_0x13133e,_0x30cf29);}return _0x38093f['sort']((_0x56c9e8,_0x548a38)=>{const _0x2f46e7=_0x4a3209[_0x8889('0xe7')][_0x8889('0xc2')](_0x8889('0x14')+_0x56c9e8['id']),_0x1d7cb9=_0x4a3209['markers'][_0x8889('0xc2')](_0x8889('0x14')+_0x548a38['id']);return _0x2f46e7[_0x8889('0x36')][_0x8889('0x1e')](_0x1d7cb9[_0x8889('0x36')])?-0x1:_0x2f46e7[_0x8889('0x36')]['isAfter'](_0x1d7cb9[_0x8889('0x36')])?0x1:_0x2f46e7[_0x8889('0x75')][_0x8889('0x1e')](_0x1d7cb9[_0x8889('0x75')])?-0x1:_0x2f46e7['end'][_0x8889('0x31')](_0x1d7cb9[_0x8889('0x75')])?0x1:'add'===_0x56c9e8[_0x8889('0x53')]?-0x1:0x1;}),{'root':_0x4a3209,'changes':_0x38093f};function _0x34975d(_0x14dc64,_0xbe39f5,_0x404971,_0x1d2b29){const _0x2fedee=!!_0x361fa4[_0xbe39f5][_0x14dc64],_0x110cdb=_0x2fedee?_0x361fa4[_0xbe39f5][_0x14dc64]['userId']:null,_0x491599=_0xbe39f5===_0x361fa4[_0x8889('0xbd')]-0x1,_0x3f467a=_0x14fd18[_0x14dc64][0x0],_0x28f8c1=_0x1e9c65[_0x8889('0x115')](_0x361fa4[_0xbe39f5][_0x8889('0x98')]);!_0x1842dc[_0x14dc64]&&_0x2fedee?_0x1842dc[_0x14dc64]={'start':_0x404971,'tapeItem':_0x361fa4[_0xbe39f5],'userId':_0x110cdb,'type':_0x14dc64}:_0x1842dc[_0x14dc64]&&!_0x2fedee?(_0x1842dc[_0x14dc64][_0x8889('0x75')]=_0x404971,_0x1aaeb1(_0x1842dc[_0x14dc64]),_0x1842dc[_0x14dc64]=null):_0x1842dc[_0x14dc64]&&_0x2fedee&&_0x1842dc[_0x14dc64][_0x8889('0x83')]!==_0x110cdb&&(_0x1842dc[_0x14dc64][_0x8889('0x75')]=_0x404971,_0x3f467a&&_0x3f467a['userId']===_0x1842dc[_0x14dc64][_0x8889('0x83')]||_0x1aaeb1(_0x1842dc[_0x14dc64]),_0x1842dc[_0x14dc64]={'start':_0x404971,'tapeItem':_0x361fa4[_0xbe39f5],'userId':_0x110cdb,'type':_0x14dc64}),_0x1842dc[_0x14dc64]&&_0x28f8c1&&(_0x8889('0x119')!==_0x361fa4[_0xbe39f5]['type']||_0x3f467a&&_0x3f467a[_0x8889('0x83')]===_0x110cdb||_0x14fd18[_0x14dc64][_0x8889('0x16')]({'userId':_0x110cdb,'object':_0x361fa4[_0xbe39f5][_0x8889('0x98')],'change':_0x1842dc[_0x14dc64]}),_0x8889('0x107')===_0x361fa4[_0xbe39f5][_0x8889('0x53')]&&_0x3f467a&&_0x3f467a[_0x8889('0xf')]===_0x361fa4[_0xbe39f5][_0x8889('0x98')]&&(_0x14fd18[_0x14dc64]['shift'](),_0x1842dc[_0x14dc64]=_0x3f467a[_0x8889('0x80')])),_0x1842dc[_0x14dc64]&&_0x491599&&(_0x1842dc[_0x14dc64][_0x8889('0x75')]=_0x1d2b29,_0x1aaeb1(_0x1842dc[_0x14dc64]),_0x1842dc[_0x14dc64]=null);}function _0x1aaeb1({start:_0x1c4eaf,end:_0x3fcd7f,tapeItem:_0x375fcc,userId:_0x12525e,type:_0x1f06c1}){const _0x1dde79=_0x375fcc['item'],_0x440dfc=_0x2b2643[_0x8889('0x69')][_0x8889('0x59')](_0x1dde79)&&!_0x2b2643[_0x8889('0x69')][_0x8889('0x100')](_0x1dde79),_0x61bf38=_0x1c4eaf['nodeAfter']==_0x3fcd7f[_0x8889('0xe1')]&&_0x3fcd7f[_0x8889('0xf0')];if(_0x440dfc&&_0x61bf38)return;const _0x164695=_0x2b2643[_0x8889('0x108')](_0x1c4eaf,_0x3fcd7f),_0x3e6043=_0xd8b662[_0x8889('0xc2')](_0x12525e),_0x1d4bb9=new _0x43f9a8({'author':_0x3e6043,'type':'isAdded'==_0x1f06c1||_0x8889('0x6b')==_0x1f06c1?_0x8889('0x10b'):_0x8889('0x2e'),'data':{'isSuggestion':_0x8889('0x6b')==_0x1f06c1||_0x8889('0xb6')==_0x1f06c1},'createdAt':new Date(),'rootName':_0x1ea2a6});_0x38093f[_0x8889('0xfd')](_0x1d4bb9),_0x4a3209['markers'][_0x8889('0x34')]('revision:'+_0x1d4bb9['id'],_0x164695);}function _0x33035f(_0x19b4b6,_0x2dd893){const _0x25ea8b=_0x19b4b6[_0x8889('0x3c')](),_0x51594a=_0x2dd893[_0x8889('0x3c')]();for(const _0xabb36d of _0x25ea8b){if(_0xabb36d[0x1]!==_0x2dd893['getAttribute'](_0xabb36d[0x0]))return!0x1;_0x51594a[_0x8889('0x41')]();}return _0x51594a[_0x8889('0x41')]()['done'];}}[_0x8889('0x4c')](){this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))['dataToMarker']({'view':'revision'}),this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x11a'))[_0x8889('0x10a')]({'model':_0x8889('0x57'),'view':_0x41fecb=>{const _0x315a74=_0x41fecb['markerName'][_0x8889('0xf3')](':')[0x1],_0x24142a=this[_0x8889('0x116')](_0x315a74);if(!_0x24142a)return null;const _0x33eda1=_0x8889('0x10b')==_0x24142a[_0x8889('0x53')]?_0x8889('0xd3'):_0x8889('0x104'),_0x521ef0=[_0x8889('0x3f'),_0x8889('0x10f')+_0x33eda1];return _0x24142a['data'][_0x8889('0x86')]&&_0x521ef0[_0x8889('0xfd')](_0x8889('0x10f')+_0x33eda1+_0x8889('0xd4')),this[_0x8889('0xcc')]==_0x24142a&&_0x521ef0[_0x8889('0xfd')](_0x8889('0xb7')),{'classes':_0x521ef0,'attributes':{'data-change-id':_0x315a74}};}}),this[_0x8889('0xf1')]['conversion'][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0x10b')](_0x2cad25=>{_0x2cad25['on'](_0x8889('0xfe'),(_0x1bd63c,_0x38f051,_0x25319b)=>{const _0x4e11e9=_0x38f051['viewItem'][_0x8889('0xba')](0x0);if(!_0x4e11e9||!_0x4e11e9['is'](_0x8889('0x22'),_0x8889('0xc')))return;if(!_0x25319b[_0x8889('0x21')][_0x8889('0x45')](_0x4e11e9,{'attributes':[_0x8889('0x54'),_0x8889('0x101')]}))return;const _0x129225=_0x38f051[_0x8889('0x10d')]['start'][_0x8889('0x94')];_0x25319b['writer'][_0x8889('0x10c')]('vid_start',_0x4e11e9[_0x8889('0xf7')](_0x8889('0x54')),_0x129225),_0x25319b[_0x8889('0x30')]['setAttribute']('vid_end',_0x4e11e9[_0x8889('0xf7')](_0x8889('0x101')),_0x129225);},{'priority':'low'});}),this[_0x8889('0xf1')][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0x10b')](_0x5b7433=>{_0x5b7433['on'](_0x8889('0x22'),(_0x3788e9,_0x3bee70,_0x95b490)=>{if(!_0x95b490[_0x8889('0x21')]['consume'](_0x3bee70[_0x8889('0x117')],{'attributes':[_0x8889('0x54'),_0x8889('0x101')]}))return;if(_0x3bee70[_0x8889('0x10d')][_0x8889('0xde')])return;const _0x4f47ce=_0x3bee70['modelRange'][_0x8889('0x36')][_0x8889('0x94')];_0x4f47ce[_0x8889('0xe2')](_0x8889('0x54'))||_0x4f47ce[_0x8889('0xe2')](_0x8889('0xc3'))||(_0x95b490[_0x8889('0x30')][_0x8889('0x10c')](_0x8889('0x54'),_0x3bee70[_0x8889('0x117')]['getAttribute']('vid_start'),_0x4f47ce),_0x95b490[_0x8889('0x30')][_0x8889('0x10c')](_0x8889('0x101'),_0x3bee70[_0x8889('0x117')][_0x8889('0xf7')](_0x8889('0x101')),_0x4f47ce));},{'priority':_0x8889('0x66')});}),this['editor'][_0x8889('0xf2')]['for']('upcast')[_0x8889('0x9d')]({'view':{'name':_0x8889('0xd1'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x43889c=>_0x43889c[_0x8889('0xf7')]('vid')}}),this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x69')]['on'](_0x8889('0x13'),(_0x39f315,[,_0x904687])=>{[_0x8889('0x54'),_0x8889('0x101'),_0x8889('0xc3')][_0x8889('0xa9')](_0x904687)&&(_0x39f315[_0x8889('0xae')]=!0x0,_0x39f315['stop']());},{'priority':_0x8889('0xbb')}),this[_0x8889('0xf1')]['conversion'][_0x8889('0x2a')]('dataDowncast')[_0x8889('0x10b')](_0x280856=>{_0x280856['on'](_0x8889('0x38'),(_0x325ec3,_0x540cff,_0x59c7b0)=>{if('\x20'!=_0x540cff[_0x8889('0x98')]['data']||_0x540cff['item'][_0x8889('0xe1')][_0x8889('0x7c')]>0x1)return;if(!_0x59c7b0[_0x8889('0x21')][_0x8889('0x45')](_0x540cff[_0x8889('0x98')],_0x325ec3[_0x8889('0x9')]))return;const _0x4dbb10=_0x59c7b0[_0x8889('0x30')],_0x129944=_0x59c7b0[_0x8889('0xb2')][_0x8889('0xbc')](_0x540cff['range']);_0x4dbb10['wrap'](_0x129944,_0x4dbb10[_0x8889('0x87')](_0x8889('0xd1')));});}),this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0xb1'))[_0x8889('0x25')]({'model':_0x8889('0x57')}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on']('addMarker:revision',function(_0x31f9e3){const _0x2babde=_0x31f9e3[_0x8889('0x2c')][_0x8889('0xc2')](_0x8889('0x10'));return(_0x52ea39,_0x3655cc,_0x1e96bb)=>{const _0x2c4b61=_0x3655cc[_0x8889('0x78')][_0x8889('0xf3')](':')[0x1],_0x274e77=_0x2babde[_0x8889('0x116')](_0x2c4b61);if(!_0x274e77)return null;const _0xc022cf=_0x8889('0x10b')==_0x274e77[_0x8889('0x53')]?_0x8889('0xf3'):'merge';if(!_0x1e96bb[_0x8889('0x21')][_0x8889('0xe8')](_0x3655cc[_0x8889('0x2')],_0x52ea39[_0x8889('0x9')]))return;const _0x4d18dd=_0x3655cc[_0x8889('0x2')][_0x8889('0x5f')](),_0x2394a2=_0x3655cc['markerRange'][_0x8889('0x36')],_0x2e98fe=_0x31f9e3[_0x8889('0x1')][_0x8889('0x69')];let _0x52f973=null,_0x91bdb=null,_0x3a27c1=!0x1,_0x5900b7=!0x1;for(const _0x42a8fc of _0x4d18dd){const _0x550c6f=_0x42a8fc[_0x8889('0x98')];_0x3a27c1=_0x3a27c1||_0x2e98fe[_0x8889('0xd8')](_0x550c6f);const _0x4aa806=_0x1e96bb[_0x8889('0xb2')][_0x8889('0x8a')](_0x550c6f);if(_0x4aa806&&_0x4aa806['getCustomProperty'](_0x8889('0x105')))return;_0x8889('0x107')==_0x42a8fc[_0x8889('0x53')]&&(_0x2e98fe[_0x8889('0x59')](_0x550c6f)&&!_0x2e98fe['isLimit'](_0x550c6f)&&(_0x550c6f[_0x8889('0xa7')]||_0x2394a2['isAtEnd']?_0x52f973&&_0x52f973[_0x8889('0xe1')]==_0x550c6f||(_0x52f973=_0x550c6f,_0x8e45af(_0x42a8fc[_0x8889('0xe6')]),_0x5900b7=!0x0):_0x91bdb=_0x91bdb||_0x42a8fc[_0x8889('0xe6')]));}function _0x8e45af(_0x2dc24d){const _0x48c7cd=_0x1e96bb['writer'][_0x8889('0xf5')](_0x8889('0xd1'),{'class':'ck-suggestion-marker-'+_0xc022cf}),_0x3ac8eb=_0x1e96bb[_0x8889('0xb2')][_0x8889('0x76')](_0x2dc24d);_0x274e77['data'][_0x8889('0x86')]&&_0x1e96bb[_0x8889('0x30')]['addClass']('ck-suggestion-marker-'+_0xc022cf+_0x8889('0xd4'),_0x48c7cd),_0x2babde[_0x8889('0xcc')]==_0x274e77&&_0x1e96bb[_0x8889('0x30')]['addClass'](_0x8889('0xb7'),_0x48c7cd),_0x1e96bb[_0x8889('0x30')][_0x8889('0x15')](_0x3ac8eb,_0x48c7cd),_0x1e96bb[_0x8889('0xb2')]['bindElementToMarker'](_0x48c7cd,_0x3655cc[_0x8889('0x78')]);}_0x3a27c1||_0x5900b7||!_0x91bdb||_0x8e45af(_0x91bdb);};}(this[_0x8889('0xf1')]),{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0xf6')]['downcastDispatcher']['on'](_0x8889('0x24'),(_0x1ab6d7,_0x5de708,_0x3dc945)=>{const _0x217b1e=_0x3dc945[_0x8889('0xb2')]['markerNameToElements'](_0x5de708['markerName']);if(_0x217b1e)for(const _0x3e7022 of _0x217b1e)(_0x3e7022['hasClass'](_0x8889('0x120'))||_0x3e7022[_0x8889('0x62')](_0x8889('0x3e')))&&(_0x3dc945[_0x8889('0xb2')][_0x8889('0x6')](_0x3e7022,_0x5de708['markerName']),_0x3dc945[_0x8889('0x30')]['remove'](_0x3e7022));},{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on']('addMarker:revision',(_0x11100d,_0x502a2b,_0x3c9f1e)=>{const _0x1eaeb0=_0x502a2b['markerName']['split'](':')[0x1],_0x5a9094=this[_0x8889('0x116')](_0x1eaeb0);if(!_0x5a9094)return null;const _0x4c08d4=_0x8889('0x10b')==_0x5a9094[_0x8889('0x53')]?_0x8889('0xf3'):_0x8889('0x8d');if(_0x3c9f1e[_0x8889('0x21')][_0x8889('0xe8')](_0x502a2b[_0x8889('0x2')],_0x11100d[_0x8889('0x9')]))for(const _0x18e354 of _0x502a2b[_0x8889('0x2')][_0x8889('0xa0')]()){if(!_0x18e354['is'](_0x8889('0x22'),_0x8889('0x32')))continue;const _0x5b7d55=_0x3c9f1e[_0x8889('0x30')]['createUIElement'](_0x8889('0xd1'),{'class':_0x8889('0x10f')+_0x4c08d4}),_0x5ce8c6=_0x3c9f1e[_0x8889('0xb2')][_0x8889('0x76')](this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x65')](_0x18e354));_0x5a9094[_0x8889('0xdf')]['isSuggestion']&&_0x3c9f1e[_0x8889('0x30')]['addClass']('ck-suggestion-marker-'+_0x4c08d4+'-new',_0x5b7d55),this[_0x8889('0xcc')]==_0x5a9094&&_0x3c9f1e['writer'][_0x8889('0xad')](_0x8889('0xb7'),_0x5b7d55),_0x3c9f1e[_0x8889('0x30')][_0x8889('0x15')](_0x5ce8c6,_0x5b7d55),_0x3c9f1e['mapper']['bindElementToMarker'](_0x5b7d55,_0x502a2b['markerName']);}},{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0x1')]['document']['on'](_0x8889('0x80'),()=>{this['editor'][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x80')](_0x39add2=>{for(const _0xc84f97 of this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')]['getRootNames']()){const _0x20646a=this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x122')][_0x8889('0x48')](_0xc84f97),_0x31a703=this[_0x8889('0xf1')]['editing']['view'][_0x8889('0x122')][_0x8889('0x48')](_0xc84f97);if(_0x31a703){const _0x5f2b5f=_0x20646a[_0x8889('0xf7')](_0x8889('0x7d'));if(_0x39add2[_0x8889('0xab')](_0x8889('0x50'),_0x31a703),_0x39add2['removeClass'](_0x8889('0x20'),_0x31a703),_0x39add2[_0x8889('0x92')]('ck-revision-history-root-remove',_0x31a703),_0x39add2[_0x8889('0x92')](_0x8889('0xa8'),_0x31a703),_0x5f2b5f){const _0x47bc5f=this['_getChangeFromId'](_0x5f2b5f);if(!_0x47bc5f)return null;_0x39add2['setAttribute'](_0x8889('0x50'),_0x5f2b5f,_0x31a703),_0x39add2[_0x8889('0xad')](_0x8889('0x11f')+_0x47bc5f['type'],_0x31a703),this['activeChange']==_0x47bc5f&&_0x39add2[_0x8889('0xad')](_0x8889('0xa8'),_0x31a703);}}}});}),this['editor'][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0xaf')]({'view':_0x8889('0x7a'),'model':_0xe7161b=>_0x8889('0x12')+_0xe7161b,'converterPriority':_0x8889('0xbb')}),this[_0x8889('0xf1')][_0x8889('0xf2')][_0x8889('0x2a')](_0x8889('0x5'))[_0x8889('0xaf')]({'view':_0x8889('0x5b'),'model':_0x5ccf53=>_0x8889('0x90')+_0x5ccf53,'converterPriority':_0x8889('0xbb')}),this['editor']['conversion']['for'](_0x8889('0xb1'))[_0x8889('0x25')]({'model':'revision-suggestion','view':_0x68c45b=>({'name':_0x8889('0xb3')+_0x68c45b,'group':'revision-suggestion'}),'converterPriority':_0x8889('0xbb')}),this[_0x8889('0xf1')][_0x8889('0xf2')]['for'](_0x8889('0x11a'))[_0x8889('0x10a')]({'model':_0x8889('0xa4'),'view':_0xfb1f7b=>{const _0x2961a2=_0xfb1f7b[_0x8889('0x78')][_0x8889('0xf3')](':')[0x1];return _0x8889('0xd3')!=_0x2961a2&&_0x8889('0x104')!=_0x2961a2?null:{'classes':[_0x8889('0xaa'),'ck-suggestion-preview-marker-'+_0x2961a2]};}}),this[_0x8889('0xf1')]['editing'][_0x8889('0x74')]['on'](_0x8889('0xac'),et(this[_0x8889('0xf1')],_0x8889('0x8d')),{'priority':_0x8889('0x49')}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on'](_0x8889('0x5d'),et(this[_0x8889('0xf1')],_0x8889('0xf3')),{'priority':'high'}),this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x74')]['on']('removeMarker:revision-suggestion',(_0x2769f9,_0x844e5f,_0x4673ed)=>{const _0x5359f1=_0x4673ed[_0x8889('0xb2')][_0x8889('0x77')](_0x844e5f[_0x8889('0x78')]);if(_0x5359f1)for(const _0x16bb08 of _0x5359f1)_0x16bb08['is'](_0x8889('0x110'))&&(_0x4673ed['mapper'][_0x8889('0x6')](_0x16bb08,_0x844e5f[_0x8889('0x78')]),_0x4673ed[_0x8889('0x30')]['remove'](_0x16bb08));},{'priority':'high'});}[_0x8889('0x116')](_0x4d6384){return this[_0x8889('0x5a')]['get'](_0x4d6384);}['_getViewForChange'](_0x128ce0){return this[_0x8889('0xc7')]&&this[_0x8889('0xc7')][_0x8889('0xf8')](),this[_0x8889('0xc7')]=new _0x3bd9c5(this[_0x8889('0xf1')]['locale'],_0x128ce0),this[_0x8889('0xc7')];}[_0x8889('0xe9')](){this[_0x8889('0xf1')]['model'][_0x8889('0x122')][_0x8889('0x43')][_0x8889('0xa6')](_0x8889('0x57')),this['on'](_0x8889('0x2f'),(_0x442089,_0x2c7a2a,_0x45fdad,_0x363e3b)=>{_0x363e3b&&this['_balloon'][_0x8889('0x2e')](_0x363e3b),_0x45fdad&&(this[_0x8889('0xea')][_0x8889('0x10b')]({'view':_0x45fdad,'stackId':_0x8889('0x1c'),'position':{'target':()=>{const _0x430f46=this[_0x8889('0xf1')][_0x8889('0xf6')],_0x4188e3=this[_0x8889('0x116')](_0x45fdad['changeId']);let _0x531078;if(_0x4188e3['data'][_0x8889('0x9e')]){const _0x225ccc=_0x430f46[_0x8889('0x7')][_0x8889('0xee')](_0x4188e3[_0x8889('0x7b')]);_0x531078=Array[_0x8889('0xcd')](_0x225ccc[_0x8889('0x7e')]());}else{const _0x25214a=this['editor'][_0x8889('0x1')][_0x8889('0xe7')]['get'](_0x8889('0x14')+_0x45fdad[_0x8889('0x39')]);_0x531078=Array[_0x8889('0xcd')](_0x430f46[_0x8889('0xb2')][_0x8889('0x77')](_0x25214a[_0x8889('0x9')]))[_0x8889('0xd2')](_0x1a55fe=>_0x430f46[_0x8889('0x7')][_0x8889('0x27')][_0x8889('0x5e')](_0x1a55fe))['map'](_0x48b65f=>Array[_0x8889('0xcd')](_0x48b65f[_0x8889('0x7e')]()))[_0x8889('0xf4')]();}if(!this['_activeViewTarget'])return _0x531078[0x0];return _0x531078[_0x8889('0x85')](_0x339fbd=>_0x339fbd[_0x8889('0xc1')]-0x3<=this[_0x8889('0x47')]['y']&&_0x339fbd[_0x8889('0x10e')]+0x3>=this[_0x8889('0x47')]['y']&&_0x339fbd[_0x8889('0x8')]-0x3<=this['_activeViewTarget']['x']&&_0x339fbd['right']+0x3>=this['_activeViewTarget']['x'])||_0x531078[0x0];}}}),this[_0x8889('0xea')][_0x8889('0xa5')](_0x8889('0x1c')));}),this['on'](_0x8889('0x64'),(_0x2eca83,_0x377b30,_0x2a8fd3,_0x5037a5)=>{this['activeView']=_0x2a8fd3?this[_0x8889('0x61')](_0x2a8fd3):null,this[_0x8889('0xf1')]['model'][_0x8889('0x80')](()=>{const _0x3cf4bf=this[_0x8889('0xf1')]['editing'];_0x5037a5&&(_0x5037a5[_0x8889('0xdf')][_0x8889('0x9e')]?_0x3cf4bf['view'][_0x8889('0x80')](_0x49de90=>{_0x49de90[_0x8889('0x92')](_0x8889('0xa8'),_0x3cf4bf[_0x8889('0x7')]['document'][_0x8889('0x48')](_0x5037a5[_0x8889('0x7b')]));}):_0x3cf4bf[_0x8889('0x82')](_0x8889('0x14')+_0x5037a5['id'])),_0x2a8fd3&&(_0x2a8fd3[_0x8889('0xdf')]['isOnRoot']?_0x3cf4bf[_0x8889('0x7')][_0x8889('0x80')](_0x257ce8=>{_0x257ce8['addClass'](_0x8889('0xa8'),_0x3cf4bf[_0x8889('0x7')]['document'][_0x8889('0x48')](_0x2a8fd3[_0x8889('0x7b')]));}):_0x3cf4bf[_0x8889('0x82')]('revision:'+_0x2a8fd3['id']));});}),this[_0x8889('0x4f')](this[_0x8889('0xf1')][_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0x122')],_0x8889('0x3b'),(_0x2f4478,_0x9eee44)=>{if(this[_0x8889('0xcc')])return;const _0x42a401=this[_0x8889('0xfa')](_0x9eee44[_0x8889('0x72')]),_0xd6c082=this['_changeIdToChange'][_0x8889('0xc2')](_0x42a401);_0xd6c082?(this[_0x8889('0x47')]={'x':_0x9eee44[_0x8889('0x67')]['x'],'y':_0x9eee44[_0x8889('0x67')]['y']},this[_0x8889('0xe3')]=this[_0x8889('0x61')](_0xd6c082)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x8889('0x4f')](this[_0x8889('0xf1')]['editing'][_0x8889('0x7')][_0x8889('0x122')],_0x8889('0x73'),(_0x26af05,_0xf7653d)=>{const _0x1a120f=this[_0x8889('0xfa')](_0xf7653d[_0x8889('0x72')]),_0x5472d0=this[_0x8889('0x5a')][_0x8889('0xc2')](_0x1a120f);_0x5472d0?(this[_0x8889('0x47')]={'x':_0xf7653d[_0x8889('0x67')]['x'],'y':_0xf7653d['domEvent']['y']},_0x5472d0===this[_0x8889('0xcc')]?this['_balloon'][_0x8889('0x93')]():this[_0x8889('0xcc')]=_0x5472d0):(this[_0x8889('0x47')]=null,this[_0x8889('0xcc')]=null);});}[_0x8889('0xfa')](_0x6ec06d){do{const _0x1f23fb=_0x6ec06d[_0x8889('0xf7')](_0x8889('0x50'));if(_0x1f23fb)return _0x1f23fb;_0x6ec06d=_0x6ec06d[_0x8889('0xe1')];}while(_0x6ec06d);return null;}[_0x8889('0x68')](){this[_0x8889('0xf1')][_0x8889('0x1')][_0x8889('0x80')](_0x47e991=>{for(const _0x4f9d80 of this[_0x8889('0xf1')]['model'][_0x8889('0xe7')])_0x47e991['removeMarker'](_0x4f9d80);});}}function et(_0x28b8c9,_0xa606a4){return(_0x4293ae,_0x3e4d5a,_0x32ae7c)=>{if(!_0x32ae7c[_0x8889('0x21')]['test'](_0x3e4d5a[_0x8889('0x2')],_0x4293ae['name']))return;const _0x429e82=_0x3e4d5a[_0x8889('0x2')][_0x8889('0x5f')](),_0x37c6b6=_0x3e4d5a['markerRange']['start'],_0x4994d1=_0x28b8c9[_0x8889('0x1')][_0x8889('0x69')];let _0x3b5ae5=null,_0x59d16c=null,_0x14a210=!0x1,_0x573a96=!0x1;for(const _0x11726e of _0x429e82){const _0x1c2bf3=_0x11726e['item'];_0x14a210=_0x14a210||_0x4994d1[_0x8889('0xd8')](_0x1c2bf3);const _0x3817fd=_0x32ae7c[_0x8889('0xb2')]['toViewElement'](_0x1c2bf3);if(_0x3817fd&&_0x3817fd[_0x8889('0x118')](_0x8889('0x105')))return;_0x8889('0x107')==_0x11726e['type']&&(_0x4994d1['isBlock'](_0x1c2bf3)&&!_0x4994d1[_0x8889('0x100')](_0x1c2bf3)&&(_0x1c2bf3['nextSibling']||_0x37c6b6[_0x8889('0xd5')]?_0x3b5ae5&&_0x3b5ae5['parent']==_0x1c2bf3||(_0x3b5ae5=_0x1c2bf3,_0x2043c9(_0x11726e[_0x8889('0xe6')]),_0x573a96=!0x0):_0x59d16c=_0x59d16c||_0x11726e[_0x8889('0xe6')]));}function _0x2043c9(_0x3b0fdc){const _0xed37ca=_0x32ae7c[_0x8889('0xb2')]['toViewPosition'](_0x3b0fdc),_0x176129=_0x32ae7c['writer'][_0x8889('0xf5')]('span',{'class':_0x8889('0x111')+_0xa606a4});_0x32ae7c[_0x8889('0x30')]['insert'](_0xed37ca,_0x176129),_0x32ae7c[_0x8889('0xb2')][_0x8889('0x3a')](_0x176129,_0x3e4d5a[_0x8889('0x78')]);}_0x14a210||_0x573a96||!_0x59d16c||_0x2043c9(_0x59d16c);};}export class RestoreRevisionCommand extends _0x53c07f{constructor(_0x44cd27){super(_0x44cd27);const _0xac581a=_0x44cd27[_0x8889('0x2c')][_0x8889('0xc2')](d);this[_0x8889('0xcf')]=!0x1,this[_0x8889('0x4f')](_0xac581a,_0x8889('0xc0'),()=>this['refresh']()),this[_0x8889('0x4f')](_0xac581a,_0x8889('0x6c'),()=>this[_0x8889('0xb4')]());}['execute'](){const _0x3041c9=this['editor'],_0x5ea531=_0x3041c9['plugins'][_0x8889('0xc2')](d),_0x438430=_0x5ea531[_0x8889('0xd7')]?_0x5ea531[_0x8889('0x3d')][_0x8889('0x103')]:null;_0x3041c9['config'][_0x8889('0xc2')](_0x8889('0x56'))[_0x8889('0xc6')](_0x438430);}[_0x8889('0xb4')](){const {isReady:_0x27b368,isEnabled:_0x4b6f68}=this[_0x8889('0xf1')][_0x8889('0x2c')]['get'](d);this[_0x8889('0x109')]=_0x27b368&&_0x4b6f68;}}export class ShowChangeCommand extends _0x53c07f{constructor(_0x4900c0,{direction:_0x58d02e}){super(_0x4900c0);const _0x5109ea=_0x4900c0[_0x8889('0x2c')]['get'](d);this[_0x8889('0xcf')]=!0x1,this[_0x8889('0x99')]=_0x8889('0xe5')===_0x58d02e?0x1:-0x1,this['listenTo'](_0x5109ea,_0x8889('0xc0'),()=>this['refresh']()),this['listenTo'](_0x5109ea,_0x8889('0x6c'),()=>this[_0x8889('0xb4')]()),this[_0x8889('0x4f')](_0x5109ea,'change:activeChange',()=>this[_0x8889('0xb4')]());}['execute'](){const _0x27af60=this[_0x8889('0xf1')],_0x29b0df=_0x27af60['plugins'][_0x8889('0xc2')](d),{isNavigationMode:_0x5cb5fe,currentChangeNumber:_0x1ddb08}=_0x29b0df;let _0x337b73;if(_0x29b0df[_0x8889('0xcc')]=_0x5cb5fe?_0x29b0df[_0x8889('0x3d')][_0x8889('0xc5')]['get'](_0x1ddb08+this[_0x8889('0x99')]):_0x29b0df['diff'][_0x8889('0xc5')]['first'],_0x29b0df[_0x8889('0xcc')]['data'][_0x8889('0x9e')])_0x337b73=_0x27af60[_0x8889('0xf6')][_0x8889('0x7')][_0x8889('0xee')](_0x29b0df[_0x8889('0xcc')]['rootName']);else{const _0x5a5878=_0x27af60[_0x8889('0x1')][_0x8889('0xe7')][_0x8889('0xc2')]('revision:'+_0x29b0df['activeChange']['id']);_0x337b73=_0x466862(_0x27af60[_0x8889('0xf6')],_0x5a5878);}_0x1c74cd({'target':_0x337b73,'viewportOffset':0x28});}[_0x8889('0xb4')](){const {isNavigationMode:_0x48efac,currentChangeNumber:_0x462a93,numberOfChanges:_0x64816f,isReady:_0x2f28ab,isEnabled:_0x36501e}=this[_0x8889('0xf1')][_0x8889('0x2c')]['get'](d);this[_0x8889('0x109')]=!!(_0x36501e&&_0x2f28ab&&_0x64816f)&&(!_0x48efac||(0x1===this[_0x8889('0x99')]?_0x462a93<_0x64816f-0x1:_0x462a93>0x0));}}
@@ -2,7 +2,7 @@
2
2
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
- import { Model } from 'ckeditor5/src/ui';
5
+ import { Model } from 'ckeditor5/src/ui.js';
6
6
  import '../../../theme/revision/revisionactions.css';
7
7
  export interface RevisionDropdownOptions {
8
8
  type: 'button';
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4cf5=['Name\x20this\x20revision','isVisible','name','isActionsDropdownOpen','source','items','bind','ck-on','isEnabled','Restore\x20this\x20revision','execute','first','function','ck-revision-history-sidebar__revision__actions','isOpen','change:isActionsDropdownOpen','extendTemplate','stopPropagation','children','add','action','bindTemplate','_action','locale','Show\x20more\x20items'];(function(_0x2fefd3,_0x4cf5f2){const _0x23557f=function(_0x4659ce){while(--_0x4659ce){_0x2fefd3['push'](_0x2fefd3['shift']());}};_0x23557f(++_0x4cf5f2);}(_0x4cf5,0x70));const _0x2355=function(_0x2fefd3,_0x4cf5f2){_0x2fefd3=_0x2fefd3-0x0;let _0x23557f=_0x4cf5[_0x2fefd3];return _0x23557f;};import{Collection as _0x6aa23d}from'ckeditor5/src/utils';import{icons as _0x1ab18c}from'ckeditor5/src/core';import{Model as _0xd64452,addListToDropdown as _0x4dc229,createDropdown as _0x40fcf4}from'ckeditor5/src/ui';import{getTranslation as _0x20178b}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x42e5bd,_0x53ac98){const _0x1acadf=_0x42e5bd[_0x2355('0x9')],_0x32d368=_0x42e5bd[_0x2355('0xb')],_0x40d4ca=_0x40fcf4(_0x32d368);_0x40d4ca['panelPosition']='sw';const _0x5b11f2=function(_0xd842aa,_0x200800){const _0x56d9fd=function(_0xe72b72,_0x1b2eff){const _0x20e3ef=_0xe72b72[_0x2355('0xb')],_0x5dde1e={'Compare\x20against\x20selected':_0x20178b(_0x20e3ef,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x20178b(_0x20e3ef,_0x2355('0xd')),'Restore\x20this\x20revision':_0x20178b(_0x20e3ef,_0x2355('0x16'))};return _0x1b2eff['map'](_0x9cf2cc=>{const _0x3cf0af=_0x5dde1e[_0x9cf2cc['name']];return _0x3cf0af&&_0x3cf0af!==_0x9cf2cc[_0x2355('0xf')]&&(_0x9cf2cc[_0x2355('0xf')]=_0x3cf0af),_0x9cf2cc;});}(_0xd842aa,_0x200800),_0x4bc598=new _0x6aa23d();for(const _0x53c0e0 of _0x56d9fd){const _0x2a4cbe={'type':'button','model':new _0xd64452({'label':_0x53c0e0['name'],'class':_0x53c0e0['class'],'withText':!0x0,'_action':_0x53c0e0['action']})};_0x2a4cbe['model'][_0x2355('0x13')](_0x2355('0x15'))['to'](_0xd842aa,_0x2355('0x10'),_0x2544dd=>_0x2355('0x0')!=typeof _0x53c0e0['isEnabled']||(!_0x2544dd||_0x53c0e0[_0x2355('0x15')](_0xd842aa))),_0x4bc598[_0x2355('0x7')](_0x2a4cbe);}return _0x4bc598;}(_0x42e5bd,_0x53ac98);return _0x42e5bd[_0x2355('0x13')](_0x2355('0x10'))['to'](_0x40d4ca,_0x2355('0x2')),_0x40d4ca['buttonView']['set']({'label':_0x20178b(_0x32d368,_0x2355('0xc')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x1ab18c['threeVerticalDots']}),_0x40d4ca[_0x2355('0x4')]({'attributes':{'class':[_0x2355('0x1'),_0x1acadf['if'](_0x2355('0x10'),_0x2355('0x14'))]},'on':{'click':_0x1acadf['to'](_0xdb0b61=>_0xdb0b61[_0x2355('0x5')]())}}),_0x40d4ca['on'](_0x2355('0x17'),_0x3254a7=>{_0x42e5bd['isReady']&&'function'==typeof _0x3254a7['source'][_0x2355('0xa')]&&_0x3254a7[_0x2355('0x11')]['_action'](_0x42e5bd);}),_0x4dc229(_0x40d4ca,_0x5b11f2),_0x40d4ca['listenTo'](_0x42e5bd,_0x2355('0x3'),(_0x100ba6,_0x541c21,_0x34f649)=>{if(_0x34f649)for(const _0x27dee5 of _0x40d4ca['listView'][_0x2355('0x12')]){const _0x449a17=_0x27dee5[_0x2355('0x6')][_0x2355('0x18')],_0x57fc52=_0x53ac98['find'](_0x35059b=>_0x35059b[_0x2355('0x8')]===_0x449a17['_action'])[_0x2355('0xe')];_0x27dee5[_0x2355('0xe')]=void 0x0===_0x57fc52||_0x57fc52(_0x42e5bd);}}),_0x40d4ca;}
23
+ const _0x1e05=['find','add','class','bind','locale','map','change:isActionsDropdownOpen','ck-revision-history-sidebar__revision__actions','execute','Show\x20more\x20items','name','items','listenTo','isEnabled','_action','bindTemplate','function','children','threeVerticalDots','Restore\x20this\x20revision','isActionsDropdownOpen','source','panelPosition','isVisible','action','ck-on','set','listView'];(function(_0x48a0cd,_0x1e05b8){const _0x436471=function(_0x23c8f7){while(--_0x23c8f7){_0x48a0cd['push'](_0x48a0cd['shift']());}};_0x436471(++_0x1e05b8);}(_0x1e05,0x195));const _0x4364=function(_0x48a0cd,_0x1e05b8){_0x48a0cd=_0x48a0cd-0x0;let _0x436471=_0x1e05[_0x48a0cd];return _0x436471;};import{Collection as _0x22bae4}from'ckeditor5/src/utils.js';import{icons as _0x5aa729}from'ckeditor5/src/core.js';import{Model as _0x18c813,addListToDropdown as _0x59d901,createDropdown as _0x2fb0e9}from'ckeditor5/src/ui.js';import{getTranslation as _0x26c0a8}from'../../utils/common-translations.js';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xa06d43,_0x5ecabb){const _0x956a5=_0xa06d43[_0x4364('0x2')],_0xffa2f0=_0xa06d43[_0x4364('0x13')],_0xeebf7=_0x2fb0e9(_0xffa2f0);_0xeebf7[_0x4364('0x9')]='sw';const _0x3ee4d5=function(_0x5728ad,_0x1de4d9){const _0x1c0671=function(_0x8747c9,_0x1b055e){const _0x471b92=_0x8747c9[_0x4364('0x13')],_0x372a21={'Compare\x20against\x20selected':_0x26c0a8(_0x471b92,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x26c0a8(_0x471b92,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x26c0a8(_0x471b92,_0x4364('0x6'))};return _0x1b055e[_0x4364('0x14')](_0x215495=>{const _0x3148ce=_0x372a21[_0x215495[_0x4364('0x19')]];return _0x3148ce&&_0x3148ce!==_0x215495['name']&&(_0x215495['name']=_0x3148ce),_0x215495;});}(_0x5728ad,_0x1de4d9),_0x316ef1=new _0x22bae4();for(const _0x197745 of _0x1c0671){const _0x2a2259={'type':'button','model':new _0x18c813({'label':_0x197745[_0x4364('0x19')],'class':_0x197745[_0x4364('0x11')],'withText':!0x0,'_action':_0x197745[_0x4364('0xb')]})};_0x2a2259['model'][_0x4364('0x12')]('isEnabled')['to'](_0x5728ad,'isActionsDropdownOpen',_0x522c74=>_0x4364('0x3')!=typeof _0x197745[_0x4364('0x0')]||(!_0x522c74||_0x197745[_0x4364('0x0')](_0x5728ad))),_0x316ef1[_0x4364('0x10')](_0x2a2259);}return _0x316ef1;}(_0xa06d43,_0x5ecabb);return _0xa06d43[_0x4364('0x12')](_0x4364('0x7'))['to'](_0xeebf7,'isOpen'),_0xeebf7['buttonView'][_0x4364('0xd')]({'label':_0x26c0a8(_0xffa2f0,_0x4364('0x18')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x5aa729[_0x4364('0x5')]}),_0xeebf7['extendTemplate']({'attributes':{'class':[_0x4364('0x16'),_0x956a5['if'](_0x4364('0x7'),_0x4364('0xc'))]},'on':{'click':_0x956a5['to'](_0x361dad=>_0x361dad['stopPropagation']())}}),_0xeebf7['on'](_0x4364('0x17'),_0x169811=>{_0xa06d43['isReady']&&'function'==typeof _0x169811[_0x4364('0x8')][_0x4364('0x1')]&&_0x169811[_0x4364('0x8')]['_action'](_0xa06d43);}),_0x59d901(_0xeebf7,_0x3ee4d5),_0xeebf7[_0x4364('0x1b')](_0xa06d43,_0x4364('0x15'),(_0x1aa2a2,_0x1af7bb,_0x1697bc)=>{if(_0x1697bc)for(const _0x2eeda1 of _0xeebf7[_0x4364('0xe')][_0x4364('0x1a')]){const _0x8185be=_0x2eeda1[_0x4364('0x4')]['first'],_0x274442=_0x5ecabb[_0x4364('0xf')](_0x22f306=>_0x22f306[_0x4364('0xb')]===_0x8185be['_action'])[_0x4364('0xa')];_0x2eeda1[_0x4364('0xa')]=void 0x0===_0x274442||_0x274442(_0xa06d43);}}),_0xeebf7;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a98=['Revision\x20creator','ck-revision-history-sidebar__revision-author__name','set','setTemplate','name','push','span','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','0\x200\x2011\x2010'];(function(_0x1449e6,_0x2a989b){const _0x23c840=function(_0x136228){while(--_0x136228){_0x1449e6['push'](_0x1449e6['shift']());}};_0x23c840(++_0x2a989b);}(_0x2a98,0xb9));const _0x23c8=function(_0x1449e6,_0x2a989b){_0x1449e6=_0x1449e6-0x0;let _0x23c840=_0x2a98[_0x1449e6];return _0x23c840;};import{View as _0x2b4ae8,IconView as _0x312638}from'ckeditor5/src/ui';import{getTranslation as _0x15aba6}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x235a1e from'../../../theme/icons/user.svg';export default class ti extends _0x2b4ae8{constructor(_0x417c94,_0x3b7a95,_0x1e2fc6){super(_0x417c94);const _0x519f92=new _0x312638();_0x519f92[_0x23c8('0x7')]({'content':_0x235a1e,'viewBox':_0x23c8('0x4')});const _0x188d28=['ck','ck-revision-history-sidebar__revision-author'];_0x1e2fc6&&_0x188d28[_0x23c8('0x0')](_0x23c8('0x2'));const _0xe402dc=[{'tag':_0x23c8('0x1'),'attributes':{'class':['ck',_0x23c8('0x6')],'title':_0x15aba6(_0x417c94,_0x1e2fc6?_0x23c8('0x5'):_0x23c8('0x3'))},'children':[_0x519f92,_0x3b7a95[_0x23c8('0x9')]]}];this[_0x23c8('0x8')]({'tag':'li','attributes':{'class':_0x188d28},'children':_0xe402dc});}}
23
+ const _0x5c94=['name','span','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','0\x200\x2011\x2010','Revision\x20creator','Revision\x20author','set'];(function(_0xe290a4,_0x5c9413){const _0x5607bb=function(_0x5e3704){while(--_0x5e3704){_0xe290a4['push'](_0xe290a4['shift']());}};_0x5607bb(++_0x5c9413);}(_0x5c94,0x9f));const _0x5607=function(_0xe290a4,_0x5c9413){_0xe290a4=_0xe290a4-0x0;let _0x5607bb=_0x5c94[_0xe290a4];return _0x5607bb;};import{View as _0x5855da,IconView as _0x536002}from'ckeditor5/src/ui.js';import{getTranslation as _0x1d82ce}from'../../utils/common-translations.js';import'../../../theme/revision/revisionauthor.css';import _0x3fd9b1 from'../../../theme/icons/user.svg';export default class ti extends _0x5855da{constructor(_0x4cc889,_0x206bd1,_0x3fdef9){super(_0x4cc889);const _0x4e1bb2=new _0x536002();_0x4e1bb2[_0x5607('0x0')]({'content':_0x3fd9b1,'viewBox':_0x5607('0x5')});const _0x46e330=['ck',_0x5607('0x3')];_0x3fdef9&&_0x46e330['push'](_0x5607('0x4'));const _0x4cd3a0=[{'tag':_0x5607('0x2'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1d82ce(_0x4cc889,_0x3fdef9?_0x5607('0x6'):_0x5607('0x7'))},'children':[_0x4e1bb2,_0x206bd1[_0x5607('0x1')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x46e330},'children':_0x4cd3a0});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x22d4=['Revision\x20name','ck-revision-history-sidebar__revision-name','extendTemplate','span'];(function(_0x4eccc7,_0x22d40c){var _0x14027c=function(_0x40c550){while(--_0x40c550){_0x4eccc7['push'](_0x4eccc7['shift']());}};_0x14027c(++_0x22d40c);}(_0x22d4,0x1af));var _0x1402=function(_0x4eccc7,_0x22d40c){_0x4eccc7=_0x4eccc7-0x0;var _0x14027c=_0x22d4[_0x4eccc7];return _0x14027c;};import{LabeledFieldView as _0x15ba9b}from'ckeditor5/src/ui';import{getTranslation as _0x1ffaa5}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x15ba9b{constructor(_0x4745b2,_0x5722f2){super(_0x4745b2,_0x5722f2),this['set']({'label':_0x1ffaa5(_0x4745b2,_0x1402('0x1'))}),this[_0x1402('0x3')]({'tag':_0x1402('0x0'),'attributes':{'class':[_0x1402('0x2')]}});}}
23
+ var _0x2ffd=['extendTemplate','span','ck-revision-history-sidebar__revision-name','set'];(function(_0x2df60f,_0x2ffd02){var _0x250855=function(_0x4b8b10){while(--_0x4b8b10){_0x2df60f['push'](_0x2df60f['shift']());}};_0x250855(++_0x2ffd02);}(_0x2ffd,0x125));var _0x2508=function(_0x2df60f,_0x2ffd02){_0x2df60f=_0x2df60f-0x0;var _0x250855=_0x2ffd[_0x2df60f];return _0x250855;};import{LabeledFieldView as _0x429472}from'ckeditor5/src/ui.js';import{getTranslation as _0x5611fd}from'../../utils/common-translations.js';import'../../../theme/revision/revisionname.css';export default class is extends _0x429472{constructor(_0x249fd0,_0x10e2fd){super(_0x249fd0,_0x10e2fd),this[_0x2508('0x2')]({'label':_0x5611fd(_0x249fd0,'Revision\x20name')}),this[_0x2508('0x3')]({'tag':_0x2508('0x0'),'attributes':{'class':[_0x2508('0x1')]}});}}
@@ -5,13 +5,13 @@
5
5
  /**
6
6
  * @module revision-history/ui/revision/revisionview
7
7
  */
8
- import type { BaseEvent, Locale } from 'ckeditor5/src/utils';
9
- import { View, type DropdownView } from 'ckeditor5/src/ui';
10
- import RevisionNameView from './revisionnameview';
8
+ import type { BaseEvent, Locale } from 'ckeditor5/src/utils.js';
9
+ import { View, type DropdownView } from 'ckeditor5/src/ui.js';
10
+ import RevisionNameView from './revisionnameview.js';
11
11
  import '../../../theme/revision/revision.css';
12
- import type Revision from '../../revision';
13
- import type { RevisionAction } from '../revisionssidebar/revisionssidebar';
14
- declare const RevisionView_base: import("ckeditor5/src/utils").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin").ConfirmApi>;
12
+ import type Revision from '../../revision.js';
13
+ import type { RevisionAction } from '../revisionssidebar/revisionssidebar.js';
14
+ declare const RevisionView_base: import("ckeditor5/src/utils.js").Mixed<typeof View, import("@ckeditor/ckeditor5-collaboration-core/src/utils/confirmmixin.js").ConfirmApi>;
15
15
  /**
16
16
  * TODO
17
17
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x45fe=['ck-disabled','bind','isEnabled','div','srcElement','extendTemplate','ck-reset','listenTo','fieldView','value','ck-revision-history-sidebar__actions_dropdown_open','fire','isActionsDropdownOpen','ck-revision-history-sidebar__revision__date','span','isSelected','ck-revision-history-sidebar__revision_selected','setTemplate','bindTemplate','set','render','unshift','select','authors','ck-revision-history-sidebar__revision_highlighted','deselect','length','closest','placeholder','setName','_revision','element','revisionActionsView','ck-revision-history-sidebar__revision-authors','revisionNameView','.ck-thread__remove-confirm','isConfirm','isReady','_createdAtFormatted','creator','ck-revision-history-sidebar__revision__controls-wrapper','isHighlighted','map','220','name','createdAt','from','unhighlight'];(function(_0x106028,_0x45fe57){const _0x138905=function(_0x259b10){while(--_0x259b10){_0x106028['push'](_0x106028['shift']());}};_0x138905(++_0x45fe57);}(_0x45fe,0xa8));const _0x1389=function(_0x106028,_0x45fe57){_0x106028=_0x106028-0x0;let _0x138905=_0x45fe[_0x106028];return _0x138905;};import{View as _0x2fd9ba,createLabeledInputText as _0x40b507}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4a79d3}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c3411 from'./revisionnameview';import _0xc4b4d3 from'./revisionauthorview';import{dateToPrettyFormat as _0x3bc51f}from'./utils';import{createActionsDropdownView as _0x329c2b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4a79d3(_0x2fd9ba){constructor(_0xd67df,_0xe756d8,_0x1542f4){super(_0xd67df);const _0x16f5e9=this[_0x1389('0x2a')],_0x32771c=function(_0x33ae45,_0x544e90){const _0x37d9c7=Array[_0x1389('0x16')](_0x544e90[_0x1389('0x2f')])['filter'](_0x2bd435=>_0x2bd435!=_0x544e90[_0x1389('0xf')]);return _0x544e90[_0x1389('0xf')]&&_0x37d9c7[_0x1389('0x2d')](_0x544e90[_0x1389('0xf')]),_0x37d9c7[_0x1389('0x12')](_0x5ed717=>new _0xc4b4d3(_0x33ae45,_0x5ed717,_0x5ed717==_0x544e90[_0x1389('0xf')]));}(_0xd67df,_0xe756d8);this['id']=_0xe756d8['id'],this[_0x1389('0x6')]=_0xe756d8,this[_0x1389('0x19')](_0x1389('0x14'),_0x1389('0x15'))['to'](_0xe756d8),this[_0x1389('0x19')](_0x1389('0xe'))['to'](this,_0x1389('0x15'),_0x31b363=>_0x31b363?_0x3bc51f(_0xd67df['uiLanguage'],_0x31b363):void 0x0),this[_0x1389('0x2b')](_0x1389('0x27'),!0x1),this[_0x1389('0x2b')](_0x1389('0x11'),!0x1),this[_0x1389('0x2b')](_0x1389('0x24'),!0x1),this[_0x1389('0x2b')](_0x1389('0xd'),!0x1),this[_0x1389('0x2b')](_0x1389('0x1a'),!0x1),this['revisionNameView']=new _0x4c3411(_0xd67df,_0x40b507),this['revisionNameView'][_0x1389('0x20')][_0x1389('0x1d')]({'attributes':{'maxlength':_0x1389('0x13')}}),this[_0x1389('0xa')][_0x1389('0x20')]['bind'](_0x1389('0x21'),_0x1389('0x4'))['to'](this,_0x1389('0x14'),_0x1389('0xe')),this[_0x1389('0xa')][_0x1389('0x19')](_0x1389('0x1a'))['to'](this,_0x1389('0x27'),this,'isEnabled',(_0x52d722,_0x31cc2f)=>_0x52d722&&_0x31cc2f),this['revisionActionsView']=_0x1542f4&&_0x1542f4[_0x1389('0x2')]?_0x329c2b(this,_0x1542f4):'',this['revisionActionsView']&&this[_0x1389('0x8')][_0x1389('0x19')](_0x1389('0x1a'))['to'](this),this[_0x1389('0x29')]({'tag':_0x1389('0x1b'),'attributes':{'class':['ck',_0x1389('0x1e'),'ck-revision-history-sidebar__revision-wrapper',_0x16f5e9['if'](_0x1389('0xc'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x1389('0x1b'),'attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x16f5e9['if'](_0x1389('0x1a'),_0x1389('0x18'),_0x357adc=>!_0x357adc),_0x16f5e9['if']('isSelected',_0x1389('0x28')),_0x16f5e9['if'](_0x1389('0x11'),_0x1389('0x0')),_0x16f5e9['if']('isActionsDropdownOpen',_0x1389('0x22'))]},'children':[this[_0x1389('0xa')],{'tag':_0x1389('0x26'),'attributes':{'class':['ck',_0x1389('0x25')]},'children':[{'text':_0x16f5e9['to'](_0x1389('0xe'))}]},{'tag':'div','attributes':{'class':['ck',_0x1389('0x10')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x1389('0x9')]},'children':_0x32771c}]},this[_0x1389('0x8')]],'on':{'click':_0x16f5e9['to'](_0x5e353c=>{_0x5e353c[_0x1389('0x1c')][_0x1389('0x3')](_0x1389('0xb'))||this[_0x1389('0xd')]&&this[_0x1389('0x1a')]&&this[_0x1389('0x23')](_0x1389('0x2e'),{'id':this['id']});})}}]});}[_0x1389('0x2c')](){super[_0x1389('0x2c')]();const _0xd5c0bf=this[_0x1389('0xa')]['fieldView'][_0x1389('0x7')];this[_0x1389('0x1f')](_0xd5c0bf,'change',()=>{this[_0x1389('0x23')](_0x1389('0x5'),{'id':this['id'],'name':_0xd5c0bf[_0x1389('0x21')]});});}[_0x1389('0x2e')](){this[_0x1389('0x27')]=!0x0;}[_0x1389('0x1')](){this['isSelected']=!0x1;}['highlight'](){this[_0x1389('0x11')]=!0x0;}[_0x1389('0x17')](){this[_0x1389('0x11')]=!0x1;}}
23
+ const _0x2cfd=['extendTemplate','value','revisionActionsView','render','ck-reset','ck-revision-history-sidebar__revision__controls-wrapper','placeholder','creator','ck-revision-history-sidebar__revision_highlighted','map','select','unhighlight','_revision','isActionsDropdownOpen','authors','filter','fieldView','listenTo','change','ck-revision-history-sidebar__actions_dropdown_open','unshift','fire','length','from','div','isReady','span','ck-disabled','revisionNameView','isHighlighted','name','isConfirm','isSelected','setTemplate','220','closest','setName','createdAt','set','highlight','deselect','_createdAtFormatted','uiLanguage','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision-authors','bind','ck-revision-history-sidebar__revision','isEnabled'];(function(_0xe7b44,_0x2cfd35){const _0x39e72f=function(_0x428cb2){while(--_0x428cb2){_0xe7b44['push'](_0xe7b44['shift']());}};_0x39e72f(++_0x2cfd35);}(_0x2cfd,0x67));const _0x39e7=function(_0xe7b44,_0x2cfd35){_0xe7b44=_0xe7b44-0x0;let _0x39e72f=_0x2cfd[_0xe7b44];return _0x39e72f;};import{View as _0x118022,createLabeledInputText as _0x56c148}from'ckeditor5/src/ui.js';import{ConfirmMixin as _0x560544}from'ckeditor5-collaboration/src/collaboration-core.js';import _0x296e17 from'./revisionnameview.js';import _0x114779 from'./revisionauthorview.js';import{dateToPrettyFormat as _0x462481}from'./utils.js';import{createActionsDropdownView as _0x5bd589}from'./createrevisionactionsdropdown.js';import'../../../theme/revision/revision.css';export default class ai extends _0x560544(_0x118022){constructor(_0x215148,_0x500143,_0x2a9842){super(_0x215148);const _0x513410=this['bindTemplate'],_0x251654=function(_0x25acef,_0x3592e6){const _0x4b7c72=Array[_0x39e7('0x10')](_0x3592e6[_0x39e7('0x7')])[_0x39e7('0x8')](_0x147efb=>_0x147efb!=_0x3592e6[_0x39e7('0x0')]);return _0x3592e6['creator']&&_0x4b7c72[_0x39e7('0xd')](_0x3592e6[_0x39e7('0x0')]),_0x4b7c72[_0x39e7('0x2')](_0x2a6a19=>new _0x114779(_0x25acef,_0x2a6a19,_0x2a6a19==_0x3592e6['creator']));}(_0x215148,_0x500143);this['id']=_0x500143['id'],this[_0x39e7('0x5')]=_0x500143,this[_0x39e7('0x26')](_0x39e7('0x17'),_0x39e7('0x1e'))['to'](_0x500143),this[_0x39e7('0x26')](_0x39e7('0x22'))['to'](this,_0x39e7('0x1e'),_0x39911d=>_0x39911d?_0x462481(_0x215148[_0x39e7('0x23')],_0x39911d):void 0x0),this['set'](_0x39e7('0x19'),!0x1),this[_0x39e7('0x1f')](_0x39e7('0x16'),!0x1),this['set'](_0x39e7('0x6'),!0x1),this[_0x39e7('0x1f')](_0x39e7('0x12'),!0x1),this[_0x39e7('0x1f')](_0x39e7('0x28'),!0x1),this[_0x39e7('0x15')]=new _0x296e17(_0x215148,_0x56c148),this[_0x39e7('0x15')][_0x39e7('0x9')][_0x39e7('0x29')]({'attributes':{'maxlength':_0x39e7('0x1b')}}),this[_0x39e7('0x15')][_0x39e7('0x9')][_0x39e7('0x26')](_0x39e7('0x2a'),_0x39e7('0x2f'))['to'](this,_0x39e7('0x17'),_0x39e7('0x22')),this[_0x39e7('0x15')][_0x39e7('0x26')](_0x39e7('0x28'))['to'](this,_0x39e7('0x19'),this,_0x39e7('0x28'),(_0x4a6e72,_0x3a6155)=>_0x4a6e72&&_0x3a6155),this[_0x39e7('0x2b')]=_0x2a9842&&_0x2a9842[_0x39e7('0xf')]?_0x5bd589(this,_0x2a9842):'',this[_0x39e7('0x2b')]&&this[_0x39e7('0x2b')]['bind']('isEnabled')['to'](this),this[_0x39e7('0x1a')]({'tag':_0x39e7('0x11'),'attributes':{'class':['ck',_0x39e7('0x2d'),'ck-revision-history-sidebar__revision-wrapper',_0x513410['if'](_0x39e7('0x18'),_0x39e7('0x24'))]},'children':[{'tag':_0x39e7('0x11'),'attributes':{'class':['ck','ck-reset',_0x39e7('0x27'),_0x513410['if'](_0x39e7('0x28'),_0x39e7('0x14'),_0x3881d4=>!_0x3881d4),_0x513410['if'](_0x39e7('0x19'),'ck-revision-history-sidebar__revision_selected'),_0x513410['if'](_0x39e7('0x16'),_0x39e7('0x1')),_0x513410['if'](_0x39e7('0x6'),_0x39e7('0xc'))]},'children':[this[_0x39e7('0x15')],{'tag':_0x39e7('0x13'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x513410['to']('_createdAtFormatted')}]},{'tag':_0x39e7('0x11'),'attributes':{'class':['ck',_0x39e7('0x2e')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x39e7('0x25')]},'children':_0x251654}]},this[_0x39e7('0x2b')]],'on':{'click':_0x513410['to'](_0x15a235=>{_0x15a235['srcElement'][_0x39e7('0x1c')]('.ck-thread__remove-confirm')||this[_0x39e7('0x12')]&&this[_0x39e7('0x28')]&&this[_0x39e7('0xe')](_0x39e7('0x3'),{'id':this['id']});})}}]});}[_0x39e7('0x2c')](){super[_0x39e7('0x2c')]();const _0xe3c6b2=this['revisionNameView'][_0x39e7('0x9')]['element'];this[_0x39e7('0xa')](_0xe3c6b2,_0x39e7('0xb'),()=>{this['fire'](_0x39e7('0x1d'),{'id':this['id'],'name':_0xe3c6b2[_0x39e7('0x2a')]});});}['select'](){this[_0x39e7('0x19')]=!0x0;}[_0x39e7('0x21')](){this['isSelected']=!0x1;}[_0x39e7('0x20')](){this[_0x39e7('0x16')]=!0x0;}[_0x39e7('0x4')](){this['isHighlighted']=!0x1;}}
@@ -5,8 +5,8 @@
5
5
  /**
6
6
  * @module revision-history/ui/revision/subrevisioncollapserview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../../theme/revision/subrevisioncollapser.css';
11
11
  export default class SubrevisionCollapserView extends View {
12
12
  /**
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4ec6=['false','ck-revision-history-sidebar__subrevision-collapser','_isCollapsed','bindTemplate','click','toggle','isVisible','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-revision-history-sidebar__subrevision-collapser__inner','button'];(function(_0x299d4d,_0x4ec6a9){const _0xbf3a71=function(_0x136960){while(--_0x136960){_0x299d4d['push'](_0x299d4d['shift']());}};_0xbf3a71(++_0x4ec6a9);}(_0x4ec6,0x112));const _0xbf3a=function(_0x299d4d,_0x4ec6a9){_0x299d4d=_0x299d4d-0x0;let _0xbf3a71=_0x4ec6[_0x299d4d];return _0xbf3a71;};import{View as _0x3c54ed}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3c54ed{constructor(_0x39befb){super(_0x39befb);const _0x50ba65=this[_0xbf3a('0x4')];this[_0xbf3a('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck',_0xbf3a('0x2'),_0x50ba65['if'](_0xbf3a('0x7'),'ck-hidden',_0x12ba0c=>!_0x12ba0c),_0x50ba65['if'](_0xbf3a('0x3'),_0xbf3a('0x9'))],'role':_0xbf3a('0x0'),'aria-pressed':_0x50ba65['to'](_0xbf3a('0x3'),_0x48e443=>_0x48e443?_0xbf3a('0x1'):'true')},'children':[{'tag':'span','attributes':{'class':['ck',_0xbf3a('0xa')]}}],'on':{'click':_0x50ba65['to'](_0xbf3a('0x5'))}});}[_0xbf3a('0x6')](){this[_0xbf3a('0x3')]=!this[_0xbf3a('0x3')];}}
23
+ const _0x3763=['click','set','ck-revision-history-sidebar__subrevision-collapser__inner','button','ck-revision-history-sidebar__subrevision-collapser','span','ck-hidden','toggle','true','bindTemplate','setTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed'];(function(_0x1201a5,_0x3763e9){const _0x1d7cea=function(_0x494f54){while(--_0x494f54){_0x1201a5['push'](_0x1201a5['shift']());}};_0x1d7cea(++_0x3763e9);}(_0x3763,0xaf));const _0x1d7c=function(_0x1201a5,_0x3763e9){_0x1201a5=_0x1201a5-0x0;let _0x1d7cea=_0x3763[_0x1201a5];return _0x1d7cea;};import{View as _0x57b119}from'ckeditor5/src/ui.js';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x57b119{constructor(_0x307048){super(_0x307048);const _0x496c0c=this[_0x1d7c('0x3')];this[_0x1d7c('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1d7c('0x4')]({'tag':_0x1d7c('0xc'),'attributes':{'class':['ck',_0x1d7c('0xb'),_0x496c0c['if']('isVisible',_0x1d7c('0x0'),_0x12e1c9=>!_0x12e1c9),_0x496c0c['if']('_isCollapsed',_0x1d7c('0x5'))],'role':_0x1d7c('0xa'),'aria-pressed':_0x496c0c['to'](_0x1d7c('0x6'),_0x59be15=>_0x59be15?'false':_0x1d7c('0x2'))},'children':[{'tag':_0x1d7c('0xc'),'attributes':{'class':['ck',_0x1d7c('0x9')]}}],'on':{'click':_0x496c0c['to'](_0x1d7c('0x7'))}});}[_0x1d7c('0x1')](){this[_0x1d7c('0x6')]=!this[_0x1d7c('0x6')];}}
@@ -5,10 +5,10 @@
5
5
  /**
6
6
  * @module revision-history/ui/revision/subrevisionview
7
7
  */
8
- import { View } from 'ckeditor5/src/ui';
9
- import type { Locale } from 'ckeditor5/src/utils';
8
+ import { View } from 'ckeditor5/src/ui.js';
9
+ import type { Locale } from 'ckeditor5/src/utils.js';
10
10
  import '../../../theme/revision/subrevision.css';
11
- import type Revision from '../../revision';
11
+ import type Revision from '../../revision.js';
12
12
  /**
13
13
  * TODO
14
14
  */
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5cec=['set','isSelected','select','bindTemplate','deselect','ck-revision-history-sidebar__revision-authors','bind','span','ck-revision-history-sidebar__revision__date','createdAt','creator','_createdAtFormatted','_parentRevisionId','ck-revision-history-sidebar__subrevision'];(function(_0x2ebcaf,_0x5cec9b){const _0x481313=function(_0xb86c56){while(--_0xb86c56){_0x2ebcaf['push'](_0x2ebcaf['shift']());}};_0x481313(++_0x5cec9b);}(_0x5cec,0x128));const _0x4813=function(_0x2ebcaf,_0x5cec9b){_0x2ebcaf=_0x2ebcaf-0x0;let _0x481313=_0x5cec[_0x2ebcaf];return _0x481313;};import{View as _0x218561}from'ckeditor5/src/ui';import _0x139844 from'./revisionauthorview';import{dateToPrettyFormat as _0xb17c46}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x218561{constructor(_0x30ad5f,_0xe94ec0,_0x1d4393){super(_0x30ad5f);const _0x1d1713=this[_0x4813('0x1')];this['id']=_0xe94ec0['id'],this[_0x4813('0x4')](_0x4813('0x7'))['to'](_0xe94ec0),this[_0x4813('0xc')](_0x4813('0xd'),!0x1),this[_0x4813('0x4')](_0x4813('0x9'))['to'](this,_0x4813('0x7'),_0x289a5d=>_0x289a5d?_0xb17c46(_0x30ad5f['uiLanguage'],_0x289a5d):void 0x0),this[_0x4813('0xa')]=_0x1d4393,this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x4813('0xb'),_0x1d1713['if'](_0x4813('0xd'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x4813('0x5'),'attributes':{'class':['ck',_0x4813('0x6')]},'children':[{'text':_0x1d1713['to'](_0x4813('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x4813('0x3')]},'children':[new _0x139844(_0x30ad5f,_0xe94ec0[_0x4813('0x8')],!0x0)]}],'on':{'click':_0x1d1713['to'](this['select'][_0x4813('0x4')](this))}});}['select'](){this['isSelected']=!0x0,this['fire'](_0x4813('0x0'),{'parentId':this['_parentRevisionId']});}[_0x4813('0x2')](){this[_0x4813('0xd')]=!0x1;}}
23
+ const _0x4d08=['ck-revision-history-sidebar__subrevision','creator','select','set','uiLanguage','ck-revision-history-sidebar__revision__date','_createdAtFormatted','ck-revision-history-sidebar__revision','bind','deselect','ck-reset','setTemplate','isSelected','span','_parentRevisionId','fire','div','createdAt','ck-revision-history-sidebar__revision_selected','bindTemplate'];(function(_0x14fa25,_0x4d0860){const _0x3c2be7=function(_0x5c81f7){while(--_0x5c81f7){_0x14fa25['push'](_0x14fa25['shift']());}};_0x3c2be7(++_0x4d0860);}(_0x4d08,0xbc));const _0x3c2b=function(_0x14fa25,_0x4d0860){_0x14fa25=_0x14fa25-0x0;let _0x3c2be7=_0x4d08[_0x14fa25];return _0x3c2be7;};import{View as _0x163842}from'ckeditor5/src/ui.js';import _0x392d8f from'./revisionauthorview.js';import{dateToPrettyFormat as _0x18494a}from'./utils.js';import'../../../theme/revision/subrevision.css';export default class ts extends _0x163842{constructor(_0x4999ea,_0x2dce4e,_0x4a9ac6){super(_0x4999ea);const _0x4e29e8=this[_0x3c2b('0xb')];this['id']=_0x2dce4e['id'],this[_0x3c2b('0x0')](_0x3c2b('0x9'))['to'](_0x2dce4e),this[_0x3c2b('0xf')](_0x3c2b('0x4'),!0x1),this[_0x3c2b('0x0')](_0x3c2b('0x12'))['to'](this,_0x3c2b('0x9'),_0x5cf411=>_0x5cf411?_0x18494a(_0x4999ea[_0x3c2b('0x10')],_0x5cf411):void 0x0),this[_0x3c2b('0x6')]=_0x4a9ac6,this[_0x3c2b('0x3')]({'tag':_0x3c2b('0x8'),'attributes':{'class':['ck',_0x3c2b('0x2'),_0x3c2b('0x13'),_0x3c2b('0xc'),_0x4e29e8['if']('isSelected',_0x3c2b('0xa'))]},'children':[{'tag':_0x3c2b('0x5'),'attributes':{'class':['ck',_0x3c2b('0x11')]},'children':[{'text':_0x4e29e8['to'](_0x3c2b('0x12'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x392d8f(_0x4999ea,_0x2dce4e[_0x3c2b('0xd')],!0x0)]}],'on':{'click':_0x4e29e8['to'](this[_0x3c2b('0xe')]['bind'](this))}});}[_0x3c2b('0xe')](){this[_0x3c2b('0x4')]=!0x0,this[_0x3c2b('0x7')]('select',{'parentId':this[_0x3c2b('0x6')]});}[_0x3c2b('0x1')](){this[_0x3c2b('0x4')]=!0x1;}}