@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231208.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 (32) hide show
  1. package/README.md +10 -10
  2. package/build/revision-history.js +1 -1
  3. package/package.json +6 -6
  4. package/src/changeitem.js +1 -1
  5. package/src/editor/revisionviewereditor.js +1 -1
  6. package/src/editor/revisionviewereditorui.js +1 -1
  7. package/src/editor/revisionviewereditoruiview.js +1 -1
  8. package/src/revision.js +1 -1
  9. package/src/revisiondiff.js +1 -1
  10. package/src/revisionhistory.js +1 -1
  11. package/src/revisionsrepository.js +1 -1
  12. package/src/revisiontracker.js +1 -1
  13. package/src/revisionviewer.js +1 -1
  14. package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
  15. package/src/ui/revision/revisionauthorview.js +1 -1
  16. package/src/ui/revision/revisionnameview.js +1 -1
  17. package/src/ui/revision/revisionview.js +1 -1
  18. package/src/ui/revision/subrevisioncollapserview.js +1 -1
  19. package/src/ui/revision/subrevisionview.js +1 -1
  20. package/src/ui/revision/utils.js +1 -1
  21. package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
  22. package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
  23. package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
  24. package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
  25. package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
  26. package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
  27. package/src/ui/revisionssidebar/utils.js +1 -1
  28. package/src/ui/revisionviewer/changedetailsview.js +1 -1
  29. package/src/ui/revisionviewer/changesnavigationview.js +1 -1
  30. package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
  31. package/src/ui/revisionviewer/revisionviewerui.js +1 -1
  32. package/src/utils/common-translations.js +1 -1
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2d43=['nextSibling','execute','_processTape','startIndex','end','revision-viewer','isLimit','_findChangeIdFromDomTarget','find','_markMarkers','plugins','domEvent','vid_end','bindElementToMarker','ck-revision-history-root--active','revisionHistory','addRevision','error','insert','_markSuggestions','deletions','dataDowncast','ck-suggestion-marker-merge','revisionHistoryLabel','remove','isContent','shift','low','getClientRects','_initInteractions','data-revision-','editingDowncast','merge','hasClass','getCustomProperty','createPositionFromPath','from','listenTo','numberOfChanges','newRevisionId','isAfter','parent','RevisionsRepository','addRevisionData','default','isEnabled','removeAttribute','activeChange','side','softBreak','isCollapsed','delete','toViewElement','_getViewForChange','toViewPosition','createUIElement','_getChangeFromId','markerRange','wrap','ck-editor__editable__overlay','endIndex','compare','_activeViewTarget','rootName','removeClass','useFillerType','commands','highest','isRemoved','isAttached','getRevision','left','removeMarker:revision-suggestion','forEach','mapViewToDom','userId','has','distance','then','bottom','_cleanMarkers','ck-suggestion-marker-','getAttribute','revision:','indexOf','string','elementStart','values','high','element','WidgetToolbarRepository','add','text','markerToHighlight','refresh','_refreshStartEndIndex','revision-start','element:pre','forward','first','oldRevisionId','isOnRoot','previousPosition','getRevisionRootsAttributes','_removeUnsupportedChanges','vid_start','markerNameToElements','createRangeIn','createRevision','detachRoot','_joinTapes','document','_markMismatchedRemovedTags','diff','RevisionViewer','loadRevisionData','revision-end','_getViewObj','downcastDispatcher','_update','_makeModelFromTape','unbindElementFromMarkerName','-new','slice','destroy','isAtStart','_threeWayMerge','sort','consume','checkAttribute','pairId','push','restoreRevision','isEqual','start','removeMarker:revision','startsWith','top','change','parse','get','hasAttribute','insertion','change:isEnabled','span','dataToMarker','for','getRootNames','deletion','change:isReady','toModel','mousedown','attributes','isNavigationMode','flat','_cleanUp','change:activeChange','length','pluginName','model','repository','map','offsetSize','enableReadOnlyMode','_getDiff','domConverter','attribute:vid','isBefore','data-change-id','forceDisabled','setAttribute','name','isReady','getDomRoot','children','markerToData','item','createRange','view','viewItem','writer','level','showStack','getRoot','object','_appendChild','editor','ck-revision-history-root-remove','ck-suggestion-marker--active','getAttributes','data','addHighlight','upcast','_changeView','suggestion','comment','keys','_makeTape','toData','addRoot','revision-suggestion:','mouseover','elementEnd','ck-suggestion-preview-marker-','revision-suggestion','markersEnd','_removeRevisionMarkers','isRemoveSuggestion','_setDistance','ck-revision-history-root-','resolve','_sortAndFilterDiffChanges','target','removeMarker','markers','roots','bind','attachChange','_step','split','markerName','selection','concat','uiElement','processor','splice','vid','currentChangeNumber','isSuggestion','_changeIdToChange','modelRange','addMarker:revision','_fixObsoleteTags','toViewRange','diffData','changes','_setChanges','clear','insertions','observeMarkers','mapper','_markInsertions','isBlock','type','getItems','_data','elementToAttribute','ck-suggestion-marker','showPreviousChange','isAtEnd','revisionHistoryAttachChange','getWalker','revision','reconvertMarker','isIncorrect','editing','change:numberOfChanges','set','addClass','isAddSuggestion','enqueueChange','maxOffset','attributesBefore','all','markersStart','attributesAfter','_makeModelFromViewString','activeView','addMarker:revision-suggestion:deletion','affectsData','next','consumable','getIndex','unshift','init','filter','catch','nodeAfter','changeId','isAdded','conversion','createAttributeElement','index','nextPosition','getChild','_balloon','_getRevisionsRange','change:activeView','updatePosition','schema','findIndex','test'];(function(_0x134833,_0x2d43a0){const _0x58ac2a=function(_0x449d2f){while(--_0x449d2f){_0x134833['push'](_0x134833['shift']());}};_0x58ac2a(++_0x2d43a0);}(_0x2d43,0xb5));const _0x58ac=function(_0x134833,_0x2d43a0){_0x134833=_0x134833-0x0;let _0x58ac2a=_0x2d43[_0x134833];return _0x58ac2a;};import{Plugin as _0x302fbd,Command as _0x5b14aa}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x69fb6c}from'ckeditor5/src/utils';import{ContextualBalloon as _0x9366df}from'ckeditor5/src/ui';import{DocumentFragment as _0x5b17ee,Element as _0x6d2216,Text as _0x11bd6d,ViewDocumentFragment as _0x5ba589,ViewText as _0x4e742a,ViewElement as _0x37d6b8,ViewContainerElement as _0x362010,ViewAttributeElement as _0xcd2dd5,ViewEmptyElement as _0x158760,ViewRawElement as _0x1ab53d,ViewUIElement as _0x2d28be}from'ckeditor5/src/engine';import{Users as _0xffea1e,getMarkerDomElement as _0x50d73d}from'ckeditor5-collaboration/src/collaboration-core';import _0x32aafe from'./ui/revisionviewer/changedetailsview';import _0x5ae72e from'./revisionsrepository';import _0x55c7f1 from'./changeitem';import{default as _0x3c0f48}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x23279f}from'lodash-es';const tt={'c':_0x362010,'a':_0xcd2dd5,'e':_0x158760,'r':_0x1ab53d,'u':_0x2d28be};export default class d extends _0x302fbd{static get[_0x58ac('0x10d')](){return _0x58ac('0xe1');}static get['requires'](){return[_0xffea1e,_0x9366df,_0x5ae72e];}constructor(_0x208a5c){super(_0x208a5c),this[_0x58ac('0x10f')]=this['editor'][_0x58ac('0x79')][_0x58ac('0xfb')](_0x58ac('0x99')),this[_0x58ac('0x4c')](_0x58ac('0x9e'),null),this[_0x58ac('0x4c')]('activeView',null),this[_0x58ac('0xad')]=null,this[_0x58ac('0x4c')](_0x58ac('0xe0'),null),this['set'](_0x58ac('0x11b'),!0x1),this[_0x58ac('0x4c')](_0x58ac('0x9c'),!0x0),this['on'](_0x58ac('0xfe'),(_0x95b75e,_0x399801,_0x10ddd0)=>{this[_0x58ac('0x9e')]=null,this[_0x58ac('0x56')]=null,this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xf9')](_0x465318=>{for(const _0x51b802 of this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x22')])_0x10ddd0?_0x465318[_0x58ac('0xaf')](_0x58ac('0xaa'),_0x51b802):_0x465318[_0x58ac('0x4d')](_0x58ac('0xaa'),_0x51b802);});}),this[_0x58ac('0x23')](_0x58ac('0x108'))['to'](this,'activeChange',_0x1f72d9=>null!==_0x1f72d9),this[_0x58ac('0x23')](_0x58ac('0x2e'))['to'](this,_0x58ac('0x11b'),this,'diff',this,_0x58ac('0x9e'),(_0x2e2ab1,_0x2082d3,_0x436e66)=>_0x2e2ab1&&_0x436e66?_0x2082d3[_0x58ac('0x36')][_0x58ac('0x5b')](_0x436e66):0x0),this['bind'](_0x58ac('0x95'))['to'](this,_0x58ac('0x11b'),this,'diff',(_0x4c43ef,_0x46938d)=>_0x4c43ef?_0x46938d[_0x58ac('0x36')][_0x58ac('0x10c')]:0x0),this[_0x58ac('0xc')]=null,this[_0x58ac('0x30')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x58ac('0x5')]['plugins'][_0x58ac('0xfb')](_0x9366df);}[_0x58ac('0x5d')](){const _0x276994=this[_0x58ac('0x5')],_0xab1f01=new ShowChangeCommand(_0x276994,{'direction':'backward'}),_0x4e99c8=new ShowChangeCommand(_0x276994,{'direction':_0x58ac('0xd1')});(_0x276994[_0x58ac('0xb1')]['add'](_0x58ac('0x43'),_0xab1f01),_0x276994[_0x58ac('0xb1')][_0x58ac('0xca')]('showNextChange',_0x4e99c8),_0x276994[_0x58ac('0xb1')][_0x58ac('0xca')](_0x58ac('0xf3'),new RestoreRevisionCommand(_0x276994)),this['on'](_0x58ac('0x4b'),()=>{_0xab1f01[_0x58ac('0xcd')](),_0x4e99c8[_0x58ac('0xcd')]();}),this['_setConversion'](),this[_0x58ac('0x8c')](),_0x276994[_0x58ac('0x112')](_0x58ac('0x74')),_0x276994['plugins'][_0x58ac('0xbb')](_0x58ac('0xc9')))&&_0x276994[_0x58ac('0x79')][_0x58ac('0xfb')]('WidgetToolbarRepository')[_0x58ac('0x118')](_0x58ac('0x74'));}async['getRevisionData'](_0x2f84c3){await this['loadRevisionData'](_0x2f84c3);const _0xe2a886={};for(const _0x546c85 in _0x2f84c3[_0x58ac('0x35')]){if(_0x2f84c3[_0x58ac('0x35')][_0x546c85][_0x58ac('0x24')]&&!_0x2f84c3['diffData'][_0x546c85][_0x58ac('0x24')][_0x58ac('0xb4')])continue;const _0x4ab8db=this[_0x58ac('0x19')](JSON['parse'](_0x2f84c3['diffData'][_0x546c85][_0x58ac('0x39')])),_0x431a65=this[_0x58ac('0x5')]['editing']['view'][_0x58ac('0xde')],_0x485725=new _0x5ba589(_0x431a65,_0x4ab8db[_0x58ac('0x110')](_0x5a03cd=>this[_0x58ac('0xe4')](_0x5a03cd)));this[_0x58ac('0x5')]['data']['processor'][_0x58ac('0xb0')]('marked'),_0xe2a886[_0x546c85]=this['editor'][_0x58ac('0x9')][_0x58ac('0x2b')][_0x58ac('0x11')](_0x485725),this['editor'][_0x58ac('0x9')][_0x58ac('0x2b')][_0x58ac('0xb0')](_0x58ac('0x9b'));}return _0xe2a886;}async[_0x58ac('0xd6')](_0xe79f4b){await this['loadRevisionData'](_0xe79f4b);const _0xa33ca0={};for(const _0x1b108d in _0xe79f4b[_0x58ac('0x35')])_0xe79f4b[_0x58ac('0x35')][_0x1b108d][_0x58ac('0x24')]&&!_0xe79f4b[_0x58ac('0x35')][_0x1b108d][_0x58ac('0x24')][_0x58ac('0xb4')]||(_0xa33ca0[_0x1b108d]=_0xe79f4b[_0x58ac('0x35')][_0x1b108d]['attributesAfter']||{});return _0xa33ca0;}[_0x58ac('0x19')](_0x52cc33){return(_0x52cc33=_0x52cc33[_0x58ac('0x5e')](_0x43d67b=>!_0x43d67b['name']||_0x58ac('0xcf')!==_0x43d67b['name']&&_0x58ac('0xe3')!==_0x43d67b[_0x58ac('0x11a')]))[_0x58ac('0xb8')](_0x3518b1=>{_0x58ac('0xc4')!=typeof _0x3518b1&&(_0x3518b1[_0x58ac('0x11d')]=this['_removeRevisionMarkers'](_0x3518b1[_0x58ac('0x11d')]),_0x3518b1[_0x58ac('0x107')]=_0x3518b1[_0x58ac('0x107')][_0x58ac('0x5e')](_0x111d55=>!_0x111d55[0x0][_0x58ac('0xf7')](_0x58ac('0x8d'))));}),_0x52cc33;}async[_0x58ac('0xac')](_0x3d1579,_0x5d88e0,_0x42eeb4=!0x1){if(!this[_0x58ac('0x9c')])return;const _0x58e824=this[_0x58ac('0xe0')],_0x5492a5=this[_0x58ac('0x10f')],_0x328d55=_0x58ac('0xc4')==typeof _0x3d1579?_0x5492a5['getRevision'](_0x3d1579):_0x3d1579,_0x2794d9=_0x58ac('0xc4')==typeof _0x5d88e0?_0x5492a5[_0x58ac('0xb5')](_0x5d88e0):_0x5d88e0,_0x35baf8=_0x328d55['id'],_0x4718d7=_0x2794d9?_0x2794d9['id']:null;if(!_0x42eeb4&&this['diff']&&this[_0x58ac('0xe0')][_0x58ac('0x96')]===_0x35baf8&&this[_0x58ac('0xe0')][_0x58ac('0xd3')]===_0x4718d7)return Promise[_0x58ac('0x1d')]();this[_0x58ac('0x11b')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x58ac('0xe0')]=new _0x3c0f48(_0x35baf8,_0x4718d7);const _0x5301be=this[_0x58ac('0x69')](_0x328d55,_0x2794d9,!0x0)[_0x58ac('0x110')](_0x53bb3c=>this[_0x58ac('0xe2')](_0x53bb3c));return _0x5301be[_0x58ac('0xf2')](new Promise(_0x5909e4=>{setTimeout(_0x5909e4,0x14);})),Promise[_0x58ac('0x52')](_0x5301be)[_0x58ac('0xbd')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d81f4=this['_getDiff'](_0x35baf8,_0x4718d7);for(const _0x10483f of _0x2d81f4['changes'])this[_0x58ac('0x30')][_0x58ac('0x4c')](_0x10483f['id'],_0x10483f);this[_0x58ac('0x5')]['model']['enqueueChange']({'isUndoable':!0x1},_0x94901a=>{for(const _0x4ffb69 of this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')][_0x58ac('0x102')]())_0x94901a['detachRoot'](_0x4ffb69);for(const _0xac5826 of Object['keys'](_0x2d81f4[_0x58ac('0x10e')])){const _0x394360=_0x94901a[_0x58ac('0x12')](_0xac5826);for(const _0x56c722 of Object['keys'](_0x2d81f4['attributes'][_0xac5826]))_0x94901a[_0x58ac('0x119')](_0x56c722,_0x2d81f4[_0x58ac('0x107')][_0xac5826][_0x56c722],_0x394360);_0x94901a[_0x58ac('0x81')](_0x2d81f4['model'][_0xac5826],_0x394360,0x0);}}),this[_0x58ac('0xe0')][_0x58ac('0x37')](this[_0x58ac('0x1e')](_0x2d81f4[_0x58ac('0x36')])),this[_0x58ac('0x11b')]=!0x0;})[_0x58ac('0x5f')](_0x1b1051=>{console[_0x58ac('0x80')](_0x1b1051),this[_0x58ac('0x10a')](),_0x58e824&&(this[_0x58ac('0xe0')]=_0x58e824),this['isReady']=!0x0;});}[_0x58ac('0x9a')](_0xcdd324,_0x253f16){const _0x152cf0=this[_0x58ac('0x10f')][_0x58ac('0xdb')](_0xcdd324);return _0x152cf0['on'](_0x58ac('0xe6'),(_0x56bc72,_0x4441ba,_0x179005)=>_0x253f16(_0x4441ba,_0x179005,_0x152cf0)),this[_0x58ac('0x10f')][_0x58ac('0x7f')](_0x152cf0),_0x152cf0;}[_0x58ac('0xe2')](_0x452b8b){if(!_0x452b8b||_0x452b8b[_0x58ac('0x35')])return Promise[_0x58ac('0x1d')]();{const _0x5da7d8=this[_0x58ac('0x5')]['config'][_0x58ac('0xfb')]('collaboration.channelId');return this['adapter'][_0x58ac('0xb5')]({'channelId':_0x5da7d8,'revisionId':_0x452b8b['id']})['then'](_0x58c1b1=>{_0x452b8b[_0x58ac('0xe6')]({'diffData':_0x58c1b1['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x58ac('0xc')]&&this[_0x58ac('0xc')]['destroy'](),this['_changeView']=null,this[_0x58ac('0x30')][_0x58ac('0x38')](),this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0x4f')]({'isUndoable':!0x1},_0x28e1cb=>{for(const _0x1dcfc5 of this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')]['getRootNames']())_0x28e1cb[_0x58ac('0xdc')](_0x1dcfc5);});}[_0x58ac('0x1e')](_0x54f3cd){const _0x1fa84d=[],_0x17d378=new Map();for(const _0x305330 of this['editor'][_0x58ac('0x10e')]['document'][_0x58ac('0x102')]()){const _0x2e00bc=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0x11c')](_0x305330);if(!_0x2e00bc)continue;const _0x48b6be=_0x2e00bc['getClientRects']()['item'](0x0);_0x48b6be&&(_0x1fa84d['push'](_0x305330),_0x17d378['set'](_0x305330,_0x48b6be));}return _0x1fa84d['sort']((_0x3f1793,_0x2dcf07)=>{const _0x130302=_0x17d378['get'](_0x3f1793),_0x5ba3be=_0x17d378['get'](_0x2dcf07);return _0x130302['y']-_0x5ba3be['y']||_0x130302['x']-_0x5ba3be['x'];}),(_0x54f3cd=_0x54f3cd['filter'](_0x4b3e91=>_0x1fa84d['includes'](_0x4b3e91[_0x58ac('0xae')])))[_0x58ac('0xee')]((_0x2f504c,_0xc041d6)=>_0x1fa84d[_0x58ac('0xc3')](_0x2f504c['rootName'])-_0x1fa84d[_0x58ac('0xc3')](_0xc041d6[_0x58ac('0xae')])),_0x54f3cd;}[_0x58ac('0x10')](_0x133ec5){const _0x1e17e5=Array['from'](_0x133ec5[_0x58ac('0x21')])['filter'](([_0x4fb1d4,_0x2745fa])=>_0x4fb1d4[_0x58ac('0xf7')](_0x58ac('0xc2'))&&!_0x2745fa[_0x58ac('0xa1')]),_0x210406=Array[_0x58ac('0x93')](this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xda')](_0x133ec5)[_0x58ac('0x46')]({'singleCharacters':!0x0}));if(0x0!=_0x1e17e5[_0x58ac('0x10c')])for(const _0x184528 of _0x210406){const [_0x404110,_0x4b410e]=_0x1e17e5[0x0],[,_0x48c701,_0x57de8a]=_0x404110[_0x58ac('0x26')](':');if(_0x4b410e['end']['isEqual'](_0x184528['nextPosition'])&&_0x1e17e5['shift'](),(_0x184528[_0x58ac('0xd5')][_0x58ac('0xf4')](_0x4b410e[_0x58ac('0xf5')])||_0x184528[_0x58ac('0xd5')]['isAfter'](_0x4b410e[_0x58ac('0xf5')]))&&(_0x58ac('0xfd')==_0x48c701?_0x184528[_0x58ac('0x62')]={'userId':_0x57de8a}:'deletion'==_0x48c701&&(_0x184528['isRemoved']={'userId':_0x57de8a})),0x0==_0x1e17e5[_0x58ac('0x10c')])break;}return _0x210406;}[_0x58ac('0xce')](_0x105f33){const _0x5ce92b=new Map();for(let _0x1a52d9=0x0;_0x1a52d9<_0x105f33[_0x58ac('0x10c')];_0x1a52d9++)_0x58ac('0xcb')===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]?(_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x1a52d9,_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x1a52d9):('elementStart'===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]?_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x1a52d9:_0x58ac('0x15')===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]&&(_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x1a52d9),_0x5ce92b[_0x58ac('0x4c')](_0x105f33[_0x1a52d9]['id'],_0x1a52d9));for(const _0x25219f of _0x5ce92b[_0x58ac('0xc6')]())_0x58ac('0xc5')===_0x105f33[_0x25219f][_0x58ac('0x3e')]?_0x105f33[_0x25219f][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x5ce92b[_0x58ac('0xfb')](_0x105f33[_0x25219f]['pairId']):_0x58ac('0x15')===_0x105f33[_0x25219f][_0x58ac('0x3e')]&&(_0x105f33[_0x25219f][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x5ce92b[_0x58ac('0xfb')](_0x105f33[_0x25219f][_0x58ac('0xf1')]));}[_0x58ac('0x71')](_0x1907f2){for(let _0x4ea9b6=0x0;_0x4ea9b6<_0x1907f2[_0x58ac('0x10c')];_0x4ea9b6++){if(_0x58ac('0xc5')===_0x1907f2[_0x4ea9b6][_0x58ac('0x3e')])_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')]['startIndex']=_0x4ea9b6;else{if(_0x58ac('0x15')===_0x1907f2[_0x4ea9b6][_0x58ac('0x3e')]){_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x4ea9b6;const _0x500ffe=_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0x72')];_0x1907f2[_0x500ffe][_0x58ac('0xf1')]=_0x1907f2[_0x4ea9b6]['id'],_0x1907f2[_0x4ea9b6]['pairId']=_0x1907f2[_0x500ffe]['id'];}else _0x1907f2[_0x4ea9b6]['item']['startIndex']=_0x4ea9b6,_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x4ea9b6,_0x1907f2[_0x4ea9b6][_0x58ac('0xf1')]=null;}_0x1907f2[_0x4ea9b6][_0x58ac('0x53')]||(_0x1907f2[_0x4ea9b6][_0x58ac('0x53')]=[],_0x1907f2[_0x4ea9b6][_0x58ac('0x18')]=[]);}}[_0x58ac('0x3c')](_0x226704,_0x290582){const _0x5bc161=_0x226704['filter'](_0x56447e=>!_0x56447e[_0x58ac('0x62')]);for(let _0x3100af=0x0;_0x3100af<_0x290582[_0x58ac('0x10c')];_0x3100af++)_0x290582[_0x3100af][_0x58ac('0x62')]&&(_0x5bc161[_0x3100af][_0x58ac('0x62')]=_0x290582[_0x3100af]['isAdded']);}[_0x58ac('0x55')](_0xccf971){const _0x383b10=JSON[_0x58ac('0xfa')](_0xccf971),_0xf1e51c=this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')]['document'],_0x3081a8=new _0x5ba589(_0xf1e51c,_0x383b10[_0x58ac('0x110')](_0x1473ef=>this['_getViewObj'](_0x1473ef)));return this[_0x58ac('0x5')][_0x58ac('0x9')][_0x58ac('0x105')](_0x3081a8);}['_getViewObj'](_0x42b8de){const _0x4bc98a=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')];if(_0x58ac('0xc4')==typeof _0x42b8de)return new _0x4e742a(_0x4bc98a,_0x42b8de);{const _0x3b7246=_0x42b8de[_0x58ac('0x11d')][_0x58ac('0x110')](_0x519c39=>this[_0x58ac('0xe4')](_0x519c39));return new(tt[_0x42b8de[(_0x58ac('0x3e'))]]||_0x37d6b8)(_0x4bc98a,_0x42b8de[_0x58ac('0x11a')],_0x42b8de[_0x58ac('0x107')],_0x3b7246);}}[_0x58ac('0x113')](_0x342082,_0x535e7a=null){const _0x21c574=this[_0x58ac('0x10f')]['getRevision'](_0x342082),_0x1bd0cb=_0x535e7a?this['repository'][_0x58ac('0xb5')](_0x535e7a):null,_0x5701a0=this[_0x58ac('0x69')](_0x21c574,_0x1bd0cb),_0x4b20ef=_0x5701a0[_0x5701a0[_0x58ac('0x10c')]-0x1],_0x3f8c88=new Map(),_0xd5d226={'model':{},'attributes':{},'changes':[]},_0x196daa=new Set(),_0x119c61=new Map();for(let _0x5ad926=_0x5701a0[_0x58ac('0x10c')]-0x1;_0x5ad926>=0x0;_0x5ad926--){const _0x4d4e03=_0x5701a0[_0x5ad926];for(const _0x25290b of Object[_0x58ac('0xf')](_0x4d4e03[_0x58ac('0x35')]))if(_0x4d4e03['diffData'][_0x25290b]['attachChange']){const _0x59d0cd=_0x4d4e03[_0x58ac('0x35')][_0x25290b]['attachChange'];_0x59d0cd[_0x58ac('0xb4')]?(_0x196daa[_0x58ac('0xca')](_0x25290b),_0x119c61['has'](_0x25290b)&&_0x119c61[_0x58ac('0xfb')](_0x25290b)[_0x58ac('0xba')]==_0x59d0cd[_0x58ac('0xba')]?_0x119c61['delete'](_0x25290b):_0x119c61['set'](_0x25290b,_0x59d0cd)):_0x119c61[_0x58ac('0xbb')](_0x25290b)?(_0x196daa[_0x58ac('0xa2')](_0x25290b),_0x119c61[_0x58ac('0xa2')](_0x25290b)):(_0x196daa[_0x58ac('0xca')](_0x25290b),_0x119c61['set'](_0x25290b,_0x59d0cd));}else _0x196daa[_0x58ac('0xca')](_0x25290b);}for(const _0x151ff8 of _0x196daa){const _0x46a2c5=_0x119c61[_0x58ac('0xbb')](_0x151ff8)&&!_0x119c61[_0x58ac('0xfb')](_0x151ff8)['isAttached'];let _0x4f5348=_0x46a2c5?_0x5701a0['length']-0x1:0x0;const _0x286770=_0x46a2c5?-0x1:0x1;for(;_0x5701a0[_0x4f5348];){const _0x5a442c=_0x5701a0[_0x4f5348];if(_0x5a442c[_0x58ac('0x35')][_0x151ff8]){const _0x252026=_0x46a2c5?_0x5a442c[_0x58ac('0x35')][_0x151ff8][_0x58ac('0x51')]:_0x5a442c[_0x58ac('0x35')][_0x151ff8][_0x58ac('0x54')];_0xd5d226[_0x58ac('0x107')][_0x151ff8]=_0x252026?_0x23279f(_0x252026):{};break;}_0x4f5348+=_0x286770;}}for(const _0x11333a of _0x5701a0){_0x11333a[_0x58ac('0x10e')]={};for(const _0x25f98d of _0x11333a['authors'])_0x3f8c88[_0x58ac('0x4c')](_0x25f98d['id'],_0x25f98d);for(const _0x1fae54 of _0x196daa){const _0x510cce=_0x11333a[_0x58ac('0x35')][_0x1fae54]?_0x11333a[_0x58ac('0x35')][_0x1fae54][_0x58ac('0x39')]:'[]',_0x5ba613=_0x11333a[_0x58ac('0x35')][_0x1fae54]?_0x11333a[_0x58ac('0x35')][_0x1fae54]['deletions']:'[]';_0x11333a[_0x58ac('0x10e')][_0x1fae54]={'insertions':this[_0x58ac('0x55')](_0x510cce),'deletions':this[_0x58ac('0x55')](_0x5ba613)};}}for(const _0x37a1f1 of _0x196daa){let _0x49497f=null,_0x5f22c6=0x0;const _0x342018=new Map(Array[_0x58ac('0x93')](_0x21c574[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x39')]['markers'])['filter'](([_0x2262a5])=>!_0x2262a5[_0x58ac('0xf7')](_0x58ac('0xc2'))));let _0x120f32=0x0;for(const _0x15d714 of _0x5701a0){const _0x157319=this[_0x58ac('0x10')](_0x15d714[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x39')]);_0x15d714==_0x21c574?(_0x49497f=_0x157319,_0x5f22c6=_0x49497f[_0x58ac('0x10c')],_0x49497f['forEach'](_0x21dd85=>{_0x21dd85['id']=_0x120f32++;}),this[_0x58ac('0x71')](_0x49497f)):this[_0x58ac('0x3c')](_0x49497f,_0x157319);const _0x23ba1f=_0x49497f[_0x58ac('0x5e')](_0x3dfebd=>!_0x3dfebd[_0x58ac('0x62')])[_0x58ac('0x110')](_0x4439fc=>_0x4439fc['id']);let _0x3dc4ef=0x0;const _0x56bafe=this[_0x58ac('0x10')](_0x15d714[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x83')]);_0x56bafe[_0x58ac('0xb8')](_0x1db78f=>{_0x1db78f['isRemoved']?_0x1db78f['id']=_0x5f22c6++:_0x1db78f['id']=_0x23ba1f[_0x3dc4ef++];}),this[_0x58ac('0x71')](_0x56bafe),this[_0x58ac('0x1b')](_0x49497f,_0x58ac('0x62')),this[_0x58ac('0x1b')](_0x56bafe,_0x58ac('0xb3')),_0x15d714==_0x21c574&&this[_0x58ac('0x78')](_0x49497f,_0x342018),_0x49497f=this[_0x58ac('0xdd')](_0x49497f,_0x56bafe),this[_0x58ac('0xce')](_0x49497f),this[_0x58ac('0x1b')](_0x49497f,_0x58ac('0xb3'));}_0x49497f=_0x49497f[_0x58ac('0x5e')](_0x411f28=>!(_0x411f28[_0x58ac('0x62')]&&_0x411f28[_0x58ac('0xb3')]));const _0x36ca70=new Map(_0x4b20ef[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x83')][_0x58ac('0x21')]),_0x11df2c=new Set(_0x342018[_0x58ac('0xf')]());for(const _0x2bb963 of _0x36ca70[_0x58ac('0xf')]())_0x11df2c[_0x58ac('0xa2')](_0x2bb963);this[_0x58ac('0x82')](_0x49497f,_0x11df2c),this[_0x58ac('0x33')](_0x49497f),_0x49497f=this['_removeMissingPairs'](_0x49497f),_0x49497f=this[_0x58ac('0xdf')](_0x49497f),_0x49497f=this[_0x58ac('0xd7')](_0x49497f);const {root:_0x5d7354,changes:_0x342df1}=this[_0x58ac('0xe7')](_0x49497f,_0x3f8c88,_0x37a1f1);_0xd5d226['model'][_0x37a1f1]=_0x5d7354;const _0x1a5eb3=_0x119c61[_0x58ac('0xfb')](_0x37a1f1);if(_0x1a5eb3){const _0x35216d=_0x3f8c88[_0x58ac('0xfb')](_0x1a5eb3[_0x58ac('0xba')]),_0x21b813=new _0x55c7f1({'author':_0x35216d,'type':_0x1a5eb3['isAttached']?_0x58ac('0xca'):_0x58ac('0x87'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37a1f1});_0x342df1[_0x58ac('0x5c')](_0x21b813),_0xd5d226[_0x58ac('0x107')][_0x37a1f1][_0x58ac('0x45')]=_0x21b813['id'];}_0xd5d226[_0x58ac('0x36')]=_0xd5d226['changes'][_0x58ac('0x29')](_0x342df1);}return _0xd5d226;}[_0x58ac('0x78')](_0x467a63,_0x423b73){for(let _0x1ac811=0x0;_0x1ac811<_0x467a63[_0x58ac('0x10c')];_0x1ac811++)for(const [_0x310ad2,_0xcb0374]of _0x423b73)_0xcb0374[_0x58ac('0xf5')][_0x58ac('0xf4')](_0x467a63[_0x1ac811]['previousPosition'])&&_0x467a63[_0x1ac811]['markersStart']['push'](_0x310ad2),_0xcb0374[_0x58ac('0x73')][_0x58ac('0xf4')](_0x467a63[_0x1ac811][_0x58ac('0x66')])&&_0x467a63[_0x1ac811][_0x58ac('0x18')][_0x58ac('0xf2')](_0x310ad2);}[_0x58ac('0xdd')](_0x2f0139,_0x3e1ca6){let _0x1cea2e=[],_0x2c11df=0x0,_0x2b8555=0x0;for(;_0x2c11df<_0x2f0139['length']||_0x2b8555<_0x3e1ca6[_0x58ac('0x10c')];){const _0x28b8aa=_0x2f0139[_0x2c11df]||{},_0x1c1221=_0x3e1ca6[_0x2b8555]||{};if(_0x28b8aa['id']==_0x1c1221['id'])_0x2c11df++,_0x2b8555++,_0x1cea2e[_0x58ac('0xf2')](_0x28b8aa);else{if(_0x1c1221[_0x58ac('0xb3')]&&_0x28b8aa[_0x58ac('0x62')]){const {commonTape:_0x71ffca,iEnd:_0x3b9b7f,jEnd:_0x3eb4f9}=this[_0x58ac('0xed')](_0x2f0139,_0x2c11df,_0x3e1ca6,_0x2b8555);_0x1cea2e=_0x1cea2e[_0x58ac('0x29')](_0x71ffca),_0x2c11df=_0x3b9b7f,_0x2b8555=_0x3eb4f9;}else _0x1c1221[_0x58ac('0xb3')]?(_0x2b8555++,_0x1cea2e[_0x58ac('0xf2')](_0x1c1221)):(_0x2c11df++,_0x1cea2e['push'](_0x28b8aa));}}return _0x1cea2e;}[_0x58ac('0x82')](_0x2853bd,_0x1e1036){const _0x3919e9=[];for(let _0x2d7cf2=0x0;_0x2d7cf2<_0x2853bd[_0x58ac('0x10c')];_0x2d7cf2++){for(let _0x33f6da=0x0;_0x33f6da<_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x58ac('0x10c')];_0x33f6da++){const _0x49e47d=_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x33f6da];if(!_0x1e1036[_0x58ac('0xbb')](_0x49e47d))continue;const {group:_0x466cb8,type:_0x4dfdd8,authorId:_0x17e115}=_0x56ef27(_0x49e47d);'revision-suggestion'!=_0x466cb8||_0x58ac('0xfd')!=_0x4dfdd8&&'deletion'!=_0x4dfdd8||(_0x3919e9[_0x58ac('0x5c')]({'type':_0x4dfdd8,'name':_0x49e47d,'userId':_0x17e115}),_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x58ac('0x2c')](_0x33f6da,0x1),_0x33f6da--);}_0x17f059(_0x2853bd[_0x2d7cf2]);for(let _0x384861=0x0;_0x384861<_0x2853bd[_0x2d7cf2]['markersEnd'][_0x58ac('0x10c')];_0x384861++){const _0xe0ee5e=_0x2853bd[_0x2d7cf2][_0x58ac('0x18')][_0x384861];if(!_0x1e1036[_0x58ac('0xbb')](_0xe0ee5e))continue;const {group:_0x5511b0,type:_0x535b1e}=_0x56ef27(_0xe0ee5e);if(_0x58ac('0x17')!=_0x5511b0||'insertion'!=_0x535b1e&&_0x58ac('0x103')!=_0x535b1e)continue;_0x2853bd[_0x2d7cf2]['markersEnd'][_0x58ac('0x2c')](_0x384861,0x1),_0x384861--;const _0x80851f=_0x3919e9[_0x58ac('0x6d')](_0x32c434=>_0x32c434[_0x58ac('0x11a')]==_0xe0ee5e);_0x80851f>-0x1&&_0x3919e9[_0x58ac('0x2c')](_0x80851f,0x1);}}function _0x56ef27(_0x46f559){const _0x40c6bd=_0x46f559[_0x58ac('0x26')](':');return{'group':_0x40c6bd[0x0],'type':_0x40c6bd[0x1],'subType':_0x40c6bd['length']>=0x5?_0x40c6bd[0x2]:null,'id':_0x40c6bd['length']<0x5?_0x40c6bd[0x2]:_0x40c6bd[0x3],'authorId':_0x40c6bd['length']<0x5?_0x40c6bd[0x3]:_0x40c6bd[0x4],'markerCount':0x6==_0x40c6bd[_0x58ac('0x10c')]?_0x40c6bd[0x5]:null};}function _0x17f059(_0x1659ff){for(let _0x352e4e=0x0;_0x352e4e<_0x3919e9[_0x58ac('0x10c')];_0x352e4e++){if(_0x1659ff[_0x58ac('0x62')]&&_0x58ac('0xfd')==_0x3919e9[_0x352e4e][_0x58ac('0x3e')])return _0x1659ff[_0x58ac('0x4e')]=_0x3919e9[_0x352e4e],void delete _0x1659ff[_0x58ac('0x62')];if(!_0x1659ff[_0x58ac('0x62')]&&!_0x1659ff['isRemoved']&&_0x58ac('0x103')==_0x3919e9[_0x352e4e][_0x58ac('0x3e')])return void(_0x1659ff[_0x58ac('0x1a')]=_0x3919e9[_0x352e4e]);}}}[_0x58ac('0x1b')](_0x63f6c6,_0x130ec5){let _0x301966=0x0,_0x39e407=!0x1;const _0x2196fc=new Map();for(const _0x18787f of _0x63f6c6)_0x18787f[_0x130ec5]?_0x39e407&&(_0x301966++,_0x39e407=!0x1):(_0x301966++,_0x39e407=!0x0),_0x2196fc[_0x58ac('0x4c')](_0x18787f['id'],_0x301966);for(let _0x4f8a38=0x0;_0x4f8a38<_0x63f6c6['length'];_0x4f8a38++){if(_0x58ac('0xb3')==_0x130ec5&&_0x63f6c6[_0x4f8a38][_0x58ac('0x62')]||_0x58ac('0x62')==_0x130ec5&&_0x63f6c6[_0x4f8a38][_0x58ac('0xb3')])continue;if('text'==_0x63f6c6[_0x4f8a38]['type']){_0x63f6c6[_0x4f8a38][_0x58ac('0xbc')]=0x0;continue;}const _0x4b4f7d=_0x2196fc[_0x58ac('0xfb')](_0x63f6c6[_0x4f8a38]['pairId']),_0x25c6b0=_0x2196fc[_0x58ac('0xfb')](_0x63f6c6[_0x4f8a38]['id']);_0x63f6c6[_0x4f8a38][_0x58ac('0xbc')]=_0x4b4f7d-_0x25c6b0;}}[_0x58ac('0x69')](_0x45e9e5,_0x6d9e8f,_0x1b6709=!0x1){const _0x41df1e=[];let _0xdb2a5f=this['repository'][_0x58ac('0x5b')](_0x45e9e5),_0xd86318=this[_0x58ac('0x10f')][_0x58ac('0x5b')](_0x6d9e8f);for(-0x1==_0xd86318&&(_0xd86318=this[_0x58ac('0x10f')]['_revisions'][_0x58ac('0x10c')],_0x1b6709=!0x1);_0xdb2a5f<_0xd86318;)_0x41df1e[_0x58ac('0xf2')](this[_0x58ac('0x10f')][_0x58ac('0xb5')](_0xdb2a5f)),_0xdb2a5f++;return _0x1b6709&&_0x41df1e[_0x58ac('0xf2')](this[_0x58ac('0x10f')][_0x58ac('0xb5')](_0xdb2a5f)),_0x41df1e;}[_0x58ac('0xed')](_0x62fdbb,_0x56a3c7,_0x4b2b78,_0x35d29d){const _0x3134f6=this[_0x58ac('0x5')][_0x58ac('0x10e')]['schema'];let _0x332bd6=_0x56a3c7;for(;_0x62fdbb[_0x332bd6]&&_0x62fdbb[_0x332bd6][_0x58ac('0x62')];)_0x332bd6++;let _0x497279=_0x35d29d;for(;_0x4b2b78[_0x497279]&&_0x4b2b78[_0x497279][_0x58ac('0xb3')];)_0x497279++;_0x4968ee(_0x62fdbb,_0x56a3c7,_0x332bd6),_0x4968ee(_0x4b2b78,_0x35d29d,_0x497279);const _0x5cbad6=_0x4b2b78[_0x58ac('0xea')](_0x35d29d,_0x497279)['concat'](_0x62fdbb[_0x58ac('0xea')](_0x56a3c7,_0x332bd6));return _0x5cbad6[_0x58ac('0xee')]((_0x40fb56,_0x2c4f9a)=>_0x40fb56['side']!=_0x2c4f9a[_0x58ac('0x9f')]?_0x40fb56['side']-_0x2c4f9a[_0x58ac('0x9f')]:_0x40fb56[_0x58ac('0x0')]!=_0x2c4f9a[_0x58ac('0x0')]?_0x40fb56[_0x58ac('0x0')]-_0x2c4f9a[_0x58ac('0x0')]:_0x40fb56[_0x58ac('0xbc')]!=_0x2c4f9a['distance']?_0x2c4f9a['distance']-_0x40fb56[_0x58ac('0xbc')]:!!_0x40fb56['isAdded']!=!!_0x2c4f9a[_0x58ac('0x62')]?-0x1==_0x40fb56['side']||0x0==_0x40fb56[_0x58ac('0x9f')]?_0x40fb56['isAdded']?-0x1:0x1:_0x40fb56[_0x58ac('0x62')]?0x1:-0x1:_0x40fb56[_0x58ac('0x65')]-_0x2c4f9a[_0x58ac('0x65')]),{'commonTape':_0x5cbad6,'iEnd':_0x332bd6,'jEnd':_0x497279};function _0x4968ee(_0x853c00,_0x4b13b8,_0x55d09f){let _0x4b98fb=-0x1,_0x3de769=Number['POSITIVE_INFINITY'],_0x163814=!0x0;for(let _0x490ee3=_0x4b13b8;_0x490ee3<_0x55d09f;_0x490ee3++)if(_0x3134f6['isInline'](_0x853c00[_0x490ee3]['item'])||(_0x163814=!0x1),_0x853c00[_0x490ee3]['item'][_0x58ac('0x72')]<_0x4b13b8&&(_0x4b98fb=_0x490ee3),_0x853c00[_0x490ee3][_0x58ac('0x11f')][_0x58ac('0xab')]>=_0x55d09f){_0x3de769=_0x490ee3;break;}_0x163814&&(_0x4b98fb=_0x55d09f-0x1);for(let _0x5ce0d0=_0x4b13b8;_0x5ce0d0<_0x55d09f;_0x5ce0d0++)_0x853c00[_0x5ce0d0][_0x58ac('0x9f')]=_0x5ce0d0<=_0x4b98fb?-0x1:_0x5ce0d0<_0x3de769?0x0:0x1,_0x853c00[_0x5ce0d0][_0x58ac('0x65')]=_0x5ce0d0;let _0x3e9377=0x0;for(let _0x43c43f=_0x4b13b8;_0x43c43f<=_0x4b98fb;_0x43c43f++)0x0==_0x853c00[_0x43c43f][_0x58ac('0xbc')]?_0x853c00[_0x43c43f][_0x58ac('0x0')]=_0x3e9377:(_0x3e9377++,_0x853c00[_0x43c43f][_0x58ac('0x0')]=_0x3e9377,_0x3e9377++);for(let _0x1a3186=_0x4b13b8;_0x1a3186<_0x55d09f;_0x1a3186++)0x0==_0x853c00[_0x1a3186][_0x58ac('0x9f')]&&(_0x853c00[_0x1a3186][_0x58ac('0x0')]=_0x3e9377);_0x3e9377=0x0;for(let _0x5e01e9=_0x55d09f-0x1;_0x5e01e9>=_0x3de769;_0x5e01e9--)0x0==_0x853c00[_0x5e01e9][_0x58ac('0xbc')]?_0x853c00[_0x5e01e9]['level']=_0x3e9377:(_0x3e9377--,_0x853c00[_0x5e01e9]['level']=_0x3e9377,_0x3e9377--);}}['_fixObsoleteTags'](_0x393041){const _0x35dd44=new Map(),_0x31b135=this[_0x58ac('0x5')][_0x58ac('0x10e')]['schema'];for(let _0x1f1451=0x1;_0x1f1451<_0x393041[_0x58ac('0x10c')];_0x1f1451++){let _0x5c2ed6,_0x10af6a,_0x351a0d;const _0x4bbd49=_0x393041[_0x1f1451],_0x1e1426=_0x393041[_0x1f1451-0x1];if(_0x58ac('0xcb')==_0x4bbd49['type'])continue;if(_0x4bbd49[_0x58ac('0x3e')]!=_0x1e1426[_0x58ac('0x3e')])continue;if(!_0x31b135['isBlock'](_0x1e1426[_0x58ac('0x11f')])||_0x31b135[_0x58ac('0x75')](_0x1e1426['item']))continue;if(!_0x31b135[_0x58ac('0x3d')](_0x4bbd49[_0x58ac('0x11f')])||_0x31b135[_0x58ac('0x75')](_0x4bbd49[_0x58ac('0x11f')]))continue;if((_0x393041[_0x1f1451][_0x58ac('0x62')]||_0x393041[_0x1f1451][_0x58ac('0x4e')])&&_0x393041[_0x1f1451-0x1][_0x58ac('0xb3')])_0x5c2ed6=_0x393041[_0x1f1451],_0x10af6a=_0x393041[_0x1f1451-0x1],_0x351a0d=_0x1f1451-0x1;else{if(!_0x393041[_0x1f1451][_0x58ac('0xb3')]||!_0x393041[_0x1f1451-0x1][_0x58ac('0x62')]&&!_0x393041[_0x1f1451-0x1][_0x58ac('0x4e')])continue;_0x5c2ed6=_0x393041[_0x1f1451-0x1],_0x10af6a=_0x393041[_0x1f1451],_0x351a0d=_0x1f1451;}const _0x1189b2=_0x5c2ed6['level']==_0x10af6a[_0x58ac('0x0')],_0x380787=Math['abs'](_0x5c2ed6[_0x58ac('0x0')])<Math['abs'](_0x10af6a['level'])&&0x0==_0x10af6a[_0x58ac('0xbc')];(_0x1189b2||_0x380787)&&(_0x35dd44[_0x58ac('0x4c')](_0x10af6a['id'],_0x5c2ed6['id']),_0x393041[_0x58ac('0x2c')](_0x351a0d,0x1),_0x1f1451--,_0x5c2ed6[_0x58ac('0x62')]=!0x1);}for(let _0x207f1d=0x0;_0x207f1d<_0x393041[_0x58ac('0x10c')];_0x207f1d++)_0x35dd44[_0x58ac('0xbb')](_0x393041[_0x207f1d][_0x58ac('0xf1')])&&(_0x393041[_0x207f1d][_0x58ac('0xf1')]=_0x35dd44['get'](_0x393041[_0x207f1d][_0x58ac('0xf1')]));}['_removeMissingPairs'](_0x1cd094){const _0x546116=new Set(_0x1cd094[_0x58ac('0x110')](_0x25ca2e=>_0x25ca2e['id']));for(let _0x413927=0x0;_0x413927<_0x1cd094[_0x58ac('0x10c')];_0x413927++)_0x546116[_0x58ac('0xbb')](_0x1cd094[_0x413927][_0x58ac('0xf1')])||0x0==_0x1cd094[_0x413927][_0x58ac('0xbc')]||(_0x1cd094[_0x413927]['isIncorrect']=!0x0);return _0x1cd094[_0x58ac('0x5e')](_0x17e3d3=>!_0x17e3d3[_0x58ac('0x49')]);}['_markMismatchedRemovedTags'](_0x274bd7){const _0xf7da83=new Set();for(let _0x51457d=0x0;_0x51457d<_0x274bd7['length'];_0x51457d++){if(_0xf7da83['has'](_0x274bd7[_0x51457d]['id'])&&_0x274bd7[_0x51457d]['isRemoved']&&(_0x274bd7[_0x51457d][_0x58ac('0x49')]=!0x0),_0x274bd7[_0x51457d][_0x58ac('0x49')])continue;if(0x0==_0x274bd7[_0x51457d][_0x58ac('0xbc')])continue;if(_0x58ac('0xc5')!=_0x274bd7[_0x51457d][_0x58ac('0x3e')])continue;if(null==_0x274bd7[_0x51457d][_0x58ac('0xf1')])continue;let _0x244182=_0x51457d+0x1,_0x3465dc=0x0;for(;_0x274bd7[_0x244182]['id']!=_0x274bd7[_0x51457d]['pairId'];)_0x58ac('0xc5')==_0x274bd7[_0x244182][_0x58ac('0x3e')]?_0x3465dc++:_0x58ac('0x15')==_0x274bd7[_0x244182][_0x58ac('0x3e')]&&_0x3465dc--,_0x244182++;if(0x0!=_0x3465dc){if(_0x274bd7[_0x51457d][_0x58ac('0xb3')])_0x274bd7[_0x51457d][_0x58ac('0x49')]=!0x0;else for(;_0x244182!=_0x51457d;)_0x274bd7[_0x244182][_0x58ac('0xb3')]&&0x0!=_0x274bd7[_0x244182][_0x58ac('0xbc')]&&(_0x274bd7[_0x244182][_0x58ac('0x49')]=!0x0,_0xf7da83[_0x58ac('0xca')](_0x274bd7[_0x244182][_0x58ac('0xf1')])),_0x244182--;}}return _0x274bd7['filter'](_0x52d084=>!_0x52d084[_0x58ac('0x49')]);}['_removeUnsupportedChanges'](_0x12f303){const _0x56c854=this[_0x58ac('0x5')]['model'][_0x58ac('0x6c')];for(let _0x23d5f6=0x0;_0x23d5f6<_0x12f303[_0x58ac('0x10c')];_0x23d5f6++){if(!(_0x12f303[_0x23d5f6][_0x58ac('0x62')]||_0x12f303[_0x23d5f6][_0x58ac('0x4e')]||_0x12f303[_0x23d5f6][_0x58ac('0xb3')]||_0x12f303[_0x23d5f6][_0x58ac('0x1a')]))continue;if(0x0==_0x12f303[_0x23d5f6][_0x58ac('0xbc')])continue;const _0x283e0e=_0x12f303[_0x23d5f6][_0x58ac('0x11f')];_0x56c854[_0x58ac('0x3d')](_0x283e0e)||_0x56c854[_0x58ac('0x75')](_0x283e0e)||(_0x12f303[_0x23d5f6][_0x58ac('0x62')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x62')],_0x12f303[_0x23d5f6][_0x58ac('0x4e')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x4e')],_0x12f303[_0x23d5f6][_0x58ac('0x1a')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x1a')],_0x12f303[_0x23d5f6][_0x58ac('0xb3')]&&(_0x12f303[_0x23d5f6][_0x58ac('0x49')]=!0x0));}return _0x12f303[_0x58ac('0x5e')](_0x47109b=>!_0x47109b['isIncorrect']);}['_makeModelFromTape'](_0x204f9b,_0x234e87,_0x3d7390){const _0x436aeb=new _0x5b17ee(),_0x3b93a6=[],_0x453e3d=new Map(),_0x532914=this[_0x58ac('0x5')][_0x58ac('0x10e')],_0x1d130f=_0x532914[_0x58ac('0x6c')],_0x2db175=[_0x436aeb],_0x5bd336={},_0x3cb789={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e9ba8=null;const _0x1061ca=[0x0];for(let _0x7c9fa2=0x0;_0x7c9fa2<_0x204f9b[_0x58ac('0x10c')];_0x7c9fa2++){let _0x271956,_0x4cc52b;if(_0x58ac('0xc5')===_0x204f9b[_0x7c9fa2][_0x58ac('0x3e')]){_0x271956=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca);const _0x13f3c1=new _0x6d2216(_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x11a')],_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')]['getAttributes']());_0x2db175[0x0][_0x58ac('0x4')](_0x13f3c1),_0x1061ca[_0x58ac('0xf2')](0x0),_0x2db175[_0x58ac('0x5c')](_0x13f3c1),_0x4cc52b=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca),_0x5e9ba8=null;}else{if('elementEnd'===_0x204f9b[_0x7c9fa2][_0x58ac('0x3e')])_0x2db175[_0x58ac('0x89')](),_0x271956=_0x532914['createPositionFromPath'](_0x436aeb,_0x1061ca),_0x1061ca['pop'](),_0x1061ca[_0x1061ca[_0x58ac('0x10c')]-0x1]++,_0x4cc52b=_0x532914['createPositionFromPath'](_0x436aeb,_0x1061ca),_0x5e9ba8=null;else{if(_0x271956=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca),_0x5e9ba8&&_0x256491(_0x5e9ba8,_0x204f9b[_0x7c9fa2]['item']))_0x5e9ba8[_0x58ac('0x40')]+=_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')]['data'];else{const _0x50ac4e=new _0x11bd6d(_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x9')],_0x204f9b[_0x7c9fa2]['item'][_0x58ac('0x8')]());_0x2db175[0x0][_0x58ac('0x4')](_0x50ac4e),_0x5e9ba8=_0x50ac4e;}_0x1061ca[_0x1061ca[_0x58ac('0x10c')]-0x1]+=_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x111')],_0x4cc52b=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca);}}for(const _0x42aad9 of _0x204f9b[_0x7c9fa2][_0x58ac('0x53')])_0x453e3d['set'](_0x42aad9,{'start':_0x271956,'end':null});_0x5b7fb1(_0x58ac('0x1a'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0x4e'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0xb3'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0x62'),_0x7c9fa2,_0x271956,_0x4cc52b);for(const _0x37a4bb of _0x204f9b[_0x7c9fa2]['markersEnd']){_0x453e3d[_0x58ac('0xfb')](_0x37a4bb)['end']=_0x4cc52b;}}for(const [_0x2d1279,_0x1f0a4b]of _0x453e3d){const _0x4a16f7=this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0x120')](_0x1f0a4b[_0x58ac('0xf5')],_0x1f0a4b[_0x58ac('0x73')]);_0x436aeb[_0x58ac('0x21')][_0x58ac('0x4c')](_0x2d1279,_0x4a16f7);}return _0x3b93a6[_0x58ac('0xee')]((_0xd21946,_0xf09d47)=>{const _0x5e31f8=_0x436aeb[_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0xd21946['id']),_0x4d4186=_0x436aeb[_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0xf09d47['id']);return _0x5e31f8[_0x58ac('0xf5')][_0x58ac('0x116')](_0x4d4186[_0x58ac('0xf5')])?-0x1:_0x5e31f8[_0x58ac('0xf5')][_0x58ac('0x97')](_0x4d4186[_0x58ac('0xf5')])?0x1:_0x5e31f8[_0x58ac('0x73')][_0x58ac('0x116')](_0x4d4186[_0x58ac('0x73')])?-0x1:_0x5e31f8[_0x58ac('0x73')][_0x58ac('0x97')](_0x4d4186[_0x58ac('0x73')])?0x1:_0x58ac('0xca')===_0xd21946[_0x58ac('0x3e')]?-0x1:0x1;}),{'root':_0x436aeb,'changes':_0x3b93a6};function _0x5b7fb1(_0x285572,_0x4fa179,_0xc6c0de,_0x5ef710){const _0x6ff325=!!_0x204f9b[_0x4fa179][_0x285572],_0x432ee4=_0x6ff325?_0x204f9b[_0x4fa179][_0x285572]['userId']:null,_0x39f28c=_0x4fa179===_0x204f9b['length']-0x1,_0x12b794=_0x3cb789[_0x285572][0x0],_0x40e393=_0x1d130f['isObject'](_0x204f9b[_0x4fa179]['item']);!_0x5bd336[_0x285572]&&_0x6ff325?_0x5bd336[_0x285572]={'start':_0xc6c0de,'tapeItem':_0x204f9b[_0x4fa179],'userId':_0x432ee4,'type':_0x285572}:_0x5bd336[_0x285572]&&!_0x6ff325?(_0x5bd336[_0x285572][_0x58ac('0x73')]=_0xc6c0de,_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]=null):_0x5bd336[_0x285572]&&_0x6ff325&&_0x5bd336[_0x285572][_0x58ac('0xba')]!==_0x432ee4&&(_0x5bd336[_0x285572][_0x58ac('0x73')]=_0xc6c0de,_0x12b794&&_0x12b794[_0x58ac('0xba')]===_0x5bd336[_0x285572][_0x58ac('0xba')]||_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]={'start':_0xc6c0de,'tapeItem':_0x204f9b[_0x4fa179],'userId':_0x432ee4,'type':_0x285572}),_0x5bd336[_0x285572]&&_0x40e393&&(_0x58ac('0xc5')!==_0x204f9b[_0x4fa179][_0x58ac('0x3e')]||_0x12b794&&_0x12b794[_0x58ac('0xba')]===_0x432ee4||_0x3cb789[_0x285572][_0x58ac('0x5c')]({'userId':_0x432ee4,'object':_0x204f9b[_0x4fa179][_0x58ac('0x11f')],'change':_0x5bd336[_0x285572]}),_0x58ac('0x15')===_0x204f9b[_0x4fa179][_0x58ac('0x3e')]&&_0x12b794&&_0x12b794[_0x58ac('0x3')]===_0x204f9b[_0x4fa179][_0x58ac('0x11f')]&&(_0x3cb789[_0x285572][_0x58ac('0x89')](),_0x5bd336[_0x285572]=_0x12b794['change'])),_0x5bd336[_0x285572]&&_0x39f28c&&(_0x5bd336[_0x285572]['end']=_0x5ef710,_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]=null);}function _0x485d04({start:_0x39061e,end:_0x51f84c,tapeItem:_0x2e9e03,userId:_0x1a8739,type:_0x20b659}){const _0x4008b0=_0x2e9e03['item'],_0x464975=_0x532914[_0x58ac('0x6c')][_0x58ac('0x3d')](_0x4008b0)&&!_0x532914[_0x58ac('0x6c')][_0x58ac('0x75')](_0x4008b0),_0x490c90=_0x39061e['nodeAfter']==_0x51f84c[_0x58ac('0x98')]&&_0x51f84c[_0x58ac('0xec')];if(_0x464975&&_0x490c90)return;const _0xa6c584=_0x532914[_0x58ac('0x120')](_0x39061e,_0x51f84c),_0x14cfc7=_0x234e87[_0x58ac('0xfb')](_0x1a8739),_0xda4ae9=new _0x55c7f1({'author':_0x14cfc7,'type':_0x58ac('0x62')==_0x20b659||_0x58ac('0x4e')==_0x20b659?_0x58ac('0xca'):'remove','data':{'isSuggestion':_0x58ac('0x4e')==_0x20b659||'isRemoveSuggestion'==_0x20b659},'createdAt':new Date(),'rootName':_0x3d7390});_0x3b93a6[_0x58ac('0xf2')](_0xda4ae9),_0x436aeb['markers'][_0x58ac('0x4c')](_0x58ac('0xc2')+_0xda4ae9['id'],_0xa6c584);}function _0x256491(_0x308dcf,_0x4d5ef6){const _0x5a52be=_0x308dcf[_0x58ac('0x8')](),_0x15d78e=_0x4d5ef6[_0x58ac('0x8')]();for(const _0x3f462a of _0x5a52be){if(_0x3f462a[0x1]!==_0x4d5ef6[_0x58ac('0xc1')](_0x3f462a[0x0]))return!0x1;_0x15d78e[_0x58ac('0x59')]();}return _0x15d78e[_0x58ac('0x59')]()['done'];}}['_setConversion'](){this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('upcast')[_0x58ac('0x100')]({'view':'revision'}),this[_0x58ac('0x5')][_0x58ac('0x63')]['for'](_0x58ac('0x8e'))[_0x58ac('0xcc')]({'model':_0x58ac('0x47'),'view':_0x28d340=>{const _0x5befc6=_0x28d340[_0x58ac('0x27')][_0x58ac('0x26')](':')[0x1],_0x4ee5db=this[_0x58ac('0xa7')](_0x5befc6);if(!_0x4ee5db)return null;const _0x2b8571='add'==_0x4ee5db[_0x58ac('0x3e')]?'insertion':_0x58ac('0x103'),_0x28faad=[_0x58ac('0x42'),_0x58ac('0xc0')+_0x2b8571];return _0x4ee5db[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0x28faad[_0x58ac('0xf2')]('ck-suggestion-marker-'+_0x2b8571+'-new'),this[_0x58ac('0x9e')]==_0x4ee5db&&_0x28faad[_0x58ac('0xf2')](_0x58ac('0x7')),{'classes':_0x28faad,'attributes':{'data-change-id':_0x5befc6}};}}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))['add'](_0x40ef9b=>{_0x40ef9b['on'](_0x58ac('0xd0'),(_0x41f2ae,_0x1a5321,_0x4341c8)=>{const _0x287067=_0x1a5321[_0x58ac('0x122')][_0x58ac('0x67')](0x0);if(!_0x287067||!_0x287067['is'](_0x58ac('0xc8'),'code'))return;if(!_0x4341c8['consumable']['consume'](_0x287067,{'attributes':[_0x58ac('0xd8'),'vid_end']}))return;const _0x239a61=_0x1a5321[_0x58ac('0x31')][_0x58ac('0xf5')][_0x58ac('0x60')];_0x4341c8['writer']['setAttribute'](_0x58ac('0xd8'),_0x287067[_0x58ac('0xc1')](_0x58ac('0xd8')),_0x239a61),_0x4341c8['writer'][_0x58ac('0x119')](_0x58ac('0x7b'),_0x287067['getAttribute'](_0x58ac('0x7b')),_0x239a61);},{'priority':_0x58ac('0x8a')});}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('upcast')[_0x58ac('0xca')](_0x183431=>{_0x183431['on']('element',(_0x2dbf2a,_0x26005b,_0x5ade65)=>{if(!_0x5ade65[_0x58ac('0x5a')]['consume'](_0x26005b[_0x58ac('0x122')],{'attributes':[_0x58ac('0xd8'),'vid_end']}))return;if(_0x26005b[_0x58ac('0x31')][_0x58ac('0xa1')])return;const _0x12c9d1=_0x26005b[_0x58ac('0x31')]['start'][_0x58ac('0x60')];_0x12c9d1['hasAttribute'](_0x58ac('0xd8'))||_0x12c9d1[_0x58ac('0xfc')]('vid')||(_0x5ade65[_0x58ac('0x123')][_0x58ac('0x119')](_0x58ac('0xd8'),_0x26005b[_0x58ac('0x122')][_0x58ac('0xc1')]('vid_start'),_0x12c9d1),_0x5ade65[_0x58ac('0x123')]['setAttribute'](_0x58ac('0x7b'),_0x26005b[_0x58ac('0x122')][_0x58ac('0xc1')](_0x58ac('0x7b')),_0x12c9d1));},{'priority':_0x58ac('0x8a')});}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x41')]({'view':{'name':_0x58ac('0xff'),'attributes':{'vid':!0x0}},'model':{'key':_0x58ac('0x2d'),'value':_0x3b9134=>_0x3b9134[_0x58ac('0xc1')](_0x58ac('0x2d'))}}),this['editor'][_0x58ac('0x10e')][_0x58ac('0x6c')]['on'](_0x58ac('0xf0'),(_0x3cb2e1,[,_0x3d4a46])=>{[_0x58ac('0xd8'),'vid_end',_0x58ac('0x2d')]['includes'](_0x3d4a46)&&(_0x3cb2e1['return']=!0x0,_0x3cb2e1['stop']());},{'priority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('dataDowncast')['add'](_0x3fe0b8=>{_0x3fe0b8['on'](_0x58ac('0x115'),(_0x24eec3,_0x10faa5,_0xf0c627)=>{if('\x20'!=_0x10faa5['item'][_0x58ac('0x9')]||_0x10faa5[_0x58ac('0x11f')]['parent'][_0x58ac('0x50')]>0x1)return;if(!_0xf0c627[_0x58ac('0x5a')][_0x58ac('0xef')](_0x10faa5[_0x58ac('0x11f')],_0x24eec3['name']))return;const _0x5d87de=_0xf0c627['writer'],_0x27ee8d=_0xf0c627[_0x58ac('0x3b')][_0x58ac('0x34')](_0x10faa5['range']);_0x5d87de[_0x58ac('0xa9')](_0x27ee8d,_0x5d87de[_0x58ac('0x64')](_0x58ac('0xff')));});}),this[_0x58ac('0x5')][_0x58ac('0x63')]['for'](_0x58ac('0x84'))['markerToData']({'model':_0x58ac('0x47')}),this[_0x58ac('0x5')][_0x58ac('0x4a')]['downcastDispatcher']['on'](_0x58ac('0x32'),function(_0x4c63c2){const _0x509d43=_0x4c63c2['plugins'][_0x58ac('0xfb')](_0x58ac('0xe1'));return(_0x3cf00d,_0x9cce55,_0x360afb)=>{const _0x4e8d3b=_0x9cce55[_0x58ac('0x27')][_0x58ac('0x26')](':')[0x1],_0xef9cc1=_0x509d43[_0x58ac('0xa7')](_0x4e8d3b);if(!_0xef9cc1)return null;const _0x352949=_0x58ac('0xca')==_0xef9cc1[_0x58ac('0x3e')]?'split':'merge';if(!_0x360afb[_0x58ac('0x5a')][_0x58ac('0x6e')](_0x9cce55[_0x58ac('0xa8')],_0x3cf00d[_0x58ac('0x11a')]))return;const _0x594361=_0x9cce55['markerRange']['getWalker'](),_0x523217=_0x9cce55[_0x58ac('0xa8')]['start'],_0x51c5b0=_0x4c63c2[_0x58ac('0x10e')]['schema'];let _0x4ed93e=null,_0x6b3045=null,_0x2020bf=!0x1,_0x60f8ea=!0x1;for(const _0x2d4b7d of _0x594361){const _0x1ca31c=_0x2d4b7d[_0x58ac('0x11f')];_0x2020bf=_0x2020bf||_0x51c5b0[_0x58ac('0x88')](_0x1ca31c);const _0xcf032a=_0x360afb[_0x58ac('0x3b')][_0x58ac('0xa3')](_0x1ca31c);if(_0xcf032a&&_0xcf032a['getCustomProperty'](_0x58ac('0xa')))return;_0x58ac('0x15')==_0x2d4b7d[_0x58ac('0x3e')]&&(_0x51c5b0[_0x58ac('0x3d')](_0x1ca31c)&&!_0x51c5b0[_0x58ac('0x75')](_0x1ca31c)&&(_0x1ca31c[_0x58ac('0x6f')]||_0x523217[_0x58ac('0x44')]?_0x4ed93e&&_0x4ed93e[_0x58ac('0x98')]==_0x1ca31c||(_0x4ed93e=_0x1ca31c,_0x3f980c(_0x2d4b7d[_0x58ac('0xd5')]),_0x60f8ea=!0x0):_0x6b3045=_0x6b3045||_0x2d4b7d[_0x58ac('0xd5')]));}function _0x3f980c(_0x511601){const _0x542a34=_0x360afb[_0x58ac('0x123')][_0x58ac('0xa6')]('span',{'class':_0x58ac('0xc0')+_0x352949}),_0x4236b5=_0x360afb[_0x58ac('0x3b')]['toViewPosition'](_0x511601);_0xef9cc1[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0x360afb['writer'][_0x58ac('0x4d')]('ck-suggestion-marker-'+_0x352949+_0x58ac('0xe9'),_0x542a34),_0x509d43[_0x58ac('0x9e')]==_0xef9cc1&&_0x360afb['writer'][_0x58ac('0x4d')](_0x58ac('0x7'),_0x542a34),_0x360afb[_0x58ac('0x123')][_0x58ac('0x81')](_0x4236b5,_0x542a34),_0x360afb[_0x58ac('0x3b')][_0x58ac('0x7c')](_0x542a34,_0x9cce55[_0x58ac('0x27')]);}_0x2020bf||_0x60f8ea||!_0x6b3045||_0x3f980c(_0x6b3045);};}(this[_0x58ac('0x5')]),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0xf6'),(_0x596ee7,_0x17c594,_0x538a9f)=>{const _0x399c69=_0x538a9f[_0x58ac('0x3b')][_0x58ac('0xd9')](_0x17c594[_0x58ac('0x27')]);if(_0x399c69)for(const _0x62480e of _0x399c69)(_0x62480e[_0x58ac('0x90')]('ck-suggestion-marker-split')||_0x62480e[_0x58ac('0x90')](_0x58ac('0x85')))&&(_0x538a9f[_0x58ac('0x3b')]['unbindElementFromMarkerName'](_0x62480e,_0x17c594['markerName']),_0x538a9f[_0x58ac('0x123')][_0x58ac('0x87')](_0x62480e));},{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0x32'),(_0x4d64f3,_0x9a956c,_0xe20cd9)=>{const _0x21aea0=_0x9a956c[_0x58ac('0x27')]['split'](':')[0x1],_0x135a5f=this[_0x58ac('0xa7')](_0x21aea0);if(!_0x135a5f)return null;const _0x44e4c8='add'==_0x135a5f[_0x58ac('0x3e')]?_0x58ac('0x26'):_0x58ac('0x8f');if(_0xe20cd9[_0x58ac('0x5a')][_0x58ac('0x6e')](_0x9a956c[_0x58ac('0xa8')],_0x4d64f3['name']))for(const _0x8f09c of _0x9a956c[_0x58ac('0xa8')][_0x58ac('0x3f')]()){if(!_0x8f09c['is'](_0x58ac('0xc8'),_0x58ac('0xa0')))continue;const _0x73c7f0=_0xe20cd9['writer'][_0x58ac('0xa6')](_0x58ac('0xff'),{'class':_0x58ac('0xc0')+_0x44e4c8}),_0x3fb949=_0xe20cd9[_0x58ac('0x3b')][_0x58ac('0xa5')](this[_0x58ac('0x5')]['model']['createPositionBefore'](_0x8f09c));_0x135a5f[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0xe20cd9[_0x58ac('0x123')][_0x58ac('0x4d')](_0x58ac('0xc0')+_0x44e4c8+_0x58ac('0xe9'),_0x73c7f0),this[_0x58ac('0x9e')]==_0x135a5f&&_0xe20cd9[_0x58ac('0x123')]['addClass'](_0x58ac('0x7'),_0x73c7f0),_0xe20cd9[_0x58ac('0x123')][_0x58ac('0x81')](_0x3fb949,_0x73c7f0),_0xe20cd9[_0x58ac('0x3b')]['bindElementToMarker'](_0x73c7f0,_0x9a956c[_0x58ac('0x27')]);}},{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')]['on'](_0x58ac('0xf9'),()=>{this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xf9')](_0x4c0a8e=>{for(const _0x2be7bd of this['editor']['model'][_0x58ac('0xde')][_0x58ac('0x102')]()){const _0x356df8=this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')][_0x58ac('0x2')](_0x2be7bd),_0x48fce7=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x2be7bd);if(_0x48fce7){const _0x3f045e=_0x356df8[_0x58ac('0xc1')](_0x58ac('0x45'));if(_0x4c0a8e[_0x58ac('0x9d')](_0x58ac('0x117'),_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')]('ck-revision-history-root-add',_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')](_0x58ac('0x6'),_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')](_0x58ac('0x7d'),_0x48fce7),_0x3f045e){const _0x28bbb1=this[_0x58ac('0xa7')](_0x3f045e);if(!_0x28bbb1)return null;_0x4c0a8e[_0x58ac('0x119')](_0x58ac('0x117'),_0x3f045e,_0x48fce7),_0x4c0a8e['addClass'](_0x58ac('0x1c')+_0x28bbb1[_0x58ac('0x3e')],_0x48fce7),this['activeChange']==_0x28bbb1&&_0x4c0a8e['addClass'](_0x58ac('0x7d'),_0x48fce7);}}}});}),this['editor'][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x100')]({'view':_0x58ac('0xe'),'model':_0x416d83=>'revision-comment:'+_0x416d83,'converterPriority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x100')]({'view':_0x58ac('0xd'),'model':_0x375573=>_0x58ac('0x13')+_0x375573,'converterPriority':_0x58ac('0xb2')}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0x84'))[_0x58ac('0x11e')]({'model':_0x58ac('0x17'),'view':_0x3a9cff=>({'name':'suggestion:'+_0x3a9cff,'group':_0x58ac('0x17')}),'converterPriority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0x8e'))['markerToHighlight']({'model':'revision-suggestion','view':_0x30fb83=>{const _0x567587=_0x30fb83['markerName'][_0x58ac('0x26')](':')[0x1];return _0x58ac('0xfd')!=_0x567587&&'deletion'!=_0x567587?null:{'classes':['ck-suggestion-preview-marker',_0x58ac('0x16')+_0x567587]};}}),this[_0x58ac('0x5')]['editing'][_0x58ac('0xe5')]['on'](_0x58ac('0x57'),et(this['editor'],'merge'),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x58ac('0x5')],'split'),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0xb7'),(_0x1a4735,_0xb2e0e4,_0x28bc5e)=>{const _0x592dfb=_0x28bc5e['mapper']['markerNameToElements'](_0xb2e0e4[_0x58ac('0x27')]);if(_0x592dfb)for(const _0x496a92 of _0x592dfb)_0x496a92['is'](_0x58ac('0x2a'))&&(_0x28bc5e['mapper'][_0x58ac('0xe8')](_0x496a92,_0xb2e0e4[_0x58ac('0x27')]),_0x28bc5e[_0x58ac('0x123')][_0x58ac('0x87')](_0x496a92));},{'priority':_0x58ac('0xc7')});}[_0x58ac('0xa7')](_0x582317){return this[_0x58ac('0x30')][_0x58ac('0xfb')](_0x582317);}[_0x58ac('0xa4')](_0x476515){return this[_0x58ac('0xc')]&&this[_0x58ac('0xc')][_0x58ac('0xeb')](),this[_0x58ac('0xc')]=new _0x32aafe(this['editor']['locale'],_0x476515),this[_0x58ac('0xc')];}['_initInteractions'](){this[_0x58ac('0x5')]['model'][_0x58ac('0xde')][_0x58ac('0x28')][_0x58ac('0x3a')](_0x58ac('0x47')),this['on'](_0x58ac('0x6a'),(_0x52af78,_0xb4cdd7,_0x16d83d,_0x50cf7b)=>{_0x50cf7b&&this[_0x58ac('0x68')]['remove'](_0x50cf7b),_0x16d83d&&(this['_balloon'][_0x58ac('0xca')]({'view':_0x16d83d,'stackId':_0x58ac('0x86'),'position':{'target':()=>{const _0xc5472e=this[_0x58ac('0x5')][_0x58ac('0x4a')],_0x3cb93d=this[_0x58ac('0xa7')](_0x16d83d[_0x58ac('0x61')]);let _0x74bbd5;if(_0x3cb93d[_0x58ac('0x9')][_0x58ac('0xd4')]){const _0x447fcf=_0xc5472e[_0x58ac('0x121')]['getDomRoot'](_0x3cb93d['rootName']);_0x74bbd5=Array['from'](_0x447fcf['getClientRects']());}else{const _0x40b5ac=this[_0x58ac('0x5')]['model'][_0x58ac('0x21')][_0x58ac('0xfb')]('revision:'+_0x16d83d['changeId']);_0x74bbd5=Array[_0x58ac('0x93')](_0xc5472e[_0x58ac('0x3b')][_0x58ac('0xd9')](_0x40b5ac['name']))[_0x58ac('0x110')](_0x966357=>_0xc5472e[_0x58ac('0x121')][_0x58ac('0x114')][_0x58ac('0xb9')](_0x966357))[_0x58ac('0x110')](_0x33e51f=>Array[_0x58ac('0x93')](_0x33e51f[_0x58ac('0x8b')]()))[_0x58ac('0x109')]();}if(!this[_0x58ac('0xad')])return _0x74bbd5[0x0];return _0x74bbd5[_0x58ac('0x77')](_0x1a81c6=>_0x1a81c6[_0x58ac('0xf8')]-0x3<=this['_activeViewTarget']['y']&&_0x1a81c6[_0x58ac('0xbe')]+0x3>=this[_0x58ac('0xad')]['y']&&_0x1a81c6[_0x58ac('0xb6')]-0x3<=this[_0x58ac('0xad')]['x']&&_0x1a81c6['right']+0x3>=this[_0x58ac('0xad')]['x'])||_0x74bbd5[0x0];}}}),this[_0x58ac('0x68')][_0x58ac('0x1')]('revisionHistoryLabel'));}),this['on'](_0x58ac('0x10b'),(_0x2d4d08,_0xab5ae5,_0x276717,_0x177b21)=>{this[_0x58ac('0x56')]=_0x276717?this[_0x58ac('0xa4')](_0x276717):null,this[_0x58ac('0x5')]['model'][_0x58ac('0xf9')](()=>{const _0x18ea59=this[_0x58ac('0x5')]['editing'];_0x177b21&&(_0x177b21[_0x58ac('0x9')][_0x58ac('0xd4')]?_0x18ea59[_0x58ac('0x121')][_0x58ac('0xf9')](_0x389933=>{_0x389933[_0x58ac('0xaf')]('ck-revision-history-root--active',_0x18ea59[_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x177b21[_0x58ac('0xae')]));}):_0x18ea59[_0x58ac('0x48')](_0x58ac('0xc2')+_0x177b21['id'])),_0x276717&&(_0x276717[_0x58ac('0x9')]['isOnRoot']?_0x18ea59[_0x58ac('0x121')][_0x58ac('0xf9')](_0x4754f2=>{_0x4754f2[_0x58ac('0x4d')](_0x58ac('0x7d'),_0x18ea59[_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x276717['rootName']));}):_0x18ea59[_0x58ac('0x48')](_0x58ac('0xc2')+_0x276717['id']));});}),this[_0x58ac('0x94')](this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')],_0x58ac('0x14'),(_0x187323,_0x10070a)=>{if(this['activeChange'])return;const _0x53a457=this['_findChangeIdFromDomTarget'](_0x10070a['target']),_0x442a4a=this[_0x58ac('0x30')][_0x58ac('0xfb')](_0x53a457);_0x442a4a?(this[_0x58ac('0xad')]={'x':_0x10070a[_0x58ac('0x7a')]['x'],'y':_0x10070a['domEvent']['y']},this[_0x58ac('0x56')]=this[_0x58ac('0xa4')](_0x442a4a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x58ac('0x94')](this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')],_0x58ac('0x106'),(_0xf1057d,_0x36f4a8)=>{const _0x4fa5a2=this[_0x58ac('0x76')](_0x36f4a8[_0x58ac('0x1f')]),_0x164c80=this[_0x58ac('0x30')]['get'](_0x4fa5a2);_0x164c80?(this[_0x58ac('0xad')]={'x':_0x36f4a8[_0x58ac('0x7a')]['x'],'y':_0x36f4a8[_0x58ac('0x7a')]['y']},_0x164c80===this['activeChange']?this[_0x58ac('0x68')][_0x58ac('0x6b')]():this[_0x58ac('0x9e')]=_0x164c80):(this[_0x58ac('0xad')]=null,this[_0x58ac('0x9e')]=null);});}[_0x58ac('0x76')](_0x4e7c8d){do{const _0x3ac9b3=_0x4e7c8d[_0x58ac('0xc1')](_0x58ac('0x117'));if(_0x3ac9b3)return _0x3ac9b3;_0x4e7c8d=_0x4e7c8d[_0x58ac('0x98')];}while(_0x4e7c8d);return null;}[_0x58ac('0xbf')](){this[_0x58ac('0x5')]['model'][_0x58ac('0xf9')](_0xcfc3b1=>{for(const _0x1e489b of this['editor'][_0x58ac('0x10e')][_0x58ac('0x21')])_0xcfc3b1[_0x58ac('0x20')](_0x1e489b);});}}function et(_0x1bfddb,_0x258667){return(_0x39c1cc,_0xa960a7,_0x4a732c)=>{if(!_0x4a732c['consumable'][_0x58ac('0x6e')](_0xa960a7['markerRange'],_0x39c1cc[_0x58ac('0x11a')]))return;const _0x31629a=_0xa960a7[_0x58ac('0xa8')][_0x58ac('0x46')](),_0x2e0800=_0xa960a7[_0x58ac('0xa8')][_0x58ac('0xf5')],_0x5279c8=_0x1bfddb[_0x58ac('0x10e')][_0x58ac('0x6c')];let _0x529b46=null,_0x4b9b4d=null,_0x1fd6e6=!0x1,_0x42d79e=!0x1;for(const _0x5c3e7f of _0x31629a){const _0x26a3b4=_0x5c3e7f['item'];_0x1fd6e6=_0x1fd6e6||_0x5279c8[_0x58ac('0x88')](_0x26a3b4);const _0x54461f=_0x4a732c[_0x58ac('0x3b')]['toViewElement'](_0x26a3b4);if(_0x54461f&&_0x54461f[_0x58ac('0x91')](_0x58ac('0xa')))return;_0x58ac('0x15')==_0x5c3e7f[_0x58ac('0x3e')]&&(_0x5279c8[_0x58ac('0x3d')](_0x26a3b4)&&!_0x5279c8[_0x58ac('0x75')](_0x26a3b4)&&(_0x26a3b4[_0x58ac('0x6f')]||_0x2e0800[_0x58ac('0x44')]?_0x529b46&&_0x529b46[_0x58ac('0x98')]==_0x26a3b4||(_0x529b46=_0x26a3b4,_0x5b8c82(_0x5c3e7f[_0x58ac('0xd5')]),_0x42d79e=!0x0):_0x4b9b4d=_0x4b9b4d||_0x5c3e7f[_0x58ac('0xd5')]));}function _0x5b8c82(_0x475317){const _0x169ee0=_0x4a732c[_0x58ac('0x3b')][_0x58ac('0xa5')](_0x475317),_0x54cdfe=_0x4a732c[_0x58ac('0x123')][_0x58ac('0xa6')](_0x58ac('0xff'),{'class':_0x58ac('0x16')+_0x258667});_0x4a732c[_0x58ac('0x123')]['insert'](_0x169ee0,_0x54cdfe),_0x4a732c['mapper']['bindElementToMarker'](_0x54cdfe,_0xa960a7[_0x58ac('0x27')]);}_0x1fd6e6||_0x42d79e||!_0x4b9b4d||_0x5b8c82(_0x4b9b4d);};}export class RestoreRevisionCommand extends _0x5b14aa{constructor(_0x375a5c){super(_0x375a5c);const _0xc891f=_0x375a5c[_0x58ac('0x79')][_0x58ac('0xfb')](d);this[_0x58ac('0x58')]=!0x1,this[_0x58ac('0x94')](_0xc891f,_0x58ac('0x104'),()=>this[_0x58ac('0xcd')]()),this[_0x58ac('0x94')](_0xc891f,_0x58ac('0xfe'),()=>this[_0x58ac('0xcd')]());}[_0x58ac('0x70')](){const _0xb592d4=this[_0x58ac('0x5')],_0x5796b8=_0xb592d4[_0x58ac('0x79')][_0x58ac('0xfb')](d),_0x7eb84b=_0x5796b8[_0x58ac('0x11b')]?_0x5796b8['diff'][_0x58ac('0x96')]:null;_0xb592d4['config'][_0x58ac('0xfb')](_0x58ac('0x7e'))['restoreRevisionCallback'](_0x7eb84b);}[_0x58ac('0xcd')](){const {isReady:_0x3dc07e,isEnabled:_0x5dc750}=this[_0x58ac('0x5')][_0x58ac('0x79')][_0x58ac('0xfb')](d);this[_0x58ac('0x9c')]=_0x3dc07e&&_0x5dc750;}}export class ShowChangeCommand extends _0x5b14aa{constructor(_0x2a65e0,{direction:_0x4eb7ed}){super(_0x2a65e0);const _0x3be87e=_0x2a65e0['plugins']['get'](d);this[_0x58ac('0x58')]=!0x1,this['_step']='forward'===_0x4eb7ed?0x1:-0x1,this[_0x58ac('0x94')](_0x3be87e,_0x58ac('0x104'),()=>this['refresh']()),this['listenTo'](_0x3be87e,'change:isEnabled',()=>this[_0x58ac('0xcd')]()),this[_0x58ac('0x94')](_0x3be87e,'change:activeChange',()=>this[_0x58ac('0xcd')]());}[_0x58ac('0x70')](){const _0x5be006=this[_0x58ac('0x5')],_0x90bad4=_0x5be006['plugins'][_0x58ac('0xfb')](d),{isNavigationMode:_0xe5448e,currentChangeNumber:_0x8acb3d}=_0x90bad4;let _0x4dd9b4;if(_0x90bad4[_0x58ac('0x9e')]=_0xe5448e?_0x90bad4[_0x58ac('0xe0')]['changes']['get'](_0x8acb3d+this['_step']):_0x90bad4[_0x58ac('0xe0')][_0x58ac('0x36')][_0x58ac('0xd2')],_0x90bad4[_0x58ac('0x9e')][_0x58ac('0x9')][_0x58ac('0xd4')])_0x4dd9b4=_0x5be006[_0x58ac('0x4a')][_0x58ac('0x121')]['getDomRoot'](_0x90bad4[_0x58ac('0x9e')]['rootName']);else{const _0x51c5df=_0x5be006[_0x58ac('0x10e')][_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0x90bad4['activeChange']['id']);_0x4dd9b4=_0x50d73d(_0x5be006[_0x58ac('0x4a')],_0x51c5df);}_0x69fb6c({'target':_0x4dd9b4,'viewportOffset':0x28});}[_0x58ac('0xcd')](){const {isNavigationMode:_0x5e43ef,currentChangeNumber:_0x489c84,numberOfChanges:_0x5aa8b7,isReady:_0x138782,isEnabled:_0x13a6e3}=this[_0x58ac('0x5')][_0x58ac('0x79')]['get'](d);this[_0x58ac('0x9c')]=!!(_0x13a6e3&&_0x138782&&_0x5aa8b7)&&(!_0x5e43ef||(0x1===this[_0x58ac('0x25')]?_0x489c84<_0x5aa8b7-0x1:_0x489c84>0x0));}}
23
+ const _0x4330=['marked','isEqual','type','diffData','from','return','first','_getChangeFromId','adapter','addMarker:revision','_makeModelFromViewString','abs','revisionHistoryAttachChange','unbindElementFromMarkerName','span','refresh','revision-comment:','insertions','elementEnd','delete','next','change:numberOfChanges','loadRevisionData','model','_getViewObj','restoreRevisionCallback','_data','code','deletions','ck-suggestion-preview-marker','execute','length','vid_end','_removeMissingPairs','toViewRange','isAtEnd','getAttribute','getRevision','consumable','slice','createRange','addRoot','indexOf','_appendChild','pluginName','hasAttribute','ck-suggestion-preview-marker-','vid','getWalker','useFillerType','_sortAndFilterDiffChanges','repository','editing','isOnRoot','data','markerToData','plugins','revisionHistoryLabel','editingDowncast','isLimit','previousPosition','setAttribute','markerName','isCollapsed','parse','isAddSuggestion','nextPosition','_setConversion','comment','ck-revision-history-root-add','updatePosition','attributes','consume','roots','showNextChange','revision-suggestion','top','getDomRoot','WidgetToolbarRepository','_makeTape','isReady','RevisionsRepository','isEnabled','bind','getClientRects','dataToMarker','done','_update','_markMismatchedRemovedTags','toViewPosition','insert','getAttributes','wrap','vid_start','data-revision-','startsWith','element','has','change:activeChange','get','numberOfChanges','schema','markerNameToElements','children','side','currentChangeNumber','_setDistance','ck-suggestion-marker-merge','toModel','revision','_findChangeIdFromDomTarget','elementStart','markersEnd','data-change-id','removeMarker','init','bindElementToMarker','_step','nextSibling','upcast','_changeView','pairId','find','isNavigationMode','createPositionFromPath','then','ck-revision-history-root-','isSuggestion','resolve','split','ck-suggestion-marker','_activeViewTarget','affectsData','name','_removeRevisionMarkers','observeMarkers','item','domEvent','findIndex','catch','merge','isBlock','mousedown','level','addRevisionData','view','_changeIdToChange','showStack','_cleanUp','enqueueChange','getCustomProperty','change:isEnabled','isRemoveSuggestion','startIndex','right','low','_cleanMarkers','listenTo','authors','_getDiff','endIndex','getRootNames','includes','markerToHighlight','removeAttribute','string','splice','flat','ck-revision-history-root--active','isIncorrect','getItems','test','revision-viewer','high','enableReadOnlyMode','end','element:pre','hasClass','createRevision','reconvertMarker','revisionHistory','isRemoved','concat','_threeWayMerge','highest','markers','writer','nodeAfter','add','_markInsertions','createPositionBefore','text','conversion','viewItem','getRevisionData','newRevisionId','ck-revision-history-root-remove','isAdded','default','map','_getViewForChange','isInline','_balloon','_markMarkers','createUIElement','suggestion:','revision-suggestion:','attachChange','_revisions','suggestion','error','_removeUnsupportedChanges','isAttached','isAfter','keys','_initInteractions','toViewElement','downcastDispatcher','_markSuggestions','start','rootName','markersStart','_fixObsoleteTags','unshift','editor','parent','createAttributeElement','deletion','attributesBefore','detachRoot','commands','attributesAfter','changeId','_makeModelFromTape','modelRange','remove','addHighlight','POSITIVE_INFINITY','userId','config','ck-suggestion-marker-','shift','softBreak','getChild','change','_processTape','domConverter','all','mapper','_refreshStartEndIndex','for','compare','index','selection','revision:','forEach','addClass','getRoot','push','requires','dataDowncast','getRevisionRootsAttributes','restoreRevision','locale','activeView','-new','distance','removeClass','processor','ck-suggestion-marker--active','activeChange','diff','left','getIndex','changes','insertion','_getRevisionsRange','mapViewToDom','markerRange','sort','uiElement','values','filter','isBefore','ck-suggestion-marker-split','isContent','destroy','isObject','set','RevisionViewer','forward','object','document','_joinTapes'];(function(_0x442dba,_0x433013){const _0x5e1004=function(_0x2c7281){while(--_0x2c7281){_0x442dba['push'](_0x442dba['shift']());}};_0x5e1004(++_0x433013);}(_0x4330,0x75));const _0x5e10=function(_0x442dba,_0x433013){_0x442dba=_0x442dba-0x0;let _0x5e1004=_0x4330[_0x442dba];return _0x5e1004;};import{Plugin as _0x3a5cf0,Command as _0x8477e}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2eed88}from'ckeditor5/src/utils';import{ContextualBalloon as _0x544dfd}from'ckeditor5/src/ui';import{DocumentFragment as _0x348e46,Element as _0x1ec88f,Text as _0xacc02e,ViewDocumentFragment as _0x2143ed,ViewText as _0x1b3618,ViewElement as _0x5958f6,ViewContainerElement as _0xee5be8,ViewAttributeElement as _0x572a50,ViewEmptyElement as _0x1bb757,ViewRawElement as _0x499d1a,ViewUIElement as _0x15c9fc}from'ckeditor5/src/engine';import{Users as _0x2df963,getMarkerDomElement as _0x4ee3ac}from'ckeditor5-collaboration/src/collaboration-core';import _0x37931b from'./ui/revisionviewer/changedetailsview';import _0x2d2da6 from'./revisionsrepository';import _0x4530f3 from'./changeitem';import{default as _0x259645}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x2910fc}from'lodash-es';const tt={'c':_0xee5be8,'a':_0x572a50,'e':_0x1bb757,'r':_0x499d1a,'u':_0x15c9fc};export default class d extends _0x3a5cf0{static get[_0x5e10('0xdd')](){return'RevisionViewer';}static get[_0x5e10('0x8e')](){return[_0x2df963,_0x544dfd,_0x2d2da6];}constructor(_0x13d36f){super(_0x13d36f),this[_0x5e10('0xe4')]=this[_0x5e10('0x6b')]['plugins'][_0x5e10('0x114')](_0x5e10('0x102')),this['set'](_0x5e10('0x99'),null),this[_0x5e10('0xab')](_0x5e10('0x93'),null),this[_0x5e10('0xe')]=null,this[_0x5e10('0xab')](_0x5e10('0x9a'),null),this['set'](_0x5e10('0x101'),!0x1),this[_0x5e10('0xab')](_0x5e10('0x103'),!0x0),this['on']('change:isEnabled',(_0x281810,_0x5f4b81,_0x45a614)=>{this[_0x5e10('0x99')]=null,this['activeView']=null,this['editor'][_0x5e10('0xe5')]['view']['change'](_0x4cf06d=>{for(const _0x14f085 of this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x1c')]['document'][_0x5e10('0xfa')])_0x45a614?_0x4cf06d[_0x5e10('0x96')]('ck-editor__editable__overlay',_0x14f085):_0x4cf06d[_0x5e10('0x8b')]('ck-editor__editable__overlay',_0x14f085);});}),this['bind'](_0x5e10('0x6'))['to'](this,'activeChange',_0x92cbcb=>null!==_0x92cbcb),this['bind'](_0x5e10('0x11a'))['to'](this,_0x5e10('0x101'),this,_0x5e10('0x9a'),this,_0x5e10('0x99'),(_0xea9f6e,_0x1275f1,_0x5dbd05)=>_0xea9f6e&&_0x5dbd05?_0x1275f1[_0x5e10('0x9d')][_0x5e10('0x9c')](_0x5dbd05):0x0),this[_0x5e10('0x104')](_0x5e10('0x115'))['to'](this,_0x5e10('0x101'),this,'diff',(_0x3c9c24,_0x171899)=>_0x3c9c24?_0x171899[_0x5e10('0x9d')][_0x5e10('0xd0')]:0x0),this[_0x5e10('0x3')]=null,this[_0x5e10('0x1d')]=new Map(),this[_0x5e10('0xb9')]=null,this[_0x5e10('0x55')]=this[_0x5e10('0x6b')][_0x5e10('0xe9')][_0x5e10('0x114')](_0x544dfd);}[_0x5e10('0x124')](){const _0x3cc8a1=this[_0x5e10('0x6b')],_0xdeae75=new ShowChangeCommand(_0x3cc8a1,{'direction':'backward'}),_0x19d482=new ShowChangeCommand(_0x3cc8a1,{'direction':_0x5e10('0xad')});(_0x3cc8a1['commands'][_0x5e10('0x47')]('showPreviousChange',_0xdeae75),_0x3cc8a1[_0x5e10('0x71')]['add'](_0x5e10('0xfb'),_0x19d482),_0x3cc8a1[_0x5e10('0x71')][_0x5e10('0x47')](_0x5e10('0x91'),new RestoreRevisionCommand(_0x3cc8a1)),this['on'](_0x5e10('0xc6'),()=>{_0xdeae75[_0x5e10('0xc0')](),_0x19d482[_0x5e10('0xc0')]();}),this[_0x5e10('0xf4')](),this[_0x5e10('0x62')](),_0x3cc8a1[_0x5e10('0x39')]('revision-viewer'),_0x3cc8a1['plugins'][_0x5e10('0x112')](_0x5e10('0xff')))&&_0x3cc8a1[_0x5e10('0xe9')][_0x5e10('0x114')](_0x5e10('0xff'))['forceDisabled'](_0x5e10('0x37'));}async[_0x5e10('0x4d')](_0x53d280){await this[_0x5e10('0xc7')](_0x53d280);const _0xacbd17={};for(const _0x5b3f3c in _0x53d280[_0x5e10('0xb4')]){if(_0x53d280[_0x5e10('0xb4')][_0x5b3f3c][_0x5e10('0x5a')]&&!_0x53d280['diffData'][_0x5b3f3c]['attachChange'][_0x5e10('0x5f')])continue;const _0x5f3dc9=this['_removeRevisionMarkers'](JSON[_0x5e10('0xf1')](_0x53d280[_0x5e10('0xb4')][_0x5b3f3c][_0x5e10('0xc2')])),_0x362d24=this['editor'][_0x5e10('0xe5')][_0x5e10('0x1c')][_0x5e10('0xaf')],_0x50bcf5=new _0x2143ed(_0x362d24,_0x5f3dc9[_0x5e10('0x52')](_0x360075=>this[_0x5e10('0xc9')](_0x360075)));this[_0x5e10('0x6b')][_0x5e10('0xe7')][_0x5e10('0x97')][_0x5e10('0xe2')](_0x5e10('0xb1')),_0xacbd17[_0x5b3f3c]=this[_0x5e10('0x6b')]['data'][_0x5e10('0x97')]['toData'](_0x50bcf5),this[_0x5e10('0x6b')][_0x5e10('0xe7')][_0x5e10('0x97')]['useFillerType'](_0x5e10('0x51'));}return _0xacbd17;}async[_0x5e10('0x90')](_0x3ce9b8){await this[_0x5e10('0xc7')](_0x3ce9b8);const _0x4a5964={};for(const _0x1bc433 in _0x3ce9b8[_0x5e10('0xb4')])_0x3ce9b8[_0x5e10('0xb4')][_0x1bc433][_0x5e10('0x5a')]&&!_0x3ce9b8['diffData'][_0x1bc433][_0x5e10('0x5a')][_0x5e10('0x5f')]||(_0x4a5964[_0x1bc433]=_0x3ce9b8['diffData'][_0x1bc433][_0x5e10('0x72')]||{});return _0x4a5964;}['_removeRevisionMarkers'](_0x3e5322){return(_0x3e5322=_0x3e5322[_0x5e10('0xa5')](_0x1fd094=>!_0x1fd094[_0x5e10('0x10')]||'revision-start'!==_0x1fd094[_0x5e10('0x10')]&&'revision-end'!==_0x1fd094[_0x5e10('0x10')]))[_0x5e10('0x8a')](_0x3c4a11=>{_0x5e10('0x30')!=typeof _0x3c4a11&&(_0x3c4a11['children']=this[_0x5e10('0x11')](_0x3c4a11[_0x5e10('0x118')]),_0x3c4a11['attributes']=_0x3c4a11[_0x5e10('0xf8')][_0x5e10('0xa5')](_0x2e3c2a=>!_0x2e3c2a[0x0]['startsWith'](_0x5e10('0x10f'))));}),_0x3e5322;}async[_0x5e10('0x86')](_0x70b75e,_0xfb8b2b,_0x58f690=!0x1){if(!this[_0x5e10('0x103')])return;const _0x5a0abb=this[_0x5e10('0x9a')],_0x2cbdcf=this[_0x5e10('0xe4')],_0x1c843c=_0x5e10('0x30')==typeof _0x70b75e?_0x2cbdcf[_0x5e10('0xd6')](_0x70b75e):_0x70b75e,_0x310362=_0x5e10('0x30')==typeof _0xfb8b2b?_0x2cbdcf[_0x5e10('0xd6')](_0xfb8b2b):_0xfb8b2b,_0x2279bd=_0x1c843c['id'],_0x502628=_0x310362?_0x310362['id']:null;if(!_0x58f690&&this[_0x5e10('0x9a')]&&this[_0x5e10('0x9a')][_0x5e10('0x4e')]===_0x2279bd&&this[_0x5e10('0x9a')]['oldRevisionId']===_0x502628)return Promise[_0x5e10('0xb')]();this[_0x5e10('0x101')]=!0x1,this[_0x5e10('0x93')]=null,this[_0x5e10('0x99')]=null,this[_0x5e10('0x9a')]=new _0x259645(_0x2279bd,_0x502628);const _0x35afe1=this[_0x5e10('0x9f')](_0x1c843c,_0x310362,!0x0)[_0x5e10('0x52')](_0x5ed1af=>this[_0x5e10('0xc7')](_0x5ed1af));return _0x35afe1['push'](new Promise(_0x4f8f69=>{setTimeout(_0x4f8f69,0x14);})),Promise[_0x5e10('0x82')](_0x35afe1)[_0x5e10('0x8')](()=>{if(!this['isEnabled'])return;this[_0x5e10('0x1f')]();const _0x3f1178=this[_0x5e10('0x2a')](_0x2279bd,_0x502628);for(const _0x4dba91 of _0x3f1178[_0x5e10('0x9d')])this[_0x5e10('0x1d')][_0x5e10('0xab')](_0x4dba91['id'],_0x4dba91);this[_0x5e10('0x6b')]['model']['enqueueChange']({'isUndoable':!0x1},_0x26c375=>{for(const _0x5a522a of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x2c')]())_0x26c375['detachRoot'](_0x5a522a);for(const _0x1c64a7 of Object[_0x5e10('0x61')](_0x3f1178['model'])){const _0x33131a=_0x26c375[_0x5e10('0xda')](_0x1c64a7);for(const _0x2e6e48 of Object['keys'](_0x3f1178[_0x5e10('0xf8')][_0x1c64a7]))_0x26c375[_0x5e10('0xee')](_0x2e6e48,_0x3f1178['attributes'][_0x1c64a7][_0x2e6e48],_0x33131a);_0x26c375[_0x5e10('0x10b')](_0x3f1178[_0x5e10('0xc8')][_0x1c64a7],_0x33131a,0x0);}}),this['diff']['_setChanges'](this[_0x5e10('0xe3')](_0x3f1178[_0x5e10('0x9d')])),this[_0x5e10('0x101')]=!0x0;})[_0x5e10('0x16')](_0x3d37f7=>{console[_0x5e10('0x5d')](_0x3d37f7),this[_0x5e10('0x1f')](),_0x5a0abb&&(this[_0x5e10('0x9a')]=_0x5a0abb),this[_0x5e10('0x101')]=!0x0;});}[_0x5e10('0x1b')](_0x2bbd68,_0xee3dc2){const _0x3fe40a=this[_0x5e10('0xe4')][_0x5e10('0x3d')](_0x2bbd68);return _0x3fe40a['on'](_0x5e10('0x108'),(_0x5c7e89,_0x2e065a,_0x177021)=>_0xee3dc2(_0x2e065a,_0x177021,_0x3fe40a)),this[_0x5e10('0xe4')]['addRevision'](_0x3fe40a),_0x3fe40a;}[_0x5e10('0xc7')](_0x2cec76){if(!_0x2cec76||_0x2cec76[_0x5e10('0xb4')])return Promise[_0x5e10('0xb')]();{const _0x2b0bf3=this[_0x5e10('0x6b')][_0x5e10('0x7a')][_0x5e10('0x114')]('collaboration.channelId');return this[_0x5e10('0xb9')][_0x5e10('0xd6')]({'channelId':_0x2b0bf3,'revisionId':_0x2cec76['id']})[_0x5e10('0x8')](_0x4a4247=>{_0x2cec76[_0x5e10('0x108')]({'diffData':_0x4a4247[_0x5e10('0xb4')]},!0x0);});}}[_0x5e10('0x1f')](){this[_0x5e10('0x99')]=null,this[_0x5e10('0x27')](),this[_0x5e10('0x3')]&&this['_changeView'][_0x5e10('0xa9')](),this[_0x5e10('0x3')]=null,this[_0x5e10('0x1d')]['clear'](),this['editor']['model'][_0x5e10('0x20')]({'isUndoable':!0x1},_0x4688e3=>{for(const _0x1ba38e of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x2c')]())_0x4688e3[_0x5e10('0x70')](_0x1ba38e);});}['_sortAndFilterDiffChanges'](_0x47d5d0){const _0x563be8=[],_0x3bd9dc=new Map();for(const _0x370328 of this['editor']['model'][_0x5e10('0xaf')][_0x5e10('0x2c')]()){const _0x4947cd=this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x1c')][_0x5e10('0xfe')](_0x370328);if(!_0x4947cd)continue;const _0x3ca160=_0x4947cd['getClientRects']()[_0x5e10('0x13')](0x0);_0x3ca160&&(_0x563be8[_0x5e10('0x8d')](_0x370328),_0x3bd9dc['set'](_0x370328,_0x3ca160));}return _0x563be8[_0x5e10('0xa2')]((_0x3daae2,_0x5ca3f0)=>{const _0x25e746=_0x3bd9dc['get'](_0x3daae2),_0x17bb9d=_0x3bd9dc[_0x5e10('0x114')](_0x5ca3f0);return _0x25e746['y']-_0x17bb9d['y']||_0x25e746['x']-_0x17bb9d['x'];}),(_0x47d5d0=_0x47d5d0['filter'](_0x22f556=>_0x563be8[_0x5e10('0x2d')](_0x22f556[_0x5e10('0x67')])))['sort']((_0x150dcd,_0x293e77)=>_0x563be8[_0x5e10('0xdb')](_0x150dcd['rootName'])-_0x563be8['indexOf'](_0x293e77[_0x5e10('0x67')])),_0x47d5d0;}['_makeTape'](_0x134e4e){const _0x305c35=Array[_0x5e10('0xb5')](_0x134e4e[_0x5e10('0x44')])[_0x5e10('0xa5')](([_0x6d1b02,_0x43e056])=>_0x6d1b02[_0x5e10('0x110')](_0x5e10('0x89'))&&!_0x43e056['isCollapsed']),_0x581023=Array[_0x5e10('0xb5')](this[_0x5e10('0x6b')][_0x5e10('0xc8')]['createRangeIn'](_0x134e4e)[_0x5e10('0xe1')]({'singleCharacters':!0x0}));if(0x0!=_0x305c35[_0x5e10('0xd0')])for(const _0x62d83d of _0x581023){const [_0x17dc3f,_0x34f222]=_0x305c35[0x0],[,_0x390ef5,_0x39dca7]=_0x17dc3f[_0x5e10('0xc')](':');if(_0x34f222[_0x5e10('0x3a')]['isEqual'](_0x62d83d[_0x5e10('0xf3')])&&_0x305c35[_0x5e10('0x7c')](),(_0x62d83d[_0x5e10('0xed')][_0x5e10('0xb2')](_0x34f222[_0x5e10('0x66')])||_0x62d83d['previousPosition']['isAfter'](_0x34f222[_0x5e10('0x66')]))&&(_0x5e10('0x9e')==_0x390ef5?_0x62d83d[_0x5e10('0x50')]={'userId':_0x39dca7}:'deletion'==_0x390ef5&&(_0x62d83d['isRemoved']={'userId':_0x39dca7})),0x0==_0x305c35['length'])break;}return _0x581023;}[_0x5e10('0x84')](_0x583c3a){const _0x13f0bf=new Map();for(let _0x2dd7c7=0x0;_0x2dd7c7<_0x583c3a[_0x5e10('0xd0')];_0x2dd7c7++)'text'===_0x583c3a[_0x2dd7c7][_0x5e10('0xb3')]?(_0x583c3a[_0x2dd7c7][_0x5e10('0x13')][_0x5e10('0x24')]=_0x2dd7c7,_0x583c3a[_0x2dd7c7][_0x5e10('0x13')]['endIndex']=_0x2dd7c7):(_0x5e10('0x120')===_0x583c3a[_0x2dd7c7][_0x5e10('0xb3')]?_0x583c3a[_0x2dd7c7][_0x5e10('0x13')]['startIndex']=_0x2dd7c7:_0x5e10('0xc3')===_0x583c3a[_0x2dd7c7][_0x5e10('0xb3')]&&(_0x583c3a[_0x2dd7c7][_0x5e10('0x13')][_0x5e10('0x2b')]=_0x2dd7c7),_0x13f0bf[_0x5e10('0xab')](_0x583c3a[_0x2dd7c7]['id'],_0x2dd7c7));for(const _0x2ee831 of _0x13f0bf[_0x5e10('0xa4')]())'elementStart'===_0x583c3a[_0x2ee831][_0x5e10('0xb3')]?_0x583c3a[_0x2ee831]['item'][_0x5e10('0x2b')]=_0x13f0bf[_0x5e10('0x114')](_0x583c3a[_0x2ee831][_0x5e10('0x4')]):'elementEnd'===_0x583c3a[_0x2ee831]['type']&&(_0x583c3a[_0x2ee831]['item'][_0x5e10('0x24')]=_0x13f0bf['get'](_0x583c3a[_0x2ee831]['pairId']));}[_0x5e10('0x80')](_0x3242b5){for(let _0x3da20c=0x0;_0x3da20c<_0x3242b5[_0x5e10('0xd0')];_0x3da20c++){if(_0x5e10('0x120')===_0x3242b5[_0x3da20c][_0x5e10('0xb3')])_0x3242b5[_0x3da20c][_0x5e10('0x13')][_0x5e10('0x24')]=_0x3da20c;else{if(_0x5e10('0xc3')===_0x3242b5[_0x3da20c][_0x5e10('0xb3')]){_0x3242b5[_0x3da20c]['item']['endIndex']=_0x3da20c;const _0x387e2d=_0x3242b5[_0x3da20c][_0x5e10('0x13')][_0x5e10('0x24')];_0x3242b5[_0x387e2d][_0x5e10('0x4')]=_0x3242b5[_0x3da20c]['id'],_0x3242b5[_0x3da20c][_0x5e10('0x4')]=_0x3242b5[_0x387e2d]['id'];}else _0x3242b5[_0x3da20c][_0x5e10('0x13')]['startIndex']=_0x3da20c,_0x3242b5[_0x3da20c][_0x5e10('0x13')][_0x5e10('0x2b')]=_0x3da20c,_0x3242b5[_0x3da20c][_0x5e10('0x4')]=null;}_0x3242b5[_0x3da20c][_0x5e10('0x68')]||(_0x3242b5[_0x3da20c][_0x5e10('0x68')]=[],_0x3242b5[_0x3da20c][_0x5e10('0x121')]=[]);}}[_0x5e10('0x48')](_0xccbd30,_0x2b0671){const _0x1ae990=_0xccbd30[_0x5e10('0xa5')](_0x387ffa=>!_0x387ffa[_0x5e10('0x50')]);for(let _0x17cc35=0x0;_0x17cc35<_0x2b0671[_0x5e10('0xd0')];_0x17cc35++)_0x2b0671[_0x17cc35][_0x5e10('0x50')]&&(_0x1ae990[_0x17cc35][_0x5e10('0x50')]=_0x2b0671[_0x17cc35]['isAdded']);}[_0x5e10('0xbb')](_0x18807e){const _0x94f28b=JSON[_0x5e10('0xf1')](_0x18807e),_0x397e7d=this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0xaf')],_0xdc1f6c=new _0x2143ed(_0x397e7d,_0x94f28b[_0x5e10('0x52')](_0x341707=>this[_0x5e10('0xc9')](_0x341707)));return this['editor'][_0x5e10('0xe7')][_0x5e10('0x11d')](_0xdc1f6c);}[_0x5e10('0xc9')](_0x495bf1){const _0x30cd01=this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0xaf')];if(_0x5e10('0x30')==typeof _0x495bf1)return new _0x1b3618(_0x30cd01,_0x495bf1);{const _0x584ec7=_0x495bf1[_0x5e10('0x118')][_0x5e10('0x52')](_0x244057=>this['_getViewObj'](_0x244057));return new(tt[_0x495bf1[(_0x5e10('0xb3'))]]||_0x5958f6)(_0x30cd01,_0x495bf1['name'],_0x495bf1[_0x5e10('0xf8')],_0x584ec7);}}[_0x5e10('0x2a')](_0x16c803,_0xa2b5ad=null){const _0x529643=this[_0x5e10('0xe4')][_0x5e10('0xd6')](_0x16c803),_0x44c0bc=_0xa2b5ad?this['repository'][_0x5e10('0xd6')](_0xa2b5ad):null,_0x84753a=this[_0x5e10('0x9f')](_0x529643,_0x44c0bc),_0x1c1fd8=_0x84753a[_0x84753a[_0x5e10('0xd0')]-0x1],_0x330dc5=new Map(),_0x3af148={'model':{},'attributes':{},'changes':[]},_0x35af7e=new Set(),_0x182e04=new Map();for(let _0x58bf00=_0x84753a[_0x5e10('0xd0')]-0x1;_0x58bf00>=0x0;_0x58bf00--){const _0x14722f=_0x84753a[_0x58bf00];for(const _0x349f0c of Object[_0x5e10('0x61')](_0x14722f[_0x5e10('0xb4')]))if(_0x14722f[_0x5e10('0xb4')][_0x349f0c][_0x5e10('0x5a')]){const _0x428530=_0x14722f[_0x5e10('0xb4')][_0x349f0c][_0x5e10('0x5a')];_0x428530['isAttached']?(_0x35af7e[_0x5e10('0x47')](_0x349f0c),_0x182e04[_0x5e10('0x112')](_0x349f0c)&&_0x182e04[_0x5e10('0x114')](_0x349f0c)['userId']==_0x428530[_0x5e10('0x79')]?_0x182e04[_0x5e10('0xc4')](_0x349f0c):_0x182e04['set'](_0x349f0c,_0x428530)):_0x182e04['has'](_0x349f0c)?(_0x35af7e[_0x5e10('0xc4')](_0x349f0c),_0x182e04['delete'](_0x349f0c)):(_0x35af7e[_0x5e10('0x47')](_0x349f0c),_0x182e04['set'](_0x349f0c,_0x428530));}else _0x35af7e[_0x5e10('0x47')](_0x349f0c);}for(const _0x334a86 of _0x35af7e){const _0x5a176f=_0x182e04[_0x5e10('0x112')](_0x334a86)&&!_0x182e04['get'](_0x334a86)[_0x5e10('0x5f')];let _0x2eac12=_0x5a176f?_0x84753a[_0x5e10('0xd0')]-0x1:0x0;const _0x5801a8=_0x5a176f?-0x1:0x1;for(;_0x84753a[_0x2eac12];){const _0x4e7a37=_0x84753a[_0x2eac12];if(_0x4e7a37[_0x5e10('0xb4')][_0x334a86]){const _0x448b01=_0x5a176f?_0x4e7a37[_0x5e10('0xb4')][_0x334a86][_0x5e10('0x6f')]:_0x4e7a37[_0x5e10('0xb4')][_0x334a86][_0x5e10('0x72')];_0x3af148[_0x5e10('0xf8')][_0x334a86]=_0x448b01?_0x2910fc(_0x448b01):{};break;}_0x2eac12+=_0x5801a8;}}for(const _0x366b92 of _0x84753a){_0x366b92[_0x5e10('0xc8')]={};for(const _0x4b561c of _0x366b92[_0x5e10('0x29')])_0x330dc5['set'](_0x4b561c['id'],_0x4b561c);for(const _0x26cb8d of _0x35af7e){const _0x16f404=_0x366b92[_0x5e10('0xb4')][_0x26cb8d]?_0x366b92[_0x5e10('0xb4')][_0x26cb8d][_0x5e10('0xc2')]:'[]',_0x193192=_0x366b92[_0x5e10('0xb4')][_0x26cb8d]?_0x366b92[_0x5e10('0xb4')][_0x26cb8d][_0x5e10('0xcd')]:'[]';_0x366b92['model'][_0x26cb8d]={'insertions':this[_0x5e10('0xbb')](_0x16f404),'deletions':this[_0x5e10('0xbb')](_0x193192)};}}for(const _0x1b8922 of _0x35af7e){let _0x18dcbd=null,_0x2ac253=0x0;const _0x372c49=new Map(Array[_0x5e10('0xb5')](_0x529643['model'][_0x1b8922][_0x5e10('0xc2')][_0x5e10('0x44')])['filter'](([_0xf085ac])=>!_0xf085ac[_0x5e10('0x110')]('revision:')));let _0x45e482=0x0;for(const _0x819287 of _0x84753a){const _0x3ac3b4=this[_0x5e10('0x100')](_0x819287[_0x5e10('0xc8')][_0x1b8922][_0x5e10('0xc2')]);_0x819287==_0x529643?(_0x18dcbd=_0x3ac3b4,_0x2ac253=_0x18dcbd[_0x5e10('0xd0')],_0x18dcbd[_0x5e10('0x8a')](_0x487285=>{_0x487285['id']=_0x45e482++;}),this[_0x5e10('0x80')](_0x18dcbd)):this['_markInsertions'](_0x18dcbd,_0x3ac3b4);const _0x5b5fc9=_0x18dcbd[_0x5e10('0xa5')](_0x35f21e=>!_0x35f21e[_0x5e10('0x50')])[_0x5e10('0x52')](_0x5ed466=>_0x5ed466['id']);let _0x4f0aca=0x0;const _0x893e8a=this[_0x5e10('0x100')](_0x819287[_0x5e10('0xc8')][_0x1b8922][_0x5e10('0xcd')]);_0x893e8a[_0x5e10('0x8a')](_0x311f07=>{_0x311f07[_0x5e10('0x40')]?_0x311f07['id']=_0x2ac253++:_0x311f07['id']=_0x5b5fc9[_0x4f0aca++];}),this[_0x5e10('0x80')](_0x893e8a),this['_setDistance'](_0x18dcbd,_0x5e10('0x50')),this[_0x5e10('0x11b')](_0x893e8a,_0x5e10('0x40')),_0x819287==_0x529643&&this[_0x5e10('0x56')](_0x18dcbd,_0x372c49),_0x18dcbd=this[_0x5e10('0xb0')](_0x18dcbd,_0x893e8a),this[_0x5e10('0x84')](_0x18dcbd),this['_setDistance'](_0x18dcbd,_0x5e10('0x40'));}_0x18dcbd=_0x18dcbd[_0x5e10('0xa5')](_0x51c4f8=>!(_0x51c4f8[_0x5e10('0x50')]&&_0x51c4f8['isRemoved']));const _0x35e658=new Map(_0x1c1fd8[_0x5e10('0xc8')][_0x1b8922][_0x5e10('0xcd')]['markers']),_0x1ced09=new Set(_0x372c49[_0x5e10('0x61')]());for(const _0xb4b973 of _0x35e658[_0x5e10('0x61')]())_0x1ced09[_0x5e10('0xc4')](_0xb4b973);this[_0x5e10('0x65')](_0x18dcbd,_0x1ced09),this[_0x5e10('0x69')](_0x18dcbd),_0x18dcbd=this[_0x5e10('0xd2')](_0x18dcbd),_0x18dcbd=this[_0x5e10('0x109')](_0x18dcbd),_0x18dcbd=this[_0x5e10('0x5e')](_0x18dcbd);const {root:_0x20a50c,changes:_0x18cbe5}=this[_0x5e10('0x74')](_0x18dcbd,_0x330dc5,_0x1b8922);_0x3af148['model'][_0x1b8922]=_0x20a50c;const _0x422838=_0x182e04[_0x5e10('0x114')](_0x1b8922);if(_0x422838){const _0x4b2f74=_0x330dc5[_0x5e10('0x114')](_0x422838[_0x5e10('0x79')]),_0x159436=new _0x4530f3({'author':_0x4b2f74,'type':_0x422838[_0x5e10('0x5f')]?_0x5e10('0x47'):_0x5e10('0x76'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1b8922});_0x18cbe5[_0x5e10('0x6a')](_0x159436),_0x3af148[_0x5e10('0xf8')][_0x1b8922]['revisionHistoryAttachChange']=_0x159436['id'];}_0x3af148[_0x5e10('0x9d')]=_0x3af148[_0x5e10('0x9d')]['concat'](_0x18cbe5);}return _0x3af148;}[_0x5e10('0x56')](_0xf99040,_0x438b40){for(let _0x4f4e47=0x0;_0x4f4e47<_0xf99040[_0x5e10('0xd0')];_0x4f4e47++)for(const [_0x40f314,_0x547bf4]of _0x438b40)_0x547bf4[_0x5e10('0x66')][_0x5e10('0xb2')](_0xf99040[_0x4f4e47]['previousPosition'])&&_0xf99040[_0x4f4e47]['markersStart'][_0x5e10('0x8d')](_0x40f314),_0x547bf4['end']['isEqual'](_0xf99040[_0x4f4e47][_0x5e10('0xf3')])&&_0xf99040[_0x4f4e47][_0x5e10('0x121')][_0x5e10('0x8d')](_0x40f314);}[_0x5e10('0xb0')](_0x3d0a0e,_0x2179eb){let _0x4b3d2a=[],_0x6206e7=0x0,_0x2e43ea=0x0;for(;_0x6206e7<_0x3d0a0e['length']||_0x2e43ea<_0x2179eb[_0x5e10('0xd0')];){const _0x10bddf=_0x3d0a0e[_0x6206e7]||{},_0x262d78=_0x2179eb[_0x2e43ea]||{};if(_0x10bddf['id']==_0x262d78['id'])_0x6206e7++,_0x2e43ea++,_0x4b3d2a['push'](_0x10bddf);else{if(_0x262d78[_0x5e10('0x40')]&&_0x10bddf[_0x5e10('0x50')]){const {commonTape:_0x9f837a,iEnd:_0x4aa295,jEnd:_0x3db208}=this[_0x5e10('0x42')](_0x3d0a0e,_0x6206e7,_0x2179eb,_0x2e43ea);_0x4b3d2a=_0x4b3d2a[_0x5e10('0x41')](_0x9f837a),_0x6206e7=_0x4aa295,_0x2e43ea=_0x3db208;}else _0x262d78[_0x5e10('0x40')]?(_0x2e43ea++,_0x4b3d2a[_0x5e10('0x8d')](_0x262d78)):(_0x6206e7++,_0x4b3d2a[_0x5e10('0x8d')](_0x10bddf));}}return _0x4b3d2a;}[_0x5e10('0x65')](_0x3bfc1a,_0x5db291){const _0x1a3f1a=[];for(let _0x2779b6=0x0;_0x2779b6<_0x3bfc1a['length'];_0x2779b6++){for(let _0x49cbb0=0x0;_0x49cbb0<_0x3bfc1a[_0x2779b6][_0x5e10('0x68')][_0x5e10('0xd0')];_0x49cbb0++){const _0xfddbf0=_0x3bfc1a[_0x2779b6][_0x5e10('0x68')][_0x49cbb0];if(!_0x5db291[_0x5e10('0x112')](_0xfddbf0))continue;const {group:_0x504f51,type:_0x59701,authorId:_0x1e3388}=_0x4fd6d0(_0xfddbf0);_0x5e10('0xfc')!=_0x504f51||_0x5e10('0x9e')!=_0x59701&&_0x5e10('0x6e')!=_0x59701||(_0x1a3f1a[_0x5e10('0x6a')]({'type':_0x59701,'name':_0xfddbf0,'userId':_0x1e3388}),_0x3bfc1a[_0x2779b6][_0x5e10('0x68')][_0x5e10('0x31')](_0x49cbb0,0x1),_0x49cbb0--);}_0x15bc5e(_0x3bfc1a[_0x2779b6]);for(let _0x1617d8=0x0;_0x1617d8<_0x3bfc1a[_0x2779b6][_0x5e10('0x121')][_0x5e10('0xd0')];_0x1617d8++){const _0x11e1f5=_0x3bfc1a[_0x2779b6][_0x5e10('0x121')][_0x1617d8];if(!_0x5db291[_0x5e10('0x112')](_0x11e1f5))continue;const {group:_0x21b6c6,type:_0x200af9}=_0x4fd6d0(_0x11e1f5);if(_0x5e10('0xfc')!=_0x21b6c6||_0x5e10('0x9e')!=_0x200af9&&_0x5e10('0x6e')!=_0x200af9)continue;_0x3bfc1a[_0x2779b6][_0x5e10('0x121')][_0x5e10('0x31')](_0x1617d8,0x1),_0x1617d8--;const _0xfd9a72=_0x1a3f1a[_0x5e10('0x15')](_0x48a2f1=>_0x48a2f1[_0x5e10('0x10')]==_0x11e1f5);_0xfd9a72>-0x1&&_0x1a3f1a['splice'](_0xfd9a72,0x1);}}function _0x4fd6d0(_0x581e27){const _0x9274a8=_0x581e27[_0x5e10('0xc')](':');return{'group':_0x9274a8[0x0],'type':_0x9274a8[0x1],'subType':_0x9274a8[_0x5e10('0xd0')]>=0x5?_0x9274a8[0x2]:null,'id':_0x9274a8[_0x5e10('0xd0')]<0x5?_0x9274a8[0x2]:_0x9274a8[0x3],'authorId':_0x9274a8[_0x5e10('0xd0')]<0x5?_0x9274a8[0x3]:_0x9274a8[0x4],'markerCount':0x6==_0x9274a8[_0x5e10('0xd0')]?_0x9274a8[0x5]:null};}function _0x15bc5e(_0x2a922e){for(let _0x229902=0x0;_0x229902<_0x1a3f1a['length'];_0x229902++){if(_0x2a922e[_0x5e10('0x50')]&&_0x5e10('0x9e')==_0x1a3f1a[_0x229902][_0x5e10('0xb3')])return _0x2a922e[_0x5e10('0xf2')]=_0x1a3f1a[_0x229902],void delete _0x2a922e[_0x5e10('0x50')];if(!_0x2a922e[_0x5e10('0x50')]&&!_0x2a922e[_0x5e10('0x40')]&&_0x5e10('0x6e')==_0x1a3f1a[_0x229902][_0x5e10('0xb3')])return void(_0x2a922e['isRemoveSuggestion']=_0x1a3f1a[_0x229902]);}}}[_0x5e10('0x11b')](_0x46c310,_0x50397d){let _0x188dff=0x0,_0x303426=!0x1;const _0x5a6ab9=new Map();for(const _0x533fe0 of _0x46c310)_0x533fe0[_0x50397d]?_0x303426&&(_0x188dff++,_0x303426=!0x1):(_0x188dff++,_0x303426=!0x0),_0x5a6ab9[_0x5e10('0xab')](_0x533fe0['id'],_0x188dff);for(let _0x165b69=0x0;_0x165b69<_0x46c310['length'];_0x165b69++){if(_0x5e10('0x40')==_0x50397d&&_0x46c310[_0x165b69][_0x5e10('0x50')]||_0x5e10('0x50')==_0x50397d&&_0x46c310[_0x165b69][_0x5e10('0x40')])continue;if(_0x5e10('0x4a')==_0x46c310[_0x165b69][_0x5e10('0xb3')]){_0x46c310[_0x165b69]['distance']=0x0;continue;}const _0x59d2d2=_0x5a6ab9[_0x5e10('0x114')](_0x46c310[_0x165b69][_0x5e10('0x4')]),_0x185719=_0x5a6ab9[_0x5e10('0x114')](_0x46c310[_0x165b69]['id']);_0x46c310[_0x165b69][_0x5e10('0x95')]=_0x59d2d2-_0x185719;}}[_0x5e10('0x9f')](_0x5eaea4,_0x4dc08b,_0x341434=!0x1){const _0x4c2108=[];let _0x4c2176=this[_0x5e10('0xe4')][_0x5e10('0x9c')](_0x5eaea4),_0x3fcba8=this['repository']['getIndex'](_0x4dc08b);for(-0x1==_0x3fcba8&&(_0x3fcba8=this[_0x5e10('0xe4')][_0x5e10('0x5b')][_0x5e10('0xd0')],_0x341434=!0x1);_0x4c2176<_0x3fcba8;)_0x4c2108['push'](this['repository'][_0x5e10('0xd6')](_0x4c2176)),_0x4c2176++;return _0x341434&&_0x4c2108[_0x5e10('0x8d')](this['repository']['getRevision'](_0x4c2176)),_0x4c2108;}[_0x5e10('0x42')](_0x3b6794,_0x28703f,_0x36a602,_0x4eec6c){const _0x890662=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x116')];let _0x26fa9a=_0x28703f;for(;_0x3b6794[_0x26fa9a]&&_0x3b6794[_0x26fa9a]['isAdded'];)_0x26fa9a++;let _0x3bd241=_0x4eec6c;for(;_0x36a602[_0x3bd241]&&_0x36a602[_0x3bd241][_0x5e10('0x40')];)_0x3bd241++;_0x17992d(_0x3b6794,_0x28703f,_0x26fa9a),_0x17992d(_0x36a602,_0x4eec6c,_0x3bd241);const _0x48d8a0=_0x36a602[_0x5e10('0xd8')](_0x4eec6c,_0x3bd241)['concat'](_0x3b6794[_0x5e10('0xd8')](_0x28703f,_0x26fa9a));return _0x48d8a0[_0x5e10('0xa2')]((_0x36802c,_0x5904e0)=>_0x36802c[_0x5e10('0x119')]!=_0x5904e0[_0x5e10('0x119')]?_0x36802c[_0x5e10('0x119')]-_0x5904e0[_0x5e10('0x119')]:_0x36802c['level']!=_0x5904e0['level']?_0x36802c[_0x5e10('0x1a')]-_0x5904e0[_0x5e10('0x1a')]:_0x36802c[_0x5e10('0x95')]!=_0x5904e0['distance']?_0x5904e0[_0x5e10('0x95')]-_0x36802c[_0x5e10('0x95')]:!!_0x36802c['isAdded']!=!!_0x5904e0[_0x5e10('0x50')]?-0x1==_0x36802c[_0x5e10('0x119')]||0x0==_0x36802c[_0x5e10('0x119')]?_0x36802c[_0x5e10('0x50')]?-0x1:0x1:_0x36802c[_0x5e10('0x50')]?0x1:-0x1:_0x36802c[_0x5e10('0x87')]-_0x5904e0[_0x5e10('0x87')]),{'commonTape':_0x48d8a0,'iEnd':_0x26fa9a,'jEnd':_0x3bd241};function _0x17992d(_0x4ac004,_0x12379d,_0xe17a28){let _0x4c4e5e=-0x1,_0x30f6b7=Number[_0x5e10('0x78')],_0x5a17cc=!0x0;for(let _0x3f5e7a=_0x12379d;_0x3f5e7a<_0xe17a28;_0x3f5e7a++)if(_0x890662[_0x5e10('0x54')](_0x4ac004[_0x3f5e7a][_0x5e10('0x13')])||(_0x5a17cc=!0x1),_0x4ac004[_0x3f5e7a][_0x5e10('0x13')][_0x5e10('0x24')]<_0x12379d&&(_0x4c4e5e=_0x3f5e7a),_0x4ac004[_0x3f5e7a][_0x5e10('0x13')][_0x5e10('0x2b')]>=_0xe17a28){_0x30f6b7=_0x3f5e7a;break;}_0x5a17cc&&(_0x4c4e5e=_0xe17a28-0x1);for(let _0x70a6a=_0x12379d;_0x70a6a<_0xe17a28;_0x70a6a++)_0x4ac004[_0x70a6a][_0x5e10('0x119')]=_0x70a6a<=_0x4c4e5e?-0x1:_0x70a6a<_0x30f6b7?0x0:0x1,_0x4ac004[_0x70a6a]['index']=_0x70a6a;let _0x27547d=0x0;for(let _0x30c3d6=_0x12379d;_0x30c3d6<=_0x4c4e5e;_0x30c3d6++)0x0==_0x4ac004[_0x30c3d6][_0x5e10('0x95')]?_0x4ac004[_0x30c3d6]['level']=_0x27547d:(_0x27547d++,_0x4ac004[_0x30c3d6]['level']=_0x27547d,_0x27547d++);for(let _0x54d7ae=_0x12379d;_0x54d7ae<_0xe17a28;_0x54d7ae++)0x0==_0x4ac004[_0x54d7ae][_0x5e10('0x119')]&&(_0x4ac004[_0x54d7ae][_0x5e10('0x1a')]=_0x27547d);_0x27547d=0x0;for(let _0xe2a4e2=_0xe17a28-0x1;_0xe2a4e2>=_0x30f6b7;_0xe2a4e2--)0x0==_0x4ac004[_0xe2a4e2][_0x5e10('0x95')]?_0x4ac004[_0xe2a4e2]['level']=_0x27547d:(_0x27547d--,_0x4ac004[_0xe2a4e2][_0x5e10('0x1a')]=_0x27547d,_0x27547d--);}}['_fixObsoleteTags'](_0x5e50f7){const _0x566be8=new Map(),_0x4d29bf=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x116')];for(let _0x501a8a=0x1;_0x501a8a<_0x5e50f7['length'];_0x501a8a++){let _0x52499f,_0x260ce7,_0xa1a693;const _0x22de14=_0x5e50f7[_0x501a8a],_0x171fe8=_0x5e50f7[_0x501a8a-0x1];if(_0x5e10('0x4a')==_0x22de14[_0x5e10('0xb3')])continue;if(_0x22de14[_0x5e10('0xb3')]!=_0x171fe8[_0x5e10('0xb3')])continue;if(!_0x4d29bf['isBlock'](_0x171fe8[_0x5e10('0x13')])||_0x4d29bf[_0x5e10('0xec')](_0x171fe8['item']))continue;if(!_0x4d29bf['isBlock'](_0x22de14[_0x5e10('0x13')])||_0x4d29bf[_0x5e10('0xec')](_0x22de14[_0x5e10('0x13')]))continue;if((_0x5e50f7[_0x501a8a][_0x5e10('0x50')]||_0x5e50f7[_0x501a8a][_0x5e10('0xf2')])&&_0x5e50f7[_0x501a8a-0x1]['isRemoved'])_0x52499f=_0x5e50f7[_0x501a8a],_0x260ce7=_0x5e50f7[_0x501a8a-0x1],_0xa1a693=_0x501a8a-0x1;else{if(!_0x5e50f7[_0x501a8a][_0x5e10('0x40')]||!_0x5e50f7[_0x501a8a-0x1][_0x5e10('0x50')]&&!_0x5e50f7[_0x501a8a-0x1]['isAddSuggestion'])continue;_0x52499f=_0x5e50f7[_0x501a8a-0x1],_0x260ce7=_0x5e50f7[_0x501a8a],_0xa1a693=_0x501a8a;}const _0x5d726f=_0x52499f['level']==_0x260ce7[_0x5e10('0x1a')],_0x5673bf=Math['abs'](_0x52499f[_0x5e10('0x1a')])<Math[_0x5e10('0xbc')](_0x260ce7[_0x5e10('0x1a')])&&0x0==_0x260ce7[_0x5e10('0x95')];(_0x5d726f||_0x5673bf)&&(_0x566be8[_0x5e10('0xab')](_0x260ce7['id'],_0x52499f['id']),_0x5e50f7['splice'](_0xa1a693,0x1),_0x501a8a--,_0x52499f[_0x5e10('0x50')]=!0x1);}for(let _0x5b1245=0x0;_0x5b1245<_0x5e50f7[_0x5e10('0xd0')];_0x5b1245++)_0x566be8[_0x5e10('0x112')](_0x5e50f7[_0x5b1245][_0x5e10('0x4')])&&(_0x5e50f7[_0x5b1245]['pairId']=_0x566be8[_0x5e10('0x114')](_0x5e50f7[_0x5b1245][_0x5e10('0x4')]));}['_removeMissingPairs'](_0x3b4563){const _0x5e8bcf=new Set(_0x3b4563[_0x5e10('0x52')](_0x30e9ad=>_0x30e9ad['id']));for(let _0x558d74=0x0;_0x558d74<_0x3b4563[_0x5e10('0xd0')];_0x558d74++)_0x5e8bcf[_0x5e10('0x112')](_0x3b4563[_0x558d74][_0x5e10('0x4')])||0x0==_0x3b4563[_0x558d74][_0x5e10('0x95')]||(_0x3b4563[_0x558d74][_0x5e10('0x34')]=!0x0);return _0x3b4563['filter'](_0x356597=>!_0x356597[_0x5e10('0x34')]);}[_0x5e10('0x109')](_0x1e24da){const _0x1ca053=new Set();for(let _0x5556d9=0x0;_0x5556d9<_0x1e24da[_0x5e10('0xd0')];_0x5556d9++){if(_0x1ca053[_0x5e10('0x112')](_0x1e24da[_0x5556d9]['id'])&&_0x1e24da[_0x5556d9]['isRemoved']&&(_0x1e24da[_0x5556d9][_0x5e10('0x34')]=!0x0),_0x1e24da[_0x5556d9]['isIncorrect'])continue;if(0x0==_0x1e24da[_0x5556d9][_0x5e10('0x95')])continue;if(_0x5e10('0x120')!=_0x1e24da[_0x5556d9][_0x5e10('0xb3')])continue;if(null==_0x1e24da[_0x5556d9]['pairId'])continue;let _0x2aaf24=_0x5556d9+0x1,_0x82f996=0x0;for(;_0x1e24da[_0x2aaf24]['id']!=_0x1e24da[_0x5556d9][_0x5e10('0x4')];)_0x5e10('0x120')==_0x1e24da[_0x2aaf24][_0x5e10('0xb3')]?_0x82f996++:_0x5e10('0xc3')==_0x1e24da[_0x2aaf24][_0x5e10('0xb3')]&&_0x82f996--,_0x2aaf24++;if(0x0!=_0x82f996){if(_0x1e24da[_0x5556d9]['isRemoved'])_0x1e24da[_0x5556d9][_0x5e10('0x34')]=!0x0;else for(;_0x2aaf24!=_0x5556d9;)_0x1e24da[_0x2aaf24][_0x5e10('0x40')]&&0x0!=_0x1e24da[_0x2aaf24]['distance']&&(_0x1e24da[_0x2aaf24][_0x5e10('0x34')]=!0x0,_0x1ca053[_0x5e10('0x47')](_0x1e24da[_0x2aaf24]['pairId'])),_0x2aaf24--;}}return _0x1e24da[_0x5e10('0xa5')](_0x24aaee=>!_0x24aaee[_0x5e10('0x34')]);}['_removeUnsupportedChanges'](_0x256da4){const _0x6019af=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x116')];for(let _0xbacac0=0x0;_0xbacac0<_0x256da4[_0x5e10('0xd0')];_0xbacac0++){if(!(_0x256da4[_0xbacac0][_0x5e10('0x50')]||_0x256da4[_0xbacac0][_0x5e10('0xf2')]||_0x256da4[_0xbacac0][_0x5e10('0x40')]||_0x256da4[_0xbacac0][_0x5e10('0x23')]))continue;if(0x0==_0x256da4[_0xbacac0][_0x5e10('0x95')])continue;const _0x492523=_0x256da4[_0xbacac0][_0x5e10('0x13')];_0x6019af[_0x5e10('0x18')](_0x492523)||_0x6019af['isLimit'](_0x492523)||(_0x256da4[_0xbacac0][_0x5e10('0x50')]&&delete _0x256da4[_0xbacac0][_0x5e10('0x50')],_0x256da4[_0xbacac0]['isAddSuggestion']&&delete _0x256da4[_0xbacac0][_0x5e10('0xf2')],_0x256da4[_0xbacac0]['isRemoveSuggestion']&&delete _0x256da4[_0xbacac0][_0x5e10('0x23')],_0x256da4[_0xbacac0][_0x5e10('0x40')]&&(_0x256da4[_0xbacac0][_0x5e10('0x34')]=!0x0));}return _0x256da4[_0x5e10('0xa5')](_0x12ab26=>!_0x12ab26[_0x5e10('0x34')]);}[_0x5e10('0x74')](_0x53ed5f,_0x2a3b65,_0x705fd7){const _0x3c61e5=new _0x348e46(),_0x2c6b7b=[],_0x316b05=new Map(),_0x104b03=this['editor'][_0x5e10('0xc8')],_0x5d2431=_0x104b03[_0x5e10('0x116')],_0x747e77=[_0x3c61e5],_0x3f46d8={},_0xe32f05={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa30936=null;const _0x131632=[0x0];for(let _0x4bacbc=0x0;_0x4bacbc<_0x53ed5f['length'];_0x4bacbc++){let _0x23d119,_0x53d339;if(_0x5e10('0x120')===_0x53ed5f[_0x4bacbc]['type']){_0x23d119=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632);const _0x4abc17=new _0x1ec88f(_0x53ed5f[_0x4bacbc]['item'][_0x5e10('0x10')],_0x53ed5f[_0x4bacbc][_0x5e10('0x13')][_0x5e10('0x10c')]());_0x747e77[0x0][_0x5e10('0xdc')](_0x4abc17),_0x131632['push'](0x0),_0x747e77[_0x5e10('0x6a')](_0x4abc17),_0x53d339=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632),_0xa30936=null;}else{if('elementEnd'===_0x53ed5f[_0x4bacbc][_0x5e10('0xb3')])_0x747e77[_0x5e10('0x7c')](),_0x23d119=_0x104b03['createPositionFromPath'](_0x3c61e5,_0x131632),_0x131632['pop'](),_0x131632[_0x131632[_0x5e10('0xd0')]-0x1]++,_0x53d339=_0x104b03['createPositionFromPath'](_0x3c61e5,_0x131632),_0xa30936=null;else{if(_0x23d119=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632),_0xa30936&&_0x266f2f(_0xa30936,_0x53ed5f[_0x4bacbc][_0x5e10('0x13')]))_0xa30936[_0x5e10('0xcb')]+=_0x53ed5f[_0x4bacbc]['item'][_0x5e10('0xe7')];else{const _0x34b319=new _0xacc02e(_0x53ed5f[_0x4bacbc][_0x5e10('0x13')]['data'],_0x53ed5f[_0x4bacbc][_0x5e10('0x13')][_0x5e10('0x10c')]());_0x747e77[0x0]['_appendChild'](_0x34b319),_0xa30936=_0x34b319;}_0x131632[_0x131632[_0x5e10('0xd0')]-0x1]+=_0x53ed5f[_0x4bacbc][_0x5e10('0x13')]['offsetSize'],_0x53d339=_0x104b03[_0x5e10('0x7')](_0x3c61e5,_0x131632);}}for(const _0x43fa69 of _0x53ed5f[_0x4bacbc][_0x5e10('0x68')])_0x316b05[_0x5e10('0xab')](_0x43fa69,{'start':_0x23d119,'end':null});_0x2747fe(_0x5e10('0x23'),_0x4bacbc,_0x23d119,_0x53d339),_0x2747fe(_0x5e10('0xf2'),_0x4bacbc,_0x23d119,_0x53d339),_0x2747fe(_0x5e10('0x40'),_0x4bacbc,_0x23d119,_0x53d339),_0x2747fe(_0x5e10('0x50'),_0x4bacbc,_0x23d119,_0x53d339);for(const _0xc49a1d of _0x53ed5f[_0x4bacbc][_0x5e10('0x121')]){_0x316b05[_0x5e10('0x114')](_0xc49a1d)['end']=_0x53d339;}}for(const [_0x167042,_0x947edb]of _0x316b05){const _0x22f8f0=this[_0x5e10('0x6b')][_0x5e10('0xc8')]['createRange'](_0x947edb['start'],_0x947edb[_0x5e10('0x3a')]);_0x3c61e5['markers'][_0x5e10('0xab')](_0x167042,_0x22f8f0);}return _0x2c6b7b['sort']((_0x4fd05d,_0x4f01d1)=>{const _0x57bbc3=_0x3c61e5[_0x5e10('0x44')]['get'](_0x5e10('0x89')+_0x4fd05d['id']),_0x3eb938=_0x3c61e5[_0x5e10('0x44')]['get'](_0x5e10('0x89')+_0x4f01d1['id']);return _0x57bbc3[_0x5e10('0x66')][_0x5e10('0xa6')](_0x3eb938[_0x5e10('0x66')])?-0x1:_0x57bbc3['start'][_0x5e10('0x60')](_0x3eb938[_0x5e10('0x66')])?0x1:_0x57bbc3[_0x5e10('0x3a')][_0x5e10('0xa6')](_0x3eb938[_0x5e10('0x3a')])?-0x1:_0x57bbc3[_0x5e10('0x3a')][_0x5e10('0x60')](_0x3eb938[_0x5e10('0x3a')])?0x1:_0x5e10('0x47')===_0x4fd05d[_0x5e10('0xb3')]?-0x1:0x1;}),{'root':_0x3c61e5,'changes':_0x2c6b7b};function _0x2747fe(_0x1089e2,_0x40172c,_0x1410f5,_0x561811){const _0x171adc=!!_0x53ed5f[_0x40172c][_0x1089e2],_0x5c55c4=_0x171adc?_0x53ed5f[_0x40172c][_0x1089e2][_0x5e10('0x79')]:null,_0x5d0c65=_0x40172c===_0x53ed5f[_0x5e10('0xd0')]-0x1,_0xd9247a=_0xe32f05[_0x1089e2][0x0],_0x3d7d28=_0x5d2431[_0x5e10('0xaa')](_0x53ed5f[_0x40172c][_0x5e10('0x13')]);!_0x3f46d8[_0x1089e2]&&_0x171adc?_0x3f46d8[_0x1089e2]={'start':_0x1410f5,'tapeItem':_0x53ed5f[_0x40172c],'userId':_0x5c55c4,'type':_0x1089e2}:_0x3f46d8[_0x1089e2]&&!_0x171adc?(_0x3f46d8[_0x1089e2][_0x5e10('0x3a')]=_0x1410f5,_0x3fe604(_0x3f46d8[_0x1089e2]),_0x3f46d8[_0x1089e2]=null):_0x3f46d8[_0x1089e2]&&_0x171adc&&_0x3f46d8[_0x1089e2][_0x5e10('0x79')]!==_0x5c55c4&&(_0x3f46d8[_0x1089e2][_0x5e10('0x3a')]=_0x1410f5,_0xd9247a&&_0xd9247a[_0x5e10('0x79')]===_0x3f46d8[_0x1089e2][_0x5e10('0x79')]||_0x3fe604(_0x3f46d8[_0x1089e2]),_0x3f46d8[_0x1089e2]={'start':_0x1410f5,'tapeItem':_0x53ed5f[_0x40172c],'userId':_0x5c55c4,'type':_0x1089e2}),_0x3f46d8[_0x1089e2]&&_0x3d7d28&&(_0x5e10('0x120')!==_0x53ed5f[_0x40172c]['type']||_0xd9247a&&_0xd9247a[_0x5e10('0x79')]===_0x5c55c4||_0xe32f05[_0x1089e2][_0x5e10('0x6a')]({'userId':_0x5c55c4,'object':_0x53ed5f[_0x40172c][_0x5e10('0x13')],'change':_0x3f46d8[_0x1089e2]}),_0x5e10('0xc3')===_0x53ed5f[_0x40172c]['type']&&_0xd9247a&&_0xd9247a[_0x5e10('0xae')]===_0x53ed5f[_0x40172c][_0x5e10('0x13')]&&(_0xe32f05[_0x1089e2]['shift'](),_0x3f46d8[_0x1089e2]=_0xd9247a[_0x5e10('0x7f')])),_0x3f46d8[_0x1089e2]&&_0x5d0c65&&(_0x3f46d8[_0x1089e2]['end']=_0x561811,_0x3fe604(_0x3f46d8[_0x1089e2]),_0x3f46d8[_0x1089e2]=null);}function _0x3fe604({start:_0x4033e4,end:_0x2e6d7a,tapeItem:_0x527215,userId:_0x48fd51,type:_0x349e38}){const _0x119367=_0x527215[_0x5e10('0x13')],_0x51797c=_0x104b03[_0x5e10('0x116')][_0x5e10('0x18')](_0x119367)&&!_0x104b03[_0x5e10('0x116')][_0x5e10('0xec')](_0x119367),_0x5ddc24=_0x4033e4[_0x5e10('0x46')]==_0x2e6d7a['parent']&&_0x2e6d7a['isAtStart'];if(_0x51797c&&_0x5ddc24)return;const _0x41f407=_0x104b03[_0x5e10('0xd9')](_0x4033e4,_0x2e6d7a),_0x2d80cd=_0x2a3b65[_0x5e10('0x114')](_0x48fd51),_0x3ab5cb=new _0x4530f3({'author':_0x2d80cd,'type':'isAdded'==_0x349e38||_0x5e10('0xf2')==_0x349e38?_0x5e10('0x47'):_0x5e10('0x76'),'data':{'isSuggestion':_0x5e10('0xf2')==_0x349e38||_0x5e10('0x23')==_0x349e38},'createdAt':new Date(),'rootName':_0x705fd7});_0x2c6b7b['push'](_0x3ab5cb),_0x3c61e5[_0x5e10('0x44')][_0x5e10('0xab')](_0x5e10('0x89')+_0x3ab5cb['id'],_0x41f407);}function _0x266f2f(_0x388f59,_0x1f9dcf){const _0x50b850=_0x388f59[_0x5e10('0x10c')](),_0xbaaec2=_0x1f9dcf[_0x5e10('0x10c')]();for(const _0x2fdf75 of _0x50b850){if(_0x2fdf75[0x1]!==_0x1f9dcf['getAttribute'](_0x2fdf75[0x0]))return!0x1;_0xbaaec2[_0x5e10('0xc5')]();}return _0xbaaec2[_0x5e10('0xc5')]()[_0x5e10('0x107')];}}[_0x5e10('0xf4')](){this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0x2'))[_0x5e10('0x106')]({'view':_0x5e10('0x11e')}),this['editor'][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0xeb'))[_0x5e10('0x2e')]({'model':_0x5e10('0x11e'),'view':_0x197446=>{const _0x5bba3e=_0x197446[_0x5e10('0xef')][_0x5e10('0xc')](':')[0x1],_0x5829bf=this['_getChangeFromId'](_0x5bba3e);if(!_0x5829bf)return null;const _0x404014='add'==_0x5829bf[_0x5e10('0xb3')]?_0x5e10('0x9e'):_0x5e10('0x6e'),_0x1de2c8=[_0x5e10('0xd'),_0x5e10('0x7b')+_0x404014];return _0x5829bf[_0x5e10('0xe7')][_0x5e10('0xa')]&&_0x1de2c8[_0x5e10('0x8d')](_0x5e10('0x7b')+_0x404014+_0x5e10('0x94')),this['activeChange']==_0x5829bf&&_0x1de2c8['push']('ck-suggestion-marker--active'),{'classes':_0x1de2c8,'attributes':{'data-change-id':_0x5bba3e}};}}),this[_0x5e10('0x6b')][_0x5e10('0x4b')]['for'](_0x5e10('0x2'))[_0x5e10('0x47')](_0x1dcf16=>{_0x1dcf16['on'](_0x5e10('0x3b'),(_0x839eb1,_0x2be135,_0x119795)=>{const _0x55f711=_0x2be135[_0x5e10('0x4c')][_0x5e10('0x7e')](0x0);if(!_0x55f711||!_0x55f711['is']('element',_0x5e10('0xcc')))return;if(!_0x119795['consumable'][_0x5e10('0xf9')](_0x55f711,{'attributes':[_0x5e10('0x10e'),_0x5e10('0xd1')]}))return;const _0x2f3943=_0x2be135['modelRange']['start'][_0x5e10('0x46')];_0x119795['writer'][_0x5e10('0xee')]('vid_start',_0x55f711['getAttribute'](_0x5e10('0x10e')),_0x2f3943),_0x119795[_0x5e10('0x45')][_0x5e10('0xee')](_0x5e10('0xd1'),_0x55f711[_0x5e10('0xd5')](_0x5e10('0xd1')),_0x2f3943);},{'priority':_0x5e10('0x26')});}),this[_0x5e10('0x6b')][_0x5e10('0x4b')]['for'](_0x5e10('0x2'))[_0x5e10('0x47')](_0x437ecd=>{_0x437ecd['on'](_0x5e10('0x111'),(_0x1eedd6,_0x5db50c,_0x33046)=>{if(!_0x33046[_0x5e10('0xd7')][_0x5e10('0xf9')](_0x5db50c['viewItem'],{'attributes':[_0x5e10('0x10e'),_0x5e10('0xd1')]}))return;if(_0x5db50c[_0x5e10('0x75')][_0x5e10('0xf0')])return;const _0xfc7a38=_0x5db50c[_0x5e10('0x75')][_0x5e10('0x66')][_0x5e10('0x46')];_0xfc7a38['hasAttribute'](_0x5e10('0x10e'))||_0xfc7a38[_0x5e10('0xde')](_0x5e10('0xe0'))||(_0x33046[_0x5e10('0x45')][_0x5e10('0xee')](_0x5e10('0x10e'),_0x5db50c[_0x5e10('0x4c')][_0x5e10('0xd5')](_0x5e10('0x10e')),_0xfc7a38),_0x33046[_0x5e10('0x45')]['setAttribute']('vid_end',_0x5db50c[_0x5e10('0x4c')][_0x5e10('0xd5')](_0x5e10('0xd1')),_0xfc7a38));},{'priority':_0x5e10('0x26')});}),this['editor']['conversion'][_0x5e10('0x85')](_0x5e10('0x2'))['elementToAttribute']({'view':{'name':_0x5e10('0xbf'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x988067=>_0x988067[_0x5e10('0xd5')]('vid')}}),this[_0x5e10('0x6b')]['model'][_0x5e10('0x116')]['on']('checkAttribute',(_0x41b1d7,[,_0x4d17cc])=>{[_0x5e10('0x10e'),_0x5e10('0xd1'),_0x5e10('0xe0')][_0x5e10('0x2d')](_0x4d17cc)&&(_0x41b1d7[_0x5e10('0xb6')]=!0x0,_0x41b1d7['stop']());},{'priority':'highest'}),this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0x8f'))[_0x5e10('0x47')](_0x429a89=>{_0x429a89['on']('attribute:vid',(_0x582540,_0x2e6c5a,_0x4c3eea)=>{if('\x20'!=_0x2e6c5a['item'][_0x5e10('0xe7')]||_0x2e6c5a[_0x5e10('0x13')][_0x5e10('0x6c')]['maxOffset']>0x1)return;if(!_0x4c3eea['consumable'][_0x5e10('0xf9')](_0x2e6c5a[_0x5e10('0x13')],_0x582540['name']))return;const _0x35a8fa=_0x4c3eea[_0x5e10('0x45')],_0x387756=_0x4c3eea[_0x5e10('0x83')][_0x5e10('0xd3')](_0x2e6c5a['range']);_0x35a8fa[_0x5e10('0x10d')](_0x387756,_0x35a8fa[_0x5e10('0x6d')](_0x5e10('0xbf')));});}),this[_0x5e10('0x6b')][_0x5e10('0x4b')]['for'](_0x5e10('0x8f'))[_0x5e10('0xe8')]({'model':'revision'}),this['editor'][_0x5e10('0xe5')][_0x5e10('0x64')]['on'](_0x5e10('0xba'),function(_0x3fb490){const _0xa75515=_0x3fb490[_0x5e10('0xe9')]['get'](_0x5e10('0xac'));return(_0x28a1ce,_0x4de343,_0xcfad95)=>{const _0x1131cc=_0x4de343['markerName'][_0x5e10('0xc')](':')[0x1],_0x1f5e9e=_0xa75515[_0x5e10('0xb8')](_0x1131cc);if(!_0x1f5e9e)return null;const _0x5ba531=_0x5e10('0x47')==_0x1f5e9e[_0x5e10('0xb3')]?'split':'merge';if(!_0xcfad95[_0x5e10('0xd7')][_0x5e10('0x36')](_0x4de343[_0x5e10('0xa1')],_0x28a1ce['name']))return;const _0x1c08a5=_0x4de343[_0x5e10('0xa1')]['getWalker'](),_0x30678b=_0x4de343[_0x5e10('0xa1')][_0x5e10('0x66')],_0x117ff7=_0x3fb490[_0x5e10('0xc8')][_0x5e10('0x116')];let _0x1098e0=null,_0xff71cf=null,_0x1aa0e6=!0x1,_0x229a50=!0x1;for(const _0x2fee97 of _0x1c08a5){const _0xe40205=_0x2fee97[_0x5e10('0x13')];_0x1aa0e6=_0x1aa0e6||_0x117ff7['isContent'](_0xe40205);const _0x23f24e=_0xcfad95[_0x5e10('0x83')][_0x5e10('0x63')](_0xe40205);if(_0x23f24e&&_0x23f24e[_0x5e10('0x21')](_0x5e10('0x77')))return;'elementEnd'==_0x2fee97['type']&&(_0x117ff7[_0x5e10('0x18')](_0xe40205)&&!_0x117ff7[_0x5e10('0xec')](_0xe40205)&&(_0xe40205[_0x5e10('0x1')]||_0x30678b[_0x5e10('0xd4')]?_0x1098e0&&_0x1098e0['parent']==_0xe40205||(_0x1098e0=_0xe40205,_0x4f83c9(_0x2fee97[_0x5e10('0xed')]),_0x229a50=!0x0):_0xff71cf=_0xff71cf||_0x2fee97[_0x5e10('0xed')]));}function _0x4f83c9(_0x309430){const _0x16ae6d=_0xcfad95['writer']['createUIElement'](_0x5e10('0xbf'),{'class':'ck-suggestion-marker-'+_0x5ba531}),_0x74ca8e=_0xcfad95['mapper'][_0x5e10('0x10a')](_0x309430);_0x1f5e9e[_0x5e10('0xe7')][_0x5e10('0xa')]&&_0xcfad95[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x7b')+_0x5ba531+'-new',_0x16ae6d),_0xa75515[_0x5e10('0x99')]==_0x1f5e9e&&_0xcfad95[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x98'),_0x16ae6d),_0xcfad95['writer'][_0x5e10('0x10b')](_0x74ca8e,_0x16ae6d),_0xcfad95['mapper']['bindElementToMarker'](_0x16ae6d,_0x4de343['markerName']);}_0x1aa0e6||_0x229a50||!_0xff71cf||_0x4f83c9(_0xff71cf);};}(this[_0x5e10('0x6b')]),{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x64')]['on']('removeMarker:revision',(_0x12fe64,_0x354732,_0x20966a)=>{const _0xf63fd0=_0x20966a[_0x5e10('0x83')][_0x5e10('0x117')](_0x354732[_0x5e10('0xef')]);if(_0xf63fd0)for(const _0x5e4fc9 of _0xf63fd0)(_0x5e4fc9['hasClass'](_0x5e10('0xa7'))||_0x5e4fc9[_0x5e10('0x3c')](_0x5e10('0x11c')))&&(_0x20966a[_0x5e10('0x83')][_0x5e10('0xbe')](_0x5e4fc9,_0x354732[_0x5e10('0xef')]),_0x20966a[_0x5e10('0x45')][_0x5e10('0x76')](_0x5e4fc9));},{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')]['editing'][_0x5e10('0x64')]['on'](_0x5e10('0xba'),(_0x2c4d9d,_0x38231f,_0x4f02fb)=>{const _0x43835c=_0x38231f['markerName']['split'](':')[0x1],_0x203b6d=this[_0x5e10('0xb8')](_0x43835c);if(!_0x203b6d)return null;const _0x3e018f='add'==_0x203b6d[_0x5e10('0xb3')]?_0x5e10('0xc'):_0x5e10('0x17');if(_0x4f02fb[_0x5e10('0xd7')][_0x5e10('0x36')](_0x38231f[_0x5e10('0xa1')],_0x2c4d9d['name']))for(const _0x3a93ce of _0x38231f[_0x5e10('0xa1')][_0x5e10('0x35')]()){if(!_0x3a93ce['is'](_0x5e10('0x111'),_0x5e10('0x7d')))continue;const _0x129879=_0x4f02fb[_0x5e10('0x45')]['createUIElement']('span',{'class':_0x5e10('0x7b')+_0x3e018f}),_0x2030f7=_0x4f02fb['mapper'][_0x5e10('0x10a')](this['editor'][_0x5e10('0xc8')][_0x5e10('0x49')](_0x3a93ce));_0x203b6d[_0x5e10('0xe7')][_0x5e10('0xa')]&&_0x4f02fb[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x7b')+_0x3e018f+_0x5e10('0x94'),_0x129879),this['activeChange']==_0x203b6d&&_0x4f02fb[_0x5e10('0x45')][_0x5e10('0x8b')](_0x5e10('0x98'),_0x129879),_0x4f02fb[_0x5e10('0x45')]['insert'](_0x2030f7,_0x129879),_0x4f02fb[_0x5e10('0x83')][_0x5e10('0x125')](_0x129879,_0x38231f[_0x5e10('0xef')]);}},{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')]['on'](_0x5e10('0x7f'),()=>{this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0x7f')](_0x319362=>{for(const _0x2d7f41 of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')]['getRootNames']()){const _0x9b8278=this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x8c')](_0x2d7f41),_0xed523d=this[_0x5e10('0x6b')]['editing']['view']['document'][_0x5e10('0x8c')](_0x2d7f41);if(_0xed523d){const _0x1c19a1=_0x9b8278[_0x5e10('0xd5')](_0x5e10('0xbd'));if(_0x319362[_0x5e10('0x2f')](_0x5e10('0x122'),_0xed523d),_0x319362[_0x5e10('0x96')](_0x5e10('0xf6'),_0xed523d),_0x319362['removeClass'](_0x5e10('0x4f'),_0xed523d),_0x319362['removeClass'](_0x5e10('0x33'),_0xed523d),_0x1c19a1){const _0x11c143=this['_getChangeFromId'](_0x1c19a1);if(!_0x11c143)return null;_0x319362['setAttribute']('data-change-id',_0x1c19a1,_0xed523d),_0x319362['addClass'](_0x5e10('0x9')+_0x11c143['type'],_0xed523d),this[_0x5e10('0x99')]==_0x11c143&&_0x319362[_0x5e10('0x8b')](_0x5e10('0x33'),_0xed523d);}}}});}),this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')](_0x5e10('0x2'))[_0x5e10('0x106')]({'view':_0x5e10('0xf5'),'model':_0x3d5b79=>_0x5e10('0xc1')+_0x3d5b79,'converterPriority':_0x5e10('0x43')}),this[_0x5e10('0x6b')][_0x5e10('0x4b')][_0x5e10('0x85')]('upcast')[_0x5e10('0x106')]({'view':_0x5e10('0x5c'),'model':_0x22f68b=>_0x5e10('0x59')+_0x22f68b,'converterPriority':_0x5e10('0x43')}),this['editor']['conversion'][_0x5e10('0x85')](_0x5e10('0x8f'))['markerToData']({'model':_0x5e10('0xfc'),'view':_0x3c2c6e=>({'name':_0x5e10('0x58')+_0x3c2c6e,'group':_0x5e10('0xfc')}),'converterPriority':'highest'}),this[_0x5e10('0x6b')]['conversion'][_0x5e10('0x85')](_0x5e10('0xeb'))[_0x5e10('0x2e')]({'model':_0x5e10('0xfc'),'view':_0x52286c=>{const _0x5ee608=_0x52286c[_0x5e10('0xef')][_0x5e10('0xc')](':')[0x1];return _0x5e10('0x9e')!=_0x5ee608&&_0x5e10('0x6e')!=_0x5ee608?null:{'classes':[_0x5e10('0xce'),_0x5e10('0xdf')+_0x5ee608]};}}),this[_0x5e10('0x6b')]['editing'][_0x5e10('0x64')]['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x5e10('0x17')),{'priority':'high'}),this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x64')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x5e10('0x6b')],'split'),{'priority':_0x5e10('0x38')}),this[_0x5e10('0x6b')]['editing'][_0x5e10('0x64')]['on']('removeMarker:revision-suggestion',(_0x2d90c5,_0x250878,_0x32cf2f)=>{const _0x5a03af=_0x32cf2f[_0x5e10('0x83')][_0x5e10('0x117')](_0x250878[_0x5e10('0xef')]);if(_0x5a03af)for(const _0x51c0a8 of _0x5a03af)_0x51c0a8['is'](_0x5e10('0xa3'))&&(_0x32cf2f[_0x5e10('0x83')][_0x5e10('0xbe')](_0x51c0a8,_0x250878[_0x5e10('0xef')]),_0x32cf2f[_0x5e10('0x45')][_0x5e10('0x76')](_0x51c0a8));},{'priority':_0x5e10('0x38')});}[_0x5e10('0xb8')](_0x4d7a59){return this[_0x5e10('0x1d')]['get'](_0x4d7a59);}[_0x5e10('0x53')](_0x406699){return this['_changeView']&&this[_0x5e10('0x3')]['destroy'](),this[_0x5e10('0x3')]=new _0x37931b(this[_0x5e10('0x6b')][_0x5e10('0x92')],_0x406699),this[_0x5e10('0x3')];}['_initInteractions'](){this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0xaf')][_0x5e10('0x88')][_0x5e10('0x12')](_0x5e10('0x11e')),this['on']('change:activeView',(_0x178083,_0x2ea37d,_0xab4400,_0x4b9dcb)=>{_0x4b9dcb&&this[_0x5e10('0x55')][_0x5e10('0x76')](_0x4b9dcb),_0xab4400&&(this['_balloon']['add']({'view':_0xab4400,'stackId':_0x5e10('0xea'),'position':{'target':()=>{const _0x472d95=this[_0x5e10('0x6b')][_0x5e10('0xe5')],_0x51c511=this[_0x5e10('0xb8')](_0xab4400[_0x5e10('0x73')]);let _0x10e7c8;if(_0x51c511[_0x5e10('0xe7')][_0x5e10('0xe6')]){const _0x4e06cf=_0x472d95[_0x5e10('0x1c')][_0x5e10('0xfe')](_0x51c511['rootName']);_0x10e7c8=Array[_0x5e10('0xb5')](_0x4e06cf[_0x5e10('0x105')]());}else{const _0x5dfe41=this[_0x5e10('0x6b')][_0x5e10('0xc8')]['markers']['get']('revision:'+_0xab4400[_0x5e10('0x73')]);_0x10e7c8=Array['from'](_0x472d95[_0x5e10('0x83')][_0x5e10('0x117')](_0x5dfe41[_0x5e10('0x10')]))[_0x5e10('0x52')](_0x38b907=>_0x472d95[_0x5e10('0x1c')][_0x5e10('0x81')][_0x5e10('0xa0')](_0x38b907))[_0x5e10('0x52')](_0x3119df=>Array[_0x5e10('0xb5')](_0x3119df[_0x5e10('0x105')]()))[_0x5e10('0x32')]();}if(!this[_0x5e10('0xe')])return _0x10e7c8[0x0];return _0x10e7c8[_0x5e10('0x5')](_0x4afd9c=>_0x4afd9c[_0x5e10('0xfd')]-0x3<=this[_0x5e10('0xe')]['y']&&_0x4afd9c['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4afd9c[_0x5e10('0x9b')]-0x3<=this['_activeViewTarget']['x']&&_0x4afd9c[_0x5e10('0x25')]+0x3>=this[_0x5e10('0xe')]['x'])||_0x10e7c8[0x0];}}}),this[_0x5e10('0x55')][_0x5e10('0x1e')](_0x5e10('0xea')));}),this['on'](_0x5e10('0x113'),(_0x44f085,_0x12cbae,_0x5a6b07,_0x1ef48d)=>{this[_0x5e10('0x93')]=_0x5a6b07?this[_0x5e10('0x53')](_0x5a6b07):null,this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x7f')](()=>{const _0x2c7890=this[_0x5e10('0x6b')][_0x5e10('0xe5')];_0x1ef48d&&(_0x1ef48d[_0x5e10('0xe7')]['isOnRoot']?_0x2c7890[_0x5e10('0x1c')][_0x5e10('0x7f')](_0x592c19=>{_0x592c19[_0x5e10('0x96')](_0x5e10('0x33'),_0x2c7890[_0x5e10('0x1c')][_0x5e10('0xaf')][_0x5e10('0x8c')](_0x1ef48d[_0x5e10('0x67')]));}):_0x2c7890[_0x5e10('0x3e')]('revision:'+_0x1ef48d['id'])),_0x5a6b07&&(_0x5a6b07['data'][_0x5e10('0xe6')]?_0x2c7890[_0x5e10('0x1c')]['change'](_0x3b19d9=>{_0x3b19d9[_0x5e10('0x8b')](_0x5e10('0x33'),_0x2c7890[_0x5e10('0x1c')][_0x5e10('0xaf')][_0x5e10('0x8c')](_0x5a6b07[_0x5e10('0x67')]));}):_0x2c7890[_0x5e10('0x3e')](_0x5e10('0x89')+_0x5a6b07['id']));});}),this[_0x5e10('0x28')](this[_0x5e10('0x6b')][_0x5e10('0xe5')]['view'][_0x5e10('0xaf')],'mouseover',(_0x75410f,_0x3c1b66)=>{if(this['activeChange'])return;const _0x360c99=this[_0x5e10('0x11f')](_0x3c1b66['target']),_0x132d22=this['_changeIdToChange'][_0x5e10('0x114')](_0x360c99);_0x132d22?(this['_activeViewTarget']={'x':_0x3c1b66[_0x5e10('0x14')]['x'],'y':_0x3c1b66[_0x5e10('0x14')]['y']},this[_0x5e10('0x93')]=this['_getViewForChange'](_0x132d22)):(this['_activeViewTarget']=null,this[_0x5e10('0x93')]=null);}),this[_0x5e10('0x28')](this[_0x5e10('0x6b')][_0x5e10('0xe5')][_0x5e10('0x1c')][_0x5e10('0xaf')],_0x5e10('0x19'),(_0x341ad2,_0x8a688)=>{const _0x965c8b=this[_0x5e10('0x11f')](_0x8a688['target']),_0x44821a=this['_changeIdToChange'][_0x5e10('0x114')](_0x965c8b);_0x44821a?(this['_activeViewTarget']={'x':_0x8a688[_0x5e10('0x14')]['x'],'y':_0x8a688[_0x5e10('0x14')]['y']},_0x44821a===this[_0x5e10('0x99')]?this[_0x5e10('0x55')][_0x5e10('0xf7')]():this['activeChange']=_0x44821a):(this['_activeViewTarget']=null,this[_0x5e10('0x99')]=null);});}[_0x5e10('0x11f')](_0x22930f){do{const _0x5e4724=_0x22930f[_0x5e10('0xd5')]('data-change-id');if(_0x5e4724)return _0x5e4724;_0x22930f=_0x22930f[_0x5e10('0x6c')];}while(_0x22930f);return null;}[_0x5e10('0x27')](){this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x7f')](_0x3bc841=>{for(const _0xfca30a of this[_0x5e10('0x6b')][_0x5e10('0xc8')][_0x5e10('0x44')])_0x3bc841[_0x5e10('0x123')](_0xfca30a);});}}function et(_0xe2cf8d,_0x8dc1de){return(_0x580c4a,_0xff3080,_0x20b9c8)=>{if(!_0x20b9c8[_0x5e10('0xd7')][_0x5e10('0x36')](_0xff3080[_0x5e10('0xa1')],_0x580c4a[_0x5e10('0x10')]))return;const _0x140c7d=_0xff3080[_0x5e10('0xa1')][_0x5e10('0xe1')](),_0xc0b715=_0xff3080[_0x5e10('0xa1')][_0x5e10('0x66')],_0x1ba574=_0xe2cf8d['model'][_0x5e10('0x116')];let _0x70d31a=null,_0x4d302f=null,_0xeeb23f=!0x1,_0x23006d=!0x1;for(const _0x113e7f of _0x140c7d){const _0x5d1cd1=_0x113e7f['item'];_0xeeb23f=_0xeeb23f||_0x1ba574[_0x5e10('0xa8')](_0x5d1cd1);const _0x3cf4f9=_0x20b9c8[_0x5e10('0x83')][_0x5e10('0x63')](_0x5d1cd1);if(_0x3cf4f9&&_0x3cf4f9['getCustomProperty'](_0x5e10('0x77')))return;_0x5e10('0xc3')==_0x113e7f[_0x5e10('0xb3')]&&(_0x1ba574['isBlock'](_0x5d1cd1)&&!_0x1ba574[_0x5e10('0xec')](_0x5d1cd1)&&(_0x5d1cd1[_0x5e10('0x1')]||_0xc0b715[_0x5e10('0xd4')]?_0x70d31a&&_0x70d31a['parent']==_0x5d1cd1||(_0x70d31a=_0x5d1cd1,_0x122898(_0x113e7f[_0x5e10('0xed')]),_0x23006d=!0x0):_0x4d302f=_0x4d302f||_0x113e7f[_0x5e10('0xed')]));}function _0x122898(_0x4d82c4){const _0x1022b6=_0x20b9c8[_0x5e10('0x83')][_0x5e10('0x10a')](_0x4d82c4),_0x17f4a5=_0x20b9c8[_0x5e10('0x45')][_0x5e10('0x57')](_0x5e10('0xbf'),{'class':'ck-suggestion-preview-marker-'+_0x8dc1de});_0x20b9c8[_0x5e10('0x45')][_0x5e10('0x10b')](_0x1022b6,_0x17f4a5),_0x20b9c8[_0x5e10('0x83')][_0x5e10('0x125')](_0x17f4a5,_0xff3080['markerName']);}_0xeeb23f||_0x23006d||!_0x4d302f||_0x122898(_0x4d302f);};}export class RestoreRevisionCommand extends _0x8477e{constructor(_0x57ea13){super(_0x57ea13);const _0x489080=_0x57ea13[_0x5e10('0xe9')][_0x5e10('0x114')](d);this[_0x5e10('0xf')]=!0x1,this[_0x5e10('0x28')](_0x489080,'change:isReady',()=>this[_0x5e10('0xc0')]()),this[_0x5e10('0x28')](_0x489080,_0x5e10('0x22'),()=>this[_0x5e10('0xc0')]());}[_0x5e10('0xcf')](){const _0x24ab1a=this[_0x5e10('0x6b')],_0x32aafd=_0x24ab1a[_0x5e10('0xe9')][_0x5e10('0x114')](d),_0x4ebdca=_0x32aafd[_0x5e10('0x101')]?_0x32aafd[_0x5e10('0x9a')][_0x5e10('0x4e')]:null;_0x24ab1a[_0x5e10('0x7a')][_0x5e10('0x114')](_0x5e10('0x3f'))[_0x5e10('0xca')](_0x4ebdca);}[_0x5e10('0xc0')](){const {isReady:_0x4daeb7,isEnabled:_0x285d8f}=this[_0x5e10('0x6b')]['plugins'][_0x5e10('0x114')](d);this[_0x5e10('0x103')]=_0x4daeb7&&_0x285d8f;}}export class ShowChangeCommand extends _0x8477e{constructor(_0x4f5988,{direction:_0x48b558}){super(_0x4f5988);const _0x2b3548=_0x4f5988[_0x5e10('0xe9')][_0x5e10('0x114')](d);this['affectsData']=!0x1,this[_0x5e10('0x0')]=_0x5e10('0xad')===_0x48b558?0x1:-0x1,this[_0x5e10('0x28')](_0x2b3548,'change:isReady',()=>this[_0x5e10('0xc0')]()),this['listenTo'](_0x2b3548,_0x5e10('0x22'),()=>this['refresh']()),this[_0x5e10('0x28')](_0x2b3548,_0x5e10('0x113'),()=>this[_0x5e10('0xc0')]());}[_0x5e10('0xcf')](){const _0x18be79=this['editor'],_0x15712d=_0x18be79[_0x5e10('0xe9')][_0x5e10('0x114')](d),{isNavigationMode:_0x32c250,currentChangeNumber:_0x283784}=_0x15712d;let _0x3af52e;if(_0x15712d[_0x5e10('0x99')]=_0x32c250?_0x15712d[_0x5e10('0x9a')][_0x5e10('0x9d')][_0x5e10('0x114')](_0x283784+this['_step']):_0x15712d[_0x5e10('0x9a')][_0x5e10('0x9d')][_0x5e10('0xb7')],_0x15712d[_0x5e10('0x99')][_0x5e10('0xe7')][_0x5e10('0xe6')])_0x3af52e=_0x18be79['editing'][_0x5e10('0x1c')][_0x5e10('0xfe')](_0x15712d[_0x5e10('0x99')][_0x5e10('0x67')]);else{const _0x3ec1af=_0x18be79[_0x5e10('0xc8')][_0x5e10('0x44')]['get'](_0x5e10('0x89')+_0x15712d[_0x5e10('0x99')]['id']);_0x3af52e=_0x4ee3ac(_0x18be79[_0x5e10('0xe5')],_0x3ec1af);}_0x2eed88({'target':_0x3af52e,'viewportOffset':0x28});}[_0x5e10('0xc0')](){const {isNavigationMode:_0x3d4274,currentChangeNumber:_0x3517ae,numberOfChanges:_0x157ca4,isReady:_0x41ea46,isEnabled:_0x5181df}=this['editor'][_0x5e10('0xe9')][_0x5e10('0x114')](d);this[_0x5e10('0x103')]=!!(_0x5181df&&_0x41ea46&&_0x157ca4)&&(!_0x3d4274||(0x1===this[_0x5e10('0x0')]?_0x3517ae<_0x157ca4-0x1:_0x3517ae>0x0));}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x9ed9=['name','button','ck-revision-history-sidebar__revision__actions','function','extendTemplate','bindTemplate','action','listenTo','isEnabled','isOpen','isVisible','items','set','execute','stopPropagation','children','threeVerticalDots','locale','model','listView','class','find','map','_action','Name\x20this\x20revision','change:isActionsDropdownOpen','ck-on','isActionsDropdownOpen','isReady'];(function(_0x1046d3,_0x9ed938){const _0x35a2c9=function(_0x3f6b6d){while(--_0x3f6b6d){_0x1046d3['push'](_0x1046d3['shift']());}};_0x35a2c9(++_0x9ed938);}(_0x9ed9,0xa8));const _0x35a2=function(_0x1046d3,_0x9ed938){_0x1046d3=_0x1046d3-0x0;let _0x35a2c9=_0x9ed9[_0x1046d3];return _0x35a2c9;};import{Collection as _0x1d47cb}from'ckeditor5/src/utils';import{icons as _0x203d8f}from'ckeditor5/src/core';import{Model as _0x5b95d5,addListToDropdown as _0x19220c,createDropdown as _0x3d1f4a}from'ckeditor5/src/ui';import{getTranslation as _0x12a5d3}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x27cd21,_0x5b755f){const _0x3df1ad=_0x27cd21[_0x35a2('0xb')],_0x4b894b=_0x27cd21[_0x35a2('0x17')],_0x39ba9b=_0x3d1f4a(_0x4b894b);_0x39ba9b['panelPosition']='sw';const _0x38af6c=function(_0x4b40c9,_0x52d429){const _0x27e931=function(_0x1c6d0a,_0x1ab9ee){const _0x3f081b=_0x1c6d0a[_0x35a2('0x17')],_0x5c3158={'Compare\x20against\x20selected':_0x12a5d3(_0x3f081b,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x12a5d3(_0x3f081b,_0x35a2('0x1')),'Restore\x20this\x20revision':_0x12a5d3(_0x3f081b,'Restore\x20this\x20revision')};return _0x1ab9ee[_0x35a2('0x1c')](_0x34a8a8=>{const _0x1ab643=_0x5c3158[_0x34a8a8['name']];return _0x1ab643&&_0x1ab643!==_0x34a8a8['name']&&(_0x34a8a8[_0x35a2('0x6')]=_0x1ab643),_0x34a8a8;});}(_0x4b40c9,_0x52d429),_0x19ea7f=new _0x1d47cb();for(const _0x1907be of _0x27e931){const _0xb45de0={'type':_0x35a2('0x7'),'model':new _0x5b95d5({'label':_0x1907be[_0x35a2('0x6')],'class':_0x1907be[_0x35a2('0x1a')],'withText':!0x0,'_action':_0x1907be[_0x35a2('0xc')]})};_0xb45de0[_0x35a2('0x18')]['bind'](_0x35a2('0xe'))['to'](_0x4b40c9,_0x35a2('0x4'),_0x3f94d0=>_0x35a2('0x9')!=typeof _0x1907be['isEnabled']||(!_0x3f94d0||_0x1907be[_0x35a2('0xe')](_0x4b40c9))),_0x19ea7f['add'](_0xb45de0);}return _0x19ea7f;}(_0x27cd21,_0x5b755f);return _0x27cd21['bind'](_0x35a2('0x4'))['to'](_0x39ba9b,_0x35a2('0xf')),_0x39ba9b['buttonView'][_0x35a2('0x12')]({'label':_0x12a5d3(_0x4b894b,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x203d8f[_0x35a2('0x16')]}),_0x39ba9b[_0x35a2('0xa')]({'attributes':{'class':[_0x35a2('0x8'),_0x3df1ad['if'](_0x35a2('0x4'),_0x35a2('0x3'))]},'on':{'click':_0x3df1ad['to'](_0x4ebafc=>_0x4ebafc[_0x35a2('0x14')]())}}),_0x39ba9b['on'](_0x35a2('0x13'),_0x5c974b=>{_0x27cd21[_0x35a2('0x5')]&&_0x35a2('0x9')==typeof _0x5c974b['source'][_0x35a2('0x0')]&&_0x5c974b['source'][_0x35a2('0x0')](_0x27cd21);}),_0x19220c(_0x39ba9b,_0x38af6c),_0x39ba9b[_0x35a2('0xd')](_0x27cd21,_0x35a2('0x2'),(_0x22b0f7,_0x44b81c,_0x506214)=>{if(_0x506214)for(const _0x4fc48a of _0x39ba9b[_0x35a2('0x19')][_0x35a2('0x11')]){const _0x4aaa25=_0x4fc48a[_0x35a2('0x15')]['first'],_0x506050=_0x5b755f[_0x35a2('0x1b')](_0x342286=>_0x342286[_0x35a2('0xc')]===_0x4aaa25[_0x35a2('0x0')])[_0x35a2('0x10')];_0x4fc48a[_0x35a2('0x10')]=void 0x0===_0x506050||_0x506050(_0x27cd21);}}),_0x39ba9b;}
23
+ const _0x4005=['map','isEnabled','action','model','ck-on','change:isActionsDropdownOpen','isActionsDropdownOpen','extendTemplate','locale','panelPosition','set','isReady','_action','buttonView','Restore\x20this\x20revision','listenTo','first','isOpen','isVisible','function','Name\x20this\x20revision','name','ck-revision-history-sidebar__revision__actions','listView','bind','items','class','children','source','find','execute','Compare\x20against\x20selected','button'];(function(_0x3ae2ed,_0x400519){const _0x104782=function(_0x488af6){while(--_0x488af6){_0x3ae2ed['push'](_0x3ae2ed['shift']());}};_0x104782(++_0x400519);}(_0x4005,0x15b));const _0x1047=function(_0x3ae2ed,_0x400519){_0x3ae2ed=_0x3ae2ed-0x0;let _0x104782=_0x4005[_0x3ae2ed];return _0x104782;};import{Collection as _0x4b8336}from'ckeditor5/src/utils';import{icons as _0x14a35e}from'ckeditor5/src/core';import{Model as _0x135770,addListToDropdown as _0x7e0fb1,createDropdown as _0xdee041}from'ckeditor5/src/ui';import{getTranslation as _0x3b6816}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x941d38,_0x634cca){const _0x4511ba=_0x941d38['bindTemplate'],_0x5994bb=_0x941d38['locale'],_0x1d810d=_0xdee041(_0x5994bb);_0x1d810d[_0x1047('0x19')]='sw';const _0x570b36=function(_0x17d5ef,_0x376256){const _0x4684f9=function(_0x5d0958,_0x26f935){const _0x2e7da3=_0x5d0958[_0x1047('0x18')],_0x3593f7={'Compare\x20against\x20selected':_0x3b6816(_0x2e7da3,_0x1047('0xe')),'Name\x20this\x20revision':_0x3b6816(_0x2e7da3,_0x1047('0x3')),'Restore\x20this\x20revision':_0x3b6816(_0x2e7da3,_0x1047('0x1e'))};return _0x26f935[_0x1047('0x10')](_0x17b4f7=>{const _0x4e9cbd=_0x3593f7[_0x17b4f7['name']];return _0x4e9cbd&&_0x4e9cbd!==_0x17b4f7['name']&&(_0x17b4f7[_0x1047('0x4')]=_0x4e9cbd),_0x17b4f7;});}(_0x17d5ef,_0x376256),_0x191742=new _0x4b8336();for(const _0xb2b397 of _0x4684f9){const _0xf65ed7={'type':_0x1047('0xf'),'model':new _0x135770({'label':_0xb2b397[_0x1047('0x4')],'class':_0xb2b397[_0x1047('0x9')],'withText':!0x0,'_action':_0xb2b397[_0x1047('0x12')]})};_0xf65ed7[_0x1047('0x13')][_0x1047('0x7')](_0x1047('0x11'))['to'](_0x17d5ef,_0x1047('0x16'),_0x15565e=>_0x1047('0x2')!=typeof _0xb2b397[_0x1047('0x11')]||(!_0x15565e||_0xb2b397['isEnabled'](_0x17d5ef))),_0x191742['add'](_0xf65ed7);}return _0x191742;}(_0x941d38,_0x634cca);return _0x941d38['bind'](_0x1047('0x16'))['to'](_0x1d810d,_0x1047('0x0')),_0x1d810d[_0x1047('0x1d')][_0x1047('0x1a')]({'label':_0x3b6816(_0x5994bb,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x14a35e['threeVerticalDots']}),_0x1d810d[_0x1047('0x17')]({'attributes':{'class':[_0x1047('0x5'),_0x4511ba['if'](_0x1047('0x16'),_0x1047('0x14'))]},'on':{'click':_0x4511ba['to'](_0x4215ed=>_0x4215ed['stopPropagation']())}}),_0x1d810d['on'](_0x1047('0xd'),_0x2c3b56=>{_0x941d38[_0x1047('0x1b')]&&_0x1047('0x2')==typeof _0x2c3b56[_0x1047('0xb')]['_action']&&_0x2c3b56['source'][_0x1047('0x1c')](_0x941d38);}),_0x7e0fb1(_0x1d810d,_0x570b36),_0x1d810d[_0x1047('0x1f')](_0x941d38,_0x1047('0x15'),(_0xe634c4,_0x356685,_0x252ae8)=>{if(_0x252ae8)for(const _0x13bfbb of _0x1d810d[_0x1047('0x6')][_0x1047('0x8')]){const _0x29484a=_0x13bfbb[_0x1047('0xa')][_0x1047('0x20')],_0xba0e2=_0x634cca[_0x1047('0xc')](_0x5edadd=>_0x5edadd[_0x1047('0x12')]===_0x29484a[_0x1047('0x1c')])[_0x1047('0x1')];_0x13bfbb[_0x1047('0x1')]=void 0x0===_0xba0e2||_0xba0e2(_0x941d38);}}),_0x1d810d;}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5f13=['Revision\x20author','push','set','setTemplate','Revision\x20creator','span','ck-revision-history-sidebar__revision-author','0\x200\x2011\x2010'];(function(_0x55e48c,_0x5f1367){const _0x2961e5=function(_0xb7178f){while(--_0xb7178f){_0x55e48c['push'](_0x55e48c['shift']());}};_0x2961e5(++_0x5f1367);}(_0x5f13,0x1cd));const _0x2961=function(_0x55e48c,_0x5f1367){_0x55e48c=_0x55e48c-0x0;let _0x2961e5=_0x5f13[_0x55e48c];return _0x2961e5;};import{View as _0x55c561,IconView as _0x2c93b7}from'ckeditor5/src/ui';import{getTranslation as _0x1e1d55}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x107e46 from'../../../theme/icons/user.svg';export default class ti extends _0x55c561{constructor(_0x17907a,_0x3d270d,_0x557987){super(_0x17907a);const _0x4e9b31=new _0x2c93b7();_0x4e9b31[_0x2961('0x5')]({'content':_0x107e46,'viewBox':_0x2961('0x2')});const _0x3fa2fd=['ck',_0x2961('0x1')];_0x557987&&_0x3fa2fd[_0x2961('0x4')]('ck-revision-history-sidebar__revision-author_creator');const _0x1c18fe=[{'tag':_0x2961('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':_0x1e1d55(_0x17907a,_0x557987?_0x2961('0x7'):_0x2961('0x3'))},'children':[_0x4e9b31,_0x3d270d['name']]}];this[_0x2961('0x6')]({'tag':'li','attributes':{'class':_0x3fa2fd},'children':_0x1c18fe});}}
23
+ const _0x8d66=['set','ck-revision-history-sidebar__revision-author__name','0\x200\x2011\x2010','setTemplate','Revision\x20creator','push','ck-revision-history-sidebar__revision-author_creator','Revision\x20author','span'];(function(_0x2c15e2,_0x8d66f6){const _0x104fab=function(_0x210329){while(--_0x210329){_0x2c15e2['push'](_0x2c15e2['shift']());}};_0x104fab(++_0x8d66f6);}(_0x8d66,0x11d));const _0x104f=function(_0x2c15e2,_0x8d66f6){_0x2c15e2=_0x2c15e2-0x0;let _0x104fab=_0x8d66[_0x2c15e2];return _0x104fab;};import{View as _0x5301e1,IconView as _0x18507c}from'ckeditor5/src/ui';import{getTranslation as _0x46bdb1}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x1ea084 from'../../../theme/icons/user.svg';export default class ti extends _0x5301e1{constructor(_0x43494f,_0x4a2549,_0x5e68fb){super(_0x43494f);const _0x46b564=new _0x18507c();_0x46b564[_0x104f('0x3')]({'content':_0x1ea084,'viewBox':_0x104f('0x5')});const _0x1e5be9=['ck','ck-revision-history-sidebar__revision-author'];_0x5e68fb&&_0x1e5be9[_0x104f('0x8')](_0x104f('0x0'));const _0x593e96=[{'tag':_0x104f('0x2'),'attributes':{'class':['ck',_0x104f('0x4')],'title':_0x46bdb1(_0x43494f,_0x5e68fb?_0x104f('0x7'):_0x104f('0x1'))},'children':[_0x46b564,_0x4a2549['name']]}];this[_0x104f('0x6')]({'tag':'li','attributes':{'class':_0x1e5be9},'children':_0x593e96});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x5520=['extendTemplate','Revision\x20name','ck-revision-history-sidebar__revision-name','set','span'];(function(_0x5ddd58,_0x552001){var _0x34c834=function(_0x18bc23){while(--_0x18bc23){_0x5ddd58['push'](_0x5ddd58['shift']());}};_0x34c834(++_0x552001);}(_0x5520,0x1ee));var _0x34c8=function(_0x5ddd58,_0x552001){_0x5ddd58=_0x5ddd58-0x0;var _0x34c834=_0x5520[_0x5ddd58];return _0x34c834;};import{LabeledFieldView as _0xb3b363}from'ckeditor5/src/ui';import{getTranslation as _0x155c65}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0xb3b363{constructor(_0x59657c,_0x4d4748){super(_0x59657c,_0x4d4748),this[_0x34c8('0x4')]({'label':_0x155c65(_0x59657c,_0x34c8('0x2'))}),this[_0x34c8('0x1')]({'tag':_0x34c8('0x0'),'attributes':{'class':[_0x34c8('0x3')]}});}}
23
+ var _0x4ae2=['set'];(function(_0x2ad630,_0x4ae29c){var _0xf345d5=function(_0x31faa4){while(--_0x31faa4){_0x2ad630['push'](_0x2ad630['shift']());}};_0xf345d5(++_0x4ae29c);}(_0x4ae2,0x118));var _0xf345=function(_0x2ad630,_0x4ae29c){_0x2ad630=_0x2ad630-0x0;var _0xf345d5=_0x4ae2[_0x2ad630];return _0xf345d5;};import{LabeledFieldView as _0x365f44}from'ckeditor5/src/ui';import{getTranslation as _0x10962b}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x365f44{constructor(_0x364fc6,_0x1d5e45){super(_0x364fc6,_0x1d5e45),this[_0xf345('0x0')]({'label':_0x10962b(_0x364fc6,'Revision\x20name')}),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x5701=['isSelected','ck-revision-history-sidebar__revision-authors','element','isHighlighted','uiLanguage','.ck-thread__remove-confirm','highlight','authors','ck-revision-history-sidebar__revision_highlighted','_revision','map','ck-revision-history-sidebar__revision','fire','createdAt','_createdAtFormatted','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','220','creator','filter','setTemplate','revisionActionsView','ck-revision-history-sidebar__revision-wrapper','select','div','isEnabled','isReady','isConfirm','revisionNameView','ck-reset','unhighlight','from','placeholder','fieldView','name','srcElement','render','isActionsDropdownOpen','ck-disabled','ck-revision-history-sidebar__actions_dropdown_open','ck-revision-history-sidebar__revision_selected','value','bind','listenTo','set'];(function(_0x516c9d,_0x570107){const _0x225ae0=function(_0x2e0f40){while(--_0x2e0f40){_0x516c9d['push'](_0x516c9d['shift']());}};_0x225ae0(++_0x570107);}(_0x5701,0x1ba));const _0x225a=function(_0x516c9d,_0x570107){_0x516c9d=_0x516c9d-0x0;let _0x225ae0=_0x5701[_0x516c9d];return _0x225ae0;};import{View as _0x2aa53c,createLabeledInputText as _0x50552e}from'ckeditor5/src/ui';import{ConfirmMixin as _0x431f6f}from'ckeditor5-collaboration/src/collaboration-core';import _0x2fc6e9 from'./revisionnameview';import _0xb93460 from'./revisionauthorview';import{dateToPrettyFormat as _0x385156}from'./utils';import{createActionsDropdownView as _0xf46900}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x431f6f(_0x2aa53c){constructor(_0x11767f,_0x49e68a,_0x8c8ee){super(_0x11767f);const _0x510830=this['bindTemplate'],_0x40a4d6=function(_0x5f0670,_0x3ceb14){const _0x1083c5=Array[_0x225a('0x1c')](_0x3ceb14[_0x225a('0x5')])[_0x225a('0x10')](_0x55a415=>_0x55a415!=_0x3ceb14[_0x225a('0xf')]);return _0x3ceb14[_0x225a('0xf')]&&_0x1083c5['unshift'](_0x3ceb14[_0x225a('0xf')]),_0x1083c5[_0x225a('0x8')](_0x356628=>new _0xb93460(_0x5f0670,_0x356628,_0x356628==_0x3ceb14[_0x225a('0xf')]));}(_0x11767f,_0x49e68a);this['id']=_0x49e68a['id'],this[_0x225a('0x7')]=_0x49e68a,this[_0x225a('0x27')](_0x225a('0x1f'),_0x225a('0xb'))['to'](_0x49e68a),this[_0x225a('0x27')](_0x225a('0xc'))['to'](this,'createdAt',_0xb9d66=>_0xb9d66?_0x385156(_0x11767f[_0x225a('0x2')],_0xb9d66):void 0x0),this[_0x225a('0x29')](_0x225a('0x2a'),!0x1),this[_0x225a('0x29')](_0x225a('0x1'),!0x1),this[_0x225a('0x29')](_0x225a('0x22'),!0x1),this[_0x225a('0x29')](_0x225a('0x17'),!0x1),this[_0x225a('0x29')](_0x225a('0x16'),!0x1),this[_0x225a('0x19')]=new _0x2fc6e9(_0x11767f,_0x50552e),this[_0x225a('0x19')][_0x225a('0x1e')]['extendTemplate']({'attributes':{'maxlength':_0x225a('0xe')}}),this[_0x225a('0x19')]['fieldView'][_0x225a('0x27')](_0x225a('0x26'),_0x225a('0x1d'))['to'](this,_0x225a('0x1f'),_0x225a('0xc')),this[_0x225a('0x19')][_0x225a('0x27')](_0x225a('0x16'))['to'](this,_0x225a('0x2a'),this,_0x225a('0x16'),(_0x4ae83c,_0x51b2e4)=>_0x4ae83c&&_0x51b2e4),this[_0x225a('0x12')]=_0x8c8ee&&_0x8c8ee['length']?_0xf46900(this,_0x8c8ee):'',this[_0x225a('0x12')]&&this[_0x225a('0x12')][_0x225a('0x27')](_0x225a('0x16'))['to'](this),this[_0x225a('0x11')]({'tag':_0x225a('0x15'),'attributes':{'class':['ck',_0x225a('0x1a'),_0x225a('0x13'),_0x510830['if'](_0x225a('0x18'),_0x225a('0xd'))]},'children':[{'tag':_0x225a('0x15'),'attributes':{'class':['ck','ck-reset',_0x225a('0x9'),_0x510830['if'](_0x225a('0x16'),_0x225a('0x23'),_0x1adcd8=>!_0x1adcd8),_0x510830['if'](_0x225a('0x2a'),_0x225a('0x25')),_0x510830['if'](_0x225a('0x1'),_0x225a('0x6')),_0x510830['if'](_0x225a('0x22'),_0x225a('0x24'))]},'children':[this[_0x225a('0x19')],{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x510830['to']('_createdAtFormatted')}]},{'tag':_0x225a('0x15'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x225a('0x2b')]},'children':_0x40a4d6}]},this[_0x225a('0x12')]],'on':{'click':_0x510830['to'](_0x5a5227=>{_0x5a5227[_0x225a('0x20')]['closest'](_0x225a('0x3'))||this['isReady']&&this[_0x225a('0x16')]&&this[_0x225a('0xa')](_0x225a('0x14'),{'id':this['id']});})}}]});}[_0x225a('0x21')](){super['render']();const _0x2774ba=this['revisionNameView']['fieldView'][_0x225a('0x0')];this[_0x225a('0x28')](_0x2774ba,'change',()=>{this['fire']('setName',{'id':this['id'],'name':_0x2774ba['value']});});}['select'](){this[_0x225a('0x2a')]=!0x0;}['deselect'](){this[_0x225a('0x2a')]=!0x1;}[_0x225a('0x4')](){this['isHighlighted']=!0x0;}[_0x225a('0x1b')](){this['isHighlighted']=!0x1;}}
23
+ const _0x84cf=['closest','span','bindTemplate','select','ck-disabled','name','isSelected','authors','element','filter','map','bind','creator','_revision','createdAt','listenTo','unhighlight','220','isHighlighted','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__controls-wrapper','div','ck-revision-history-sidebar__actions_dropdown_open','revisionActionsView','fieldView','setTemplate','isReady','ck-revision-history-sidebar__revision-wrapper','uiLanguage','_createdAtFormatted','unshift','set','isEnabled','extendTemplate','change','isActionsDropdownOpen','ck-reset','ck-revision-history-sidebar__revision_highlighted','highlight','length','fire','ck-revision-history-sidebar__revision__date','revisionNameView','value'];(function(_0x57ca38,_0x84cf86){const _0x264ff8=function(_0x5249eb){while(--_0x5249eb){_0x57ca38['push'](_0x57ca38['shift']());}};_0x264ff8(++_0x84cf86);}(_0x84cf,0x1d5));const _0x264f=function(_0x57ca38,_0x84cf86){_0x57ca38=_0x57ca38-0x0;let _0x264ff8=_0x84cf[_0x57ca38];return _0x264ff8;};import{View as _0x212069,createLabeledInputText as _0x2e83fd}from'ckeditor5/src/ui';import{ConfirmMixin as _0xaef194}from'ckeditor5-collaboration/src/collaboration-core';import _0x488c39 from'./revisionnameview';import _0x207713 from'./revisionauthorview';import{dateToPrettyFormat as _0x4f8225}from'./utils';import{createActionsDropdownView as _0x57aa60}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0xaef194(_0x212069){constructor(_0x1e8455,_0x424564,_0x277249){super(_0x1e8455);const _0x184344=this[_0x264f('0x11')],_0x2a9817=function(_0x3dd250,_0x299b4e){const _0x27d00f=Array['from'](_0x299b4e[_0x264f('0x16')])[_0x264f('0x18')](_0x2247ab=>_0x2247ab!=_0x299b4e[_0x264f('0x1b')]);return _0x299b4e[_0x264f('0x1b')]&&_0x27d00f[_0x264f('0x1')](_0x299b4e[_0x264f('0x1b')]),_0x27d00f[_0x264f('0x19')](_0x4bc2aa=>new _0x207713(_0x3dd250,_0x4bc2aa,_0x4bc2aa==_0x299b4e[_0x264f('0x1b')]));}(_0x1e8455,_0x424564);this['id']=_0x424564['id'],this[_0x264f('0x1c')]=_0x424564,this[_0x264f('0x1a')](_0x264f('0x14'),_0x264f('0x1d'))['to'](_0x424564),this[_0x264f('0x1a')]('_createdAtFormatted')['to'](this,_0x264f('0x1d'),_0x2e541c=>_0x2e541c?_0x4f8225(_0x1e8455[_0x264f('0x2b')],_0x2e541c):void 0x0),this[_0x264f('0x2')](_0x264f('0x15'),!0x1),this[_0x264f('0x2')](_0x264f('0x21'),!0x1),this[_0x264f('0x2')]('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this[_0x264f('0x2')](_0x264f('0x3'),!0x1),this[_0x264f('0xd')]=new _0x488c39(_0x1e8455,_0x2e83fd),this['revisionNameView'][_0x264f('0x27')][_0x264f('0x4')]({'attributes':{'maxlength':_0x264f('0x20')}}),this[_0x264f('0xd')][_0x264f('0x27')][_0x264f('0x1a')](_0x264f('0xe'),'placeholder')['to'](this,_0x264f('0x14'),_0x264f('0x0')),this[_0x264f('0xd')]['bind'](_0x264f('0x3'))['to'](this,_0x264f('0x15'),this,_0x264f('0x3'),(_0x1f1681,_0x8b1d59)=>_0x1f1681&&_0x8b1d59),this[_0x264f('0x26')]=_0x277249&&_0x277249[_0x264f('0xa')]?_0x57aa60(this,_0x277249):'',this[_0x264f('0x26')]&&this[_0x264f('0x26')][_0x264f('0x1a')](_0x264f('0x3'))['to'](this),this[_0x264f('0x28')]({'tag':_0x264f('0x24'),'attributes':{'class':['ck',_0x264f('0x7'),_0x264f('0x2a'),_0x184344['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x264f('0x24'),'attributes':{'class':['ck','ck-reset',_0x264f('0x22'),_0x184344['if'](_0x264f('0x3'),_0x264f('0x13'),_0x5b0524=>!_0x5b0524),_0x184344['if'](_0x264f('0x15'),'ck-revision-history-sidebar__revision_selected'),_0x184344['if']('isHighlighted',_0x264f('0x8')),_0x184344['if'](_0x264f('0x6'),_0x264f('0x25'))]},'children':[this['revisionNameView'],{'tag':_0x264f('0x10'),'attributes':{'class':['ck',_0x264f('0xc')]},'children':[{'text':_0x184344['to'](_0x264f('0x0'))}]},{'tag':_0x264f('0x24'),'attributes':{'class':['ck',_0x264f('0x23')]},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x2a9817}]},this[_0x264f('0x26')]],'on':{'click':_0x184344['to'](_0x4df978=>{_0x4df978['srcElement'][_0x264f('0xf')]('.ck-thread__remove-confirm')||this[_0x264f('0x29')]&&this['isEnabled']&&this[_0x264f('0xb')](_0x264f('0x12'),{'id':this['id']});})}}]});}['render'](){super['render']();const _0x2f5c16=this[_0x264f('0xd')][_0x264f('0x27')][_0x264f('0x17')];this[_0x264f('0x1e')](_0x2f5c16,_0x264f('0x5'),()=>{this[_0x264f('0xb')]('setName',{'id':this['id'],'name':_0x2f5c16['value']});});}[_0x264f('0x12')](){this[_0x264f('0x15')]=!0x0;}['deselect'](){this[_0x264f('0x15')]=!0x1;}[_0x264f('0x9')](){this['isHighlighted']=!0x0;}[_0x264f('0x1f')](){this['isHighlighted']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2cf2=['true','_isCollapsed','setTemplate','button','span','toggle','isVisible','ck-revision-history-sidebar__subrevision-collapser__inner','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0x24919a,_0x2cf2e0){const _0x18be19=function(_0x237389){while(--_0x237389){_0x24919a['push'](_0x24919a['shift']());}};_0x18be19(++_0x2cf2e0);}(_0x2cf2,0xfd));const _0x18be=function(_0x24919a,_0x2cf2e0){_0x24919a=_0x24919a-0x0;let _0x18be19=_0x2cf2[_0x24919a];return _0x18be19;};import{View as _0x2e0078}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2e0078{constructor(_0x1a3274){super(_0x1a3274);const _0x5a98d2=this[_0x18be('0x5')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x18be('0x9')]({'tag':_0x18be('0x1'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x5a98d2['if'](_0x18be('0x3'),'ck-hidden',_0x1e9b3d=>!_0x1e9b3d),_0x5a98d2['if'](_0x18be('0x8'),_0x18be('0x6'))],'role':_0x18be('0x0'),'aria-pressed':_0x5a98d2['to']('_isCollapsed',_0x16b625=>_0x16b625?'false':_0x18be('0x7'))},'children':[{'tag':_0x18be('0x1'),'attributes':{'class':['ck',_0x18be('0x4')]}}],'on':{'click':_0x5a98d2['to']('click')}});}[_0x18be('0x2')](){this[_0x18be('0x8')]=!this['_isCollapsed'];}}
23
+ const _0x4ca1=['isVisible','click','span','button','ck-hidden','set','_isCollapsed','toggle','true','setTemplate','bindTemplate','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0x22a186,_0x4ca1b8){const _0x557dd1=function(_0x31789e){while(--_0x31789e){_0x22a186['push'](_0x22a186['shift']());}};_0x557dd1(++_0x4ca1b8);}(_0x4ca1,0xf5));const _0x557d=function(_0x22a186,_0x4ca1b8){_0x22a186=_0x22a186-0x0;let _0x557dd1=_0x4ca1[_0x22a186];return _0x557dd1;};import{View as _0x2ed79d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2ed79d{constructor(_0x4817f1){super(_0x4817f1);const _0x4cd49d=this[_0x557d('0x5')];this[_0x557d('0x0')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x557d('0x4')]({'tag':_0x557d('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x4cd49d['if'](_0x557d('0x7'),_0x557d('0xb'),_0x55bdd3=>!_0x55bdd3),_0x4cd49d['if'](_0x557d('0x1'),_0x557d('0x6'))],'role':_0x557d('0xa'),'aria-pressed':_0x4cd49d['to'](_0x557d('0x1'),_0x7505a5=>_0x7505a5?'false':_0x557d('0x3'))},'children':[{'tag':_0x557d('0x9'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser__inner']}}],'on':{'click':_0x4cd49d['to'](_0x557d('0x8'))}});}[_0x557d('0x2')](){this['_isCollapsed']=!this['_isCollapsed'];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2531=['ck-revision-history-sidebar__subrevision','isSelected','_createdAtFormatted','div','deselect','ck-revision-history-sidebar__revision__date','bind','select','bindTemplate','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision-authors','ck-revision-history-sidebar__revision_selected','ck-reset','uiLanguage','span','createdAt','set'];(function(_0x9e5ad2,_0x25318d){const _0x5af6e9=function(_0x3e8629){while(--_0x3e8629){_0x9e5ad2['push'](_0x9e5ad2['shift']());}};_0x5af6e9(++_0x25318d);}(_0x2531,0x8d));const _0x5af6=function(_0x9e5ad2,_0x25318d){_0x9e5ad2=_0x9e5ad2-0x0;let _0x5af6e9=_0x2531[_0x9e5ad2];return _0x5af6e9;};import{View as _0x4cbbd6}from'ckeditor5/src/ui';import _0x27c490 from'./revisionauthorview';import{dateToPrettyFormat as _0x281af7}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x4cbbd6{constructor(_0x47883f,_0x14262a,_0xb29cd){super(_0x47883f);const _0x5030c7=this[_0x5af6('0x3')];this['id']=_0x14262a['id'],this[_0x5af6('0x1')](_0x5af6('0xa'))['to'](_0x14262a),this[_0x5af6('0xb')](_0x5af6('0xd'),!0x1),this[_0x5af6('0x1')](_0x5af6('0xe'))['to'](this,_0x5af6('0xa'),_0x846903=>_0x846903?_0x281af7(_0x47883f[_0x5af6('0x8')],_0x846903):void 0x0),this['_parentRevisionId']=_0xb29cd,this['setTemplate']({'tag':_0x5af6('0xf'),'attributes':{'class':['ck',_0x5af6('0x7'),_0x5af6('0x4'),_0x5af6('0xc'),_0x5030c7['if']('isSelected',_0x5af6('0x6'))]},'children':[{'tag':_0x5af6('0x9'),'attributes':{'class':['ck',_0x5af6('0x0')]},'children':[{'text':_0x5030c7['to'](_0x5af6('0xe'))}]},{'tag':'ul','attributes':{'class':['ck',_0x5af6('0x5')]},'children':[new _0x27c490(_0x47883f,_0x14262a['creator'],!0x0)]}],'on':{'click':_0x5030c7['to'](this[_0x5af6('0x2')][_0x5af6('0x1')](this))}});}['select'](){this[_0x5af6('0xd')]=!0x0,this['fire'](_0x5af6('0x2'),{'parentId':this['_parentRevisionId']});}[_0x5af6('0x10')](){this[_0x5af6('0xd')]=!0x1;}}
23
+ const _0x4567=['bindTemplate','span','ck-revision-history-sidebar__subrevision','creator','ck-revision-history-sidebar__revision-authors','isSelected','setTemplate','deselect','ck-reset','_parentRevisionId','_createdAtFormatted','div','ck-revision-history-sidebar__revision','createdAt','set','fire','bind','select','ck-revision-history-sidebar__revision__date'];(function(_0x4c0f6f,_0x456724){const _0x59dcf5=function(_0x34cb0f){while(--_0x34cb0f){_0x4c0f6f['push'](_0x4c0f6f['shift']());}};_0x59dcf5(++_0x456724);}(_0x4567,0x1a3));const _0x59dc=function(_0x4c0f6f,_0x456724){_0x4c0f6f=_0x4c0f6f-0x0;let _0x59dcf5=_0x4567[_0x4c0f6f];return _0x59dcf5;};import{View as _0x240faa}from'ckeditor5/src/ui';import _0x19f61d from'./revisionauthorview';import{dateToPrettyFormat as _0x2d7e29}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x240faa{constructor(_0x7e540f,_0x2e5824,_0x30dd67){super(_0x7e540f);const _0x2360db=this[_0x59dc('0x12')];this['id']=_0x2e5824['id'],this[_0x59dc('0xf')](_0x59dc('0xc'))['to'](_0x2e5824),this[_0x59dc('0xd')](_0x59dc('0x4'),!0x1),this['bind'](_0x59dc('0x9'))['to'](this,_0x59dc('0xc'),_0xad2bf4=>_0xad2bf4?_0x2d7e29(_0x7e540f['uiLanguage'],_0xad2bf4):void 0x0),this[_0x59dc('0x8')]=_0x30dd67,this[_0x59dc('0x5')]({'tag':_0x59dc('0xa'),'attributes':{'class':['ck',_0x59dc('0x7'),_0x59dc('0xb'),_0x59dc('0x1'),_0x2360db['if']('isSelected','ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x59dc('0x0'),'attributes':{'class':['ck',_0x59dc('0x11')]},'children':[{'text':_0x2360db['to'](_0x59dc('0x9'))}]},{'tag':'ul','attributes':{'class':['ck',_0x59dc('0x3')]},'children':[new _0x19f61d(_0x7e540f,_0x2e5824[_0x59dc('0x2')],!0x0)]}],'on':{'click':_0x2360db['to'](this['select'][_0x59dc('0xf')](this))}});}[_0x59dc('0x10')](){this['isSelected']=!0x0,this[_0x59dc('0xe')](_0x59dc('0x10'),{'parentId':this[_0x59dc('0x8')]});}[_0x59dc('0x6')](){this['isSelected']=!0x1;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x1cbe=['toLocaleTimeString','numeric','long'];(function(_0x187bd9,_0x1cbe41){var _0x33c462=function(_0x19bce5){while(--_0x19bce5){_0x187bd9['push'](_0x187bd9['shift']());}};_0x33c462(++_0x1cbe41);}(_0x1cbe,0xca));var _0x33c4=function(_0x187bd9,_0x1cbe41){_0x187bd9=_0x187bd9-0x0;var _0x33c462=_0x1cbe[_0x187bd9];return _0x33c462;};export function dateToPrettyFormat(_0x15a02a,_0x3954ba){return _0x3954ba['toLocaleDateString'](_0x15a02a,{'month':_0x33c4('0x1'),'day':_0x33c4('0x0')})+',\x20'+_0x3954ba[_0x33c4('0x2')](_0x15a02a,{'hour':_0x33c4('0x0'),'minute':'numeric'});}
23
+ var _0x2054=['numeric','toLocaleDateString','toLocaleTimeString'];(function(_0x1a58ef,_0x205450){var _0x383ba9=function(_0x3306e4){while(--_0x3306e4){_0x1a58ef['push'](_0x1a58ef['shift']());}};_0x383ba9(++_0x205450);}(_0x2054,0xd2));var _0x383b=function(_0x1a58ef,_0x205450){_0x1a58ef=_0x1a58ef-0x0;var _0x383ba9=_0x2054[_0x1a58ef];return _0x383ba9;};export function dateToPrettyFormat(_0xe26836,_0x2156c4){return _0x2156c4[_0x383b('0x1')](_0xe26836,{'month':'long','day':_0x383b('0x0')})+',\x20'+_0x2156c4[_0x383b('0x2')](_0xe26836,{'hour':_0x383b('0x0'),'minute':_0x383b('0x0')});}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x208f=['label','setTemplate','focus','forEach','form','revisionNameInputView','listenTo','submit','Cancel','_createRevisionNameInput','_focusables','type','ck-button-save','element','ck-responsive-form','keystrokes','add','trim','cancelButtonView','saveButtonView','render','value','cancel','extendTemplate','locale','Name\x20of\x20the\x20revision\x20(optional)','tab','set','arrowup','stopPropagation','arrowdown','input','shift\x20+\x20tab','fieldView','delegate','revisionNameInputValue','arrowleft','_createButton','_focusCycler','focusTracker','ck-revision-history-save-revision-form','revisionName'];(function(_0x51de3f,_0x208fec){const _0x174e8a=function(_0x2aeb62){while(--_0x2aeb62){_0x51de3f['push'](_0x51de3f['shift']());}};_0x174e8a(++_0x208fec);}(_0x208f,0x79));const _0x174e=function(_0x51de3f,_0x208fec){_0x51de3f=_0x51de3f-0x0;let _0x174e8a=_0x208f[_0x51de3f];return _0x174e8a;};import{icons as _0x38302f}from'ckeditor5/src/core';import{ButtonView as _0x1b14a3,FocusCycler as _0x2d4cc2,LabeledFieldView as _0x2d0208,View as _0xba5c1d,ViewCollection as _0x2e69e0,createLabeledInputText as _0x576553,injectCssTransitionDisabler as _0x1feb33,submitHandler as _0xb7cfc7}from'ckeditor5/src/ui';import{FocusTracker as _0x535a17,KeystrokeHandler as _0x497dac}from'ckeditor5/src/utils';import{getTranslation as _0x33c1ae}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xba5c1d{constructor(_0x599483){super(_0x599483),this[_0x174e('0x2')]=new _0x535a17(),this[_0x174e('0x14')]=new _0x497dac(),this[_0x174e('0x20')]('revisionNameInputValue',''),this[_0x174e('0xa')]=this[_0x174e('0xe')](),this[_0x174e('0x18')]=this[_0x174e('0x0')](_0x33c1ae(_0x599483,'Save'),_0x38302f['check'],_0x174e('0x11')),this['saveButtonView'][_0x174e('0x10')]=_0x174e('0xc'),this['cancelButtonView']=this[_0x174e('0x0')](_0x33c1ae(_0x599483,_0x174e('0xd')),_0x38302f[_0x174e('0x1b')],'ck-button-cancel',_0x174e('0x1b')),this[_0x174e('0xf')]=new _0x2e69e0(),this[_0x174e('0x1')]=new _0x2d4cc2({'focusables':this[_0x174e('0xf')],'focusTracker':this[_0x174e('0x2')],'keystrokeHandler':this[_0x174e('0x14')],'actions':{'focusPrevious':_0x174e('0x25'),'focusNext':_0x174e('0x1f')}}),this[_0x174e('0x6')]({'tag':_0x174e('0x9'),'attributes':{'class':['ck',_0x174e('0x3'),_0x174e('0x13')],'tabindex':'-1'},'children':[this[_0x174e('0xa')],this[_0x174e('0x18')],this[_0x174e('0x17')]]}),_0x1feb33(this);}[_0x174e('0x19')](){super[_0x174e('0x19')](),_0xb7cfc7({'view':this}),([this[_0x174e('0xa')],this[_0x174e('0x18')],this[_0x174e('0x17')]][_0x174e('0x8')](_0x22d67c=>{this[_0x174e('0xf')][_0x174e('0x15')](_0x22d67c),this['focusTracker'][_0x174e('0x15')](_0x22d67c[_0x174e('0x12')]);}),this['keystrokes'][_0x174e('0xb')](this['element']));const _0x1bdf02=_0x52ae73=>_0x52ae73[_0x174e('0x22')]();this[_0x174e('0x14')][_0x174e('0x20')]('arrowright',_0x1bdf02),this['keystrokes'][_0x174e('0x20')](_0x174e('0x29'),_0x1bdf02),this['keystrokes'][_0x174e('0x20')](_0x174e('0x21'),_0x1bdf02),this[_0x174e('0x14')][_0x174e('0x20')](_0x174e('0x23'),_0x1bdf02);}[_0x174e('0x7')](){this['_focusCycler']['focusFirst']();}get[_0x174e('0x4')](){return this['revisionNameInputView'][_0x174e('0x26')][_0x174e('0x12')][_0x174e('0x1a')]['trim']();}set[_0x174e('0x4')](_0x269156){this[_0x174e('0xa')]['fieldView'][_0x174e('0x12')][_0x174e('0x1a')]=_0x269156[_0x174e('0x16')]();}['reset'](){this[_0x174e('0xa')][_0x174e('0x26')][_0x174e('0x12')][_0x174e('0x1a')]='';}[_0x174e('0xe')](){const _0x32be02=new _0x2d0208(this[_0x174e('0x1d')],_0x576553),_0x23fe42=_0x32be02[_0x174e('0x26')];return _0x23fe42['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x32be02[_0x174e('0x5')]=_0x33c1ae(this['locale'],_0x174e('0x1e')),_0x23fe42['on'](_0x174e('0x24'),()=>{this[_0x174e('0x28')]=_0x23fe42['element'][_0x174e('0x1a')][_0x174e('0x16')]();}),_0x32be02;}[_0x174e('0x0')](_0x8b02fd,_0x155f48,_0x28d20b,_0x5bb987){const _0xc696b0=new _0x1b14a3(this[_0x174e('0x1d')]);return _0xc696b0[_0x174e('0x20')]({'label':_0x8b02fd,'icon':_0x155f48,'tooltip':!0x0}),_0xc696b0[_0x174e('0x1c')]({'attributes':{'class':_0x28d20b}}),_0x5bb987&&_0xc696b0[_0x174e('0x27')]('execute')['to'](this,_0x5bb987),_0xc696b0;}}
23
+ const _0x1abf=['execute','220','arrowright','ck-revision-history-save-revision-form','saveButtonView','tab','shift\x20+\x20tab','focusFirst','arrowdown','Cancel','element','setTemplate','add','ck-responsive-form','check','Name\x20of\x20the\x20revision\x20(optional)','submit','revisionNameInputValue','ck-button-save','form','focusTracker','locale','delegate','label','stopPropagation','revisionNameInputView','_createButton','_focusCycler','render','type','_createRevisionNameInput','trim','set','Save','keystrokes','reset','revisionName','listenTo','fieldView','value','cancel','_focusables','forEach','extendTemplate'];(function(_0x44c558,_0x1abf76){const _0x436667=function(_0x42deb6){while(--_0x42deb6){_0x44c558['push'](_0x44c558['shift']());}};_0x436667(++_0x1abf76);}(_0x1abf,0x185));const _0x4366=function(_0x44c558,_0x1abf76){_0x44c558=_0x44c558-0x0;let _0x436667=_0x1abf[_0x44c558];return _0x436667;};import{icons as _0x5bafcf}from'ckeditor5/src/core';import{ButtonView as _0x353e3b,FocusCycler as _0x2b624a,LabeledFieldView as _0x33b64b,View as _0x1f70e4,ViewCollection as _0x6b16a7,createLabeledInputText as _0x2f85fd,injectCssTransitionDisabler as _0x5586d1,submitHandler as _0x17cfdc}from'ckeditor5/src/ui';import{FocusTracker as _0x567001,KeystrokeHandler as _0x4257ba}from'ckeditor5/src/utils';import{getTranslation as _0x18d61f}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x1f70e4{constructor(_0x454d5b){super(_0x454d5b),this[_0x4366('0x1b')]=new _0x567001(),this[_0x4366('0x29')]=new _0x4257ba(),this[_0x4366('0x27')](_0x4366('0x18'),''),this[_0x4366('0x20')]=this[_0x4366('0x25')](),this[_0x4366('0xb')]=this[_0x4366('0x21')](_0x18d61f(_0x454d5b,_0x4366('0x28')),_0x5bafcf[_0x4366('0x15')],_0x4366('0x19')),this['saveButtonView'][_0x4366('0x24')]=_0x4366('0x17'),this['cancelButtonView']=this['_createButton'](_0x18d61f(_0x454d5b,_0x4366('0x10')),_0x5bafcf[_0x4366('0x3')],'ck-button-cancel',_0x4366('0x3')),this['_focusables']=new _0x6b16a7(),this[_0x4366('0x22')]=new _0x2b624a({'focusables':this[_0x4366('0x4')],'focusTracker':this[_0x4366('0x1b')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0x4366('0xd'),'focusNext':_0x4366('0xc')}}),this[_0x4366('0x12')]({'tag':_0x4366('0x1a'),'attributes':{'class':['ck',_0x4366('0xa'),_0x4366('0x14')],'tabindex':'-1'},'children':[this[_0x4366('0x20')],this[_0x4366('0xb')],this['cancelButtonView']]}),_0x5586d1(this);}[_0x4366('0x23')](){super['render'](),_0x17cfdc({'view':this}),([this['revisionNameInputView'],this['saveButtonView'],this['cancelButtonView']][_0x4366('0x5')](_0x178d27=>{this[_0x4366('0x4')][_0x4366('0x13')](_0x178d27),this['focusTracker']['add'](_0x178d27[_0x4366('0x11')]);}),this[_0x4366('0x29')][_0x4366('0x0')](this[_0x4366('0x11')]));const _0x133a41=_0x5bca18=>_0x5bca18[_0x4366('0x1f')]();this[_0x4366('0x29')][_0x4366('0x27')](_0x4366('0x9'),_0x133a41),this[_0x4366('0x29')]['set']('arrowleft',_0x133a41),this[_0x4366('0x29')][_0x4366('0x27')]('arrowup',_0x133a41),this['keystrokes'][_0x4366('0x27')](_0x4366('0xf'),_0x133a41);}['focus'](){this[_0x4366('0x22')][_0x4366('0xe')]();}get[_0x4366('0x2b')](){return this[_0x4366('0x20')]['fieldView']['element']['value'][_0x4366('0x26')]();}set[_0x4366('0x2b')](_0x5a2736){this[_0x4366('0x20')]['fieldView']['element'][_0x4366('0x2')]=_0x5a2736['trim']();}[_0x4366('0x2a')](){this[_0x4366('0x20')][_0x4366('0x1')][_0x4366('0x11')][_0x4366('0x2')]='';}[_0x4366('0x25')](){const _0x68a2cd=new _0x33b64b(this[_0x4366('0x1c')],_0x2f85fd),_0xb2b4b6=_0x68a2cd[_0x4366('0x1')];return _0xb2b4b6[_0x4366('0x6')]({'attributes':{'maxlength':_0x4366('0x8')}}),_0x68a2cd[_0x4366('0x1e')]=_0x18d61f(this[_0x4366('0x1c')],_0x4366('0x16')),_0xb2b4b6['on']('input',()=>{this[_0x4366('0x18')]=_0xb2b4b6['element'][_0x4366('0x2')]['trim']();}),_0x68a2cd;}['_createButton'](_0x47cee4,_0x47613f,_0x27d87a,_0x2e9cf9){const _0xeec0bd=new _0x353e3b(this['locale']);return _0xeec0bd['set']({'label':_0x47cee4,'icon':_0x47613f,'tooltip':!0x0}),_0xeec0bd['extendTemplate']({'attributes':{'class':_0x27d87a}}),_0x2e9cf9&&_0xeec0bd[_0x4366('0x1d')](_0x4366('0x7'))['to'](this,_0x2e9cf9),_0xeec0bd;}}