@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230903.0 → 0.0.0-nightly-20230905.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 (31) hide show
  1. package/build/revision-history.js +1 -1
  2. package/package.json +6 -6
  3. package/src/changeitem.js +1 -1
  4. package/src/editor/revisionviewereditor.js +1 -1
  5. package/src/editor/revisionviewereditorui.js +1 -1
  6. package/src/editor/revisionviewereditoruiview.js +1 -1
  7. package/src/revision.js +1 -1
  8. package/src/revisiondiff.js +1 -1
  9. package/src/revisionhistory.js +1 -1
  10. package/src/revisionsrepository.js +1 -1
  11. package/src/revisiontracker.js +1 -1
  12. package/src/revisionviewer.js +1 -1
  13. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  14. package/src/ui/revision/revisionauthorview.js +1 -1
  15. package/src/ui/revision/revisionnameview.js +1 -1
  16. package/src/ui/revision/revisionview.js +1 -1
  17. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  18. package/src/ui/revision/subrevisionview.js +1 -1
  19. package/src/ui/revision/utils.js +1 -1
  20. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  22. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  26. package/src/ui/revisionssidebar/utils.js +1 -1
  27. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  28. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  29. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  31. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x7418=['then','revision:','merge','for','add','isLimit','mapViewToDom','toViewPosition','split','softBreak','getRootNames','consumable','createUIElement','indexOf','_removeMissingPairs','revisionHistoryAttachChange','_refreshStartEndIndex','addClass','change:numberOfChanges','change:activeView','revision-viewer','side','_findChangeIdFromDomTarget','addRoot','length','setAttribute','deletions','attributesAfter','collaboration.channelId','ck-suggestion-marker-split','document','isReady','markerName','activeChange','keys','parent','_markMarkers','left','restoreRevisionCallback','change:activeChange','_sortAndFilterDiffChanges','elementEnd','_update','data','_step','newRevisionId','comment','get','markersStart','backward','commands','getDomRoot','done','removeMarker:revision-suggestion','createRangeIn','find','sort','_removeUnsupportedChanges','_threeWayMerge','_cleanUp','string','showNextChange','model','_getViewForChange','shift','highest','_balloon','code','domEvent','mousedown','toViewRange','addHighlight','modelRange','all','level','has','target','userId','ck-suggestion-preview-marker-','_getViewObj','_makeTape','push','_appendChild','startsWith','adapter','suggestion','right','getCustomProperty','stop','includes','addMarker:revision','data-revision-','revision-end','ck-revision-history-root-','loadRevisionData','index','_markInsertions','requires','hasAttribute','type','_removeRevisionMarkers','compare','roots','ck-suggestion-marker-merge','revision','diff','addRevisionData','getIndex','_setConversion','view','reconvertMarker','_processTape','ck-suggestion-marker-','isIncorrect','removeClass','filter','_getChangeFromId','updatePosition','_setDistance','init','rootName','isEnabled','abs','change:isEnabled','forceDisabled','revision-suggestion','map','markerToHighlight','isCollapsed','editing','editingDowncast','createPositionFromPath','isAttached','_data','getAttribute','showStack','schema','revision-start','bottom','markersEnd','top','isContent','nextPosition','toData','_fixObsoleteTags','ck-revision-history-root-remove','repository','isEqual','getRevision','insertions','slice','_getDiff','getItems','forward','mapper','isBlock','bind','upcast','writer','start','activeView','set','useFillerType','_changeView','viewItem','isAfter','vid_start','clear','destroy','forEach','getAttributes','low','end','splice','return','high','RevisionsRepository','isAddSuggestion','editor','remove','children','from','diffData','catch','consume','attributesBefore','vid','isAtEnd','default','change','bindElementToMarker','insert','ck-suggestion-marker--active','pairId','restoreRevision','isAdded','-new','config','object','changes','currentChangeNumber','nodeAfter','nextSibling','elementStart','observeMarkers','domConverter','revisionHistoryLabel','_getRevisionsRange','hasClass','toViewElement','markerNameToElements','data-change-id','isBefore','markerToData','refresh','item','offsetSize','changeId','listenTo','_joinTapes','revisionHistory','vid_end','text','_markMismatchedRemovedTags','_setChanges','ck-revision-history-root-add','oldRevisionId','_cleanMarkers','next','addRevision','plugins','conversion','authors','name','unbindElementFromMarkerName','isNavigationMode','getRoot','_activeViewTarget','change:isReady','concat','isOnRoot','flat','isRemoved','unshift','findIndex','revision-comment:','attachChange','addMarker:revision-suggestion:insertion','affectsData','dataToMarker','startIndex','uiElement','deletion','RevisionViewer','execute','delete','isRemoveSuggestion','isSuggestion','attributes','parse','createAttributeElement','previousPosition','distance','POSITIVE_INFINITY','getRevisionData','attribute:vid','createRange','enableReadOnlyMode','ck-suggestion-marker','suggestion:','mouseover','markerRange','endIndex','wrap','_markSuggestions','ck-editor__editable__overlay','processor','span','_makeModelFromViewString','downcastDispatcher','insertion','isObject','getClientRects','pop','_changeIdToChange','dataDowncast','ck-revision-history-root--active','WidgetToolbarRepository','markers','element','test','element:pre','getWalker','removeMarker'];(function(_0x4a3140,_0x7418af){const _0x168e07=function(_0x1f6f86){while(--_0x1f6f86){_0x4a3140['push'](_0x4a3140['shift']());}};_0x168e07(++_0x7418af);}(_0x7418,0x19b));const _0x168e=function(_0x4a3140,_0x7418af){_0x4a3140=_0x4a3140-0x0;let _0x168e07=_0x7418[_0x4a3140];return _0x168e07;};import{Plugin as _0x4bfa8a,Command as _0x1de69a}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2ade8d}from'ckeditor5/src/utils';import{ContextualBalloon as _0x2faec6}from'ckeditor5/src/ui';import{DocumentFragment as _0x33aff6,Element as _0x604797,Text as _0x4f1726,ViewDocumentFragment as _0x2e1cc0,ViewText as _0x290f73,ViewElement as _0x4a32ab,ViewContainerElement as _0x28ee78,ViewAttributeElement as _0x5329e4,ViewEmptyElement as _0x4f9381,ViewRawElement as _0x20c839,ViewUIElement as _0x2d1762}from'ckeditor5/src/engine';import{Users as _0x3d7b12,getMarkerDomElement as _0xb48a2c}from'ckeditor5-collaboration/src/collaboration-core';import _0x3ee96d from'./ui/revisionviewer/changedetailsview';import _0x3f40c0 from'./revisionsrepository';import _0x336f54 from'./changeitem';import{default as _0x32ed9a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3b2a5b}from'lodash-es';const tt={'c':_0x28ee78,'a':_0x5329e4,'e':_0x4f9381,'r':_0x20c839,'u':_0x2d1762};export default class d extends _0x4bfa8a{static get['pluginName'](){return _0x168e('0x88');}static get[_0x168e('0x112')](){return[_0x3d7b12,_0x2faec6,_0x3f40c0];}constructor(_0x1be26d){super(_0x1be26d),this[_0x168e('0x1d')]=this[_0x168e('0x3d')]['plugins'][_0x168e('0xe0')](_0x168e('0x3b')),this['set']('activeChange',null),this['set'](_0x168e('0x2b'),null),this[_0x168e('0x78')]=null,this[_0x168e('0x2c')]('diff',null),this[_0x168e('0x2c')](_0x168e('0xd0'),!0x1),this[_0x168e('0x2c')](_0x168e('0x4'),!0x0),this['on'](_0x168e('0x6'),(_0x518848,_0x546765,_0x4f9457)=>{this[_0x168e('0xd2')]=null,this['activeView']=null,this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0x48')](_0x505db6=>{for(const _0x2d323b of this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0xcf')][_0x168e('0x117')])_0x4f9457?_0x505db6[_0x168e('0x123')](_0x168e('0x9e'),_0x2d323b):_0x505db6[_0x168e('0xc2')](_0x168e('0x9e'),_0x2d323b);});}),this[_0x168e('0x27')](_0x168e('0x76'))['to'](this,'activeChange',_0x548543=>null!==_0x548543),this['bind'](_0x168e('0x53'))['to'](this,_0x168e('0xd0'),this,_0x168e('0x11a'),this,_0x168e('0xd2'),(_0x555ef2,_0x44b1b3,_0x4d0c96)=>_0x555ef2&&_0x4d0c96?_0x44b1b3[_0x168e('0x52')]['getIndex'](_0x4d0c96):0x0),this[_0x168e('0x27')]('numberOfChanges')['to'](this,_0x168e('0xd0'),this,_0x168e('0x11a'),(_0x39c42f,_0x47f4e9)=>_0x39c42f?_0x47f4e9[_0x168e('0x52')]['length']:0x0),this[_0x168e('0x2e')]=null,this[_0x168e('0xa7')]=new Map(),this[_0x168e('0x105')]=null,this[_0x168e('0xf3')]=this[_0x168e('0x3d')][_0x168e('0x71')][_0x168e('0xe0')](_0x2faec6);}[_0x168e('0x2')](){const _0x1da136=this[_0x168e('0x3d')],_0x108bff=new ShowChangeCommand(_0x1da136,{'direction':_0x168e('0xe2')}),_0x4ac1c0=new ShowChangeCommand(_0x1da136,{'direction':_0x168e('0x24')});(_0x1da136[_0x168e('0xe3')][_0x168e('0xb5')]('showPreviousChange',_0x108bff),_0x1da136[_0x168e('0xe3')][_0x168e('0xb5')](_0x168e('0xee'),_0x4ac1c0),_0x1da136[_0x168e('0xe3')][_0x168e('0xb5')](_0x168e('0x4d'),new RestoreRevisionCommand(_0x1da136)),this['on'](_0x168e('0xc3'),()=>{_0x108bff['refresh'](),_0x4ac1c0[_0x168e('0x61')]();}),this[_0x168e('0x11d')](),this['_initInteractions'](),_0x1da136[_0x168e('0x96')](_0x168e('0xc5')),_0x1da136[_0x168e('0x71')]['has'](_0x168e('0xaa')))&&_0x1da136[_0x168e('0x71')]['get'](_0x168e('0xaa'))[_0x168e('0x7')](_0x168e('0xc5'));}async[_0x168e('0x93')](_0x3e6462){await this[_0x168e('0x10f')](_0x3e6462);const _0x206806={};for(const _0x42e210 in _0x3e6462[_0x168e('0x41')]){if(_0x3e6462['diffData'][_0x42e210][_0x168e('0x81')]&&!_0x3e6462[_0x168e('0x41')][_0x42e210][_0x168e('0x81')][_0x168e('0xf')])continue;const _0x15a701=this[_0x168e('0x115')](JSON[_0x168e('0x8e')](_0x3e6462['diffData'][_0x42e210][_0x168e('0x20')])),_0x57c956=this['editor'][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0xcf')],_0x59b571=new _0x2e1cc0(_0x57c956,_0x15a701[_0x168e('0x9')](_0x49be06=>this['_getViewObj'](_0x49be06)));this[_0x168e('0x3d')][_0x168e('0xdc')][_0x168e('0x9f')]['useFillerType']('marked'),_0x206806[_0x42e210]=this[_0x168e('0x3d')]['data'][_0x168e('0x9f')][_0x168e('0x1a')](_0x59b571),this['editor'][_0x168e('0xdc')]['processor'][_0x168e('0x2d')](_0x168e('0x47'));}return _0x206806;}async['getRevisionRootsAttributes'](_0x39d5fa){await this[_0x168e('0x10f')](_0x39d5fa);const _0x13049f={};for(const _0x6d67ad in _0x39d5fa['diffData'])_0x39d5fa[_0x168e('0x41')][_0x6d67ad][_0x168e('0x81')]&&!_0x39d5fa[_0x168e('0x41')][_0x6d67ad]['attachChange']['isAttached']||(_0x13049f[_0x6d67ad]=_0x39d5fa['diffData'][_0x6d67ad]['attributesAfter']||{});return _0x13049f;}[_0x168e('0x115')](_0x26f3ce){return(_0x26f3ce=_0x26f3ce[_0x168e('0x124')](_0x511875=>!_0x511875[_0x168e('0x74')]||_0x168e('0x14')!==_0x511875[_0x168e('0x74')]&&_0x168e('0x10d')!==_0x511875[_0x168e('0x74')]))['forEach'](_0x2a9186=>{_0x168e('0xed')!=typeof _0x2a9186&&(_0x2a9186[_0x168e('0x3f')]=this[_0x168e('0x115')](_0x2a9186['children']),_0x2a9186['attributes']=_0x2a9186[_0x168e('0x8d')]['filter'](_0x2f1c3a=>!_0x2f1c3a[0x0][_0x168e('0x104')](_0x168e('0x10c'))));}),_0x26f3ce;}async[_0x168e('0x116')](_0x57d8e0,_0x302359,_0x51408d=!0x1){if(!this[_0x168e('0x4')])return;const _0x53c91e=this['diff'],_0x125d25=this[_0x168e('0x1d')],_0x288f2d=_0x168e('0xed')==typeof _0x57d8e0?_0x125d25['getRevision'](_0x57d8e0):_0x57d8e0,_0x232233='string'==typeof _0x302359?_0x125d25[_0x168e('0x1f')](_0x302359):_0x302359,_0x56b659=_0x288f2d['id'],_0x4fa170=_0x232233?_0x232233['id']:null;if(!_0x51408d&&this[_0x168e('0x11a')]&&this[_0x168e('0x11a')][_0x168e('0xde')]===_0x56b659&&this[_0x168e('0x11a')][_0x168e('0x6d')]===_0x4fa170)return Promise['resolve']();this[_0x168e('0xd0')]=!0x1,this[_0x168e('0x2b')]=null,this[_0x168e('0xd2')]=null,this[_0x168e('0x11a')]=new _0x32ed9a(_0x56b659,_0x4fa170);const _0x58e88f=this[_0x168e('0x5a')](_0x288f2d,_0x232233,!0x0)[_0x168e('0x9')](_0x1120c6=>this[_0x168e('0x10f')](_0x1120c6));return _0x58e88f[_0x168e('0x102')](new Promise(_0x42cb0a=>{setTimeout(_0x42cb0a,0x14);})),Promise[_0x168e('0xfa')](_0x58e88f)[_0x168e('0xb1')](()=>{if(!this[_0x168e('0x4')])return;this['_cleanUp']();const _0x42151b=this[_0x168e('0x22')](_0x56b659,_0x4fa170);for(const _0x1fc55a of _0x42151b[_0x168e('0x52')])this[_0x168e('0xa7')][_0x168e('0x2c')](_0x1fc55a['id'],_0x1fc55a);this[_0x168e('0x3d')][_0x168e('0xef')]['enqueueChange']({'isUndoable':!0x1},_0x48e26b=>{for(const _0x424106 of this['editor'][_0x168e('0xef')][_0x168e('0xcf')][_0x168e('0xbb')]())_0x48e26b['detachRoot'](_0x424106);for(const _0xb44e5a of Object[_0x168e('0xd3')](_0x42151b[_0x168e('0xef')])){const _0x5c52b8=_0x48e26b[_0x168e('0xc8')](_0xb44e5a);for(const _0x2db4ff of Object[_0x168e('0xd3')](_0x42151b[_0x168e('0x8d')][_0xb44e5a]))_0x48e26b[_0x168e('0xca')](_0x2db4ff,_0x42151b['attributes'][_0xb44e5a][_0x2db4ff],_0x5c52b8);_0x48e26b[_0x168e('0x4a')](_0x42151b[_0x168e('0xef')][_0xb44e5a],_0x5c52b8,0x0);}}),this[_0x168e('0x11a')][_0x168e('0x6b')](this[_0x168e('0xd9')](_0x42151b[_0x168e('0x52')])),this[_0x168e('0xd0')]=!0x0;})[_0x168e('0x42')](_0x139e99=>{console['error'](_0x139e99),this[_0x168e('0xec')](),_0x53c91e&&(this[_0x168e('0x11a')]=_0x53c91e),this[_0x168e('0xd0')]=!0x0;});}[_0x168e('0x11b')](_0x1b1d2d,_0x191eff){const _0x123a21=this['repository']['createRevision'](_0x1b1d2d);return _0x123a21['on'](_0x168e('0xdb'),(_0x651494,_0x51c9f6,_0x2a056b)=>_0x191eff(_0x51c9f6,_0x2a056b,_0x123a21)),this[_0x168e('0x1d')][_0x168e('0x70')](_0x123a21),_0x123a21;}[_0x168e('0x10f')](_0x145349){if(!_0x145349||_0x145349[_0x168e('0x41')])return Promise['resolve']();{const _0xc557a6=this[_0x168e('0x3d')][_0x168e('0x50')][_0x168e('0xe0')](_0x168e('0xcd'));return this[_0x168e('0x105')][_0x168e('0x1f')]({'channelId':_0xc557a6,'revisionId':_0x145349['id']})[_0x168e('0xb1')](_0x40d1fc=>{_0x145349[_0x168e('0xdb')]({'diffData':_0x40d1fc[_0x168e('0x41')]},!0x0);});}}[_0x168e('0xec')](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x168e('0x2e')]&&this[_0x168e('0x2e')][_0x168e('0x33')](),this[_0x168e('0x2e')]=null,this[_0x168e('0xa7')][_0x168e('0x32')](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x43f5a5=>{for(const _0x5f0d24 of this[_0x168e('0x3d')]['model']['document'][_0x168e('0xbb')]())_0x43f5a5['detachRoot'](_0x5f0d24);});}[_0x168e('0xd9')](_0x5a42e1){const _0x187842=[],_0x50e607=new Map();for(const _0x5561cf of this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')][_0x168e('0xbb')]()){const _0x239dcf=this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['getDomRoot'](_0x5561cf);if(!_0x239dcf)continue;const _0x13a213=_0x239dcf['getClientRects']()['item'](0x0);_0x13a213&&(_0x187842[_0x168e('0x102')](_0x5561cf),_0x50e607['set'](_0x5561cf,_0x13a213));}return _0x187842[_0x168e('0xe9')]((_0x25645c,_0x1c5d35)=>{const _0x3c4c6f=_0x50e607['get'](_0x25645c),_0x17d338=_0x50e607[_0x168e('0xe0')](_0x1c5d35);return _0x3c4c6f['y']-_0x17d338['y']||_0x3c4c6f['x']-_0x17d338['x'];}),(_0x5a42e1=_0x5a42e1[_0x168e('0x124')](_0x4c3e27=>_0x187842['includes'](_0x4c3e27['rootName'])))[_0x168e('0xe9')]((_0x13a03c,_0x49301f)=>_0x187842[_0x168e('0xbe')](_0x13a03c['rootName'])-_0x187842['indexOf'](_0x49301f[_0x168e('0x3')])),_0x5a42e1;}[_0x168e('0x101')](_0x36d706){const _0x3c1909=Array[_0x168e('0x40')](_0x36d706[_0x168e('0xab')])['filter'](([_0x4d507c,_0x232659])=>_0x4d507c[_0x168e('0x104')](_0x168e('0xb2'))&&!_0x232659[_0x168e('0xb')]),_0x410a81=Array['from'](this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xe7')](_0x36d706)[_0x168e('0xaf')]({'singleCharacters':!0x0}));if(0x0!=_0x3c1909[_0x168e('0xc9')])for(const _0x1828c3 of _0x410a81){const [_0x562e8f,_0x309fde]=_0x3c1909[0x0],[,_0x62c1e6,_0x43213f]=_0x562e8f['split'](':');if(_0x309fde[_0x168e('0x37')][_0x168e('0x1e')](_0x1828c3[_0x168e('0x19')])&&_0x3c1909['shift'](),(_0x1828c3[_0x168e('0x90')][_0x168e('0x1e')](_0x309fde[_0x168e('0x2a')])||_0x1828c3[_0x168e('0x90')]['isAfter'](_0x309fde[_0x168e('0x2a')]))&&(_0x168e('0xa3')==_0x62c1e6?_0x1828c3[_0x168e('0x4e')]={'userId':_0x43213f}:_0x168e('0x87')==_0x62c1e6&&(_0x1828c3[_0x168e('0x7d')]={'userId':_0x43213f})),0x0==_0x3c1909[_0x168e('0xc9')])break;}return _0x410a81;}[_0x168e('0xc1')](_0x2f6c0e){const _0x445cf7=new Map();for(let _0x5e508e=0x0;_0x5e508e<_0x2f6c0e[_0x168e('0xc9')];_0x5e508e++)_0x168e('0x69')===_0x2f6c0e[_0x5e508e]['type']?(_0x2f6c0e[_0x5e508e]['item'][_0x168e('0x85')]=_0x5e508e,_0x2f6c0e[_0x5e508e][_0x168e('0x62')][_0x168e('0x9b')]=_0x5e508e):(_0x168e('0x56')===_0x2f6c0e[_0x5e508e]['type']?_0x2f6c0e[_0x5e508e][_0x168e('0x62')]['startIndex']=_0x5e508e:_0x168e('0xda')===_0x2f6c0e[_0x5e508e]['type']&&(_0x2f6c0e[_0x5e508e]['item'][_0x168e('0x9b')]=_0x5e508e),_0x445cf7['set'](_0x2f6c0e[_0x5e508e]['id'],_0x5e508e));for(const _0x4eb419 of _0x445cf7['values']())_0x168e('0x56')===_0x2f6c0e[_0x4eb419]['type']?_0x2f6c0e[_0x4eb419][_0x168e('0x62')][_0x168e('0x9b')]=_0x445cf7[_0x168e('0xe0')](_0x2f6c0e[_0x4eb419][_0x168e('0x4c')]):'elementEnd'===_0x2f6c0e[_0x4eb419]['type']&&(_0x2f6c0e[_0x4eb419][_0x168e('0x62')]['startIndex']=_0x445cf7[_0x168e('0xe0')](_0x2f6c0e[_0x4eb419][_0x168e('0x4c')]));}[_0x168e('0x120')](_0x46e776){for(let _0x377ef0=0x0;_0x377ef0<_0x46e776[_0x168e('0xc9')];_0x377ef0++){if(_0x168e('0x56')===_0x46e776[_0x377ef0][_0x168e('0x114')])_0x46e776[_0x377ef0][_0x168e('0x62')][_0x168e('0x85')]=_0x377ef0;else{if(_0x168e('0xda')===_0x46e776[_0x377ef0]['type']){_0x46e776[_0x377ef0]['item'][_0x168e('0x9b')]=_0x377ef0;const _0x316913=_0x46e776[_0x377ef0][_0x168e('0x62')][_0x168e('0x85')];_0x46e776[_0x316913]['pairId']=_0x46e776[_0x377ef0]['id'],_0x46e776[_0x377ef0][_0x168e('0x4c')]=_0x46e776[_0x316913]['id'];}else _0x46e776[_0x377ef0][_0x168e('0x62')][_0x168e('0x85')]=_0x377ef0,_0x46e776[_0x377ef0][_0x168e('0x62')]['endIndex']=_0x377ef0,_0x46e776[_0x377ef0][_0x168e('0x4c')]=null;}_0x46e776[_0x377ef0][_0x168e('0xe1')]||(_0x46e776[_0x377ef0][_0x168e('0xe1')]=[],_0x46e776[_0x377ef0]['markersEnd']=[]);}}[_0x168e('0x111')](_0x1429c4,_0x4582f4){const _0x475a14=_0x1429c4['filter'](_0x2aab45=>!_0x2aab45[_0x168e('0x4e')]);for(let _0x4257f9=0x0;_0x4257f9<_0x4582f4[_0x168e('0xc9')];_0x4257f9++)_0x4582f4[_0x4257f9][_0x168e('0x4e')]&&(_0x475a14[_0x4257f9]['isAdded']=_0x4582f4[_0x4257f9][_0x168e('0x4e')]);}[_0x168e('0xa1')](_0x59283b){const _0x1c04de=JSON[_0x168e('0x8e')](_0x59283b),_0x400918=this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['document'],_0x5ee049=new _0x2e1cc0(_0x400918,_0x1c04de[_0x168e('0x9')](_0x2378b5=>this[_0x168e('0x100')](_0x2378b5)));return this[_0x168e('0x3d')][_0x168e('0xdc')]['toModel'](_0x5ee049);}[_0x168e('0x100')](_0x2bfee4){const _0x437ab4=this[_0x168e('0x3d')]['editing'][_0x168e('0x11e')][_0x168e('0xcf')];if(_0x168e('0xed')==typeof _0x2bfee4)return new _0x290f73(_0x437ab4,_0x2bfee4);{const _0x15476e=_0x2bfee4['children']['map'](_0x5240de=>this[_0x168e('0x100')](_0x5240de));return new(tt[_0x2bfee4[(_0x168e('0x114'))]]||_0x4a32ab)(_0x437ab4,_0x2bfee4[_0x168e('0x74')],_0x2bfee4[_0x168e('0x8d')],_0x15476e);}}[_0x168e('0x22')](_0x285dcf,_0x2fd522=null){const _0x5082af=this[_0x168e('0x1d')][_0x168e('0x1f')](_0x285dcf),_0x42880e=_0x2fd522?this[_0x168e('0x1d')]['getRevision'](_0x2fd522):null,_0x329cb5=this[_0x168e('0x5a')](_0x5082af,_0x42880e),_0x13f0be=_0x329cb5[_0x329cb5[_0x168e('0xc9')]-0x1],_0xfc5d52=new Map(),_0x272f84={'model':{},'attributes':{},'changes':[]},_0x421637=new Set(),_0x26718a=new Map();for(let _0x57b8bc=_0x329cb5[_0x168e('0xc9')]-0x1;_0x57b8bc>=0x0;_0x57b8bc--){const _0x3d5d6e=_0x329cb5[_0x57b8bc];for(const _0xcd68a7 of Object['keys'](_0x3d5d6e['diffData']))if(_0x3d5d6e[_0x168e('0x41')][_0xcd68a7][_0x168e('0x81')]){const _0xa5bc4f=_0x3d5d6e['diffData'][_0xcd68a7][_0x168e('0x81')];_0xa5bc4f[_0x168e('0xf')]?(_0x421637['add'](_0xcd68a7),_0x26718a['has'](_0xcd68a7)&&_0x26718a[_0x168e('0xe0')](_0xcd68a7)['userId']==_0xa5bc4f[_0x168e('0xfe')]?_0x26718a[_0x168e('0x8a')](_0xcd68a7):_0x26718a[_0x168e('0x2c')](_0xcd68a7,_0xa5bc4f)):_0x26718a[_0x168e('0xfc')](_0xcd68a7)?(_0x421637[_0x168e('0x8a')](_0xcd68a7),_0x26718a[_0x168e('0x8a')](_0xcd68a7)):(_0x421637['add'](_0xcd68a7),_0x26718a[_0x168e('0x2c')](_0xcd68a7,_0xa5bc4f));}else _0x421637[_0x168e('0xb5')](_0xcd68a7);}for(const _0x5d3367 of _0x421637){const _0x2fffde=_0x26718a['has'](_0x5d3367)&&!_0x26718a[_0x168e('0xe0')](_0x5d3367)[_0x168e('0xf')];let _0x41ac4d=_0x2fffde?_0x329cb5[_0x168e('0xc9')]-0x1:0x0;const _0x348e3d=_0x2fffde?-0x1:0x1;for(;_0x329cb5[_0x41ac4d];){const _0x3b3cfb=_0x329cb5[_0x41ac4d];if(_0x3b3cfb[_0x168e('0x41')][_0x5d3367]){const _0x251676=_0x2fffde?_0x3b3cfb[_0x168e('0x41')][_0x5d3367][_0x168e('0x44')]:_0x3b3cfb[_0x168e('0x41')][_0x5d3367][_0x168e('0xcc')];_0x272f84['attributes'][_0x5d3367]=_0x251676?_0x3b2a5b(_0x251676):{};break;}_0x41ac4d+=_0x348e3d;}}for(const _0x38ccca of _0x329cb5){_0x38ccca[_0x168e('0xef')]={};for(const _0x203dbe of _0x38ccca[_0x168e('0x73')])_0xfc5d52[_0x168e('0x2c')](_0x203dbe['id'],_0x203dbe);for(const _0x591076 of _0x421637){const _0x5340cd=_0x38ccca[_0x168e('0x41')][_0x591076]?_0x38ccca[_0x168e('0x41')][_0x591076][_0x168e('0x20')]:'[]',_0x320787=_0x38ccca['diffData'][_0x591076]?_0x38ccca[_0x168e('0x41')][_0x591076][_0x168e('0xcb')]:'[]';_0x38ccca['model'][_0x591076]={'insertions':this[_0x168e('0xa1')](_0x5340cd),'deletions':this[_0x168e('0xa1')](_0x320787)};}}for(const _0x3121be of _0x421637){let _0x48d7a6=null,_0x2e8d72=0x0;const _0x8d0e17=new Map(Array[_0x168e('0x40')](_0x5082af[_0x168e('0xef')][_0x3121be][_0x168e('0x20')]['markers'])[_0x168e('0x124')](([_0x5946b4])=>!_0x5946b4[_0x168e('0x104')]('revision:')));let _0x17a2e2=0x0;for(const _0x34ccba of _0x329cb5){const _0x2cee70=this['_makeTape'](_0x34ccba[_0x168e('0xef')][_0x3121be][_0x168e('0x20')]);_0x34ccba==_0x5082af?(_0x48d7a6=_0x2cee70,_0x2e8d72=_0x48d7a6[_0x168e('0xc9')],_0x48d7a6[_0x168e('0x34')](_0x43fb1c=>{_0x43fb1c['id']=_0x17a2e2++;}),this[_0x168e('0x120')](_0x48d7a6)):this[_0x168e('0x111')](_0x48d7a6,_0x2cee70);const _0x3be3a0=_0x48d7a6[_0x168e('0x124')](_0x4db8a2=>!_0x4db8a2['isAdded'])[_0x168e('0x9')](_0x14846b=>_0x14846b['id']);let _0x546ac1=0x0;const _0x117c0d=this[_0x168e('0x101')](_0x34ccba[_0x168e('0xef')][_0x3121be][_0x168e('0xcb')]);_0x117c0d[_0x168e('0x34')](_0xbba442=>{_0xbba442['isRemoved']?_0xbba442['id']=_0x2e8d72++:_0xbba442['id']=_0x3be3a0[_0x546ac1++];}),this[_0x168e('0x120')](_0x117c0d),this['_setDistance'](_0x48d7a6,'isAdded'),this['_setDistance'](_0x117c0d,_0x168e('0x7d')),_0x34ccba==_0x5082af&&this[_0x168e('0xd5')](_0x48d7a6,_0x8d0e17),_0x48d7a6=this[_0x168e('0x66')](_0x48d7a6,_0x117c0d),this[_0x168e('0xc1')](_0x48d7a6),this[_0x168e('0x1')](_0x48d7a6,'isRemoved');}_0x48d7a6=_0x48d7a6['filter'](_0x2291c4=>!(_0x2291c4[_0x168e('0x4e')]&&_0x2291c4[_0x168e('0x7d')]));const _0x3088de=new Map(_0x13f0be[_0x168e('0xef')][_0x3121be]['deletions']['markers']),_0x2a84a7=new Set(_0x8d0e17[_0x168e('0xd3')]());for(const _0xcb8494 of _0x3088de[_0x168e('0xd3')]())_0x2a84a7['delete'](_0xcb8494);this[_0x168e('0x9d')](_0x48d7a6,_0x2a84a7),this[_0x168e('0x1b')](_0x48d7a6),_0x48d7a6=this[_0x168e('0xbf')](_0x48d7a6),_0x48d7a6=this[_0x168e('0x6a')](_0x48d7a6),_0x48d7a6=this[_0x168e('0xea')](_0x48d7a6);const {root:_0x4d50ca,changes:_0x3b0b50}=this['_makeModelFromTape'](_0x48d7a6,_0xfc5d52,_0x3121be);_0x272f84[_0x168e('0xef')][_0x3121be]=_0x4d50ca;const _0x30151e=_0x26718a[_0x168e('0xe0')](_0x3121be);if(_0x30151e){const _0x3f5921=_0xfc5d52[_0x168e('0xe0')](_0x30151e['userId']),_0xe90a97=new _0x336f54({'author':_0x3f5921,'type':_0x30151e[_0x168e('0xf')]?_0x168e('0xb5'):_0x168e('0x3e'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x3121be});_0x3b0b50[_0x168e('0x7e')](_0xe90a97),_0x272f84[_0x168e('0x8d')][_0x3121be][_0x168e('0xc0')]=_0xe90a97['id'];}_0x272f84[_0x168e('0x52')]=_0x272f84[_0x168e('0x52')]['concat'](_0x3b0b50);}return _0x272f84;}[_0x168e('0xd5')](_0x3d80a2,_0x4ad828){for(let _0x2769b7=0x0;_0x2769b7<_0x3d80a2['length'];_0x2769b7++)for(const [_0x22dec7,_0x3548a0]of _0x4ad828)_0x3548a0[_0x168e('0x2a')]['isEqual'](_0x3d80a2[_0x2769b7][_0x168e('0x90')])&&_0x3d80a2[_0x2769b7][_0x168e('0xe1')][_0x168e('0x102')](_0x22dec7),_0x3548a0[_0x168e('0x37')][_0x168e('0x1e')](_0x3d80a2[_0x2769b7][_0x168e('0x19')])&&_0x3d80a2[_0x2769b7][_0x168e('0x16')][_0x168e('0x102')](_0x22dec7);}['_joinTapes'](_0xb2d572,_0x2b5251){let _0x4ed2df=[],_0x518b38=0x0,_0xa0a11d=0x0;for(;_0x518b38<_0xb2d572['length']||_0xa0a11d<_0x2b5251['length'];){const _0x5359f0=_0xb2d572[_0x518b38]||{},_0x39ddaf=_0x2b5251[_0xa0a11d]||{};if(_0x5359f0['id']==_0x39ddaf['id'])_0x518b38++,_0xa0a11d++,_0x4ed2df['push'](_0x5359f0);else{if(_0x39ddaf[_0x168e('0x7d')]&&_0x5359f0[_0x168e('0x4e')]){const {commonTape:_0x275d55,iEnd:_0x538f3a,jEnd:_0x2600dd}=this[_0x168e('0xeb')](_0xb2d572,_0x518b38,_0x2b5251,_0xa0a11d);_0x4ed2df=_0x4ed2df[_0x168e('0x7a')](_0x275d55),_0x518b38=_0x538f3a,_0xa0a11d=_0x2600dd;}else _0x39ddaf[_0x168e('0x7d')]?(_0xa0a11d++,_0x4ed2df[_0x168e('0x102')](_0x39ddaf)):(_0x518b38++,_0x4ed2df[_0x168e('0x102')](_0x5359f0));}}return _0x4ed2df;}[_0x168e('0x9d')](_0x53796e,_0xe1df11){const _0x49af0c=[];for(let _0x52ff40=0x0;_0x52ff40<_0x53796e['length'];_0x52ff40++){for(let _0x20a44c=0x0;_0x20a44c<_0x53796e[_0x52ff40][_0x168e('0xe1')][_0x168e('0xc9')];_0x20a44c++){const _0x1ff28b=_0x53796e[_0x52ff40][_0x168e('0xe1')][_0x20a44c];if(!_0xe1df11[_0x168e('0xfc')](_0x1ff28b))continue;const {group:_0x5b897f,type:_0x371c86,authorId:_0x52f666}=_0x180e24(_0x1ff28b);_0x168e('0x8')!=_0x5b897f||'insertion'!=_0x371c86&&'deletion'!=_0x371c86||(_0x49af0c[_0x168e('0x7e')]({'type':_0x371c86,'name':_0x1ff28b,'userId':_0x52f666}),_0x53796e[_0x52ff40][_0x168e('0xe1')][_0x168e('0x38')](_0x20a44c,0x1),_0x20a44c--);}_0x519aa4(_0x53796e[_0x52ff40]);for(let _0x2692f5=0x0;_0x2692f5<_0x53796e[_0x52ff40][_0x168e('0x16')][_0x168e('0xc9')];_0x2692f5++){const _0xc6bcf7=_0x53796e[_0x52ff40][_0x168e('0x16')][_0x2692f5];if(!_0xe1df11[_0x168e('0xfc')](_0xc6bcf7))continue;const {group:_0x1513a4,type:_0x4ec1cf}=_0x180e24(_0xc6bcf7);if(_0x168e('0x8')!=_0x1513a4||_0x168e('0xa3')!=_0x4ec1cf&&'deletion'!=_0x4ec1cf)continue;_0x53796e[_0x52ff40][_0x168e('0x16')][_0x168e('0x38')](_0x2692f5,0x1),_0x2692f5--;const _0x570722=_0x49af0c[_0x168e('0x7f')](_0x45b0b1=>_0x45b0b1[_0x168e('0x74')]==_0xc6bcf7);_0x570722>-0x1&&_0x49af0c[_0x168e('0x38')](_0x570722,0x1);}}function _0x180e24(_0x76322e){const _0x456435=_0x76322e[_0x168e('0xb9')](':');return{'group':_0x456435[0x0],'type':_0x456435[0x1],'subType':_0x456435['length']>=0x5?_0x456435[0x2]:null,'id':_0x456435[_0x168e('0xc9')]<0x5?_0x456435[0x2]:_0x456435[0x3],'authorId':_0x456435[_0x168e('0xc9')]<0x5?_0x456435[0x3]:_0x456435[0x4],'markerCount':0x6==_0x456435[_0x168e('0xc9')]?_0x456435[0x5]:null};}function _0x519aa4(_0x36f010){for(let _0x17dbca=0x0;_0x17dbca<_0x49af0c[_0x168e('0xc9')];_0x17dbca++){if(_0x36f010['isAdded']&&_0x168e('0xa3')==_0x49af0c[_0x17dbca][_0x168e('0x114')])return _0x36f010[_0x168e('0x3c')]=_0x49af0c[_0x17dbca],void delete _0x36f010[_0x168e('0x4e')];if(!_0x36f010[_0x168e('0x4e')]&&!_0x36f010['isRemoved']&&'deletion'==_0x49af0c[_0x17dbca]['type'])return void(_0x36f010[_0x168e('0x8b')]=_0x49af0c[_0x17dbca]);}}}[_0x168e('0x1')](_0x16ec6c,_0x259960){let _0x21c86e=0x0,_0x4037af=!0x1;const _0x371c48=new Map();for(const _0x5099ed of _0x16ec6c)_0x5099ed[_0x259960]?_0x4037af&&(_0x21c86e++,_0x4037af=!0x1):(_0x21c86e++,_0x4037af=!0x0),_0x371c48[_0x168e('0x2c')](_0x5099ed['id'],_0x21c86e);for(let _0x5ae321=0x0;_0x5ae321<_0x16ec6c[_0x168e('0xc9')];_0x5ae321++){if(_0x168e('0x7d')==_0x259960&&_0x16ec6c[_0x5ae321]['isAdded']||'isAdded'==_0x259960&&_0x16ec6c[_0x5ae321][_0x168e('0x7d')])continue;if('text'==_0x16ec6c[_0x5ae321][_0x168e('0x114')]){_0x16ec6c[_0x5ae321][_0x168e('0x91')]=0x0;continue;}const _0x1613d5=_0x371c48['get'](_0x16ec6c[_0x5ae321]['pairId']),_0x39ae69=_0x371c48[_0x168e('0xe0')](_0x16ec6c[_0x5ae321]['id']);_0x16ec6c[_0x5ae321][_0x168e('0x91')]=_0x1613d5-_0x39ae69;}}[_0x168e('0x5a')](_0x451a7b,_0x64ed23,_0x181178=!0x1){const _0x3411c9=[];let _0xe457e4=this[_0x168e('0x1d')][_0x168e('0x11c')](_0x451a7b),_0x58746f=this[_0x168e('0x1d')]['getIndex'](_0x64ed23);for(-0x1==_0x58746f&&(_0x58746f=this['repository']['_revisions']['length'],_0x181178=!0x1);_0xe457e4<_0x58746f;)_0x3411c9[_0x168e('0x102')](this[_0x168e('0x1d')][_0x168e('0x1f')](_0xe457e4)),_0xe457e4++;return _0x181178&&_0x3411c9['push'](this[_0x168e('0x1d')]['getRevision'](_0xe457e4)),_0x3411c9;}[_0x168e('0xeb')](_0x53f7af,_0x54f30f,_0x3e45f2,_0x51f299){const _0x350f6e=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x13')];let _0x122993=_0x54f30f;for(;_0x53f7af[_0x122993]&&_0x53f7af[_0x122993][_0x168e('0x4e')];)_0x122993++;let _0x5e6f78=_0x51f299;for(;_0x3e45f2[_0x5e6f78]&&_0x3e45f2[_0x5e6f78]['isRemoved'];)_0x5e6f78++;_0x4e0bef(_0x53f7af,_0x54f30f,_0x122993),_0x4e0bef(_0x3e45f2,_0x51f299,_0x5e6f78);const _0x4b4af4=_0x3e45f2[_0x168e('0x21')](_0x51f299,_0x5e6f78)[_0x168e('0x7a')](_0x53f7af[_0x168e('0x21')](_0x54f30f,_0x122993));return _0x4b4af4['sort']((_0x8459db,_0x4adb8d)=>_0x8459db[_0x168e('0xc6')]!=_0x4adb8d[_0x168e('0xc6')]?_0x8459db[_0x168e('0xc6')]-_0x4adb8d[_0x168e('0xc6')]:_0x8459db[_0x168e('0xfb')]!=_0x4adb8d[_0x168e('0xfb')]?_0x8459db[_0x168e('0xfb')]-_0x4adb8d[_0x168e('0xfb')]:_0x8459db[_0x168e('0x91')]!=_0x4adb8d[_0x168e('0x91')]?_0x4adb8d[_0x168e('0x91')]-_0x8459db['distance']:!!_0x8459db[_0x168e('0x4e')]!=!!_0x4adb8d[_0x168e('0x4e')]?-0x1==_0x8459db['side']||0x0==_0x8459db[_0x168e('0xc6')]?_0x8459db[_0x168e('0x4e')]?-0x1:0x1:_0x8459db[_0x168e('0x4e')]?0x1:-0x1:_0x8459db[_0x168e('0x110')]-_0x4adb8d[_0x168e('0x110')]),{'commonTape':_0x4b4af4,'iEnd':_0x122993,'jEnd':_0x5e6f78};function _0x4e0bef(_0x5259ba,_0x522f74,_0x3260d5){let _0x866c5c=-0x1,_0x3fe090=Number[_0x168e('0x92')],_0x35c804=!0x0;for(let _0x5975ed=_0x522f74;_0x5975ed<_0x3260d5;_0x5975ed++)if(_0x350f6e['isInline'](_0x5259ba[_0x5975ed]['item'])||(_0x35c804=!0x1),_0x5259ba[_0x5975ed]['item']['startIndex']<_0x522f74&&(_0x866c5c=_0x5975ed),_0x5259ba[_0x5975ed]['item'][_0x168e('0x9b')]>=_0x3260d5){_0x3fe090=_0x5975ed;break;}_0x35c804&&(_0x866c5c=_0x3260d5-0x1);for(let _0x21a9f4=_0x522f74;_0x21a9f4<_0x3260d5;_0x21a9f4++)_0x5259ba[_0x21a9f4]['side']=_0x21a9f4<=_0x866c5c?-0x1:_0x21a9f4<_0x3fe090?0x0:0x1,_0x5259ba[_0x21a9f4][_0x168e('0x110')]=_0x21a9f4;let _0x5e8117=0x0;for(let _0x3ec778=_0x522f74;_0x3ec778<=_0x866c5c;_0x3ec778++)0x0==_0x5259ba[_0x3ec778][_0x168e('0x91')]?_0x5259ba[_0x3ec778][_0x168e('0xfb')]=_0x5e8117:(_0x5e8117++,_0x5259ba[_0x3ec778][_0x168e('0xfb')]=_0x5e8117,_0x5e8117++);for(let _0x223165=_0x522f74;_0x223165<_0x3260d5;_0x223165++)0x0==_0x5259ba[_0x223165][_0x168e('0xc6')]&&(_0x5259ba[_0x223165][_0x168e('0xfb')]=_0x5e8117);_0x5e8117=0x0;for(let _0x5a41b5=_0x3260d5-0x1;_0x5a41b5>=_0x3fe090;_0x5a41b5--)0x0==_0x5259ba[_0x5a41b5]['distance']?_0x5259ba[_0x5a41b5]['level']=_0x5e8117:(_0x5e8117--,_0x5259ba[_0x5a41b5][_0x168e('0xfb')]=_0x5e8117,_0x5e8117--);}}['_fixObsoleteTags'](_0xaef976){const _0x22513d=new Map(),_0x44702a=this['editor'][_0x168e('0xef')][_0x168e('0x13')];for(let _0x42d183=0x1;_0x42d183<_0xaef976[_0x168e('0xc9')];_0x42d183++){let _0x3ac4c2,_0x55d926,_0x5dc0c0;const _0x3fe738=_0xaef976[_0x42d183],_0x41015b=_0xaef976[_0x42d183-0x1];if(_0x168e('0x69')==_0x3fe738[_0x168e('0x114')])continue;if(_0x3fe738[_0x168e('0x114')]!=_0x41015b[_0x168e('0x114')])continue;if(!_0x44702a[_0x168e('0x26')](_0x41015b['item'])||_0x44702a[_0x168e('0xb6')](_0x41015b['item']))continue;if(!_0x44702a[_0x168e('0x26')](_0x3fe738['item'])||_0x44702a[_0x168e('0xb6')](_0x3fe738[_0x168e('0x62')]))continue;if((_0xaef976[_0x42d183][_0x168e('0x4e')]||_0xaef976[_0x42d183][_0x168e('0x3c')])&&_0xaef976[_0x42d183-0x1]['isRemoved'])_0x3ac4c2=_0xaef976[_0x42d183],_0x55d926=_0xaef976[_0x42d183-0x1],_0x5dc0c0=_0x42d183-0x1;else{if(!_0xaef976[_0x42d183][_0x168e('0x7d')]||!_0xaef976[_0x42d183-0x1][_0x168e('0x4e')]&&!_0xaef976[_0x42d183-0x1][_0x168e('0x3c')])continue;_0x3ac4c2=_0xaef976[_0x42d183-0x1],_0x55d926=_0xaef976[_0x42d183],_0x5dc0c0=_0x42d183;}const _0x179c3e=_0x3ac4c2[_0x168e('0xfb')]==_0x55d926[_0x168e('0xfb')],_0x2dab12=Math[_0x168e('0x5')](_0x3ac4c2['level'])<Math['abs'](_0x55d926['level'])&&0x0==_0x55d926[_0x168e('0x91')];(_0x179c3e||_0x2dab12)&&(_0x22513d[_0x168e('0x2c')](_0x55d926['id'],_0x3ac4c2['id']),_0xaef976[_0x168e('0x38')](_0x5dc0c0,0x1),_0x42d183--,_0x3ac4c2[_0x168e('0x4e')]=!0x1);}for(let _0x1fb9e1=0x0;_0x1fb9e1<_0xaef976[_0x168e('0xc9')];_0x1fb9e1++)_0x22513d[_0x168e('0xfc')](_0xaef976[_0x1fb9e1][_0x168e('0x4c')])&&(_0xaef976[_0x1fb9e1][_0x168e('0x4c')]=_0x22513d['get'](_0xaef976[_0x1fb9e1][_0x168e('0x4c')]));}[_0x168e('0xbf')](_0xff4bf){const _0x5c784b=new Set(_0xff4bf[_0x168e('0x9')](_0x5c421c=>_0x5c421c['id']));for(let _0x1c04a1=0x0;_0x1c04a1<_0xff4bf['length'];_0x1c04a1++)_0x5c784b[_0x168e('0xfc')](_0xff4bf[_0x1c04a1]['pairId'])||0x0==_0xff4bf[_0x1c04a1][_0x168e('0x91')]||(_0xff4bf[_0x1c04a1][_0x168e('0x122')]=!0x0);return _0xff4bf[_0x168e('0x124')](_0x5bd4cf=>!_0x5bd4cf['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3779df){const _0xf4a72e=new Set();for(let _0x342acb=0x0;_0x342acb<_0x3779df[_0x168e('0xc9')];_0x342acb++){if(_0xf4a72e[_0x168e('0xfc')](_0x3779df[_0x342acb]['id'])&&_0x3779df[_0x342acb][_0x168e('0x7d')]&&(_0x3779df[_0x342acb][_0x168e('0x122')]=!0x0),_0x3779df[_0x342acb][_0x168e('0x122')])continue;if(0x0==_0x3779df[_0x342acb][_0x168e('0x91')])continue;if(_0x168e('0x56')!=_0x3779df[_0x342acb][_0x168e('0x114')])continue;if(null==_0x3779df[_0x342acb][_0x168e('0x4c')])continue;let _0x44fc4a=_0x342acb+0x1,_0x563ca9=0x0;for(;_0x3779df[_0x44fc4a]['id']!=_0x3779df[_0x342acb][_0x168e('0x4c')];)_0x168e('0x56')==_0x3779df[_0x44fc4a]['type']?_0x563ca9++:_0x168e('0xda')==_0x3779df[_0x44fc4a][_0x168e('0x114')]&&_0x563ca9--,_0x44fc4a++;if(0x0!=_0x563ca9){if(_0x3779df[_0x342acb][_0x168e('0x7d')])_0x3779df[_0x342acb][_0x168e('0x122')]=!0x0;else for(;_0x44fc4a!=_0x342acb;)_0x3779df[_0x44fc4a][_0x168e('0x7d')]&&0x0!=_0x3779df[_0x44fc4a]['distance']&&(_0x3779df[_0x44fc4a][_0x168e('0x122')]=!0x0,_0xf4a72e[_0x168e('0xb5')](_0x3779df[_0x44fc4a][_0x168e('0x4c')])),_0x44fc4a--;}}return _0x3779df[_0x168e('0x124')](_0x49ba82=>!_0x49ba82[_0x168e('0x122')]);}[_0x168e('0xea')](_0x1a4c4f){const _0x36e536=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x13')];for(let _0x4fd166=0x0;_0x4fd166<_0x1a4c4f[_0x168e('0xc9')];_0x4fd166++){if(!(_0x1a4c4f[_0x4fd166][_0x168e('0x4e')]||_0x1a4c4f[_0x4fd166][_0x168e('0x3c')]||_0x1a4c4f[_0x4fd166]['isRemoved']||_0x1a4c4f[_0x4fd166][_0x168e('0x8b')]))continue;if(0x0==_0x1a4c4f[_0x4fd166][_0x168e('0x91')])continue;const _0x57e478=_0x1a4c4f[_0x4fd166]['item'];_0x36e536[_0x168e('0x26')](_0x57e478)||_0x36e536[_0x168e('0xb6')](_0x57e478)||(_0x1a4c4f[_0x4fd166][_0x168e('0x4e')]&&delete _0x1a4c4f[_0x4fd166][_0x168e('0x4e')],_0x1a4c4f[_0x4fd166][_0x168e('0x3c')]&&delete _0x1a4c4f[_0x4fd166][_0x168e('0x3c')],_0x1a4c4f[_0x4fd166]['isRemoveSuggestion']&&delete _0x1a4c4f[_0x4fd166][_0x168e('0x8b')],_0x1a4c4f[_0x4fd166][_0x168e('0x7d')]&&(_0x1a4c4f[_0x4fd166]['isIncorrect']=!0x0));}return _0x1a4c4f[_0x168e('0x124')](_0x303ca2=>!_0x303ca2[_0x168e('0x122')]);}['_makeModelFromTape'](_0x574528,_0x575aaa,_0xd063d7){const _0xdcf3cf=new _0x33aff6(),_0x5d2013=[],_0x2e95cf=new Map(),_0x24858c=this[_0x168e('0x3d')]['model'],_0x1b9f22=_0x24858c[_0x168e('0x13')],_0x171da4=[_0xdcf3cf],_0x51b024={},_0x3cfd26={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x3980d7=null;const _0x474227=[0x0];for(let _0x4232eb=0x0;_0x4232eb<_0x574528['length'];_0x4232eb++){let _0x2370b5,_0x4ff068;if('elementStart'===_0x574528[_0x4232eb][_0x168e('0x114')]){_0x2370b5=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227);const _0x4ac610=new _0x604797(_0x574528[_0x4232eb]['item']['name'],_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0x35')]());_0x171da4[0x0][_0x168e('0x103')](_0x4ac610),_0x474227['push'](0x0),_0x171da4[_0x168e('0x7e')](_0x4ac610),_0x4ff068=_0x24858c['createPositionFromPath'](_0xdcf3cf,_0x474227),_0x3980d7=null;}else{if('elementEnd'===_0x574528[_0x4232eb][_0x168e('0x114')])_0x171da4[_0x168e('0xf1')](),_0x2370b5=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227),_0x474227[_0x168e('0xa6')](),_0x474227[_0x474227['length']-0x1]++,_0x4ff068=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227),_0x3980d7=null;else{if(_0x2370b5=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227),_0x3980d7&&_0x3200ff(_0x3980d7,_0x574528[_0x4232eb]['item']))_0x3980d7[_0x168e('0x10')]+=_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0xdc')];else{const _0x32a5ab=new _0x4f1726(_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0xdc')],_0x574528[_0x4232eb][_0x168e('0x62')][_0x168e('0x35')]());_0x171da4[0x0][_0x168e('0x103')](_0x32a5ab),_0x3980d7=_0x32a5ab;}_0x474227[_0x474227[_0x168e('0xc9')]-0x1]+=_0x574528[_0x4232eb]['item'][_0x168e('0x63')],_0x4ff068=_0x24858c[_0x168e('0xe')](_0xdcf3cf,_0x474227);}}for(const _0x50302d of _0x574528[_0x4232eb]['markersStart'])_0x2e95cf[_0x168e('0x2c')](_0x50302d,{'start':_0x2370b5,'end':null});_0xe8df2b(_0x168e('0x8b'),_0x4232eb,_0x2370b5,_0x4ff068),_0xe8df2b(_0x168e('0x3c'),_0x4232eb,_0x2370b5,_0x4ff068),_0xe8df2b(_0x168e('0x7d'),_0x4232eb,_0x2370b5,_0x4ff068),_0xe8df2b(_0x168e('0x4e'),_0x4232eb,_0x2370b5,_0x4ff068);for(const _0x4ad0d1 of _0x574528[_0x4232eb][_0x168e('0x16')]){_0x2e95cf[_0x168e('0xe0')](_0x4ad0d1)[_0x168e('0x37')]=_0x4ff068;}}for(const [_0x4eaeab,_0x1fa05b]of _0x2e95cf){const _0x490ddd=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x95')](_0x1fa05b[_0x168e('0x2a')],_0x1fa05b[_0x168e('0x37')]);_0xdcf3cf[_0x168e('0xab')]['set'](_0x4eaeab,_0x490ddd);}return _0x5d2013[_0x168e('0xe9')]((_0x48a45c,_0x41be1d)=>{const _0x1a0be4=_0xdcf3cf[_0x168e('0xab')][_0x168e('0xe0')](_0x168e('0xb2')+_0x48a45c['id']),_0x3477f9=_0xdcf3cf[_0x168e('0xab')][_0x168e('0xe0')]('revision:'+_0x41be1d['id']);return _0x1a0be4[_0x168e('0x2a')][_0x168e('0x5f')](_0x3477f9[_0x168e('0x2a')])?-0x1:_0x1a0be4[_0x168e('0x2a')][_0x168e('0x30')](_0x3477f9[_0x168e('0x2a')])?0x1:_0x1a0be4[_0x168e('0x37')][_0x168e('0x5f')](_0x3477f9['end'])?-0x1:_0x1a0be4['end'][_0x168e('0x30')](_0x3477f9[_0x168e('0x37')])?0x1:'add'===_0x48a45c['type']?-0x1:0x1;}),{'root':_0xdcf3cf,'changes':_0x5d2013};function _0xe8df2b(_0x1fe4c6,_0x31e5d0,_0x1b6341,_0x118009){const _0x4c78c7=!!_0x574528[_0x31e5d0][_0x1fe4c6],_0x687fdc=_0x4c78c7?_0x574528[_0x31e5d0][_0x1fe4c6]['userId']:null,_0x1ad79a=_0x31e5d0===_0x574528['length']-0x1,_0x91db72=_0x3cfd26[_0x1fe4c6][0x0],_0x46399b=_0x1b9f22[_0x168e('0xa4')](_0x574528[_0x31e5d0][_0x168e('0x62')]);!_0x51b024[_0x1fe4c6]&&_0x4c78c7?_0x51b024[_0x1fe4c6]={'start':_0x1b6341,'tapeItem':_0x574528[_0x31e5d0],'userId':_0x687fdc,'type':_0x1fe4c6}:_0x51b024[_0x1fe4c6]&&!_0x4c78c7?(_0x51b024[_0x1fe4c6]['end']=_0x1b6341,_0x370425(_0x51b024[_0x1fe4c6]),_0x51b024[_0x1fe4c6]=null):_0x51b024[_0x1fe4c6]&&_0x4c78c7&&_0x51b024[_0x1fe4c6]['userId']!==_0x687fdc&&(_0x51b024[_0x1fe4c6][_0x168e('0x37')]=_0x1b6341,_0x91db72&&_0x91db72['userId']===_0x51b024[_0x1fe4c6][_0x168e('0xfe')]||_0x370425(_0x51b024[_0x1fe4c6]),_0x51b024[_0x1fe4c6]={'start':_0x1b6341,'tapeItem':_0x574528[_0x31e5d0],'userId':_0x687fdc,'type':_0x1fe4c6}),_0x51b024[_0x1fe4c6]&&_0x46399b&&(_0x168e('0x56')!==_0x574528[_0x31e5d0][_0x168e('0x114')]||_0x91db72&&_0x91db72[_0x168e('0xfe')]===_0x687fdc||_0x3cfd26[_0x1fe4c6][_0x168e('0x7e')]({'userId':_0x687fdc,'object':_0x574528[_0x31e5d0]['item'],'change':_0x51b024[_0x1fe4c6]}),_0x168e('0xda')===_0x574528[_0x31e5d0]['type']&&_0x91db72&&_0x91db72[_0x168e('0x51')]===_0x574528[_0x31e5d0][_0x168e('0x62')]&&(_0x3cfd26[_0x1fe4c6][_0x168e('0xf1')](),_0x51b024[_0x1fe4c6]=_0x91db72[_0x168e('0x48')])),_0x51b024[_0x1fe4c6]&&_0x1ad79a&&(_0x51b024[_0x1fe4c6][_0x168e('0x37')]=_0x118009,_0x370425(_0x51b024[_0x1fe4c6]),_0x51b024[_0x1fe4c6]=null);}function _0x370425({start:_0x17324a,end:_0x5e096c,tapeItem:_0x186911,userId:_0x1c6df2,type:_0x42425b}){const _0x27826f=_0x186911[_0x168e('0x62')],_0x4e27c1=_0x24858c[_0x168e('0x13')][_0x168e('0x26')](_0x27826f)&&!_0x24858c[_0x168e('0x13')][_0x168e('0xb6')](_0x27826f),_0x2a236f=_0x17324a[_0x168e('0x54')]==_0x5e096c[_0x168e('0xd4')]&&_0x5e096c['isAtStart'];if(_0x4e27c1&&_0x2a236f)return;const _0x4e1c82=_0x24858c[_0x168e('0x95')](_0x17324a,_0x5e096c),_0x4c26c3=_0x575aaa[_0x168e('0xe0')](_0x1c6df2),_0xe65ff7=new _0x336f54({'author':_0x4c26c3,'type':_0x168e('0x4e')==_0x42425b||_0x168e('0x3c')==_0x42425b?_0x168e('0xb5'):_0x168e('0x3e'),'data':{'isSuggestion':'isAddSuggestion'==_0x42425b||_0x168e('0x8b')==_0x42425b},'createdAt':new Date(),'rootName':_0xd063d7});_0x5d2013[_0x168e('0x102')](_0xe65ff7),_0xdcf3cf[_0x168e('0xab')][_0x168e('0x2c')]('revision:'+_0xe65ff7['id'],_0x4e1c82);}function _0x3200ff(_0x3bed9c,_0x9b485){const _0x45c371=_0x3bed9c['getAttributes'](),_0x318abc=_0x9b485['getAttributes']();for(const _0x1306de of _0x45c371){if(_0x1306de[0x1]!==_0x9b485['getAttribute'](_0x1306de[0x0]))return!0x1;_0x318abc['next']();}return _0x318abc[_0x168e('0x6f')]()[_0x168e('0xe5')];}}['_setConversion'](){this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))[_0x168e('0x84')]({'view':_0x168e('0x119')}),this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0xd'))[_0x168e('0xa')]({'model':_0x168e('0x119'),'view':_0x3ccb58=>{const _0x393b61=_0x3ccb58['markerName'][_0x168e('0xb9')](':')[0x1],_0x5fbf33=this[_0x168e('0x125')](_0x393b61);if(!_0x5fbf33)return null;const _0xdb4643=_0x168e('0xb5')==_0x5fbf33['type']?_0x168e('0xa3'):'deletion',_0x32dada=[_0x168e('0x97'),_0x168e('0x121')+_0xdb4643];return _0x5fbf33['data'][_0x168e('0x8c')]&&_0x32dada[_0x168e('0x102')](_0x168e('0x121')+_0xdb4643+_0x168e('0x4f')),this[_0x168e('0xd2')]==_0x5fbf33&&_0x32dada[_0x168e('0x102')](_0x168e('0x4b')),{'classes':_0x32dada,'attributes':{'data-change-id':_0x393b61}};}}),this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))[_0x168e('0xb5')](_0x5a597f=>{_0x5a597f['on'](_0x168e('0xae'),(_0xb7e944,_0x1270bb,_0x2db73e)=>{const _0x2b0b6e=_0x1270bb[_0x168e('0x2f')]['getChild'](0x0);if(!_0x2b0b6e||!_0x2b0b6e['is'](_0x168e('0xac'),_0x168e('0xf4')))return;if(!_0x2db73e[_0x168e('0xbc')][_0x168e('0x43')](_0x2b0b6e,{'attributes':[_0x168e('0x31'),_0x168e('0x68')]}))return;const _0x5b30fd=_0x1270bb[_0x168e('0xf9')]['start'][_0x168e('0x54')];_0x2db73e[_0x168e('0x29')][_0x168e('0xca')](_0x168e('0x31'),_0x2b0b6e['getAttribute'](_0x168e('0x31')),_0x5b30fd),_0x2db73e[_0x168e('0x29')]['setAttribute'](_0x168e('0x68'),_0x2b0b6e[_0x168e('0x11')](_0x168e('0x68')),_0x5b30fd);},{'priority':_0x168e('0x36')});}),this[_0x168e('0x3d')][_0x168e('0x72')]['for'](_0x168e('0x28'))[_0x168e('0xb5')](_0x4cb8dc=>{_0x4cb8dc['on'](_0x168e('0xac'),(_0x332b5c,_0x126aec,_0x26bcf3)=>{if(!_0x26bcf3['consumable'][_0x168e('0x43')](_0x126aec['viewItem'],{'attributes':[_0x168e('0x31'),_0x168e('0x68')]}))return;if(_0x126aec[_0x168e('0xf9')][_0x168e('0xb')])return;const _0xf6da9c=_0x126aec['modelRange'][_0x168e('0x2a')][_0x168e('0x54')];_0xf6da9c[_0x168e('0x113')](_0x168e('0x31'))||_0xf6da9c[_0x168e('0x113')](_0x168e('0x45'))||(_0x26bcf3[_0x168e('0x29')][_0x168e('0xca')](_0x168e('0x31'),_0x126aec[_0x168e('0x2f')]['getAttribute'](_0x168e('0x31')),_0xf6da9c),_0x26bcf3[_0x168e('0x29')][_0x168e('0xca')]('vid_end',_0x126aec[_0x168e('0x2f')]['getAttribute'](_0x168e('0x68')),_0xf6da9c));},{'priority':_0x168e('0x36')});}),this['editor'][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))['elementToAttribute']({'view':{'name':_0x168e('0xa0'),'attributes':{'vid':!0x0}},'model':{'key':_0x168e('0x45'),'value':_0x1ea288=>_0x1ea288[_0x168e('0x11')](_0x168e('0x45'))}}),this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0x13')]['on']('checkAttribute',(_0x413f41,[,_0xfb000f])=>{['vid_start',_0x168e('0x68'),_0x168e('0x45')][_0x168e('0x10a')](_0xfb000f)&&(_0x413f41[_0x168e('0x39')]=!0x0,_0x413f41[_0x168e('0x109')]());},{'priority':_0x168e('0xf2')}),this[_0x168e('0x3d')]['conversion']['for'](_0x168e('0xa8'))[_0x168e('0xb5')](_0x38ab50=>{_0x38ab50['on'](_0x168e('0x94'),(_0x291200,_0x439a33,_0x4d547f)=>{if('\x20'!=_0x439a33[_0x168e('0x62')]['data']||_0x439a33[_0x168e('0x62')][_0x168e('0xd4')]['maxOffset']>0x1)return;if(!_0x4d547f[_0x168e('0xbc')]['consume'](_0x439a33['item'],_0x291200['name']))return;const _0xd91e89=_0x4d547f[_0x168e('0x29')],_0x60185f=_0x4d547f[_0x168e('0x25')][_0x168e('0xf7')](_0x439a33['range']);_0xd91e89[_0x168e('0x9c')](_0x60185f,_0xd91e89[_0x168e('0x8f')]('span'));});}),this['editor']['conversion'][_0x168e('0xb4')](_0x168e('0xa8'))[_0x168e('0x60')]({'model':_0x168e('0x119')}),this[_0x168e('0x3d')]['editing'][_0x168e('0xa2')]['on']('addMarker:revision',function(_0x3970da){const _0x39401b=_0x3970da[_0x168e('0x71')][_0x168e('0xe0')](_0x168e('0x88'));return(_0x4a00d0,_0x1e02b0,_0x1a6964)=>{const _0x39e658=_0x1e02b0[_0x168e('0xd1')][_0x168e('0xb9')](':')[0x1],_0x598f9c=_0x39401b['_getChangeFromId'](_0x39e658);if(!_0x598f9c)return null;const _0x5732d9=_0x168e('0xb5')==_0x598f9c[_0x168e('0x114')]?_0x168e('0xb9'):_0x168e('0xb3');if(!_0x1a6964[_0x168e('0xbc')]['test'](_0x1e02b0[_0x168e('0x9a')],_0x4a00d0[_0x168e('0x74')]))return;const _0x4a0aba=_0x1e02b0['markerRange']['getWalker'](),_0x2c1e19=_0x1e02b0[_0x168e('0x9a')][_0x168e('0x2a')],_0x529cff=_0x3970da[_0x168e('0xef')]['schema'];let _0x21f81a=null,_0x32cc53=null,_0x1ad118=!0x1,_0x2e3e0b=!0x1;for(const _0x18383f of _0x4a0aba){const _0xcc4c24=_0x18383f[_0x168e('0x62')];_0x1ad118=_0x1ad118||_0x529cff[_0x168e('0x18')](_0xcc4c24);const _0x5a6a73=_0x1a6964[_0x168e('0x25')][_0x168e('0x5c')](_0xcc4c24);if(_0x5a6a73&&_0x5a6a73[_0x168e('0x108')](_0x168e('0xf8')))return;'elementEnd'==_0x18383f[_0x168e('0x114')]&&(_0x529cff['isBlock'](_0xcc4c24)&&!_0x529cff[_0x168e('0xb6')](_0xcc4c24)&&(_0xcc4c24[_0x168e('0x55')]||_0x2c1e19[_0x168e('0x46')]?_0x21f81a&&_0x21f81a['parent']==_0xcc4c24||(_0x21f81a=_0xcc4c24,_0x308439(_0x18383f[_0x168e('0x90')]),_0x2e3e0b=!0x0):_0x32cc53=_0x32cc53||_0x18383f[_0x168e('0x90')]));}function _0x308439(_0x4a6751){const _0x5bb030=_0x1a6964[_0x168e('0x29')]['createUIElement'](_0x168e('0xa0'),{'class':_0x168e('0x121')+_0x5732d9}),_0x262938=_0x1a6964[_0x168e('0x25')][_0x168e('0xb8')](_0x4a6751);_0x598f9c[_0x168e('0xdc')][_0x168e('0x8c')]&&_0x1a6964[_0x168e('0x29')]['addClass'](_0x168e('0x121')+_0x5732d9+_0x168e('0x4f'),_0x5bb030),_0x39401b[_0x168e('0xd2')]==_0x598f9c&&_0x1a6964[_0x168e('0x29')][_0x168e('0xc2')](_0x168e('0x4b'),_0x5bb030),_0x1a6964[_0x168e('0x29')][_0x168e('0x4a')](_0x262938,_0x5bb030),_0x1a6964[_0x168e('0x25')][_0x168e('0x49')](_0x5bb030,_0x1e02b0[_0x168e('0xd1')]);}_0x1ad118||_0x2e3e0b||!_0x32cc53||_0x308439(_0x32cc53);};}(this['editor']),{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xc')]['downcastDispatcher']['on']('removeMarker:revision',(_0xe6d556,_0x426dbf,_0x29ddeb)=>{const _0x69fba8=_0x29ddeb[_0x168e('0x25')][_0x168e('0x5d')](_0x426dbf['markerName']);if(_0x69fba8)for(const _0x5a3fa1 of _0x69fba8)(_0x5a3fa1[_0x168e('0x5b')](_0x168e('0xce'))||_0x5a3fa1[_0x168e('0x5b')](_0x168e('0x118')))&&(_0x29ddeb[_0x168e('0x25')][_0x168e('0x75')](_0x5a3fa1,_0x426dbf[_0x168e('0xd1')]),_0x29ddeb[_0x168e('0x29')][_0x168e('0x3e')](_0x5a3fa1));},{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xc')]['downcastDispatcher']['on'](_0x168e('0x10b'),(_0x2bb3a2,_0x2fd3ce,_0x387fad)=>{const _0x4cb86f=_0x2fd3ce[_0x168e('0xd1')][_0x168e('0xb9')](':')[0x1],_0x3ce254=this[_0x168e('0x125')](_0x4cb86f);if(!_0x3ce254)return null;const _0x417e5b='add'==_0x3ce254['type']?_0x168e('0xb9'):'merge';if(_0x387fad[_0x168e('0xbc')][_0x168e('0xad')](_0x2fd3ce['markerRange'],_0x2bb3a2['name']))for(const _0x82ca3 of _0x2fd3ce['markerRange'][_0x168e('0x23')]()){if(!_0x82ca3['is'](_0x168e('0xac'),_0x168e('0xba')))continue;const _0x478476=_0x387fad['writer'][_0x168e('0xbd')]('span',{'class':_0x168e('0x121')+_0x417e5b}),_0x527f77=_0x387fad[_0x168e('0x25')][_0x168e('0xb8')](this['editor']['model']['createPositionBefore'](_0x82ca3));_0x3ce254['data'][_0x168e('0x8c')]&&_0x387fad[_0x168e('0x29')][_0x168e('0xc2')](_0x168e('0x121')+_0x417e5b+'-new',_0x478476),this['activeChange']==_0x3ce254&&_0x387fad[_0x168e('0x29')][_0x168e('0xc2')](_0x168e('0x4b'),_0x478476),_0x387fad[_0x168e('0x29')][_0x168e('0x4a')](_0x527f77,_0x478476),_0x387fad[_0x168e('0x25')]['bindElementToMarker'](_0x478476,_0x2fd3ce[_0x168e('0xd1')]);}},{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xef')]['document']['on'](_0x168e('0x48'),()=>{this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['change'](_0x16b635=>{for(const _0x476324 of this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')]['getRootNames']()){const _0x3bfcbc=this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')][_0x168e('0x77')](_0x476324),_0x131115=this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')]['document'][_0x168e('0x77')](_0x476324);if(_0x131115){const _0x5a8a6e=_0x3bfcbc[_0x168e('0x11')](_0x168e('0xc0'));if(_0x16b635['removeAttribute'](_0x168e('0x5e'),_0x131115),_0x16b635[_0x168e('0x123')](_0x168e('0x6c'),_0x131115),_0x16b635[_0x168e('0x123')](_0x168e('0x1c'),_0x131115),_0x16b635[_0x168e('0x123')]('ck-revision-history-root--active',_0x131115),_0x5a8a6e){const _0x425443=this[_0x168e('0x125')](_0x5a8a6e);if(!_0x425443)return null;_0x16b635[_0x168e('0xca')](_0x168e('0x5e'),_0x5a8a6e,_0x131115),_0x16b635[_0x168e('0xc2')](_0x168e('0x10e')+_0x425443[_0x168e('0x114')],_0x131115),this['activeChange']==_0x425443&&_0x16b635[_0x168e('0xc2')](_0x168e('0xa9'),_0x131115);}}}});}),this['editor'][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))[_0x168e('0x84')]({'view':_0x168e('0xdf'),'model':_0x3ee32c=>_0x168e('0x80')+_0x3ee32c,'converterPriority':'highest'}),this[_0x168e('0x3d')][_0x168e('0x72')][_0x168e('0xb4')](_0x168e('0x28'))['dataToMarker']({'view':_0x168e('0x106'),'model':_0x52d914=>'revision-suggestion:'+_0x52d914,'converterPriority':_0x168e('0xf2')}),this[_0x168e('0x3d')][_0x168e('0x72')]['for'](_0x168e('0xa8'))['markerToData']({'model':'revision-suggestion','view':_0x394a87=>({'name':_0x168e('0x98')+_0x394a87,'group':_0x168e('0x8')}),'converterPriority':_0x168e('0xf2')}),this[_0x168e('0x3d')][_0x168e('0x72')]['for'](_0x168e('0xd'))['markerToHighlight']({'model':'revision-suggestion','view':_0x3dabef=>{const _0x3b2c10=_0x3dabef[_0x168e('0xd1')][_0x168e('0xb9')](':')[0x1];return'insertion'!=_0x3b2c10&&'deletion'!=_0x3b2c10?null:{'classes':['ck-suggestion-preview-marker',_0x168e('0xff')+_0x3b2c10]};}}),this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0xa2')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x168e('0xb3')),{'priority':_0x168e('0x3a')}),this[_0x168e('0x3d')][_0x168e('0xc')]['downcastDispatcher']['on'](_0x168e('0x82'),et(this['editor'],'split'),{'priority':_0x168e('0x3a')}),this['editor'][_0x168e('0xc')][_0x168e('0xa2')]['on'](_0x168e('0xe6'),(_0x2c6f71,_0x4b2c8a,_0x1f626e)=>{const _0x5cc810=_0x1f626e[_0x168e('0x25')][_0x168e('0x5d')](_0x4b2c8a[_0x168e('0xd1')]);if(_0x5cc810)for(const _0x33aca7 of _0x5cc810)_0x33aca7['is'](_0x168e('0x86'))&&(_0x1f626e[_0x168e('0x25')][_0x168e('0x75')](_0x33aca7,_0x4b2c8a[_0x168e('0xd1')]),_0x1f626e[_0x168e('0x29')][_0x168e('0x3e')](_0x33aca7));},{'priority':'high'});}['_getChangeFromId'](_0x2f7244){return this['_changeIdToChange']['get'](_0x2f7244);}[_0x168e('0xf0')](_0x4615d6){return this[_0x168e('0x2e')]&&this[_0x168e('0x2e')]['destroy'](),this[_0x168e('0x2e')]=new _0x3ee96d(this[_0x168e('0x3d')]['locale'],_0x4615d6),this[_0x168e('0x2e')];}['_initInteractions'](){this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xcf')]['selection'][_0x168e('0x57')](_0x168e('0x119')),this['on'](_0x168e('0xc4'),(_0x25a164,_0x223e32,_0x2180e5,_0x141f9d)=>{_0x141f9d&&this[_0x168e('0xf3')][_0x168e('0x3e')](_0x141f9d),_0x2180e5&&(this[_0x168e('0xf3')]['add']({'view':_0x2180e5,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x792921=this[_0x168e('0x3d')][_0x168e('0xc')],_0x37a892=this[_0x168e('0x125')](_0x2180e5['changeId']);let _0x4d114a;if(_0x37a892[_0x168e('0xdc')]['isOnRoot']){const _0x7d3a54=_0x792921[_0x168e('0x11e')][_0x168e('0xe4')](_0x37a892[_0x168e('0x3')]);_0x4d114a=Array['from'](_0x7d3a54[_0x168e('0xa5')]());}else{const _0x14d233=this[_0x168e('0x3d')]['model'][_0x168e('0xab')][_0x168e('0xe0')]('revision:'+_0x2180e5[_0x168e('0x64')]);_0x4d114a=Array[_0x168e('0x40')](_0x792921[_0x168e('0x25')][_0x168e('0x5d')](_0x14d233[_0x168e('0x74')]))[_0x168e('0x9')](_0x1e920b=>_0x792921[_0x168e('0x11e')][_0x168e('0x58')][_0x168e('0xb7')](_0x1e920b))[_0x168e('0x9')](_0x138acf=>Array['from'](_0x138acf[_0x168e('0xa5')]()))[_0x168e('0x7c')]();}if(!this[_0x168e('0x78')])return _0x4d114a[0x0];return _0x4d114a[_0x168e('0xe8')](_0x5dc0c3=>_0x5dc0c3[_0x168e('0x17')]-0x3<=this[_0x168e('0x78')]['y']&&_0x5dc0c3[_0x168e('0x15')]+0x3>=this['_activeViewTarget']['y']&&_0x5dc0c3[_0x168e('0xd6')]-0x3<=this[_0x168e('0x78')]['x']&&_0x5dc0c3[_0x168e('0x107')]+0x3>=this[_0x168e('0x78')]['x'])||_0x4d114a[0x0];}}}),this[_0x168e('0xf3')][_0x168e('0x12')](_0x168e('0x59')));}),this['on'](_0x168e('0xd8'),(_0xf45af0,_0x19a100,_0x1b2d56,_0x5279ea)=>{this[_0x168e('0x2b')]=_0x1b2d56?this[_0x168e('0xf0')](_0x1b2d56):null,this['editor'][_0x168e('0xef')][_0x168e('0x48')](()=>{const _0x4c1109=this[_0x168e('0x3d')]['editing'];_0x5279ea&&(_0x5279ea[_0x168e('0xdc')][_0x168e('0x7b')]?_0x4c1109['view'][_0x168e('0x48')](_0x4c4350=>{_0x4c4350[_0x168e('0x123')]('ck-revision-history-root--active',_0x4c1109[_0x168e('0x11e')][_0x168e('0xcf')][_0x168e('0x77')](_0x5279ea['rootName']));}):_0x4c1109[_0x168e('0x11f')](_0x168e('0xb2')+_0x5279ea['id'])),_0x1b2d56&&(_0x1b2d56['data'][_0x168e('0x7b')]?_0x4c1109['view']['change'](_0xf5ce35=>{_0xf5ce35[_0x168e('0xc2')](_0x168e('0xa9'),_0x4c1109[_0x168e('0x11e')]['document'][_0x168e('0x77')](_0x1b2d56[_0x168e('0x3')]));}):_0x4c1109[_0x168e('0x11f')](_0x168e('0xb2')+_0x1b2d56['id']));});}),this[_0x168e('0x65')](this['editor'][_0x168e('0xc')][_0x168e('0x11e')]['document'],_0x168e('0x99'),(_0x534957,_0x1413e7)=>{if(this[_0x168e('0xd2')])return;const _0x215184=this[_0x168e('0xc7')](_0x1413e7[_0x168e('0xfd')]),_0x347644=this['_changeIdToChange'][_0x168e('0xe0')](_0x215184);_0x347644?(this[_0x168e('0x78')]={'x':_0x1413e7['domEvent']['x'],'y':_0x1413e7[_0x168e('0xf5')]['y']},this['activeView']=this['_getViewForChange'](_0x347644)):(this[_0x168e('0x78')]=null,this[_0x168e('0x2b')]=null);}),this[_0x168e('0x65')](this[_0x168e('0x3d')][_0x168e('0xc')][_0x168e('0x11e')][_0x168e('0xcf')],_0x168e('0xf6'),(_0x392648,_0x5988c1)=>{const _0x5beed4=this[_0x168e('0xc7')](_0x5988c1['target']),_0x470464=this['_changeIdToChange'][_0x168e('0xe0')](_0x5beed4);_0x470464?(this[_0x168e('0x78')]={'x':_0x5988c1['domEvent']['x'],'y':_0x5988c1[_0x168e('0xf5')]['y']},_0x470464===this[_0x168e('0xd2')]?this['_balloon'][_0x168e('0x0')]():this[_0x168e('0xd2')]=_0x470464):(this[_0x168e('0x78')]=null,this[_0x168e('0xd2')]=null);});}[_0x168e('0xc7')](_0x469644){do{const _0x2db271=_0x469644['getAttribute'](_0x168e('0x5e'));if(_0x2db271)return _0x2db271;_0x469644=_0x469644['parent'];}while(_0x469644);return null;}[_0x168e('0x6e')](){this[_0x168e('0x3d')][_0x168e('0xef')]['change'](_0x4177a1=>{for(const _0x159a53 of this[_0x168e('0x3d')][_0x168e('0xef')][_0x168e('0xab')])_0x4177a1[_0x168e('0xb0')](_0x159a53);});}}function et(_0x971c79,_0x502d0a){return(_0xa22d43,_0x2088fc,_0x15340d)=>{if(!_0x15340d[_0x168e('0xbc')][_0x168e('0xad')](_0x2088fc[_0x168e('0x9a')],_0xa22d43['name']))return;const _0x10c4c6=_0x2088fc[_0x168e('0x9a')][_0x168e('0xaf')](),_0x53f5fb=_0x2088fc[_0x168e('0x9a')][_0x168e('0x2a')],_0x87416f=_0x971c79[_0x168e('0xef')][_0x168e('0x13')];let _0x59c6b8=null,_0x328cac=null,_0x1ac41d=!0x1,_0x92c812=!0x1;for(const _0x5728d2 of _0x10c4c6){const _0x1a857d=_0x5728d2[_0x168e('0x62')];_0x1ac41d=_0x1ac41d||_0x87416f[_0x168e('0x18')](_0x1a857d);const _0x592f20=_0x15340d['mapper'][_0x168e('0x5c')](_0x1a857d);if(_0x592f20&&_0x592f20[_0x168e('0x108')]('addHighlight'))return;'elementEnd'==_0x5728d2[_0x168e('0x114')]&&(_0x87416f[_0x168e('0x26')](_0x1a857d)&&!_0x87416f[_0x168e('0xb6')](_0x1a857d)&&(_0x1a857d[_0x168e('0x55')]||_0x53f5fb[_0x168e('0x46')]?_0x59c6b8&&_0x59c6b8[_0x168e('0xd4')]==_0x1a857d||(_0x59c6b8=_0x1a857d,_0x73e374(_0x5728d2[_0x168e('0x90')]),_0x92c812=!0x0):_0x328cac=_0x328cac||_0x5728d2['previousPosition']));}function _0x73e374(_0x2b8b16){const _0x4cd4ed=_0x15340d[_0x168e('0x25')][_0x168e('0xb8')](_0x2b8b16),_0x2e854c=_0x15340d['writer'][_0x168e('0xbd')]('span',{'class':_0x168e('0xff')+_0x502d0a});_0x15340d[_0x168e('0x29')][_0x168e('0x4a')](_0x4cd4ed,_0x2e854c),_0x15340d[_0x168e('0x25')][_0x168e('0x49')](_0x2e854c,_0x2088fc[_0x168e('0xd1')]);}_0x1ac41d||_0x92c812||!_0x328cac||_0x73e374(_0x328cac);};}export class RestoreRevisionCommand extends _0x1de69a{constructor(_0x21d474){super(_0x21d474);const _0xf62df3=_0x21d474[_0x168e('0x71')]['get'](d);this['affectsData']=!0x1,this[_0x168e('0x65')](_0xf62df3,_0x168e('0x79'),()=>this[_0x168e('0x61')]()),this[_0x168e('0x65')](_0xf62df3,_0x168e('0x6'),()=>this[_0x168e('0x61')]());}['execute'](){const _0x35abe4=this['editor'],_0x16b571=_0x35abe4['plugins'][_0x168e('0xe0')](d),_0x13cfe0=_0x16b571['isReady']?_0x16b571[_0x168e('0x11a')][_0x168e('0xde')]:null;_0x35abe4['config'][_0x168e('0xe0')](_0x168e('0x67'))[_0x168e('0xd7')](_0x13cfe0);}['refresh'](){const {isReady:_0x59dfe8,isEnabled:_0x5e6d9d}=this[_0x168e('0x3d')]['plugins'][_0x168e('0xe0')](d);this[_0x168e('0x4')]=_0x59dfe8&&_0x5e6d9d;}}export class ShowChangeCommand extends _0x1de69a{constructor(_0xb7fd77,{direction:_0x4ce82d}){super(_0xb7fd77);const _0x4bda7c=_0xb7fd77[_0x168e('0x71')][_0x168e('0xe0')](d);this[_0x168e('0x83')]=!0x1,this[_0x168e('0xdd')]=_0x168e('0x24')===_0x4ce82d?0x1:-0x1,this['listenTo'](_0x4bda7c,_0x168e('0x79'),()=>this[_0x168e('0x61')]()),this[_0x168e('0x65')](_0x4bda7c,_0x168e('0x6'),()=>this[_0x168e('0x61')]()),this['listenTo'](_0x4bda7c,_0x168e('0xd8'),()=>this[_0x168e('0x61')]());}[_0x168e('0x89')](){const _0x5bf9fe=this[_0x168e('0x3d')],_0x1d9ce7=_0x5bf9fe[_0x168e('0x71')][_0x168e('0xe0')](d),{isNavigationMode:_0xff9658,currentChangeNumber:_0x1f17df}=_0x1d9ce7;let _0x5a715c;if(_0x1d9ce7[_0x168e('0xd2')]=_0xff9658?_0x1d9ce7[_0x168e('0x11a')][_0x168e('0x52')][_0x168e('0xe0')](_0x1f17df+this[_0x168e('0xdd')]):_0x1d9ce7['diff'][_0x168e('0x52')]['first'],_0x1d9ce7['activeChange'][_0x168e('0xdc')][_0x168e('0x7b')])_0x5a715c=_0x5bf9fe[_0x168e('0xc')][_0x168e('0x11e')]['getDomRoot'](_0x1d9ce7[_0x168e('0xd2')][_0x168e('0x3')]);else{const _0x795929=_0x5bf9fe[_0x168e('0xef')][_0x168e('0xab')][_0x168e('0xe0')](_0x168e('0xb2')+_0x1d9ce7['activeChange']['id']);_0x5a715c=_0xb48a2c(_0x5bf9fe['editing'],_0x795929);}_0x2ade8d({'target':_0x5a715c,'viewportOffset':0x28});}[_0x168e('0x61')](){const {isNavigationMode:_0x2d9d43,currentChangeNumber:_0x56395f,numberOfChanges:_0x32873c,isReady:_0x12e200,isEnabled:_0x4b8e22}=this[_0x168e('0x3d')][_0x168e('0x71')][_0x168e('0xe0')](d);this['isEnabled']=!!(_0x4b8e22&&_0x12e200&&_0x32873c)&&(!_0x2d9d43||(0x1===this[_0x168e('0xdd')]?_0x56395f<_0x32873c-0x1:_0x56395f>0x0));}}
23
+ const _0x4605=['revision-suggestion','markerToHighlight','affectsData','left','all','getWalker','processor','showPreviousChange','WidgetToolbarRepository','indexOf','change:isEnabled','resolve','detachRoot','_removeRevisionMarkers','wrap','checkAttribute','addHighlight','_changeView','removeMarker:revision','_sortAndFilterDiffChanges','revision-viewer','adapter','numberOfChanges','remove','_findChangeIdFromDomTarget','forward','addRoot','setAttribute','hasAttribute','high','revisionHistoryLabel','getIndex','comment','_getDiff','createPositionBefore','_setDistance','createRevision','_getViewForChange','abs','getAttribute','reconvertMarker','activeView','getRoot','suggestion','showStack','level','requires','isContent','plugins','changes','enqueueChange','addRevision','_cleanUp','forEach','unbindElementFromMarkerName','change','revision-start','catch','getRevisionData','schema','insertion','revision','isCollapsed','elementToAttribute','_makeTape','isSuggestion','endIndex','from','POSITIVE_INFINITY','model','_balloon','parse','end','createRange','nodeAfter','ck-suggestion-preview-marker-','isOnRoot','bottom','bind','insert','ck-revision-history-root-add','revision-end','rootName','getClientRects','repository','data-revision-','add','top','markerNameToElements','clear','selection','mousedown','range','revision-comment:','marked','addMarker:revision-suggestion:insertion','authors','object','getCustomProperty','attributesBefore','listenTo','getChild','name','right','find','isEqual','attributesAfter','observeMarkers','side','removeMarker:revision-suggestion','_appendChild','hasClass','softBreak','isReady','markers','diff','createUIElement','slice','addClass','maxOffset','_markMismatchedRemovedTags','_markInsertions','forceDisabled','element','_fixObsoleteTags','ck-revision-history-root-remove','isNavigationMode','backward','revision:','commands','toViewElement','span','string','data','_threeWayMerge','useFillerType','execute','nextSibling','highest','vid_start','previousPosition','elementEnd','then','viewItem','_data','dataToMarker','_removeUnsupportedChanges','-new','downcastDispatcher','collaboration.channelId','mapViewToDom','vid_end','createPositionFromPath','mouseover','markerToData','uiElement','change:activeChange','deletion','merge','createAttributeElement','_refreshStartEndIndex','suggestion:','mapper','addMarker:revision','data-change-id','writer','isObject','insertions','flat','splice','loadRevisionData','ck-suggestion-marker','_makeModelFromViewString','filter','children','userId','isAtStart','length','next','isAtEnd','test','ck-suggestion-marker--active','deletions','shift','refresh','has','consumable','changeId','editing','_cleanMarkers','removeAttribute','view','ck-suggestion-marker-','_getRevisionsRange','elementStart','attachChange','ck-revision-history-root-','set','restoreRevisionCallback','newRevisionId','_update','bindElementToMarker','change:isReady','isIncorrect','push','ck-revision-history-root--active','removeClass','markerRange','getRootNames','diffData','split','currentChangeNumber','_joinTapes','locale','isAfter','markersStart','getRevision','_activeViewTarget','pairId','type','enableReadOnlyMode','isInline','nextPosition','_markSuggestions','includes','_initInteractions','roots','toViewPosition','target','isEnabled','sort','document','_makeModelFromTape','activeChange','conversion','editor','toViewRange','_changeIdToChange','attribute:vid','get','for','config','isAddSuggestion','updatePosition','modelRange','stop','startIndex','code','text','map','start','_processTape','vid','_setChanges','isRemoved','startsWith','isBlock','isLimit','getDomRoot','compare','isAdded','values','parent','_getChangeFromId','upcast','attributes','ck-editor__editable__overlay','RevisionViewer','change:activeView','isBefore','toModel','distance','keys','getAttributes','_step','return','createRangeIn','_removeMissingPairs','_markMarkers','low','markersEnd','destroy','consume','revision-suggestion:','concat','offsetSize','isRemoveSuggestion','element:pre','revisionHistoryAttachChange','item','domEvent','getRevisionRootsAttributes','_getViewObj','markerName','restoreRevision','error','isAttached','index','delete','change:numberOfChanges','unshift','pluginName'];(function(_0xe4662,_0x46057d){const _0x51b865=function(_0x3b7ba2){while(--_0x3b7ba2){_0xe4662['push'](_0xe4662['shift']());}};_0x51b865(++_0x46057d);}(_0x4605,0x67));const _0x51b8=function(_0xe4662,_0x46057d){_0xe4662=_0xe4662-0x0;let _0x51b865=_0x4605[_0xe4662];return _0x51b865;};import{Plugin as _0x1bbf13,Command as _0x3ab592}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x571fb1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5496f4}from'ckeditor5/src/ui';import{DocumentFragment as _0xcfbbd7,Element as _0x336b95,Text as _0x1fe542,ViewDocumentFragment as _0x38454b,ViewText as _0x1ba5b8,ViewElement as _0x2e1a6f,ViewContainerElement as _0x5dc999,ViewAttributeElement as _0x300403,ViewEmptyElement as _0x24cc69,ViewRawElement as _0x183e0c,ViewUIElement as _0x48950b}from'ckeditor5/src/engine';import{Users as _0x42da02,getMarkerDomElement as _0x306b6c}from'ckeditor5-collaboration/src/collaboration-core';import _0x41d175 from'./ui/revisionviewer/changedetailsview';import _0x55c80b from'./revisionsrepository';import _0x148687 from'./changeitem';import{default as _0x3cc7a8}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4b89ca}from'lodash-es';const tt={'c':_0x5dc999,'a':_0x300403,'e':_0x24cc69,'r':_0x183e0c,'u':_0x48950b};export default class d extends _0x1bbf13{static get[_0x51b8('0xc6')](){return _0x51b8('0xa4');}static get[_0x51b8('0xf5')](){return[_0x42da02,_0x5496f4,_0x55c80b];}constructor(_0x43ba45){super(_0x43ba45),this[_0x51b8('0x11b')]=this[_0x51b8('0x84')][_0x51b8('0xf7')]['get']('RevisionsRepository'),this[_0x51b8('0x5e')](_0x51b8('0x82'),null),this['set']('activeView',null),this[_0x51b8('0x72')]=null,this[_0x51b8('0x5e')](_0x51b8('0xc'),null),this[_0x51b8('0x5e')](_0x51b8('0xa'),!0x1),this[_0x51b8('0x5e')]('isEnabled',!0x0),this['on'](_0x51b8('0xd1'),(_0x34019e,_0x1e8fa4,_0x412f31)=>{this[_0x51b8('0x82')]=null,this[_0x51b8('0xf0')]=null,this[_0x51b8('0x84')][_0x51b8('0x55')]['view']['change'](_0x58341e=>{for(const _0x3a6ed1 of this[_0x51b8('0x84')]['editing'][_0x51b8('0x58')]['document'][_0x51b8('0x7b')])_0x412f31?_0x58341e[_0x51b8('0x67')](_0x51b8('0xa3'),_0x3a6ed1):_0x58341e[_0x51b8('0xf')](_0x51b8('0xa3'),_0x3a6ed1);});}),this['bind'](_0x51b8('0x17'))['to'](this,_0x51b8('0x82'),_0x3221e3=>null!==_0x3221e3),this['bind'](_0x51b8('0x6c'))['to'](this,_0x51b8('0xa'),this,_0x51b8('0xc'),this,_0x51b8('0x82'),(_0x1fa3fb,_0x342e39,_0x5ad69e)=>_0x1fa3fb&&_0x5ad69e?_0x342e39['changes'][_0x51b8('0xe6')](_0x5ad69e):0x0),this[_0x51b8('0x115')](_0x51b8('0xdd'))['to'](this,_0x51b8('0xa'),this,'diff',(_0x498a27,_0x54f8ac)=>_0x498a27?_0x54f8ac[_0x51b8('0xf8')][_0x51b8('0x4a')]:0x0),this[_0x51b8('0xd8')]=null,this['_changeIdToChange']=new Map(),this[_0x51b8('0xdc')]=null,this[_0x51b8('0x10d')]=this[_0x51b8('0x84')]['plugins']['get'](_0x5496f4);}['init'](){const _0x2104c8=this[_0x51b8('0x84')],_0x52c266=new ShowChangeCommand(_0x2104c8,{'direction':_0x51b8('0x18')}),_0x4263ab=new ShowChangeCommand(_0x2104c8,{'direction':_0x51b8('0xe0')});(_0x2104c8[_0x51b8('0x1a')][_0x51b8('0x11d')](_0x51b8('0xce'),_0x52c266),_0x2104c8[_0x51b8('0x1a')]['add']('showNextChange',_0x4263ab),_0x2104c8['commands']['add'](_0x51b8('0xbf'),new RestoreRevisionCommand(_0x2104c8)),this['on'](_0x51b8('0xc4'),()=>{_0x52c266[_0x51b8('0x51')](),_0x4263ab[_0x51b8('0x51')]();}),this['_setConversion'](),this[_0x51b8('0x7a')](),_0x2104c8[_0x51b8('0x75')](_0x51b8('0xdb')),_0x2104c8[_0x51b8('0xf7')][_0x51b8('0x52')](_0x51b8('0xcf')))&&_0x2104c8['plugins'][_0x51b8('0x88')](_0x51b8('0xcf'))[_0x51b8('0x13')]('revision-viewer');}async[_0x51b8('0x101')](_0x9ff1da){await this[_0x51b8('0x43')](_0x9ff1da);const _0x5ab6ea={};for(const _0x48e1d1 in _0x9ff1da[_0x51b8('0x6a')]){if(_0x9ff1da[_0x51b8('0x6a')][_0x48e1d1]['attachChange']&&!_0x9ff1da[_0x51b8('0x6a')][_0x48e1d1][_0x51b8('0x5c')]['isAttached'])continue;const _0x1ade5d=this[_0x51b8('0xd4')](JSON['parse'](_0x9ff1da['diffData'][_0x48e1d1]['insertions'])),_0x264392=this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')]['document'],_0x459ca5=new _0x38454b(_0x264392,_0x1ade5d[_0x51b8('0x92')](_0x503504=>this[_0x51b8('0xbd')](_0x503504)));this[_0x51b8('0x84')][_0x51b8('0x1e')][_0x51b8('0xcd')]['useFillerType'](_0x51b8('0x125')),_0x5ab6ea[_0x48e1d1]=this[_0x51b8('0x84')][_0x51b8('0x1e')]['processor']['toData'](_0x459ca5),this['editor'][_0x51b8('0x1e')]['processor'][_0x51b8('0x20')]('default');}return _0x5ab6ea;}async[_0x51b8('0xbc')](_0x447583){await this[_0x51b8('0x43')](_0x447583);const _0x4c3ecd={};for(const _0xff1805 in _0x447583[_0x51b8('0x6a')])_0x447583[_0x51b8('0x6a')][_0xff1805]['attachChange']&&!_0x447583[_0x51b8('0x6a')][_0xff1805]['attachChange'][_0x51b8('0xc1')]||(_0x4c3ecd[_0xff1805]=_0x447583[_0x51b8('0x6a')][_0xff1805][_0x51b8('0x3')]||{});return _0x4c3ecd;}[_0x51b8('0xd4')](_0x281921){return(_0x281921=_0x281921[_0x51b8('0x46')](_0xee5543=>!_0xee5543[_0x51b8('0x12d')]||_0x51b8('0xff')!==_0xee5543[_0x51b8('0x12d')]&&_0x51b8('0x118')!==_0xee5543[_0x51b8('0x12d')]))['forEach'](_0x19e8db=>{_0x51b8('0x1d')!=typeof _0x19e8db&&(_0x19e8db[_0x51b8('0x47')]=this[_0x51b8('0xd4')](_0x19e8db[_0x51b8('0x47')]),_0x19e8db['attributes']=_0x19e8db[_0x51b8('0xa2')][_0x51b8('0x46')](_0x47ec97=>!_0x47ec97[0x0][_0x51b8('0x98')](_0x51b8('0x11c'))));}),_0x281921;}async[_0x51b8('0x9c')](_0x363a62,_0x268b96,_0x715034=!0x1){if(!this[_0x51b8('0x7e')])return;const _0x3d1a6a=this[_0x51b8('0xc')],_0x101ef1=this[_0x51b8('0x11b')],_0x443fea=_0x51b8('0x1d')==typeof _0x363a62?_0x101ef1['getRevision'](_0x363a62):_0x363a62,_0x786c10=_0x51b8('0x1d')==typeof _0x268b96?_0x101ef1['getRevision'](_0x268b96):_0x268b96,_0x10c260=_0x443fea['id'],_0x528e4a=_0x786c10?_0x786c10['id']:null;if(!_0x715034&&this[_0x51b8('0xc')]&&this[_0x51b8('0xc')][_0x51b8('0x60')]===_0x10c260&&this['diff']['oldRevisionId']===_0x528e4a)return Promise['resolve']();this[_0x51b8('0xa')]=!0x1,this[_0x51b8('0xf0')]=null,this[_0x51b8('0x82')]=null,this[_0x51b8('0xc')]=new _0x3cc7a8(_0x10c260,_0x528e4a);const _0x314b1b=this[_0x51b8('0x5a')](_0x443fea,_0x786c10,!0x0)[_0x51b8('0x92')](_0x577bd8=>this['loadRevisionData'](_0x577bd8));return _0x314b1b[_0x51b8('0x65')](new Promise(_0x334471=>{setTimeout(_0x334471,0x14);})),Promise[_0x51b8('0xcb')](_0x314b1b)['then'](()=>{if(!this[_0x51b8('0x7e')])return;this[_0x51b8('0xfb')]();const _0x121eb9=this[_0x51b8('0xe8')](_0x10c260,_0x528e4a);for(const _0x5d9479 of _0x121eb9['changes'])this['_changeIdToChange']['set'](_0x5d9479['id'],_0x5d9479);this[_0x51b8('0x84')][_0x51b8('0x10c')]['enqueueChange']({'isUndoable':!0x1},_0x2cbd16=>{for(const _0x248b19 of this['editor']['model'][_0x51b8('0x80')][_0x51b8('0x69')]())_0x2cbd16['detachRoot'](_0x248b19);for(const _0x4a1b92 of Object[_0x51b8('0xa9')](_0x121eb9['model'])){const _0x21db3b=_0x2cbd16[_0x51b8('0xe1')](_0x4a1b92);for(const _0x1c9a0c of Object['keys'](_0x121eb9['attributes'][_0x4a1b92]))_0x2cbd16[_0x51b8('0xe2')](_0x1c9a0c,_0x121eb9[_0x51b8('0xa2')][_0x4a1b92][_0x1c9a0c],_0x21db3b);_0x2cbd16[_0x51b8('0x116')](_0x121eb9['model'][_0x4a1b92],_0x21db3b,0x0);}}),this[_0x51b8('0xc')][_0x51b8('0x96')](this[_0x51b8('0xda')](_0x121eb9[_0x51b8('0xf8')])),this['isReady']=!0x0;})[_0x51b8('0x100')](_0x531427=>{console[_0x51b8('0xc0')](_0x531427),this['_cleanUp'](),_0x3d1a6a&&(this[_0x51b8('0xc')]=_0x3d1a6a),this[_0x51b8('0xa')]=!0x0;});}['addRevisionData'](_0x205e1d,_0x2731d8){const _0x285ca9=this['repository'][_0x51b8('0xeb')](_0x205e1d);return _0x285ca9['on'](_0x51b8('0x61'),(_0x3fbfb3,_0x4457c7,_0xf2fe99)=>_0x2731d8(_0x4457c7,_0xf2fe99,_0x285ca9)),this[_0x51b8('0x11b')][_0x51b8('0xfa')](_0x285ca9),_0x285ca9;}[_0x51b8('0x43')](_0x5e6be4){if(!_0x5e6be4||_0x5e6be4[_0x51b8('0x6a')])return Promise[_0x51b8('0xd2')]();{const _0x52a549=this['editor'][_0x51b8('0x8a')][_0x51b8('0x88')](_0x51b8('0x2e'));return this[_0x51b8('0xdc')][_0x51b8('0x71')]({'channelId':_0x52a549,'revisionId':_0x5e6be4['id']})[_0x51b8('0x27')](_0x41247a=>{_0x5e6be4[_0x51b8('0x61')]({'diffData':_0x41247a[_0x51b8('0x6a')]},!0x0);});}}[_0x51b8('0xfb')](){this[_0x51b8('0x82')]=null,this[_0x51b8('0x56')](),this[_0x51b8('0xd8')]&&this[_0x51b8('0xd8')][_0x51b8('0xb2')](),this['_changeView']=null,this[_0x51b8('0x86')][_0x51b8('0x120')](),this[_0x51b8('0x84')]['model'][_0x51b8('0xf9')]({'isUndoable':!0x1},_0x18cc39=>{for(const _0xe2d847 of this[_0x51b8('0x84')][_0x51b8('0x10c')]['document']['getRootNames']())_0x18cc39[_0x51b8('0xd3')](_0xe2d847);});}['_sortAndFilterDiffChanges'](_0x24d776){const _0x527432=[],_0x24e2e3=new Map();for(const _0x26d8af of this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x80')][_0x51b8('0x69')]()){const _0x26eb06=this['editor'][_0x51b8('0x55')]['view'][_0x51b8('0x9b')](_0x26d8af);if(!_0x26eb06)continue;const _0x522d4a=_0x26eb06['getClientRects']()[_0x51b8('0xba')](0x0);_0x522d4a&&(_0x527432[_0x51b8('0x65')](_0x26d8af),_0x24e2e3[_0x51b8('0x5e')](_0x26d8af,_0x522d4a));}return _0x527432['sort']((_0x5cdcbd,_0x2a7b39)=>{const _0x517818=_0x24e2e3['get'](_0x5cdcbd),_0x5cc342=_0x24e2e3[_0x51b8('0x88')](_0x2a7b39);return _0x517818['y']-_0x5cc342['y']||_0x517818['x']-_0x5cc342['x'];}),(_0x24d776=_0x24d776[_0x51b8('0x46')](_0x1086ad=>_0x527432[_0x51b8('0x79')](_0x1086ad[_0x51b8('0x119')])))[_0x51b8('0x7f')]((_0x142fc3,_0x5ddd28)=>_0x527432[_0x51b8('0xd0')](_0x142fc3[_0x51b8('0x119')])-_0x527432[_0x51b8('0xd0')](_0x5ddd28[_0x51b8('0x119')])),_0x24d776;}['_makeTape'](_0x158d87){const _0x2d96be=Array[_0x51b8('0x10a')](_0x158d87[_0x51b8('0xb')])[_0x51b8('0x46')](([_0x36b5ca,_0x3f2b96])=>_0x36b5ca[_0x51b8('0x98')](_0x51b8('0x19'))&&!_0x3f2b96['isCollapsed']),_0x183152=Array[_0x51b8('0x10a')](this[_0x51b8('0x84')]['model'][_0x51b8('0xad')](_0x158d87)[_0x51b8('0xcc')]({'singleCharacters':!0x0}));if(0x0!=_0x2d96be[_0x51b8('0x4a')])for(const _0x1ffa04 of _0x183152){const [_0x3a39cd,_0x588048]=_0x2d96be[0x0],[,_0x1397c2,_0x14ac1c]=_0x3a39cd[_0x51b8('0x6b')](':');if(_0x588048[_0x51b8('0x10f')][_0x51b8('0x2')](_0x1ffa04[_0x51b8('0x77')])&&_0x2d96be[_0x51b8('0x50')](),(_0x1ffa04[_0x51b8('0x25')]['isEqual'](_0x588048[_0x51b8('0x93')])||_0x1ffa04[_0x51b8('0x25')][_0x51b8('0x6f')](_0x588048[_0x51b8('0x93')]))&&(_0x51b8('0x103')==_0x1397c2?_0x1ffa04[_0x51b8('0x9d')]={'userId':_0x14ac1c}:_0x51b8('0x36')==_0x1397c2&&(_0x1ffa04['isRemoved']={'userId':_0x14ac1c})),0x0==_0x2d96be['length'])break;}return _0x183152;}[_0x51b8('0x39')](_0x32a454){const _0x188bad=new Map();for(let _0x30ff33=0x0;_0x30ff33<_0x32a454[_0x51b8('0x4a')];_0x30ff33++)_0x51b8('0x91')===_0x32a454[_0x30ff33]['type']?(_0x32a454[_0x30ff33]['item'][_0x51b8('0x8f')]=_0x30ff33,_0x32a454[_0x30ff33]['item'][_0x51b8('0x109')]=_0x30ff33):(_0x51b8('0x5b')===_0x32a454[_0x30ff33]['type']?_0x32a454[_0x30ff33]['item']['startIndex']=_0x30ff33:_0x51b8('0x26')===_0x32a454[_0x30ff33][_0x51b8('0x74')]&&(_0x32a454[_0x30ff33][_0x51b8('0xba')][_0x51b8('0x109')]=_0x30ff33),_0x188bad[_0x51b8('0x5e')](_0x32a454[_0x30ff33]['id'],_0x30ff33));for(const _0x3fd89e of _0x188bad[_0x51b8('0x9e')]())_0x51b8('0x5b')===_0x32a454[_0x3fd89e]['type']?_0x32a454[_0x3fd89e][_0x51b8('0xba')][_0x51b8('0x109')]=_0x188bad[_0x51b8('0x88')](_0x32a454[_0x3fd89e]['pairId']):_0x51b8('0x26')===_0x32a454[_0x3fd89e][_0x51b8('0x74')]&&(_0x32a454[_0x3fd89e][_0x51b8('0xba')]['startIndex']=_0x188bad[_0x51b8('0x88')](_0x32a454[_0x3fd89e]['pairId']));}[_0x51b8('0x94')](_0x5b0864){for(let _0x36530f=0x0;_0x36530f<_0x5b0864['length'];_0x36530f++){if('elementStart'===_0x5b0864[_0x36530f][_0x51b8('0x74')])_0x5b0864[_0x36530f][_0x51b8('0xba')][_0x51b8('0x8f')]=_0x36530f;else{if(_0x51b8('0x26')===_0x5b0864[_0x36530f][_0x51b8('0x74')]){_0x5b0864[_0x36530f]['item'][_0x51b8('0x109')]=_0x36530f;const _0x5b2894=_0x5b0864[_0x36530f][_0x51b8('0xba')][_0x51b8('0x8f')];_0x5b0864[_0x5b2894][_0x51b8('0x73')]=_0x5b0864[_0x36530f]['id'],_0x5b0864[_0x36530f][_0x51b8('0x73')]=_0x5b0864[_0x5b2894]['id'];}else _0x5b0864[_0x36530f][_0x51b8('0xba')]['startIndex']=_0x36530f,_0x5b0864[_0x36530f][_0x51b8('0xba')][_0x51b8('0x109')]=_0x36530f,_0x5b0864[_0x36530f][_0x51b8('0x73')]=null;}_0x5b0864[_0x36530f][_0x51b8('0x70')]||(_0x5b0864[_0x36530f]['markersStart']=[],_0x5b0864[_0x36530f][_0x51b8('0xb1')]=[]);}}['_markInsertions'](_0x537b2d,_0x19fb7b){const _0x1de6dd=_0x537b2d[_0x51b8('0x46')](_0x533dd6=>!_0x533dd6[_0x51b8('0x9d')]);for(let _0x250399=0x0;_0x250399<_0x19fb7b[_0x51b8('0x4a')];_0x250399++)_0x19fb7b[_0x250399][_0x51b8('0x9d')]&&(_0x1de6dd[_0x250399]['isAdded']=_0x19fb7b[_0x250399]['isAdded']);}[_0x51b8('0x45')](_0x183b80){const _0x770d4c=JSON[_0x51b8('0x10e')](_0x183b80),_0x397a90=this[_0x51b8('0x84')]['editing'][_0x51b8('0x58')][_0x51b8('0x80')],_0x56415a=new _0x38454b(_0x397a90,_0x770d4c[_0x51b8('0x92')](_0x145d40=>this[_0x51b8('0xbd')](_0x145d40)));return this[_0x51b8('0x84')]['data'][_0x51b8('0xa7')](_0x56415a);}[_0x51b8('0xbd')](_0x935d4d){const _0x1ad1c6=this[_0x51b8('0x84')][_0x51b8('0x55')]['view']['document'];if(_0x51b8('0x1d')==typeof _0x935d4d)return new _0x1ba5b8(_0x1ad1c6,_0x935d4d);{const _0x568aac=_0x935d4d[_0x51b8('0x47')][_0x51b8('0x92')](_0x491d6e=>this[_0x51b8('0xbd')](_0x491d6e));return new(tt[_0x935d4d[(_0x51b8('0x74'))]]||_0x2e1a6f)(_0x1ad1c6,_0x935d4d['name'],_0x935d4d[_0x51b8('0xa2')],_0x568aac);}}[_0x51b8('0xe8')](_0x19f2ca,_0x194837=null){const _0x368006=this[_0x51b8('0x11b')][_0x51b8('0x71')](_0x19f2ca),_0xcb8b25=_0x194837?this['repository'][_0x51b8('0x71')](_0x194837):null,_0x3dded1=this[_0x51b8('0x5a')](_0x368006,_0xcb8b25),_0x3d27cd=_0x3dded1[_0x3dded1[_0x51b8('0x4a')]-0x1],_0x2996c0=new Map(),_0x70b3bb={'model':{},'attributes':{},'changes':[]},_0x15d624=new Set(),_0x2ce22e=new Map();for(let _0xdc16b8=_0x3dded1[_0x51b8('0x4a')]-0x1;_0xdc16b8>=0x0;_0xdc16b8--){const _0x520b0c=_0x3dded1[_0xdc16b8];for(const _0x10ae23 of Object['keys'](_0x520b0c[_0x51b8('0x6a')]))if(_0x520b0c[_0x51b8('0x6a')][_0x10ae23][_0x51b8('0x5c')]){const _0x16e6b6=_0x520b0c[_0x51b8('0x6a')][_0x10ae23][_0x51b8('0x5c')];_0x16e6b6[_0x51b8('0xc1')]?(_0x15d624[_0x51b8('0x11d')](_0x10ae23),_0x2ce22e[_0x51b8('0x52')](_0x10ae23)&&_0x2ce22e[_0x51b8('0x88')](_0x10ae23)[_0x51b8('0x48')]==_0x16e6b6['userId']?_0x2ce22e[_0x51b8('0xc3')](_0x10ae23):_0x2ce22e[_0x51b8('0x5e')](_0x10ae23,_0x16e6b6)):_0x2ce22e['has'](_0x10ae23)?(_0x15d624[_0x51b8('0xc3')](_0x10ae23),_0x2ce22e['delete'](_0x10ae23)):(_0x15d624[_0x51b8('0x11d')](_0x10ae23),_0x2ce22e[_0x51b8('0x5e')](_0x10ae23,_0x16e6b6));}else _0x15d624['add'](_0x10ae23);}for(const _0x4af2c9 of _0x15d624){const _0x3af828=_0x2ce22e['has'](_0x4af2c9)&&!_0x2ce22e[_0x51b8('0x88')](_0x4af2c9)['isAttached'];let _0x5a4115=_0x3af828?_0x3dded1[_0x51b8('0x4a')]-0x1:0x0;const _0x4d59a2=_0x3af828?-0x1:0x1;for(;_0x3dded1[_0x5a4115];){const _0x2459be=_0x3dded1[_0x5a4115];if(_0x2459be[_0x51b8('0x6a')][_0x4af2c9]){const _0x32fcf9=_0x3af828?_0x2459be['diffData'][_0x4af2c9][_0x51b8('0x12a')]:_0x2459be['diffData'][_0x4af2c9][_0x51b8('0x3')];_0x70b3bb[_0x51b8('0xa2')][_0x4af2c9]=_0x32fcf9?_0x4b89ca(_0x32fcf9):{};break;}_0x5a4115+=_0x4d59a2;}}for(const _0x27a0c5 of _0x3dded1){_0x27a0c5[_0x51b8('0x10c')]={};for(const _0x3283d4 of _0x27a0c5[_0x51b8('0x127')])_0x2996c0['set'](_0x3283d4['id'],_0x3283d4);for(const _0x2d5890 of _0x15d624){const _0x4c4620=_0x27a0c5[_0x51b8('0x6a')][_0x2d5890]?_0x27a0c5['diffData'][_0x2d5890]['insertions']:'[]',_0x2ad7d3=_0x27a0c5['diffData'][_0x2d5890]?_0x27a0c5[_0x51b8('0x6a')][_0x2d5890][_0x51b8('0x4f')]:'[]';_0x27a0c5[_0x51b8('0x10c')][_0x2d5890]={'insertions':this['_makeModelFromViewString'](_0x4c4620),'deletions':this[_0x51b8('0x45')](_0x2ad7d3)};}}for(const _0x44a75b of _0x15d624){let _0x4a276b=null,_0x4a300d=0x0;const _0x51ef5a=new Map(Array[_0x51b8('0x10a')](_0x368006[_0x51b8('0x10c')][_0x44a75b][_0x51b8('0x40')][_0x51b8('0xb')])[_0x51b8('0x46')](([_0x462c54])=>!_0x462c54[_0x51b8('0x98')]('revision:')));let _0x467757=0x0;for(const _0x8446f8 of _0x3dded1){const _0x35a2e9=this[_0x51b8('0x107')](_0x8446f8[_0x51b8('0x10c')][_0x44a75b][_0x51b8('0x40')]);_0x8446f8==_0x368006?(_0x4a276b=_0x35a2e9,_0x4a300d=_0x4a276b['length'],_0x4a276b['forEach'](_0x3a1316=>{_0x3a1316['id']=_0x467757++;}),this['_processTape'](_0x4a276b)):this[_0x51b8('0x12')](_0x4a276b,_0x35a2e9);const _0x44258f=_0x4a276b[_0x51b8('0x46')](_0x3689d0=>!_0x3689d0['isAdded'])[_0x51b8('0x92')](_0x192656=>_0x192656['id']);let _0x35328f=0x0;const _0x5a66f6=this[_0x51b8('0x107')](_0x8446f8[_0x51b8('0x10c')][_0x44a75b]['deletions']);_0x5a66f6[_0x51b8('0xfc')](_0x1da0f8=>{_0x1da0f8[_0x51b8('0x97')]?_0x1da0f8['id']=_0x4a300d++:_0x1da0f8['id']=_0x44258f[_0x35328f++];}),this['_processTape'](_0x5a66f6),this[_0x51b8('0xea')](_0x4a276b,'isAdded'),this[_0x51b8('0xea')](_0x5a66f6,_0x51b8('0x97')),_0x8446f8==_0x368006&&this[_0x51b8('0xaf')](_0x4a276b,_0x51ef5a),_0x4a276b=this['_joinTapes'](_0x4a276b,_0x5a66f6),this['_refreshStartEndIndex'](_0x4a276b),this[_0x51b8('0xea')](_0x4a276b,_0x51b8('0x97'));}_0x4a276b=_0x4a276b[_0x51b8('0x46')](_0x48ef7f=>!(_0x48ef7f[_0x51b8('0x9d')]&&_0x48ef7f[_0x51b8('0x97')]));const _0x206ce4=new Map(_0x3d27cd[_0x51b8('0x10c')][_0x44a75b][_0x51b8('0x4f')][_0x51b8('0xb')]),_0x4bdb91=new Set(_0x51ef5a[_0x51b8('0xa9')]());for(const _0x2ac183 of _0x206ce4[_0x51b8('0xa9')]())_0x4bdb91['delete'](_0x2ac183);this['_markSuggestions'](_0x4a276b,_0x4bdb91),this[_0x51b8('0x15')](_0x4a276b),_0x4a276b=this['_removeMissingPairs'](_0x4a276b),_0x4a276b=this[_0x51b8('0x11')](_0x4a276b),_0x4a276b=this[_0x51b8('0x2b')](_0x4a276b);const {root:_0x26e0a4,changes:_0x433c74}=this[_0x51b8('0x81')](_0x4a276b,_0x2996c0,_0x44a75b);_0x70b3bb[_0x51b8('0x10c')][_0x44a75b]=_0x26e0a4;const _0x3dd82b=_0x2ce22e[_0x51b8('0x88')](_0x44a75b);if(_0x3dd82b){const _0x455a15=_0x2996c0['get'](_0x3dd82b[_0x51b8('0x48')]),_0x2c4295=new _0x148687({'author':_0x455a15,'type':_0x3dd82b['isAttached']?_0x51b8('0x11d'):_0x51b8('0xde'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44a75b});_0x433c74[_0x51b8('0xc5')](_0x2c4295),_0x70b3bb[_0x51b8('0xa2')][_0x44a75b][_0x51b8('0xb9')]=_0x2c4295['id'];}_0x70b3bb[_0x51b8('0xf8')]=_0x70b3bb['changes']['concat'](_0x433c74);}return _0x70b3bb;}[_0x51b8('0xaf')](_0x2713da,_0xae54ad){for(let _0x441ecb=0x0;_0x441ecb<_0x2713da[_0x51b8('0x4a')];_0x441ecb++)for(const [_0x483dea,_0x13df13]of _0xae54ad)_0x13df13[_0x51b8('0x93')][_0x51b8('0x2')](_0x2713da[_0x441ecb]['previousPosition'])&&_0x2713da[_0x441ecb][_0x51b8('0x70')][_0x51b8('0x65')](_0x483dea),_0x13df13[_0x51b8('0x10f')][_0x51b8('0x2')](_0x2713da[_0x441ecb][_0x51b8('0x77')])&&_0x2713da[_0x441ecb][_0x51b8('0xb1')][_0x51b8('0x65')](_0x483dea);}[_0x51b8('0x6d')](_0x505b85,_0x5b56c8){let _0x3650eb=[],_0x3ae74f=0x0,_0x70f6a4=0x0;for(;_0x3ae74f<_0x505b85['length']||_0x70f6a4<_0x5b56c8[_0x51b8('0x4a')];){const _0x37d678=_0x505b85[_0x3ae74f]||{},_0x117ec0=_0x5b56c8[_0x70f6a4]||{};if(_0x37d678['id']==_0x117ec0['id'])_0x3ae74f++,_0x70f6a4++,_0x3650eb['push'](_0x37d678);else{if(_0x117ec0['isRemoved']&&_0x37d678[_0x51b8('0x9d')]){const {commonTape:_0x5a35c4,iEnd:_0x37cc94,jEnd:_0xca45d1}=this['_threeWayMerge'](_0x505b85,_0x3ae74f,_0x5b56c8,_0x70f6a4);_0x3650eb=_0x3650eb[_0x51b8('0xb5')](_0x5a35c4),_0x3ae74f=_0x37cc94,_0x70f6a4=_0xca45d1;}else _0x117ec0[_0x51b8('0x97')]?(_0x70f6a4++,_0x3650eb[_0x51b8('0x65')](_0x117ec0)):(_0x3ae74f++,_0x3650eb[_0x51b8('0x65')](_0x37d678));}}return _0x3650eb;}[_0x51b8('0x78')](_0x486971,_0x18dd81){const _0x5d5462=[];for(let _0x1eecd0=0x0;_0x1eecd0<_0x486971[_0x51b8('0x4a')];_0x1eecd0++){for(let _0x4434c4=0x0;_0x4434c4<_0x486971[_0x1eecd0][_0x51b8('0x70')]['length'];_0x4434c4++){const _0x1385ff=_0x486971[_0x1eecd0][_0x51b8('0x70')][_0x4434c4];if(!_0x18dd81[_0x51b8('0x52')](_0x1385ff))continue;const {group:_0xe7c119,type:_0x20ffda,authorId:_0x26abbe}=_0x49974f(_0x1385ff);_0x51b8('0xc7')!=_0xe7c119||'insertion'!=_0x20ffda&&_0x51b8('0x36')!=_0x20ffda||(_0x5d5462[_0x51b8('0xc5')]({'type':_0x20ffda,'name':_0x1385ff,'userId':_0x26abbe}),_0x486971[_0x1eecd0]['markersStart'][_0x51b8('0x42')](_0x4434c4,0x1),_0x4434c4--);}_0x56a95c(_0x486971[_0x1eecd0]);for(let _0x4ae3f1=0x0;_0x4ae3f1<_0x486971[_0x1eecd0][_0x51b8('0xb1')]['length'];_0x4ae3f1++){const _0x385ecf=_0x486971[_0x1eecd0][_0x51b8('0xb1')][_0x4ae3f1];if(!_0x18dd81[_0x51b8('0x52')](_0x385ecf))continue;const {group:_0x3f291a,type:_0xf56d92}=_0x49974f(_0x385ecf);if(_0x51b8('0xc7')!=_0x3f291a||_0x51b8('0x103')!=_0xf56d92&&_0x51b8('0x36')!=_0xf56d92)continue;_0x486971[_0x1eecd0][_0x51b8('0xb1')][_0x51b8('0x42')](_0x4ae3f1,0x1),_0x4ae3f1--;const _0xfa722a=_0x5d5462['findIndex'](_0x43355c=>_0x43355c[_0x51b8('0x12d')]==_0x385ecf);_0xfa722a>-0x1&&_0x5d5462[_0x51b8('0x42')](_0xfa722a,0x1);}}function _0x49974f(_0x291b44){const _0x4cb060=_0x291b44[_0x51b8('0x6b')](':');return{'group':_0x4cb060[0x0],'type':_0x4cb060[0x1],'subType':_0x4cb060[_0x51b8('0x4a')]>=0x5?_0x4cb060[0x2]:null,'id':_0x4cb060['length']<0x5?_0x4cb060[0x2]:_0x4cb060[0x3],'authorId':_0x4cb060[_0x51b8('0x4a')]<0x5?_0x4cb060[0x3]:_0x4cb060[0x4],'markerCount':0x6==_0x4cb060[_0x51b8('0x4a')]?_0x4cb060[0x5]:null};}function _0x56a95c(_0x296eb2){for(let _0x4d250d=0x0;_0x4d250d<_0x5d5462['length'];_0x4d250d++){if(_0x296eb2[_0x51b8('0x9d')]&&_0x51b8('0x103')==_0x5d5462[_0x4d250d][_0x51b8('0x74')])return _0x296eb2[_0x51b8('0x8b')]=_0x5d5462[_0x4d250d],void delete _0x296eb2['isAdded'];if(!_0x296eb2['isAdded']&&!_0x296eb2[_0x51b8('0x97')]&&_0x51b8('0x36')==_0x5d5462[_0x4d250d][_0x51b8('0x74')])return void(_0x296eb2[_0x51b8('0xb7')]=_0x5d5462[_0x4d250d]);}}}[_0x51b8('0xea')](_0x3b0db2,_0x102003){let _0xb51659=0x0,_0x5c906b=!0x1;const _0x49a643=new Map();for(const _0x3a4c7b of _0x3b0db2)_0x3a4c7b[_0x102003]?_0x5c906b&&(_0xb51659++,_0x5c906b=!0x1):(_0xb51659++,_0x5c906b=!0x0),_0x49a643['set'](_0x3a4c7b['id'],_0xb51659);for(let _0x3337a0=0x0;_0x3337a0<_0x3b0db2[_0x51b8('0x4a')];_0x3337a0++){if(_0x51b8('0x97')==_0x102003&&_0x3b0db2[_0x3337a0][_0x51b8('0x9d')]||_0x51b8('0x9d')==_0x102003&&_0x3b0db2[_0x3337a0][_0x51b8('0x97')])continue;if(_0x51b8('0x91')==_0x3b0db2[_0x3337a0][_0x51b8('0x74')]){_0x3b0db2[_0x3337a0][_0x51b8('0xa8')]=0x0;continue;}const _0x16dfb4=_0x49a643[_0x51b8('0x88')](_0x3b0db2[_0x3337a0][_0x51b8('0x73')]),_0x86bb1c=_0x49a643['get'](_0x3b0db2[_0x3337a0]['id']);_0x3b0db2[_0x3337a0]['distance']=_0x16dfb4-_0x86bb1c;}}['_getRevisionsRange'](_0x4eb1c9,_0x4898c7,_0x296f80=!0x1){const _0x4a6136=[];let _0x4c0cc7=this['repository'][_0x51b8('0xe6')](_0x4eb1c9),_0x4633c0=this['repository'][_0x51b8('0xe6')](_0x4898c7);for(-0x1==_0x4633c0&&(_0x4633c0=this['repository']['_revisions'][_0x51b8('0x4a')],_0x296f80=!0x1);_0x4c0cc7<_0x4633c0;)_0x4a6136['push'](this['repository'][_0x51b8('0x71')](_0x4c0cc7)),_0x4c0cc7++;return _0x296f80&&_0x4a6136[_0x51b8('0x65')](this[_0x51b8('0x11b')][_0x51b8('0x71')](_0x4c0cc7)),_0x4a6136;}[_0x51b8('0x1f')](_0x1b8e9c,_0x29ed08,_0xb495c,_0x150be7){const _0x497762=this[_0x51b8('0x84')]['model']['schema'];let _0xbeb8b1=_0x29ed08;for(;_0x1b8e9c[_0xbeb8b1]&&_0x1b8e9c[_0xbeb8b1][_0x51b8('0x9d')];)_0xbeb8b1++;let _0x5d2a37=_0x150be7;for(;_0xb495c[_0x5d2a37]&&_0xb495c[_0x5d2a37][_0x51b8('0x97')];)_0x5d2a37++;_0x5dcaa9(_0x1b8e9c,_0x29ed08,_0xbeb8b1),_0x5dcaa9(_0xb495c,_0x150be7,_0x5d2a37);const _0x5e6126=_0xb495c[_0x51b8('0xe')](_0x150be7,_0x5d2a37)['concat'](_0x1b8e9c[_0x51b8('0xe')](_0x29ed08,_0xbeb8b1));return _0x5e6126[_0x51b8('0x7f')]((_0x1c2cf1,_0x1aab19)=>_0x1c2cf1['side']!=_0x1aab19[_0x51b8('0x5')]?_0x1c2cf1[_0x51b8('0x5')]-_0x1aab19[_0x51b8('0x5')]:_0x1c2cf1['level']!=_0x1aab19['level']?_0x1c2cf1[_0x51b8('0xf4')]-_0x1aab19[_0x51b8('0xf4')]:_0x1c2cf1['distance']!=_0x1aab19[_0x51b8('0xa8')]?_0x1aab19[_0x51b8('0xa8')]-_0x1c2cf1['distance']:!!_0x1c2cf1['isAdded']!=!!_0x1aab19[_0x51b8('0x9d')]?-0x1==_0x1c2cf1['side']||0x0==_0x1c2cf1['side']?_0x1c2cf1[_0x51b8('0x9d')]?-0x1:0x1:_0x1c2cf1[_0x51b8('0x9d')]?0x1:-0x1:_0x1c2cf1[_0x51b8('0xc2')]-_0x1aab19['index']),{'commonTape':_0x5e6126,'iEnd':_0xbeb8b1,'jEnd':_0x5d2a37};function _0x5dcaa9(_0x43c6d2,_0x5bce18,_0x489ed9){let _0x5e9d65=-0x1,_0x23b83d=Number[_0x51b8('0x10b')],_0x2386ee=!0x0;for(let _0x236051=_0x5bce18;_0x236051<_0x489ed9;_0x236051++)if(_0x497762[_0x51b8('0x76')](_0x43c6d2[_0x236051][_0x51b8('0xba')])||(_0x2386ee=!0x1),_0x43c6d2[_0x236051][_0x51b8('0xba')][_0x51b8('0x8f')]<_0x5bce18&&(_0x5e9d65=_0x236051),_0x43c6d2[_0x236051]['item'][_0x51b8('0x109')]>=_0x489ed9){_0x23b83d=_0x236051;break;}_0x2386ee&&(_0x5e9d65=_0x489ed9-0x1);for(let _0x448140=_0x5bce18;_0x448140<_0x489ed9;_0x448140++)_0x43c6d2[_0x448140][_0x51b8('0x5')]=_0x448140<=_0x5e9d65?-0x1:_0x448140<_0x23b83d?0x0:0x1,_0x43c6d2[_0x448140][_0x51b8('0xc2')]=_0x448140;let _0x1f4a98=0x0;for(let _0x3dc61a=_0x5bce18;_0x3dc61a<=_0x5e9d65;_0x3dc61a++)0x0==_0x43c6d2[_0x3dc61a]['distance']?_0x43c6d2[_0x3dc61a]['level']=_0x1f4a98:(_0x1f4a98++,_0x43c6d2[_0x3dc61a][_0x51b8('0xf4')]=_0x1f4a98,_0x1f4a98++);for(let _0x414d72=_0x5bce18;_0x414d72<_0x489ed9;_0x414d72++)0x0==_0x43c6d2[_0x414d72]['side']&&(_0x43c6d2[_0x414d72]['level']=_0x1f4a98);_0x1f4a98=0x0;for(let _0x414d1a=_0x489ed9-0x1;_0x414d1a>=_0x23b83d;_0x414d1a--)0x0==_0x43c6d2[_0x414d1a]['distance']?_0x43c6d2[_0x414d1a][_0x51b8('0xf4')]=_0x1f4a98:(_0x1f4a98--,_0x43c6d2[_0x414d1a]['level']=_0x1f4a98,_0x1f4a98--);}}[_0x51b8('0x15')](_0x2be7be){const _0x2e8d49=new Map(),_0x22671c=this[_0x51b8('0x84')][_0x51b8('0x10c')]['schema'];for(let _0xbee68e=0x1;_0xbee68e<_0x2be7be[_0x51b8('0x4a')];_0xbee68e++){let _0x5eaf56,_0x4d5c86,_0x48496f;const _0x4edd83=_0x2be7be[_0xbee68e],_0x2ff497=_0x2be7be[_0xbee68e-0x1];if(_0x51b8('0x91')==_0x4edd83['type'])continue;if(_0x4edd83[_0x51b8('0x74')]!=_0x2ff497[_0x51b8('0x74')])continue;if(!_0x22671c[_0x51b8('0x99')](_0x2ff497[_0x51b8('0xba')])||_0x22671c[_0x51b8('0x9a')](_0x2ff497['item']))continue;if(!_0x22671c['isBlock'](_0x4edd83[_0x51b8('0xba')])||_0x22671c['isLimit'](_0x4edd83[_0x51b8('0xba')]))continue;if((_0x2be7be[_0xbee68e][_0x51b8('0x9d')]||_0x2be7be[_0xbee68e][_0x51b8('0x8b')])&&_0x2be7be[_0xbee68e-0x1][_0x51b8('0x97')])_0x5eaf56=_0x2be7be[_0xbee68e],_0x4d5c86=_0x2be7be[_0xbee68e-0x1],_0x48496f=_0xbee68e-0x1;else{if(!_0x2be7be[_0xbee68e][_0x51b8('0x97')]||!_0x2be7be[_0xbee68e-0x1][_0x51b8('0x9d')]&&!_0x2be7be[_0xbee68e-0x1]['isAddSuggestion'])continue;_0x5eaf56=_0x2be7be[_0xbee68e-0x1],_0x4d5c86=_0x2be7be[_0xbee68e],_0x48496f=_0xbee68e;}const _0x25d4ce=_0x5eaf56['level']==_0x4d5c86[_0x51b8('0xf4')],_0x291972=Math['abs'](_0x5eaf56[_0x51b8('0xf4')])<Math[_0x51b8('0xed')](_0x4d5c86['level'])&&0x0==_0x4d5c86[_0x51b8('0xa8')];(_0x25d4ce||_0x291972)&&(_0x2e8d49[_0x51b8('0x5e')](_0x4d5c86['id'],_0x5eaf56['id']),_0x2be7be[_0x51b8('0x42')](_0x48496f,0x1),_0xbee68e--,_0x5eaf56['isAdded']=!0x1);}for(let _0x499ecb=0x0;_0x499ecb<_0x2be7be[_0x51b8('0x4a')];_0x499ecb++)_0x2e8d49[_0x51b8('0x52')](_0x2be7be[_0x499ecb][_0x51b8('0x73')])&&(_0x2be7be[_0x499ecb]['pairId']=_0x2e8d49[_0x51b8('0x88')](_0x2be7be[_0x499ecb][_0x51b8('0x73')]));}[_0x51b8('0xae')](_0x37150c){const _0x5d66a9=new Set(_0x37150c[_0x51b8('0x92')](_0x1f1cf6=>_0x1f1cf6['id']));for(let _0x5407c6=0x0;_0x5407c6<_0x37150c[_0x51b8('0x4a')];_0x5407c6++)_0x5d66a9[_0x51b8('0x52')](_0x37150c[_0x5407c6]['pairId'])||0x0==_0x37150c[_0x5407c6][_0x51b8('0xa8')]||(_0x37150c[_0x5407c6][_0x51b8('0x64')]=!0x0);return _0x37150c[_0x51b8('0x46')](_0x4ed158=>!_0x4ed158[_0x51b8('0x64')]);}[_0x51b8('0x11')](_0x5eae4e){const _0x5e9890=new Set();for(let _0x4bd292=0x0;_0x4bd292<_0x5eae4e[_0x51b8('0x4a')];_0x4bd292++){if(_0x5e9890[_0x51b8('0x52')](_0x5eae4e[_0x4bd292]['id'])&&_0x5eae4e[_0x4bd292][_0x51b8('0x97')]&&(_0x5eae4e[_0x4bd292][_0x51b8('0x64')]=!0x0),_0x5eae4e[_0x4bd292]['isIncorrect'])continue;if(0x0==_0x5eae4e[_0x4bd292][_0x51b8('0xa8')])continue;if(_0x51b8('0x5b')!=_0x5eae4e[_0x4bd292][_0x51b8('0x74')])continue;if(null==_0x5eae4e[_0x4bd292][_0x51b8('0x73')])continue;let _0x31482a=_0x4bd292+0x1,_0x105580=0x0;for(;_0x5eae4e[_0x31482a]['id']!=_0x5eae4e[_0x4bd292][_0x51b8('0x73')];)'elementStart'==_0x5eae4e[_0x31482a][_0x51b8('0x74')]?_0x105580++:_0x51b8('0x26')==_0x5eae4e[_0x31482a][_0x51b8('0x74')]&&_0x105580--,_0x31482a++;if(0x0!=_0x105580){if(_0x5eae4e[_0x4bd292][_0x51b8('0x97')])_0x5eae4e[_0x4bd292][_0x51b8('0x64')]=!0x0;else for(;_0x31482a!=_0x4bd292;)_0x5eae4e[_0x31482a][_0x51b8('0x97')]&&0x0!=_0x5eae4e[_0x31482a][_0x51b8('0xa8')]&&(_0x5eae4e[_0x31482a][_0x51b8('0x64')]=!0x0,_0x5e9890['add'](_0x5eae4e[_0x31482a][_0x51b8('0x73')])),_0x31482a--;}}return _0x5eae4e[_0x51b8('0x46')](_0x4674ca=>!_0x4674ca[_0x51b8('0x64')]);}[_0x51b8('0x2b')](_0x522aea){const _0x5084a6=this[_0x51b8('0x84')][_0x51b8('0x10c')]['schema'];for(let _0x3229e4=0x0;_0x3229e4<_0x522aea[_0x51b8('0x4a')];_0x3229e4++){if(!(_0x522aea[_0x3229e4]['isAdded']||_0x522aea[_0x3229e4][_0x51b8('0x8b')]||_0x522aea[_0x3229e4][_0x51b8('0x97')]||_0x522aea[_0x3229e4][_0x51b8('0xb7')]))continue;if(0x0==_0x522aea[_0x3229e4]['distance'])continue;const _0x4687ba=_0x522aea[_0x3229e4]['item'];_0x5084a6['isBlock'](_0x4687ba)||_0x5084a6[_0x51b8('0x9a')](_0x4687ba)||(_0x522aea[_0x3229e4][_0x51b8('0x9d')]&&delete _0x522aea[_0x3229e4][_0x51b8('0x9d')],_0x522aea[_0x3229e4]['isAddSuggestion']&&delete _0x522aea[_0x3229e4][_0x51b8('0x8b')],_0x522aea[_0x3229e4][_0x51b8('0xb7')]&&delete _0x522aea[_0x3229e4][_0x51b8('0xb7')],_0x522aea[_0x3229e4][_0x51b8('0x97')]&&(_0x522aea[_0x3229e4][_0x51b8('0x64')]=!0x0));}return _0x522aea[_0x51b8('0x46')](_0x2d7673=>!_0x2d7673['isIncorrect']);}[_0x51b8('0x81')](_0x4a4031,_0x3e4e73,_0x5019f9){const _0x437bac=new _0xcfbbd7(),_0x5019d9=[],_0x400794=new Map(),_0x25b96b=this[_0x51b8('0x84')][_0x51b8('0x10c')],_0x5053dd=_0x25b96b['schema'],_0x452f86=[_0x437bac],_0x222fbc={},_0x10d4d8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xf42f1d=null;const _0x17e8aa=[0x0];for(let _0x12bcd9=0x0;_0x12bcd9<_0x4a4031['length'];_0x12bcd9++){let _0x4b33a0,_0x16e6dc;if(_0x51b8('0x5b')===_0x4a4031[_0x12bcd9][_0x51b8('0x74')]){_0x4b33a0=_0x25b96b['createPositionFromPath'](_0x437bac,_0x17e8aa);const _0x2af981=new _0x336b95(_0x4a4031[_0x12bcd9]['item'][_0x51b8('0x12d')],_0x4a4031[_0x12bcd9]['item']['getAttributes']());_0x452f86[0x0][_0x51b8('0x7')](_0x2af981),_0x17e8aa[_0x51b8('0x65')](0x0),_0x452f86[_0x51b8('0xc5')](_0x2af981),_0x16e6dc=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0xf42f1d=null;}else{if('elementEnd'===_0x4a4031[_0x12bcd9][_0x51b8('0x74')])_0x452f86[_0x51b8('0x50')](),_0x4b33a0=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0x17e8aa['pop'](),_0x17e8aa[_0x17e8aa[_0x51b8('0x4a')]-0x1]++,_0x16e6dc=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0xf42f1d=null;else{if(_0x4b33a0=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0xf42f1d&&_0x35a4bf(_0xf42f1d,_0x4a4031[_0x12bcd9]['item']))_0xf42f1d[_0x51b8('0x29')]+=_0x4a4031[_0x12bcd9]['item']['data'];else{const _0x542f3e=new _0x1fe542(_0x4a4031[_0x12bcd9][_0x51b8('0xba')][_0x51b8('0x1e')],_0x4a4031[_0x12bcd9][_0x51b8('0xba')][_0x51b8('0xaa')]());_0x452f86[0x0][_0x51b8('0x7')](_0x542f3e),_0xf42f1d=_0x542f3e;}_0x17e8aa[_0x17e8aa[_0x51b8('0x4a')]-0x1]+=_0x4a4031[_0x12bcd9][_0x51b8('0xba')][_0x51b8('0xb6')],_0x16e6dc=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa);}}for(const _0x33f303 of _0x4a4031[_0x12bcd9][_0x51b8('0x70')])_0x400794[_0x51b8('0x5e')](_0x33f303,{'start':_0x4b33a0,'end':null});_0x598397(_0x51b8('0xb7'),_0x12bcd9,_0x4b33a0,_0x16e6dc),_0x598397('isAddSuggestion',_0x12bcd9,_0x4b33a0,_0x16e6dc),_0x598397(_0x51b8('0x97'),_0x12bcd9,_0x4b33a0,_0x16e6dc),_0x598397(_0x51b8('0x9d'),_0x12bcd9,_0x4b33a0,_0x16e6dc);for(const _0x445195 of _0x4a4031[_0x12bcd9][_0x51b8('0xb1')]){_0x400794[_0x51b8('0x88')](_0x445195)[_0x51b8('0x10f')]=_0x16e6dc;}}for(const [_0x187c71,_0x23323c]of _0x400794){const _0x194267=this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x110')](_0x23323c[_0x51b8('0x93')],_0x23323c[_0x51b8('0x10f')]);_0x437bac[_0x51b8('0xb')]['set'](_0x187c71,_0x194267);}return _0x5019d9['sort']((_0x342d7c,_0x14226f)=>{const _0x4f4638=_0x437bac[_0x51b8('0xb')][_0x51b8('0x88')](_0x51b8('0x19')+_0x342d7c['id']),_0x4d78fa=_0x437bac[_0x51b8('0xb')][_0x51b8('0x88')](_0x51b8('0x19')+_0x14226f['id']);return _0x4f4638['start'][_0x51b8('0xa6')](_0x4d78fa[_0x51b8('0x93')])?-0x1:_0x4f4638['start'][_0x51b8('0x6f')](_0x4d78fa['start'])?0x1:_0x4f4638[_0x51b8('0x10f')][_0x51b8('0xa6')](_0x4d78fa[_0x51b8('0x10f')])?-0x1:_0x4f4638['end'][_0x51b8('0x6f')](_0x4d78fa['end'])?0x1:_0x51b8('0x11d')===_0x342d7c['type']?-0x1:0x1;}),{'root':_0x437bac,'changes':_0x5019d9};function _0x598397(_0x41204b,_0x418e2a,_0x2892f2,_0x41de3e){const _0x5967ed=!!_0x4a4031[_0x418e2a][_0x41204b],_0x16d68=_0x5967ed?_0x4a4031[_0x418e2a][_0x41204b][_0x51b8('0x48')]:null,_0x58def8=_0x418e2a===_0x4a4031[_0x51b8('0x4a')]-0x1,_0x3df2ae=_0x10d4d8[_0x41204b][0x0],_0x3623af=_0x5053dd[_0x51b8('0x3f')](_0x4a4031[_0x418e2a]['item']);!_0x222fbc[_0x41204b]&&_0x5967ed?_0x222fbc[_0x41204b]={'start':_0x2892f2,'tapeItem':_0x4a4031[_0x418e2a],'userId':_0x16d68,'type':_0x41204b}:_0x222fbc[_0x41204b]&&!_0x5967ed?(_0x222fbc[_0x41204b]['end']=_0x2892f2,_0x3bd460(_0x222fbc[_0x41204b]),_0x222fbc[_0x41204b]=null):_0x222fbc[_0x41204b]&&_0x5967ed&&_0x222fbc[_0x41204b][_0x51b8('0x48')]!==_0x16d68&&(_0x222fbc[_0x41204b]['end']=_0x2892f2,_0x3df2ae&&_0x3df2ae[_0x51b8('0x48')]===_0x222fbc[_0x41204b][_0x51b8('0x48')]||_0x3bd460(_0x222fbc[_0x41204b]),_0x222fbc[_0x41204b]={'start':_0x2892f2,'tapeItem':_0x4a4031[_0x418e2a],'userId':_0x16d68,'type':_0x41204b}),_0x222fbc[_0x41204b]&&_0x3623af&&('elementStart'!==_0x4a4031[_0x418e2a]['type']||_0x3df2ae&&_0x3df2ae[_0x51b8('0x48')]===_0x16d68||_0x10d4d8[_0x41204b][_0x51b8('0xc5')]({'userId':_0x16d68,'object':_0x4a4031[_0x418e2a][_0x51b8('0xba')],'change':_0x222fbc[_0x41204b]}),_0x51b8('0x26')===_0x4a4031[_0x418e2a][_0x51b8('0x74')]&&_0x3df2ae&&_0x3df2ae[_0x51b8('0x128')]===_0x4a4031[_0x418e2a][_0x51b8('0xba')]&&(_0x10d4d8[_0x41204b]['shift'](),_0x222fbc[_0x41204b]=_0x3df2ae[_0x51b8('0xfe')])),_0x222fbc[_0x41204b]&&_0x58def8&&(_0x222fbc[_0x41204b][_0x51b8('0x10f')]=_0x41de3e,_0x3bd460(_0x222fbc[_0x41204b]),_0x222fbc[_0x41204b]=null);}function _0x3bd460({start:_0x439bc9,end:_0x88c573,tapeItem:_0xa83535,userId:_0x28d4fb,type:_0x19da29}){const _0x5fd9a5=_0xa83535[_0x51b8('0xba')],_0x2eda0d=_0x25b96b[_0x51b8('0x102')][_0x51b8('0x99')](_0x5fd9a5)&&!_0x25b96b[_0x51b8('0x102')]['isLimit'](_0x5fd9a5),_0x460167=_0x439bc9[_0x51b8('0x111')]==_0x88c573[_0x51b8('0x9f')]&&_0x88c573[_0x51b8('0x49')];if(_0x2eda0d&&_0x460167)return;const _0xfe617=_0x25b96b[_0x51b8('0x110')](_0x439bc9,_0x88c573),_0x23738a=_0x3e4e73[_0x51b8('0x88')](_0x28d4fb),_0x9529e3=new _0x148687({'author':_0x23738a,'type':'isAdded'==_0x19da29||_0x51b8('0x8b')==_0x19da29?_0x51b8('0x11d'):_0x51b8('0xde'),'data':{'isSuggestion':_0x51b8('0x8b')==_0x19da29||_0x51b8('0xb7')==_0x19da29},'createdAt':new Date(),'rootName':_0x5019f9});_0x5019d9[_0x51b8('0x65')](_0x9529e3),_0x437bac[_0x51b8('0xb')][_0x51b8('0x5e')](_0x51b8('0x19')+_0x9529e3['id'],_0xfe617);}function _0x35a4bf(_0x40ecd7,_0x43a037){const _0x9ceb39=_0x40ecd7[_0x51b8('0xaa')](),_0x10b9b9=_0x43a037['getAttributes']();for(const _0x4b8f9e of _0x9ceb39){if(_0x4b8f9e[0x1]!==_0x43a037[_0x51b8('0xee')](_0x4b8f9e[0x0]))return!0x1;_0x10b9b9[_0x51b8('0x4b')]();}return _0x10b9b9['next']()['done'];}}['_setConversion'](){this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')](_0x51b8('0xa1'))['dataToMarker']({'view':'revision'}),this['editor'][_0x51b8('0x83')][_0x51b8('0x89')]('editingDowncast')[_0x51b8('0xc8')]({'model':_0x51b8('0x104'),'view':_0x34e88e=>{const _0xcd4afe=_0x34e88e[_0x51b8('0xbe')][_0x51b8('0x6b')](':')[0x1],_0x190060=this[_0x51b8('0xa0')](_0xcd4afe);if(!_0x190060)return null;const _0x15a4a6='add'==_0x190060[_0x51b8('0x74')]?_0x51b8('0x103'):_0x51b8('0x36'),_0x17c941=[_0x51b8('0x44'),'ck-suggestion-marker-'+_0x15a4a6];return _0x190060['data'][_0x51b8('0x108')]&&_0x17c941[_0x51b8('0x65')](_0x51b8('0x59')+_0x15a4a6+_0x51b8('0x2c')),this[_0x51b8('0x82')]==_0x190060&&_0x17c941['push']('ck-suggestion-marker--active'),{'classes':_0x17c941,'attributes':{'data-change-id':_0xcd4afe}};}}),this['editor'][_0x51b8('0x83')][_0x51b8('0x89')](_0x51b8('0xa1'))[_0x51b8('0x11d')](_0xfcf978=>{_0xfcf978['on'](_0x51b8('0xb8'),(_0x2327e3,_0x59ee9f,_0x47a002)=>{const _0x2fc2a0=_0x59ee9f[_0x51b8('0x28')][_0x51b8('0x12c')](0x0);if(!_0x2fc2a0||!_0x2fc2a0['is'](_0x51b8('0x14'),_0x51b8('0x90')))return;if(!_0x47a002[_0x51b8('0x53')][_0x51b8('0xb3')](_0x2fc2a0,{'attributes':[_0x51b8('0x24'),_0x51b8('0x30')]}))return;const _0x2cd951=_0x59ee9f[_0x51b8('0x8d')]['start']['nodeAfter'];_0x47a002[_0x51b8('0x3e')][_0x51b8('0xe2')](_0x51b8('0x24'),_0x2fc2a0[_0x51b8('0xee')](_0x51b8('0x24')),_0x2cd951),_0x47a002[_0x51b8('0x3e')][_0x51b8('0xe2')](_0x51b8('0x30'),_0x2fc2a0[_0x51b8('0xee')]('vid_end'),_0x2cd951);},{'priority':_0x51b8('0xb0')});}),this['editor'][_0x51b8('0x83')]['for'](_0x51b8('0xa1'))[_0x51b8('0x11d')](_0xba22c0=>{_0xba22c0['on'](_0x51b8('0x14'),(_0x8dc5fe,_0x10ff0c,_0xe0d633)=>{if(!_0xe0d633[_0x51b8('0x53')][_0x51b8('0xb3')](_0x10ff0c[_0x51b8('0x28')],{'attributes':['vid_start','vid_end']}))return;if(_0x10ff0c[_0x51b8('0x8d')][_0x51b8('0x105')])return;const _0x396a9f=_0x10ff0c[_0x51b8('0x8d')][_0x51b8('0x93')][_0x51b8('0x111')];_0x396a9f[_0x51b8('0xe3')]('vid_start')||_0x396a9f[_0x51b8('0xe3')](_0x51b8('0x95'))||(_0xe0d633[_0x51b8('0x3e')][_0x51b8('0xe2')](_0x51b8('0x24'),_0x10ff0c['viewItem'][_0x51b8('0xee')](_0x51b8('0x24')),_0x396a9f),_0xe0d633[_0x51b8('0x3e')]['setAttribute'](_0x51b8('0x30'),_0x10ff0c['viewItem'][_0x51b8('0xee')](_0x51b8('0x30')),_0x396a9f));},{'priority':_0x51b8('0xb0')});}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('upcast')[_0x51b8('0x106')]({'view':{'name':_0x51b8('0x1c'),'attributes':{'vid':!0x0}},'model':{'key':_0x51b8('0x95'),'value':_0x239d74=>_0x239d74[_0x51b8('0xee')](_0x51b8('0x95'))}}),this[_0x51b8('0x84')][_0x51b8('0x10c')]['schema']['on'](_0x51b8('0xd6'),(_0x77cba5,[,_0x214563])=>{['vid_start','vid_end',_0x51b8('0x95')][_0x51b8('0x79')](_0x214563)&&(_0x77cba5[_0x51b8('0xac')]=!0x0,_0x77cba5[_0x51b8('0x8e')]());},{'priority':'highest'}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('dataDowncast')[_0x51b8('0x11d')](_0x188ec1=>{_0x188ec1['on'](_0x51b8('0x87'),(_0x57bca3,_0x39822d,_0x1b18ab)=>{if('\x20'!=_0x39822d['item'][_0x51b8('0x1e')]||_0x39822d[_0x51b8('0xba')][_0x51b8('0x9f')][_0x51b8('0x10')]>0x1)return;if(!_0x1b18ab['consumable'][_0x51b8('0xb3')](_0x39822d['item'],_0x57bca3[_0x51b8('0x12d')]))return;const _0x545d4c=_0x1b18ab[_0x51b8('0x3e')],_0x5bfcb3=_0x1b18ab[_0x51b8('0x3b')][_0x51b8('0x85')](_0x39822d[_0x51b8('0x123')]);_0x545d4c[_0x51b8('0xd5')](_0x5bfcb3,_0x545d4c[_0x51b8('0x38')](_0x51b8('0x1c')));});}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('dataDowncast')[_0x51b8('0x33')]({'model':_0x51b8('0x104')}),this['editor']['editing'][_0x51b8('0x2d')]['on'](_0x51b8('0x3c'),function(_0x304e26){const _0x4e52dc=_0x304e26[_0x51b8('0xf7')][_0x51b8('0x88')](_0x51b8('0xa4'));return(_0xec81df,_0x41acaa,_0x10b3fe)=>{const _0x1d5725=_0x41acaa[_0x51b8('0xbe')][_0x51b8('0x6b')](':')[0x1],_0x1295da=_0x4e52dc[_0x51b8('0xa0')](_0x1d5725);if(!_0x1295da)return null;const _0x1fc003=_0x51b8('0x11d')==_0x1295da[_0x51b8('0x74')]?_0x51b8('0x6b'):'merge';if(!_0x10b3fe[_0x51b8('0x53')][_0x51b8('0x4d')](_0x41acaa[_0x51b8('0x68')],_0xec81df[_0x51b8('0x12d')]))return;const _0x2ee641=_0x41acaa['markerRange'][_0x51b8('0xcc')](),_0x9f2538=_0x41acaa[_0x51b8('0x68')][_0x51b8('0x93')],_0x5092c0=_0x304e26[_0x51b8('0x10c')]['schema'];let _0x22d1d8=null,_0x11f2d4=null,_0x3a7521=!0x1,_0x298ee3=!0x1;for(const _0x3b72be of _0x2ee641){const _0x6e1fb1=_0x3b72be[_0x51b8('0xba')];_0x3a7521=_0x3a7521||_0x5092c0[_0x51b8('0xf6')](_0x6e1fb1);const _0x547a8c=_0x10b3fe[_0x51b8('0x3b')][_0x51b8('0x1b')](_0x6e1fb1);if(_0x547a8c&&_0x547a8c[_0x51b8('0x129')](_0x51b8('0xd7')))return;_0x51b8('0x26')==_0x3b72be[_0x51b8('0x74')]&&(_0x5092c0['isBlock'](_0x6e1fb1)&&!_0x5092c0['isLimit'](_0x6e1fb1)&&(_0x6e1fb1[_0x51b8('0x22')]||_0x9f2538[_0x51b8('0x4c')]?_0x22d1d8&&_0x22d1d8[_0x51b8('0x9f')]==_0x6e1fb1||(_0x22d1d8=_0x6e1fb1,_0x531534(_0x3b72be['previousPosition']),_0x298ee3=!0x0):_0x11f2d4=_0x11f2d4||_0x3b72be[_0x51b8('0x25')]));}function _0x531534(_0x486432){const _0x3baf20=_0x10b3fe[_0x51b8('0x3e')][_0x51b8('0xd')](_0x51b8('0x1c'),{'class':'ck-suggestion-marker-'+_0x1fc003}),_0x3e069c=_0x10b3fe[_0x51b8('0x3b')][_0x51b8('0x7c')](_0x486432);_0x1295da[_0x51b8('0x1e')][_0x51b8('0x108')]&&_0x10b3fe[_0x51b8('0x3e')]['addClass'](_0x51b8('0x59')+_0x1fc003+_0x51b8('0x2c'),_0x3baf20),_0x4e52dc['activeChange']==_0x1295da&&_0x10b3fe['writer'][_0x51b8('0xf')](_0x51b8('0x4e'),_0x3baf20),_0x10b3fe[_0x51b8('0x3e')][_0x51b8('0x116')](_0x3e069c,_0x3baf20),_0x10b3fe[_0x51b8('0x3b')][_0x51b8('0x62')](_0x3baf20,_0x41acaa[_0x51b8('0xbe')]);}_0x3a7521||_0x298ee3||!_0x11f2d4||_0x531534(_0x11f2d4);};}(this[_0x51b8('0x84')]),{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x2d')]['on'](_0x51b8('0xd9'),(_0x49f627,_0x478a58,_0x574a0c)=>{const _0x1cdcd1=_0x574a0c[_0x51b8('0x3b')][_0x51b8('0x11f')](_0x478a58['markerName']);if(_0x1cdcd1)for(const _0x4ac306 of _0x1cdcd1)(_0x4ac306[_0x51b8('0x8')]('ck-suggestion-marker-split')||_0x4ac306[_0x51b8('0x8')]('ck-suggestion-marker-merge'))&&(_0x574a0c[_0x51b8('0x3b')][_0x51b8('0xfd')](_0x4ac306,_0x478a58['markerName']),_0x574a0c['writer'][_0x51b8('0xde')](_0x4ac306));},{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x2d')]['on'](_0x51b8('0x3c'),(_0x420e3,_0x531daf,_0x38d075)=>{const _0x1d76bd=_0x531daf[_0x51b8('0xbe')]['split'](':')[0x1],_0x37766e=this[_0x51b8('0xa0')](_0x1d76bd);if(!_0x37766e)return null;const _0x1c56db=_0x51b8('0x11d')==_0x37766e[_0x51b8('0x74')]?'split':_0x51b8('0x37');if(_0x38d075[_0x51b8('0x53')][_0x51b8('0x4d')](_0x531daf[_0x51b8('0x68')],_0x420e3[_0x51b8('0x12d')]))for(const _0x4dba86 of _0x531daf['markerRange']['getItems']()){if(!_0x4dba86['is'](_0x51b8('0x14'),_0x51b8('0x9')))continue;const _0x1ab9e8=_0x38d075[_0x51b8('0x3e')][_0x51b8('0xd')](_0x51b8('0x1c'),{'class':_0x51b8('0x59')+_0x1c56db}),_0x42208b=_0x38d075['mapper'][_0x51b8('0x7c')](this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0xe9')](_0x4dba86));_0x37766e[_0x51b8('0x1e')]['isSuggestion']&&_0x38d075[_0x51b8('0x3e')]['addClass'](_0x51b8('0x59')+_0x1c56db+_0x51b8('0x2c'),_0x1ab9e8),this['activeChange']==_0x37766e&&_0x38d075[_0x51b8('0x3e')]['addClass'](_0x51b8('0x4e'),_0x1ab9e8),_0x38d075['writer'][_0x51b8('0x116')](_0x42208b,_0x1ab9e8),_0x38d075[_0x51b8('0x3b')]['bindElementToMarker'](_0x1ab9e8,_0x531daf[_0x51b8('0xbe')]);}},{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x80')]['on'](_0x51b8('0xfe'),()=>{this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0xfe')](_0x1c5b8b=>{for(const _0x37f4f4 of this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x80')][_0x51b8('0x69')]()){const _0x6548ab=this['editor'][_0x51b8('0x10c')][_0x51b8('0x80')]['getRoot'](_0x37f4f4),_0x575491=this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x80')]['getRoot'](_0x37f4f4);if(_0x575491){const _0x304413=_0x6548ab['getAttribute'](_0x51b8('0xb9'));if(_0x1c5b8b[_0x51b8('0x57')](_0x51b8('0x3d'),_0x575491),_0x1c5b8b[_0x51b8('0x67')](_0x51b8('0x117'),_0x575491),_0x1c5b8b['removeClass'](_0x51b8('0x16'),_0x575491),_0x1c5b8b[_0x51b8('0x67')](_0x51b8('0x66'),_0x575491),_0x304413){const _0x22d2c4=this['_getChangeFromId'](_0x304413);if(!_0x22d2c4)return null;_0x1c5b8b[_0x51b8('0xe2')](_0x51b8('0x3d'),_0x304413,_0x575491),_0x1c5b8b['addClass'](_0x51b8('0x5d')+_0x22d2c4[_0x51b8('0x74')],_0x575491),this[_0x51b8('0x82')]==_0x22d2c4&&_0x1c5b8b['addClass']('ck-revision-history-root--active',_0x575491);}}}});}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('upcast')[_0x51b8('0x2a')]({'view':_0x51b8('0xe7'),'model':_0x581199=>_0x51b8('0x124')+_0x581199,'converterPriority':'highest'}),this[_0x51b8('0x84')]['conversion'][_0x51b8('0x89')]('upcast')[_0x51b8('0x2a')]({'view':_0x51b8('0xf2'),'model':_0x31aaa2=>_0x51b8('0xb4')+_0x31aaa2,'converterPriority':'highest'}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('dataDowncast')[_0x51b8('0x33')]({'model':'revision-suggestion','view':_0x5d0abc=>({'name':_0x51b8('0x3a')+_0x5d0abc,'group':_0x51b8('0xc7')}),'converterPriority':_0x51b8('0x23')}),this['editor'][_0x51b8('0x83')][_0x51b8('0x89')]('editingDowncast')[_0x51b8('0xc8')]({'model':_0x51b8('0xc7'),'view':_0x4903d5=>{const _0x4d9e36=_0x4903d5['markerName'][_0x51b8('0x6b')](':')[0x1];return'insertion'!=_0x4d9e36&&_0x51b8('0x36')!=_0x4d9e36?null:{'classes':['ck-suggestion-preview-marker',_0x51b8('0x112')+_0x4d9e36]};}}),this[_0x51b8('0x84')][_0x51b8('0x55')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x51b8('0x37')),{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x55')]['downcastDispatcher']['on'](_0x51b8('0x126'),et(this[_0x51b8('0x84')],_0x51b8('0x6b')),{'priority':'high'}),this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x2d')]['on'](_0x51b8('0x6'),(_0x1bd608,_0x17c9ee,_0x4ebce4)=>{const _0x57b182=_0x4ebce4[_0x51b8('0x3b')]['markerNameToElements'](_0x17c9ee[_0x51b8('0xbe')]);if(_0x57b182)for(const _0x33effa of _0x57b182)_0x33effa['is'](_0x51b8('0x34'))&&(_0x4ebce4[_0x51b8('0x3b')][_0x51b8('0xfd')](_0x33effa,_0x17c9ee[_0x51b8('0xbe')]),_0x4ebce4['writer']['remove'](_0x33effa));},{'priority':'high'});}[_0x51b8('0xa0')](_0x3ff8da){return this['_changeIdToChange'][_0x51b8('0x88')](_0x3ff8da);}[_0x51b8('0xec')](_0x15c519){return this[_0x51b8('0xd8')]&&this[_0x51b8('0xd8')]['destroy'](),this[_0x51b8('0xd8')]=new _0x41d175(this[_0x51b8('0x84')][_0x51b8('0x6e')],_0x15c519),this[_0x51b8('0xd8')];}[_0x51b8('0x7a')](){this[_0x51b8('0x84')]['model'][_0x51b8('0x80')][_0x51b8('0x121')][_0x51b8('0x4')](_0x51b8('0x104')),this['on'](_0x51b8('0xa5'),(_0x231b7b,_0x147d93,_0x20bdbf,_0x420582)=>{_0x420582&&this[_0x51b8('0x10d')]['remove'](_0x420582),_0x20bdbf&&(this[_0x51b8('0x10d')][_0x51b8('0x11d')]({'view':_0x20bdbf,'stackId':_0x51b8('0xe5'),'position':{'target':()=>{const _0x135785=this['editor'][_0x51b8('0x55')],_0x327792=this['_getChangeFromId'](_0x20bdbf[_0x51b8('0x54')]);let _0x31513a;if(_0x327792[_0x51b8('0x1e')][_0x51b8('0x113')]){const _0x103f4a=_0x135785[_0x51b8('0x58')][_0x51b8('0x9b')](_0x327792['rootName']);_0x31513a=Array[_0x51b8('0x10a')](_0x103f4a['getClientRects']());}else{const _0x8288b3=this['editor'][_0x51b8('0x10c')][_0x51b8('0xb')][_0x51b8('0x88')]('revision:'+_0x20bdbf[_0x51b8('0x54')]);_0x31513a=Array[_0x51b8('0x10a')](_0x135785[_0x51b8('0x3b')][_0x51b8('0x11f')](_0x8288b3[_0x51b8('0x12d')]))[_0x51b8('0x92')](_0x1f53dc=>_0x135785[_0x51b8('0x58')]['domConverter'][_0x51b8('0x2f')](_0x1f53dc))[_0x51b8('0x92')](_0x104156=>Array[_0x51b8('0x10a')](_0x104156[_0x51b8('0x11a')]()))[_0x51b8('0x41')]();}if(!this['_activeViewTarget'])return _0x31513a[0x0];return _0x31513a[_0x51b8('0x1')](_0x38b61e=>_0x38b61e[_0x51b8('0x11e')]-0x3<=this[_0x51b8('0x72')]['y']&&_0x38b61e[_0x51b8('0x114')]+0x3>=this[_0x51b8('0x72')]['y']&&_0x38b61e[_0x51b8('0xca')]-0x3<=this['_activeViewTarget']['x']&&_0x38b61e[_0x51b8('0x0')]+0x3>=this[_0x51b8('0x72')]['x'])||_0x31513a[0x0];}}}),this[_0x51b8('0x10d')][_0x51b8('0xf3')](_0x51b8('0xe5')));}),this['on'](_0x51b8('0x35'),(_0x4f21a7,_0x145b4d,_0x29b666,_0x1f2a71)=>{this[_0x51b8('0xf0')]=_0x29b666?this[_0x51b8('0xec')](_0x29b666):null,this['editor'][_0x51b8('0x10c')][_0x51b8('0xfe')](()=>{const _0x3e3490=this[_0x51b8('0x84')][_0x51b8('0x55')];_0x1f2a71&&(_0x1f2a71['data'][_0x51b8('0x113')]?_0x3e3490[_0x51b8('0x58')][_0x51b8('0xfe')](_0x1f5dc4=>{_0x1f5dc4[_0x51b8('0x67')](_0x51b8('0x66'),_0x3e3490[_0x51b8('0x58')][_0x51b8('0x80')][_0x51b8('0xf1')](_0x1f2a71[_0x51b8('0x119')]));}):_0x3e3490[_0x51b8('0xef')]('revision:'+_0x1f2a71['id'])),_0x29b666&&(_0x29b666[_0x51b8('0x1e')]['isOnRoot']?_0x3e3490[_0x51b8('0x58')]['change'](_0x38058f=>{_0x38058f[_0x51b8('0xf')](_0x51b8('0x66'),_0x3e3490[_0x51b8('0x58')][_0x51b8('0x80')][_0x51b8('0xf1')](_0x29b666['rootName']));}):_0x3e3490['reconvertMarker'](_0x51b8('0x19')+_0x29b666['id']));});}),this['listenTo'](this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x80')],_0x51b8('0x32'),(_0x53498c,_0x3c8be1)=>{if(this[_0x51b8('0x82')])return;const _0x47b765=this[_0x51b8('0xdf')](_0x3c8be1[_0x51b8('0x7d')]),_0xf470fb=this[_0x51b8('0x86')][_0x51b8('0x88')](_0x47b765);_0xf470fb?(this[_0x51b8('0x72')]={'x':_0x3c8be1[_0x51b8('0xbb')]['x'],'y':_0x3c8be1['domEvent']['y']},this[_0x51b8('0xf0')]=this[_0x51b8('0xec')](_0xf470fb)):(this[_0x51b8('0x72')]=null,this[_0x51b8('0xf0')]=null);}),this[_0x51b8('0x12b')](this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x80')],_0x51b8('0x122'),(_0x3a29b2,_0x59fed6)=>{const _0x5f0b6c=this['_findChangeIdFromDomTarget'](_0x59fed6[_0x51b8('0x7d')]),_0x3c294f=this['_changeIdToChange'][_0x51b8('0x88')](_0x5f0b6c);_0x3c294f?(this[_0x51b8('0x72')]={'x':_0x59fed6['domEvent']['x'],'y':_0x59fed6[_0x51b8('0xbb')]['y']},_0x3c294f===this['activeChange']?this['_balloon'][_0x51b8('0x8c')]():this[_0x51b8('0x82')]=_0x3c294f):(this['_activeViewTarget']=null,this[_0x51b8('0x82')]=null);});}[_0x51b8('0xdf')](_0x314af9){do{const _0x314f74=_0x314af9[_0x51b8('0xee')]('data-change-id');if(_0x314f74)return _0x314f74;_0x314af9=_0x314af9[_0x51b8('0x9f')];}while(_0x314af9);return null;}[_0x51b8('0x56')](){this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0xfe')](_0x536879=>{for(const _0x4c8ecc of this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0xb')])_0x536879['removeMarker'](_0x4c8ecc);});}}function et(_0x2e09bc,_0x58e6d9){return(_0x1ec1b2,_0x2a0679,_0x5b45ac)=>{if(!_0x5b45ac[_0x51b8('0x53')][_0x51b8('0x4d')](_0x2a0679[_0x51b8('0x68')],_0x1ec1b2[_0x51b8('0x12d')]))return;const _0x218e6a=_0x2a0679['markerRange'][_0x51b8('0xcc')](),_0x3ee8e9=_0x2a0679['markerRange'][_0x51b8('0x93')],_0x2e862d=_0x2e09bc[_0x51b8('0x10c')][_0x51b8('0x102')];let _0x1293e5=null,_0x51b84a=null,_0x4f5726=!0x1,_0x440779=!0x1;for(const _0x278efd of _0x218e6a){const _0x2d7cc1=_0x278efd[_0x51b8('0xba')];_0x4f5726=_0x4f5726||_0x2e862d[_0x51b8('0xf6')](_0x2d7cc1);const _0x43da7d=_0x5b45ac[_0x51b8('0x3b')]['toViewElement'](_0x2d7cc1);if(_0x43da7d&&_0x43da7d[_0x51b8('0x129')](_0x51b8('0xd7')))return;_0x51b8('0x26')==_0x278efd[_0x51b8('0x74')]&&(_0x2e862d['isBlock'](_0x2d7cc1)&&!_0x2e862d[_0x51b8('0x9a')](_0x2d7cc1)&&(_0x2d7cc1[_0x51b8('0x22')]||_0x3ee8e9[_0x51b8('0x4c')]?_0x1293e5&&_0x1293e5[_0x51b8('0x9f')]==_0x2d7cc1||(_0x1293e5=_0x2d7cc1,_0x71e052(_0x278efd[_0x51b8('0x25')]),_0x440779=!0x0):_0x51b84a=_0x51b84a||_0x278efd['previousPosition']));}function _0x71e052(_0x227b15){const _0x3849ca=_0x5b45ac['mapper'][_0x51b8('0x7c')](_0x227b15),_0x349823=_0x5b45ac[_0x51b8('0x3e')][_0x51b8('0xd')](_0x51b8('0x1c'),{'class':_0x51b8('0x112')+_0x58e6d9});_0x5b45ac[_0x51b8('0x3e')][_0x51b8('0x116')](_0x3849ca,_0x349823),_0x5b45ac[_0x51b8('0x3b')][_0x51b8('0x62')](_0x349823,_0x2a0679[_0x51b8('0xbe')]);}_0x4f5726||_0x440779||!_0x51b84a||_0x71e052(_0x51b84a);};}export class RestoreRevisionCommand extends _0x3ab592{constructor(_0x11e9fa){super(_0x11e9fa);const _0x55c435=_0x11e9fa[_0x51b8('0xf7')]['get'](d);this[_0x51b8('0xc9')]=!0x1,this['listenTo'](_0x55c435,_0x51b8('0x63'),()=>this[_0x51b8('0x51')]()),this['listenTo'](_0x55c435,_0x51b8('0xd1'),()=>this[_0x51b8('0x51')]());}[_0x51b8('0x21')](){const _0x387934=this[_0x51b8('0x84')],_0x174c4f=_0x387934[_0x51b8('0xf7')][_0x51b8('0x88')](d),_0x15cfff=_0x174c4f[_0x51b8('0xa')]?_0x174c4f[_0x51b8('0xc')]['newRevisionId']:null;_0x387934[_0x51b8('0x8a')][_0x51b8('0x88')]('revisionHistory')[_0x51b8('0x5f')](_0x15cfff);}['refresh'](){const {isReady:_0x763605,isEnabled:_0x1a5234}=this[_0x51b8('0x84')][_0x51b8('0xf7')][_0x51b8('0x88')](d);this[_0x51b8('0x7e')]=_0x763605&&_0x1a5234;}}export class ShowChangeCommand extends _0x3ab592{constructor(_0xebe6e8,{direction:_0x151dd4}){super(_0xebe6e8);const _0x2d9073=_0xebe6e8[_0x51b8('0xf7')][_0x51b8('0x88')](d);this[_0x51b8('0xc9')]=!0x1,this['_step']=_0x51b8('0xe0')===_0x151dd4?0x1:-0x1,this[_0x51b8('0x12b')](_0x2d9073,_0x51b8('0x63'),()=>this[_0x51b8('0x51')]()),this[_0x51b8('0x12b')](_0x2d9073,_0x51b8('0xd1'),()=>this[_0x51b8('0x51')]()),this[_0x51b8('0x12b')](_0x2d9073,_0x51b8('0x35'),()=>this[_0x51b8('0x51')]());}[_0x51b8('0x21')](){const _0x53827c=this[_0x51b8('0x84')],_0x39cf41=_0x53827c['plugins'][_0x51b8('0x88')](d),{isNavigationMode:_0x5e6fa9,currentChangeNumber:_0x9cfd69}=_0x39cf41;let _0x4b5227;if(_0x39cf41['activeChange']=_0x5e6fa9?_0x39cf41['diff'][_0x51b8('0xf8')][_0x51b8('0x88')](_0x9cfd69+this[_0x51b8('0xab')]):_0x39cf41[_0x51b8('0xc')]['changes']['first'],_0x39cf41['activeChange'][_0x51b8('0x1e')][_0x51b8('0x113')])_0x4b5227=_0x53827c[_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x9b')](_0x39cf41['activeChange'][_0x51b8('0x119')]);else{const _0x2ff523=_0x53827c[_0x51b8('0x10c')]['markers'][_0x51b8('0x88')](_0x51b8('0x19')+_0x39cf41[_0x51b8('0x82')]['id']);_0x4b5227=_0x306b6c(_0x53827c[_0x51b8('0x55')],_0x2ff523);}_0x571fb1({'target':_0x4b5227,'viewportOffset':0x28});}[_0x51b8('0x51')](){const {isNavigationMode:_0x2d8d07,currentChangeNumber:_0x3c8323,numberOfChanges:_0x30c5af,isReady:_0x14d193,isEnabled:_0xeed385}=this[_0x51b8('0x84')][_0x51b8('0xf7')][_0x51b8('0x88')](d);this[_0x51b8('0x7e')]=!!(_0xeed385&&_0x14d193&&_0x30c5af)&&(!_0x2d8d07||(0x1===this[_0x51b8('0xab')]?_0x3c8323<_0x30c5af-0x1:_0x3c8323>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x4655=['panelPosition','name','listenTo','isEnabled','action','class','locale','function','isOpen','_action','button','items','find','Restore\x20this\x20revision','extendTemplate','Show\x20more\x20items','source','stopPropagation','buttonView','add','Compare\x20against\x20selected','isReady','isActionsDropdownOpen','isVisible','execute','listView','first','bind'];(function(_0x186082,_0x4655fd){const _0x36b764=function(_0x49d66c){while(--_0x49d66c){_0x186082['push'](_0x186082['shift']());}};_0x36b764(++_0x4655fd);}(_0x4655,0xca));const _0x36b7=function(_0x186082,_0x4655fd){_0x186082=_0x186082-0x0;let _0x36b764=_0x4655[_0x186082];return _0x36b764;};import{Collection as _0x444582}from'ckeditor5/src/utils';import{icons as _0xb6a0e3}from'ckeditor5/src/core';import{Model as _0x21d737,addListToDropdown as _0x5910a1,createDropdown as _0x3a32bb}from'ckeditor5/src/ui';import{getTranslation as _0x2469d0}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x42ca03,_0x4ed6b6){const _0x29b954=_0x42ca03['bindTemplate'],_0xc4c411=_0x42ca03[_0x36b7('0x0')],_0x3282d0=_0x3a32bb(_0xc4c411);_0x3282d0[_0x36b7('0x16')]='sw';const _0x1e804b=function(_0x36298d,_0x20ff0c){const _0x2fb106=function(_0x2cd709,_0x518328){const _0x55a447=_0x2cd709[_0x36b7('0x0')],_0x2d7a61={'Compare\x20against\x20selected':_0x2469d0(_0x55a447,_0x36b7('0xe')),'Name\x20this\x20revision':_0x2469d0(_0x55a447,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x2469d0(_0x55a447,_0x36b7('0x7'))};return _0x518328['map'](_0x4c0fa9=>{const _0x414b5c=_0x2d7a61[_0x4c0fa9['name']];return _0x414b5c&&_0x414b5c!==_0x4c0fa9[_0x36b7('0x17')]&&(_0x4c0fa9[_0x36b7('0x17')]=_0x414b5c),_0x4c0fa9;});}(_0x36298d,_0x20ff0c),_0xba2892=new _0x444582();for(const _0x473799 of _0x2fb106){const _0x36b36f={'type':_0x36b7('0x4'),'model':new _0x21d737({'label':_0x473799['name'],'class':_0x473799[_0x36b7('0x1b')],'withText':!0x0,'_action':_0x473799[_0x36b7('0x1a')]})};_0x36b36f['model'][_0x36b7('0x15')](_0x36b7('0x19'))['to'](_0x36298d,_0x36b7('0x10'),_0x1e6ac5=>'function'!=typeof _0x473799[_0x36b7('0x19')]||(!_0x1e6ac5||_0x473799[_0x36b7('0x19')](_0x36298d))),_0xba2892[_0x36b7('0xd')](_0x36b36f);}return _0xba2892;}(_0x42ca03,_0x4ed6b6);return _0x42ca03[_0x36b7('0x15')](_0x36b7('0x10'))['to'](_0x3282d0,_0x36b7('0x2')),_0x3282d0[_0x36b7('0xc')]['set']({'label':_0x2469d0(_0xc4c411,_0x36b7('0x9')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0xb6a0e3['threeVerticalDots']}),_0x3282d0[_0x36b7('0x8')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x29b954['if'](_0x36b7('0x10'),'ck-on')]},'on':{'click':_0x29b954['to'](_0x3f9d15=>_0x3f9d15[_0x36b7('0xb')]())}}),_0x3282d0['on'](_0x36b7('0x12'),_0x46e0ef=>{_0x42ca03[_0x36b7('0xf')]&&_0x36b7('0x1')==typeof _0x46e0ef[_0x36b7('0xa')][_0x36b7('0x3')]&&_0x46e0ef['source'][_0x36b7('0x3')](_0x42ca03);}),_0x5910a1(_0x3282d0,_0x1e804b),_0x3282d0[_0x36b7('0x18')](_0x42ca03,'change:isActionsDropdownOpen',(_0x55beb5,_0xfc05c0,_0x1d73ec)=>{if(_0x1d73ec)for(const _0x3ff057 of _0x3282d0[_0x36b7('0x13')][_0x36b7('0x5')]){const _0x1ccee0=_0x3ff057['children'][_0x36b7('0x14')],_0x278608=_0x4ed6b6[_0x36b7('0x6')](_0x37fade=>_0x37fade['action']===_0x1ccee0[_0x36b7('0x3')])[_0x36b7('0x11')];_0x3ff057[_0x36b7('0x11')]=void 0x0===_0x278608||_0x278608(_0x42ca03);}}),_0x3282d0;}
23
+ const _0x1e64=['button','function','isEnabled','locale','bindTemplate','execute','Show\x20more\x20items','action','ck-on','_action','items','set','isActionsDropdownOpen','find','add','isOpen','listView','Restore\x20this\x20revision','source','Compare\x20against\x20selected','panelPosition','name','threeVerticalDots','stopPropagation','isReady','extendTemplate','isVisible','change:isActionsDropdownOpen'];(function(_0xc2034,_0x1e643d){const _0x1cc994=function(_0x136d74){while(--_0x136d74){_0xc2034['push'](_0xc2034['shift']());}};_0x1cc994(++_0x1e643d);}(_0x1e64,0x67));const _0x1cc9=function(_0xc2034,_0x1e643d){_0xc2034=_0xc2034-0x0;let _0x1cc994=_0x1e64[_0xc2034];return _0x1cc994;};import{Collection as _0x543549}from'ckeditor5/src/utils';import{icons as _0x27d23f}from'ckeditor5/src/core';import{Model as _0xfbeaa9,addListToDropdown as _0x375104,createDropdown as _0x3c2858}from'ckeditor5/src/ui';import{getTranslation as _0x284b07}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x9b4b98,_0x33d191){const _0x5b91f5=_0x9b4b98[_0x1cc9('0xd')],_0x4f70bd=_0x9b4b98[_0x1cc9('0xc')],_0x43184a=_0x3c2858(_0x4f70bd);_0x43184a[_0x1cc9('0x1')]='sw';const _0xde5641=function(_0x5e0a06,_0x201be3){const _0x429b03=function(_0x2fb4fd,_0x53a6e8){const _0x81761c=_0x2fb4fd[_0x1cc9('0xc')],_0x377a19={'Compare\x20against\x20selected':_0x284b07(_0x81761c,_0x1cc9('0x0')),'Name\x20this\x20revision':_0x284b07(_0x81761c,'Name\x20this\x20revision'),'Restore\x20this\x20revision':_0x284b07(_0x81761c,_0x1cc9('0x1a'))};return _0x53a6e8['map'](_0x4b3347=>{const _0x138797=_0x377a19[_0x4b3347[_0x1cc9('0x2')]];return _0x138797&&_0x138797!==_0x4b3347[_0x1cc9('0x2')]&&(_0x4b3347[_0x1cc9('0x2')]=_0x138797),_0x4b3347;});}(_0x5e0a06,_0x201be3),_0x356646=new _0x543549();for(const _0x1c9ac0 of _0x429b03){const _0x141ac9={'type':_0x1cc9('0x9'),'model':new _0xfbeaa9({'label':_0x1c9ac0['name'],'class':_0x1c9ac0['class'],'withText':!0x0,'_action':_0x1c9ac0[_0x1cc9('0x10')]})};_0x141ac9['model']['bind']('isEnabled')['to'](_0x5e0a06,_0x1cc9('0x15'),_0x5f891d=>_0x1cc9('0xa')!=typeof _0x1c9ac0[_0x1cc9('0xb')]||(!_0x5f891d||_0x1c9ac0[_0x1cc9('0xb')](_0x5e0a06))),_0x356646[_0x1cc9('0x17')](_0x141ac9);}return _0x356646;}(_0x9b4b98,_0x33d191);return _0x9b4b98['bind'](_0x1cc9('0x15'))['to'](_0x43184a,_0x1cc9('0x18')),_0x43184a['buttonView'][_0x1cc9('0x14')]({'label':_0x284b07(_0x4f70bd,_0x1cc9('0xf')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x27d23f[_0x1cc9('0x3')]}),_0x43184a[_0x1cc9('0x6')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5b91f5['if']('isActionsDropdownOpen',_0x1cc9('0x11'))]},'on':{'click':_0x5b91f5['to'](_0x2ca804=>_0x2ca804[_0x1cc9('0x4')]())}}),_0x43184a['on'](_0x1cc9('0xe'),_0x46ed12=>{_0x9b4b98[_0x1cc9('0x5')]&&_0x1cc9('0xa')==typeof _0x46ed12[_0x1cc9('0x1b')][_0x1cc9('0x12')]&&_0x46ed12[_0x1cc9('0x1b')]['_action'](_0x9b4b98);}),_0x375104(_0x43184a,_0xde5641),_0x43184a['listenTo'](_0x9b4b98,_0x1cc9('0x8'),(_0x119c49,_0xba0245,_0x209913)=>{if(_0x209913)for(const _0x39d122 of _0x43184a[_0x1cc9('0x19')][_0x1cc9('0x13')]){const _0x1b54e6=_0x39d122['children']['first'],_0x38fc8c=_0x33d191[_0x1cc9('0x16')](_0x5a9ea0=>_0x5a9ea0[_0x1cc9('0x10')]===_0x1b54e6[_0x1cc9('0x12')])[_0x1cc9('0x7')];_0x39d122['isVisible']=void 0x0===_0x38fc8c||_0x38fc8c(_0x9b4b98);}}),_0x43184a;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x6a11=['Revision\x20author','setTemplate','push','ck-revision-history-sidebar__revision-author__name','0\x200\x2011\x2010','set','ck-revision-history-sidebar__revision-author','span','ck-revision-history-sidebar__revision-author_creator','name'];(function(_0xb373a5,_0x6a11db){const _0x3cb78c=function(_0x534299){while(--_0x534299){_0xb373a5['push'](_0xb373a5['shift']());}};_0x3cb78c(++_0x6a11db);}(_0x6a11,0x93));const _0x3cb7=function(_0xb373a5,_0x6a11db){_0xb373a5=_0xb373a5-0x0;let _0x3cb78c=_0x6a11[_0xb373a5];return _0x3cb78c;};import{View as _0x23fb23,IconView as _0x59a872}from'ckeditor5/src/ui';import{getTranslation as _0x311dae}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1c10fe from'../../../theme/icons/user.svg';export default class ti extends _0x23fb23{constructor(_0x21c11c,_0x197495,_0x9a8b51){super(_0x21c11c);const _0x1caaac=new _0x59a872();_0x1caaac[_0x3cb7('0x8')]({'content':_0x1c10fe,'viewBox':_0x3cb7('0x7')});const _0xa682db=['ck',_0x3cb7('0x9')];_0x9a8b51&&_0xa682db[_0x3cb7('0x5')](_0x3cb7('0x1'));const _0x3290f8=[{'tag':_0x3cb7('0x0'),'attributes':{'class':['ck',_0x3cb7('0x6')],'title':_0x311dae(_0x21c11c,_0x9a8b51?'Revision\x20creator':_0x3cb7('0x3'))},'children':[_0x1caaac,_0x197495[_0x3cb7('0x2')]]}];this[_0x3cb7('0x4')]({'tag':'li','attributes':{'class':_0xa682db},'children':_0x3290f8});}}
23
+ const _0x152f=['ck-revision-history-sidebar__revision-author','Revision\x20author','push','Revision\x20creator','name','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name'];(function(_0x20cde0,_0x152f2b){const _0x19f347=function(_0x1effcc){while(--_0x1effcc){_0x20cde0['push'](_0x20cde0['shift']());}};_0x19f347(++_0x152f2b);}(_0x152f,0xed));const _0x19f3=function(_0x20cde0,_0x152f2b){_0x20cde0=_0x20cde0-0x0;let _0x19f347=_0x152f[_0x20cde0];return _0x19f347;};import{View as _0x288966,IconView as _0x4516ba}from'ckeditor5/src/ui';import{getTranslation as _0x55ca75}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x22506f from'../../../theme/icons/user.svg';export default class ti extends _0x288966{constructor(_0x5c1d2d,_0x5a43a7,_0x4c236e){super(_0x5c1d2d);const _0x5f1d9d=new _0x4516ba();_0x5f1d9d['set']({'content':_0x22506f,'viewBox':_0x19f3('0x6')});const _0x18da87=['ck',_0x19f3('0x1')];_0x4c236e&&_0x18da87[_0x19f3('0x3')]('ck-revision-history-sidebar__revision-author_creator');const _0x430f29=[{'tag':'span','attributes':{'class':['ck',_0x19f3('0x0')],'title':_0x55ca75(_0x5c1d2d,_0x4c236e?_0x19f3('0x4'):_0x19f3('0x2'))},'children':[_0x5f1d9d,_0x5a43a7[_0x19f3('0x5')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x18da87},'children':_0x430f29});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xf519=['span'];(function(_0x29a9bd,_0xf5196f){var _0x225f43=function(_0x422bac){while(--_0x422bac){_0x29a9bd['push'](_0x29a9bd['shift']());}};_0x225f43(++_0xf5196f);}(_0xf519,0x113));var _0x225f=function(_0x29a9bd,_0xf5196f){_0x29a9bd=_0x29a9bd-0x0;var _0x225f43=_0xf519[_0x29a9bd];return _0x225f43;};import{LabeledFieldView as _0x190a23}from'ckeditor5/src/ui';import{getTranslation as _0x1ce4ef}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x190a23{constructor(_0x5915f1,_0x2b6397){super(_0x5915f1,_0x2b6397),this['set']({'label':_0x1ce4ef(_0x5915f1,'Revision\x20name')}),this['extendTemplate']({'tag':_0x225f('0x0'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
23
+ var _0x3d48=['extendTemplate','set','Revision\x20name','span'];(function(_0x312a81,_0x3d4863){var _0x2c6e99=function(_0x574977){while(--_0x574977){_0x312a81['push'](_0x312a81['shift']());}};_0x2c6e99(++_0x3d4863);}(_0x3d48,0x132));var _0x2c6e=function(_0x312a81,_0x3d4863){_0x312a81=_0x312a81-0x0;var _0x2c6e99=_0x3d48[_0x312a81];return _0x2c6e99;};import{LabeledFieldView as _0x1558a1}from'ckeditor5/src/ui';import{getTranslation as _0x459332}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x1558a1{constructor(_0xc08688,_0x5af6d3){super(_0xc08688,_0x5af6d3),this[_0x2c6e('0x3')]({'label':_0x459332(_0xc08688,_0x2c6e('0x0'))}),this[_0x2c6e('0x2')]({'tag':_0x2c6e('0x1'),'attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x36fc=['change','ck-revision-history-sidebar__revision-wrapper','220','span','isSelected','_createdAtFormatted','fieldView','set','ck-revision-history-sidebar__revision__controls-wrapper','map','deselect','uiLanguage','bindTemplate','isEnabled','createdAt','isHighlighted','select','ck-reset','from','length','closest','revisionNameView','setName','unshift','ck-revision-history-sidebar__revision_selected','isActionsDropdownOpen','name','value','extendTemplate','ck-revision-history-sidebar__revision','creator','isConfirm','isReady','fire','unhighlight','render','_revision','srcElement','bind','element','ck-disabled','div','revisionActionsView'];(function(_0x3f18bf,_0x36fcc2){const _0x38e370=function(_0x336caa){while(--_0x336caa){_0x3f18bf['push'](_0x3f18bf['shift']());}};_0x38e370(++_0x36fcc2);}(_0x36fc,0x16d));const _0x38e3=function(_0x3f18bf,_0x36fcc2){_0x3f18bf=_0x3f18bf-0x0;let _0x38e370=_0x36fc[_0x3f18bf];return _0x38e370;};import{View as _0x370f85,createLabeledInputText as _0xcd14f2}from'ckeditor5/src/ui';import{ConfirmMixin as _0x52836f}from'ckeditor5-collaboration/src/collaboration-core';import _0x4b1b8c from'./revisionnameview';import _0x3c9266 from'./revisionauthorview';import{dateToPrettyFormat as _0x2ffce5}from'./utils';import{createActionsDropdownView as _0x5b0e4b}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x52836f(_0x370f85){constructor(_0x521b5b,_0xabc2d9,_0x319ec8){super(_0x521b5b);const _0x5c378c=this[_0x38e3('0x22')],_0xfff16c=function(_0x184f1f,_0x4b8b62){const _0x5b35f1=Array[_0x38e3('0x28')](_0x4b8b62['authors'])['filter'](_0x282d44=>_0x282d44!=_0x4b8b62[_0x38e3('0x9')]);return _0x4b8b62['creator']&&_0x5b35f1[_0x38e3('0x2')](_0x4b8b62[_0x38e3('0x9')]),_0x5b35f1[_0x38e3('0x1f')](_0x3ad65b=>new _0x3c9266(_0x184f1f,_0x3ad65b,_0x3ad65b==_0x4b8b62[_0x38e3('0x9')]));}(_0x521b5b,_0xabc2d9);this['id']=_0xabc2d9['id'],this[_0x38e3('0xf')]=_0xabc2d9,this[_0x38e3('0x11')](_0x38e3('0x5'),_0x38e3('0x24'))['to'](_0xabc2d9),this['bind'](_0x38e3('0x1b'))['to'](this,_0x38e3('0x24'),_0x4f4b18=>_0x4f4b18?_0x2ffce5(_0x521b5b[_0x38e3('0x21')],_0x4f4b18):void 0x0),this[_0x38e3('0x1d')](_0x38e3('0x1a'),!0x1),this[_0x38e3('0x1d')](_0x38e3('0x25'),!0x1),this[_0x38e3('0x1d')](_0x38e3('0x4'),!0x1),this[_0x38e3('0x1d')](_0x38e3('0xb'),!0x1),this['set'](_0x38e3('0x23'),!0x1),this[_0x38e3('0x0')]=new _0x4b1b8c(_0x521b5b,_0xcd14f2),this[_0x38e3('0x0')][_0x38e3('0x1c')][_0x38e3('0x7')]({'attributes':{'maxlength':_0x38e3('0x18')}}),this['revisionNameView'][_0x38e3('0x1c')][_0x38e3('0x11')](_0x38e3('0x6'),'placeholder')['to'](this,_0x38e3('0x5'),_0x38e3('0x1b')),this[_0x38e3('0x0')][_0x38e3('0x11')]('isEnabled')['to'](this,'isSelected',this,_0x38e3('0x23'),(_0x546072,_0x3589d0)=>_0x546072&&_0x3589d0),this[_0x38e3('0x15')]=_0x319ec8&&_0x319ec8[_0x38e3('0x29')]?_0x5b0e4b(this,_0x319ec8):'',this[_0x38e3('0x15')]&&this[_0x38e3('0x15')]['bind'](_0x38e3('0x23'))['to'](this),this['setTemplate']({'tag':_0x38e3('0x14'),'attributes':{'class':['ck','ck-reset',_0x38e3('0x17'),_0x5c378c['if'](_0x38e3('0xa'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck',_0x38e3('0x27'),_0x38e3('0x8'),_0x5c378c['if'](_0x38e3('0x23'),_0x38e3('0x13'),_0x21c1c4=>!_0x21c1c4),_0x5c378c['if']('isSelected',_0x38e3('0x3')),_0x5c378c['if'](_0x38e3('0x25'),'ck-revision-history-sidebar__revision_highlighted'),_0x5c378c['if'](_0x38e3('0x4'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x38e3('0x0')],{'tag':_0x38e3('0x19'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5c378c['to'](_0x38e3('0x1b'))}]},{'tag':_0x38e3('0x14'),'attributes':{'class':['ck',_0x38e3('0x1e')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0xfff16c}]},this[_0x38e3('0x15')]],'on':{'click':_0x5c378c['to'](_0x319f83=>{_0x319f83[_0x38e3('0x10')][_0x38e3('0x2a')]('.ck-thread__remove-confirm')||this['isReady']&&this[_0x38e3('0x23')]&&this['fire']('select',{'id':this['id']});})}}]});}[_0x38e3('0xe')](){super[_0x38e3('0xe')]();const _0x5e2579=this[_0x38e3('0x0')][_0x38e3('0x1c')][_0x38e3('0x12')];this['listenTo'](_0x5e2579,_0x38e3('0x16'),()=>{this[_0x38e3('0xc')](_0x38e3('0x1'),{'id':this['id'],'name':_0x5e2579[_0x38e3('0x6')]});});}[_0x38e3('0x26')](){this[_0x38e3('0x1a')]=!0x0;}[_0x38e3('0x20')](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}[_0x38e3('0xd')](){this[_0x38e3('0x25')]=!0x1;}}
23
+ const _0x2c31=['revisionActionsView','createdAt','220','deselect','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','isHighlighted','authors','ck-revision-history-sidebar__revision__date','name','unhighlight','ck-revision-history-sidebar__revision__controls-wrapper','setName','value','creator','isEnabled','isReady','_revision','bind','bindTemplate','_createdAtFormatted','fieldView','isSelected','unshift','revisionNameView','render','ck-revision-history-sidebar__revision_highlighted','set','closest','div','isActionsDropdownOpen','listenTo','extendTemplate','fire','ck-revision-history-sidebar__revision','highlight','change','ck-reset','ck-revision-history-sidebar__actions_dropdown_open','select','ck-revision-history-sidebar__revision-wrapper','.ck-thread__remove-confirm','ck-disabled','ck-revision-history-sidebar__revision_selected','uiLanguage','filter','srcElement','element'];(function(_0x45d9c2,_0x2c3129){const _0xd6fe43=function(_0x20d2b8){while(--_0x20d2b8){_0x45d9c2['push'](_0x45d9c2['shift']());}};_0xd6fe43(++_0x2c3129);}(_0x2c31,0x189));const _0xd6fe=function(_0x45d9c2,_0x2c3129){_0x45d9c2=_0x45d9c2-0x0;let _0xd6fe43=_0x2c31[_0x45d9c2];return _0xd6fe43;};import{View as _0x3c94b8,createLabeledInputText as _0x5e282c}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4af147}from'ckeditor5-collaboration/src/collaboration-core';import _0x97dd22 from'./revisionnameview';import _0x2e2554 from'./revisionauthorview';import{dateToPrettyFormat as _0x50d9b9}from'./utils';import{createActionsDropdownView as _0x32342f}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4af147(_0x3c94b8){constructor(_0x4e4674,_0x321e7c,_0x18de02){super(_0x4e4674);const _0x25ae96=this[_0xd6fe('0x1')],_0x8c6fd9=function(_0x373a3b,_0x561814){const _0x10fa59=Array['from'](_0x561814[_0xd6fe('0x24')])[_0xd6fe('0x1b')](_0x43f282=>_0x43f282!=_0x561814[_0xd6fe('0x2b')]);return _0x561814[_0xd6fe('0x2b')]&&_0x10fa59[_0xd6fe('0x5')](_0x561814[_0xd6fe('0x2b')]),_0x10fa59['map'](_0x5768be=>new _0x2e2554(_0x373a3b,_0x5768be,_0x5768be==_0x561814[_0xd6fe('0x2b')]));}(_0x4e4674,_0x321e7c);this['id']=_0x321e7c['id'],this[_0xd6fe('0x2e')]=_0x321e7c,this[_0xd6fe('0x0')](_0xd6fe('0x26'),_0xd6fe('0x1f'))['to'](_0x321e7c),this[_0xd6fe('0x0')](_0xd6fe('0x2'))['to'](this,_0xd6fe('0x1f'),_0x1350a4=>_0x1350a4?_0x50d9b9(_0x4e4674[_0xd6fe('0x1a')],_0x1350a4):void 0x0),this[_0xd6fe('0x9')](_0xd6fe('0x4'),!0x1),this[_0xd6fe('0x9')](_0xd6fe('0x23'),!0x1),this[_0xd6fe('0x9')](_0xd6fe('0xc'),!0x1),this[_0xd6fe('0x9')](_0xd6fe('0x2d'),!0x1),this['set']('isEnabled',!0x1),this[_0xd6fe('0x6')]=new _0x97dd22(_0x4e4674,_0x5e282c),this[_0xd6fe('0x6')][_0xd6fe('0x3')][_0xd6fe('0xe')]({'attributes':{'maxlength':_0xd6fe('0x20')}}),this[_0xd6fe('0x6')]['fieldView'][_0xd6fe('0x0')](_0xd6fe('0x2a'),'placeholder')['to'](this,_0xd6fe('0x26'),'_createdAtFormatted'),this[_0xd6fe('0x6')][_0xd6fe('0x0')](_0xd6fe('0x2c'))['to'](this,_0xd6fe('0x4'),this,_0xd6fe('0x2c'),(_0x2c58f5,_0x512957)=>_0x2c58f5&&_0x512957),this[_0xd6fe('0x1e')]=_0x18de02&&_0x18de02['length']?_0x32342f(this,_0x18de02):'',this[_0xd6fe('0x1e')]&&this['revisionActionsView'][_0xd6fe('0x0')](_0xd6fe('0x2c'))['to'](this),this['setTemplate']({'tag':_0xd6fe('0xb'),'attributes':{'class':['ck',_0xd6fe('0x13'),_0xd6fe('0x16'),_0x25ae96['if']('isConfirm',_0xd6fe('0x22'))]},'children':[{'tag':_0xd6fe('0xb'),'attributes':{'class':['ck',_0xd6fe('0x13'),_0xd6fe('0x10'),_0x25ae96['if'](_0xd6fe('0x2c'),_0xd6fe('0x18'),_0x5ed05c=>!_0x5ed05c),_0x25ae96['if']('isSelected',_0xd6fe('0x19')),_0x25ae96['if'](_0xd6fe('0x23'),_0xd6fe('0x8')),_0x25ae96['if'](_0xd6fe('0xc'),_0xd6fe('0x14'))]},'children':[this['revisionNameView'],{'tag':'span','attributes':{'class':['ck',_0xd6fe('0x25')]},'children':[{'text':_0x25ae96['to']('_createdAtFormatted')}]},{'tag':_0xd6fe('0xb'),'attributes':{'class':['ck',_0xd6fe('0x28')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x8c6fd9}]},this['revisionActionsView']],'on':{'click':_0x25ae96['to'](_0x4ef2f2=>{_0x4ef2f2[_0xd6fe('0x1c')][_0xd6fe('0xa')](_0xd6fe('0x17'))||this[_0xd6fe('0x2d')]&&this[_0xd6fe('0x2c')]&&this[_0xd6fe('0xf')](_0xd6fe('0x15'),{'id':this['id']});})}}]});}['render'](){super[_0xd6fe('0x7')]();const _0x3ab872=this[_0xd6fe('0x6')]['fieldView'][_0xd6fe('0x1d')];this[_0xd6fe('0xd')](_0x3ab872,_0xd6fe('0x12'),()=>{this['fire'](_0xd6fe('0x29'),{'id':this['id'],'name':_0x3ab872['value']});});}['select'](){this[_0xd6fe('0x4')]=!0x0;}[_0xd6fe('0x21')](){this[_0xd6fe('0x4')]=!0x1;}[_0xd6fe('0x11')](){this[_0xd6fe('0x23')]=!0x0;}[_0xd6fe('0x27')](){this[_0xd6fe('0x23')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0xfa28=['click','ck-hidden','_isCollapsed','button','set','toggle','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','bindTemplate','span','true'];(function(_0x1eeef8,_0xfa28fa){const _0x41bf42=function(_0x4359ed){while(--_0x4359ed){_0x1eeef8['push'](_0x1eeef8['shift']());}};_0x41bf42(++_0xfa28fa);}(_0xfa28,0xe6));const _0x41bf=function(_0x1eeef8,_0xfa28fa){_0x1eeef8=_0x1eeef8-0x0;let _0x41bf42=_0xfa28[_0x1eeef8];return _0x41bf42;};import{View as _0x554820}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x554820{constructor(_0x53daee){super(_0x53daee);const _0x41f065=this[_0x41bf('0x9')];this[_0x41bf('0x5')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x41bf('0xa'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x41f065['if']('isVisible',_0x41bf('0x2'),_0x146021=>!_0x146021),_0x41f065['if'](_0x41bf('0x3'),_0x41bf('0x8'))],'role':_0x41bf('0x4'),'aria-pressed':_0x41f065['to'](_0x41bf('0x3'),_0x382443=>_0x382443?'false':_0x41bf('0x0'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x41bf('0x7')]}}],'on':{'click':_0x41f065['to'](_0x41bf('0x1'))}});}[_0x41bf('0x6')](){this[_0x41bf('0x3')]=!this[_0x41bf('0x3')];}}
23
+ const _0x158c=['isVisible','ck-revision-history-sidebar__subrevision-collapser','click','span','setTemplate','true','_isCollapsed','set','ck-revision-history-sidebar__subrevision-collapser_collapsed','toggle'];(function(_0x5681d7,_0x158cbe){const _0x1cbdb8=function(_0x12b752){while(--_0x12b752){_0x5681d7['push'](_0x5681d7['shift']());}};_0x1cbdb8(++_0x158cbe);}(_0x158c,0x1cf));const _0x1cbd=function(_0x5681d7,_0x158cbe){_0x5681d7=_0x5681d7-0x0;let _0x1cbdb8=_0x158c[_0x5681d7];return _0x1cbdb8;};import{View as _0x63c6e1}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x63c6e1{constructor(_0x1878bf){super(_0x1878bf);const _0x43b757=this['bindTemplate'];this[_0x1cbd('0x4')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1cbd('0x1')]({'tag':_0x1cbd('0x0'),'attributes':{'class':['ck',_0x1cbd('0x8'),_0x43b757['if'](_0x1cbd('0x7'),'ck-hidden',_0x57236=>!_0x57236),_0x43b757['if']('_isCollapsed',_0x1cbd('0x5'))],'role':'button','aria-pressed':_0x43b757['to']('_isCollapsed',_0x13e33f=>_0x13e33f?'false':_0x1cbd('0x2'))},'children':[{'tag':_0x1cbd('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x43b757['to'](_0x1cbd('0x9'))}});}[_0x1cbd('0x6')](){this['_isCollapsed']=!this[_0x1cbd('0x3')];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2a13=['div','ck-revision-history-sidebar__revision_selected','bind','deselect','bindTemplate','setTemplate','isSelected','createdAt','ck-revision-history-sidebar__revision__date','set','ck-revision-history-sidebar__revision','select','fire','creator','ck-reset','span','uiLanguage','ck-revision-history-sidebar__subrevision','_parentRevisionId'];(function(_0x1adebd,_0x2a13cf){const _0x48b3f2=function(_0x5afec3){while(--_0x5afec3){_0x1adebd['push'](_0x1adebd['shift']());}};_0x48b3f2(++_0x2a13cf);}(_0x2a13,0x6b));const _0x48b3=function(_0x1adebd,_0x2a13cf){_0x1adebd=_0x1adebd-0x0;let _0x48b3f2=_0x2a13[_0x1adebd];return _0x48b3f2;};import{View as _0x5314e2}from'ckeditor5/src/ui';import _0x1acf43 from'./revisionauthorview';import{dateToPrettyFormat as _0x31c959}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x5314e2{constructor(_0x9ab232,_0x22f945,_0x2ce7a1){super(_0x9ab232);const _0x551939=this[_0x48b3('0xb')];this['id']=_0x22f945['id'],this[_0x48b3('0x9')](_0x48b3('0xe'))['to'](_0x22f945),this[_0x48b3('0x10')](_0x48b3('0xd'),!0x1),this['bind']('_createdAtFormatted')['to'](this,_0x48b3('0xe'),_0x4677cd=>_0x4677cd?_0x31c959(_0x9ab232[_0x48b3('0x4')],_0x4677cd):void 0x0),this[_0x48b3('0x6')]=_0x2ce7a1,this[_0x48b3('0xc')]({'tag':_0x48b3('0x7'),'attributes':{'class':['ck',_0x48b3('0x2'),_0x48b3('0x11'),_0x48b3('0x5'),_0x551939['if'](_0x48b3('0xd'),_0x48b3('0x8'))]},'children':[{'tag':_0x48b3('0x3'),'attributes':{'class':['ck',_0x48b3('0xf')]},'children':[{'text':_0x551939['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1acf43(_0x9ab232,_0x22f945[_0x48b3('0x1')],!0x0)]}],'on':{'click':_0x551939['to'](this[_0x48b3('0x12')][_0x48b3('0x9')](this))}});}[_0x48b3('0x12')](){this['isSelected']=!0x0,this[_0x48b3('0x0')](_0x48b3('0x12'),{'parentId':this[_0x48b3('0x6')]});}[_0x48b3('0xa')](){this[_0x48b3('0xd')]=!0x1;}}
23
+ const _0x3acb=['select','_parentRevisionId','ck-revision-history-sidebar__revision','fire','span','ck-reset','bind','ck-revision-history-sidebar__subrevision','div','creator','_createdAtFormatted','ck-revision-history-sidebar__revision__date','deselect','isSelected','set','createdAt','ck-revision-history-sidebar__revision_selected'];(function(_0x138880,_0x3acba0){const _0x3a2a17=function(_0x20264c){while(--_0x20264c){_0x138880['push'](_0x138880['shift']());}};_0x3a2a17(++_0x3acba0);}(_0x3acb,0xb6));const _0x3a2a=function(_0x138880,_0x3acba0){_0x138880=_0x138880-0x0;let _0x3a2a17=_0x3acb[_0x138880];return _0x3a2a17;};import{View as _0x37fafd}from'ckeditor5/src/ui';import _0x3486d2 from'./revisionauthorview';import{dateToPrettyFormat as _0x22c6b5}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x37fafd{constructor(_0x20bcdb,_0x4362ab,_0x52974e){super(_0x20bcdb);const _0xdd1ef=this['bindTemplate'];this['id']=_0x4362ab['id'],this['bind'](_0x3a2a('0x3'))['to'](_0x4362ab),this[_0x3a2a('0x2')](_0x3a2a('0x1'),!0x1),this[_0x3a2a('0xb')]('_createdAtFormatted')['to'](this,'createdAt',_0x5d54de=>_0x5d54de?_0x22c6b5(_0x20bcdb['uiLanguage'],_0x5d54de):void 0x0),this[_0x3a2a('0x6')]=_0x52974e,this['setTemplate']({'tag':_0x3a2a('0xd'),'attributes':{'class':['ck',_0x3a2a('0xa'),_0x3a2a('0x7'),_0x3a2a('0xc'),_0xdd1ef['if'](_0x3a2a('0x1'),_0x3a2a('0x4'))]},'children':[{'tag':_0x3a2a('0x9'),'attributes':{'class':['ck',_0x3a2a('0x10')]},'children':[{'text':_0xdd1ef['to'](_0x3a2a('0xf'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x3486d2(_0x20bcdb,_0x4362ab[_0x3a2a('0xe')],!0x0)]}],'on':{'click':_0xdd1ef['to'](this[_0x3a2a('0x5')][_0x3a2a('0xb')](this))}});}[_0x3a2a('0x5')](){this[_0x3a2a('0x1')]=!0x0,this[_0x3a2a('0x8')](_0x3a2a('0x5'),{'parentId':this['_parentRevisionId']});}[_0x3a2a('0x0')](){this[_0x3a2a('0x1')]=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0xb723=['long','toLocaleTimeString','numeric','toLocaleDateString'];(function(_0x2752cd,_0xb72334){var _0x35f3b1=function(_0xca0a26){while(--_0xca0a26){_0x2752cd['push'](_0x2752cd['shift']());}};_0x35f3b1(++_0xb72334);}(_0xb723,0x109));var _0x35f3=function(_0x2752cd,_0xb72334){_0x2752cd=_0x2752cd-0x0;var _0x35f3b1=_0xb723[_0x2752cd];return _0x35f3b1;};export function dateToPrettyFormat(_0x42f4f5,_0xe77c99){return _0xe77c99[_0x35f3('0x2')](_0x42f4f5,{'month':_0x35f3('0x3'),'day':_0x35f3('0x1')})+',\x20'+_0xe77c99[_0x35f3('0x0')](_0x42f4f5,{'hour':'numeric','minute':'numeric'});}
23
+ var _0x5069=['toLocaleTimeString','numeric','toLocaleDateString'];(function(_0x4d4447,_0x506937){var _0x479edc=function(_0x2fb873){while(--_0x2fb873){_0x4d4447['push'](_0x4d4447['shift']());}};_0x479edc(++_0x506937);}(_0x5069,0x78));var _0x479e=function(_0x4d4447,_0x506937){_0x4d4447=_0x4d4447-0x0;var _0x479edc=_0x5069[_0x4d4447];return _0x479edc;};export function dateToPrettyFormat(_0x78c778,_0x5f2cbc){return _0x5f2cbc[_0x479e('0x2')](_0x78c778,{'month':'long','day':'numeric'})+',\x20'+_0x5f2cbc[_0x479e('0x0')](_0x78c778,{'hour':_0x479e('0x1'),'minute':'numeric'});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x79b4=['form','_createRevisionNameInput','stopPropagation','Save','revisionName','Cancel','220','_createButton','keystrokes','add','ck-revision-history-save-revision-form','value','shift\x20+\x20tab','_focusables','trim','submit','listenTo','cancel','focusTracker','cancelButtonView','focus','delegate','revisionNameInputView','element','input','arrowright','set','arrowup','revisionNameInputValue','execute','ck-button-save','fieldView','focusFirst','arrowdown','locale','arrowleft','setTemplate','tab','check','_focusCycler','forEach','type','label','extendTemplate','saveButtonView'];(function(_0x1024db,_0x79b4f4){const _0x3871a5=function(_0x3d2217){while(--_0x3d2217){_0x1024db['push'](_0x1024db['shift']());}};_0x3871a5(++_0x79b4f4);}(_0x79b4,0xa7));const _0x3871=function(_0x1024db,_0x79b4f4){_0x1024db=_0x1024db-0x0;let _0x3871a5=_0x79b4[_0x1024db];return _0x3871a5;};import{icons as _0x1ea3c9}from'ckeditor5/src/core';import{ButtonView as _0x1b3da7,FocusCycler as _0x261c97,LabeledFieldView as _0x50a5cd,View as _0x333876,ViewCollection as _0x53d21e,createLabeledInputText as _0x853d85,injectCssTransitionDisabler as _0x566026,submitHandler as _0x230402}from'ckeditor5/src/ui';import{FocusTracker as _0x567b0a,KeystrokeHandler as _0x2caa74}from'ckeditor5/src/utils';import{getTranslation as _0x8b0610}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x333876{constructor(_0x275208){super(_0x275208),this[_0x3871('0x1f')]=new _0x567b0a(),this[_0x3871('0x15')]=new _0x2caa74(),this[_0x3871('0x27')](_0x3871('0x29'),''),this['revisionNameInputView']=this[_0x3871('0xe')](),this[_0x3871('0xc')]=this[_0x3871('0x14')](_0x8b0610(_0x275208,_0x3871('0x10')),_0x1ea3c9[_0x3871('0x6')],_0x3871('0x2b')),this[_0x3871('0xc')][_0x3871('0x9')]=_0x3871('0x1c'),this[_0x3871('0x20')]=this['_createButton'](_0x8b0610(_0x275208,_0x3871('0x12')),_0x1ea3c9['cancel'],'ck-button-cancel',_0x3871('0x1e')),this[_0x3871('0x1a')]=new _0x53d21e(),this[_0x3871('0x7')]=new _0x261c97({'focusables':this[_0x3871('0x1a')],'focusTracker':this[_0x3871('0x1f')],'keystrokeHandler':this[_0x3871('0x15')],'actions':{'focusPrevious':_0x3871('0x19'),'focusNext':_0x3871('0x5')}}),this[_0x3871('0x4')]({'tag':_0x3871('0xd'),'attributes':{'class':['ck',_0x3871('0x17'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x3871('0x23')],this[_0x3871('0xc')],this[_0x3871('0x20')]]}),_0x566026(this);}['render'](){super['render'](),_0x230402({'view':this}),([this[_0x3871('0x23')],this['saveButtonView'],this[_0x3871('0x20')]][_0x3871('0x8')](_0x5b1eef=>{this[_0x3871('0x1a')][_0x3871('0x16')](_0x5b1eef),this[_0x3871('0x1f')][_0x3871('0x16')](_0x5b1eef[_0x3871('0x24')]);}),this['keystrokes'][_0x3871('0x1d')](this[_0x3871('0x24')]));const _0x520a30=_0xd0f8f2=>_0xd0f8f2[_0x3871('0xf')]();this[_0x3871('0x15')]['set'](_0x3871('0x26'),_0x520a30),this[_0x3871('0x15')][_0x3871('0x27')](_0x3871('0x3'),_0x520a30),this['keystrokes'][_0x3871('0x27')](_0x3871('0x28'),_0x520a30),this['keystrokes'][_0x3871('0x27')](_0x3871('0x1'),_0x520a30);}[_0x3871('0x21')](){this[_0x3871('0x7')][_0x3871('0x0')]();}get['revisionName'](){return this[_0x3871('0x23')]['fieldView'][_0x3871('0x24')][_0x3871('0x18')][_0x3871('0x1b')]();}set[_0x3871('0x11')](_0x51d3e8){this[_0x3871('0x23')][_0x3871('0x2c')][_0x3871('0x24')][_0x3871('0x18')]=_0x51d3e8[_0x3871('0x1b')]();}['reset'](){this['revisionNameInputView'][_0x3871('0x2c')][_0x3871('0x24')][_0x3871('0x18')]='';}[_0x3871('0xe')](){const _0x4aa7fb=new _0x50a5cd(this[_0x3871('0x2')],_0x853d85),_0x28fd86=_0x4aa7fb[_0x3871('0x2c')];return _0x28fd86[_0x3871('0xb')]({'attributes':{'maxlength':_0x3871('0x13')}}),_0x4aa7fb[_0x3871('0xa')]=_0x8b0610(this[_0x3871('0x2')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x28fd86['on'](_0x3871('0x25'),()=>{this[_0x3871('0x29')]=_0x28fd86[_0x3871('0x24')][_0x3871('0x18')][_0x3871('0x1b')]();}),_0x4aa7fb;}[_0x3871('0x14')](_0x2ed952,_0x41478c,_0x210558,_0x47e94b){const _0x3ab18d=new _0x1b3da7(this['locale']);return _0x3ab18d[_0x3871('0x27')]({'label':_0x2ed952,'icon':_0x41478c,'tooltip':!0x0}),_0x3ab18d['extendTemplate']({'attributes':{'class':_0x210558}}),_0x47e94b&&_0x3ab18d[_0x3871('0x22')](_0x3871('0x2a'))['to'](this,_0x47e94b),_0x3ab18d;}}
23
+ const _0x1123=['check','_createButton','label','_focusCycler','form','input','element','ck-button-cancel','_focusables','value','submit','Name\x20of\x20the\x20revision\x20(optional)','revisionName','shift\x20+\x20tab','keystrokes','focus','render','cancelButtonView','arrowup','Save','ck-button-save','trim','cancel','stopPropagation','saveButtonView','ck-responsive-form','revisionNameInputView','fieldView','forEach','extendTemplate','_createRevisionNameInput','execute','focusFirst','220','revisionNameInputValue','arrowright','set','listenTo','Cancel','add','arrowleft','locale','focusTracker'];(function(_0x47c141,_0x11238e){const _0x358dea=function(_0x5b76e2){while(--_0x5b76e2){_0x47c141['push'](_0x47c141['shift']());}};_0x358dea(++_0x11238e);}(_0x1123,0x191));const _0x358d=function(_0x47c141,_0x11238e){_0x47c141=_0x47c141-0x0;let _0x358dea=_0x1123[_0x47c141];return _0x358dea;};import{icons as _0x4a0e91}from'ckeditor5/src/core';import{ButtonView as _0xf8b794,FocusCycler as _0x5a75d0,LabeledFieldView as _0x2f9135,View as _0x55fc43,ViewCollection as _0xfb408,createLabeledInputText as _0x497bda,injectCssTransitionDisabler as _0x2f5cdc,submitHandler as _0x543541}from'ckeditor5/src/ui';import{FocusTracker as _0x5601ad,KeystrokeHandler as _0x5a9a38}from'ckeditor5/src/utils';import{getTranslation as _0x1315c9}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x55fc43{constructor(_0x3ed679){super(_0x3ed679),this['focusTracker']=new _0x5601ad(),this[_0x358d('0x0')]=new _0x5a9a38(),this['set'](_0x358d('0x14'),''),this[_0x358d('0xc')]=this[_0x358d('0x10')](),this[_0x358d('0xa')]=this['_createButton'](_0x1315c9(_0x3ed679,_0x358d('0x5')),_0x4a0e91[_0x358d('0x1d')],_0x358d('0x6')),this['saveButtonView']['type']=_0x358d('0x27'),this[_0x358d('0x3')]=this[_0x358d('0x1e')](_0x1315c9(_0x3ed679,_0x358d('0x18')),_0x4a0e91[_0x358d('0x8')],_0x358d('0x24'),_0x358d('0x8')),this[_0x358d('0x25')]=new _0xfb408(),this[_0x358d('0x20')]=new _0x5a75d0({'focusables':this[_0x358d('0x25')],'focusTracker':this[_0x358d('0x1c')],'keystrokeHandler':this[_0x358d('0x0')],'actions':{'focusPrevious':_0x358d('0x2a'),'focusNext':'tab'}}),this['setTemplate']({'tag':_0x358d('0x21'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0x358d('0xb')],'tabindex':'-1'},'children':[this[_0x358d('0xc')],this[_0x358d('0xa')],this[_0x358d('0x3')]]}),_0x2f5cdc(this);}[_0x358d('0x2')](){super['render'](),_0x543541({'view':this}),([this[_0x358d('0xc')],this['saveButtonView'],this['cancelButtonView']][_0x358d('0xe')](_0x156ea5=>{this[_0x358d('0x25')]['add'](_0x156ea5),this[_0x358d('0x1c')][_0x358d('0x19')](_0x156ea5[_0x358d('0x23')]);}),this[_0x358d('0x0')][_0x358d('0x17')](this['element']));const _0x1007fb=_0x57f758=>_0x57f758[_0x358d('0x9')]();this[_0x358d('0x0')][_0x358d('0x16')](_0x358d('0x15'),_0x1007fb),this[_0x358d('0x0')][_0x358d('0x16')](_0x358d('0x1a'),_0x1007fb),this[_0x358d('0x0')][_0x358d('0x16')](_0x358d('0x4'),_0x1007fb),this[_0x358d('0x0')][_0x358d('0x16')]('arrowdown',_0x1007fb);}[_0x358d('0x1')](){this[_0x358d('0x20')][_0x358d('0x12')]();}get['revisionName'](){return this[_0x358d('0xc')][_0x358d('0xd')][_0x358d('0x23')][_0x358d('0x26')]['trim']();}set[_0x358d('0x29')](_0x1e1a82){this[_0x358d('0xc')][_0x358d('0xd')][_0x358d('0x23')][_0x358d('0x26')]=_0x1e1a82[_0x358d('0x7')]();}['reset'](){this[_0x358d('0xc')][_0x358d('0xd')]['element'][_0x358d('0x26')]='';}[_0x358d('0x10')](){const _0x299262=new _0x2f9135(this[_0x358d('0x1b')],_0x497bda),_0x4a897a=_0x299262[_0x358d('0xd')];return _0x4a897a['extendTemplate']({'attributes':{'maxlength':_0x358d('0x13')}}),_0x299262[_0x358d('0x1f')]=_0x1315c9(this[_0x358d('0x1b')],_0x358d('0x28')),_0x4a897a['on'](_0x358d('0x22'),()=>{this[_0x358d('0x14')]=_0x4a897a[_0x358d('0x23')][_0x358d('0x26')][_0x358d('0x7')]();}),_0x299262;}[_0x358d('0x1e')](_0x538f5f,_0x42ce0e,_0x1c8bd4,_0x3ea222){const _0x4478a2=new _0xf8b794(this[_0x358d('0x1b')]);return _0x4478a2[_0x358d('0x16')]({'label':_0x538f5f,'icon':_0x42ce0e,'tooltip':!0x0}),_0x4478a2[_0x358d('0xf')]({'attributes':{'class':_0x1c8bd4}}),_0x3ea222&&_0x4478a2['delegate'](_0x358d('0x11'))['to'](this,_0x3ea222),_0x4478a2;}}