@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230818.0 → 0.0.0-nightly-20230819.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.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0xd7d1=['toViewPosition','_cleanUp','consumable','_markInsertions','shift','set','numberOfChanges','_markMismatchedRemovedTags','getDomRoot','model','_markSuggestions','isAtEnd','compare','schema','forEach','isRemoveSuggestion','_getRevisionsRange','getRevision','add','_makeModelFromViewString','clear','isEqual','revision','processor','activeView','conversion','change:activeChange','length','toModel','_getViewForChange','mapViewToDom','getClientRects','_changeView','then','plugins','_removeUnsupportedChanges','softBreak','hasAttribute','ck-revision-history-root--active','unbindElementFromMarkerName','_getViewObj','name','code','activeChange','attachChange','left','init','userId','getRevisionData','checkAttribute','createUIElement','refresh','map','from','hasClass','isReady','createPositionBefore','range','target','sort','ck-suggestion-marker--active','done','startIndex','isNavigationMode','addRevisionData','string','_makeTape','WidgetToolbarRepository','markers','resolve','isCollapsed','writer','object','level','data-revision-','createRevision','nextSibling','element','markerRange','uiElement','addHighlight','forceDisabled','span','showNextChange','suggestion','flat','next','change:isReady','revision-viewer','revisionHistoryLabel','all','revision-comment:','detachRoot','vid','elementStart','splice','keys','mouseover','end','low','nodeAfter','insertion','isAttached','collaboration.channelId','restoreRevision','_makeModelFromTape','useFillerType','removeMarker','pairId','_appendChild','getChild','_activeViewTarget','ck-suggestion-preview-marker-','isAtStart','elementEnd','getIndex','affectsData','revision-suggestion:','domConverter','toData','loadRevisionData','_initInteractions','previousPosition','endIndex','right','isSuggestion','_setDistance','rootName','_removeMissingPairs','distance','side','changes','_fixObsoleteTags','slice','parse','isOnRoot','diffData','isAddSuggestion','get','editingDowncast','isAfter','revision-suggestion','createPositionFromPath','push','view','_markMarkers','ck-suggestion-preview-marker','split','attributesBefore','insertions','_changeIdToChange','bindElementToMarker','data','_update','adapter','_refreshStartEndIndex','bottom','item','revisionHistory','for','concat','setAttribute','ck-suggestion-marker-split','changeId','values','ck-suggestion-marker-','delete','isContent','_threeWayMerge','execute','getCustomProperty','remove','showStack','document','enableReadOnlyMode','isBlock','RevisionsRepository','destroy','_joinTapes','_data','_setConversion','marked','getRoot','find','newRevisionId','getItems','mapper','change:isEnabled','config','merge','unshift','_revisions','markerNameToElements','dataDowncast','-new','repository','ck-editor__editable__overlay','markerToData','highest','getAttribute','ck-suggestion-marker','addRoot','markersEnd','error','startsWith','has','bind','deletions','children','nextPosition','consume','editing','_cleanMarkers','upcast','authors','attributes','commands','return','isBefore','isRemoved','revisionHistoryAttachChange','selection','roots','reconvertMarker','isAdded','createRange','filter','POSITIVE_INFINITY','markerName','enqueueChange','data-change-id','index','listenTo','offsetSize','test','parent','isInline','_setChanges','RevisionViewer','vid_end','editor','_getChangeFromId','isEnabled','high','viewItem','getWalker','downcastDispatcher','addMarker:revision','removeClass','isIncorrect','getAttributes','deletion','toViewElement','_processTape','revision:','getRootNames','catch','change','wrap','addClass','markersStart','vid_start','currentChangeNumber','modelRange','markerToHighlight','text','ck-revision-history-root-add','_sortAndFilterDiffChanges','mousedown','backward','domEvent','attributesAfter','locale','indexOf','_removeRevisionMarkers','start','insert','_step','abs','isLimit','attribute:vid','type','_balloon','dataToMarker','diff','addMarker:revision-suggestion:insertion'];(function(_0x4ec448,_0xd7d107){const _0x3bc164=function(_0x17797c){while(--_0x17797c){_0x4ec448['push'](_0x4ec448['shift']());}};_0x3bc164(++_0xd7d107);}(_0xd7d1,0x1af));const _0x3bc1=function(_0x4ec448,_0xd7d107){_0x4ec448=_0x4ec448-0x0;let _0x3bc164=_0xd7d1[_0x4ec448];return _0x3bc164;};import{Plugin as _0x92dd13,Command as _0x484f37}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x23e2a0}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1a4322}from'ckeditor5/src/ui';import{DocumentFragment as _0x111441,Element as _0x6329a5,Text as _0x1fd28b,ViewDocumentFragment as _0x42248a,ViewText as _0x679ba5,ViewElement as _0x184656,ViewContainerElement as _0x19b6be,ViewAttributeElement as _0x8e8bde,ViewEmptyElement as _0x32c15c,ViewRawElement as _0x32b0b0,ViewUIElement as _0x56cce6}from'ckeditor5/src/engine';import{Users as _0x128512,getMarkerDomElement as _0x1340aa}from'ckeditor5-collaboration/src/collaboration-core';import _0x44934d from'./ui/revisionviewer/changedetailsview';import _0x361e7e from'./revisionsrepository';import _0x28f86b from'./changeitem';import{default as _0x210a4a}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4c670b}from'lodash-es';const tt={'c':_0x19b6be,'a':_0x8e8bde,'e':_0x32c15c,'r':_0x32b0b0,'u':_0x56cce6};export default class d extends _0x92dd13{static get['pluginName'](){return _0x3bc1('0x5d');}static get['requires'](){return[_0x128512,_0x1a4322,_0x361e7e];}constructor(_0x430d15){super(_0x430d15),this[_0x3bc1('0x32')]=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x1f')),this[_0x3bc1('0x92')](_0x3bc1('0xb8'),null),this['set']('activeView',null),this[_0x3bc1('0xfc')]=null,this[_0x3bc1('0x92')]('diff',null),this[_0x3bc1('0x92')](_0x3bc1('0xc4'),!0x1),this[_0x3bc1('0x92')]('isEnabled',!0x0),this['on'](_0x3bc1('0x2a'),(_0x327794,_0x388527,_0x3ebd05)=>{this['activeChange']=null,this[_0x3bc1('0xa5')]=null,this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x9a8426=>{for(const _0x727fa0 of this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x4d')])_0x3ebd05?_0x9a8426[_0x3bc1('0x67')](_0x3bc1('0x33'),_0x727fa0):_0x9a8426[_0x3bc1('0x72')](_0x3bc1('0x33'),_0x727fa0);});}),this['bind'](_0x3bc1('0xcc'))['to'](this,_0x3bc1('0xb8'),_0x1c7294=>null!==_0x1c7294),this[_0x3bc1('0x3d')](_0x3bc1('0x75'))['to'](this,'isReady',this,_0x3bc1('0x8b'),this,_0x3bc1('0xb8'),(_0x57cccb,_0x143206,_0x2b76a1)=>_0x57cccb&&_0x2b76a1?_0x143206['changes'][_0x3bc1('0x100')](_0x2b76a1):0x0),this[_0x3bc1('0x3d')](_0x3bc1('0x93'))['to'](this,_0x3bc1('0xc4'),this,_0x3bc1('0x8b'),(_0x4eb346,_0x460227)=>_0x4eb346?_0x460227[_0x3bc1('0x110')][_0x3bc1('0xa8')]:0x0),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')]=new Map(),this[_0x3bc1('0x9')]=null,this[_0x3bc1('0x89')]=this[_0x3bc1('0x5f')]['plugins'][_0x3bc1('0x117')](_0x1a4322);}[_0x3bc1('0xbb')](){const _0x3bbd16=this['editor'],_0xc72be5=new ShowChangeCommand(_0x3bbd16,{'direction':_0x3bc1('0x7c')}),_0x401860=new ShowChangeCommand(_0x3bbd16,{'direction':'forward'});(_0x3bbd16['commands'][_0x3bc1('0x9f')]('showPreviousChange',_0xc72be5),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xe0'),_0x401860),_0x3bbd16[_0x3bc1('0x47')][_0x3bc1('0x9f')](_0x3bc1('0xf5'),new RestoreRevisionCommand(_0x3bbd16)),this['on']('change:numberOfChanges',()=>{_0xc72be5['refresh'](),_0x401860['refresh']();}),this[_0x3bc1('0x23')](),this[_0x3bc1('0x106')](),_0x3bbd16[_0x3bc1('0x1d')](_0x3bc1('0xe5')),_0x3bbd16[_0x3bc1('0xaf')]['has'](_0x3bc1('0xd0')))&&_0x3bbd16[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0xd0'))[_0x3bc1('0xde')]('revision-viewer');}async[_0x3bc1('0xbd')](_0x290dc0){await this['loadRevisionData'](_0x290dc0);const _0x5698b6={};for(const _0x212aa6 in _0x290dc0[_0x3bc1('0x115')]){if(_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0xb9')]&&!_0x290dc0[_0x3bc1('0x115')][_0x212aa6]['attachChange'][_0x3bc1('0xf3')])continue;const _0x4b3239=this[_0x3bc1('0x81')](JSON[_0x3bc1('0x113')](_0x290dc0[_0x3bc1('0x115')][_0x212aa6][_0x3bc1('0x4')])),_0x3dda83=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc37c=new _0x42248a(_0x3dda83,_0x4b3239[_0x3bc1('0xc1')](_0x160486=>this['_getViewObj'](_0x160486)));this['editor']['data'][_0x3bc1('0xa4')]['useFillerType'](_0x3bc1('0x24')),_0x5698b6[_0x212aa6]=this['editor'][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0x104')](_0x3bc37c),this[_0x3bc1('0x5f')][_0x3bc1('0x7')][_0x3bc1('0xa4')][_0x3bc1('0xf7')]('default');}return _0x5698b6;}async['getRevisionRootsAttributes'](_0x432ff1){await this[_0x3bc1('0x105')](_0x432ff1);const _0x34ef08={};for(const _0x10de5a in _0x432ff1['diffData'])_0x432ff1['diffData'][_0x10de5a][_0x3bc1('0xb9')]&&!_0x432ff1[_0x3bc1('0x115')][_0x10de5a][_0x3bc1('0xb9')][_0x3bc1('0xf3')]||(_0x34ef08[_0x10de5a]=_0x432ff1[_0x3bc1('0x115')][_0x10de5a]['attributesAfter']||{});return _0x34ef08;}[_0x3bc1('0x81')](_0x41c4ae){return(_0x41c4ae=_0x41c4ae[_0x3bc1('0x51')](_0x569c62=>!_0x569c62[_0x3bc1('0xb6')]||'revision-start'!==_0x569c62[_0x3bc1('0xb6')]&&'revision-end'!==_0x569c62[_0x3bc1('0xb6')]))['forEach'](_0x4a6a74=>{_0x3bc1('0xce')!=typeof _0x4a6a74&&(_0x4a6a74[_0x3bc1('0x3f')]=this[_0x3bc1('0x81')](_0x4a6a74[_0x3bc1('0x3f')]),_0x4a6a74[_0x3bc1('0x46')]=_0x4a6a74[_0x3bc1('0x46')][_0x3bc1('0x51')](_0x473df4=>!_0x473df4[0x0][_0x3bc1('0x3b')](_0x3bc1('0xd7'))));}),_0x41c4ae;}async[_0x3bc1('0x99')](_0x5796a9,_0x13b2a9,_0x22adcd=!0x1){if(!this[_0x3bc1('0x61')])return;const _0x5edc23=this[_0x3bc1('0x8b')],_0x292ca0=this[_0x3bc1('0x32')],_0x142742=_0x3bc1('0xce')==typeof _0x5796a9?_0x292ca0[_0x3bc1('0x9e')](_0x5796a9):_0x5796a9,_0x41929c=_0x3bc1('0xce')==typeof _0x13b2a9?_0x292ca0[_0x3bc1('0x9e')](_0x13b2a9):_0x13b2a9,_0x345104=_0x142742['id'],_0x4c5255=_0x41929c?_0x41929c['id']:null;if(!_0x22adcd&&this[_0x3bc1('0x8b')]&&this[_0x3bc1('0x8b')][_0x3bc1('0x27')]===_0x345104&&this[_0x3bc1('0x8b')]['oldRevisionId']===_0x4c5255)return Promise[_0x3bc1('0xd2')]();this[_0x3bc1('0xc4')]=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new _0x210a4a(_0x345104,_0x4c5255);const _0x310c64=this[_0x3bc1('0x9d')](_0x142742,_0x41929c,!0x0)[_0x3bc1('0xc1')](_0xa3b091=>this[_0x3bc1('0x105')](_0xa3b091));return _0x310c64[_0x3bc1('0x11c')](new Promise(_0x2dcfd1=>{setTimeout(_0x2dcfd1,0x14);})),Promise[_0x3bc1('0xe7')](_0x310c64)[_0x3bc1('0xae')](()=>{if(!this['isEnabled'])return;this[_0x3bc1('0x8e')]();const _0x312899=this['_getDiff'](_0x345104,_0x4c5255);for(const _0x3d6593 of _0x312899['changes'])this[_0x3bc1('0x5')][_0x3bc1('0x92')](_0x3d6593['id'],_0x3d6593);this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['enqueueChange']({'isUndoable':!0x1},_0x1963a7=>{for(const _0x1417ff of this[_0x3bc1('0x5f')]['model'][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x1963a7[_0x3bc1('0xe9')](_0x1417ff);for(const _0x2dfd7c of Object[_0x3bc1('0xed')](_0x312899[_0x3bc1('0x96')])){const _0x3e5b2b=_0x1963a7[_0x3bc1('0x38')](_0x2dfd7c);for(const _0x1a2243 of Object[_0x3bc1('0xed')](_0x312899['attributes'][_0x2dfd7c]))_0x1963a7['setAttribute'](_0x1a2243,_0x312899[_0x3bc1('0x46')][_0x2dfd7c][_0x1a2243],_0x3e5b2b);_0x1963a7['insert'](_0x312899['model'][_0x2dfd7c],_0x3e5b2b,0x0);}}),this[_0x3bc1('0x8b')][_0x3bc1('0x5c')](this[_0x3bc1('0x7a')](_0x312899['changes'])),this['isReady']=!0x0;})[_0x3bc1('0x6f')](_0x3b6c36=>{console[_0x3bc1('0x3a')](_0x3b6c36),this['_cleanUp'](),_0x5edc23&&(this[_0x3bc1('0x8b')]=_0x5edc23),this[_0x3bc1('0xc4')]=!0x0;});}[_0x3bc1('0xcd')](_0x3640d7,_0x146288){const _0x1b88ff=this[_0x3bc1('0x32')][_0x3bc1('0xd8')](_0x3640d7);return _0x1b88ff['on'](_0x3bc1('0x8'),(_0xb0fe09,_0x5a35db,_0x489a15)=>_0x146288(_0x5a35db,_0x489a15,_0x1b88ff)),this['repository']['addRevision'](_0x1b88ff),_0x1b88ff;}[_0x3bc1('0x105')](_0x15029f){if(!_0x15029f||_0x15029f[_0x3bc1('0x115')])return Promise[_0x3bc1('0xd2')]();{const _0x13b082=this['editor'][_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xf4'));return this[_0x3bc1('0x9')][_0x3bc1('0x9e')]({'channelId':_0x13b082,'revisionId':_0x15029f['id']})[_0x3bc1('0xae')](_0x4d0aeb=>{_0x15029f[_0x3bc1('0x8')]({'diffData':_0x4d0aeb[_0x3bc1('0x115')]},!0x0);});}}[_0x3bc1('0x8e')](){this[_0x3bc1('0xb8')]=null,this['_cleanMarkers'](),this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=null,this[_0x3bc1('0x5')][_0x3bc1('0xa1')](),this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x54')]({'isUndoable':!0x1},_0x954a74=>{for(const _0x1b25ae of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]())_0x954a74[_0x3bc1('0xe9')](_0x1b25ae);});}[_0x3bc1('0x7a')](_0x5cfcda){const _0x372ba6=[],_0x48f330=new Map();for(const _0x10bc6b of this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')][_0x3bc1('0x6e')]()){const _0x8df368=this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x10bc6b);if(!_0x8df368)continue;const _0x5654ea=_0x8df368['getClientRects']()[_0x3bc1('0xc')](0x0);_0x5654ea&&(_0x372ba6[_0x3bc1('0x11c')](_0x10bc6b),_0x48f330[_0x3bc1('0x92')](_0x10bc6b,_0x5654ea));}return _0x372ba6['sort']((_0xd51cb5,_0x26d1d0)=>{const _0x32b02e=_0x48f330[_0x3bc1('0x117')](_0xd51cb5),_0x2931a1=_0x48f330[_0x3bc1('0x117')](_0x26d1d0);return _0x32b02e['y']-_0x2931a1['y']||_0x32b02e['x']-_0x2931a1['x'];}),(_0x5cfcda=_0x5cfcda[_0x3bc1('0x51')](_0x4e5a48=>_0x372ba6['includes'](_0x4e5a48[_0x3bc1('0x10c')])))[_0x3bc1('0xc8')]((_0x2b60fa,_0x5b4068)=>_0x372ba6['indexOf'](_0x2b60fa['rootName'])-_0x372ba6[_0x3bc1('0x80')](_0x5b4068[_0x3bc1('0x10c')])),_0x5cfcda;}[_0x3bc1('0xcf')](_0x215f9f){const _0x3da36c=Array[_0x3bc1('0xc2')](_0x215f9f['markers'])[_0x3bc1('0x51')](([_0x5d6e80,_0x2513bd])=>_0x5d6e80[_0x3bc1('0x3b')](_0x3bc1('0x6d'))&&!_0x2513bd[_0x3bc1('0xd3')]),_0x510fd1=Array['from'](this[_0x3bc1('0x5f')]['model']['createRangeIn'](_0x215f9f)[_0x3bc1('0x64')]({'singleCharacters':!0x0}));if(0x0!=_0x3da36c[_0x3bc1('0xa8')])for(const _0xa8875d of _0x510fd1){const [_0x297c79,_0x12e9dd]=_0x3da36c[0x0],[,_0x54cc60,_0x464d21]=_0x297c79[_0x3bc1('0x2')](':');if(_0x12e9dd[_0x3bc1('0xef')][_0x3bc1('0xa2')](_0xa8875d['nextPosition'])&&_0x3da36c[_0x3bc1('0x91')](),(_0xa8875d[_0x3bc1('0x107')][_0x3bc1('0xa2')](_0x12e9dd[_0x3bc1('0x82')])||_0xa8875d['previousPosition'][_0x3bc1('0x119')](_0x12e9dd[_0x3bc1('0x82')]))&&(_0x3bc1('0xf2')==_0x54cc60?_0xa8875d['isAdded']={'userId':_0x464d21}:_0x3bc1('0x6a')==_0x54cc60&&(_0xa8875d[_0x3bc1('0x4a')]={'userId':_0x464d21})),0x0==_0x3da36c[_0x3bc1('0xa8')])break;}return _0x510fd1;}[_0x3bc1('0xa')](_0x275da3){const _0x3f8bf3=new Map();for(let _0x4c3d37=0x0;_0x4c3d37<_0x275da3[_0x3bc1('0xa8')];_0x4c3d37++)_0x3bc1('0x78')===_0x275da3[_0x4c3d37]['type']?(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x4c3d37,_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37):(_0x3bc1('0xeb')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]?_0x275da3[_0x4c3d37]['item'][_0x3bc1('0xcb')]=_0x4c3d37:_0x3bc1('0xff')===_0x275da3[_0x4c3d37][_0x3bc1('0x88')]&&(_0x275da3[_0x4c3d37][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x4c3d37),_0x3f8bf3[_0x3bc1('0x92')](_0x275da3[_0x4c3d37]['id'],_0x4c3d37));for(const _0x474f9 of _0x3f8bf3[_0x3bc1('0x13')]())_0x3bc1('0xeb')===_0x275da3[_0x474f9][_0x3bc1('0x88')]?_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]):_0x3bc1('0xff')===_0x275da3[_0x474f9][_0x3bc1('0x88')]&&(_0x275da3[_0x474f9][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x3f8bf3[_0x3bc1('0x117')](_0x275da3[_0x474f9][_0x3bc1('0xf9')]));}['_processTape'](_0x27089a){for(let _0x591845=0x0;_0x591845<_0x27089a['length'];_0x591845++){if(_0x3bc1('0xeb')===_0x27089a[_0x591845][_0x3bc1('0x88')])_0x27089a[_0x591845][_0x3bc1('0xc')]['startIndex']=_0x591845;else{if(_0x3bc1('0xff')===_0x27089a[_0x591845][_0x3bc1('0x88')]){_0x27089a[_0x591845][_0x3bc1('0xc')]['endIndex']=_0x591845;const _0x14f1a2=_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')];_0x27089a[_0x14f1a2][_0x3bc1('0xf9')]=_0x27089a[_0x591845]['id'],_0x27089a[_0x591845][_0x3bc1('0xf9')]=_0x27089a[_0x14f1a2]['id'];}else _0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0xcb')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xc')][_0x3bc1('0x108')]=_0x591845,_0x27089a[_0x591845][_0x3bc1('0xf9')]=null;}_0x27089a[_0x591845][_0x3bc1('0x73')]||(_0x27089a[_0x591845][_0x3bc1('0x73')]=[],_0x27089a[_0x591845][_0x3bc1('0x39')]=[]);}}[_0x3bc1('0x90')](_0x51d908,_0xfd21f2){const _0x18500f=_0x51d908[_0x3bc1('0x51')](_0x5dd08d=>!_0x5dd08d[_0x3bc1('0x4f')]);for(let _0x43d56a=0x0;_0x43d56a<_0xfd21f2[_0x3bc1('0xa8')];_0x43d56a++)_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]&&(_0x18500f[_0x43d56a][_0x3bc1('0x4f')]=_0xfd21f2[_0x43d56a][_0x3bc1('0x4f')]);}[_0x3bc1('0xa0')](_0x5f551c){const _0x2ad62e=JSON[_0x3bc1('0x113')](_0x5f551c),_0x5dc178=this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['view'][_0x3bc1('0x1c')],_0x118e55=new _0x42248a(_0x5dc178,_0x2ad62e[_0x3bc1('0xc1')](_0x59b6c4=>this[_0x3bc1('0xb5')](_0x59b6c4)));return this[_0x3bc1('0x5f')]['data'][_0x3bc1('0xa9')](_0x118e55);}[_0x3bc1('0xb5')](_0x5af161){const _0x1ebf50=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')];if(_0x3bc1('0xce')==typeof _0x5af161)return new _0x679ba5(_0x1ebf50,_0x5af161);{const _0x3018fc=_0x5af161[_0x3bc1('0x3f')]['map'](_0x35f354=>this['_getViewObj'](_0x35f354));return new(tt[_0x5af161[(_0x3bc1('0x88'))]]||_0x184656)(_0x1ebf50,_0x5af161[_0x3bc1('0xb6')],_0x5af161[_0x3bc1('0x46')],_0x3018fc);}}['_getDiff'](_0x27ae75,_0x4356a9=null){const _0x3e0b0a=this['repository'][_0x3bc1('0x9e')](_0x27ae75),_0x1fcabb=_0x4356a9?this[_0x3bc1('0x32')][_0x3bc1('0x9e')](_0x4356a9):null,_0x16a15a=this[_0x3bc1('0x9d')](_0x3e0b0a,_0x1fcabb),_0x5303ea=_0x16a15a[_0x16a15a[_0x3bc1('0xa8')]-0x1],_0x4f269b=new Map(),_0x17a8c7={'model':{},'attributes':{},'changes':[]},_0x47cd1c=new Set(),_0xf45022=new Map();for(let _0x396f9c=_0x16a15a[_0x3bc1('0xa8')]-0x1;_0x396f9c>=0x0;_0x396f9c--){const _0x17bde9=_0x16a15a[_0x396f9c];for(const _0x2105f3 of Object[_0x3bc1('0xed')](_0x17bde9[_0x3bc1('0x115')]))if(_0x17bde9[_0x3bc1('0x115')][_0x2105f3]['attachChange']){const _0x308cd7=_0x17bde9[_0x3bc1('0x115')][_0x2105f3][_0x3bc1('0xb9')];_0x308cd7['isAttached']?(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x3c')](_0x2105f3)&&_0xf45022[_0x3bc1('0x117')](_0x2105f3)[_0x3bc1('0xbc')]==_0x308cd7[_0x3bc1('0xbc')]?_0xf45022[_0x3bc1('0x15')](_0x2105f3):_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7)):_0xf45022[_0x3bc1('0x3c')](_0x2105f3)?(_0x47cd1c['delete'](_0x2105f3),_0xf45022[_0x3bc1('0x15')](_0x2105f3)):(_0x47cd1c[_0x3bc1('0x9f')](_0x2105f3),_0xf45022[_0x3bc1('0x92')](_0x2105f3,_0x308cd7));}else _0x47cd1c[_0x3bc1('0x9f')](_0x2105f3);}for(const _0x4cacd4 of _0x47cd1c){const _0x3a897b=_0xf45022[_0x3bc1('0x3c')](_0x4cacd4)&&!_0xf45022[_0x3bc1('0x117')](_0x4cacd4)['isAttached'];let _0x1a4c06=_0x3a897b?_0x16a15a[_0x3bc1('0xa8')]-0x1:0x0;const _0x26ec1e=_0x3a897b?-0x1:0x1;for(;_0x16a15a[_0x1a4c06];){const _0x1b84b9=_0x16a15a[_0x1a4c06];if(_0x1b84b9['diffData'][_0x4cacd4]){const _0x172435=_0x3a897b?_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x3')]:_0x1b84b9['diffData'][_0x4cacd4][_0x3bc1('0x7e')];_0x17a8c7[_0x3bc1('0x46')][_0x4cacd4]=_0x172435?_0x4c670b(_0x172435):{};break;}_0x1a4c06+=_0x26ec1e;}}for(const _0x150d1c of _0x16a15a){_0x150d1c[_0x3bc1('0x96')]={};for(const _0x30040a of _0x150d1c[_0x3bc1('0x45')])_0x4f269b[_0x3bc1('0x92')](_0x30040a['id'],_0x30040a);for(const _0x2bd8df of _0x47cd1c){const _0x33de7e=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c[_0x3bc1('0x115')][_0x2bd8df][_0x3bc1('0x4')]:'[]',_0x2f0821=_0x150d1c[_0x3bc1('0x115')][_0x2bd8df]?_0x150d1c['diffData'][_0x2bd8df][_0x3bc1('0x3e')]:'[]';_0x150d1c[_0x3bc1('0x96')][_0x2bd8df]={'insertions':this[_0x3bc1('0xa0')](_0x33de7e),'deletions':this['_makeModelFromViewString'](_0x2f0821)};}}for(const _0x50bcc4 of _0x47cd1c){let _0x1b4010=null,_0x5b5d67=0x0;const _0x2fe265=new Map(Array[_0x3bc1('0xc2')](_0x3e0b0a['model'][_0x50bcc4]['insertions'][_0x3bc1('0xd1')])[_0x3bc1('0x51')](([_0x54a843])=>!_0x54a843['startsWith'](_0x3bc1('0x6d'))));let _0x225bcd=0x0;for(const _0x2935c1 of _0x16a15a){const _0x413527=this['_makeTape'](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x4')]);_0x2935c1==_0x3e0b0a?(_0x1b4010=_0x413527,_0x5b5d67=_0x1b4010[_0x3bc1('0xa8')],_0x1b4010[_0x3bc1('0x9b')](_0x292155=>{_0x292155['id']=_0x225bcd++;}),this[_0x3bc1('0x6c')](_0x1b4010)):this['_markInsertions'](_0x1b4010,_0x413527);const _0x863586=_0x1b4010[_0x3bc1('0x51')](_0x35304e=>!_0x35304e['isAdded'])[_0x3bc1('0xc1')](_0x52a6ed=>_0x52a6ed['id']);let _0x1964fd=0x0;const _0x2fdba1=this[_0x3bc1('0xcf')](_0x2935c1[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')]);_0x2fdba1[_0x3bc1('0x9b')](_0x2c68db=>{_0x2c68db['isRemoved']?_0x2c68db['id']=_0x5b5d67++:_0x2c68db['id']=_0x863586[_0x1964fd++];}),this[_0x3bc1('0x6c')](_0x2fdba1),this[_0x3bc1('0x10b')](_0x1b4010,'isAdded'),this[_0x3bc1('0x10b')](_0x2fdba1,_0x3bc1('0x4a')),_0x2935c1==_0x3e0b0a&&this[_0x3bc1('0x0')](_0x1b4010,_0x2fe265),_0x1b4010=this[_0x3bc1('0x21')](_0x1b4010,_0x2fdba1),this[_0x3bc1('0xa')](_0x1b4010),this['_setDistance'](_0x1b4010,_0x3bc1('0x4a'));}_0x1b4010=_0x1b4010['filter'](_0x5b4b32=>!(_0x5b4b32['isAdded']&&_0x5b4b32['isRemoved']));const _0x566419=new Map(_0x5303ea[_0x3bc1('0x96')][_0x50bcc4][_0x3bc1('0x3e')][_0x3bc1('0xd1')]),_0x522d21=new Set(_0x2fe265[_0x3bc1('0xed')]());for(const _0x4b86bf of _0x566419[_0x3bc1('0xed')]())_0x522d21[_0x3bc1('0x15')](_0x4b86bf);this['_markSuggestions'](_0x1b4010,_0x522d21),this[_0x3bc1('0x111')](_0x1b4010),_0x1b4010=this[_0x3bc1('0x10d')](_0x1b4010),_0x1b4010=this['_markMismatchedRemovedTags'](_0x1b4010),_0x1b4010=this['_removeUnsupportedChanges'](_0x1b4010);const {root:_0x3ca1af,changes:_0x5d6053}=this[_0x3bc1('0xf6')](_0x1b4010,_0x4f269b,_0x50bcc4);_0x17a8c7[_0x3bc1('0x96')][_0x50bcc4]=_0x3ca1af;const _0x591572=_0xf45022[_0x3bc1('0x117')](_0x50bcc4);if(_0x591572){const _0x3b0389=_0x4f269b[_0x3bc1('0x117')](_0x591572[_0x3bc1('0xbc')]),_0x596c67=new _0x28f86b({'author':_0x3b0389,'type':_0x591572[_0x3bc1('0xf3')]?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x50bcc4});_0x5d6053[_0x3bc1('0x2d')](_0x596c67),_0x17a8c7[_0x3bc1('0x46')][_0x50bcc4]['revisionHistoryAttachChange']=_0x596c67['id'];}_0x17a8c7[_0x3bc1('0x110')]=_0x17a8c7['changes'][_0x3bc1('0xf')](_0x5d6053);}return _0x17a8c7;}[_0x3bc1('0x0')](_0x215268,_0x37a317){for(let _0x38a7f9=0x0;_0x38a7f9<_0x215268['length'];_0x38a7f9++)for(const [_0xc11435,_0xea5245]of _0x37a317)_0xea5245[_0x3bc1('0x82')][_0x3bc1('0xa2')](_0x215268[_0x38a7f9][_0x3bc1('0x107')])&&_0x215268[_0x38a7f9]['markersStart'][_0x3bc1('0x11c')](_0xc11435),_0xea5245[_0x3bc1('0xef')]['isEqual'](_0x215268[_0x38a7f9][_0x3bc1('0x40')])&&_0x215268[_0x38a7f9][_0x3bc1('0x39')]['push'](_0xc11435);}[_0x3bc1('0x21')](_0xa0824f,_0x188db0){let _0x4a503e=[],_0x9ad945=0x0,_0x409f0a=0x0;for(;_0x9ad945<_0xa0824f[_0x3bc1('0xa8')]||_0x409f0a<_0x188db0[_0x3bc1('0xa8')];){const _0xdafd7d=_0xa0824f[_0x9ad945]||{},_0x3f1302=_0x188db0[_0x409f0a]||{};if(_0xdafd7d['id']==_0x3f1302['id'])_0x9ad945++,_0x409f0a++,_0x4a503e['push'](_0xdafd7d);else{if(_0x3f1302['isRemoved']&&_0xdafd7d[_0x3bc1('0x4f')]){const {commonTape:_0x2ffc61,iEnd:_0x5c5558,jEnd:_0x5ebb80}=this[_0x3bc1('0x17')](_0xa0824f,_0x9ad945,_0x188db0,_0x409f0a);_0x4a503e=_0x4a503e['concat'](_0x2ffc61),_0x9ad945=_0x5c5558,_0x409f0a=_0x5ebb80;}else _0x3f1302['isRemoved']?(_0x409f0a++,_0x4a503e[_0x3bc1('0x11c')](_0x3f1302)):(_0x9ad945++,_0x4a503e[_0x3bc1('0x11c')](_0xdafd7d));}}return _0x4a503e;}[_0x3bc1('0x97')](_0x228c2f,_0xbe17ee){const _0x490595=[];for(let _0x40b66d=0x0;_0x40b66d<_0x228c2f[_0x3bc1('0xa8')];_0x40b66d++){for(let _0x587c65=0x0;_0x587c65<_0x228c2f[_0x40b66d]['markersStart'][_0x3bc1('0xa8')];_0x587c65++){const _0x493a3e=_0x228c2f[_0x40b66d]['markersStart'][_0x587c65];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x493a3e))continue;const {group:_0x44c07c,type:_0x27fe62,authorId:_0x21b56d}=_0x514063(_0x493a3e);'revision-suggestion'!=_0x44c07c||'insertion'!=_0x27fe62&&'deletion'!=_0x27fe62||(_0x490595[_0x3bc1('0x2d')]({'type':_0x27fe62,'name':_0x493a3e,'userId':_0x21b56d}),_0x228c2f[_0x40b66d][_0x3bc1('0x73')][_0x3bc1('0xec')](_0x587c65,0x1),_0x587c65--);}_0x50643a(_0x228c2f[_0x40b66d]);for(let _0x11847e=0x0;_0x11847e<_0x228c2f[_0x40b66d][_0x3bc1('0x39')]['length'];_0x11847e++){const _0x2c9a72=_0x228c2f[_0x40b66d][_0x3bc1('0x39')][_0x11847e];if(!_0xbe17ee[_0x3bc1('0x3c')](_0x2c9a72))continue;const {group:_0x5a6b90,type:_0x369ff7}=_0x514063(_0x2c9a72);if(_0x3bc1('0x11a')!=_0x5a6b90||'insertion'!=_0x369ff7&&_0x3bc1('0x6a')!=_0x369ff7)continue;_0x228c2f[_0x40b66d]['markersEnd'][_0x3bc1('0xec')](_0x11847e,0x1),_0x11847e--;const _0x433edd=_0x490595['findIndex'](_0x31ecd2=>_0x31ecd2['name']==_0x2c9a72);_0x433edd>-0x1&&_0x490595['splice'](_0x433edd,0x1);}}function _0x514063(_0x248865){const _0x109e50=_0x248865[_0x3bc1('0x2')](':');return{'group':_0x109e50[0x0],'type':_0x109e50[0x1],'subType':_0x109e50[_0x3bc1('0xa8')]>=0x5?_0x109e50[0x2]:null,'id':_0x109e50['length']<0x5?_0x109e50[0x2]:_0x109e50[0x3],'authorId':_0x109e50[_0x3bc1('0xa8')]<0x5?_0x109e50[0x3]:_0x109e50[0x4],'markerCount':0x6==_0x109e50['length']?_0x109e50[0x5]:null};}function _0x50643a(_0xbab19){for(let _0xb92374=0x0;_0xb92374<_0x490595[_0x3bc1('0xa8')];_0xb92374++){if(_0xbab19[_0x3bc1('0x4f')]&&_0x3bc1('0xf2')==_0x490595[_0xb92374][_0x3bc1('0x88')])return _0xbab19[_0x3bc1('0x116')]=_0x490595[_0xb92374],void delete _0xbab19[_0x3bc1('0x4f')];if(!_0xbab19['isAdded']&&!_0xbab19[_0x3bc1('0x4a')]&&_0x3bc1('0x6a')==_0x490595[_0xb92374][_0x3bc1('0x88')])return void(_0xbab19[_0x3bc1('0x9c')]=_0x490595[_0xb92374]);}}}[_0x3bc1('0x10b')](_0x54470c,_0x6a8e09){let _0x4b09a2=0x0,_0x1de569=!0x1;const _0x6d0a53=new Map();for(const _0x3519ad of _0x54470c)_0x3519ad[_0x6a8e09]?_0x1de569&&(_0x4b09a2++,_0x1de569=!0x1):(_0x4b09a2++,_0x1de569=!0x0),_0x6d0a53[_0x3bc1('0x92')](_0x3519ad['id'],_0x4b09a2);for(let _0x276915=0x0;_0x276915<_0x54470c[_0x3bc1('0xa8')];_0x276915++){if(_0x3bc1('0x4a')==_0x6a8e09&&_0x54470c[_0x276915]['isAdded']||_0x3bc1('0x4f')==_0x6a8e09&&_0x54470c[_0x276915][_0x3bc1('0x4a')])continue;if(_0x3bc1('0x78')==_0x54470c[_0x276915][_0x3bc1('0x88')]){_0x54470c[_0x276915][_0x3bc1('0x10e')]=0x0;continue;}const _0x48e7d=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915][_0x3bc1('0xf9')]),_0x59254e=_0x6d0a53[_0x3bc1('0x117')](_0x54470c[_0x276915]['id']);_0x54470c[_0x276915][_0x3bc1('0x10e')]=_0x48e7d-_0x59254e;}}['_getRevisionsRange'](_0x36e871,_0x43f0fa,_0x5ea1d4=!0x1){const _0x5adac0=[];let _0x4eed79=this[_0x3bc1('0x32')][_0x3bc1('0x100')](_0x36e871),_0x166bb0=this['repository']['getIndex'](_0x43f0fa);for(-0x1==_0x166bb0&&(_0x166bb0=this['repository'][_0x3bc1('0x2e')]['length'],_0x5ea1d4=!0x1);_0x4eed79<_0x166bb0;)_0x5adac0[_0x3bc1('0x11c')](this[_0x3bc1('0x32')]['getRevision'](_0x4eed79)),_0x4eed79++;return _0x5ea1d4&&_0x5adac0['push'](this['repository'][_0x3bc1('0x9e')](_0x4eed79)),_0x5adac0;}[_0x3bc1('0x17')](_0xee4a69,_0x3b2868,_0x67614e,_0x5c9896){const _0x3804df=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];let _0x4b0fc7=_0x3b2868;for(;_0xee4a69[_0x4b0fc7]&&_0xee4a69[_0x4b0fc7][_0x3bc1('0x4f')];)_0x4b0fc7++;let _0x85139f=_0x5c9896;for(;_0x67614e[_0x85139f]&&_0x67614e[_0x85139f]['isRemoved'];)_0x85139f++;_0x3c8638(_0xee4a69,_0x3b2868,_0x4b0fc7),_0x3c8638(_0x67614e,_0x5c9896,_0x85139f);const _0xa7a529=_0x67614e[_0x3bc1('0x112')](_0x5c9896,_0x85139f)['concat'](_0xee4a69[_0x3bc1('0x112')](_0x3b2868,_0x4b0fc7));return _0xa7a529[_0x3bc1('0xc8')]((_0x36fc8d,_0x3522a0)=>_0x36fc8d[_0x3bc1('0x10f')]!=_0x3522a0[_0x3bc1('0x10f')]?_0x36fc8d['side']-_0x3522a0[_0x3bc1('0x10f')]:_0x36fc8d[_0x3bc1('0xd6')]!=_0x3522a0[_0x3bc1('0xd6')]?_0x36fc8d[_0x3bc1('0xd6')]-_0x3522a0['level']:_0x36fc8d[_0x3bc1('0x10e')]!=_0x3522a0[_0x3bc1('0x10e')]?_0x3522a0[_0x3bc1('0x10e')]-_0x36fc8d['distance']:!!_0x36fc8d[_0x3bc1('0x4f')]!=!!_0x3522a0['isAdded']?-0x1==_0x36fc8d['side']||0x0==_0x36fc8d[_0x3bc1('0x10f')]?_0x36fc8d['isAdded']?-0x1:0x1:_0x36fc8d[_0x3bc1('0x4f')]?0x1:-0x1:_0x36fc8d[_0x3bc1('0x56')]-_0x3522a0['index']),{'commonTape':_0xa7a529,'iEnd':_0x4b0fc7,'jEnd':_0x85139f};function _0x3c8638(_0x370779,_0x10ac75,_0x5a5deb){let _0x11d5e0=-0x1,_0x113a65=Number[_0x3bc1('0x52')],_0x46c373=!0x0;for(let _0x52c812=_0x10ac75;_0x52c812<_0x5a5deb;_0x52c812++)if(_0x3804df[_0x3bc1('0x5b')](_0x370779[_0x52c812][_0x3bc1('0xc')])||(_0x46c373=!0x1),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0xcb')]<_0x10ac75&&(_0x11d5e0=_0x52c812),_0x370779[_0x52c812][_0x3bc1('0xc')][_0x3bc1('0x108')]>=_0x5a5deb){_0x113a65=_0x52c812;break;}_0x46c373&&(_0x11d5e0=_0x5a5deb-0x1);for(let _0x5f5d41=_0x10ac75;_0x5f5d41<_0x5a5deb;_0x5f5d41++)_0x370779[_0x5f5d41][_0x3bc1('0x10f')]=_0x5f5d41<=_0x11d5e0?-0x1:_0x5f5d41<_0x113a65?0x0:0x1,_0x370779[_0x5f5d41]['index']=_0x5f5d41;let _0x2842c4=0x0;for(let _0x14ce2c=_0x10ac75;_0x14ce2c<=_0x11d5e0;_0x14ce2c++)0x0==_0x370779[_0x14ce2c][_0x3bc1('0x10e')]?_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4++,_0x370779[_0x14ce2c][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4++);for(let _0x58031f=_0x10ac75;_0x58031f<_0x5a5deb;_0x58031f++)0x0==_0x370779[_0x58031f]['side']&&(_0x370779[_0x58031f][_0x3bc1('0xd6')]=_0x2842c4);_0x2842c4=0x0;for(let _0x253e70=_0x5a5deb-0x1;_0x253e70>=_0x113a65;_0x253e70--)0x0==_0x370779[_0x253e70][_0x3bc1('0x10e')]?_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4:(_0x2842c4--,_0x370779[_0x253e70][_0x3bc1('0xd6')]=_0x2842c4,_0x2842c4--);}}[_0x3bc1('0x111')](_0x2ab1d1){const _0x19bc53=new Map(),_0x4e2870=this[_0x3bc1('0x5f')]['model']['schema'];for(let _0xd341a1=0x1;_0xd341a1<_0x2ab1d1[_0x3bc1('0xa8')];_0xd341a1++){let _0x33ac5a,_0x1d88e5,_0x2e08c6;const _0x6b2f49=_0x2ab1d1[_0xd341a1],_0x32c7ec=_0x2ab1d1[_0xd341a1-0x1];if(_0x3bc1('0x78')==_0x6b2f49[_0x3bc1('0x88')])continue;if(_0x6b2f49[_0x3bc1('0x88')]!=_0x32c7ec[_0x3bc1('0x88')])continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x32c7ec[_0x3bc1('0xc')])||_0x4e2870[_0x3bc1('0x86')](_0x32c7ec[_0x3bc1('0xc')]))continue;if(!_0x4e2870[_0x3bc1('0x1e')](_0x6b2f49[_0x3bc1('0xc')])||_0x4e2870['isLimit'](_0x6b2f49[_0x3bc1('0xc')]))continue;if((_0x2ab1d1[_0xd341a1][_0x3bc1('0x4f')]||_0x2ab1d1[_0xd341a1][_0x3bc1('0x116')])&&_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4a')])_0x33ac5a=_0x2ab1d1[_0xd341a1],_0x1d88e5=_0x2ab1d1[_0xd341a1-0x1],_0x2e08c6=_0xd341a1-0x1;else{if(!_0x2ab1d1[_0xd341a1][_0x3bc1('0x4a')]||!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x4f')]&&!_0x2ab1d1[_0xd341a1-0x1][_0x3bc1('0x116')])continue;_0x33ac5a=_0x2ab1d1[_0xd341a1-0x1],_0x1d88e5=_0x2ab1d1[_0xd341a1],_0x2e08c6=_0xd341a1;}const _0x139ba2=_0x33ac5a[_0x3bc1('0xd6')]==_0x1d88e5[_0x3bc1('0xd6')],_0x28092f=Math[_0x3bc1('0x85')](_0x33ac5a['level'])<Math[_0x3bc1('0x85')](_0x1d88e5['level'])&&0x0==_0x1d88e5[_0x3bc1('0x10e')];(_0x139ba2||_0x28092f)&&(_0x19bc53[_0x3bc1('0x92')](_0x1d88e5['id'],_0x33ac5a['id']),_0x2ab1d1[_0x3bc1('0xec')](_0x2e08c6,0x1),_0xd341a1--,_0x33ac5a[_0x3bc1('0x4f')]=!0x1);}for(let _0x486d67=0x0;_0x486d67<_0x2ab1d1['length'];_0x486d67++)_0x19bc53['has'](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')])&&(_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]=_0x19bc53[_0x3bc1('0x117')](_0x2ab1d1[_0x486d67][_0x3bc1('0xf9')]));}[_0x3bc1('0x10d')](_0x4a05cb){const _0x3e0d2a=new Set(_0x4a05cb['map'](_0x4a153f=>_0x4a153f['id']));for(let _0x3b8a59=0x0;_0x3b8a59<_0x4a05cb[_0x3bc1('0xa8')];_0x3b8a59++)_0x3e0d2a[_0x3bc1('0x3c')](_0x4a05cb[_0x3b8a59][_0x3bc1('0xf9')])||0x0==_0x4a05cb[_0x3b8a59][_0x3bc1('0x10e')]||(_0x4a05cb[_0x3b8a59]['isIncorrect']=!0x0);return _0x4a05cb[_0x3bc1('0x51')](_0x8360ae=>!_0x8360ae['isIncorrect']);}[_0x3bc1('0x94')](_0x2f3add){const _0xe633dd=new Set();for(let _0x2be8b8=0x0;_0x2be8b8<_0x2f3add['length'];_0x2be8b8++){if(_0xe633dd[_0x3bc1('0x3c')](_0x2f3add[_0x2be8b8]['id'])&&_0x2f3add[_0x2be8b8][_0x3bc1('0x4a')]&&(_0x2f3add[_0x2be8b8]['isIncorrect']=!0x0),_0x2f3add[_0x2be8b8][_0x3bc1('0x68')])continue;if(0x0==_0x2f3add[_0x2be8b8][_0x3bc1('0x10e')])continue;if(_0x3bc1('0xeb')!=_0x2f3add[_0x2be8b8][_0x3bc1('0x88')])continue;if(null==_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')])continue;let _0x3197c2=_0x2be8b8+0x1,_0x285150=0x0;for(;_0x2f3add[_0x3197c2]['id']!=_0x2f3add[_0x2be8b8][_0x3bc1('0xf9')];)_0x3bc1('0xeb')==_0x2f3add[_0x3197c2]['type']?_0x285150++:'elementEnd'==_0x2f3add[_0x3197c2][_0x3bc1('0x88')]&&_0x285150--,_0x3197c2++;if(0x0!=_0x285150){if(_0x2f3add[_0x2be8b8]['isRemoved'])_0x2f3add[_0x2be8b8][_0x3bc1('0x68')]=!0x0;else for(;_0x3197c2!=_0x2be8b8;)_0x2f3add[_0x3197c2][_0x3bc1('0x4a')]&&0x0!=_0x2f3add[_0x3197c2][_0x3bc1('0x10e')]&&(_0x2f3add[_0x3197c2][_0x3bc1('0x68')]=!0x0,_0xe633dd[_0x3bc1('0x9f')](_0x2f3add[_0x3197c2][_0x3bc1('0xf9')])),_0x3197c2--;}}return _0x2f3add['filter'](_0x107bf2=>!_0x107bf2[_0x3bc1('0x68')]);}[_0x3bc1('0xb0')](_0x2aa02a){const _0x4bb7c0=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')];for(let _0x34db51=0x0;_0x34db51<_0x2aa02a[_0x3bc1('0xa8')];_0x34db51++){if(!(_0x2aa02a[_0x34db51][_0x3bc1('0x4f')]||_0x2aa02a[_0x34db51][_0x3bc1('0x116')]||_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]||_0x2aa02a[_0x34db51][_0x3bc1('0x9c')]))continue;if(0x0==_0x2aa02a[_0x34db51][_0x3bc1('0x10e')])continue;const _0x4c3c14=_0x2aa02a[_0x34db51][_0x3bc1('0xc')];_0x4bb7c0['isBlock'](_0x4c3c14)||_0x4bb7c0[_0x3bc1('0x86')](_0x4c3c14)||(_0x2aa02a[_0x34db51]['isAdded']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x4f')],_0x2aa02a[_0x34db51]['isAddSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x116')],_0x2aa02a[_0x34db51]['isRemoveSuggestion']&&delete _0x2aa02a[_0x34db51][_0x3bc1('0x9c')],_0x2aa02a[_0x34db51][_0x3bc1('0x4a')]&&(_0x2aa02a[_0x34db51][_0x3bc1('0x68')]=!0x0));}return _0x2aa02a[_0x3bc1('0x51')](_0x3ae074=>!_0x3ae074[_0x3bc1('0x68')]);}[_0x3bc1('0xf6')](_0x1a5608,_0x145bd3,_0xd78e20){const _0x233b33=new _0x111441(),_0x4312d8=[],_0x56219a=new Map(),_0x59133e=this[_0x3bc1('0x5f')][_0x3bc1('0x96')],_0x2c2810=_0x59133e[_0x3bc1('0x9a')],_0x1ed306=[_0x233b33],_0x1d7490={},_0x47650a={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xa3af25=null;const _0x1c3e7c=[0x0];for(let _0x232bee=0x0;_0x232bee<_0x1a5608[_0x3bc1('0xa8')];_0x232bee++){let _0x236e73,_0x4d1d69;if('elementStart'===_0x1a5608[_0x232bee]['type']){_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);const _0x449432=new _0x6329a5(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0xb6')],_0x1a5608[_0x232bee]['item'][_0x3bc1('0x69')]());_0x1ed306[0x0][_0x3bc1('0xfa')](_0x449432),_0x1c3e7c['push'](0x0),_0x1ed306[_0x3bc1('0x2d')](_0x449432),_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;}else{if(_0x3bc1('0xff')===_0x1a5608[_0x232bee]['type'])_0x1ed306[_0x3bc1('0x91')](),_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0x1c3e7c['pop'](),_0x1c3e7c[_0x1c3e7c['length']-0x1]++,_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25=null;else{if(_0x236e73=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c),_0xa3af25&&_0x27fff3(_0xa3af25,_0x1a5608[_0x232bee][_0x3bc1('0xc')]))_0xa3af25[_0x3bc1('0x22')]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')];else{const _0x169b4=new _0x1fd28b(_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x7')],_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x69')]());_0x1ed306[0x0]['_appendChild'](_0x169b4),_0xa3af25=_0x169b4;}_0x1c3e7c[_0x1c3e7c[_0x3bc1('0xa8')]-0x1]+=_0x1a5608[_0x232bee][_0x3bc1('0xc')][_0x3bc1('0x58')],_0x4d1d69=_0x59133e[_0x3bc1('0x11b')](_0x233b33,_0x1c3e7c);}}for(const _0x6606da of _0x1a5608[_0x232bee][_0x3bc1('0x73')])_0x56219a[_0x3bc1('0x92')](_0x6606da,{'start':_0x236e73,'end':null});_0x2d7448(_0x3bc1('0x9c'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x116'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4a'),_0x232bee,_0x236e73,_0x4d1d69),_0x2d7448(_0x3bc1('0x4f'),_0x232bee,_0x236e73,_0x4d1d69);for(const _0x31fc98 of _0x1a5608[_0x232bee][_0x3bc1('0x39')]){_0x56219a[_0x3bc1('0x117')](_0x31fc98)['end']=_0x4d1d69;}}for(const [_0x64578f,_0x541b49]of _0x56219a){const _0x1bd1c6=this['editor'][_0x3bc1('0x96')][_0x3bc1('0x50')](_0x541b49['start'],_0x541b49[_0x3bc1('0xef')]);_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x64578f,_0x1bd1c6);}return _0x4312d8[_0x3bc1('0xc8')]((_0x262b64,_0x1e97e2)=>{const _0x543a57=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x262b64['id']),_0x366065=_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x1e97e2['id']);return _0x543a57[_0x3bc1('0x82')][_0x3bc1('0x49')](_0x366065['start'])?-0x1:_0x543a57[_0x3bc1('0x82')][_0x3bc1('0x119')](_0x366065['start'])?0x1:_0x543a57['end'][_0x3bc1('0x49')](_0x366065['end'])?-0x1:_0x543a57[_0x3bc1('0xef')][_0x3bc1('0x119')](_0x366065[_0x3bc1('0xef')])?0x1:'add'===_0x262b64[_0x3bc1('0x88')]?-0x1:0x1;}),{'root':_0x233b33,'changes':_0x4312d8};function _0x2d7448(_0x1edc2f,_0xea406f,_0x495ae4,_0x1767d5){const _0x3b1371=!!_0x1a5608[_0xea406f][_0x1edc2f],_0x32a4e2=_0x3b1371?_0x1a5608[_0xea406f][_0x1edc2f][_0x3bc1('0xbc')]:null,_0x6f3d52=_0xea406f===_0x1a5608['length']-0x1,_0xa17e50=_0x47650a[_0x1edc2f][0x0],_0x2482d6=_0x2c2810['isObject'](_0x1a5608[_0xea406f][_0x3bc1('0xc')]);!_0x1d7490[_0x1edc2f]&&_0x3b1371?_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}:_0x1d7490[_0x1edc2f]&&!_0x3b1371?(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null):_0x1d7490[_0x1edc2f]&&_0x3b1371&&_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]!==_0x32a4e2&&(_0x1d7490[_0x1edc2f][_0x3bc1('0xef')]=_0x495ae4,_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x1d7490[_0x1edc2f][_0x3bc1('0xbc')]||_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]={'start':_0x495ae4,'tapeItem':_0x1a5608[_0xea406f],'userId':_0x32a4e2,'type':_0x1edc2f}),_0x1d7490[_0x1edc2f]&&_0x2482d6&&(_0x3bc1('0xeb')!==_0x1a5608[_0xea406f][_0x3bc1('0x88')]||_0xa17e50&&_0xa17e50[_0x3bc1('0xbc')]===_0x32a4e2||_0x47650a[_0x1edc2f][_0x3bc1('0x2d')]({'userId':_0x32a4e2,'object':_0x1a5608[_0xea406f]['item'],'change':_0x1d7490[_0x1edc2f]}),_0x3bc1('0xff')===_0x1a5608[_0xea406f][_0x3bc1('0x88')]&&_0xa17e50&&_0xa17e50[_0x3bc1('0xd5')]===_0x1a5608[_0xea406f][_0x3bc1('0xc')]&&(_0x47650a[_0x1edc2f][_0x3bc1('0x91')](),_0x1d7490[_0x1edc2f]=_0xa17e50[_0x3bc1('0x70')])),_0x1d7490[_0x1edc2f]&&_0x6f3d52&&(_0x1d7490[_0x1edc2f]['end']=_0x1767d5,_0x40728f(_0x1d7490[_0x1edc2f]),_0x1d7490[_0x1edc2f]=null);}function _0x40728f({start:_0x12795e,end:_0x433fa0,tapeItem:_0x1f92d8,userId:_0x4c750c,type:_0x592a4c}){const _0x41ed69=_0x1f92d8['item'],_0x46c0b2=_0x59133e[_0x3bc1('0x9a')][_0x3bc1('0x1e')](_0x41ed69)&&!_0x59133e[_0x3bc1('0x9a')]['isLimit'](_0x41ed69),_0x38977e=_0x12795e[_0x3bc1('0xf1')]==_0x433fa0[_0x3bc1('0x5a')]&&_0x433fa0[_0x3bc1('0xfe')];if(_0x46c0b2&&_0x38977e)return;const _0x3ecde1=_0x59133e['createRange'](_0x12795e,_0x433fa0),_0x60f2e0=_0x145bd3[_0x3bc1('0x117')](_0x4c750c),_0x3d9cec=new _0x28f86b({'author':_0x60f2e0,'type':_0x3bc1('0x4f')==_0x592a4c||_0x3bc1('0x116')==_0x592a4c?_0x3bc1('0x9f'):_0x3bc1('0x1a'),'data':{'isSuggestion':'isAddSuggestion'==_0x592a4c||'isRemoveSuggestion'==_0x592a4c},'createdAt':new Date(),'rootName':_0xd78e20});_0x4312d8[_0x3bc1('0x11c')](_0x3d9cec),_0x233b33[_0x3bc1('0xd1')][_0x3bc1('0x92')](_0x3bc1('0x6d')+_0x3d9cec['id'],_0x3ecde1);}function _0x27fff3(_0x1f34d0,_0x964e4d){const _0xa398c2=_0x1f34d0[_0x3bc1('0x69')](),_0x34b250=_0x964e4d['getAttributes']();for(const _0x476495 of _0xa398c2){if(_0x476495[0x1]!==_0x964e4d[_0x3bc1('0x36')](_0x476495[0x0]))return!0x1;_0x34b250[_0x3bc1('0xe3')]();}return _0x34b250[_0x3bc1('0xe3')]()[_0x3bc1('0xca')];}}[_0x3bc1('0x23')](){this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x8a')]({'view':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for'](_0x3bc1('0x118'))['markerToHighlight']({'model':'revision','view':_0x5d2594=>{const _0x3a6508=_0x5d2594['markerName']['split'](':')[0x1],_0x50b18b=this['_getChangeFromId'](_0x3a6508);if(!_0x50b18b)return null;const _0x3dafd8=_0x3bc1('0x9f')==_0x50b18b[_0x3bc1('0x88')]?_0x3bc1('0xf2'):'deletion',_0x1429f9=[_0x3bc1('0x37'),'ck-suggestion-marker-'+_0x3dafd8];return _0x50b18b[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x1429f9['push'](_0x3bc1('0x14')+_0x3dafd8+_0x3bc1('0x31')),this[_0x3bc1('0xb8')]==_0x50b18b&&_0x1429f9[_0x3bc1('0x11c')](_0x3bc1('0xc9')),{'classes':_0x1429f9,'attributes':{'data-change-id':_0x3a6508}};}}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))[_0x3bc1('0x9f')](_0x45fcdf=>{_0x45fcdf['on']('element:pre',(_0x301210,_0x12a186,_0x45576c)=>{const _0x35b9cf=_0x12a186[_0x3bc1('0x63')][_0x3bc1('0xfb')](0x0);if(!_0x35b9cf||!_0x35b9cf['is'](_0x3bc1('0xda'),_0x3bc1('0xb7')))return;if(!_0x45576c[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x35b9cf,{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;const _0x1e66fa=_0x12a186['modelRange'][_0x3bc1('0x82')][_0x3bc1('0xf1')];_0x45576c[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x74')),_0x1e66fa),_0x45576c['writer'][_0x3bc1('0x10')](_0x3bc1('0x5e'),_0x35b9cf[_0x3bc1('0x36')](_0x3bc1('0x5e')),_0x1e66fa);},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['add'](_0x539def=>{_0x539def['on']('element',(_0x5dc332,_0x1a515f,_0x37e4f2)=>{if(!_0x37e4f2['consumable'][_0x3bc1('0x41')](_0x1a515f['viewItem'],{'attributes':[_0x3bc1('0x74'),_0x3bc1('0x5e')]}))return;if(_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0xd3')])return;const _0x4d4965=_0x1a515f[_0x3bc1('0x76')][_0x3bc1('0x82')]['nodeAfter'];_0x4d4965[_0x3bc1('0xb2')](_0x3bc1('0x74'))||_0x4d4965[_0x3bc1('0xb2')]('vid')||(_0x37e4f2[_0x3bc1('0xd4')][_0x3bc1('0x10')](_0x3bc1('0x74'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')](_0x3bc1('0x74')),_0x4d4965),_0x37e4f2['writer']['setAttribute'](_0x3bc1('0x5e'),_0x1a515f[_0x3bc1('0x63')][_0x3bc1('0x36')]('vid_end'),_0x4d4965));},{'priority':_0x3bc1('0xf0')});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x552a85=>_0x552a85[_0x3bc1('0x36')]('vid')}}),this['editor'][_0x3bc1('0x96')][_0x3bc1('0x9a')]['on'](_0x3bc1('0xbe'),(_0x4ab610,[,_0x3e8602])=>{[_0x3bc1('0x74'),_0x3bc1('0x5e'),_0x3bc1('0xea')]['includes'](_0x3e8602)&&(_0x4ab610[_0x3bc1('0x48')]=!0x0,_0x4ab610['stop']());},{'priority':'highest'}),this[_0x3bc1('0x5f')]['conversion'][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x9f')](_0x2e64a9=>{_0x2e64a9['on'](_0x3bc1('0x87'),(_0x1a85e7,_0x2f05f3,_0x3a6bcb)=>{if('\x20'!=_0x2f05f3[_0x3bc1('0xc')][_0x3bc1('0x7')]||_0x2f05f3[_0x3bc1('0xc')]['parent']['maxOffset']>0x1)return;if(!_0x3a6bcb[_0x3bc1('0x8f')][_0x3bc1('0x41')](_0x2f05f3['item'],_0x1a85e7[_0x3bc1('0xb6')]))return;const _0x38f411=_0x3a6bcb[_0x3bc1('0xd4')],_0x231127=_0x3a6bcb[_0x3bc1('0x29')]['toViewRange'](_0x2f05f3[_0x3bc1('0xc6')]);_0x38f411[_0x3bc1('0x71')](_0x231127,_0x38f411['createAttributeElement'](_0x3bc1('0xdf')));});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x30'))[_0x3bc1('0x34')]({'model':_0x3bc1('0xa3')}),this[_0x3bc1('0x5f')]['editing']['downcastDispatcher']['on'](_0x3bc1('0x66'),function(_0x528169){const _0x29977a=_0x528169[_0x3bc1('0xaf')][_0x3bc1('0x117')](_0x3bc1('0x5d'));return(_0x8c2bf0,_0x473967,_0x33ad36)=>{const _0x2cfdc8=_0x473967['markerName'][_0x3bc1('0x2')](':')[0x1],_0x436739=_0x29977a[_0x3bc1('0x60')](_0x2cfdc8);if(!_0x436739)return null;const _0x5b85ec='add'==_0x436739[_0x3bc1('0x88')]?_0x3bc1('0x2'):'merge';if(!_0x33ad36[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x473967[_0x3bc1('0xdb')],_0x8c2bf0[_0x3bc1('0xb6')]))return;const _0x1252f5=_0x473967['markerRange'][_0x3bc1('0x64')](),_0x5e486a=_0x473967[_0x3bc1('0xdb')]['start'],_0x36f53c=_0x528169['model']['schema'];let _0x319bcd=null,_0x5d1e3e=null,_0x45609a=!0x1,_0x1ebd72=!0x1;for(const _0x13097a of _0x1252f5){const _0xae206=_0x13097a[_0x3bc1('0xc')];_0x45609a=_0x45609a||_0x36f53c['isContent'](_0xae206);const _0x787092=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0xae206);if(_0x787092&&_0x787092[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;_0x3bc1('0xff')==_0x13097a['type']&&(_0x36f53c[_0x3bc1('0x1e')](_0xae206)&&!_0x36f53c['isLimit'](_0xae206)&&(_0xae206['nextSibling']||_0x5e486a[_0x3bc1('0x98')]?_0x319bcd&&_0x319bcd[_0x3bc1('0x5a')]==_0xae206||(_0x319bcd=_0xae206,_0x9a9e91(_0x13097a[_0x3bc1('0x107')]),_0x1ebd72=!0x0):_0x5d1e3e=_0x5d1e3e||_0x13097a['previousPosition']));}function _0x9a9e91(_0x42d1f4){const _0x15c04d=_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x5b85ec}),_0x3973ba=_0x33ad36[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x42d1f4);_0x436739[_0x3bc1('0x7')]['isSuggestion']&&_0x33ad36[_0x3bc1('0xd4')]['addClass']('ck-suggestion-marker-'+_0x5b85ec+_0x3bc1('0x31'),_0x15c04d),_0x29977a[_0x3bc1('0xb8')]==_0x436739&&_0x33ad36[_0x3bc1('0xd4')]['addClass'](_0x3bc1('0xc9'),_0x15c04d),_0x33ad36[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x3973ba,_0x15c04d),_0x33ad36[_0x3bc1('0x29')]['bindElementToMarker'](_0x15c04d,_0x473967[_0x3bc1('0x53')]);}_0x45609a||_0x1ebd72||!_0x5d1e3e||_0x9a9e91(_0x5d1e3e);};}(this['editor']),{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('removeMarker:revision',(_0x59e318,_0x179bd5,_0x3d1f8b)=>{const _0x14f7c2=_0x3d1f8b[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x179bd5[_0x3bc1('0x53')]);if(_0x14f7c2)for(const _0x27e8ee of _0x14f7c2)(_0x27e8ee[_0x3bc1('0xc3')](_0x3bc1('0x11'))||_0x27e8ee['hasClass']('ck-suggestion-marker-merge'))&&(_0x3d1f8b['mapper'][_0x3bc1('0xb4')](_0x27e8ee,_0x179bd5['markerName']),_0x3d1f8b[_0x3bc1('0xd4')]['remove'](_0x27e8ee));},{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x66'),(_0x3c8f9d,_0x39ec00,_0x292bed)=>{const _0x3c9ad4=_0x39ec00[_0x3bc1('0x53')]['split'](':')[0x1],_0x20f67f=this[_0x3bc1('0x60')](_0x3c9ad4);if(!_0x20f67f)return null;const _0x61c5f9=_0x3bc1('0x9f')==_0x20f67f[_0x3bc1('0x88')]?_0x3bc1('0x2'):_0x3bc1('0x2c');if(_0x292bed[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x39ec00[_0x3bc1('0xdb')],_0x3c8f9d[_0x3bc1('0xb6')]))for(const _0x41917c of _0x39ec00[_0x3bc1('0xdb')][_0x3bc1('0x28')]()){if(!_0x41917c['is'](_0x3bc1('0xda'),_0x3bc1('0xb1')))continue;const _0x318dd5=_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0x14')+_0x61c5f9}),_0x2f8c16=_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x8d')](this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xc5')](_0x41917c));_0x20f67f[_0x3bc1('0x7')][_0x3bc1('0x10a')]&&_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x72')]('ck-suggestion-marker-'+_0x61c5f9+_0x3bc1('0x31'),_0x318dd5),this[_0x3bc1('0xb8')]==_0x20f67f&&_0x292bed['writer'][_0x3bc1('0x72')](_0x3bc1('0xc9'),_0x318dd5),_0x292bed[_0x3bc1('0xd4')][_0x3bc1('0x83')](_0x2f8c16,_0x318dd5),_0x292bed[_0x3bc1('0x29')][_0x3bc1('0x6')](_0x318dd5,_0x39ec00[_0x3bc1('0x53')]);}},{'priority':'high'}),this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document']['on'](_0x3bc1('0x70'),()=>{this['editor'][_0x3bc1('0x42')][_0x3bc1('0x11d')]['change'](_0x22ce1c=>{for(const _0x31a933 of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x6e')]()){const _0x551f08=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0x1c')]['getRoot'](_0x31a933),_0x1d08b8=this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')]['document'][_0x3bc1('0x25')](_0x31a933);if(_0x1d08b8){const _0x241845=_0x551f08[_0x3bc1('0x36')](_0x3bc1('0x4b'));if(_0x22ce1c['removeAttribute']('data-change-id',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0x79'),_0x1d08b8),_0x22ce1c[_0x3bc1('0x67')]('ck-revision-history-root-remove',_0x1d08b8),_0x22ce1c['removeClass'](_0x3bc1('0xb3'),_0x1d08b8),_0x241845){const _0x43f8a5=this[_0x3bc1('0x60')](_0x241845);if(!_0x43f8a5)return null;_0x22ce1c['setAttribute'](_0x3bc1('0x55'),_0x241845,_0x1d08b8),_0x22ce1c[_0x3bc1('0x72')]('ck-revision-history-root-'+_0x43f8a5[_0x3bc1('0x88')],_0x1d08b8),this[_0x3bc1('0xb8')]==_0x43f8a5&&_0x22ce1c[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x1d08b8);}}}});}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')]['for']('upcast')[_0x3bc1('0x8a')]({'view':'comment','model':_0x5717b0=>_0x3bc1('0xe8')+_0x5717b0,'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x44'))['dataToMarker']({'view':_0x3bc1('0xe1'),'model':_0xcc70ed=>_0x3bc1('0x102')+_0xcc70ed,'converterPriority':_0x3bc1('0x35')}),this['editor'][_0x3bc1('0xa6')]['for'](_0x3bc1('0x30'))['markerToData']({'model':_0x3bc1('0x11a'),'view':_0x59ab80=>({'name':'suggestion:'+_0x59ab80,'group':_0x3bc1('0x11a')}),'converterPriority':_0x3bc1('0x35')}),this[_0x3bc1('0x5f')][_0x3bc1('0xa6')][_0x3bc1('0xe')](_0x3bc1('0x118'))[_0x3bc1('0x77')]({'model':_0x3bc1('0x11a'),'view':_0x30b8c2=>{const _0x57eba7=_0x30b8c2[_0x3bc1('0x53')][_0x3bc1('0x2')](':')[0x1];return _0x3bc1('0xf2')!=_0x57eba7&&_0x3bc1('0x6a')!=_0x57eba7?null:{'classes':[_0x3bc1('0x1'),_0x3bc1('0xfd')+_0x57eba7]};}}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x65')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x3bc1('0x5f')],'merge'),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')][_0x3bc1('0x42')]['downcastDispatcher']['on'](_0x3bc1('0x8c'),et(this[_0x3bc1('0x5f')],_0x3bc1('0x2')),{'priority':_0x3bc1('0x62')}),this[_0x3bc1('0x5f')]['editing'][_0x3bc1('0x65')]['on']('removeMarker:revision-suggestion',(_0x424845,_0x214d37,_0x525c55)=>{const _0x14804e=_0x525c55[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x214d37[_0x3bc1('0x53')]);if(_0x14804e)for(const _0x22a1a8 of _0x14804e)_0x22a1a8['is'](_0x3bc1('0xdc'))&&(_0x525c55[_0x3bc1('0x29')]['unbindElementFromMarkerName'](_0x22a1a8,_0x214d37[_0x3bc1('0x53')]),_0x525c55[_0x3bc1('0xd4')]['remove'](_0x22a1a8));},{'priority':_0x3bc1('0x62')});}['_getChangeFromId'](_0x58252f){return this[_0x3bc1('0x5')][_0x3bc1('0x117')](_0x58252f);}['_getViewForChange'](_0x28a39a){return this[_0x3bc1('0xad')]&&this[_0x3bc1('0xad')][_0x3bc1('0x20')](),this[_0x3bc1('0xad')]=new _0x44934d(this['editor'][_0x3bc1('0x7f')],_0x28a39a),this[_0x3bc1('0xad')];}[_0x3bc1('0x106')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['document'][_0x3bc1('0x4c')]['observeMarkers'](_0x3bc1('0xa3')),this['on']('change:activeView',(_0x30afc8,_0xd8187,_0x22c00e,_0x4b779e)=>{_0x4b779e&&this[_0x3bc1('0x89')][_0x3bc1('0x1a')](_0x4b779e),_0x22c00e&&(this[_0x3bc1('0x89')][_0x3bc1('0x9f')]({'view':_0x22c00e,'stackId':_0x3bc1('0xe6'),'position':{'target':()=>{const _0x474a7e=this[_0x3bc1('0x5f')]['editing'],_0x196f36=this[_0x3bc1('0x60')](_0x22c00e[_0x3bc1('0x12')]);let _0x39d5d6;if(_0x196f36['data'][_0x3bc1('0x114')]){const _0x55f401=_0x474a7e[_0x3bc1('0x11d')]['getDomRoot'](_0x196f36[_0x3bc1('0x10c')]);_0x39d5d6=Array['from'](_0x55f401[_0x3bc1('0xac')]());}else{const _0x18b25f=this[_0x3bc1('0x5f')][_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x22c00e[_0x3bc1('0x12')]);_0x39d5d6=Array[_0x3bc1('0xc2')](_0x474a7e[_0x3bc1('0x29')][_0x3bc1('0x2f')](_0x18b25f[_0x3bc1('0xb6')]))[_0x3bc1('0xc1')](_0x59171e=>_0x474a7e[_0x3bc1('0x11d')][_0x3bc1('0x103')][_0x3bc1('0xab')](_0x59171e))[_0x3bc1('0xc1')](_0x1f464b=>Array[_0x3bc1('0xc2')](_0x1f464b[_0x3bc1('0xac')]()))[_0x3bc1('0xe2')]();}if(!this[_0x3bc1('0xfc')])return _0x39d5d6[0x0];return _0x39d5d6[_0x3bc1('0x26')](_0x59d19e=>_0x59d19e['top']-0x3<=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xb')]+0x3>=this[_0x3bc1('0xfc')]['y']&&_0x59d19e[_0x3bc1('0xba')]-0x3<=this[_0x3bc1('0xfc')]['x']&&_0x59d19e[_0x3bc1('0x109')]+0x3>=this[_0x3bc1('0xfc')]['x'])||_0x39d5d6[0x0];}}}),this[_0x3bc1('0x89')][_0x3bc1('0x1b')]('revisionHistoryLabel'));}),this['on'](_0x3bc1('0xa7'),(_0x4be7b9,_0x592399,_0x218c3e,_0x42c099)=>{this['activeView']=_0x218c3e?this[_0x3bc1('0xaa')](_0x218c3e):null,this[_0x3bc1('0x5f')]['model']['change'](()=>{const _0x5c39cc=this['editor'][_0x3bc1('0x42')];_0x42c099&&(_0x42c099['data'][_0x3bc1('0x114')]?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x167c4b=>{_0x167c4b[_0x3bc1('0x67')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x42c099[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')](_0x3bc1('0x6d')+_0x42c099['id'])),_0x218c3e&&(_0x218c3e[_0x3bc1('0x7')]['isOnRoot']?_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x70')](_0x1e9ba2=>{_0x1e9ba2[_0x3bc1('0x72')](_0x3bc1('0xb3'),_0x5c39cc[_0x3bc1('0x11d')][_0x3bc1('0x1c')][_0x3bc1('0x25')](_0x218c3e[_0x3bc1('0x10c')]));}):_0x5c39cc[_0x3bc1('0x4e')]('revision:'+_0x218c3e['id']));});}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')][_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x1c')],_0x3bc1('0xee'),(_0x2d235b,_0x39db5d)=>{if(this[_0x3bc1('0xb8')])return;const _0x565ab6=this['_findChangeIdFromDomTarget'](_0x39db5d[_0x3bc1('0xc7')]),_0x3dfc2e=this[_0x3bc1('0x5')]['get'](_0x565ab6);_0x3dfc2e?(this['_activeViewTarget']={'x':_0x39db5d[_0x3bc1('0x7d')]['x'],'y':_0x39db5d['domEvent']['y']},this[_0x3bc1('0xa5')]=this[_0x3bc1('0xaa')](_0x3dfc2e)):(this[_0x3bc1('0xfc')]=null,this['activeView']=null);}),this[_0x3bc1('0x57')](this[_0x3bc1('0x5f')]['editing']['view'][_0x3bc1('0x1c')],_0x3bc1('0x7b'),(_0x18d2a3,_0x2c8d0f)=>{const _0x58a85e=this['_findChangeIdFromDomTarget'](_0x2c8d0f[_0x3bc1('0xc7')]),_0x1c205b=this['_changeIdToChange'][_0x3bc1('0x117')](_0x58a85e);_0x1c205b?(this[_0x3bc1('0xfc')]={'x':_0x2c8d0f[_0x3bc1('0x7d')]['x'],'y':_0x2c8d0f[_0x3bc1('0x7d')]['y']},_0x1c205b===this[_0x3bc1('0xb8')]?this[_0x3bc1('0x89')]['updatePosition']():this['activeChange']=_0x1c205b):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x475427){do{const _0x4ac670=_0x475427['getAttribute'](_0x3bc1('0x55'));if(_0x4ac670)return _0x4ac670;_0x475427=_0x475427[_0x3bc1('0x5a')];}while(_0x475427);return null;}[_0x3bc1('0x43')](){this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['change'](_0x3c0253=>{for(const _0x2a79ca of this[_0x3bc1('0x5f')][_0x3bc1('0x96')]['markers'])_0x3c0253[_0x3bc1('0xf8')](_0x2a79ca);});}}function et(_0x172fce,_0x593898){return(_0x5988c3,_0x2312d0,_0x291f18)=>{if(!_0x291f18[_0x3bc1('0x8f')][_0x3bc1('0x59')](_0x2312d0[_0x3bc1('0xdb')],_0x5988c3['name']))return;const _0x5ec43b=_0x2312d0[_0x3bc1('0xdb')][_0x3bc1('0x64')](),_0x24f9ba=_0x2312d0[_0x3bc1('0xdb')]['start'],_0x258614=_0x172fce['model'][_0x3bc1('0x9a')];let _0x2396d1=null,_0x431a85=null,_0x28bb21=!0x1,_0x264049=!0x1;for(const _0x189850 of _0x5ec43b){const _0x51f52d=_0x189850[_0x3bc1('0xc')];_0x28bb21=_0x28bb21||_0x258614[_0x3bc1('0x16')](_0x51f52d);const _0x2271a8=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x6b')](_0x51f52d);if(_0x2271a8&&_0x2271a8[_0x3bc1('0x19')](_0x3bc1('0xdd')))return;'elementEnd'==_0x189850[_0x3bc1('0x88')]&&(_0x258614[_0x3bc1('0x1e')](_0x51f52d)&&!_0x258614[_0x3bc1('0x86')](_0x51f52d)&&(_0x51f52d[_0x3bc1('0xd9')]||_0x24f9ba[_0x3bc1('0x98')]?_0x2396d1&&_0x2396d1[_0x3bc1('0x5a')]==_0x51f52d||(_0x2396d1=_0x51f52d,_0x3d78ec(_0x189850[_0x3bc1('0x107')]),_0x264049=!0x0):_0x431a85=_0x431a85||_0x189850[_0x3bc1('0x107')]));}function _0x3d78ec(_0x2e4798){const _0x4952f2=_0x291f18[_0x3bc1('0x29')][_0x3bc1('0x8d')](_0x2e4798),_0x193d30=_0x291f18[_0x3bc1('0xd4')][_0x3bc1('0xbf')](_0x3bc1('0xdf'),{'class':_0x3bc1('0xfd')+_0x593898});_0x291f18['writer'][_0x3bc1('0x83')](_0x4952f2,_0x193d30),_0x291f18[_0x3bc1('0x29')]['bindElementToMarker'](_0x193d30,_0x2312d0['markerName']);}_0x28bb21||_0x264049||!_0x431a85||_0x3d78ec(_0x431a85);};}export class RestoreRevisionCommand extends _0x484f37{constructor(_0x1bfc13){super(_0x1bfc13);const _0x320004=_0x1bfc13[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x320004,_0x3bc1('0x2a'),()=>this['refresh']());}['execute'](){const _0x19efc7=this['editor'],_0x124e5d=_0x19efc7[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),_0x1b2b6b=_0x124e5d[_0x3bc1('0xc4')]?_0x124e5d[_0x3bc1('0x8b')][_0x3bc1('0x27')]:null;_0x19efc7[_0x3bc1('0x2b')][_0x3bc1('0x117')](_0x3bc1('0xd'))['restoreRevisionCallback'](_0x1b2b6b);}[_0x3bc1('0xc0')](){const {isReady:_0x3e7094,isEnabled:_0x9a19f1}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')]['get'](d);this[_0x3bc1('0x61')]=_0x3e7094&&_0x9a19f1;}}export class ShowChangeCommand extends _0x484f37{constructor(_0x16e669,{direction:_0x157b93}){super(_0x16e669);const _0x565b48=_0x16e669[_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x101')]=!0x1,this[_0x3bc1('0x84')]='forward'===_0x157b93?0x1:-0x1,this[_0x3bc1('0x57')](_0x565b48,_0x3bc1('0xe4'),()=>this[_0x3bc1('0xc0')]()),this[_0x3bc1('0x57')](_0x565b48,'change:isEnabled',()=>this[_0x3bc1('0xc0')]()),this['listenTo'](_0x565b48,_0x3bc1('0xa7'),()=>this['refresh']());}[_0x3bc1('0x18')](){const _0x5eec64=this[_0x3bc1('0x5f')],_0x399773=_0x5eec64[_0x3bc1('0xaf')][_0x3bc1('0x117')](d),{isNavigationMode:_0x5bac03,currentChangeNumber:_0x59e13f}=_0x399773;let _0x473aac;if(_0x399773[_0x3bc1('0xb8')]=_0x5bac03?_0x399773[_0x3bc1('0x8b')]['changes'][_0x3bc1('0x117')](_0x59e13f+this['_step']):_0x399773[_0x3bc1('0x8b')][_0x3bc1('0x110')]['first'],_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x7')][_0x3bc1('0x114')])_0x473aac=_0x5eec64[_0x3bc1('0x42')][_0x3bc1('0x11d')][_0x3bc1('0x95')](_0x399773[_0x3bc1('0xb8')][_0x3bc1('0x10c')]);else{const _0x217efa=_0x5eec64[_0x3bc1('0x96')][_0x3bc1('0xd1')][_0x3bc1('0x117')](_0x3bc1('0x6d')+_0x399773[_0x3bc1('0xb8')]['id']);_0x473aac=_0x1340aa(_0x5eec64[_0x3bc1('0x42')],_0x217efa);}_0x23e2a0({'target':_0x473aac,'viewportOffset':0x28});}[_0x3bc1('0xc0')](){const {isNavigationMode:_0x2f2acd,currentChangeNumber:_0x3d9d55,numberOfChanges:_0x28b4b2,isReady:_0x3db022,isEnabled:_0xaaca10}=this[_0x3bc1('0x5f')][_0x3bc1('0xaf')][_0x3bc1('0x117')](d);this[_0x3bc1('0x61')]=!!(_0xaaca10&&_0x3db022&&_0x28b4b2)&&(!_0x2f2acd||(0x1===this['_step']?_0x3d9d55<_0x28b4b2-0x1:_0x3d9d55>0x0));}}
|
|
23
|
+
const _0x8135=['sort','_removeMissingPairs','isLimit','restoreRevision','dataDowncast','start','add','revision','splice','range','vid_end','createPositionBefore','pop','side','markers','authors','roots','startsWith','mapViewToDom','elementStart','backward','hasClass','nodeAfter','abs','reconvertMarker','map','_makeTape','next','getIndex','isRemoved','newRevisionId','isIncorrect','isNavigationMode','WidgetToolbarRepository','getCustomProperty','change','high','isSuggestion','changeId','vid','type','change:isEnabled','upcast','_changeView','mousedown','execute','isContent','_getRevisionsRange','_fixObsoleteTags','createPositionFromPath','_makeModelFromTape','span','getAttribute','isOnRoot','change:activeChange','isRemoveSuggestion','_setDistance','document','isAddSuggestion','collaboration.channelId','text','shift','_changeIdToChange','name','pairId','startIndex','createRevision','_initInteractions','right','model','revisionHistoryLabel','_cleanUp','numberOfChanges','markerNameToElements','rootName','toViewElement','writer','error','addRevisionData','currentChangeNumber','useFillerType','downcastDispatcher','keys','_refreshStartEndIndex','editing','isInline','attributes','concat','comment','markerName','target','_makeModelFromViewString','changes','element:pre','_data','suggestion:','createRangeIn','affectsData','_getViewObj','ck-revision-history-root-','_markMarkers','showStack','_getChangeFromId','nextSibling','markerRange','parse','getRoot','from','change:numberOfChanges','suggestion','updatePosition','_step','_removeRevisionMarkers','config','diff','elementToAttribute','then','markerToData','pluginName','commands','enqueueChange','ck-suggestion-marker-','_findChangeIdFromDomTarget','for','test','consume','_markInsertions','createUIElement','data-revision-','ck-editor__editable__overlay','_activeViewTarget','removeMarker:revision','vid_start','unshift','unbindElementFromMarkerName','end','editor','removeClass','getRevisionData','left','offsetSize','push','conversion','revisionHistory','change:activeView','markersStart','showNextChange','get','remove','attachChange','getRevision','detachRoot','repository','ck-revision-history-root-add','revision-comment:','nextPosition','markersEnd','_setChanges','viewItem','_cleanMarkers','userId','mapper','uiElement','toViewPosition','string','activeView','attributesBefore','adapter','checkAttribute','addHighlight','view','RevisionViewer','_balloon','-new','change:isReady','isAtStart','object','isAfter','parent','revision-suggestion','_removeUnsupportedChanges','set','delete','getRootNames','_processTape','processor','default','_markMismatchedRemovedTags','dataToMarker','forEach','getAttributes','element','_update','loadRevisionData','bindElementToMarker','_getViewForChange','showPreviousChange','locale','ck-revision-history-root--active','isBefore','ck-suggestion-marker-split','mouseover','deletions','hasAttribute','includes','length','deletion','addMarker:revision-suggestion:insertion','_markSuggestions','highest','all','level','endIndex','_setConversion','clear','distance','insertions','isBlock','item','isEnabled','consumable','schema','isAttached','requires','findIndex','marked','getClientRects','setAttribute','indexOf','softBreak','revisionHistoryAttachChange','diffData','addMarker:revision','resolve','activeChange','merge','filter','_appendChild','toData','data-change-id','has','insertion','attributesAfter','index','split','getItems','getDomRoot','isAtEnd','maxOffset','removeMarker','data','forceDisabled','domEvent','stop','addClass','ck-suggestion-marker-merge','listenTo','_getDiff','revision-end','getWalker','editingDowncast','_sortAndFilterDiffChanges','previousPosition','selection','insert','ck-suggestion-preview-marker-','plugins','ck-suggestion-preview-marker','getRevisionRootsAttributes','compare','isEqual','slice','createRange','restoreRevisionCallback','isReady','ck-suggestion-marker--active','isAdded','forward','_threeWayMerge','revision:','low','bind','refresh','getChild','revision-start','top','modelRange','find','_joinTapes','elementEnd'];(function(_0x254c27,_0x813510){const _0x5859a4=function(_0x1c3a9e){while(--_0x1c3a9e){_0x254c27['push'](_0x254c27['shift']());}};_0x5859a4(++_0x813510);}(_0x8135,0x100));const _0x5859=function(_0x254c27,_0x813510){_0x254c27=_0x254c27-0x0;let _0x5859a4=_0x8135[_0x254c27];return _0x5859a4;};import{Plugin as _0x193c24,Command as _0x4034ce}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5cbda3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1efa1b}from'ckeditor5/src/ui';import{DocumentFragment as _0x5ae4b3,Element as _0x1c5b79,Text as _0xd2c2f,ViewDocumentFragment as _0x5e5cb4,ViewText as _0x59ce10,ViewElement as _0x2f41ac,ViewContainerElement as _0xb4abbf,ViewAttributeElement as _0x2a3e28,ViewEmptyElement as _0xda6fa2,ViewRawElement as _0x5e8a04,ViewUIElement as _0x3aa07c}from'ckeditor5/src/engine';import{Users as _0x5f1a33,getMarkerDomElement as _0x5a0b75}from'ckeditor5-collaboration/src/collaboration-core';import _0xbeef29 from'./ui/revisionviewer/changedetailsview';import _0x53ab8c from'./revisionsrepository';import _0x31e9c7 from'./changeitem';import{default as _0xc41a6e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x27c916}from'lodash-es';const tt={'c':_0xb4abbf,'a':_0x2a3e28,'e':_0xda6fa2,'r':_0x5e8a04,'u':_0x3aa07c};export default class d extends _0x193c24{static get[_0x5859('0x98')](){return'RevisionViewer';}static get[_0x5859('0x101')](){return[_0x5f1a33,_0x1efa1b,_0x53ab8c];}constructor(_0x95b7b8){super(_0x95b7b8),this[_0x5859('0xba')]=this[_0x5859('0xaa')][_0x5859('0xa')][_0x5859('0xb5')]('RevisionsRepository'),this['set'](_0x5859('0x10c'),null),this[_0x5859('0xd7')](_0x5859('0xc7'),null),this[_0x5859('0xa4')]=null,this[_0x5859('0xd7')]('diff',null),this[_0x5859('0xd7')]('isReady',!0x1),this[_0x5859('0xd7')](_0x5859('0xfd'),!0x0),this['on']('change:isEnabled',(_0x337d82,_0x264a21,_0x488d5d)=>{this[_0x5859('0x10c')]=null,this[_0x5859('0xc7')]=null,this[_0x5859('0xaa')][_0x5859('0x76')]['view'][_0x5859('0x45')](_0x323b52=>{for(const _0x4a54b7 of this[_0x5859('0xaa')]['editing'][_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x32')])_0x488d5d?_0x323b52[_0x5859('0xab')](_0x5859('0xa3'),_0x4a54b7):_0x323b52[_0x5859('0x120')](_0x5859('0xa3'),_0x4a54b7);});}),this[_0x5859('0x19')](_0x5859('0x42'))['to'](this,_0x5859('0x10c'),_0x489bbd=>null!==_0x489bbd),this[_0x5859('0x19')](_0x5859('0x71'))['to'](this,_0x5859('0x12'),this,_0x5859('0x94'),this,_0x5859('0x10c'),(_0x361a7b,_0x48401a,_0x22271b)=>_0x361a7b&&_0x22271b?_0x48401a[_0x5859('0x7e')][_0x5859('0x3e')](_0x22271b):0x0),this[_0x5859('0x19')](_0x5859('0x6a'))['to'](this,'isReady',this,_0x5859('0x94'),(_0x1f033d,_0x341869)=>_0x1f033d?_0x341869['changes'][_0x5859('0xef')]:0x0),this[_0x5859('0x4d')]=null,this[_0x5859('0x60')]=new Map(),this[_0x5859('0xc9')]=null,this[_0x5859('0xce')]=this['editor'][_0x5859('0xa')][_0x5859('0xb5')](_0x1efa1b);}['init'](){const _0x53707b=this[_0x5859('0xaa')],_0x41aeac=new ShowChangeCommand(_0x53707b,{'direction':_0x5859('0x36')}),_0x5f33ee=new ShowChangeCommand(_0x53707b,{'direction':'forward'});(_0x53707b[_0x5859('0x99')][_0x5859('0x28')](_0x5859('0xe6'),_0x41aeac),_0x53707b[_0x5859('0x99')]['add'](_0x5859('0xb4'),_0x5f33ee),_0x53707b['commands'][_0x5859('0x28')](_0x5859('0x25'),new RestoreRevisionCommand(_0x53707b)),this['on'](_0x5859('0x8e'),()=>{_0x41aeac['refresh'](),_0x5f33ee[_0x5859('0x1a')]();}),this[_0x5859('0xf7')](),this['_initInteractions'](),_0x53707b['enableReadOnlyMode']('revision-viewer'),_0x53707b[_0x5859('0xa')][_0x5859('0x112')](_0x5859('0x43')))&&_0x53707b[_0x5859('0xa')][_0x5859('0xb5')](_0x5859('0x43'))[_0x5859('0x11d')]('revision-viewer');}async[_0x5859('0xac')](_0x3ac132){await this[_0x5859('0xe3')](_0x3ac132);const _0x5a3da7={};for(const _0x5a6d4b in _0x3ac132[_0x5859('0x109')]){if(_0x3ac132[_0x5859('0x109')][_0x5a6d4b][_0x5859('0xb7')]&&!_0x3ac132[_0x5859('0x109')][_0x5a6d4b][_0x5859('0xb7')][_0x5859('0x100')])continue;const _0x55cc1e=this[_0x5859('0x92')](JSON['parse'](_0x3ac132[_0x5859('0x109')][_0x5a6d4b]['insertions'])),_0x1ec4a4=this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')]['document'],_0x2868f3=new _0x5e5cb4(_0x1ec4a4,_0x55cc1e['map'](_0x5a2d7d=>this['_getViewObj'](_0x5a2d7d)));this['editor']['data']['processor']['useFillerType'](_0x5859('0x103')),_0x5a3da7[_0x5a6d4b]=this[_0x5859('0xaa')][_0x5859('0x11c')][_0x5859('0xdb')][_0x5859('0x110')](_0x2868f3),this['editor'][_0x5859('0x11c')]['processor'][_0x5859('0x72')](_0x5859('0xdc'));}return _0x5a3da7;}async[_0x5859('0xc')](_0x570937){await this['loadRevisionData'](_0x570937);const _0x5a5bab={};for(const _0x567c10 in _0x570937['diffData'])_0x570937[_0x5859('0x109')][_0x567c10]['attachChange']&&!_0x570937['diffData'][_0x567c10][_0x5859('0xb7')][_0x5859('0x100')]||(_0x5a5bab[_0x567c10]=_0x570937[_0x5859('0x109')][_0x567c10][_0x5859('0x114')]||{});return _0x5a5bab;}[_0x5859('0x92')](_0x330a55){return(_0x330a55=_0x330a55[_0x5859('0x10e')](_0x3618e3=>!_0x3618e3['name']||_0x5859('0x1c')!==_0x3618e3[_0x5859('0x61')]&&_0x5859('0x2')!==_0x3618e3['name']))['forEach'](_0x21a622=>{_0x5859('0xc6')!=typeof _0x21a622&&(_0x21a622['children']=this[_0x5859('0x92')](_0x21a622['children']),_0x21a622[_0x5859('0x78')]=_0x21a622[_0x5859('0x78')][_0x5859('0x10e')](_0x38ed2c=>!_0x38ed2c[0x0][_0x5859('0x33')](_0x5859('0xa2'))));}),_0x330a55;}async[_0x5859('0xd')](_0x32386e,_0xeed90f,_0x51c6fd=!0x1){if(!this[_0x5859('0xfd')])return;const _0x938c60=this['diff'],_0xd8fc83=this['repository'],_0x2622ad='string'==typeof _0x32386e?_0xd8fc83[_0x5859('0xb8')](_0x32386e):_0x32386e,_0x20e408=_0x5859('0xc6')==typeof _0xeed90f?_0xd8fc83[_0x5859('0xb8')](_0xeed90f):_0xeed90f,_0x3bdd8e=_0x2622ad['id'],_0x4e3df5=_0x20e408?_0x20e408['id']:null;if(!_0x51c6fd&&this[_0x5859('0x94')]&&this[_0x5859('0x94')][_0x5859('0x40')]===_0x3bdd8e&&this[_0x5859('0x94')]['oldRevisionId']===_0x4e3df5)return Promise['resolve']();this[_0x5859('0x12')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x5859('0x94')]=new _0xc41a6e(_0x3bdd8e,_0x4e3df5);const _0x6baf0b=this[_0x5859('0x51')](_0x2622ad,_0x20e408,!0x0)['map'](_0x565b4f=>this[_0x5859('0xe3')](_0x565b4f));return _0x6baf0b['push'](new Promise(_0x3af885=>{setTimeout(_0x3af885,0x14);})),Promise[_0x5859('0xf4')](_0x6baf0b)[_0x5859('0x96')](()=>{if(!this[_0x5859('0xfd')])return;this[_0x5859('0x69')]();const _0x115f1f=this[_0x5859('0x1')](_0x3bdd8e,_0x4e3df5);for(const _0x49ac60 of _0x115f1f[_0x5859('0x7e')])this[_0x5859('0x60')]['set'](_0x49ac60['id'],_0x49ac60);this[_0x5859('0xaa')]['model']['enqueueChange']({'isUndoable':!0x1},_0x3f10f7=>{for(const _0x5dfa1a of this['editor'][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]())_0x3f10f7[_0x5859('0xb9')](_0x5dfa1a);for(const _0x4a93d2 of Object[_0x5859('0x74')](_0x115f1f[_0x5859('0x67')])){const _0xa62110=_0x3f10f7['addRoot'](_0x4a93d2);for(const _0x42e991 of Object[_0x5859('0x74')](_0x115f1f['attributes'][_0x4a93d2]))_0x3f10f7[_0x5859('0x105')](_0x42e991,_0x115f1f[_0x5859('0x78')][_0x4a93d2][_0x42e991],_0xa62110);_0x3f10f7['insert'](_0x115f1f['model'][_0x4a93d2],_0xa62110,0x0);}}),this[_0x5859('0x94')][_0x5859('0xbf')](this[_0x5859('0x5')](_0x115f1f[_0x5859('0x7e')])),this[_0x5859('0x12')]=!0x0;})['catch'](_0x39c53a=>{console[_0x5859('0x6f')](_0x39c53a),this['_cleanUp'](),_0x938c60&&(this[_0x5859('0x94')]=_0x938c60),this[_0x5859('0x12')]=!0x0;});}[_0x5859('0x70')](_0x4133fd,_0x29c4ba){const _0x174f57=this[_0x5859('0xba')][_0x5859('0x64')](_0x4133fd);return _0x174f57['on'](_0x5859('0xe2'),(_0x37d55e,_0x5d2fdd,_0x27fd65)=>_0x29c4ba(_0x5d2fdd,_0x27fd65,_0x174f57)),this[_0x5859('0xba')]['addRevision'](_0x174f57),_0x174f57;}['loadRevisionData'](_0x300ea6){if(!_0x300ea6||_0x300ea6[_0x5859('0x109')])return Promise[_0x5859('0x10b')]();{const _0x15a3d7=this[_0x5859('0xaa')][_0x5859('0x93')]['get'](_0x5859('0x5d'));return this[_0x5859('0xc9')][_0x5859('0xb8')]({'channelId':_0x15a3d7,'revisionId':_0x300ea6['id']})['then'](_0x504f1a=>{_0x300ea6[_0x5859('0xe2')]({'diffData':_0x504f1a[_0x5859('0x109')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x5859('0xc1')](),this['_changeView']&&this[_0x5859('0x4d')]['destroy'](),this[_0x5859('0x4d')]=null,this[_0x5859('0x60')][_0x5859('0xf8')](),this[_0x5859('0xaa')]['model'][_0x5859('0x9a')]({'isUndoable':!0x1},_0x38322e=>{for(const _0x2cf5cf of this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]())_0x38322e[_0x5859('0xb9')](_0x2cf5cf);});}[_0x5859('0x5')](_0x2d7e3c){const _0x38396f=[],_0x38f240=new Map();for(const _0x2217ce of this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]()){const _0x127acc=this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')][_0x5859('0x118')](_0x2217ce);if(!_0x127acc)continue;const _0x1f8a74=_0x127acc[_0x5859('0x104')]()[_0x5859('0xfc')](0x0);_0x1f8a74&&(_0x38396f['push'](_0x2217ce),_0x38f240[_0x5859('0xd7')](_0x2217ce,_0x1f8a74));}return _0x38396f[_0x5859('0x22')]((_0x51ffc0,_0x8e8ac8)=>{const _0x54b30c=_0x38f240[_0x5859('0xb5')](_0x51ffc0),_0x33f0f6=_0x38f240[_0x5859('0xb5')](_0x8e8ac8);return _0x54b30c['y']-_0x33f0f6['y']||_0x54b30c['x']-_0x33f0f6['x'];}),(_0x2d7e3c=_0x2d7e3c[_0x5859('0x10e')](_0x370bf8=>_0x38396f['includes'](_0x370bf8[_0x5859('0x6c')])))[_0x5859('0x22')]((_0x280a40,_0x8a74aa)=>_0x38396f[_0x5859('0x106')](_0x280a40['rootName'])-_0x38396f[_0x5859('0x106')](_0x8a74aa[_0x5859('0x6c')])),_0x2d7e3c;}['_makeTape'](_0x316a73){const _0x224672=Array[_0x5859('0x8d')](_0x316a73[_0x5859('0x30')])['filter'](([_0x14b57e,_0x1f4b5c])=>_0x14b57e['startsWith']('revision:')&&!_0x1f4b5c['isCollapsed']),_0x133ae5=Array[_0x5859('0x8d')](this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x82')](_0x316a73)[_0x5859('0x3')]({'singleCharacters':!0x0}));if(0x0!=_0x224672[_0x5859('0xef')])for(const _0x25057c of _0x133ae5){const [_0x162c29,_0x55c6f8]=_0x224672[0x0],[,_0x4b017e,_0x478fff]=_0x162c29[_0x5859('0x116')](':');if(_0x55c6f8['end'][_0x5859('0xe')](_0x25057c[_0x5859('0xbd')])&&_0x224672[_0x5859('0x5f')](),(_0x25057c[_0x5859('0x6')]['isEqual'](_0x55c6f8[_0x5859('0x27')])||_0x25057c[_0x5859('0x6')][_0x5859('0xd3')](_0x55c6f8[_0x5859('0x27')]))&&(_0x5859('0x113')==_0x4b017e?_0x25057c[_0x5859('0x14')]={'userId':_0x478fff}:_0x5859('0xf0')==_0x4b017e&&(_0x25057c[_0x5859('0x3f')]={'userId':_0x478fff})),0x0==_0x224672['length'])break;}return _0x133ae5;}[_0x5859('0x75')](_0x211135){const _0x1e9e72=new Map();for(let _0x4e35b3=0x0;_0x4e35b3<_0x211135['length'];_0x4e35b3++)_0x5859('0x5e')===_0x211135[_0x4e35b3][_0x5859('0x4a')]?(_0x211135[_0x4e35b3][_0x5859('0xfc')]['startIndex']=_0x4e35b3,_0x211135[_0x4e35b3][_0x5859('0xfc')]['endIndex']=_0x4e35b3):('elementStart'===_0x211135[_0x4e35b3]['type']?_0x211135[_0x4e35b3][_0x5859('0xfc')][_0x5859('0x63')]=_0x4e35b3:_0x5859('0x21')===_0x211135[_0x4e35b3][_0x5859('0x4a')]&&(_0x211135[_0x4e35b3]['item']['endIndex']=_0x4e35b3),_0x1e9e72['set'](_0x211135[_0x4e35b3]['id'],_0x4e35b3));for(const _0x1f4527 of _0x1e9e72['values']())_0x5859('0x35')===_0x211135[_0x1f4527][_0x5859('0x4a')]?_0x211135[_0x1f4527][_0x5859('0xfc')][_0x5859('0xf6')]=_0x1e9e72[_0x5859('0xb5')](_0x211135[_0x1f4527][_0x5859('0x62')]):_0x5859('0x21')===_0x211135[_0x1f4527]['type']&&(_0x211135[_0x1f4527]['item'][_0x5859('0x63')]=_0x1e9e72[_0x5859('0xb5')](_0x211135[_0x1f4527][_0x5859('0x62')]));}[_0x5859('0xda')](_0xf42b08){for(let _0x180032=0x0;_0x180032<_0xf42b08[_0x5859('0xef')];_0x180032++){if('elementStart'===_0xf42b08[_0x180032][_0x5859('0x4a')])_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0x63')]=_0x180032;else{if(_0x5859('0x21')===_0xf42b08[_0x180032][_0x5859('0x4a')]){_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0xf6')]=_0x180032;const _0x1e1682=_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0x63')];_0xf42b08[_0x1e1682][_0x5859('0x62')]=_0xf42b08[_0x180032]['id'],_0xf42b08[_0x180032]['pairId']=_0xf42b08[_0x1e1682]['id'];}else _0xf42b08[_0x180032]['item'][_0x5859('0x63')]=_0x180032,_0xf42b08[_0x180032][_0x5859('0xfc')]['endIndex']=_0x180032,_0xf42b08[_0x180032][_0x5859('0x62')]=null;}_0xf42b08[_0x180032]['markersStart']||(_0xf42b08[_0x180032][_0x5859('0xb3')]=[],_0xf42b08[_0x180032][_0x5859('0xbe')]=[]);}}[_0x5859('0xa0')](_0xf0aee8,_0x47b81b){const _0x5065f1=_0xf0aee8[_0x5859('0x10e')](_0x48f030=>!_0x48f030['isAdded']);for(let _0x26ff5e=0x0;_0x26ff5e<_0x47b81b['length'];_0x26ff5e++)_0x47b81b[_0x26ff5e][_0x5859('0x14')]&&(_0x5065f1[_0x26ff5e][_0x5859('0x14')]=_0x47b81b[_0x26ff5e][_0x5859('0x14')]);}[_0x5859('0x7d')](_0x5df227){const _0x10b817=JSON[_0x5859('0x8b')](_0x5df227),_0x21597a=this[_0x5859('0xaa')]['editing']['view'][_0x5859('0x5b')],_0x395c2b=new _0x5e5cb4(_0x21597a,_0x10b817[_0x5859('0x3b')](_0x13b335=>this[_0x5859('0x84')](_0x13b335)));return this['editor'][_0x5859('0x11c')]['toModel'](_0x395c2b);}[_0x5859('0x84')](_0x1d7a48){const _0x43670e=this['editor'][_0x5859('0x76')][_0x5859('0xcc')][_0x5859('0x5b')];if(_0x5859('0xc6')==typeof _0x1d7a48)return new _0x59ce10(_0x43670e,_0x1d7a48);{const _0x4e6f37=_0x1d7a48['children'][_0x5859('0x3b')](_0x57ca38=>this[_0x5859('0x84')](_0x57ca38));return new(tt[_0x1d7a48[(_0x5859('0x4a'))]]||_0x2f41ac)(_0x43670e,_0x1d7a48[_0x5859('0x61')],_0x1d7a48['attributes'],_0x4e6f37);}}[_0x5859('0x1')](_0x1f77c7,_0x13ba78=null){const _0x49977b=this[_0x5859('0xba')][_0x5859('0xb8')](_0x1f77c7),_0x2db545=_0x13ba78?this['repository'][_0x5859('0xb8')](_0x13ba78):null,_0x5d7e67=this[_0x5859('0x51')](_0x49977b,_0x2db545),_0x16fb54=_0x5d7e67[_0x5d7e67[_0x5859('0xef')]-0x1],_0x4b332e=new Map(),_0x3db07b={'model':{},'attributes':{},'changes':[]},_0x40db0e=new Set(),_0x5d6e40=new Map();for(let _0x4e31a2=_0x5d7e67[_0x5859('0xef')]-0x1;_0x4e31a2>=0x0;_0x4e31a2--){const _0xc607fd=_0x5d7e67[_0x4e31a2];for(const _0x4fe581 of Object[_0x5859('0x74')](_0xc607fd[_0x5859('0x109')]))if(_0xc607fd[_0x5859('0x109')][_0x4fe581][_0x5859('0xb7')]){const _0x58c0f9=_0xc607fd[_0x5859('0x109')][_0x4fe581][_0x5859('0xb7')];_0x58c0f9[_0x5859('0x100')]?(_0x40db0e[_0x5859('0x28')](_0x4fe581),_0x5d6e40['has'](_0x4fe581)&&_0x5d6e40['get'](_0x4fe581)['userId']==_0x58c0f9[_0x5859('0xc2')]?_0x5d6e40['delete'](_0x4fe581):_0x5d6e40[_0x5859('0xd7')](_0x4fe581,_0x58c0f9)):_0x5d6e40[_0x5859('0x112')](_0x4fe581)?(_0x40db0e[_0x5859('0xd8')](_0x4fe581),_0x5d6e40['delete'](_0x4fe581)):(_0x40db0e[_0x5859('0x28')](_0x4fe581),_0x5d6e40[_0x5859('0xd7')](_0x4fe581,_0x58c0f9));}else _0x40db0e['add'](_0x4fe581);}for(const _0x553f8b of _0x40db0e){const _0x144ba2=_0x5d6e40[_0x5859('0x112')](_0x553f8b)&&!_0x5d6e40[_0x5859('0xb5')](_0x553f8b)[_0x5859('0x100')];let _0x18b7b6=_0x144ba2?_0x5d7e67[_0x5859('0xef')]-0x1:0x0;const _0x129413=_0x144ba2?-0x1:0x1;for(;_0x5d7e67[_0x18b7b6];){const _0x1d28e7=_0x5d7e67[_0x18b7b6];if(_0x1d28e7[_0x5859('0x109')][_0x553f8b]){const _0x50f119=_0x144ba2?_0x1d28e7[_0x5859('0x109')][_0x553f8b][_0x5859('0xc8')]:_0x1d28e7['diffData'][_0x553f8b][_0x5859('0x114')];_0x3db07b['attributes'][_0x553f8b]=_0x50f119?_0x27c916(_0x50f119):{};break;}_0x18b7b6+=_0x129413;}}for(const _0x272ecd of _0x5d7e67){_0x272ecd[_0x5859('0x67')]={};for(const _0x23a2e8 of _0x272ecd[_0x5859('0x31')])_0x4b332e[_0x5859('0xd7')](_0x23a2e8['id'],_0x23a2e8);for(const _0x3fdd4b of _0x40db0e){const _0x57448d=_0x272ecd['diffData'][_0x3fdd4b]?_0x272ecd['diffData'][_0x3fdd4b][_0x5859('0xfa')]:'[]',_0x3ec2b5=_0x272ecd[_0x5859('0x109')][_0x3fdd4b]?_0x272ecd[_0x5859('0x109')][_0x3fdd4b]['deletions']:'[]';_0x272ecd[_0x5859('0x67')][_0x3fdd4b]={'insertions':this['_makeModelFromViewString'](_0x57448d),'deletions':this[_0x5859('0x7d')](_0x3ec2b5)};}}for(const _0x363d0c of _0x40db0e){let _0x2ebe6e=null,_0x4acb22=0x0;const _0x260cb3=new Map(Array[_0x5859('0x8d')](_0x49977b[_0x5859('0x67')][_0x363d0c][_0x5859('0xfa')][_0x5859('0x30')])[_0x5859('0x10e')](([_0x20c38a])=>!_0x20c38a[_0x5859('0x33')](_0x5859('0x17'))));let _0x228d57=0x0;for(const _0x5672d9 of _0x5d7e67){const _0x5b8429=this[_0x5859('0x3c')](_0x5672d9[_0x5859('0x67')][_0x363d0c][_0x5859('0xfa')]);_0x5672d9==_0x49977b?(_0x2ebe6e=_0x5b8429,_0x4acb22=_0x2ebe6e['length'],_0x2ebe6e[_0x5859('0xdf')](_0x38cb96=>{_0x38cb96['id']=_0x228d57++;}),this[_0x5859('0xda')](_0x2ebe6e)):this[_0x5859('0xa0')](_0x2ebe6e,_0x5b8429);const _0x1dc430=_0x2ebe6e[_0x5859('0x10e')](_0x3dd11d=>!_0x3dd11d[_0x5859('0x14')])[_0x5859('0x3b')](_0x290aee=>_0x290aee['id']);let _0x46cc9f=0x0;const _0x55bd57=this[_0x5859('0x3c')](_0x5672d9[_0x5859('0x67')][_0x363d0c]['deletions']);_0x55bd57[_0x5859('0xdf')](_0x4074ab=>{_0x4074ab[_0x5859('0x3f')]?_0x4074ab['id']=_0x4acb22++:_0x4074ab['id']=_0x1dc430[_0x46cc9f++];}),this[_0x5859('0xda')](_0x55bd57),this['_setDistance'](_0x2ebe6e,_0x5859('0x14')),this[_0x5859('0x5a')](_0x55bd57,_0x5859('0x3f')),_0x5672d9==_0x49977b&&this['_markMarkers'](_0x2ebe6e,_0x260cb3),_0x2ebe6e=this[_0x5859('0x20')](_0x2ebe6e,_0x55bd57),this[_0x5859('0x75')](_0x2ebe6e),this['_setDistance'](_0x2ebe6e,'isRemoved');}_0x2ebe6e=_0x2ebe6e[_0x5859('0x10e')](_0x3d95a1=>!(_0x3d95a1[_0x5859('0x14')]&&_0x3d95a1['isRemoved']));const _0x4da9df=new Map(_0x16fb54[_0x5859('0x67')][_0x363d0c][_0x5859('0xec')][_0x5859('0x30')]),_0x56be8c=new Set(_0x260cb3[_0x5859('0x74')]());for(const _0x50a60b of _0x4da9df[_0x5859('0x74')]())_0x56be8c[_0x5859('0xd8')](_0x50a60b);this[_0x5859('0xf2')](_0x2ebe6e,_0x56be8c),this[_0x5859('0x52')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0x23')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0xdd')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0xd6')](_0x2ebe6e);const {root:_0x4e9c70,changes:_0x5f4e69}=this[_0x5859('0x54')](_0x2ebe6e,_0x4b332e,_0x363d0c);_0x3db07b[_0x5859('0x67')][_0x363d0c]=_0x4e9c70;const _0x135fcb=_0x5d6e40['get'](_0x363d0c);if(_0x135fcb){const _0x53deb7=_0x4b332e[_0x5859('0xb5')](_0x135fcb[_0x5859('0xc2')]),_0x3ffeb3=new _0x31e9c7({'author':_0x53deb7,'type':_0x135fcb[_0x5859('0x100')]?'add':_0x5859('0xb6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x363d0c});_0x5f4e69[_0x5859('0xa7')](_0x3ffeb3),_0x3db07b['attributes'][_0x363d0c]['revisionHistoryAttachChange']=_0x3ffeb3['id'];}_0x3db07b[_0x5859('0x7e')]=_0x3db07b[_0x5859('0x7e')][_0x5859('0x79')](_0x5f4e69);}return _0x3db07b;}[_0x5859('0x86')](_0x52fda4,_0x27218d){for(let _0x1da0ce=0x0;_0x1da0ce<_0x52fda4['length'];_0x1da0ce++)for(const [_0x4867a6,_0x31a2b0]of _0x27218d)_0x31a2b0[_0x5859('0x27')][_0x5859('0xe')](_0x52fda4[_0x1da0ce]['previousPosition'])&&_0x52fda4[_0x1da0ce]['markersStart'][_0x5859('0xaf')](_0x4867a6),_0x31a2b0[_0x5859('0xa9')][_0x5859('0xe')](_0x52fda4[_0x1da0ce]['nextPosition'])&&_0x52fda4[_0x1da0ce][_0x5859('0xbe')][_0x5859('0xaf')](_0x4867a6);}[_0x5859('0x20')](_0x7a3936,_0x572eae){let _0x19523f=[],_0x2b2c03=0x0,_0x5888c7=0x0;for(;_0x2b2c03<_0x7a3936[_0x5859('0xef')]||_0x5888c7<_0x572eae[_0x5859('0xef')];){const _0x19db11=_0x7a3936[_0x2b2c03]||{},_0x42f8c4=_0x572eae[_0x5888c7]||{};if(_0x19db11['id']==_0x42f8c4['id'])_0x2b2c03++,_0x5888c7++,_0x19523f[_0x5859('0xaf')](_0x19db11);else{if(_0x42f8c4['isRemoved']&&_0x19db11[_0x5859('0x14')]){const {commonTape:_0x327a3b,iEnd:_0x297830,jEnd:_0x43fa82}=this[_0x5859('0x16')](_0x7a3936,_0x2b2c03,_0x572eae,_0x5888c7);_0x19523f=_0x19523f['concat'](_0x327a3b),_0x2b2c03=_0x297830,_0x5888c7=_0x43fa82;}else _0x42f8c4['isRemoved']?(_0x5888c7++,_0x19523f[_0x5859('0xaf')](_0x42f8c4)):(_0x2b2c03++,_0x19523f[_0x5859('0xaf')](_0x19db11));}}return _0x19523f;}['_markSuggestions'](_0x10dd90,_0x1560f8){const _0x134322=[];for(let _0x386c3a=0x0;_0x386c3a<_0x10dd90[_0x5859('0xef')];_0x386c3a++){for(let _0x2cd3bf=0x0;_0x2cd3bf<_0x10dd90[_0x386c3a][_0x5859('0xb3')][_0x5859('0xef')];_0x2cd3bf++){const _0x229048=_0x10dd90[_0x386c3a][_0x5859('0xb3')][_0x2cd3bf];if(!_0x1560f8[_0x5859('0x112')](_0x229048))continue;const {group:_0x56bff1,type:_0x22c130,authorId:_0x21fe7e}=_0x36101b(_0x229048);_0x5859('0xd5')!=_0x56bff1||_0x5859('0x113')!=_0x22c130&&'deletion'!=_0x22c130||(_0x134322['unshift']({'type':_0x22c130,'name':_0x229048,'userId':_0x21fe7e}),_0x10dd90[_0x386c3a]['markersStart'][_0x5859('0x2a')](_0x2cd3bf,0x1),_0x2cd3bf--);}_0x1e4fe7(_0x10dd90[_0x386c3a]);for(let _0x3f46de=0x0;_0x3f46de<_0x10dd90[_0x386c3a]['markersEnd'][_0x5859('0xef')];_0x3f46de++){const _0x716948=_0x10dd90[_0x386c3a][_0x5859('0xbe')][_0x3f46de];if(!_0x1560f8[_0x5859('0x112')](_0x716948))continue;const {group:_0x1ddca2,type:_0x11510c}=_0x36101b(_0x716948);if(_0x5859('0xd5')!=_0x1ddca2||'insertion'!=_0x11510c&&'deletion'!=_0x11510c)continue;_0x10dd90[_0x386c3a]['markersEnd'][_0x5859('0x2a')](_0x3f46de,0x1),_0x3f46de--;const _0x2dda88=_0x134322[_0x5859('0x102')](_0x3ad91c=>_0x3ad91c[_0x5859('0x61')]==_0x716948);_0x2dda88>-0x1&&_0x134322[_0x5859('0x2a')](_0x2dda88,0x1);}}function _0x36101b(_0x4355d2){const _0x25267b=_0x4355d2[_0x5859('0x116')](':');return{'group':_0x25267b[0x0],'type':_0x25267b[0x1],'subType':_0x25267b[_0x5859('0xef')]>=0x5?_0x25267b[0x2]:null,'id':_0x25267b[_0x5859('0xef')]<0x5?_0x25267b[0x2]:_0x25267b[0x3],'authorId':_0x25267b[_0x5859('0xef')]<0x5?_0x25267b[0x3]:_0x25267b[0x4],'markerCount':0x6==_0x25267b[_0x5859('0xef')]?_0x25267b[0x5]:null};}function _0x1e4fe7(_0x3f9395){for(let _0x3c6afd=0x0;_0x3c6afd<_0x134322['length'];_0x3c6afd++){if(_0x3f9395[_0x5859('0x14')]&&_0x5859('0x113')==_0x134322[_0x3c6afd]['type'])return _0x3f9395[_0x5859('0x5c')]=_0x134322[_0x3c6afd],void delete _0x3f9395[_0x5859('0x14')];if(!_0x3f9395[_0x5859('0x14')]&&!_0x3f9395[_0x5859('0x3f')]&&'deletion'==_0x134322[_0x3c6afd][_0x5859('0x4a')])return void(_0x3f9395[_0x5859('0x59')]=_0x134322[_0x3c6afd]);}}}[_0x5859('0x5a')](_0x3ce3cf,_0x5e23f0){let _0x5576d3=0x0,_0x454918=!0x1;const _0x3f0f93=new Map();for(const _0x8ac3d7 of _0x3ce3cf)_0x8ac3d7[_0x5e23f0]?_0x454918&&(_0x5576d3++,_0x454918=!0x1):(_0x5576d3++,_0x454918=!0x0),_0x3f0f93[_0x5859('0xd7')](_0x8ac3d7['id'],_0x5576d3);for(let _0x4ff996=0x0;_0x4ff996<_0x3ce3cf[_0x5859('0xef')];_0x4ff996++){if('isRemoved'==_0x5e23f0&&_0x3ce3cf[_0x4ff996][_0x5859('0x14')]||_0x5859('0x14')==_0x5e23f0&&_0x3ce3cf[_0x4ff996][_0x5859('0x3f')])continue;if(_0x5859('0x5e')==_0x3ce3cf[_0x4ff996][_0x5859('0x4a')]){_0x3ce3cf[_0x4ff996]['distance']=0x0;continue;}const _0x3d0dfb=_0x3f0f93[_0x5859('0xb5')](_0x3ce3cf[_0x4ff996][_0x5859('0x62')]),_0x1f7215=_0x3f0f93[_0x5859('0xb5')](_0x3ce3cf[_0x4ff996]['id']);_0x3ce3cf[_0x4ff996][_0x5859('0xf9')]=_0x3d0dfb-_0x1f7215;}}[_0x5859('0x51')](_0x51d9bd,_0x4c62e8,_0x246bcf=!0x1){const _0x1614f4=[];let _0x59ce58=this['repository']['getIndex'](_0x51d9bd),_0x46de7b=this['repository'][_0x5859('0x3e')](_0x4c62e8);for(-0x1==_0x46de7b&&(_0x46de7b=this['repository']['_revisions']['length'],_0x246bcf=!0x1);_0x59ce58<_0x46de7b;)_0x1614f4['push'](this[_0x5859('0xba')][_0x5859('0xb8')](_0x59ce58)),_0x59ce58++;return _0x246bcf&&_0x1614f4[_0x5859('0xaf')](this['repository']['getRevision'](_0x59ce58)),_0x1614f4;}[_0x5859('0x16')](_0x20f73c,_0x3ac397,_0x46a4ef,_0x53b04e){const _0x58f098=this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0xff')];let _0x37552b=_0x3ac397;for(;_0x20f73c[_0x37552b]&&_0x20f73c[_0x37552b]['isAdded'];)_0x37552b++;let _0x15a554=_0x53b04e;for(;_0x46a4ef[_0x15a554]&&_0x46a4ef[_0x15a554][_0x5859('0x3f')];)_0x15a554++;_0x46f89d(_0x20f73c,_0x3ac397,_0x37552b),_0x46f89d(_0x46a4ef,_0x53b04e,_0x15a554);const _0x197a12=_0x46a4ef[_0x5859('0xf')](_0x53b04e,_0x15a554)[_0x5859('0x79')](_0x20f73c['slice'](_0x3ac397,_0x37552b));return _0x197a12[_0x5859('0x22')]((_0x5521ef,_0x5ba517)=>_0x5521ef['side']!=_0x5ba517[_0x5859('0x2f')]?_0x5521ef[_0x5859('0x2f')]-_0x5ba517[_0x5859('0x2f')]:_0x5521ef['level']!=_0x5ba517[_0x5859('0xf5')]?_0x5521ef[_0x5859('0xf5')]-_0x5ba517[_0x5859('0xf5')]:_0x5521ef[_0x5859('0xf9')]!=_0x5ba517[_0x5859('0xf9')]?_0x5ba517[_0x5859('0xf9')]-_0x5521ef[_0x5859('0xf9')]:!!_0x5521ef[_0x5859('0x14')]!=!!_0x5ba517['isAdded']?-0x1==_0x5521ef[_0x5859('0x2f')]||0x0==_0x5521ef[_0x5859('0x2f')]?_0x5521ef[_0x5859('0x14')]?-0x1:0x1:_0x5521ef['isAdded']?0x1:-0x1:_0x5521ef[_0x5859('0x115')]-_0x5ba517[_0x5859('0x115')]),{'commonTape':_0x197a12,'iEnd':_0x37552b,'jEnd':_0x15a554};function _0x46f89d(_0x7a0911,_0x435e31,_0x245cc3){let _0x5436cb=-0x1,_0x8c1f3b=Number['POSITIVE_INFINITY'],_0x4b79a2=!0x0;for(let _0x1e17e9=_0x435e31;_0x1e17e9<_0x245cc3;_0x1e17e9++)if(_0x58f098[_0x5859('0x77')](_0x7a0911[_0x1e17e9][_0x5859('0xfc')])||(_0x4b79a2=!0x1),_0x7a0911[_0x1e17e9][_0x5859('0xfc')][_0x5859('0x63')]<_0x435e31&&(_0x5436cb=_0x1e17e9),_0x7a0911[_0x1e17e9][_0x5859('0xfc')]['endIndex']>=_0x245cc3){_0x8c1f3b=_0x1e17e9;break;}_0x4b79a2&&(_0x5436cb=_0x245cc3-0x1);for(let _0x493779=_0x435e31;_0x493779<_0x245cc3;_0x493779++)_0x7a0911[_0x493779][_0x5859('0x2f')]=_0x493779<=_0x5436cb?-0x1:_0x493779<_0x8c1f3b?0x0:0x1,_0x7a0911[_0x493779][_0x5859('0x115')]=_0x493779;let _0x1ca393=0x0;for(let _0x21bcf1=_0x435e31;_0x21bcf1<=_0x5436cb;_0x21bcf1++)0x0==_0x7a0911[_0x21bcf1][_0x5859('0xf9')]?_0x7a0911[_0x21bcf1]['level']=_0x1ca393:(_0x1ca393++,_0x7a0911[_0x21bcf1][_0x5859('0xf5')]=_0x1ca393,_0x1ca393++);for(let _0xfd36b7=_0x435e31;_0xfd36b7<_0x245cc3;_0xfd36b7++)0x0==_0x7a0911[_0xfd36b7][_0x5859('0x2f')]&&(_0x7a0911[_0xfd36b7][_0x5859('0xf5')]=_0x1ca393);_0x1ca393=0x0;for(let _0x1c589c=_0x245cc3-0x1;_0x1c589c>=_0x8c1f3b;_0x1c589c--)0x0==_0x7a0911[_0x1c589c]['distance']?_0x7a0911[_0x1c589c][_0x5859('0xf5')]=_0x1ca393:(_0x1ca393--,_0x7a0911[_0x1c589c][_0x5859('0xf5')]=_0x1ca393,_0x1ca393--);}}[_0x5859('0x52')](_0x3254f5){const _0x5452bf=new Map(),_0x442af6=this[_0x5859('0xaa')][_0x5859('0x67')]['schema'];for(let _0x4dbfdd=0x1;_0x4dbfdd<_0x3254f5[_0x5859('0xef')];_0x4dbfdd++){let _0x1ff052,_0x772add,_0xd07fde;const _0x3bce3e=_0x3254f5[_0x4dbfdd],_0x5590bf=_0x3254f5[_0x4dbfdd-0x1];if(_0x5859('0x5e')==_0x3bce3e[_0x5859('0x4a')])continue;if(_0x3bce3e[_0x5859('0x4a')]!=_0x5590bf[_0x5859('0x4a')])continue;if(!_0x442af6[_0x5859('0xfb')](_0x5590bf[_0x5859('0xfc')])||_0x442af6[_0x5859('0x24')](_0x5590bf[_0x5859('0xfc')]))continue;if(!_0x442af6['isBlock'](_0x3bce3e[_0x5859('0xfc')])||_0x442af6[_0x5859('0x24')](_0x3bce3e[_0x5859('0xfc')]))continue;if((_0x3254f5[_0x4dbfdd][_0x5859('0x14')]||_0x3254f5[_0x4dbfdd][_0x5859('0x5c')])&&_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x3f')])_0x1ff052=_0x3254f5[_0x4dbfdd],_0x772add=_0x3254f5[_0x4dbfdd-0x1],_0xd07fde=_0x4dbfdd-0x1;else{if(!_0x3254f5[_0x4dbfdd]['isRemoved']||!_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x14')]&&!_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x5c')])continue;_0x1ff052=_0x3254f5[_0x4dbfdd-0x1],_0x772add=_0x3254f5[_0x4dbfdd],_0xd07fde=_0x4dbfdd;}const _0x459e4f=_0x1ff052[_0x5859('0xf5')]==_0x772add[_0x5859('0xf5')],_0x3be896=Math[_0x5859('0x39')](_0x1ff052['level'])<Math['abs'](_0x772add[_0x5859('0xf5')])&&0x0==_0x772add['distance'];(_0x459e4f||_0x3be896)&&(_0x5452bf[_0x5859('0xd7')](_0x772add['id'],_0x1ff052['id']),_0x3254f5[_0x5859('0x2a')](_0xd07fde,0x1),_0x4dbfdd--,_0x1ff052[_0x5859('0x14')]=!0x1);}for(let _0x57ab10=0x0;_0x57ab10<_0x3254f5['length'];_0x57ab10++)_0x5452bf[_0x5859('0x112')](_0x3254f5[_0x57ab10][_0x5859('0x62')])&&(_0x3254f5[_0x57ab10][_0x5859('0x62')]=_0x5452bf[_0x5859('0xb5')](_0x3254f5[_0x57ab10][_0x5859('0x62')]));}[_0x5859('0x23')](_0x2bc6b3){const _0x5a0eb4=new Set(_0x2bc6b3[_0x5859('0x3b')](_0x4a14f0=>_0x4a14f0['id']));for(let _0x207686=0x0;_0x207686<_0x2bc6b3[_0x5859('0xef')];_0x207686++)_0x5a0eb4['has'](_0x2bc6b3[_0x207686][_0x5859('0x62')])||0x0==_0x2bc6b3[_0x207686][_0x5859('0xf9')]||(_0x2bc6b3[_0x207686][_0x5859('0x41')]=!0x0);return _0x2bc6b3[_0x5859('0x10e')](_0x32987f=>!_0x32987f[_0x5859('0x41')]);}[_0x5859('0xdd')](_0x228916){const _0x24d72c=new Set();for(let _0x26526b=0x0;_0x26526b<_0x228916['length'];_0x26526b++){if(_0x24d72c[_0x5859('0x112')](_0x228916[_0x26526b]['id'])&&_0x228916[_0x26526b]['isRemoved']&&(_0x228916[_0x26526b][_0x5859('0x41')]=!0x0),_0x228916[_0x26526b][_0x5859('0x41')])continue;if(0x0==_0x228916[_0x26526b][_0x5859('0xf9')])continue;if(_0x5859('0x35')!=_0x228916[_0x26526b]['type'])continue;if(null==_0x228916[_0x26526b][_0x5859('0x62')])continue;let _0x48d1d1=_0x26526b+0x1,_0x1c4c30=0x0;for(;_0x228916[_0x48d1d1]['id']!=_0x228916[_0x26526b][_0x5859('0x62')];)'elementStart'==_0x228916[_0x48d1d1]['type']?_0x1c4c30++:'elementEnd'==_0x228916[_0x48d1d1][_0x5859('0x4a')]&&_0x1c4c30--,_0x48d1d1++;if(0x0!=_0x1c4c30){if(_0x228916[_0x26526b][_0x5859('0x3f')])_0x228916[_0x26526b][_0x5859('0x41')]=!0x0;else for(;_0x48d1d1!=_0x26526b;)_0x228916[_0x48d1d1][_0x5859('0x3f')]&&0x0!=_0x228916[_0x48d1d1][_0x5859('0xf9')]&&(_0x228916[_0x48d1d1][_0x5859('0x41')]=!0x0,_0x24d72c['add'](_0x228916[_0x48d1d1][_0x5859('0x62')])),_0x48d1d1--;}}return _0x228916['filter'](_0x25e104=>!_0x25e104[_0x5859('0x41')]);}[_0x5859('0xd6')](_0x453989){const _0x3d0f10=this[_0x5859('0xaa')][_0x5859('0x67')]['schema'];for(let _0x58c8de=0x0;_0x58c8de<_0x453989[_0x5859('0xef')];_0x58c8de++){if(!(_0x453989[_0x58c8de][_0x5859('0x14')]||_0x453989[_0x58c8de][_0x5859('0x5c')]||_0x453989[_0x58c8de][_0x5859('0x3f')]||_0x453989[_0x58c8de][_0x5859('0x59')]))continue;if(0x0==_0x453989[_0x58c8de][_0x5859('0xf9')])continue;const _0x500e98=_0x453989[_0x58c8de][_0x5859('0xfc')];_0x3d0f10[_0x5859('0xfb')](_0x500e98)||_0x3d0f10['isLimit'](_0x500e98)||(_0x453989[_0x58c8de][_0x5859('0x14')]&&delete _0x453989[_0x58c8de][_0x5859('0x14')],_0x453989[_0x58c8de][_0x5859('0x5c')]&&delete _0x453989[_0x58c8de][_0x5859('0x5c')],_0x453989[_0x58c8de][_0x5859('0x59')]&&delete _0x453989[_0x58c8de][_0x5859('0x59')],_0x453989[_0x58c8de]['isRemoved']&&(_0x453989[_0x58c8de][_0x5859('0x41')]=!0x0));}return _0x453989[_0x5859('0x10e')](_0x8aecbc=>!_0x8aecbc[_0x5859('0x41')]);}[_0x5859('0x54')](_0x5e77d1,_0x11746f,_0x578c24){const _0x2b7c75=new _0x5ae4b3(),_0x32ba53=[],_0x1c4313=new Map(),_0x385066=this['editor'][_0x5859('0x67')],_0x2bd1dc=_0x385066[_0x5859('0xff')],_0x4f2942=[_0x2b7c75],_0x348f62={},_0xc23985={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x290384=null;const _0x898c93=[0x0];for(let _0x2ff813=0x0;_0x2ff813<_0x5e77d1[_0x5859('0xef')];_0x2ff813++){let _0x52efe5,_0x1de1e1;if(_0x5859('0x35')===_0x5e77d1[_0x2ff813]['type']){_0x52efe5=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93);const _0x4ade35=new _0x1c5b79(_0x5e77d1[_0x2ff813]['item'][_0x5859('0x61')],_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xe0')]());_0x4f2942[0x0][_0x5859('0x10f')](_0x4ade35),_0x898c93[_0x5859('0xaf')](0x0),_0x4f2942[_0x5859('0xa7')](_0x4ade35),_0x1de1e1=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93),_0x290384=null;}else{if(_0x5859('0x21')===_0x5e77d1[_0x2ff813][_0x5859('0x4a')])_0x4f2942[_0x5859('0x5f')](),_0x52efe5=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93),_0x898c93[_0x5859('0x2e')](),_0x898c93[_0x898c93[_0x5859('0xef')]-0x1]++,_0x1de1e1=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93),_0x290384=null;else{if(_0x52efe5=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93),_0x290384&&_0x1f194e(_0x290384,_0x5e77d1[_0x2ff813][_0x5859('0xfc')]))_0x290384[_0x5859('0x80')]+=_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0x11c')];else{const _0x404f6f=new _0xd2c2f(_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0x11c')],_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xe0')]());_0x4f2942[0x0][_0x5859('0x10f')](_0x404f6f),_0x290384=_0x404f6f;}_0x898c93[_0x898c93['length']-0x1]+=_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xae')],_0x1de1e1=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93);}}for(const _0xb1834a of _0x5e77d1[_0x2ff813][_0x5859('0xb3')])_0x1c4313['set'](_0xb1834a,{'start':_0x52efe5,'end':null});_0x19d9af('isRemoveSuggestion',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isAddSuggestion',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isRemoved',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isAdded',_0x2ff813,_0x52efe5,_0x1de1e1);for(const _0x1b997c of _0x5e77d1[_0x2ff813][_0x5859('0xbe')]){_0x1c4313[_0x5859('0xb5')](_0x1b997c)[_0x5859('0xa9')]=_0x1de1e1;}}for(const [_0x3ea78c,_0x3a90d7]of _0x1c4313){const _0x46b3b0=this[_0x5859('0xaa')][_0x5859('0x67')]['createRange'](_0x3a90d7['start'],_0x3a90d7[_0x5859('0xa9')]);_0x2b7c75[_0x5859('0x30')][_0x5859('0xd7')](_0x3ea78c,_0x46b3b0);}return _0x32ba53[_0x5859('0x22')]((_0x105bba,_0x437fa1)=>{const _0x316c8a=_0x2b7c75[_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x105bba['id']),_0x83f199=_0x2b7c75[_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x437fa1['id']);return _0x316c8a[_0x5859('0x27')][_0x5859('0xe9')](_0x83f199[_0x5859('0x27')])?-0x1:_0x316c8a['start'][_0x5859('0xd3')](_0x83f199[_0x5859('0x27')])?0x1:_0x316c8a[_0x5859('0xa9')][_0x5859('0xe9')](_0x83f199[_0x5859('0xa9')])?-0x1:_0x316c8a['end'][_0x5859('0xd3')](_0x83f199[_0x5859('0xa9')])?0x1:'add'===_0x105bba[_0x5859('0x4a')]?-0x1:0x1;}),{'root':_0x2b7c75,'changes':_0x32ba53};function _0x19d9af(_0x2889af,_0x1fe24b,_0x2de5c4,_0x23b621){const _0x163dfb=!!_0x5e77d1[_0x1fe24b][_0x2889af],_0x2f0d8e=_0x163dfb?_0x5e77d1[_0x1fe24b][_0x2889af][_0x5859('0xc2')]:null,_0x4a892c=_0x1fe24b===_0x5e77d1[_0x5859('0xef')]-0x1,_0x30f8c5=_0xc23985[_0x2889af][0x0],_0x2a654d=_0x2bd1dc['isObject'](_0x5e77d1[_0x1fe24b][_0x5859('0xfc')]);!_0x348f62[_0x2889af]&&_0x163dfb?_0x348f62[_0x2889af]={'start':_0x2de5c4,'tapeItem':_0x5e77d1[_0x1fe24b],'userId':_0x2f0d8e,'type':_0x2889af}:_0x348f62[_0x2889af]&&!_0x163dfb?(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x2de5c4,_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]=null):_0x348f62[_0x2889af]&&_0x163dfb&&_0x348f62[_0x2889af][_0x5859('0xc2')]!==_0x2f0d8e&&(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x2de5c4,_0x30f8c5&&_0x30f8c5[_0x5859('0xc2')]===_0x348f62[_0x2889af]['userId']||_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]={'start':_0x2de5c4,'tapeItem':_0x5e77d1[_0x1fe24b],'userId':_0x2f0d8e,'type':_0x2889af}),_0x348f62[_0x2889af]&&_0x2a654d&&(_0x5859('0x35')!==_0x5e77d1[_0x1fe24b][_0x5859('0x4a')]||_0x30f8c5&&_0x30f8c5[_0x5859('0xc2')]===_0x2f0d8e||_0xc23985[_0x2889af][_0x5859('0xa7')]({'userId':_0x2f0d8e,'object':_0x5e77d1[_0x1fe24b]['item'],'change':_0x348f62[_0x2889af]}),_0x5859('0x21')===_0x5e77d1[_0x1fe24b]['type']&&_0x30f8c5&&_0x30f8c5[_0x5859('0xd2')]===_0x5e77d1[_0x1fe24b]['item']&&(_0xc23985[_0x2889af][_0x5859('0x5f')](),_0x348f62[_0x2889af]=_0x30f8c5[_0x5859('0x45')])),_0x348f62[_0x2889af]&&_0x4a892c&&(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x23b621,_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]=null);}function _0x514160({start:_0x56b34e,end:_0x46f7ef,tapeItem:_0x20c810,userId:_0x47587b,type:_0x315c07}){const _0x3b660b=_0x20c810[_0x5859('0xfc')],_0x14adb8=_0x385066[_0x5859('0xff')][_0x5859('0xfb')](_0x3b660b)&&!_0x385066[_0x5859('0xff')][_0x5859('0x24')](_0x3b660b),_0x318c13=_0x56b34e[_0x5859('0x38')]==_0x46f7ef[_0x5859('0xd4')]&&_0x46f7ef[_0x5859('0xd1')];if(_0x14adb8&&_0x318c13)return;const _0x42c6a7=_0x385066[_0x5859('0x10')](_0x56b34e,_0x46f7ef),_0x21f071=_0x11746f['get'](_0x47587b),_0x378120=new _0x31e9c7({'author':_0x21f071,'type':_0x5859('0x14')==_0x315c07||_0x5859('0x5c')==_0x315c07?_0x5859('0x28'):_0x5859('0xb6'),'data':{'isSuggestion':_0x5859('0x5c')==_0x315c07||_0x5859('0x59')==_0x315c07},'createdAt':new Date(),'rootName':_0x578c24});_0x32ba53[_0x5859('0xaf')](_0x378120),_0x2b7c75[_0x5859('0x30')]['set'](_0x5859('0x17')+_0x378120['id'],_0x42c6a7);}function _0x1f194e(_0x590d19,_0x5a1b0c){const _0x5282ef=_0x590d19[_0x5859('0xe0')](),_0x387cc1=_0x5a1b0c[_0x5859('0xe0')]();for(const _0x54b116 of _0x5282ef){if(_0x54b116[0x1]!==_0x5a1b0c[_0x5859('0x56')](_0x54b116[0x0]))return!0x1;_0x387cc1['next']();}return _0x387cc1[_0x5859('0x3d')]()['done'];}}[_0x5859('0xf7')](){this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('upcast')['dataToMarker']({'view':_0x5859('0x29')}),this[_0x5859('0xaa')][_0x5859('0xb0')]['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x27771e=>{const _0x3c2578=_0x27771e[_0x5859('0x7b')][_0x5859('0x116')](':')[0x1],_0x12f2f4=this[_0x5859('0x88')](_0x3c2578);if(!_0x12f2f4)return null;const _0x262ec1=_0x5859('0x28')==_0x12f2f4[_0x5859('0x4a')]?'insertion':'deletion',_0x17e37d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x262ec1];return _0x12f2f4[_0x5859('0x11c')][_0x5859('0x47')]&&_0x17e37d[_0x5859('0xaf')](_0x5859('0x9b')+_0x262ec1+_0x5859('0xcf')),this['activeChange']==_0x12f2f4&&_0x17e37d['push']('ck-suggestion-marker--active'),{'classes':_0x17e37d,'attributes':{'data-change-id':_0x3c2578}};}}),this['editor'][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))['add'](_0x464dbf=>{_0x464dbf['on'](_0x5859('0x7f'),(_0x4ce6bd,_0x47fa15,_0x7f0ac6)=>{const _0x2b8d92=_0x47fa15[_0x5859('0xc0')][_0x5859('0x1b')](0x0);if(!_0x2b8d92||!_0x2b8d92['is']('element','code'))return;if(!_0x7f0ac6[_0x5859('0xfe')][_0x5859('0x9f')](_0x2b8d92,{'attributes':[_0x5859('0xa6'),'vid_end']}))return;const _0x35c9c6=_0x47fa15[_0x5859('0x1e')][_0x5859('0x27')]['nodeAfter'];_0x7f0ac6[_0x5859('0x6e')][_0x5859('0x105')](_0x5859('0xa6'),_0x2b8d92['getAttribute'](_0x5859('0xa6')),_0x35c9c6),_0x7f0ac6[_0x5859('0x6e')][_0x5859('0x105')]('vid_end',_0x2b8d92[_0x5859('0x56')]('vid_end'),_0x35c9c6);},{'priority':'low'});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0x28')](_0x513502=>{_0x513502['on']('element',(_0x470223,_0x932a5a,_0xb701b7)=>{if(!_0xb701b7[_0x5859('0xfe')][_0x5859('0x9f')](_0x932a5a[_0x5859('0xc0')],{'attributes':['vid_start','vid_end']}))return;if(_0x932a5a[_0x5859('0x1e')]['isCollapsed'])return;const _0x44a9cf=_0x932a5a['modelRange'][_0x5859('0x27')][_0x5859('0x38')];_0x44a9cf[_0x5859('0xed')](_0x5859('0xa6'))||_0x44a9cf[_0x5859('0xed')](_0x5859('0x49'))||(_0xb701b7['writer'][_0x5859('0x105')](_0x5859('0xa6'),_0x932a5a[_0x5859('0xc0')]['getAttribute'](_0x5859('0xa6')),_0x44a9cf),_0xb701b7[_0x5859('0x6e')][_0x5859('0x105')](_0x5859('0x2c'),_0x932a5a[_0x5859('0xc0')][_0x5859('0x56')]('vid_end'),_0x44a9cf));},{'priority':_0x5859('0x18')});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0x95')]({'view':{'name':_0x5859('0x55'),'attributes':{'vid':!0x0}},'model':{'key':_0x5859('0x49'),'value':_0x12c004=>_0x12c004[_0x5859('0x56')](_0x5859('0x49'))}}),this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0xff')]['on'](_0x5859('0xca'),(_0x4ba9c7,[,_0x47cc15])=>{[_0x5859('0xa6'),'vid_end',_0x5859('0x49')][_0x5859('0xee')](_0x47cc15)&&(_0x4ba9c7['return']=!0x0,_0x4ba9c7[_0x5859('0x11f')]());},{'priority':_0x5859('0xf3')}),this['editor'][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x26'))[_0x5859('0x28')](_0x4d4601=>{_0x4d4601['on']('attribute:vid',(_0xaa1a21,_0x4a5d6d,_0x2a6cc8)=>{if('\x20'!=_0x4a5d6d['item'][_0x5859('0x11c')]||_0x4a5d6d[_0x5859('0xfc')][_0x5859('0xd4')][_0x5859('0x11a')]>0x1)return;if(!_0x2a6cc8[_0x5859('0xfe')][_0x5859('0x9f')](_0x4a5d6d['item'],_0xaa1a21[_0x5859('0x61')]))return;const _0x11601d=_0x2a6cc8['writer'],_0x1eccd4=_0x2a6cc8[_0x5859('0xc3')]['toViewRange'](_0x4a5d6d[_0x5859('0x2b')]);_0x11601d['wrap'](_0x1eccd4,_0x11601d['createAttributeElement'](_0x5859('0x55')));});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('dataDowncast')[_0x5859('0x97')]({'model':_0x5859('0x29')}),this[_0x5859('0xaa')]['editing']['downcastDispatcher']['on'](_0x5859('0x10a'),function(_0x27f9f4){const _0x2eeb0d=_0x27f9f4[_0x5859('0xa')][_0x5859('0xb5')](_0x5859('0xcd'));return(_0x4bd0d6,_0x4bcafb,_0x4d9b71)=>{const _0x1d0fee=_0x4bcafb[_0x5859('0x7b')][_0x5859('0x116')](':')[0x1],_0x2858ff=_0x2eeb0d['_getChangeFromId'](_0x1d0fee);if(!_0x2858ff)return null;const _0x42eaba=_0x5859('0x28')==_0x2858ff[_0x5859('0x4a')]?'split':_0x5859('0x10d');if(!_0x4d9b71[_0x5859('0xfe')][_0x5859('0x9e')](_0x4bcafb[_0x5859('0x8a')],_0x4bd0d6[_0x5859('0x61')]))return;const _0x2a4aa3=_0x4bcafb[_0x5859('0x8a')][_0x5859('0x3')](),_0x1660dc=_0x4bcafb[_0x5859('0x8a')][_0x5859('0x27')],_0x2da316=_0x27f9f4[_0x5859('0x67')]['schema'];let _0x112a64=null,_0x564fa6=null,_0x4b194f=!0x1,_0xfc4a7c=!0x1;for(const _0x46656e of _0x2a4aa3){const _0x55a5dc=_0x46656e[_0x5859('0xfc')];_0x4b194f=_0x4b194f||_0x2da316['isContent'](_0x55a5dc);const _0x1f0e4e=_0x4d9b71[_0x5859('0xc3')][_0x5859('0x6d')](_0x55a5dc);if(_0x1f0e4e&&_0x1f0e4e['getCustomProperty'](_0x5859('0xcb')))return;_0x5859('0x21')==_0x46656e[_0x5859('0x4a')]&&(_0x2da316[_0x5859('0xfb')](_0x55a5dc)&&!_0x2da316[_0x5859('0x24')](_0x55a5dc)&&(_0x55a5dc[_0x5859('0x89')]||_0x1660dc['isAtEnd']?_0x112a64&&_0x112a64['parent']==_0x55a5dc||(_0x112a64=_0x55a5dc,_0x39b4cb(_0x46656e[_0x5859('0x6')]),_0xfc4a7c=!0x0):_0x564fa6=_0x564fa6||_0x46656e[_0x5859('0x6')]));}function _0x39b4cb(_0x123814){const _0x5bda41=_0x4d9b71[_0x5859('0x6e')][_0x5859('0xa1')]('span',{'class':'ck-suggestion-marker-'+_0x42eaba}),_0x365653=_0x4d9b71[_0x5859('0xc3')][_0x5859('0xc5')](_0x123814);_0x2858ff[_0x5859('0x11c')]['isSuggestion']&&_0x4d9b71[_0x5859('0x6e')][_0x5859('0x120')](_0x5859('0x9b')+_0x42eaba+_0x5859('0xcf'),_0x5bda41),_0x2eeb0d['activeChange']==_0x2858ff&&_0x4d9b71[_0x5859('0x6e')]['addClass'](_0x5859('0x13'),_0x5bda41),_0x4d9b71[_0x5859('0x6e')]['insert'](_0x365653,_0x5bda41),_0x4d9b71['mapper'][_0x5859('0xe4')](_0x5bda41,_0x4bcafb[_0x5859('0x7b')]);}_0x4b194f||_0xfc4a7c||!_0x564fa6||_0x39b4cb(_0x564fa6);};}(this[_0x5859('0xaa')]),{'priority':'high'}),this[_0x5859('0xaa')]['editing']['downcastDispatcher']['on'](_0x5859('0xa5'),(_0x2a8053,_0x6ff939,_0x59dd00)=>{const _0x1d6305=_0x59dd00['mapper'][_0x5859('0x6b')](_0x6ff939['markerName']);if(_0x1d6305)for(const _0x2d368b of _0x1d6305)(_0x2d368b[_0x5859('0x37')](_0x5859('0xea'))||_0x2d368b[_0x5859('0x37')](_0x5859('0x121')))&&(_0x59dd00[_0x5859('0xc3')][_0x5859('0xa8')](_0x2d368b,_0x6ff939[_0x5859('0x7b')]),_0x59dd00[_0x5859('0x6e')][_0x5859('0xb6')](_0x2d368b));},{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on'](_0x5859('0x10a'),(_0x5af706,_0x174d53,_0x487493)=>{const _0x2a027d=_0x174d53['markerName'][_0x5859('0x116')](':')[0x1],_0x2a4aba=this[_0x5859('0x88')](_0x2a027d);if(!_0x2a4aba)return null;const _0x3b0769=_0x5859('0x28')==_0x2a4aba[_0x5859('0x4a')]?_0x5859('0x116'):_0x5859('0x10d');if(_0x487493[_0x5859('0xfe')]['test'](_0x174d53[_0x5859('0x8a')],_0x5af706[_0x5859('0x61')]))for(const _0x446c47 of _0x174d53['markerRange'][_0x5859('0x117')]()){if(!_0x446c47['is'](_0x5859('0xe1'),_0x5859('0x107')))continue;const _0x1171da=_0x487493[_0x5859('0x6e')]['createUIElement'](_0x5859('0x55'),{'class':_0x5859('0x9b')+_0x3b0769}),_0x59c87d=_0x487493['mapper'][_0x5859('0xc5')](this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x2d')](_0x446c47));_0x2a4aba['data'][_0x5859('0x47')]&&_0x487493[_0x5859('0x6e')][_0x5859('0x120')](_0x5859('0x9b')+_0x3b0769+_0x5859('0xcf'),_0x1171da),this[_0x5859('0x10c')]==_0x2a4aba&&_0x487493['writer']['addClass'](_0x5859('0x13'),_0x1171da),_0x487493[_0x5859('0x6e')][_0x5859('0x8')](_0x59c87d,_0x1171da),_0x487493[_0x5859('0xc3')]['bindElementToMarker'](_0x1171da,_0x174d53['markerName']);}},{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')]['on']('change',()=>{this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')]['change'](_0x34f572=>{for(const _0x246558 of this[_0x5859('0xaa')]['model'][_0x5859('0x5b')][_0x5859('0xd9')]()){const _0x35c19a=this[_0x5859('0xaa')][_0x5859('0x67')]['document'][_0x5859('0x8c')](_0x246558),_0x3900e4=this[_0x5859('0xaa')][_0x5859('0x76')]['view']['document']['getRoot'](_0x246558);if(_0x3900e4){const _0x51a0d5=_0x35c19a[_0x5859('0x56')](_0x5859('0x108'));if(_0x34f572['removeAttribute'](_0x5859('0x111'),_0x3900e4),_0x34f572['removeClass'](_0x5859('0xbb'),_0x3900e4),_0x34f572['removeClass']('ck-revision-history-root-remove',_0x3900e4),_0x34f572[_0x5859('0xab')]('ck-revision-history-root--active',_0x3900e4),_0x51a0d5){const _0x30f4fb=this[_0x5859('0x88')](_0x51a0d5);if(!_0x30f4fb)return null;_0x34f572[_0x5859('0x105')](_0x5859('0x111'),_0x51a0d5,_0x3900e4),_0x34f572[_0x5859('0x120')](_0x5859('0x85')+_0x30f4fb[_0x5859('0x4a')],_0x3900e4),this['activeChange']==_0x30f4fb&&_0x34f572['addClass'](_0x5859('0xe8'),_0x3900e4);}}}});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('upcast')[_0x5859('0xde')]({'view':_0x5859('0x7a'),'model':_0x1b5d52=>_0x5859('0xbc')+_0x1b5d52,'converterPriority':_0x5859('0xf3')}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0xde')]({'view':_0x5859('0x8f'),'model':_0xcbff38=>'revision-suggestion:'+_0xcbff38,'converterPriority':'highest'}),this[_0x5859('0xaa')]['conversion']['for'](_0x5859('0x26'))[_0x5859('0x97')]({'model':_0x5859('0xd5'),'view':_0x3f457c=>({'name':_0x5859('0x81')+_0x3f457c,'group':'revision-suggestion'}),'converterPriority':_0x5859('0xf3')}),this['editor'][_0x5859('0xb0')]['for'](_0x5859('0x4'))['markerToHighlight']({'model':_0x5859('0xd5'),'view':_0x2129ad=>{const _0x577f2b=_0x2129ad['markerName'][_0x5859('0x116')](':')[0x1];return _0x5859('0x113')!=_0x577f2b&&'deletion'!=_0x577f2b?null:{'classes':[_0x5859('0xb'),_0x5859('0x9')+_0x577f2b]};}}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x5859('0xaa')],_0x5859('0x10d')),{'priority':'high'}),this['editor'][_0x5859('0x76')][_0x5859('0x73')]['on'](_0x5859('0xf1'),et(this[_0x5859('0xaa')],'split'),{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on']('removeMarker:revision-suggestion',(_0x4cd766,_0x260247,_0x31a468)=>{const _0x20cb3d=_0x31a468[_0x5859('0xc3')][_0x5859('0x6b')](_0x260247[_0x5859('0x7b')]);if(_0x20cb3d)for(const _0x1fd772 of _0x20cb3d)_0x1fd772['is'](_0x5859('0xc4'))&&(_0x31a468['mapper'][_0x5859('0xa8')](_0x1fd772,_0x260247[_0x5859('0x7b')]),_0x31a468[_0x5859('0x6e')]['remove'](_0x1fd772));},{'priority':'high'});}[_0x5859('0x88')](_0x587c48){return this[_0x5859('0x60')]['get'](_0x587c48);}[_0x5859('0xe5')](_0x30b3c8){return this['_changeView']&&this[_0x5859('0x4d')]['destroy'](),this[_0x5859('0x4d')]=new _0xbeef29(this['editor'][_0x5859('0xe7')],_0x30b3c8),this[_0x5859('0x4d')];}[_0x5859('0x65')](){this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0x7')]['observeMarkers'](_0x5859('0x29')),this['on'](_0x5859('0xb2'),(_0x187616,_0x3335f3,_0x3eb193,_0x1ce59e)=>{_0x1ce59e&&this[_0x5859('0xce')][_0x5859('0xb6')](_0x1ce59e),_0x3eb193&&(this[_0x5859('0xce')]['add']({'view':_0x3eb193,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3368a4=this[_0x5859('0xaa')][_0x5859('0x76')],_0x1d9833=this['_getChangeFromId'](_0x3eb193[_0x5859('0x48')]);let _0x39b50c;if(_0x1d9833[_0x5859('0x11c')][_0x5859('0x57')]){const _0x3c8d1d=_0x3368a4[_0x5859('0xcc')]['getDomRoot'](_0x1d9833[_0x5859('0x6c')]);_0x39b50c=Array[_0x5859('0x8d')](_0x3c8d1d['getClientRects']());}else{const _0x34d8c4=this['editor']['model'][_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x3eb193['changeId']);_0x39b50c=Array[_0x5859('0x8d')](_0x3368a4['mapper'][_0x5859('0x6b')](_0x34d8c4['name']))[_0x5859('0x3b')](_0x40a9c1=>_0x3368a4[_0x5859('0xcc')]['domConverter'][_0x5859('0x34')](_0x40a9c1))[_0x5859('0x3b')](_0x5019b3=>Array[_0x5859('0x8d')](_0x5019b3[_0x5859('0x104')]()))['flat']();}if(!this[_0x5859('0xa4')])return _0x39b50c[0x0];return _0x39b50c[_0x5859('0x1f')](_0x32e2d8=>_0x32e2d8[_0x5859('0x1d')]-0x3<=this['_activeViewTarget']['y']&&_0x32e2d8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x32e2d8[_0x5859('0xad')]-0x3<=this[_0x5859('0xa4')]['x']&&_0x32e2d8[_0x5859('0x66')]+0x3>=this['_activeViewTarget']['x'])||_0x39b50c[0x0];}}}),this[_0x5859('0xce')][_0x5859('0x87')](_0x5859('0x68')));}),this['on'](_0x5859('0x58'),(_0x1d1e8a,_0x3d0037,_0x7e47f2,_0x27178e)=>{this[_0x5859('0xc7')]=_0x7e47f2?this[_0x5859('0xe5')](_0x7e47f2):null,this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x45')](()=>{const _0x20b26f=this[_0x5859('0xaa')]['editing'];_0x27178e&&(_0x27178e[_0x5859('0x11c')]['isOnRoot']?_0x20b26f['view'][_0x5859('0x45')](_0x2c1d25=>{_0x2c1d25['removeClass'](_0x5859('0xe8'),_0x20b26f[_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x8c')](_0x27178e[_0x5859('0x6c')]));}):_0x20b26f[_0x5859('0x3a')](_0x5859('0x17')+_0x27178e['id'])),_0x7e47f2&&(_0x7e47f2['data']['isOnRoot']?_0x20b26f[_0x5859('0xcc')][_0x5859('0x45')](_0x22bcf2=>{_0x22bcf2[_0x5859('0x120')](_0x5859('0xe8'),_0x20b26f[_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x8c')](_0x7e47f2[_0x5859('0x6c')]));}):_0x20b26f[_0x5859('0x3a')](_0x5859('0x17')+_0x7e47f2['id']));});}),this[_0x5859('0x0')](this['editor']['editing'][_0x5859('0xcc')]['document'],_0x5859('0xeb'),(_0xecbf1f,_0x12214d)=>{if(this[_0x5859('0x10c')])return;const _0x4abda7=this['_findChangeIdFromDomTarget'](_0x12214d[_0x5859('0x7c')]),_0x5e3184=this[_0x5859('0x60')][_0x5859('0xb5')](_0x4abda7);_0x5e3184?(this[_0x5859('0xa4')]={'x':_0x12214d['domEvent']['x'],'y':_0x12214d[_0x5859('0x11e')]['y']},this[_0x5859('0xc7')]=this[_0x5859('0xe5')](_0x5e3184)):(this[_0x5859('0xa4')]=null,this[_0x5859('0xc7')]=null);}),this[_0x5859('0x0')](this[_0x5859('0xaa')][_0x5859('0x76')]['view']['document'],_0x5859('0x4e'),(_0x588d72,_0x45f105)=>{const _0x5bc9cb=this[_0x5859('0x9c')](_0x45f105[_0x5859('0x7c')]),_0x103bde=this['_changeIdToChange']['get'](_0x5bc9cb);_0x103bde?(this[_0x5859('0xa4')]={'x':_0x45f105['domEvent']['x'],'y':_0x45f105[_0x5859('0x11e')]['y']},_0x103bde===this[_0x5859('0x10c')]?this[_0x5859('0xce')][_0x5859('0x90')]():this[_0x5859('0x10c')]=_0x103bde):(this['_activeViewTarget']=null,this[_0x5859('0x10c')]=null);});}['_findChangeIdFromDomTarget'](_0x3e261f){do{const _0x46d276=_0x3e261f[_0x5859('0x56')]('data-change-id');if(_0x46d276)return _0x46d276;_0x3e261f=_0x3e261f[_0x5859('0xd4')];}while(_0x3e261f);return null;}['_cleanMarkers'](){this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x45')](_0x2c1611=>{for(const _0x2adb8b of this['editor'][_0x5859('0x67')]['markers'])_0x2c1611[_0x5859('0x11b')](_0x2adb8b);});}}function et(_0x23ef96,_0x23f7a8){return(_0x2cf7f1,_0x10f71c,_0x15ad98)=>{if(!_0x15ad98[_0x5859('0xfe')][_0x5859('0x9e')](_0x10f71c[_0x5859('0x8a')],_0x2cf7f1[_0x5859('0x61')]))return;const _0x1b922c=_0x10f71c['markerRange'][_0x5859('0x3')](),_0x4fc342=_0x10f71c['markerRange'][_0x5859('0x27')],_0x20261d=_0x23ef96[_0x5859('0x67')][_0x5859('0xff')];let _0x2e453a=null,_0x5f538a=null,_0x558b0c=!0x1,_0x2068fe=!0x1;for(const _0x283652 of _0x1b922c){const _0x381d9a=_0x283652[_0x5859('0xfc')];_0x558b0c=_0x558b0c||_0x20261d[_0x5859('0x50')](_0x381d9a);const _0x484e1e=_0x15ad98['mapper'][_0x5859('0x6d')](_0x381d9a);if(_0x484e1e&&_0x484e1e[_0x5859('0x44')]('addHighlight'))return;_0x5859('0x21')==_0x283652[_0x5859('0x4a')]&&(_0x20261d[_0x5859('0xfb')](_0x381d9a)&&!_0x20261d[_0x5859('0x24')](_0x381d9a)&&(_0x381d9a[_0x5859('0x89')]||_0x4fc342[_0x5859('0x119')]?_0x2e453a&&_0x2e453a[_0x5859('0xd4')]==_0x381d9a||(_0x2e453a=_0x381d9a,_0x41c99d(_0x283652[_0x5859('0x6')]),_0x2068fe=!0x0):_0x5f538a=_0x5f538a||_0x283652[_0x5859('0x6')]));}function _0x41c99d(_0x1f890d){const _0x7dfe5f=_0x15ad98[_0x5859('0xc3')][_0x5859('0xc5')](_0x1f890d),_0x3c9f3e=_0x15ad98[_0x5859('0x6e')][_0x5859('0xa1')]('span',{'class':_0x5859('0x9')+_0x23f7a8});_0x15ad98[_0x5859('0x6e')]['insert'](_0x7dfe5f,_0x3c9f3e),_0x15ad98[_0x5859('0xc3')][_0x5859('0xe4')](_0x3c9f3e,_0x10f71c[_0x5859('0x7b')]);}_0x558b0c||_0x2068fe||!_0x5f538a||_0x41c99d(_0x5f538a);};}export class RestoreRevisionCommand extends _0x4034ce{constructor(_0x379ed3){super(_0x379ed3);const _0xb1b445=_0x379ed3[_0x5859('0xa')][_0x5859('0xb5')](d);this[_0x5859('0x83')]=!0x1,this[_0x5859('0x0')](_0xb1b445,_0x5859('0xd0'),()=>this['refresh']()),this['listenTo'](_0xb1b445,'change:isEnabled',()=>this[_0x5859('0x1a')]());}[_0x5859('0x4f')](){const _0x13cb84=this[_0x5859('0xaa')],_0x938076=_0x13cb84[_0x5859('0xa')][_0x5859('0xb5')](d),_0x370422=_0x938076[_0x5859('0x12')]?_0x938076[_0x5859('0x94')][_0x5859('0x40')]:null;_0x13cb84['config'][_0x5859('0xb5')](_0x5859('0xb1'))[_0x5859('0x11')](_0x370422);}[_0x5859('0x1a')](){const {isReady:_0x43ba79,isEnabled:_0x4b002c}=this[_0x5859('0xaa')]['plugins'][_0x5859('0xb5')](d);this[_0x5859('0xfd')]=_0x43ba79&&_0x4b002c;}}export class ShowChangeCommand extends _0x4034ce{constructor(_0xb9a75c,{direction:_0x9e70e2}){super(_0xb9a75c);const _0x3c9a8d=_0xb9a75c[_0x5859('0xa')][_0x5859('0xb5')](d);this[_0x5859('0x83')]=!0x1,this[_0x5859('0x91')]=_0x5859('0x15')===_0x9e70e2?0x1:-0x1,this[_0x5859('0x0')](_0x3c9a8d,_0x5859('0xd0'),()=>this[_0x5859('0x1a')]()),this[_0x5859('0x0')](_0x3c9a8d,_0x5859('0x4b'),()=>this[_0x5859('0x1a')]()),this[_0x5859('0x0')](_0x3c9a8d,'change:activeChange',()=>this[_0x5859('0x1a')]());}['execute'](){const _0xc3523c=this[_0x5859('0xaa')],_0x270ebf=_0xc3523c[_0x5859('0xa')][_0x5859('0xb5')](d),{isNavigationMode:_0xee6536,currentChangeNumber:_0x2f3abb}=_0x270ebf;let _0x2cdf0a;if(_0x270ebf[_0x5859('0x10c')]=_0xee6536?_0x270ebf[_0x5859('0x94')]['changes'][_0x5859('0xb5')](_0x2f3abb+this['_step']):_0x270ebf[_0x5859('0x94')][_0x5859('0x7e')]['first'],_0x270ebf[_0x5859('0x10c')][_0x5859('0x11c')]['isOnRoot'])_0x2cdf0a=_0xc3523c[_0x5859('0x76')][_0x5859('0xcc')]['getDomRoot'](_0x270ebf[_0x5859('0x10c')][_0x5859('0x6c')]);else{const _0x232d3e=_0xc3523c[_0x5859('0x67')]['markers'][_0x5859('0xb5')](_0x5859('0x17')+_0x270ebf[_0x5859('0x10c')]['id']);_0x2cdf0a=_0x5a0b75(_0xc3523c['editing'],_0x232d3e);}_0x5cbda3({'target':_0x2cdf0a,'viewportOffset':0x28});}[_0x5859('0x1a')](){const {isNavigationMode:_0x568de6,currentChangeNumber:_0x7740f8,numberOfChanges:_0x422a78,isReady:_0x11eb63,isEnabled:_0x4c6730}=this['editor'][_0x5859('0xa')][_0x5859('0xb5')](d);this['isEnabled']=!!(_0x4c6730&&_0x11eb63&&_0x422a78)&&(!_0x568de6||(0x1===this[_0x5859('0x91')]?_0x7740f8<_0x422a78-0x1:_0x7740f8>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc530=['children','bind','change:isActionsDropdownOpen','extendTemplate','find','ck-revision-history-sidebar__revision__actions','function','Name\x20this\x20revision','isEnabled','map','Restore\x20this\x20revision','add','_action','source','buttonView','name','isActionsDropdownOpen','panelPosition','Compare\x20against\x20selected','ck-on','isReady','action','set','execute','model','threeVerticalDots','listView','button','isVisible'];(function(_0x2b15fc,_0xc5307f){const _0x112f62=function(_0x3eb474){while(--_0x3eb474){_0x2b15fc['push'](_0x2b15fc['shift']());}};_0x112f62(++_0xc5307f);}(_0xc530,0x119));const _0x112f=function(_0x2b15fc,_0xc5307f){_0x2b15fc=_0x2b15fc-0x0;let _0x112f62=_0xc530[_0x2b15fc];return _0x112f62;};import{Collection as _0x216c2c}from'ckeditor5/src/utils';import{icons as _0x417057}from'ckeditor5/src/core';import{Model as _0x5dfe4c,addListToDropdown as _0x36856d,createDropdown as _0x277f67}from'ckeditor5/src/ui';import{getTranslation as _0x2ec075}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x43a6d5,_0x49f54e){const _0x114618=_0x43a6d5['bindTemplate'],_0x4a7036=_0x43a6d5['locale'],_0x1f5868=_0x277f67(_0x4a7036);_0x1f5868[_0x112f('0x1a')]='sw';const _0x15b94c=function(_0x38a13a,_0x3f7e79){const _0x4e9157=function(_0x31f424,_0x1d3014){const _0x2aaf7b=_0x31f424['locale'],_0x26f5ff={'Compare\x20against\x20selected':_0x2ec075(_0x2aaf7b,_0x112f('0x1b')),'Name\x20this\x20revision':_0x2ec075(_0x2aaf7b,_0x112f('0x10')),'Restore\x20this\x20revision':_0x2ec075(_0x2aaf7b,_0x112f('0x13'))};return _0x1d3014[_0x112f('0x12')](_0x25271c=>{const _0x89b631=_0x26f5ff[_0x25271c['name']];return _0x89b631&&_0x89b631!==_0x25271c[_0x112f('0x18')]&&(_0x25271c[_0x112f('0x18')]=_0x89b631),_0x25271c;});}(_0x38a13a,_0x3f7e79),_0x7da905=new _0x216c2c();for(const _0xe2dd24 of _0x4e9157){const _0x270d2b={'type':_0x112f('0x7'),'model':new _0x5dfe4c({'label':_0xe2dd24[_0x112f('0x18')],'class':_0xe2dd24['class'],'withText':!0x0,'_action':_0xe2dd24[_0x112f('0x1')]})};_0x270d2b[_0x112f('0x4')]['bind'](_0x112f('0x11'))['to'](_0x38a13a,_0x112f('0x19'),_0x2327d9=>_0x112f('0xf')!=typeof _0xe2dd24[_0x112f('0x11')]||(!_0x2327d9||_0xe2dd24[_0x112f('0x11')](_0x38a13a))),_0x7da905[_0x112f('0x14')](_0x270d2b);}return _0x7da905;}(_0x43a6d5,_0x49f54e);return _0x43a6d5[_0x112f('0xa')](_0x112f('0x19'))['to'](_0x1f5868,'isOpen'),_0x1f5868[_0x112f('0x17')][_0x112f('0x2')]({'label':_0x2ec075(_0x4a7036,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x417057[_0x112f('0x5')]}),_0x1f5868[_0x112f('0xc')]({'attributes':{'class':[_0x112f('0xe'),_0x114618['if'](_0x112f('0x19'),_0x112f('0x1c'))]},'on':{'click':_0x114618['to'](_0x3bfdd7=>_0x3bfdd7['stopPropagation']())}}),_0x1f5868['on'](_0x112f('0x3'),_0x2c0cc6=>{_0x43a6d5[_0x112f('0x0')]&&_0x112f('0xf')==typeof _0x2c0cc6['source'][_0x112f('0x15')]&&_0x2c0cc6[_0x112f('0x16')][_0x112f('0x15')](_0x43a6d5);}),_0x36856d(_0x1f5868,_0x15b94c),_0x1f5868['listenTo'](_0x43a6d5,_0x112f('0xb'),(_0x3fd457,_0xe7498e,_0x35b8d2)=>{if(_0x35b8d2)for(const _0x52404c of _0x1f5868[_0x112f('0x6')]['items']){const _0x108233=_0x52404c[_0x112f('0x9')]['first'],_0x16501e=_0x49f54e[_0x112f('0xd')](_0x1081a8=>_0x1081a8[_0x112f('0x1')]===_0x108233[_0x112f('0x15')])[_0x112f('0x8')];_0x52404c[_0x112f('0x8')]=void 0x0===_0x16501e||_0x16501e(_0x43a6d5);}}),_0x1f5868;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x61fa=['Revision\x20creator','setTemplate','push','span','Revision\x20author','0\x200\x2011\x2010','set','ck-revision-history-sidebar__revision-author__name','name','ck-revision-history-sidebar__revision-author_creator'];(function(_0x24a900,_0x61fa44){const _0x22988a=function(_0x3361ea){while(--_0x3361ea){_0x24a900['push'](_0x24a900['shift']());}};_0x22988a(++_0x61fa44);}(_0x61fa,0x6d));const _0x2298=function(_0x24a900,_0x61fa44){_0x24a900=_0x24a900-0x0;let _0x22988a=_0x61fa[_0x24a900];return _0x22988a;};import{View as _0x158df7,IconView as _0x4e5629}from'ckeditor5/src/ui';import{getTranslation as _0x205f2f}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x4b3adc from'../../../theme/icons/user.svg';export default class ti extends _0x158df7{constructor(_0x12919b,_0x1eff3b,_0x3b8e41){super(_0x12919b);const _0x559480=new _0x4e5629();_0x559480[_0x2298('0x7')]({'content':_0x4b3adc,'viewBox':_0x2298('0x6')});const _0x18bca4=['ck','ck-revision-history-sidebar__revision-author'];_0x3b8e41&&_0x18bca4[_0x2298('0x3')](_0x2298('0x0'));const _0x5e1615=[{'tag':_0x2298('0x4'),'attributes':{'class':['ck',_0x2298('0x8')],'title':_0x205f2f(_0x12919b,_0x3b8e41?_0x2298('0x1'):_0x2298('0x5'))},'children':[_0x559480,_0x1eff3b[_0x2298('0x9')]]}];this[_0x2298('0x2')]({'tag':'li','attributes':{'class':_0x18bca4},'children':_0x5e1615});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x53f8=['ck-revision-history-sidebar__revision-name','extendTemplate','set','Revision\x20name'];(function(_0x46d110,_0x53f810){var _0x18a9e6=function(_0x36cb30){while(--_0x36cb30){_0x46d110['push'](_0x46d110['shift']());}};_0x18a9e6(++_0x53f810);}(_0x53f8,0x18d));var _0x18a9=function(_0x46d110,_0x53f810){_0x46d110=_0x46d110-0x0;var _0x18a9e6=_0x53f8[_0x46d110];return _0x18a9e6;};import{LabeledFieldView as _0x21fd53}from'ckeditor5/src/ui';import{getTranslation as _0x4a956c}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x21fd53{constructor(_0x309a87,_0x4375ae){super(_0x309a87,_0x4375ae),this[_0x18a9('0x1')]({'label':_0x4a956c(_0x309a87,_0x18a9('0x2'))}),this[_0x18a9('0x0')]({'tag':'span','attributes':{'class':[_0x18a9('0x3')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xef72=['render','uiLanguage','_createdAtFormatted','220','placeholder','name','filter','isActionsDropdownOpen','div','createdAt','ck-revision-history-sidebar__revision-authors','ck-reset','unhighlight','listenTo','length','ck-revision-history-sidebar__revision','fieldView','_revision','highlight','ck-revision-history-sidebar__revision__date','isHighlighted','unshift','ck-revision-history-sidebar__actions_dropdown_open','isConfirm','select','isSelected','revisionActionsView','set','ck-revision-history-sidebar__revision_selected','isEnabled','span','srcElement','value','closest','.ck-thread__remove-confirm','bind','extendTemplate','revisionNameView','creator','setName','setTemplate','map','fire','bindTemplate','from','element','ck-revision-history-sidebar__revision__controls-wrapper','change','ck-revision-history-sidebar__revision_highlighted'];(function(_0x1b066e,_0xef72ca){const _0x346e56=function(_0x34c5ef){while(--_0x34c5ef){_0x1b066e['push'](_0x1b066e['shift']());}};_0x346e56(++_0xef72ca);}(_0xef72,0xd5));const _0x346e=function(_0x1b066e,_0xef72ca){_0x1b066e=_0x1b066e-0x0;let _0x346e56=_0xef72[_0x1b066e];return _0x346e56;};import{View as _0x473d69,createLabeledInputText as _0x434c2b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x52bcdf}from'ckeditor5-collaboration/src/collaboration-core';import _0x4c6ac9 from'./revisionnameview';import _0x5a3331 from'./revisionauthorview';import{dateToPrettyFormat as _0x5efb26}from'./utils';import{createActionsDropdownView as _0x3c7dde}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x52bcdf(_0x473d69){constructor(_0x1805aa,_0x3ad4d7,_0x1132d0){super(_0x1805aa);const _0x56bffc=this[_0x346e('0x1a')],_0x4396b5=function(_0x66a1fa,_0x2b7201){const _0x280bff=Array[_0x346e('0x1b')](_0x2b7201['authors'])[_0x346e('0x26')](_0x56ab21=>_0x56ab21!=_0x2b7201[_0x346e('0x15')]);return _0x2b7201[_0x346e('0x15')]&&_0x280bff[_0x346e('0x4')](_0x2b7201[_0x346e('0x15')]),_0x280bff[_0x346e('0x18')](_0x526e06=>new _0x5a3331(_0x66a1fa,_0x526e06,_0x526e06==_0x2b7201['creator']));}(_0x1805aa,_0x3ad4d7);this['id']=_0x3ad4d7['id'],this[_0x346e('0x0')]=_0x3ad4d7,this[_0x346e('0x12')](_0x346e('0x25'),_0x346e('0x29'))['to'](_0x3ad4d7),this[_0x346e('0x12')]('_createdAtFormatted')['to'](this,_0x346e('0x29'),_0x2d2c24=>_0x2d2c24?_0x5efb26(_0x1805aa[_0x346e('0x21')],_0x2d2c24):void 0x0),this[_0x346e('0xa')](_0x346e('0x8'),!0x1),this[_0x346e('0xa')](_0x346e('0x3'),!0x1),this['set']('isActionsDropdownOpen',!0x1),this[_0x346e('0xa')]('isReady',!0x1),this[_0x346e('0xa')]('isEnabled',!0x1),this[_0x346e('0x14')]=new _0x4c6ac9(_0x1805aa,_0x434c2b),this[_0x346e('0x14')][_0x346e('0x30')][_0x346e('0x13')]({'attributes':{'maxlength':_0x346e('0x23')}}),this[_0x346e('0x14')]['fieldView'][_0x346e('0x12')]('value',_0x346e('0x24'))['to'](this,'name',_0x346e('0x22')),this[_0x346e('0x14')][_0x346e('0x12')](_0x346e('0xc'))['to'](this,_0x346e('0x8'),this,'isEnabled',(_0x4d20e5,_0x948627)=>_0x4d20e5&&_0x948627),this[_0x346e('0x9')]=_0x1132d0&&_0x1132d0[_0x346e('0x2e')]?_0x3c7dde(this,_0x1132d0):'',this[_0x346e('0x9')]&&this[_0x346e('0x9')][_0x346e('0x12')](_0x346e('0xc'))['to'](this),this[_0x346e('0x17')]({'tag':'div','attributes':{'class':['ck',_0x346e('0x2b'),'ck-revision-history-sidebar__revision-wrapper',_0x56bffc['if'](_0x346e('0x6'),'ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':_0x346e('0x28'),'attributes':{'class':['ck',_0x346e('0x2b'),_0x346e('0x2f'),_0x56bffc['if'](_0x346e('0xc'),'ck-disabled',_0x5af1f1=>!_0x5af1f1),_0x56bffc['if'](_0x346e('0x8'),_0x346e('0xb')),_0x56bffc['if'](_0x346e('0x3'),_0x346e('0x1f')),_0x56bffc['if'](_0x346e('0x27'),_0x346e('0x5'))]},'children':[this[_0x346e('0x14')],{'tag':_0x346e('0xd'),'attributes':{'class':['ck',_0x346e('0x2')]},'children':[{'text':_0x56bffc['to'](_0x346e('0x22'))}]},{'tag':_0x346e('0x28'),'attributes':{'class':['ck',_0x346e('0x1d')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x346e('0x2a')]},'children':_0x4396b5}]},this[_0x346e('0x9')]],'on':{'click':_0x56bffc['to'](_0x54198d=>{_0x54198d[_0x346e('0xe')][_0x346e('0x10')](_0x346e('0x11'))||this['isReady']&&this[_0x346e('0xc')]&&this[_0x346e('0x19')]('select',{'id':this['id']});})}}]});}[_0x346e('0x20')](){super['render']();const _0x1739b0=this[_0x346e('0x14')][_0x346e('0x30')][_0x346e('0x1c')];this[_0x346e('0x2d')](_0x1739b0,_0x346e('0x1e'),()=>{this[_0x346e('0x19')](_0x346e('0x16'),{'id':this['id'],'name':_0x1739b0[_0x346e('0xf')]});});}[_0x346e('0x7')](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x346e('0x1')](){this[_0x346e('0x3')]=!0x0;}[_0x346e('0x2c')](){this[_0x346e('0x3')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a7a=['ck-revision-history-sidebar__subrevision-collapser','span','_isCollapsed','true','ck-hidden','toggle','false','set','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','setTemplate','bindTemplate','click'];(function(_0x2507a3,_0x1a7aec){const _0x76dd96=function(_0x98901e){while(--_0x98901e){_0x2507a3['push'](_0x2507a3['shift']());}};_0x76dd96(++_0x1a7aec);}(_0x1a7a,0xff));const _0x76dd=function(_0x2507a3,_0x1a7aec){_0x2507a3=_0x2507a3-0x0;let _0x76dd96=_0x1a7a[_0x2507a3];return _0x76dd96;};import{View as _0x2bc59d}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2bc59d{constructor(_0x2924a7){super(_0x2924a7);const _0x20ebb5=this[_0x76dd('0x3')];this[_0x76dd('0xc')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x76dd('0x2')]({'tag':_0x76dd('0x6'),'attributes':{'class':['ck',_0x76dd('0x5'),_0x20ebb5['if']('isVisible',_0x76dd('0x9'),_0x34370d=>!_0x34370d),_0x20ebb5['if'](_0x76dd('0x7'),_0x76dd('0x1'))],'role':'button','aria-pressed':_0x20ebb5['to'](_0x76dd('0x7'),_0x498848=>_0x498848?_0x76dd('0xb'):_0x76dd('0x8'))},'children':[{'tag':_0x76dd('0x6'),'attributes':{'class':['ck',_0x76dd('0x0')]}}],'on':{'click':_0x20ebb5['to'](_0x76dd('0x4'))}});}[_0x76dd('0xa')](){this[_0x76dd('0x7')]=!this[_0x76dd('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4f70=['deselect','ck-revision-history-sidebar__subrevision','isSelected','bind','fire','select','set','creator','setTemplate','ck-revision-history-sidebar__revision','createdAt','bindTemplate','ck-reset','uiLanguage','ck-revision-history-sidebar__revision_selected'];(function(_0xbc5837,_0x4f7070){const _0x22a26b=function(_0x3220c0){while(--_0x3220c0){_0xbc5837['push'](_0xbc5837['shift']());}};_0x22a26b(++_0x4f7070);}(_0x4f70,0x95));const _0x22a2=function(_0xbc5837,_0x4f7070){_0xbc5837=_0xbc5837-0x0;let _0x22a26b=_0x4f70[_0xbc5837];return _0x22a26b;};import{View as _0xb3136f}from'ckeditor5/src/ui';import _0x1ae2da from'./revisionauthorview';import{dateToPrettyFormat as _0x5391d2}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0xb3136f{constructor(_0x1e56c8,_0x1a25dd,_0x5ccd2d){super(_0x1e56c8);const _0x34ad0b=this[_0x22a2('0xc')];this['id']=_0x1a25dd['id'],this['bind'](_0x22a2('0xb'))['to'](_0x1a25dd),this[_0x22a2('0x7')](_0x22a2('0x3'),!0x1),this[_0x22a2('0x4')]('_createdAtFormatted')['to'](this,_0x22a2('0xb'),_0x2f95fa=>_0x2f95fa?_0x5391d2(_0x1e56c8[_0x22a2('0xe')],_0x2f95fa):void 0x0),this['_parentRevisionId']=_0x5ccd2d,this[_0x22a2('0x9')]({'tag':'div','attributes':{'class':['ck',_0x22a2('0xd'),_0x22a2('0xa'),_0x22a2('0x2'),_0x34ad0b['if'](_0x22a2('0x3'),_0x22a2('0x0'))]},'children':[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x34ad0b['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x1ae2da(_0x1e56c8,_0x1a25dd[_0x22a2('0x8')],!0x0)]}],'on':{'click':_0x34ad0b['to'](this[_0x22a2('0x6')][_0x22a2('0x4')](this))}});}[_0x22a2('0x6')](){this[_0x22a2('0x3')]=!0x0,this[_0x22a2('0x5')](_0x22a2('0x6'),{'parentId':this['_parentRevisionId']});}[_0x22a2('0x1')](){this[_0x22a2('0x3')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0xa74b=['long','toLocaleTimeString','numeric'];(function(_0x492b73,_0xa74baa){var _0x43f0da=function(_0x594ffd){while(--_0x594ffd){_0x492b73['push'](_0x492b73['shift']());}};_0x43f0da(++_0xa74baa);}(_0xa74b,0x197));var _0x43f0=function(_0x492b73,_0xa74baa){_0x492b73=_0x492b73-0x0;var _0x43f0da=_0xa74b[_0x492b73];return _0x43f0da;};export function dateToPrettyFormat(_0x5b67e5,_0x339516){return _0x339516['toLocaleDateString'](_0x5b67e5,{'month':_0x43f0('0x1'),'day':'numeric'})+',\x20'+_0x339516[_0x43f0('0x2')](_0x5b67e5,{'hour':'numeric','minute':_0x43f0('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x10b8=['element','saveButtonView','_focusables','Save','delegate','arrowright','focus','setTemplate','render','_focusCycler','label','cancel','reset','Cancel','fieldView','shift\x20+\x20tab','submit','input','form','revisionNameInputView','_createButton','focusTracker','cancelButtonView','add','execute','extendTemplate','Name\x20of\x20the\x20revision\x20(optional)','revisionName','revisionNameInputValue','trim','forEach','locale','ck-responsive-form','ck-button-cancel','focusFirst','value','set','arrowleft','220','ck-button-save','ck-revision-history-save-revision-form','keystrokes'];(function(_0x58f9b4,_0x10b82c){const _0x3c87cc=function(_0x5c4e7f){while(--_0x5c4e7f){_0x58f9b4['push'](_0x58f9b4['shift']());}};_0x3c87cc(++_0x10b82c);}(_0x10b8,0x1da));const _0x3c87=function(_0x58f9b4,_0x10b82c){_0x58f9b4=_0x58f9b4-0x0;let _0x3c87cc=_0x10b8[_0x58f9b4];return _0x3c87cc;};import{icons as _0x47085b}from'ckeditor5/src/core';import{ButtonView as _0x1fcc71,FocusCycler as _0xf19c9d,LabeledFieldView as _0x54d184,View as _0x147b00,ViewCollection as _0x2014d0,createLabeledInputText as _0xf2d240,injectCssTransitionDisabler as _0x274455,submitHandler as _0x54bb75}from'ckeditor5/src/ui';import{FocusTracker as _0x3d5a07,KeystrokeHandler as _0x217d8b}from'ckeditor5/src/utils';import{getTranslation as _0x597856}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x147b00{constructor(_0x248d3d){super(_0x248d3d),this[_0x3c87('0x9')]=new _0x3d5a07(),this[_0x3c87('0x1d')]=new _0x217d8b(),this[_0x3c87('0x18')](_0x3c87('0x10'),''),this['revisionNameInputView']=this['_createRevisionNameInput'](),this[_0x3c87('0x1f')]=this[_0x3c87('0x8')](_0x597856(_0x248d3d,_0x3c87('0x21')),_0x47085b['check'],_0x3c87('0x1b')),this[_0x3c87('0x1f')]['type']=_0x3c87('0x4'),this[_0x3c87('0xa')]=this[_0x3c87('0x8')](_0x597856(_0x248d3d,_0x3c87('0x1')),_0x47085b[_0x3c87('0x29')],_0x3c87('0x15'),_0x3c87('0x29')),this[_0x3c87('0x20')]=new _0x2014d0(),this[_0x3c87('0x27')]=new _0xf19c9d({'focusables':this[_0x3c87('0x20')],'focusTracker':this[_0x3c87('0x9')],'keystrokeHandler':this[_0x3c87('0x1d')],'actions':{'focusPrevious':_0x3c87('0x3'),'focusNext':'tab'}}),this[_0x3c87('0x25')]({'tag':_0x3c87('0x6'),'attributes':{'class':['ck',_0x3c87('0x1c'),_0x3c87('0x14')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x3c87('0x1f')],this[_0x3c87('0xa')]]}),_0x274455(this);}['render'](){super[_0x3c87('0x26')](),_0x54bb75({'view':this}),([this[_0x3c87('0x7')],this[_0x3c87('0x1f')],this[_0x3c87('0xa')]][_0x3c87('0x12')](_0x40638d=>{this[_0x3c87('0x20')][_0x3c87('0xb')](_0x40638d),this['focusTracker']['add'](_0x40638d[_0x3c87('0x1e')]);}),this[_0x3c87('0x1d')]['listenTo'](this[_0x3c87('0x1e')]));const _0x4a2d01=_0x54b11=>_0x54b11['stopPropagation']();this[_0x3c87('0x1d')][_0x3c87('0x18')](_0x3c87('0x23'),_0x4a2d01),this['keystrokes'][_0x3c87('0x18')](_0x3c87('0x19'),_0x4a2d01),this[_0x3c87('0x1d')]['set']('arrowup',_0x4a2d01),this[_0x3c87('0x1d')][_0x3c87('0x18')]('arrowdown',_0x4a2d01);}[_0x3c87('0x24')](){this[_0x3c87('0x27')][_0x3c87('0x16')]();}get[_0x3c87('0xf')](){return this[_0x3c87('0x7')][_0x3c87('0x2')][_0x3c87('0x1e')][_0x3c87('0x17')]['trim']();}set[_0x3c87('0xf')](_0x5544f0){this[_0x3c87('0x7')]['fieldView'][_0x3c87('0x1e')][_0x3c87('0x17')]=_0x5544f0[_0x3c87('0x11')]();}[_0x3c87('0x0')](){this[_0x3c87('0x7')][_0x3c87('0x2')]['element']['value']='';}['_createRevisionNameInput'](){const _0x365afd=new _0x54d184(this[_0x3c87('0x13')],_0xf2d240),_0x1e488c=_0x365afd[_0x3c87('0x2')];return _0x1e488c[_0x3c87('0xd')]({'attributes':{'maxlength':_0x3c87('0x1a')}}),_0x365afd[_0x3c87('0x28')]=_0x597856(this[_0x3c87('0x13')],_0x3c87('0xe')),_0x1e488c['on'](_0x3c87('0x5'),()=>{this['revisionNameInputValue']=_0x1e488c['element'][_0x3c87('0x17')][_0x3c87('0x11')]();}),_0x365afd;}[_0x3c87('0x8')](_0x339b4b,_0x23b74c,_0x145814,_0x28769f){const _0x4b51d7=new _0x1fcc71(this[_0x3c87('0x13')]);return _0x4b51d7[_0x3c87('0x18')]({'label':_0x339b4b,'icon':_0x23b74c,'tooltip':!0x0}),_0x4b51d7[_0x3c87('0xd')]({'attributes':{'class':_0x145814}}),_0x28769f&&_0x4b51d7[_0x3c87('0x22')](_0x3c87('0xc'))['to'](this,_0x28769f),_0x4b51d7;}}
|