@ckeditor/ckeditor5-revision-history 38.0.0-rc.0 → 38.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x2184=['vid_end','element:pre','unshift','enqueueChange','toData','getChild','pop','ck-revision-history-root--active','pluginName','data-change-id','_removeMissingPairs','createRevision','_balloon','-new','high','getItems','splice','_getViewForChange','low','isRemoveSuggestion','removeMarker:revision-suggestion','_changeView','insertion','isOnRoot','createUIElement','toViewElement','attributesBefore','repository','start','parent','shift','isSuggestion','_makeTape','reconvertMarker','nextPosition','type','comment','nextSibling','WidgetToolbarRepository','for','data-revision-','catch','selection','ck-suggestion-preview-marker-','_threeWayMerge','commands','isObject','revision-end','toViewPosition','enableReadOnlyMode','ck-suggestion-marker-','endIndex','ck-editor__editable__overlay','index','_joinTapes','from','_markInsertions','_makeModelFromViewString','find','findIndex','insertions','deletions','addClass','_refreshStartEndIndex','getRevisionData','_revisions','affectsData','insert','checkAttribute','isLimit','_step','_getRevisionsRange','first','merge','getAttribute','downcastDispatcher','change:isReady','level','modelRange','bind','addRoot','markerToData','_getViewObj','map','_fixObsoleteTags','changeId','keys','suggestion','isBefore','deletion','_makeModelFromTape','end','_update','restoreRevisionCallback','children','isEqual','ck-suggestion-preview-marker','removeClass','getCustomProperty','elementEnd','getRevision','rootName','viewItem','wrap','_changeIdToChange','ck-suggestion-marker','destroy','isAttached','isIncorrect','createPositionFromPath','currentChangeNumber','delete','flat','length','mousedown','includes','bindElementToMarker','consume','detachRoot','RevisionViewer','mouseover','oldRevisionId','markersEnd','activeView','test','authors','right','getRootNames','getIndex','_removeRevisionMarkers','changes','element','addHighlight','markersStart','loadRevisionData','suggestion:','_removeUnsupportedChanges','isContent','ck-revision-history-root-add','revisionHistoryLabel','name','isNavigationMode','split','stop','processor','view','newRevisionId','_data','ck-suggestion-marker--active','isReady','elementStart','side','conversion','revision-viewer','getWalker','editor','attributesAfter','_markMarkers','listenTo','sort','indexOf','done','removeAttribute','_findChangeIdFromDomTarget','nodeAfter','top','get','filter','target','has','revision','adapter','_cleanMarkers','attributes','diffData','remove','revision:','isAddSuggestion','addMarker:revision','document','addMarker:revision-suggestion:insertion','isEnabled','model','markerName','showNextChange','highest','_activeViewTarget','revision-suggestion','push','writer','dataDowncast','addRevision','showStack','plugins','revision-comment:','isRemoved','markerRange','then','_setChanges','execute','ck-revision-history-root-remove','add','span','upcast','activeChange','offsetSize','locale','markerToHighlight','requires','_cleanUp','change:numberOfChanges','isAtEnd','createRange','code','previousPosition','startsWith','vid_start','marked','toViewRange','_initInteractions','startIndex','toModel','useFillerType','diff','abs','next','data','text','isAfter','markerNameToElements','consumable','forEach','numberOfChanges','string','revisionHistoryAttachChange','slice','updatePosition','backward','_sortAndFilterDiffChanges','_appendChild','values','_getDiff','vid','distance','ck-suggestion-marker-split','createAttributeElement','mapper','attachChange','getAttributes','isBlock','_getChangeFromId','clear','_setConversion','domConverter','concat','revision-start','schema','pairId','getRoot','_setDistance','domEvent','addRevisionData','forward','init','userId','_markMismatchedRemovedTags','editing','editingDowncast','range','change','hasAttribute','getClientRects','change:isEnabled','refresh','markers','removeMarker','revision-suggestion:','item','isAdded','set','isCollapsed','resolve','_markSuggestions','isInline','setAttribute','dataToMarker','parse'];(function(_0x1c3d87,_0x21841c){const _0x18b2d6=function(_0x4800f2){while(--_0x4800f2){_0x1c3d87['push'](_0x1c3d87['shift']());}};_0x18b2d6(++_0x21841c);}(_0x2184,0xda));const _0x18b2=function(_0x1c3d87,_0x21841c){_0x1c3d87=_0x1c3d87-0x0;let _0x18b2d6=_0x2184[_0x1c3d87];return _0x18b2d6;};import{Plugin as _0x247ff8,Command as _0xcfbd88}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x413986}from'ckeditor5/src/utils';import{ContextualBalloon as _0x16c372}from'ckeditor5/src/ui';import{DocumentFragment as _0x39e403,Element as _0x44d97d,Text as _0x447422,ViewDocumentFragment as _0x130a33,ViewText as _0x5501ba,ViewElement as _0x1dc760,ViewContainerElement as _0x1cac1a,ViewAttributeElement as _0x30c093,ViewEmptyElement as _0x464de4,ViewRawElement as _0x405772,ViewUIElement as _0x26db04}from'ckeditor5/src/engine';import{Users as _0x435715,getMarkerDomElement as _0x4ee7ef}from'ckeditor5-collaboration/src/collaboration-core';import _0x1321c7 from'./ui/revisionviewer/changedetailsview';import _0x134d25 from'./revisionsrepository';import _0xc3ab36 from'./changeitem';import{default as _0x114f0b}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x164c40}from'lodash-es';const X={'c':_0x1cac1a,'a':_0x30c093,'e':_0x464de4,'r':_0x405772,'u':_0x26db04};export default class w extends _0x247ff8{static get[_0x18b2('0x4d')](){return _0x18b2('0xbc');}static get[_0x18b2('0x115')](){return[_0x435715,_0x16c372,_0x134d25];}constructor(_0x5abb17){super(_0x5abb17),this['repository']=this[_0x18b2('0xe0')][_0x18b2('0x106')]['get']('RevisionsRepository'),this[_0x18b2('0x3d')](_0x18b2('0x111'),null),this[_0x18b2('0x3d')]('activeView',null),this[_0x18b2('0xff')]=null,this[_0x18b2('0x3d')](_0x18b2('0x5'),null),this[_0x18b2('0x3d')](_0x18b2('0xda'),!0x1),this[_0x18b2('0x3d')](_0x18b2('0xfa'),!0x0),this['on'](_0x18b2('0x36'),(_0x4d53cc,_0x31ff57,_0x4e9afa)=>{this[_0x18b2('0x111')]=null,this['activeView']=null,this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0x3e2006=>{for(const _0x1ded21 of this['editor'][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['roots'])_0x4e9afa?_0x3e2006[_0x18b2('0xa6')]('ck-editor__editable__overlay',_0x1ded21):_0x3e2006[_0x18b2('0x83')](_0x18b2('0x79'),_0x1ded21);});}),this['bind'](_0x18b2('0xd2'))['to'](this,_0x18b2('0x111'),_0x358ca9=>null!==_0x358ca9),this[_0x18b2('0x94')](_0x18b2('0xb3'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),this,_0x18b2('0x111'),(_0x407216,_0x2685f4,_0x22b303)=>_0x407216&&_0x22b303?_0x2685f4[_0x18b2('0xc7')][_0x18b2('0xc5')](_0x22b303):0x0),this[_0x18b2('0x94')](_0x18b2('0xe'))['to'](this,_0x18b2('0xda'),this,_0x18b2('0x5'),(_0x75199c,_0x2a206a)=>_0x75199c?_0x2a206a[_0x18b2('0xc7')][_0x18b2('0xb6')]:0x0),this[_0x18b2('0x5a')]=null,this[_0x18b2('0xad')]=new Map(),this[_0x18b2('0xf0')]=null,this['_balloon']=this[_0x18b2('0xe0')]['plugins'][_0x18b2('0xeb')](_0x16c372);}[_0x18b2('0x2d')](){const _0x35ea93=this['editor'],_0x5506b6=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x13')}),_0x420caf=new ShowChangeCommand(_0x35ea93,{'direction':_0x18b2('0x2c')});(_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('showPreviousChange',_0x5506b6),_0x35ea93['commands']['add'](_0x18b2('0xfd'),_0x420caf),_0x35ea93[_0x18b2('0x72')][_0x18b2('0x10e')]('restoreRevision',new RestoreRevisionCommand(_0x35ea93)),this['on'](_0x18b2('0x117'),()=>{_0x5506b6[_0x18b2('0x37')](),_0x420caf[_0x18b2('0x37')]();}),this[_0x18b2('0x22')](),this[_0x18b2('0x1')](),_0x35ea93[_0x18b2('0x76')](_0x18b2('0xde')),_0x35ea93[_0x18b2('0x106')][_0x18b2('0xee')](_0x18b2('0x6b')))&&_0x35ea93['plugins']['get'](_0x18b2('0x6b'))['forceDisabled'](_0x18b2('0xde'));}async[_0x18b2('0x85')](_0x1fcf08){await this[_0x18b2('0xcb')](_0x1fcf08);const _0x3b5ee3={};for(const _0x8533cd in _0x1fcf08[_0x18b2('0xf3')]){if(_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')]&&!_0x1fcf08[_0x18b2('0xf3')][_0x8533cd][_0x18b2('0x1d')][_0x18b2('0xb0')])continue;const _0x5beb5e=this[_0x18b2('0xc6')](JSON[_0x18b2('0x44')](_0x1fcf08['diffData'][_0x8533cd][_0x18b2('0x81')])),_0x133a7e=this[_0x18b2('0xe0')][_0x18b2('0x30')]['view'][_0x18b2('0xf8')],_0x4819d8=new _0x130a33(_0x133a7e,_0x5beb5e['map'](_0x535c25=>this['_getViewObj'](_0x535c25)));this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')]['useFillerType'](_0x18b2('0x11e')),_0x3b5ee3[_0x8533cd]=this['editor'][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x49')](_0x4819d8),this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0xd5')][_0x18b2('0x4')]('default');}return _0x3b5ee3;}async['getRevisionRootsAttributes'](_0x587be3){await this[_0x18b2('0xcb')](_0x587be3);const _0x4b43ae={};for(const _0x33c589 in _0x587be3[_0x18b2('0xf3')])_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']&&!_0x587be3[_0x18b2('0xf3')][_0x33c589]['attachChange']['isAttached']||(_0x4b43ae[_0x33c589]=_0x587be3[_0x18b2('0xf3')][_0x33c589][_0x18b2('0xe1')]||{});return _0x4b43ae;}[_0x18b2('0xc6')](_0x17ce37){return(_0x17ce37=_0x17ce37[_0x18b2('0xec')](_0x267e31=>!_0x267e31[_0x18b2('0xd1')]||_0x18b2('0x25')!==_0x267e31[_0x18b2('0xd1')]&&_0x18b2('0x74')!==_0x267e31[_0x18b2('0xd1')]))[_0x18b2('0xd')](_0x542e6b=>{_0x18b2('0xf')!=typeof _0x542e6b&&(_0x542e6b['children']=this[_0x18b2('0xc6')](_0x542e6b[_0x18b2('0xa3')]),_0x542e6b[_0x18b2('0xf2')]=_0x542e6b['attributes'][_0x18b2('0xec')](_0x795f58=>!_0x795f58[0x0]['startsWith'](_0x18b2('0x6d'))));}),_0x17ce37;}async['compare'](_0x6cc51d,_0x47f5a9,_0x717e70=!0x1){if(!this[_0x18b2('0xfa')])return;const _0x3f019b=this[_0x18b2('0x5')],_0x439556=this['repository'],_0x482e31=_0x18b2('0xf')==typeof _0x6cc51d?_0x439556[_0x18b2('0xa9')](_0x6cc51d):_0x6cc51d,_0x5f3438=_0x18b2('0xf')==typeof _0x47f5a9?_0x439556['getRevision'](_0x47f5a9):_0x47f5a9,_0x1c67bd=_0x482e31['id'],_0x3f4832=_0x5f3438?_0x5f3438['id']:null;if(!_0x717e70&&this[_0x18b2('0x5')]&&this['diff'][_0x18b2('0xd7')]===_0x1c67bd&&this['diff'][_0x18b2('0xbe')]===_0x3f4832)return Promise[_0x18b2('0x3f')]();this[_0x18b2('0xda')]=!0x1,this['activeView']=null,this[_0x18b2('0x111')]=null,this[_0x18b2('0x5')]=new _0x114f0b(_0x1c67bd,_0x3f4832);const _0x40c34=this[_0x18b2('0x8c')](_0x482e31,_0x5f3438,!0x0)[_0x18b2('0x98')](_0x2c3291=>this[_0x18b2('0xcb')](_0x2c3291));return _0x40c34[_0x18b2('0x101')](new Promise(_0x58c61=>{setTimeout(_0x58c61,0x14);})),Promise['all'](_0x40c34)[_0x18b2('0x10a')](()=>{if(!this[_0x18b2('0xfa')])return;this[_0x18b2('0x116')]();const _0xac095c=this['_getDiff'](_0x1c67bd,_0x3f4832);for(const _0x7b87e4 of _0xac095c[_0x18b2('0xc7')])this[_0x18b2('0xad')][_0x18b2('0x3d')](_0x7b87e4['id'],_0x7b87e4);this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x5b22fa=>{for(const _0x20bb75 of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x5b22fa[_0x18b2('0xbb')](_0x20bb75);for(const _0x259972 of Object['keys'](_0xac095c[_0x18b2('0xfb')])){const _0x3045dc=_0x5b22fa[_0x18b2('0x95')](_0x259972);for(const _0x2d9ae0 of Object[_0x18b2('0x9b')](_0xac095c[_0x18b2('0xf2')][_0x259972]))_0x5b22fa[_0x18b2('0x42')](_0x2d9ae0,_0xac095c[_0x18b2('0xf2')][_0x259972][_0x2d9ae0],_0x3045dc);_0x5b22fa['insert'](_0xac095c['model'][_0x259972],_0x3045dc,0x0);}}),this[_0x18b2('0x5')][_0x18b2('0x10b')](this[_0x18b2('0x14')](_0xac095c[_0x18b2('0xc7')])),this[_0x18b2('0xda')]=!0x0;})[_0x18b2('0x6e')](_0x17991b=>{console['error'](_0x17991b),this[_0x18b2('0x116')](),_0x3f019b&&(this['diff']=_0x3f019b),this['isReady']=!0x0;});}[_0x18b2('0x2b')](_0x1ff623,_0x2c320e){const _0x2c6c8=this[_0x18b2('0x60')][_0x18b2('0x50')](_0x1ff623);return _0x2c6c8['on'](_0x18b2('0xa1'),(_0x279ebf,_0x2580cb,_0x52a367)=>_0x2c320e(_0x2580cb,_0x52a367,_0x2c6c8)),this[_0x18b2('0x60')][_0x18b2('0x104')](_0x2c6c8),_0x2c6c8;}[_0x18b2('0xcb')](_0x38e750){if(!_0x38e750||_0x38e750[_0x18b2('0xf3')])return Promise[_0x18b2('0x3f')]();{const _0x812de1=this[_0x18b2('0xe0')]['config']['get']('collaboration.channelId');return this[_0x18b2('0xf0')][_0x18b2('0xa9')]({'channelId':_0x812de1,'revisionId':_0x38e750['id']})[_0x18b2('0x10a')](_0x14b72e=>{_0x38e750[_0x18b2('0xa1')]({'diffData':_0x14b72e['diffData']},!0x0);});}}['_cleanUp'](){this[_0x18b2('0x111')]=null,this['_cleanMarkers'](),this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=null,this['_changeIdToChange'][_0x18b2('0x21')](),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x48')]({'isUndoable':!0x1},_0x4324d8=>{for(const _0x3d83ab of this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0xc4')]())_0x4324d8[_0x18b2('0xbb')](_0x3d83ab);});}['_sortAndFilterDiffChanges'](_0x4e65b2){const _0x3056a4=[],_0x1ba096=new Map();for(const _0x5c226f of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0xc4')]()){const _0x449655=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x5c226f);if(!_0x449655)continue;const _0x3ddad1=_0x449655[_0x18b2('0x35')]()[_0x18b2('0x3b')](0x0);_0x3ddad1&&(_0x3056a4[_0x18b2('0x101')](_0x5c226f),_0x1ba096['set'](_0x5c226f,_0x3ddad1));}return _0x3056a4[_0x18b2('0xe4')]((_0x5ccb39,_0x4cd597)=>{const _0x25d9fa=_0x1ba096[_0x18b2('0xeb')](_0x5ccb39),_0xa26889=_0x1ba096[_0x18b2('0xeb')](_0x4cd597);return _0x25d9fa['y']-_0xa26889['y']||_0x25d9fa['x']-_0xa26889['x'];}),(_0x4e65b2=_0x4e65b2[_0x18b2('0xec')](_0x3b55b5=>_0x3056a4[_0x18b2('0xb8')](_0x3b55b5['rootName'])))[_0x18b2('0xe4')]((_0x39b125,_0x157f3f)=>_0x3056a4['indexOf'](_0x39b125[_0x18b2('0xaa')])-_0x3056a4[_0x18b2('0xe5')](_0x157f3f[_0x18b2('0xaa')])),_0x4e65b2;}['_makeTape'](_0x1406bc){const _0x3064a5=Array[_0x18b2('0x7c')](_0x1406bc[_0x18b2('0x38')])[_0x18b2('0xec')](([_0xf68f2f,_0x38483f])=>_0xf68f2f[_0x18b2('0x11c')]('revision:')&&!_0x38483f['isCollapsed']),_0x334a5f=Array['from'](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createRangeIn'](_0x1406bc)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3064a5['length'])for(const _0x27f9f6 of _0x334a5f){const [_0x12700f,_0xbc904b]=_0x3064a5[0x0],[,_0x23f002,_0x233cd6]=_0x12700f[_0x18b2('0xd3')](':');if(_0xbc904b[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x27f9f6['nextPosition'])&&_0x3064a5[_0x18b2('0x63')](),(_0x27f9f6['previousPosition']['isEqual'](_0xbc904b[_0x18b2('0x61')])||_0x27f9f6[_0x18b2('0x11b')][_0x18b2('0xa')](_0xbc904b[_0x18b2('0x61')]))&&(_0x18b2('0x5b')==_0x23f002?_0x27f9f6['isAdded']={'userId':_0x233cd6}:'deletion'==_0x23f002&&(_0x27f9f6[_0x18b2('0x108')]={'userId':_0x233cd6})),0x0==_0x3064a5[_0x18b2('0xb6')])break;}return _0x334a5f;}[_0x18b2('0x84')](_0x2bf969){const _0xa24a5c=new Map();for(let _0x2ab168=0x0;_0x2ab168<_0x2bf969['length'];_0x2ab168++)_0x18b2('0x9')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]?(_0x2bf969[_0x2ab168]['item'][_0x18b2('0x2')]=_0x2ab168,_0x2bf969[_0x2ab168]['item'][_0x18b2('0x78')]=_0x2ab168):(_0x18b2('0xdb')===_0x2bf969[_0x2ab168]['type']?_0x2bf969[_0x2ab168][_0x18b2('0x3b')]['startIndex']=_0x2ab168:_0x18b2('0xa8')===_0x2bf969[_0x2ab168][_0x18b2('0x68')]&&(_0x2bf969[_0x2ab168][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x2ab168),_0xa24a5c[_0x18b2('0x3d')](_0x2bf969[_0x2ab168]['id'],_0x2ab168));for(const _0x24b5dc of _0xa24a5c[_0x18b2('0x16')]())'elementStart'===_0x2bf969[_0x24b5dc][_0x18b2('0x68')]?_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x78')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc][_0x18b2('0x27')]):_0x18b2('0xa8')===_0x2bf969[_0x24b5dc]['type']&&(_0x2bf969[_0x24b5dc][_0x18b2('0x3b')][_0x18b2('0x2')]=_0xa24a5c[_0x18b2('0xeb')](_0x2bf969[_0x24b5dc]['pairId']));}['_processTape'](_0x5df02a){for(let _0x3ad00a=0x0;_0x3ad00a<_0x5df02a[_0x18b2('0xb6')];_0x3ad00a++){if('elementStart'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')])_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a;else{if('elementEnd'===_0x5df02a[_0x3ad00a][_0x18b2('0x68')]){_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x78')]=_0x3ad00a;const _0xc1f8bc=_0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')];_0x5df02a[_0xc1f8bc][_0x18b2('0x27')]=_0x5df02a[_0x3ad00a]['id'],_0x5df02a[_0x3ad00a]['pairId']=_0x5df02a[_0xc1f8bc]['id'];}else _0x5df02a[_0x3ad00a]['item'][_0x18b2('0x2')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x3b')][_0x18b2('0x78')]=_0x3ad00a,_0x5df02a[_0x3ad00a][_0x18b2('0x27')]=null;}_0x5df02a[_0x3ad00a][_0x18b2('0xca')]||(_0x5df02a[_0x3ad00a]['markersStart']=[],_0x5df02a[_0x3ad00a][_0x18b2('0xbf')]=[]);}}['_markInsertions'](_0x1bfb6b,_0x51a21f){const _0xc9aad6=_0x1bfb6b[_0x18b2('0xec')](_0x30f67f=>!_0x30f67f[_0x18b2('0x3c')]);for(let _0x52afd9=0x0;_0x52afd9<_0x51a21f[_0x18b2('0xb6')];_0x52afd9++)_0x51a21f[_0x52afd9][_0x18b2('0x3c')]&&(_0xc9aad6[_0x52afd9][_0x18b2('0x3c')]=_0x51a21f[_0x52afd9][_0x18b2('0x3c')]);}[_0x18b2('0x7e')](_0x57022c){const _0x2b580a=JSON[_0x18b2('0x44')](_0x57022c),_0x41802d=this['editor']['editing'][_0x18b2('0xd6')]['document'],_0x138099=new _0x130a33(_0x41802d,_0x2b580a[_0x18b2('0x98')](_0x5d2067=>this[_0x18b2('0x97')](_0x5d2067)));return this[_0x18b2('0xe0')][_0x18b2('0x8')][_0x18b2('0x3')](_0x138099);}[_0x18b2('0x97')](_0x5a45e2){const _0x5f5d04=this[_0x18b2('0xe0')]['editing'][_0x18b2('0xd6')][_0x18b2('0xf8')];if('string'==typeof _0x5a45e2)return new _0x5501ba(_0x5f5d04,_0x5a45e2);{const _0x5e0dbe=_0x5a45e2['children'][_0x18b2('0x98')](_0x50ca4d=>this[_0x18b2('0x97')](_0x50ca4d));return new(X[_0x5a45e2[(_0x18b2('0x68'))]]||_0x1dc760)(_0x5f5d04,_0x5a45e2[_0x18b2('0xd1')],_0x5a45e2[_0x18b2('0xf2')],_0x5e0dbe);}}[_0x18b2('0x17')](_0x250cc2,_0x596dae=null){const _0x487661=this[_0x18b2('0x60')]['getRevision'](_0x250cc2),_0x14c6f1=_0x596dae?this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x596dae):null,_0x398d46=this[_0x18b2('0x8c')](_0x487661,_0x14c6f1),_0x3d1c97=_0x398d46[_0x398d46[_0x18b2('0xb6')]-0x1],_0x161b3b=new Map(),_0x4205b2={'model':{},'attributes':{},'changes':[]},_0x33753a=new Set(),_0x3bc56a=new Map();for(let _0x3a5620=_0x398d46[_0x18b2('0xb6')]-0x1;_0x3a5620>=0x0;_0x3a5620--){const _0x3932f7=_0x398d46[_0x3a5620];for(const _0x3b8910 of Object[_0x18b2('0x9b')](_0x3932f7[_0x18b2('0xf3')]))if(_0x3932f7['diffData'][_0x3b8910][_0x18b2('0x1d')]){const _0x1fd60c=_0x3932f7['diffData'][_0x3b8910]['attachChange'];_0x1fd60c['isAttached']?(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0xee')](_0x3b8910)&&_0x3bc56a['get'](_0x3b8910)['userId']==_0x1fd60c['userId']?_0x3bc56a[_0x18b2('0xb4')](_0x3b8910):_0x3bc56a['set'](_0x3b8910,_0x1fd60c)):_0x3bc56a[_0x18b2('0xee')](_0x3b8910)?(_0x33753a['delete'](_0x3b8910),_0x3bc56a[_0x18b2('0xb4')](_0x3b8910)):(_0x33753a[_0x18b2('0x10e')](_0x3b8910),_0x3bc56a[_0x18b2('0x3d')](_0x3b8910,_0x1fd60c));}else _0x33753a[_0x18b2('0x10e')](_0x3b8910);}for(const _0x5f3124 of _0x33753a){const _0x1b45cb=_0x3bc56a[_0x18b2('0xee')](_0x5f3124)&&!_0x3bc56a[_0x18b2('0xeb')](_0x5f3124)[_0x18b2('0xb0')];let _0x44540d=_0x1b45cb?_0x398d46[_0x18b2('0xb6')]-0x1:0x0;const _0xbedbbc=_0x1b45cb?-0x1:0x1;for(;_0x398d46[_0x44540d];){const _0x39019b=_0x398d46[_0x44540d];if(_0x39019b['diffData'][_0x5f3124]){const _0x3e3fb8=_0x1b45cb?_0x39019b[_0x18b2('0xf3')][_0x5f3124][_0x18b2('0x5f')]:_0x39019b[_0x18b2('0xf3')][_0x5f3124]['attributesAfter'];_0x4205b2['attributes'][_0x5f3124]=_0x3e3fb8?_0x164c40(_0x3e3fb8):{};break;}_0x44540d+=_0xbedbbc;}}for(const _0x5014d4 of _0x398d46){_0x5014d4[_0x18b2('0xfb')]={};for(const _0x1b0638 of _0x5014d4[_0x18b2('0xc2')])_0x161b3b[_0x18b2('0x3d')](_0x1b0638['id'],_0x1b0638);for(const _0x52eda7 of _0x33753a){const _0x577d4b=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7]['insertions']:'[]',_0x138706=_0x5014d4[_0x18b2('0xf3')][_0x52eda7]?_0x5014d4[_0x18b2('0xf3')][_0x52eda7][_0x18b2('0x82')]:'[]';_0x5014d4[_0x18b2('0xfb')][_0x52eda7]={'insertions':this[_0x18b2('0x7e')](_0x577d4b),'deletions':this[_0x18b2('0x7e')](_0x138706)};}}for(const _0x2feeb7 of _0x33753a){let _0x198828=null,_0x5d2e4e=0x0;const _0x130c78=new Map(Array[_0x18b2('0x7c')](_0x487661[_0x18b2('0xfb')][_0x2feeb7]['insertions'][_0x18b2('0x38')])[_0x18b2('0xec')](([_0x1e259b])=>!_0x1e259b[_0x18b2('0x11c')]('revision:')));let _0x3c4135=0x0;for(const _0x211265 of _0x398d46){const _0x51d359=this[_0x18b2('0x65')](_0x211265['model'][_0x2feeb7][_0x18b2('0x81')]);_0x211265==_0x487661?(_0x198828=_0x51d359,_0x5d2e4e=_0x198828[_0x18b2('0xb6')],_0x198828[_0x18b2('0xd')](_0x5ce568=>{_0x5ce568['id']=_0x3c4135++;}),this['_processTape'](_0x198828)):this[_0x18b2('0x7d')](_0x198828,_0x51d359);const _0x5a43ac=_0x198828[_0x18b2('0xec')](_0x1296bc=>!_0x1296bc[_0x18b2('0x3c')])[_0x18b2('0x98')](_0xe692f6=>_0xe692f6['id']);let _0xd27daa=0x0;const _0x552260=this[_0x18b2('0x65')](_0x211265[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')]);_0x552260[_0x18b2('0xd')](_0x246127=>{_0x246127['isRemoved']?_0x246127['id']=_0x5d2e4e++:_0x246127['id']=_0x5a43ac[_0xd27daa++];}),this['_processTape'](_0x552260),this[_0x18b2('0x29')](_0x198828,'isAdded'),this[_0x18b2('0x29')](_0x552260,'isRemoved'),_0x211265==_0x487661&&this[_0x18b2('0xe2')](_0x198828,_0x130c78),_0x198828=this[_0x18b2('0x7b')](_0x198828,_0x552260),this[_0x18b2('0x84')](_0x198828),this[_0x18b2('0x29')](_0x198828,_0x18b2('0x108'));}_0x198828=_0x198828[_0x18b2('0xec')](_0x2f73b7=>!(_0x2f73b7[_0x18b2('0x3c')]&&_0x2f73b7[_0x18b2('0x108')]));const _0x468292=new Map(_0x3d1c97[_0x18b2('0xfb')][_0x2feeb7][_0x18b2('0x82')][_0x18b2('0x38')]),_0x2cb73c=new Set(_0x130c78[_0x18b2('0x9b')]());for(const _0x46dc2d of _0x468292[_0x18b2('0x9b')]())_0x2cb73c[_0x18b2('0xb4')](_0x46dc2d);this[_0x18b2('0x40')](_0x198828,_0x2cb73c),this[_0x18b2('0x99')](_0x198828),_0x198828=this[_0x18b2('0x4f')](_0x198828),_0x198828=this['_markMismatchedRemovedTags'](_0x198828),_0x198828=this[_0x18b2('0xcd')](_0x198828);const {root:_0x5228df,changes:_0x35a737}=this[_0x18b2('0x9f')](_0x198828,_0x161b3b,_0x2feeb7);_0x4205b2[_0x18b2('0xfb')][_0x2feeb7]=_0x5228df;const _0x1e8381=_0x3bc56a['get'](_0x2feeb7);if(_0x1e8381){const _0x526d42=_0x161b3b[_0x18b2('0xeb')](_0x1e8381[_0x18b2('0x2e')]),_0x564dab=new _0xc3ab36({'author':_0x526d42,'type':_0x1e8381[_0x18b2('0xb0')]?'add':_0x18b2('0xf4'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2feeb7});_0x35a737[_0x18b2('0x47')](_0x564dab),_0x4205b2[_0x18b2('0xf2')][_0x2feeb7][_0x18b2('0x10')]=_0x564dab['id'];}_0x4205b2['changes']=_0x4205b2[_0x18b2('0xc7')][_0x18b2('0x24')](_0x35a737);}return _0x4205b2;}[_0x18b2('0xe2')](_0x69d7bb,_0x431e3d){for(let _0x4f5caf=0x0;_0x4f5caf<_0x69d7bb[_0x18b2('0xb6')];_0x4f5caf++)for(const [_0x2f83ff,_0x4be8cc]of _0x431e3d)_0x4be8cc['start']['isEqual'](_0x69d7bb[_0x4f5caf][_0x18b2('0x11b')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xca')][_0x18b2('0x101')](_0x2f83ff),_0x4be8cc[_0x18b2('0xa0')][_0x18b2('0xa4')](_0x69d7bb[_0x4f5caf][_0x18b2('0x67')])&&_0x69d7bb[_0x4f5caf][_0x18b2('0xbf')][_0x18b2('0x101')](_0x2f83ff);}[_0x18b2('0x7b')](_0x522039,_0x596312){let _0x1fa674=[],_0x23fb86=0x0,_0x442dac=0x0;for(;_0x23fb86<_0x522039[_0x18b2('0xb6')]||_0x442dac<_0x596312[_0x18b2('0xb6')];){const _0x370a07=_0x522039[_0x23fb86]||{},_0x130b57=_0x596312[_0x442dac]||{};if(_0x370a07['id']==_0x130b57['id'])_0x23fb86++,_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x370a07);else{if(_0x130b57[_0x18b2('0x108')]&&_0x370a07[_0x18b2('0x3c')]){const {commonTape:_0x3a3638,iEnd:_0x166ea8,jEnd:_0x21eb9b}=this[_0x18b2('0x71')](_0x522039,_0x23fb86,_0x596312,_0x442dac);_0x1fa674=_0x1fa674[_0x18b2('0x24')](_0x3a3638),_0x23fb86=_0x166ea8,_0x442dac=_0x21eb9b;}else _0x130b57[_0x18b2('0x108')]?(_0x442dac++,_0x1fa674[_0x18b2('0x101')](_0x130b57)):(_0x23fb86++,_0x1fa674['push'](_0x370a07));}}return _0x1fa674;}[_0x18b2('0x40')](_0x5b42c1,_0x3934f9){const _0x3814c1=[];for(let _0x397ed2=0x0;_0x397ed2<_0x5b42c1[_0x18b2('0xb6')];_0x397ed2++){for(let _0x11da9e=0x0;_0x11da9e<_0x5b42c1[_0x397ed2]['markersStart']['length'];_0x11da9e++){const _0x158fb4=_0x5b42c1[_0x397ed2][_0x18b2('0xca')][_0x11da9e];if(!_0x3934f9[_0x18b2('0xee')](_0x158fb4))continue;const {group:_0x1a9938,type:_0x29a7fa,authorId:_0x20d94f}=_0x155d79(_0x158fb4);_0x18b2('0x100')!=_0x1a9938||_0x18b2('0x5b')!=_0x29a7fa&&'deletion'!=_0x29a7fa||(_0x3814c1[_0x18b2('0x47')]({'type':_0x29a7fa,'name':_0x158fb4,'userId':_0x20d94f}),_0x5b42c1[_0x397ed2]['markersStart'][_0x18b2('0x55')](_0x11da9e,0x1),_0x11da9e--);}_0x491ed6(_0x5b42c1[_0x397ed2]);for(let _0x3ae9b1=0x0;_0x3ae9b1<_0x5b42c1[_0x397ed2]['markersEnd']['length'];_0x3ae9b1++){const _0x215847=_0x5b42c1[_0x397ed2]['markersEnd'][_0x3ae9b1];if(!_0x3934f9[_0x18b2('0xee')](_0x215847))continue;const {group:_0x5a77ca,type:_0x252338}=_0x155d79(_0x215847);if(_0x18b2('0x100')!=_0x5a77ca||'insertion'!=_0x252338&&_0x18b2('0x9e')!=_0x252338)continue;_0x5b42c1[_0x397ed2][_0x18b2('0xbf')][_0x18b2('0x55')](_0x3ae9b1,0x1),_0x3ae9b1--;const _0x8d8101=_0x3814c1[_0x18b2('0x80')](_0x59aefb=>_0x59aefb[_0x18b2('0xd1')]==_0x215847);_0x8d8101>-0x1&&_0x3814c1['splice'](_0x8d8101,0x1);}}function _0x155d79(_0x43029d){const _0xb3c4d0=_0x43029d[_0x18b2('0xd3')](':');return{'group':_0xb3c4d0[0x0],'type':_0xb3c4d0[0x1],'subType':_0xb3c4d0['length']>=0x5?_0xb3c4d0[0x2]:null,'id':_0xb3c4d0['length']<0x5?_0xb3c4d0[0x2]:_0xb3c4d0[0x3],'authorId':_0xb3c4d0[_0x18b2('0xb6')]<0x5?_0xb3c4d0[0x3]:_0xb3c4d0[0x4],'markerCount':0x6==_0xb3c4d0[_0x18b2('0xb6')]?_0xb3c4d0[0x5]:null};}function _0x491ed6(_0xbfa69b){for(let _0x5dc38c=0x0;_0x5dc38c<_0x3814c1[_0x18b2('0xb6')];_0x5dc38c++){if(_0xbfa69b[_0x18b2('0x3c')]&&_0x18b2('0x5b')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return _0xbfa69b[_0x18b2('0xf6')]=_0x3814c1[_0x5dc38c],void delete _0xbfa69b['isAdded'];if(!_0xbfa69b[_0x18b2('0x3c')]&&!_0xbfa69b[_0x18b2('0x108')]&&_0x18b2('0x9e')==_0x3814c1[_0x5dc38c][_0x18b2('0x68')])return void(_0xbfa69b[_0x18b2('0x58')]=_0x3814c1[_0x5dc38c]);}}}[_0x18b2('0x29')](_0x4914c6,_0x3c4cfb){let _0x382998=0x0,_0x29ae94=!0x1;const _0x29a871=new Map();for(const _0x3275c4 of _0x4914c6)_0x3275c4[_0x3c4cfb]?_0x29ae94&&(_0x382998++,_0x29ae94=!0x1):(_0x382998++,_0x29ae94=!0x0),_0x29a871[_0x18b2('0x3d')](_0x3275c4['id'],_0x382998);for(let _0x20a965=0x0;_0x20a965<_0x4914c6[_0x18b2('0xb6')];_0x20a965++){if(_0x18b2('0x108')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x3c')]||_0x18b2('0x3c')==_0x3c4cfb&&_0x4914c6[_0x20a965][_0x18b2('0x108')])continue;if(_0x18b2('0x9')==_0x4914c6[_0x20a965][_0x18b2('0x68')]){_0x4914c6[_0x20a965][_0x18b2('0x19')]=0x0;continue;}const _0x52d0c2=_0x29a871[_0x18b2('0xeb')](_0x4914c6[_0x20a965][_0x18b2('0x27')]),_0x392d7a=_0x29a871['get'](_0x4914c6[_0x20a965]['id']);_0x4914c6[_0x20a965]['distance']=_0x52d0c2-_0x392d7a;}}[_0x18b2('0x8c')](_0x8c5afa,_0x3d44ab,_0x47dd6b=!0x1){const _0x511cf1=[];let _0x57d545=this[_0x18b2('0x60')]['getIndex'](_0x8c5afa),_0x38db08=this[_0x18b2('0x60')][_0x18b2('0xc5')](_0x3d44ab);for(-0x1==_0x38db08&&(_0x38db08=this[_0x18b2('0x60')][_0x18b2('0x86')]['length'],_0x47dd6b=!0x1);_0x57d545<_0x38db08;)_0x511cf1[_0x18b2('0x101')](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x57d545++;return _0x47dd6b&&_0x511cf1['push'](this[_0x18b2('0x60')][_0x18b2('0xa9')](_0x57d545)),_0x511cf1;}['_threeWayMerge'](_0x3173c8,_0xbf8506,_0x15b56e,_0x17d54d){const _0x384c37=this['editor']['model'][_0x18b2('0x26')];let _0x3fcaed=_0xbf8506;for(;_0x3173c8[_0x3fcaed]&&_0x3173c8[_0x3fcaed]['isAdded'];)_0x3fcaed++;let _0x44b0eb=_0x17d54d;for(;_0x15b56e[_0x44b0eb]&&_0x15b56e[_0x44b0eb][_0x18b2('0x108')];)_0x44b0eb++;_0x55e0cf(_0x3173c8,_0xbf8506,_0x3fcaed),_0x55e0cf(_0x15b56e,_0x17d54d,_0x44b0eb);const _0x3b5f91=_0x15b56e[_0x18b2('0x11')](_0x17d54d,_0x44b0eb)['concat'](_0x3173c8[_0x18b2('0x11')](_0xbf8506,_0x3fcaed));return _0x3b5f91[_0x18b2('0xe4')]((_0x58bbe7,_0x5d340d)=>_0x58bbe7[_0x18b2('0xdc')]!=_0x5d340d[_0x18b2('0xdc')]?_0x58bbe7[_0x18b2('0xdc')]-_0x5d340d['side']:_0x58bbe7['level']!=_0x5d340d[_0x18b2('0x92')]?_0x58bbe7['level']-_0x5d340d['level']:_0x58bbe7[_0x18b2('0x19')]!=_0x5d340d['distance']?_0x5d340d['distance']-_0x58bbe7[_0x18b2('0x19')]:!!_0x58bbe7[_0x18b2('0x3c')]!=!!_0x5d340d['isAdded']?-0x1==_0x58bbe7[_0x18b2('0xdc')]||0x0==_0x58bbe7[_0x18b2('0xdc')]?_0x58bbe7['isAdded']?-0x1:0x1:_0x58bbe7[_0x18b2('0x3c')]?0x1:-0x1:_0x58bbe7[_0x18b2('0x7a')]-_0x5d340d[_0x18b2('0x7a')]),{'commonTape':_0x3b5f91,'iEnd':_0x3fcaed,'jEnd':_0x44b0eb};function _0x55e0cf(_0x229a2d,_0x2e7cc3,_0x4e644a){let _0x5ecc66=-0x1,_0x5a3758=Number['POSITIVE_INFINITY'],_0x34fd6c=!0x0;for(let _0x22e974=_0x2e7cc3;_0x22e974<_0x4e644a;_0x22e974++)if(_0x384c37[_0x18b2('0x41')](_0x229a2d[_0x22e974][_0x18b2('0x3b')])||(_0x34fd6c=!0x1),_0x229a2d[_0x22e974][_0x18b2('0x3b')][_0x18b2('0x2')]<_0x2e7cc3&&(_0x5ecc66=_0x22e974),_0x229a2d[_0x22e974][_0x18b2('0x3b')]['endIndex']>=_0x4e644a){_0x5a3758=_0x22e974;break;}_0x34fd6c&&(_0x5ecc66=_0x4e644a-0x1);for(let _0x44d713=_0x2e7cc3;_0x44d713<_0x4e644a;_0x44d713++)_0x229a2d[_0x44d713][_0x18b2('0xdc')]=_0x44d713<=_0x5ecc66?-0x1:_0x44d713<_0x5a3758?0x0:0x1,_0x229a2d[_0x44d713][_0x18b2('0x7a')]=_0x44d713;let _0x2a055e=0x0;for(let _0x1c8b48=_0x2e7cc3;_0x1c8b48<=_0x5ecc66;_0x1c8b48++)0x0==_0x229a2d[_0x1c8b48][_0x18b2('0x19')]?_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e++,_0x229a2d[_0x1c8b48][_0x18b2('0x92')]=_0x2a055e,_0x2a055e++);for(let _0x35cec8=_0x2e7cc3;_0x35cec8<_0x4e644a;_0x35cec8++)0x0==_0x229a2d[_0x35cec8]['side']&&(_0x229a2d[_0x35cec8][_0x18b2('0x92')]=_0x2a055e);_0x2a055e=0x0;for(let _0x3fd5f1=_0x4e644a-0x1;_0x3fd5f1>=_0x5a3758;_0x3fd5f1--)0x0==_0x229a2d[_0x3fd5f1][_0x18b2('0x19')]?_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e:(_0x2a055e--,_0x229a2d[_0x3fd5f1][_0x18b2('0x92')]=_0x2a055e,_0x2a055e--);}}[_0x18b2('0x99')](_0xd40f82){const _0x44b608=new Map(),_0x46b20d=this['editor'][_0x18b2('0xfb')]['schema'];for(let _0x42b68d=0x1;_0x42b68d<_0xd40f82[_0x18b2('0xb6')];_0x42b68d++){let _0x294442,_0x175e64,_0x4cfeee;const _0x253def=_0xd40f82[_0x42b68d],_0x412c5e=_0xd40f82[_0x42b68d-0x1];if(_0x18b2('0x9')==_0x253def[_0x18b2('0x68')])continue;if(_0x253def[_0x18b2('0x68')]!=_0x412c5e[_0x18b2('0x68')])continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x412c5e['item'])||_0x46b20d[_0x18b2('0x8a')](_0x412c5e['item']))continue;if(!_0x46b20d[_0x18b2('0x1f')](_0x253def[_0x18b2('0x3b')])||_0x46b20d[_0x18b2('0x8a')](_0x253def['item']))continue;if((_0xd40f82[_0x42b68d][_0x18b2('0x3c')]||_0xd40f82[_0x42b68d][_0x18b2('0xf6')])&&_0xd40f82[_0x42b68d-0x1][_0x18b2('0x108')])_0x294442=_0xd40f82[_0x42b68d],_0x175e64=_0xd40f82[_0x42b68d-0x1],_0x4cfeee=_0x42b68d-0x1;else{if(!_0xd40f82[_0x42b68d][_0x18b2('0x108')]||!_0xd40f82[_0x42b68d-0x1][_0x18b2('0x3c')]&&!_0xd40f82[_0x42b68d-0x1][_0x18b2('0xf6')])continue;_0x294442=_0xd40f82[_0x42b68d-0x1],_0x175e64=_0xd40f82[_0x42b68d],_0x4cfeee=_0x42b68d;}const _0x40065c=_0x294442[_0x18b2('0x92')]==_0x175e64[_0x18b2('0x92')],_0x44696c=Math[_0x18b2('0x6')](_0x294442[_0x18b2('0x92')])<Math[_0x18b2('0x6')](_0x175e64[_0x18b2('0x92')])&&0x0==_0x175e64[_0x18b2('0x19')];(_0x40065c||_0x44696c)&&(_0x44b608[_0x18b2('0x3d')](_0x175e64['id'],_0x294442['id']),_0xd40f82[_0x18b2('0x55')](_0x4cfeee,0x1),_0x42b68d--,_0x294442[_0x18b2('0x3c')]=!0x1);}for(let _0x47ea93=0x0;_0x47ea93<_0xd40f82['length'];_0x47ea93++)_0x44b608['has'](_0xd40f82[_0x47ea93]['pairId'])&&(_0xd40f82[_0x47ea93][_0x18b2('0x27')]=_0x44b608[_0x18b2('0xeb')](_0xd40f82[_0x47ea93][_0x18b2('0x27')]));}[_0x18b2('0x4f')](_0x3e0521){const _0x2aea1f=new Set(_0x3e0521[_0x18b2('0x98')](_0x346713=>_0x346713['id']));for(let _0x423c74=0x0;_0x423c74<_0x3e0521[_0x18b2('0xb6')];_0x423c74++)_0x2aea1f['has'](_0x3e0521[_0x423c74]['pairId'])||0x0==_0x3e0521[_0x423c74][_0x18b2('0x19')]||(_0x3e0521[_0x423c74][_0x18b2('0xb1')]=!0x0);return _0x3e0521[_0x18b2('0xec')](_0x1bc8d4=>!_0x1bc8d4['isIncorrect']);}[_0x18b2('0x2f')](_0x41391b){const _0x560dd9=new Set();for(let _0x197fd0=0x0;_0x197fd0<_0x41391b[_0x18b2('0xb6')];_0x197fd0++){if(_0x560dd9[_0x18b2('0xee')](_0x41391b[_0x197fd0]['id'])&&_0x41391b[_0x197fd0][_0x18b2('0x108')]&&(_0x41391b[_0x197fd0]['isIncorrect']=!0x0),_0x41391b[_0x197fd0]['isIncorrect'])continue;if(0x0==_0x41391b[_0x197fd0][_0x18b2('0x19')])continue;if('elementStart'!=_0x41391b[_0x197fd0][_0x18b2('0x68')])continue;if(null==_0x41391b[_0x197fd0][_0x18b2('0x27')])continue;let _0x16224a=_0x197fd0+0x1,_0x3ae2be=0x0;for(;_0x41391b[_0x16224a]['id']!=_0x41391b[_0x197fd0][_0x18b2('0x27')];)_0x18b2('0xdb')==_0x41391b[_0x16224a]['type']?_0x3ae2be++:_0x18b2('0xa8')==_0x41391b[_0x16224a]['type']&&_0x3ae2be--,_0x16224a++;if(0x0!=_0x3ae2be){if(_0x41391b[_0x197fd0][_0x18b2('0x108')])_0x41391b[_0x197fd0]['isIncorrect']=!0x0;else for(;_0x16224a!=_0x197fd0;)_0x41391b[_0x16224a][_0x18b2('0x108')]&&0x0!=_0x41391b[_0x16224a]['distance']&&(_0x41391b[_0x16224a][_0x18b2('0xb1')]=!0x0,_0x560dd9[_0x18b2('0x10e')](_0x41391b[_0x16224a][_0x18b2('0x27')])),_0x16224a--;}}return _0x41391b[_0x18b2('0xec')](_0x6e7e69=>!_0x6e7e69[_0x18b2('0xb1')]);}['_removeUnsupportedChanges'](_0x4166fc){const _0x2251c1=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')];for(let _0x25659c=0x0;_0x25659c<_0x4166fc[_0x18b2('0xb6')];_0x25659c++){if(!(_0x4166fc[_0x25659c]['isAdded']||_0x4166fc[_0x25659c][_0x18b2('0xf6')]||_0x4166fc[_0x25659c]['isRemoved']||_0x4166fc[_0x25659c]['isRemoveSuggestion']))continue;if(0x0==_0x4166fc[_0x25659c][_0x18b2('0x19')])continue;const _0x4aef6f=_0x4166fc[_0x25659c]['item'];_0x2251c1['isBlock'](_0x4aef6f)||_0x2251c1[_0x18b2('0x8a')](_0x4aef6f)||(_0x4166fc[_0x25659c]['isAdded']&&delete _0x4166fc[_0x25659c][_0x18b2('0x3c')],_0x4166fc[_0x25659c][_0x18b2('0xf6')]&&delete _0x4166fc[_0x25659c][_0x18b2('0xf6')],_0x4166fc[_0x25659c][_0x18b2('0x58')]&&delete _0x4166fc[_0x25659c]['isRemoveSuggestion'],_0x4166fc[_0x25659c]['isRemoved']&&(_0x4166fc[_0x25659c]['isIncorrect']=!0x0));}return _0x4166fc[_0x18b2('0xec')](_0x301525=>!_0x301525[_0x18b2('0xb1')]);}[_0x18b2('0x9f')](_0x45e767,_0x5581c2,_0x33f0cb){const _0x40aa95=new _0x39e403(),_0x4745e7=[],_0x2dd08c=new Map(),_0x16b0ed=this[_0x18b2('0xe0')][_0x18b2('0xfb')],_0x5d3c0b=_0x16b0ed[_0x18b2('0x26')],_0x562a0a=[_0x40aa95],_0x163bc5={},_0x5cdf10={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4bd951=null;const _0x403b33=[0x0];for(let _0x37062e=0x0;_0x37062e<_0x45e767[_0x18b2('0xb6')];_0x37062e++){let _0x5db7f2,_0x3f0a5a;if('elementStart'===_0x45e767[_0x37062e]['type']){_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);const _0x48c263=new _0x44d97d(_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0xd1')],_0x45e767[_0x37062e]['item'][_0x18b2('0x1e')]());_0x562a0a[0x0][_0x18b2('0x15')](_0x48c263),_0x403b33[_0x18b2('0x101')](0x0),_0x562a0a['unshift'](_0x48c263),_0x3f0a5a=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951=null;}else{if('elementEnd'===_0x45e767[_0x37062e]['type'])_0x562a0a[_0x18b2('0x63')](),_0x5db7f2=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x403b33[_0x18b2('0x4b')](),_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]++,_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33),_0x4bd951=null;else{if(_0x5db7f2=_0x16b0ed['createPositionFromPath'](_0x40aa95,_0x403b33),_0x4bd951&&_0x45ad38(_0x4bd951,_0x45e767[_0x37062e][_0x18b2('0x3b')]))_0x4bd951[_0x18b2('0xd8')]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x8')];else{const _0x3fc6e3=new _0x447422(_0x45e767[_0x37062e][_0x18b2('0x3b')]['data'],_0x45e767[_0x37062e][_0x18b2('0x3b')]['getAttributes']());_0x562a0a[0x0][_0x18b2('0x15')](_0x3fc6e3),_0x4bd951=_0x3fc6e3;}_0x403b33[_0x403b33[_0x18b2('0xb6')]-0x1]+=_0x45e767[_0x37062e][_0x18b2('0x3b')][_0x18b2('0x112')],_0x3f0a5a=_0x16b0ed[_0x18b2('0xb2')](_0x40aa95,_0x403b33);}}for(const _0x3a7500 of _0x45e767[_0x37062e]['markersStart'])_0x2dd08c[_0x18b2('0x3d')](_0x3a7500,{'start':_0x5db7f2,'end':null});_0x45c23f(_0x18b2('0x58'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0xf6'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f(_0x18b2('0x108'),_0x37062e,_0x5db7f2,_0x3f0a5a),_0x45c23f('isAdded',_0x37062e,_0x5db7f2,_0x3f0a5a);for(const _0x44b07d of _0x45e767[_0x37062e][_0x18b2('0xbf')]){_0x2dd08c['get'](_0x44b07d)['end']=_0x3f0a5a;}}for(const [_0x1b405f,_0x31d146]of _0x2dd08c){const _0x269fc8=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x119')](_0x31d146[_0x18b2('0x61')],_0x31d146['end']);_0x40aa95[_0x18b2('0x38')][_0x18b2('0x3d')](_0x1b405f,_0x269fc8);}return _0x4745e7[_0x18b2('0xe4')]((_0x437929,_0x504b29)=>{const _0x1f6dbc=_0x40aa95[_0x18b2('0x38')]['get']('revision:'+_0x437929['id']),_0x594756=_0x40aa95[_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x504b29['id']);return _0x1f6dbc[_0x18b2('0x61')][_0x18b2('0x9d')](_0x594756['start'])?-0x1:_0x1f6dbc[_0x18b2('0x61')][_0x18b2('0xa')](_0x594756[_0x18b2('0x61')])?0x1:_0x1f6dbc['end'][_0x18b2('0x9d')](_0x594756['end'])?-0x1:_0x1f6dbc[_0x18b2('0xa0')][_0x18b2('0xa')](_0x594756['end'])?0x1:_0x18b2('0x10e')===_0x437929['type']?-0x1:0x1;}),{'root':_0x40aa95,'changes':_0x4745e7};function _0x45c23f(_0x1c0cc1,_0x252302,_0x478f9d,_0xbfc321){const _0x5d55f6=!!_0x45e767[_0x252302][_0x1c0cc1],_0x2adca8=_0x5d55f6?_0x45e767[_0x252302][_0x1c0cc1][_0x18b2('0x2e')]:null,_0x19bc0e=_0x252302===_0x45e767[_0x18b2('0xb6')]-0x1,_0x1c1696=_0x5cdf10[_0x1c0cc1][0x0],_0x4a4774=_0x5d3c0b[_0x18b2('0x73')](_0x45e767[_0x252302][_0x18b2('0x3b')]);!_0x163bc5[_0x1c0cc1]&&_0x5d55f6?_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}:_0x163bc5[_0x1c0cc1]&&!_0x5d55f6?(_0x163bc5[_0x1c0cc1]['end']=_0x478f9d,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null):_0x163bc5[_0x1c0cc1]&&_0x5d55f6&&_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]!==_0x2adca8&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0x478f9d,_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x163bc5[_0x1c0cc1][_0x18b2('0x2e')]||_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]={'start':_0x478f9d,'tapeItem':_0x45e767[_0x252302],'userId':_0x2adca8,'type':_0x1c0cc1}),_0x163bc5[_0x1c0cc1]&&_0x4a4774&&(_0x18b2('0xdb')!==_0x45e767[_0x252302][_0x18b2('0x68')]||_0x1c1696&&_0x1c1696[_0x18b2('0x2e')]===_0x2adca8||_0x5cdf10[_0x1c0cc1][_0x18b2('0x47')]({'userId':_0x2adca8,'object':_0x45e767[_0x252302][_0x18b2('0x3b')],'change':_0x163bc5[_0x1c0cc1]}),_0x18b2('0xa8')===_0x45e767[_0x252302][_0x18b2('0x68')]&&_0x1c1696&&_0x1c1696['object']===_0x45e767[_0x252302][_0x18b2('0x3b')]&&(_0x5cdf10[_0x1c0cc1][_0x18b2('0x63')](),_0x163bc5[_0x1c0cc1]=_0x1c1696[_0x18b2('0x33')])),_0x163bc5[_0x1c0cc1]&&_0x19bc0e&&(_0x163bc5[_0x1c0cc1][_0x18b2('0xa0')]=_0xbfc321,_0x50dff1(_0x163bc5[_0x1c0cc1]),_0x163bc5[_0x1c0cc1]=null);}function _0x50dff1({start:_0x542e20,end:_0x3f0ec3,tapeItem:_0x302903,userId:_0x5de7a1,type:_0x55c966}){const _0x1e1df4=_0x302903[_0x18b2('0x3b')],_0x3ca281=_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x1f')](_0x1e1df4)&&!_0x16b0ed[_0x18b2('0x26')][_0x18b2('0x8a')](_0x1e1df4),_0x204253=_0x542e20['nodeAfter']==_0x3f0ec3[_0x18b2('0x62')]&&_0x3f0ec3['isAtStart'];if(_0x3ca281&&_0x204253)return;const _0x26d50e=_0x16b0ed[_0x18b2('0x119')](_0x542e20,_0x3f0ec3),_0x5eba75=_0x5581c2[_0x18b2('0xeb')](_0x5de7a1),_0x30a570=new _0xc3ab36({'author':_0x5eba75,'type':_0x18b2('0x3c')==_0x55c966||_0x18b2('0xf6')==_0x55c966?'add':_0x18b2('0xf4'),'data':{'isSuggestion':_0x18b2('0xf6')==_0x55c966||_0x18b2('0x58')==_0x55c966},'createdAt':new Date(),'rootName':_0x33f0cb});_0x4745e7[_0x18b2('0x101')](_0x30a570),_0x40aa95['markers'][_0x18b2('0x3d')](_0x18b2('0xf5')+_0x30a570['id'],_0x26d50e);}function _0x45ad38(_0x4d8876,_0x486b44){const _0x3cbfe7=_0x4d8876['getAttributes'](),_0x1ab6e7=_0x486b44[_0x18b2('0x1e')]();for(const _0x2ea26b of _0x3cbfe7){if(_0x2ea26b[0x1]!==_0x486b44[_0x18b2('0x8f')](_0x2ea26b[0x0]))return!0x1;_0x1ab6e7[_0x18b2('0x7')]();}return _0x1ab6e7['next']()[_0x18b2('0xe6')];}}[_0x18b2('0x22')](){this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0xef')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0xef'),'view':_0x124752=>{const _0x1b4310=_0x124752[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0xe1b380=this[_0x18b2('0x20')](_0x1b4310);if(!_0xe1b380)return null;const _0x5df711='add'==_0xe1b380[_0x18b2('0x68')]?_0x18b2('0x5b'):_0x18b2('0x9e'),_0x598503=[_0x18b2('0xae'),_0x18b2('0x77')+_0x5df711];return _0xe1b380[_0x18b2('0x8')]['isSuggestion']&&_0x598503['push']('ck-suggestion-marker-'+_0x5df711+'-new'),this[_0x18b2('0x111')]==_0xe1b380&&_0x598503['push'](_0x18b2('0xd9')),{'classes':_0x598503,'attributes':{'data-change-id':_0x1b4310}};}}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xf75691=>{_0xf75691['on'](_0x18b2('0x46'),(_0x1c2695,_0x2691a7,_0x154f6b)=>{const _0x5a33c3=_0x2691a7[_0x18b2('0xab')][_0x18b2('0x4a')](0x0);if(!_0x5a33c3||!_0x5a33c3['is']('element',_0x18b2('0x11a')))return;if(!_0x154f6b['consumable'][_0x18b2('0xba')](_0x5a33c3,{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;const _0x11ce5d=_0x2691a7[_0x18b2('0x93')][_0x18b2('0x61')][_0x18b2('0xe9')];_0x154f6b[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x5a33c3['getAttribute'](_0x18b2('0x11d')),_0x11ce5d),_0x154f6b[_0x18b2('0x102')]['setAttribute']('vid_end',_0x5a33c3[_0x18b2('0x8f')](_0x18b2('0x45')),_0x11ce5d);},{'priority':_0x18b2('0x57')});}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))[_0x18b2('0x10e')](_0xc9aed2=>{_0xc9aed2['on'](_0x18b2('0xc8'),(_0x4bdc0b,_0x37b112,_0x3d7701)=>{if(!_0x3d7701[_0x18b2('0xc')]['consume'](_0x37b112[_0x18b2('0xab')],{'attributes':[_0x18b2('0x11d'),_0x18b2('0x45')]}))return;if(_0x37b112['modelRange'][_0x18b2('0x3e')])return;const _0x957606=_0x37b112['modelRange'][_0x18b2('0x61')][_0x18b2('0xe9')];_0x957606['hasAttribute'](_0x18b2('0x11d'))||_0x957606[_0x18b2('0x34')]('vid')||(_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x11d'),_0x37b112[_0x18b2('0xab')][_0x18b2('0x8f')](_0x18b2('0x11d')),_0x957606),_0x3d7701[_0x18b2('0x102')][_0x18b2('0x42')](_0x18b2('0x45'),_0x37b112['viewItem']['getAttribute'](_0x18b2('0x45')),_0x957606));},{'priority':_0x18b2('0x57')});}),this[_0x18b2('0xe0')]['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':_0x18b2('0x10f'),'attributes':{'vid':!0x0}},'model':{'key':_0x18b2('0x18'),'value':_0xf6cad9=>_0xf6cad9[_0x18b2('0x8f')](_0x18b2('0x18'))}}),this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x26')]['on'](_0x18b2('0x89'),(_0x37e9f7,[,_0x433eb4])=>{[_0x18b2('0x11d'),_0x18b2('0x45'),'vid'][_0x18b2('0xb8')](_0x433eb4)&&(_0x37e9f7['return']=!0x0,_0x37e9f7[_0x18b2('0xd4')]());},{'priority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x10e')](_0x2c4cc1=>{_0x2c4cc1['on']('attribute:vid',(_0x301cfc,_0x22b864,_0x8cea44)=>{if('\x20'!=_0x22b864['item'][_0x18b2('0x8')]||_0x22b864[_0x18b2('0x3b')][_0x18b2('0x62')]['maxOffset']>0x1)return;if(!_0x8cea44[_0x18b2('0xc')][_0x18b2('0xba')](_0x22b864[_0x18b2('0x3b')],_0x301cfc[_0x18b2('0xd1')]))return;const _0x4e1b5a=_0x8cea44['writer'],_0x288375=_0x8cea44[_0x18b2('0x1c')][_0x18b2('0x0')](_0x22b864[_0x18b2('0x32')]);_0x4e1b5a[_0x18b2('0xac')](_0x288375,_0x4e1b5a[_0x18b2('0x1b')](_0x18b2('0x10f')));});}),this[_0x18b2('0xe0')]['conversion'][_0x18b2('0x6c')](_0x18b2('0x103'))[_0x18b2('0x96')]({'model':'revision'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),function(_0x33d201){const _0x1408cf=_0x33d201[_0x18b2('0x106')]['get'](_0x18b2('0xbc'));return(_0x4520f8,_0x4a6c0d,_0x3658dc)=>{const _0x259af8=_0x4a6c0d[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1],_0x1f5c35=_0x1408cf['_getChangeFromId'](_0x259af8);if(!_0x1f5c35)return null;const _0x407448=_0x18b2('0x10e')==_0x1f5c35['type']?_0x18b2('0xd3'):_0x18b2('0x8e');if(!_0x3658dc[_0x18b2('0xc')][_0x18b2('0xc1')](_0x4a6c0d[_0x18b2('0x109')],_0x4520f8['name']))return;const _0x452ae4=_0x4a6c0d[_0x18b2('0x109')]['getWalker'](),_0x528159=_0x4a6c0d[_0x18b2('0x109')][_0x18b2('0x61')],_0x3f1bd3=_0x33d201[_0x18b2('0xfb')]['schema'];let _0x34445e=null,_0x33d4a2=null,_0x2bd5c=!0x1,_0x18a873=!0x1;for(const _0x2357f6 of _0x452ae4){const _0x5904e6=_0x2357f6[_0x18b2('0x3b')];_0x2bd5c=_0x2bd5c||_0x3f1bd3[_0x18b2('0xce')](_0x5904e6);const _0x42e246=_0x3658dc[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5904e6);if(_0x42e246&&_0x42e246[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x2357f6[_0x18b2('0x68')]&&(_0x3f1bd3[_0x18b2('0x1f')](_0x5904e6)&&!_0x3f1bd3[_0x18b2('0x8a')](_0x5904e6)&&(_0x5904e6['nextSibling']||_0x528159[_0x18b2('0x118')]?_0x34445e&&_0x34445e[_0x18b2('0x62')]==_0x5904e6||(_0x34445e=_0x5904e6,_0x5683ee(_0x2357f6[_0x18b2('0x11b')]),_0x18a873=!0x0):_0x33d4a2=_0x33d4a2||_0x2357f6[_0x18b2('0x11b')]));}function _0x5683ee(_0x326e98){const _0x195521=_0x3658dc[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-marker-'+_0x407448}),_0x2131c5=_0x3658dc['mapper'][_0x18b2('0x75')](_0x326e98);_0x1f5c35[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x407448+_0x18b2('0x52'),_0x195521),_0x1408cf[_0x18b2('0x111')]==_0x1f5c35&&_0x3658dc[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0xd9'),_0x195521),_0x3658dc[_0x18b2('0x102')][_0x18b2('0x88')](_0x2131c5,_0x195521),_0x3658dc[_0x18b2('0x1c')]['bindElementToMarker'](_0x195521,_0x4a6c0d[_0x18b2('0xfc')]);}_0x2bd5c||_0x18a873||!_0x33d4a2||_0x5683ee(_0x33d4a2);};}(this[_0x18b2('0xe0')]),{'priority':_0x18b2('0x53')}),this[_0x18b2('0xe0')]['editing'][_0x18b2('0x90')]['on']('removeMarker:revision',(_0x4dedb2,_0x227dd4,_0x494ffa)=>{const _0xea77fd=_0x494ffa[_0x18b2('0x1c')]['markerNameToElements'](_0x227dd4['markerName']);if(_0xea77fd)for(const _0x3de989 of _0xea77fd)(_0x3de989['hasClass'](_0x18b2('0x1a'))||_0x3de989['hasClass']('ck-suggestion-marker-merge'))&&(_0x494ffa[_0x18b2('0x1c')]['unbindElementFromMarkerName'](_0x3de989,_0x227dd4['markerName']),_0x494ffa[_0x18b2('0x102')][_0x18b2('0xf4')](_0x3de989));},{'priority':'high'}),this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf7'),(_0x1afbf6,_0x119e1f,_0x1f1bc2)=>{const _0x3c3ec7=_0x119e1f['markerName']['split'](':')[0x1],_0x3c2d85=this['_getChangeFromId'](_0x3c3ec7);if(!_0x3c2d85)return null;const _0x3473d4=_0x18b2('0x10e')==_0x3c2d85[_0x18b2('0x68')]?_0x18b2('0xd3'):_0x18b2('0x8e');if(_0x1f1bc2[_0x18b2('0xc')][_0x18b2('0xc1')](_0x119e1f['markerRange'],_0x1afbf6[_0x18b2('0xd1')]))for(const _0x164bb9 of _0x119e1f[_0x18b2('0x109')][_0x18b2('0x54')]()){if(!_0x164bb9['is'](_0x18b2('0xc8'),'softBreak'))continue;const _0x107f36=_0x1f1bc2['writer']['createUIElement'](_0x18b2('0x10f'),{'class':_0x18b2('0x77')+_0x3473d4}),_0x27c6f3=_0x1f1bc2['mapper'][_0x18b2('0x75')](this[_0x18b2('0xe0')][_0x18b2('0xfb')]['createPositionBefore'](_0x164bb9));_0x3c2d85[_0x18b2('0x8')][_0x18b2('0x64')]&&_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x83')](_0x18b2('0x77')+_0x3473d4+_0x18b2('0x52'),_0x107f36),this[_0x18b2('0x111')]==_0x3c2d85&&_0x1f1bc2[_0x18b2('0x102')]['addClass'](_0x18b2('0xd9'),_0x107f36),_0x1f1bc2[_0x18b2('0x102')][_0x18b2('0x88')](_0x27c6f3,_0x107f36),_0x1f1bc2[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x107f36,_0x119e1f[_0x18b2('0xfc')]);}},{'priority':'high'}),this['editor'][_0x18b2('0xfb')][_0x18b2('0xf8')]['on'](_0x18b2('0x33'),()=>{this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0x33')](_0xc9de69=>{for(const _0x5be9db of this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')]['getRootNames']()){const _0x44c1e0=this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0xf8')][_0x18b2('0x28')](_0x5be9db),_0x5513bb=this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')]['getRoot'](_0x5be9db);if(_0x5513bb){const _0x2af9c4=_0x44c1e0['getAttribute']('revisionHistoryAttachChange');if(_0xc9de69[_0x18b2('0xe7')](_0x18b2('0x4e'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0xcf'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')](_0x18b2('0x10d'),_0x5513bb),_0xc9de69[_0x18b2('0xa6')]('ck-revision-history-root--active',_0x5513bb),_0x2af9c4){const _0x19b734=this['_getChangeFromId'](_0x2af9c4);if(!_0x19b734)return null;_0xc9de69[_0x18b2('0x42')](_0x18b2('0x4e'),_0x2af9c4,_0x5513bb),_0xc9de69[_0x18b2('0x83')]('ck-revision-history-root-'+_0x19b734[_0x18b2('0x68')],_0x5513bb),this[_0x18b2('0x111')]==_0x19b734&&_0xc9de69[_0x18b2('0x83')](_0x18b2('0x4c'),_0x5513bb);}}}});}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')]('upcast')[_0x18b2('0x43')]({'view':_0x18b2('0x69'),'model':_0x23b3ce=>_0x18b2('0x107')+_0x23b3ce,'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')][_0x18b2('0x6c')](_0x18b2('0x110'))['dataToMarker']({'view':_0x18b2('0x9c'),'model':_0x55ea98=>_0x18b2('0x3a')+_0x55ea98,'converterPriority':_0x18b2('0xfe')}),this['editor'][_0x18b2('0xdd')][_0x18b2('0x6c')]('dataDowncast')[_0x18b2('0x96')]({'model':'revision-suggestion','view':_0x455f7d=>({'name':_0x18b2('0xcc')+_0x455f7d,'group':_0x18b2('0x100')}),'converterPriority':_0x18b2('0xfe')}),this[_0x18b2('0xe0')][_0x18b2('0xdd')]['for'](_0x18b2('0x31'))[_0x18b2('0x114')]({'model':_0x18b2('0x100'),'view':_0x549012=>{const _0x103878=_0x549012[_0x18b2('0xfc')][_0x18b2('0xd3')](':')[0x1];return _0x18b2('0x5b')!=_0x103878&&'deletion'!=_0x103878?null:{'classes':[_0x18b2('0xa5'),_0x18b2('0x70')+_0x103878]};}}),this[_0x18b2('0xe0')][_0x18b2('0x30')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Y(this[_0x18b2('0xe0')],_0x18b2('0x8e')),{'priority':_0x18b2('0x53')}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0xf9'),Y(this['editor'],'split'),{'priority':'high'}),this['editor'][_0x18b2('0x30')][_0x18b2('0x90')]['on'](_0x18b2('0x59'),(_0x4c9ef5,_0x42d562,_0xd0db9c)=>{const _0x3f7bfe=_0xd0db9c[_0x18b2('0x1c')][_0x18b2('0xb')](_0x42d562[_0x18b2('0xfc')]);if(_0x3f7bfe)for(const _0x2a1363 of _0x3f7bfe)_0x2a1363['is']('uiElement')&&(_0xd0db9c['mapper']['unbindElementFromMarkerName'](_0x2a1363,_0x42d562[_0x18b2('0xfc')]),_0xd0db9c[_0x18b2('0x102')][_0x18b2('0xf4')](_0x2a1363));},{'priority':_0x18b2('0x53')});}[_0x18b2('0x20')](_0x37f944){return this['_changeIdToChange'][_0x18b2('0xeb')](_0x37f944);}[_0x18b2('0x56')](_0x23d79e){return this[_0x18b2('0x5a')]&&this[_0x18b2('0x5a')][_0x18b2('0xaf')](),this[_0x18b2('0x5a')]=new _0x1321c7(this[_0x18b2('0xe0')][_0x18b2('0x113')],_0x23d79e),this[_0x18b2('0x5a')];}['_initInteractions'](){this[_0x18b2('0xe0')]['model'][_0x18b2('0xf8')][_0x18b2('0x6f')]['observeMarkers'](_0x18b2('0xef')),this['on']('change:activeView',(_0x3adfb3,_0x255255,_0x116786,_0x20a9db)=>{_0x20a9db&&this[_0x18b2('0x51')][_0x18b2('0xf4')](_0x20a9db),_0x116786&&(this[_0x18b2('0x51')][_0x18b2('0x10e')]({'view':_0x116786,'stackId':_0x18b2('0xd0'),'position':{'target':()=>{const _0x54e433=this['editor'][_0x18b2('0x30')],_0x2c44dc=this[_0x18b2('0x20')](_0x116786[_0x18b2('0x9a')]);let _0x11d5c2;if(_0x2c44dc[_0x18b2('0x8')][_0x18b2('0x5c')]){const _0x77dcc0=_0x54e433[_0x18b2('0xd6')]['getDomRoot'](_0x2c44dc[_0x18b2('0xaa')]);_0x11d5c2=Array['from'](_0x77dcc0[_0x18b2('0x35')]());}else{const _0x5a1901=this[_0x18b2('0xe0')]['model'][_0x18b2('0x38')][_0x18b2('0xeb')](_0x18b2('0xf5')+_0x116786[_0x18b2('0x9a')]);_0x11d5c2=Array[_0x18b2('0x7c')](_0x54e433[_0x18b2('0x1c')][_0x18b2('0xb')](_0x5a1901[_0x18b2('0xd1')]))[_0x18b2('0x98')](_0x2b2240=>_0x54e433[_0x18b2('0xd6')][_0x18b2('0x23')]['mapViewToDom'](_0x2b2240))[_0x18b2('0x98')](_0x5b090c=>Array['from'](_0x5b090c[_0x18b2('0x35')]()))[_0x18b2('0xb5')]();}if(!this[_0x18b2('0xff')])return _0x11d5c2[0x0];return _0x11d5c2[_0x18b2('0x7f')](_0x27a3dc=>_0x27a3dc[_0x18b2('0xea')]-0x3<=this[_0x18b2('0xff')]['y']&&_0x27a3dc['bottom']+0x3>=this[_0x18b2('0xff')]['y']&&_0x27a3dc['left']-0x3<=this[_0x18b2('0xff')]['x']&&_0x27a3dc[_0x18b2('0xc3')]+0x3>=this[_0x18b2('0xff')]['x'])||_0x11d5c2[0x0];}}}),this['_balloon'][_0x18b2('0x105')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x356f2d,_0x4b81c4,_0x305c5e,_0x23039b)=>{this[_0x18b2('0xc0')]=_0x305c5e?this[_0x18b2('0x56')](_0x305c5e):null,this[_0x18b2('0xe0')][_0x18b2('0xfb')]['change'](()=>{const _0x122615=this[_0x18b2('0xe0')][_0x18b2('0x30')];_0x23039b&&(_0x23039b[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x24bf14=>{_0x24bf14[_0x18b2('0xa6')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x23039b[_0x18b2('0xaa')]));}):_0x122615[_0x18b2('0x66')]('revision:'+_0x23039b['id'])),_0x305c5e&&(_0x305c5e[_0x18b2('0x8')][_0x18b2('0x5c')]?_0x122615[_0x18b2('0xd6')][_0x18b2('0x33')](_0x52c2f1=>{_0x52c2f1[_0x18b2('0x83')](_0x18b2('0x4c'),_0x122615[_0x18b2('0xd6')]['document'][_0x18b2('0x28')](_0x305c5e['rootName']));}):_0x122615[_0x18b2('0x66')](_0x18b2('0xf5')+_0x305c5e['id']));});}),this['listenTo'](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')]['document'],_0x18b2('0xbd'),(_0x2de010,_0x4afdc8)=>{if(this[_0x18b2('0x111')])return;const _0x4b5375=this[_0x18b2('0xe8')](_0x4afdc8[_0x18b2('0xed')]),_0xadadd2=this[_0x18b2('0xad')][_0x18b2('0xeb')](_0x4b5375);_0xadadd2?(this[_0x18b2('0xff')]={'x':_0x4afdc8['domEvent']['x'],'y':_0x4afdc8[_0x18b2('0x2a')]['y']},this['activeView']=this[_0x18b2('0x56')](_0xadadd2)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x18b2('0xe3')](this[_0x18b2('0xe0')][_0x18b2('0x30')][_0x18b2('0xd6')][_0x18b2('0xf8')],_0x18b2('0xb7'),(_0x4a1cb2,_0x5e0f2e)=>{const _0x3fe33e=this['_findChangeIdFromDomTarget'](_0x5e0f2e[_0x18b2('0xed')]),_0x33db06=this['_changeIdToChange'][_0x18b2('0xeb')](_0x3fe33e);_0x33db06?(this['_activeViewTarget']={'x':_0x5e0f2e['domEvent']['x'],'y':_0x5e0f2e['domEvent']['y']},_0x33db06===this[_0x18b2('0x111')]?this[_0x18b2('0x51')][_0x18b2('0x12')]():this[_0x18b2('0x111')]=_0x33db06):(this[_0x18b2('0xff')]=null,this[_0x18b2('0x111')]=null);});}['_findChangeIdFromDomTarget'](_0x5a697c){do{const _0x1b2b83=_0x5a697c[_0x18b2('0x8f')]('data-change-id');if(_0x1b2b83)return _0x1b2b83;_0x5a697c=_0x5a697c[_0x18b2('0x62')];}while(_0x5a697c);return null;}[_0x18b2('0xf1')](){this[_0x18b2('0xe0')][_0x18b2('0xfb')][_0x18b2('0x33')](_0x44fc51=>{for(const _0x400d02 of this[_0x18b2('0xe0')]['model']['markers'])_0x44fc51[_0x18b2('0x39')](_0x400d02);});}}function Y(_0x3adefc,_0x3c752c){return(_0xc08dfd,_0x54c8de,_0x1f6d59)=>{if(!_0x1f6d59[_0x18b2('0xc')][_0x18b2('0xc1')](_0x54c8de[_0x18b2('0x109')],_0xc08dfd[_0x18b2('0xd1')]))return;const _0x21be28=_0x54c8de[_0x18b2('0x109')][_0x18b2('0xdf')](),_0x4a4dc1=_0x54c8de[_0x18b2('0x109')][_0x18b2('0x61')],_0x3b4b3d=_0x3adefc[_0x18b2('0xfb')][_0x18b2('0x26')];let _0xb68306=null,_0x44fb30=null,_0x336286=!0x1,_0x4b9b64=!0x1;for(const _0x26f472 of _0x21be28){const _0x5528fe=_0x26f472[_0x18b2('0x3b')];_0x336286=_0x336286||_0x3b4b3d[_0x18b2('0xce')](_0x5528fe);const _0x4c2ecb=_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0x5e')](_0x5528fe);if(_0x4c2ecb&&_0x4c2ecb[_0x18b2('0xa7')](_0x18b2('0xc9')))return;_0x18b2('0xa8')==_0x26f472[_0x18b2('0x68')]&&(_0x3b4b3d[_0x18b2('0x1f')](_0x5528fe)&&!_0x3b4b3d[_0x18b2('0x8a')](_0x5528fe)&&(_0x5528fe[_0x18b2('0x6a')]||_0x4a4dc1[_0x18b2('0x118')]?_0xb68306&&_0xb68306[_0x18b2('0x62')]==_0x5528fe||(_0xb68306=_0x5528fe,_0x18e501(_0x26f472[_0x18b2('0x11b')]),_0x4b9b64=!0x0):_0x44fb30=_0x44fb30||_0x26f472[_0x18b2('0x11b')]));}function _0x18e501(_0x17227b){const _0x1870f8=_0x1f6d59['mapper'][_0x18b2('0x75')](_0x17227b),_0x1f5020=_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x5d')](_0x18b2('0x10f'),{'class':'ck-suggestion-preview-marker-'+_0x3c752c});_0x1f6d59[_0x18b2('0x102')][_0x18b2('0x88')](_0x1870f8,_0x1f5020),_0x1f6d59[_0x18b2('0x1c')][_0x18b2('0xb9')](_0x1f5020,_0x54c8de[_0x18b2('0xfc')]);}_0x336286||_0x4b9b64||!_0x44fb30||_0x18e501(_0x44fb30);};}export class RestoreRevisionCommand extends _0xcfbd88{constructor(_0x533371){super(_0x533371);const _0x5d2db9=_0x533371['plugins'][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this[_0x18b2('0xe3')](_0x5d2db9,_0x18b2('0x91'),()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x5d2db9,'change:isEnabled',()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x2e1c80=this[_0x18b2('0xe0')],_0x2db514=_0x2e1c80[_0x18b2('0x106')][_0x18b2('0xeb')](w),_0x4b09d2=_0x2db514[_0x18b2('0xda')]?_0x2db514[_0x18b2('0x5')][_0x18b2('0xd7')]:null;_0x2e1c80['config'][_0x18b2('0xeb')]('revisionHistory')[_0x18b2('0xa2')](_0x4b09d2);}[_0x18b2('0x37')](){const {isReady:_0x553991,isEnabled:_0x1e4a25}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=_0x553991&&_0x1e4a25;}}export class ShowChangeCommand extends _0xcfbd88{constructor(_0x149836,{direction:_0x375cbe}){super(_0x149836);const _0x55887f=_0x149836[_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0x87')]=!0x1,this['_step']='forward'===_0x375cbe?0x1:-0x1,this[_0x18b2('0xe3')](_0x55887f,'change:isReady',()=>this[_0x18b2('0x37')]()),this[_0x18b2('0xe3')](_0x55887f,_0x18b2('0x36'),()=>this[_0x18b2('0x37')]());}[_0x18b2('0x10c')](){const _0x111a52=this[_0x18b2('0xe0')],_0x260bc0=_0x111a52[_0x18b2('0x106')][_0x18b2('0xeb')](w),{isNavigationMode:_0x33076b,currentChangeNumber:_0x271b77}=_0x260bc0;let _0x3ed00e;if(_0x260bc0[_0x18b2('0x111')]=_0x33076b?_0x260bc0[_0x18b2('0x5')]['changes'][_0x18b2('0xeb')](_0x271b77+this[_0x18b2('0x8b')]):_0x260bc0['diff'][_0x18b2('0xc7')][_0x18b2('0x8d')],_0x260bc0['activeChange']['data'][_0x18b2('0x5c')])_0x3ed00e=_0x111a52[_0x18b2('0x30')][_0x18b2('0xd6')]['getDomRoot'](_0x260bc0[_0x18b2('0x111')][_0x18b2('0xaa')]);else{const _0x247a2b=_0x111a52[_0x18b2('0xfb')]['markers']['get']('revision:'+_0x260bc0[_0x18b2('0x111')]['id']);_0x3ed00e=_0x4ee7ef(_0x111a52['editing'],_0x247a2b);}_0x413986({'target':_0x3ed00e,'viewportOffset':0x28});}[_0x18b2('0x37')](){const {isNavigationMode:_0x36d1f8,currentChangeNumber:_0x2d8682,numberOfChanges:_0x112863,isReady:_0x257beb,isEnabled:_0x15efb2}=this[_0x18b2('0xe0')][_0x18b2('0x106')][_0x18b2('0xeb')](w);this[_0x18b2('0xfa')]=!!(_0x15efb2&&_0x257beb&&_0x112863)&&(!_0x36d1f8||(0x1===this[_0x18b2('0x8b')]?_0x2d8682<_0x112863-0x1:_0x2d8682>0x0));}}
|
|
23
|
+
const _0x3a7d=['rootName','ck-suggestion-marker-','pairId','target','RevisionViewer','hasClass','_balloon','requires','_changeIdToChange','abs','attributes','keys','processor','addMarker:revision','toModel','vid_end','nodeAfter','_sortAndFilterDiffChanges','parse','ck-revision-history-root-add','getDomRoot','listenTo','then','domConverter','observeMarkers','_makeModelFromViewString','get','restoreRevision','model','uiElement','checkAttribute','upcast','insertions','conversion','destroy','ck-suggestion-marker--active','showNextChange','ck-revision-history-root--active','enableReadOnlyMode','nextSibling','addRevision','unshift','next','isAdded','split','deletion','enqueueChange','item','toData','children','changeId','highest','_markMismatchedRemovedTags','markerToData','deletions','addHighlight','indexOf','addRevisionData','dataDowncast','concat','splice','view','suggestion:','downcastDispatcher','_getDiff','revision','plugins','isAtStart','consume','attributesAfter','oldRevisionId','slice','previousPosition','isBefore','element:pre','roots','offsetSize','type','_getViewObj','elementStart','isNavigationMode','index','return','attachChange','revision-viewer','low','bind','revisionHistoryAttachChange','high','data-revision-','elementEnd','_getChangeFromId','addMarker:revision-suggestion:insertion','isObject','POSITIVE_INFINITY','markerToHighlight','execute','editing','isAttached','ck-suggestion-preview-marker','document','getWalker','ck-editor__editable__overlay','set','ck-revision-history-root-','_threeWayMerge','flat','startIndex','changes','name','_getRevisionsRange','removeMarker:revision','_removeMissingPairs','sort','delete','revision-suggestion','distance','pluginName','map','unbindElementFromMarkerName','_getViewForChange','getAttribute','revision:','forward','comment','isContent','removeAttribute','markerName','_removeRevisionMarkers','range','removeClass','_fixObsoleteTags','useFillerType','insertion','activeView','setAttribute','isRemoveSuggestion','error','change','string','toViewPosition','activeChange','_changeView','for','_processTape','isCollapsed','init','markerRange','endIndex','locale','createRange','ck-suggestion-marker-split','addClass','from','isAfter','isRemoved','test','getRoot','vid','start','filter','_findChangeIdFromDomTarget','text','compare','isIncorrect','getChild','editingDowncast','isReady','revisionHistoryLabel','_activeViewTarget','_update','length','numberOfChanges','createPositionBefore','markersEnd','_refreshStartEndIndex','isAddSuggestion','remove','loadRevisionData','all','nextPosition','data','level','_appendChild','_step','reconvertMarker','change:isEnabled','add','createAttributeElement','bindElementToMarker','_cleanUp','mapper','isInline','shift','config','mouseover','bottom','userId','getRootNames','change:isReady','getRevision','adapter','softBreak','addMarker:revision-suggestion:deletion','schema','revisionHistory','_data','dataToMarker','wrap','consumable','createPositionFromPath','includes','domEvent','getCustomProperty','detachRoot','has','startsWith','isOnRoot','isEqual','data-change-id','_removeUnsupportedChanges','viewItem','getRevisionData','markerNameToElements','_markSuggestions','element','addRoot','diff','_makeTape','end','getItems','span','attributesBefore','commands','getAttributes','getIndex','_markInsertions','collaboration.channelId','_initInteractions','getClientRects','change:activeView','createRevision','side','WidgetToolbarRepository','newRevisionId','forEach','revision-comment:','change:numberOfChanges','isBlock','refresh','diffData','_markMarkers','markersStart','attribute:vid','maxOffset','marked','findIndex','insert','toViewElement','isLimit','right','hasAttribute','isSuggestion','_cleanMarkers','_makeModelFromTape','markers','updatePosition','isEnabled','createRangeIn','_setDistance','createUIElement','_setConversion','-new','resolve','pop','writer','merge','modelRange','ck-suggestion-preview-marker-','repository','parent','selection','push','affectsData','editor','vid_start','authors','mapViewToDom'];(function(_0x106a06,_0x3a7dd8){const _0x2740d9=function(_0x63b02e){while(--_0x63b02e){_0x106a06['push'](_0x106a06['shift']());}};_0x2740d9(++_0x3a7dd8);}(_0x3a7d,0xa8));const _0x2740=function(_0x106a06,_0x3a7dd8){_0x106a06=_0x106a06-0x0;let _0x2740d9=_0x3a7d[_0x106a06];return _0x2740d9;};import{Plugin as _0x5c7b28,Command as _0x1ea961}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x226e14}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5b0197}from'ckeditor5/src/ui';import{DocumentFragment as _0x434b7b,Element as _0x3cc323,Text as _0x14e401,ViewDocumentFragment as _0xb3ff24,ViewText as _0xf22689,ViewElement as _0x272dd6,ViewContainerElement as _0x4b9b94,ViewAttributeElement as _0x35588d,ViewEmptyElement as _0x443c5f,ViewRawElement as _0xfd704b,ViewUIElement as _0x2f6f25}from'ckeditor5/src/engine';import{Users as _0x48d13e,getMarkerDomElement as _0x579c97}from'ckeditor5-collaboration/src/collaboration-core';import _0x376852 from'./ui/revisionviewer/changedetailsview';import _0x367d49 from'./revisionsrepository';import _0x699e92 from'./changeitem';import{default as _0x325185}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x290fc3}from'lodash-es';const X={'c':_0x4b9b94,'a':_0x35588d,'e':_0x443c5f,'r':_0xfd704b,'u':_0x2f6f25};export default class w extends _0x5c7b28{static get[_0x2740('0xed')](){return _0x2740('0x7c');}static get[_0x2740('0x7f')](){return[_0x48d13e,_0x5b0197,_0x367d49];}constructor(_0x311cdd){super(_0x311cdd),this[_0x2740('0x6f')]=this['editor'][_0x2740('0xba')][_0x2740('0x92')]('RevisionsRepository'),this[_0x2740('0xdf')](_0x2740('0x105'),null),this[_0x2740('0xdf')]('activeView',null),this[_0x2740('0x1')]=null,this[_0x2740('0xdf')](_0x2740('0x3b'),null),this[_0x2740('0xdf')](_0x2740('0x11f'),!0x1),this[_0x2740('0xdf')]('isEnabled',!0x0),this['on'](_0x2740('0x12'),(_0xdd18f8,_0x5b500b,_0x396373)=>{this[_0x2740('0x105')]=null,this[_0x2740('0xfe')]=null,this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0x102')](_0x45aaee=>{for(const _0x464496 of this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')][_0x2740('0xc3')])_0x396373?_0x45aaee[_0x2740('0xfa')](_0x2740('0xde'),_0x464496):_0x45aaee[_0x2740('0x110')]('ck-editor__editable__overlay',_0x464496);});}),this[_0x2740('0xce')](_0x2740('0xc8'))['to'](this,'activeChange',_0x3d0240=>null!==_0x3d0240),this[_0x2740('0xce')]('currentChangeNumber')['to'](this,_0x2740('0x11f'),this,_0x2740('0x3b'),this,_0x2740('0x105'),(_0x52159f,_0x1c2d1d,_0x41345a)=>_0x52159f&&_0x41345a?_0x1c2d1d['changes'][_0x2740('0x43')](_0x41345a):0x0),this[_0x2740('0xce')](_0x2740('0x4'))['to'](this,_0x2740('0x11f'),this,_0x2740('0x3b'),(_0x47ab79,_0x234a31)=>_0x47ab79?_0x234a31[_0x2740('0xe4')]['length']:0x0),this['_changeView']=null,this[_0x2740('0x80')]=new Map(),this[_0x2740('0x21')]=null,this[_0x2740('0x7e')]=this[_0x2740('0x74')][_0x2740('0xba')][_0x2740('0x92')](_0x5b0197);}[_0x2740('0x10a')](){const _0x1f09c3=this[_0x2740('0x74')],_0x241295=new ShowChangeCommand(_0x1f09c3,{'direction':'backward'}),_0x3a3529=new ShowChangeCommand(_0x1f09c3,{'direction':_0x2740('0xf3')});(_0x1f09c3[_0x2740('0x41')][_0x2740('0x13')]('showPreviousChange',_0x241295),_0x1f09c3[_0x2740('0x41')][_0x2740('0x13')](_0x2740('0x9c'),_0x3a3529),_0x1f09c3[_0x2740('0x41')]['add'](_0x2740('0x93'),new RestoreRevisionCommand(_0x1f09c3)),this['on'](_0x2740('0x4f'),()=>{_0x241295[_0x2740('0x51')](),_0x3a3529[_0x2740('0x51')]();}),this[_0x2740('0x67')](),this[_0x2740('0x46')](),_0x1f09c3[_0x2740('0x9e')](_0x2740('0xcc')),_0x1f09c3[_0x2740('0xba')][_0x2740('0x2f')]('WidgetToolbarRepository'))&&_0x1f09c3[_0x2740('0xba')]['get'](_0x2740('0x4b'))['forceDisabled'](_0x2740('0xcc'));}async[_0x2740('0x36')](_0x55a280){await this['loadRevisionData'](_0x55a280);const _0x4c5ef8={};for(const _0x1f0d86 in _0x55a280[_0x2740('0x52')]){if(_0x55a280['diffData'][_0x1f0d86][_0x2740('0xcb')]&&!_0x55a280['diffData'][_0x1f0d86][_0x2740('0xcb')][_0x2740('0xda')])continue;const _0x945c4a=this[_0x2740('0xf8')](JSON[_0x2740('0x8a')](_0x55a280['diffData'][_0x1f0d86][_0x2740('0x98')])),_0x57c909=this[_0x2740('0x74')][_0x2740('0xd9')]['view'][_0x2740('0xdc')],_0x24db17=new _0xb3ff24(_0x57c909,_0x945c4a[_0x2740('0xee')](_0x2b90ab=>this[_0x2740('0xc6')](_0x2b90ab)));this['editor'][_0x2740('0xd')][_0x2740('0x84')][_0x2740('0xfc')](_0x2740('0x57')),_0x4c5ef8[_0x1f0d86]=this[_0x2740('0x74')][_0x2740('0xd')][_0x2740('0x84')][_0x2740('0xa8')](_0x24db17),this[_0x2740('0x74')][_0x2740('0xd')][_0x2740('0x84')]['useFillerType']('default');}return _0x4c5ef8;}async['getRevisionRootsAttributes'](_0x2cde35){await this[_0x2740('0xa')](_0x2cde35);const _0x3461c3={};for(const _0x55418d in _0x2cde35['diffData'])_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xcb')]&&!_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xcb')]['isAttached']||(_0x3461c3[_0x55418d]=_0x2cde35[_0x2740('0x52')][_0x55418d][_0x2740('0xbd')]||{});return _0x3461c3;}[_0x2740('0xf8')](_0x571230){return(_0x571230=_0x571230[_0x2740('0x118')](_0x4d8901=>!_0x4d8901[_0x2740('0xe5')]||'revision-start'!==_0x4d8901['name']&&'revision-end'!==_0x4d8901[_0x2740('0xe5')]))['forEach'](_0x5f7fa6=>{_0x2740('0x103')!=typeof _0x5f7fa6&&(_0x5f7fa6[_0x2740('0xa9')]=this[_0x2740('0xf8')](_0x5f7fa6[_0x2740('0xa9')]),_0x5f7fa6['attributes']=_0x5f7fa6[_0x2740('0x82')][_0x2740('0x118')](_0x3a4a63=>!_0x3a4a63[0x0][_0x2740('0x30')](_0x2740('0xd1'))));}),_0x571230;}async[_0x2740('0x11b')](_0x541a9e,_0x4f23ce,_0x49c095=!0x1){if(!this['isEnabled'])return;const _0x52d2ae=this[_0x2740('0x3b')],_0x4ab82f=this[_0x2740('0x6f')],_0xf1547a=_0x2740('0x103')==typeof _0x541a9e?_0x4ab82f[_0x2740('0x20')](_0x541a9e):_0x541a9e,_0x1cace4=_0x2740('0x103')==typeof _0x4f23ce?_0x4ab82f['getRevision'](_0x4f23ce):_0x4f23ce,_0x307dd3=_0xf1547a['id'],_0x553ff9=_0x1cace4?_0x1cace4['id']:null;if(!_0x49c095&&this[_0x2740('0x3b')]&&this['diff']['newRevisionId']===_0x307dd3&&this['diff'][_0x2740('0xbe')]===_0x553ff9)return Promise[_0x2740('0x69')]();this[_0x2740('0x11f')]=!0x1,this['activeView']=null,this[_0x2740('0x105')]=null,this[_0x2740('0x3b')]=new _0x325185(_0x307dd3,_0x553ff9);const _0x3995a7=this[_0x2740('0xe6')](_0xf1547a,_0x1cace4,!0x0)[_0x2740('0xee')](_0x1efc33=>this[_0x2740('0xa')](_0x1efc33));return _0x3995a7[_0x2740('0x72')](new Promise(_0x5fca7e=>{setTimeout(_0x5fca7e,0x14);})),Promise[_0x2740('0xb')](_0x3995a7)['then'](()=>{if(!this[_0x2740('0x63')])return;this[_0x2740('0x16')]();const _0x1bf673=this[_0x2740('0xb8')](_0x307dd3,_0x553ff9);for(const _0x33c7b0 of _0x1bf673['changes'])this[_0x2740('0x80')][_0x2740('0xdf')](_0x33c7b0['id'],_0x33c7b0);this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0xa6')]({'isUndoable':!0x1},_0x22408c=>{for(const _0x3fe96c of this[_0x2740('0x74')][_0x2740('0x94')]['document']['getRootNames']())_0x22408c[_0x2740('0x2e')](_0x3fe96c);for(const _0x3cd381 of Object['keys'](_0x1bf673['model'])){const _0xbe5519=_0x22408c[_0x2740('0x3a')](_0x3cd381);for(const _0x462fef of Object[_0x2740('0x83')](_0x1bf673[_0x2740('0x82')][_0x3cd381]))_0x22408c['setAttribute'](_0x462fef,_0x1bf673['attributes'][_0x3cd381][_0x462fef],_0xbe5519);_0x22408c[_0x2740('0x59')](_0x1bf673['model'][_0x3cd381],_0xbe5519,0x0);}}),this['diff']['_setChanges'](this[_0x2740('0x89')](_0x1bf673['changes'])),this[_0x2740('0x11f')]=!0x0;})['catch'](_0x50ca43=>{console[_0x2740('0x101')](_0x50ca43),this['_cleanUp'](),_0x52d2ae&&(this[_0x2740('0x3b')]=_0x52d2ae),this[_0x2740('0x11f')]=!0x0;});}[_0x2740('0xb1')](_0x138176,_0xc7b026){const _0x30589a=this[_0x2740('0x6f')][_0x2740('0x49')](_0x138176);return _0x30589a['on']('_update',(_0x28bf6b,_0x216e23,_0xe3cdd5)=>_0xc7b026(_0x216e23,_0xe3cdd5,_0x30589a)),this['repository'][_0x2740('0xa0')](_0x30589a),_0x30589a;}[_0x2740('0xa')](_0x227216){if(!_0x227216||_0x227216[_0x2740('0x52')])return Promise['resolve']();{const _0x54c526=this[_0x2740('0x74')][_0x2740('0x1a')][_0x2740('0x92')](_0x2740('0x45'));return this['adapter'][_0x2740('0x20')]({'channelId':_0x54c526,'revisionId':_0x227216['id']})[_0x2740('0x8e')](_0xa52b9a=>{_0x227216[_0x2740('0x2')]({'diffData':_0xa52b9a['diffData']},!0x0);});}}[_0x2740('0x16')](){this[_0x2740('0x105')]=null,this[_0x2740('0x5f')](),this[_0x2740('0x106')]&&this[_0x2740('0x106')]['destroy'](),this[_0x2740('0x106')]=null,this[_0x2740('0x80')]['clear'](),this['editor'][_0x2740('0x94')][_0x2740('0xa6')]({'isUndoable':!0x1},_0x5bc658=>{for(const _0x1f52d2 of this['editor'][_0x2740('0x94')]['document'][_0x2740('0x1e')]())_0x5bc658[_0x2740('0x2e')](_0x1f52d2);});}[_0x2740('0x89')](_0x598bef){const _0x1e5524=[],_0x3189b1=new Map();for(const _0x467b1d of this[_0x2740('0x74')][_0x2740('0x94')]['document']['getRootNames']()){const _0x1885d4=this[_0x2740('0x74')]['editing']['view']['getDomRoot'](_0x467b1d);if(!_0x1885d4)continue;const _0x5cf9a4=_0x1885d4[_0x2740('0x47')]()[_0x2740('0xa7')](0x0);_0x5cf9a4&&(_0x1e5524[_0x2740('0x72')](_0x467b1d),_0x3189b1[_0x2740('0xdf')](_0x467b1d,_0x5cf9a4));}return _0x1e5524['sort']((_0x1ac543,_0x2b8eb7)=>{const _0x3660a9=_0x3189b1['get'](_0x1ac543),_0x404005=_0x3189b1[_0x2740('0x92')](_0x2b8eb7);return _0x3660a9['y']-_0x404005['y']||_0x3660a9['x']-_0x404005['x'];}),(_0x598bef=_0x598bef[_0x2740('0x118')](_0x3e3637=>_0x1e5524[_0x2740('0x2b')](_0x3e3637[_0x2740('0x78')])))['sort']((_0x30aa98,_0xf7561a)=>_0x1e5524[_0x2740('0xb0')](_0x30aa98[_0x2740('0x78')])-_0x1e5524['indexOf'](_0xf7561a[_0x2740('0x78')])),_0x598bef;}[_0x2740('0x3c')](_0x2fc39c){const _0x257b49=Array['from'](_0x2fc39c[_0x2740('0x61')])[_0x2740('0x118')](([_0x3d913b,_0x1fae76])=>_0x3d913b[_0x2740('0x30')]('revision:')&&!_0x1fae76['isCollapsed']),_0x5eecf1=Array['from'](this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x64')](_0x2fc39c)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x257b49[_0x2740('0x3')])for(const _0x4661bf of _0x5eecf1){const [_0x534386,_0x4f4088]=_0x257b49[0x0],[,_0xaf62a0,_0x56f431]=_0x534386[_0x2740('0xa4')](':');if(_0x4f4088[_0x2740('0x3d')]['isEqual'](_0x4661bf['nextPosition'])&&_0x257b49[_0x2740('0x19')](),(_0x4661bf[_0x2740('0xc0')][_0x2740('0x32')](_0x4f4088[_0x2740('0x117')])||_0x4661bf[_0x2740('0xc0')][_0x2740('0x112')](_0x4f4088[_0x2740('0x117')]))&&('insertion'==_0xaf62a0?_0x4661bf[_0x2740('0xa3')]={'userId':_0x56f431}:_0x2740('0xa5')==_0xaf62a0&&(_0x4661bf[_0x2740('0x113')]={'userId':_0x56f431})),0x0==_0x257b49['length'])break;}return _0x5eecf1;}['_refreshStartEndIndex'](_0x4e5153){const _0x66aab9=new Map();for(let _0x1b4a86=0x0;_0x1b4a86<_0x4e5153[_0x2740('0x3')];_0x1b4a86++)_0x2740('0x11a')===_0x4e5153[_0x1b4a86][_0x2740('0xc5')]?(_0x4e5153[_0x1b4a86][_0x2740('0xa7')][_0x2740('0xe3')]=_0x1b4a86,_0x4e5153[_0x1b4a86][_0x2740('0xa7')][_0x2740('0x10c')]=_0x1b4a86):(_0x2740('0xc7')===_0x4e5153[_0x1b4a86][_0x2740('0xc5')]?_0x4e5153[_0x1b4a86]['item'][_0x2740('0xe3')]=_0x1b4a86:'elementEnd'===_0x4e5153[_0x1b4a86]['type']&&(_0x4e5153[_0x1b4a86][_0x2740('0xa7')]['endIndex']=_0x1b4a86),_0x66aab9[_0x2740('0xdf')](_0x4e5153[_0x1b4a86]['id'],_0x1b4a86));for(const _0x348440 of _0x66aab9['values']())_0x2740('0xc7')===_0x4e5153[_0x348440][_0x2740('0xc5')]?_0x4e5153[_0x348440][_0x2740('0xa7')][_0x2740('0x10c')]=_0x66aab9[_0x2740('0x92')](_0x4e5153[_0x348440][_0x2740('0x7a')]):_0x2740('0xd2')===_0x4e5153[_0x348440][_0x2740('0xc5')]&&(_0x4e5153[_0x348440][_0x2740('0xa7')][_0x2740('0xe3')]=_0x66aab9[_0x2740('0x92')](_0x4e5153[_0x348440]['pairId']));}[_0x2740('0x108')](_0x29bffd){for(let _0x5ef277=0x0;_0x5ef277<_0x29bffd[_0x2740('0x3')];_0x5ef277++){if('elementStart'===_0x29bffd[_0x5ef277]['type'])_0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0xe3')]=_0x5ef277;else{if(_0x2740('0xd2')===_0x29bffd[_0x5ef277][_0x2740('0xc5')]){_0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0x10c')]=_0x5ef277;const _0x23cebb=_0x29bffd[_0x5ef277][_0x2740('0xa7')]['startIndex'];_0x29bffd[_0x23cebb][_0x2740('0x7a')]=_0x29bffd[_0x5ef277]['id'],_0x29bffd[_0x5ef277]['pairId']=_0x29bffd[_0x23cebb]['id'];}else _0x29bffd[_0x5ef277][_0x2740('0xa7')][_0x2740('0xe3')]=_0x5ef277,_0x29bffd[_0x5ef277]['item'][_0x2740('0x10c')]=_0x5ef277,_0x29bffd[_0x5ef277]['pairId']=null;}_0x29bffd[_0x5ef277]['markersStart']||(_0x29bffd[_0x5ef277][_0x2740('0x54')]=[],_0x29bffd[_0x5ef277]['markersEnd']=[]);}}[_0x2740('0x44')](_0x39a565,_0x32dba7){const _0x334c46=_0x39a565[_0x2740('0x118')](_0x43c660=>!_0x43c660[_0x2740('0xa3')]);for(let _0x37dd24=0x0;_0x37dd24<_0x32dba7[_0x2740('0x3')];_0x37dd24++)_0x32dba7[_0x37dd24][_0x2740('0xa3')]&&(_0x334c46[_0x37dd24][_0x2740('0xa3')]=_0x32dba7[_0x37dd24][_0x2740('0xa3')]);}['_makeModelFromViewString'](_0xe69602){const _0x5899c4=JSON['parse'](_0xe69602),_0x1afd55=this['editor'][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')],_0x2cc83d=new _0xb3ff24(_0x1afd55,_0x5899c4[_0x2740('0xee')](_0x1110a8=>this[_0x2740('0xc6')](_0x1110a8)));return this['editor'][_0x2740('0xd')][_0x2740('0x86')](_0x2cc83d);}[_0x2740('0xc6')](_0x55c45d){const _0x3e8495=this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0xdc')];if(_0x2740('0x103')==typeof _0x55c45d)return new _0xf22689(_0x3e8495,_0x55c45d);{const _0x2eb675=_0x55c45d[_0x2740('0xa9')][_0x2740('0xee')](_0x1be391=>this[_0x2740('0xc6')](_0x1be391));return new(X[_0x55c45d[(_0x2740('0xc5'))]]||_0x272dd6)(_0x3e8495,_0x55c45d[_0x2740('0xe5')],_0x55c45d[_0x2740('0x82')],_0x2eb675);}}[_0x2740('0xb8')](_0x4c1672,_0x37f9f=null){const _0x52f546=this[_0x2740('0x6f')]['getRevision'](_0x4c1672),_0x158925=_0x37f9f?this[_0x2740('0x6f')][_0x2740('0x20')](_0x37f9f):null,_0x42d249=this['_getRevisionsRange'](_0x52f546,_0x158925),_0xf1e3e0=_0x42d249[_0x42d249['length']-0x1],_0x543e20=new Map(),_0x175977={'model':{},'attributes':{},'changes':[]},_0x556cc7=new Set(),_0x394b90=new Map();for(let _0x5d0cef=_0x42d249[_0x2740('0x3')]-0x1;_0x5d0cef>=0x0;_0x5d0cef--){const _0x27819c=_0x42d249[_0x5d0cef];for(const _0x98b069 of Object['keys'](_0x27819c['diffData']))if(_0x27819c[_0x2740('0x52')][_0x98b069][_0x2740('0xcb')]){const _0x374cb0=_0x27819c[_0x2740('0x52')][_0x98b069][_0x2740('0xcb')];_0x374cb0[_0x2740('0xda')]?(_0x556cc7[_0x2740('0x13')](_0x98b069),_0x394b90[_0x2740('0x2f')](_0x98b069)&&_0x394b90[_0x2740('0x92')](_0x98b069)['userId']==_0x374cb0[_0x2740('0x1d')]?_0x394b90[_0x2740('0xea')](_0x98b069):_0x394b90[_0x2740('0xdf')](_0x98b069,_0x374cb0)):_0x394b90[_0x2740('0x2f')](_0x98b069)?(_0x556cc7[_0x2740('0xea')](_0x98b069),_0x394b90['delete'](_0x98b069)):(_0x556cc7[_0x2740('0x13')](_0x98b069),_0x394b90[_0x2740('0xdf')](_0x98b069,_0x374cb0));}else _0x556cc7[_0x2740('0x13')](_0x98b069);}for(const _0x28d2d6 of _0x556cc7){const _0x129646=_0x394b90[_0x2740('0x2f')](_0x28d2d6)&&!_0x394b90[_0x2740('0x92')](_0x28d2d6)['isAttached'];let _0x219681=_0x129646?_0x42d249[_0x2740('0x3')]-0x1:0x0;const _0x5468eb=_0x129646?-0x1:0x1;for(;_0x42d249[_0x219681];){const _0x17568d=_0x42d249[_0x219681];if(_0x17568d['diffData'][_0x28d2d6]){const _0x5e2276=_0x129646?_0x17568d[_0x2740('0x52')][_0x28d2d6][_0x2740('0x40')]:_0x17568d[_0x2740('0x52')][_0x28d2d6][_0x2740('0xbd')];_0x175977[_0x2740('0x82')][_0x28d2d6]=_0x5e2276?_0x290fc3(_0x5e2276):{};break;}_0x219681+=_0x5468eb;}}for(const _0x2a9f10 of _0x42d249){_0x2a9f10['model']={};for(const _0x447e9f of _0x2a9f10[_0x2740('0x76')])_0x543e20['set'](_0x447e9f['id'],_0x447e9f);for(const _0x1b7cf0 of _0x556cc7){const _0x52cdf5=_0x2a9f10[_0x2740('0x52')][_0x1b7cf0]?_0x2a9f10['diffData'][_0x1b7cf0][_0x2740('0x98')]:'[]',_0x450429=_0x2a9f10[_0x2740('0x52')][_0x1b7cf0]?_0x2a9f10[_0x2740('0x52')][_0x1b7cf0][_0x2740('0xae')]:'[]';_0x2a9f10[_0x2740('0x94')][_0x1b7cf0]={'insertions':this[_0x2740('0x91')](_0x52cdf5),'deletions':this[_0x2740('0x91')](_0x450429)};}}for(const _0x43efda of _0x556cc7){let _0xe17b5d=null,_0x151382=0x0;const _0x285699=new Map(Array[_0x2740('0x111')](_0x52f546[_0x2740('0x94')][_0x43efda][_0x2740('0x98')][_0x2740('0x61')])[_0x2740('0x118')](([_0x24b6cf])=>!_0x24b6cf[_0x2740('0x30')]('revision:')));let _0x316fec=0x0;for(const _0x125306 of _0x42d249){const _0x5b0a09=this[_0x2740('0x3c')](_0x125306[_0x2740('0x94')][_0x43efda]['insertions']);_0x125306==_0x52f546?(_0xe17b5d=_0x5b0a09,_0x151382=_0xe17b5d['length'],_0xe17b5d['forEach'](_0x112084=>{_0x112084['id']=_0x316fec++;}),this['_processTape'](_0xe17b5d)):this['_markInsertions'](_0xe17b5d,_0x5b0a09);const _0x485842=_0xe17b5d[_0x2740('0x118')](_0x4f1dfe=>!_0x4f1dfe[_0x2740('0xa3')])['map'](_0x3dd553=>_0x3dd553['id']);let _0x1f72de=0x0;const _0x1ab49d=this[_0x2740('0x3c')](_0x125306['model'][_0x43efda][_0x2740('0xae')]);_0x1ab49d[_0x2740('0x4d')](_0x12a686=>{_0x12a686['isRemoved']?_0x12a686['id']=_0x151382++:_0x12a686['id']=_0x485842[_0x1f72de++];}),this[_0x2740('0x108')](_0x1ab49d),this[_0x2740('0x65')](_0xe17b5d,_0x2740('0xa3')),this[_0x2740('0x65')](_0x1ab49d,'isRemoved'),_0x125306==_0x52f546&&this[_0x2740('0x53')](_0xe17b5d,_0x285699),_0xe17b5d=this['_joinTapes'](_0xe17b5d,_0x1ab49d),this[_0x2740('0x7')](_0xe17b5d),this[_0x2740('0x65')](_0xe17b5d,_0x2740('0x113'));}_0xe17b5d=_0xe17b5d['filter'](_0x26c2d6=>!(_0x26c2d6[_0x2740('0xa3')]&&_0x26c2d6[_0x2740('0x113')]));const _0x1e0f6c=new Map(_0xf1e3e0[_0x2740('0x94')][_0x43efda][_0x2740('0xae')][_0x2740('0x61')]),_0xd7bb5b=new Set(_0x285699[_0x2740('0x83')]());for(const _0x512180 of _0x1e0f6c['keys']())_0xd7bb5b[_0x2740('0xea')](_0x512180);this[_0x2740('0x38')](_0xe17b5d,_0xd7bb5b),this['_fixObsoleteTags'](_0xe17b5d),_0xe17b5d=this[_0x2740('0xe8')](_0xe17b5d),_0xe17b5d=this[_0x2740('0xac')](_0xe17b5d),_0xe17b5d=this[_0x2740('0x34')](_0xe17b5d);const {root:_0x31c8f9,changes:_0x26ba00}=this[_0x2740('0x60')](_0xe17b5d,_0x543e20,_0x43efda);_0x175977[_0x2740('0x94')][_0x43efda]=_0x31c8f9;const _0x125ce1=_0x394b90[_0x2740('0x92')](_0x43efda);if(_0x125ce1){const _0x28e68d=_0x543e20[_0x2740('0x92')](_0x125ce1[_0x2740('0x1d')]),_0x44b359=new _0x699e92({'author':_0x28e68d,'type':_0x125ce1[_0x2740('0xda')]?_0x2740('0x13'):_0x2740('0x9'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x43efda});_0x26ba00[_0x2740('0xa1')](_0x44b359),_0x175977['attributes'][_0x43efda][_0x2740('0xcf')]=_0x44b359['id'];}_0x175977[_0x2740('0xe4')]=_0x175977['changes'][_0x2740('0xb3')](_0x26ba00);}return _0x175977;}[_0x2740('0x53')](_0x2b47a9,_0x3dceec){for(let _0x31b615=0x0;_0x31b615<_0x2b47a9['length'];_0x31b615++)for(const [_0x4d2a34,_0x25106e]of _0x3dceec)_0x25106e[_0x2740('0x117')][_0x2740('0x32')](_0x2b47a9[_0x31b615][_0x2740('0xc0')])&&_0x2b47a9[_0x31b615]['markersStart'][_0x2740('0x72')](_0x4d2a34),_0x25106e['end'][_0x2740('0x32')](_0x2b47a9[_0x31b615][_0x2740('0xc')])&&_0x2b47a9[_0x31b615][_0x2740('0x6')]['push'](_0x4d2a34);}['_joinTapes'](_0xe9e543,_0x195499){let _0x30d10f=[],_0x416389=0x0,_0x5a0068=0x0;for(;_0x416389<_0xe9e543['length']||_0x5a0068<_0x195499[_0x2740('0x3')];){const _0x2b9b82=_0xe9e543[_0x416389]||{},_0x3b5e8b=_0x195499[_0x5a0068]||{};if(_0x2b9b82['id']==_0x3b5e8b['id'])_0x416389++,_0x5a0068++,_0x30d10f[_0x2740('0x72')](_0x2b9b82);else{if(_0x3b5e8b[_0x2740('0x113')]&&_0x2b9b82[_0x2740('0xa3')]){const {commonTape:_0x412d81,iEnd:_0x2410c2,jEnd:_0x1a0344}=this['_threeWayMerge'](_0xe9e543,_0x416389,_0x195499,_0x5a0068);_0x30d10f=_0x30d10f[_0x2740('0xb3')](_0x412d81),_0x416389=_0x2410c2,_0x5a0068=_0x1a0344;}else _0x3b5e8b[_0x2740('0x113')]?(_0x5a0068++,_0x30d10f[_0x2740('0x72')](_0x3b5e8b)):(_0x416389++,_0x30d10f['push'](_0x2b9b82));}}return _0x30d10f;}[_0x2740('0x38')](_0x1bdaa9,_0x305c38){const _0x5637e8=[];for(let _0x5723b9=0x0;_0x5723b9<_0x1bdaa9[_0x2740('0x3')];_0x5723b9++){for(let _0x47a5d3=0x0;_0x47a5d3<_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x2740('0x3')];_0x47a5d3++){const _0x83ae42=_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x47a5d3];if(!_0x305c38[_0x2740('0x2f')](_0x83ae42))continue;const {group:_0x511120,type:_0x1144de,authorId:_0x23b6df}=_0x394b0f(_0x83ae42);'revision-suggestion'!=_0x511120||'insertion'!=_0x1144de&&'deletion'!=_0x1144de||(_0x5637e8[_0x2740('0xa1')]({'type':_0x1144de,'name':_0x83ae42,'userId':_0x23b6df}),_0x1bdaa9[_0x5723b9][_0x2740('0x54')][_0x2740('0xb4')](_0x47a5d3,0x1),_0x47a5d3--);}_0x5c7a25(_0x1bdaa9[_0x5723b9]);for(let _0x4063b=0x0;_0x4063b<_0x1bdaa9[_0x5723b9][_0x2740('0x6')][_0x2740('0x3')];_0x4063b++){const _0x1a8d85=_0x1bdaa9[_0x5723b9][_0x2740('0x6')][_0x4063b];if(!_0x305c38[_0x2740('0x2f')](_0x1a8d85))continue;const {group:_0x37da36,type:_0x2f65f1}=_0x394b0f(_0x1a8d85);if(_0x2740('0xeb')!=_0x37da36||_0x2740('0xfd')!=_0x2f65f1&&_0x2740('0xa5')!=_0x2f65f1)continue;_0x1bdaa9[_0x5723b9]['markersEnd'][_0x2740('0xb4')](_0x4063b,0x1),_0x4063b--;const _0x4f19c2=_0x5637e8[_0x2740('0x58')](_0x77af21=>_0x77af21[_0x2740('0xe5')]==_0x1a8d85);_0x4f19c2>-0x1&&_0x5637e8['splice'](_0x4f19c2,0x1);}}function _0x394b0f(_0x5719ef){const _0x24303a=_0x5719ef[_0x2740('0xa4')](':');return{'group':_0x24303a[0x0],'type':_0x24303a[0x1],'subType':_0x24303a[_0x2740('0x3')]>=0x5?_0x24303a[0x2]:null,'id':_0x24303a[_0x2740('0x3')]<0x5?_0x24303a[0x2]:_0x24303a[0x3],'authorId':_0x24303a[_0x2740('0x3')]<0x5?_0x24303a[0x3]:_0x24303a[0x4],'markerCount':0x6==_0x24303a[_0x2740('0x3')]?_0x24303a[0x5]:null};}function _0x5c7a25(_0x20d97e){for(let _0x5d84c5=0x0;_0x5d84c5<_0x5637e8['length'];_0x5d84c5++){if(_0x20d97e[_0x2740('0xa3')]&&_0x2740('0xfd')==_0x5637e8[_0x5d84c5][_0x2740('0xc5')])return _0x20d97e[_0x2740('0x8')]=_0x5637e8[_0x5d84c5],void delete _0x20d97e[_0x2740('0xa3')];if(!_0x20d97e[_0x2740('0xa3')]&&!_0x20d97e[_0x2740('0x113')]&&_0x2740('0xa5')==_0x5637e8[_0x5d84c5][_0x2740('0xc5')])return void(_0x20d97e[_0x2740('0x100')]=_0x5637e8[_0x5d84c5]);}}}[_0x2740('0x65')](_0x2cb16b,_0x317c9e){let _0x15454b=0x0,_0x2093fb=!0x1;const _0xe78612=new Map();for(const _0x4ce459 of _0x2cb16b)_0x4ce459[_0x317c9e]?_0x2093fb&&(_0x15454b++,_0x2093fb=!0x1):(_0x15454b++,_0x2093fb=!0x0),_0xe78612[_0x2740('0xdf')](_0x4ce459['id'],_0x15454b);for(let _0x481733=0x0;_0x481733<_0x2cb16b[_0x2740('0x3')];_0x481733++){if('isRemoved'==_0x317c9e&&_0x2cb16b[_0x481733][_0x2740('0xa3')]||'isAdded'==_0x317c9e&&_0x2cb16b[_0x481733][_0x2740('0x113')])continue;if(_0x2740('0x11a')==_0x2cb16b[_0x481733][_0x2740('0xc5')]){_0x2cb16b[_0x481733][_0x2740('0xec')]=0x0;continue;}const _0x4be5cf=_0xe78612[_0x2740('0x92')](_0x2cb16b[_0x481733][_0x2740('0x7a')]),_0x1c791f=_0xe78612['get'](_0x2cb16b[_0x481733]['id']);_0x2cb16b[_0x481733]['distance']=_0x4be5cf-_0x1c791f;}}['_getRevisionsRange'](_0xec0409,_0x4c9f41,_0x49e097=!0x1){const _0x3149cb=[];let _0x3333da=this[_0x2740('0x6f')][_0x2740('0x43')](_0xec0409),_0x5042a7=this[_0x2740('0x6f')][_0x2740('0x43')](_0x4c9f41);for(-0x1==_0x5042a7&&(_0x5042a7=this[_0x2740('0x6f')]['_revisions'][_0x2740('0x3')],_0x49e097=!0x1);_0x3333da<_0x5042a7;)_0x3149cb['push'](this[_0x2740('0x6f')][_0x2740('0x20')](_0x3333da)),_0x3333da++;return _0x49e097&&_0x3149cb['push'](this[_0x2740('0x6f')][_0x2740('0x20')](_0x3333da)),_0x3149cb;}[_0x2740('0xe1')](_0x1a14fa,_0xb61bb6,_0x183b83,_0x1e8f00){const _0x5dc32d=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x24')];let _0x5738f0=_0xb61bb6;for(;_0x1a14fa[_0x5738f0]&&_0x1a14fa[_0x5738f0][_0x2740('0xa3')];)_0x5738f0++;let _0x2bcd57=_0x1e8f00;for(;_0x183b83[_0x2bcd57]&&_0x183b83[_0x2bcd57][_0x2740('0x113')];)_0x2bcd57++;_0x5461d6(_0x1a14fa,_0xb61bb6,_0x5738f0),_0x5461d6(_0x183b83,_0x1e8f00,_0x2bcd57);const _0x4f3493=_0x183b83[_0x2740('0xbf')](_0x1e8f00,_0x2bcd57)['concat'](_0x1a14fa[_0x2740('0xbf')](_0xb61bb6,_0x5738f0));return _0x4f3493[_0x2740('0xe9')]((_0x4c2c48,_0x5f2594)=>_0x4c2c48['side']!=_0x5f2594[_0x2740('0x4a')]?_0x4c2c48['side']-_0x5f2594[_0x2740('0x4a')]:_0x4c2c48[_0x2740('0xe')]!=_0x5f2594[_0x2740('0xe')]?_0x4c2c48[_0x2740('0xe')]-_0x5f2594[_0x2740('0xe')]:_0x4c2c48[_0x2740('0xec')]!=_0x5f2594[_0x2740('0xec')]?_0x5f2594[_0x2740('0xec')]-_0x4c2c48['distance']:!!_0x4c2c48[_0x2740('0xa3')]!=!!_0x5f2594[_0x2740('0xa3')]?-0x1==_0x4c2c48[_0x2740('0x4a')]||0x0==_0x4c2c48['side']?_0x4c2c48['isAdded']?-0x1:0x1:_0x4c2c48[_0x2740('0xa3')]?0x1:-0x1:_0x4c2c48[_0x2740('0xc9')]-_0x5f2594[_0x2740('0xc9')]),{'commonTape':_0x4f3493,'iEnd':_0x5738f0,'jEnd':_0x2bcd57};function _0x5461d6(_0x35c28e,_0x3bd092,_0x55d192){let _0x5f1cce=-0x1,_0x5db989=Number[_0x2740('0xd6')],_0x49d687=!0x0;for(let _0x49aa=_0x3bd092;_0x49aa<_0x55d192;_0x49aa++)if(_0x5dc32d[_0x2740('0x18')](_0x35c28e[_0x49aa][_0x2740('0xa7')])||(_0x49d687=!0x1),_0x35c28e[_0x49aa][_0x2740('0xa7')][_0x2740('0xe3')]<_0x3bd092&&(_0x5f1cce=_0x49aa),_0x35c28e[_0x49aa]['item']['endIndex']>=_0x55d192){_0x5db989=_0x49aa;break;}_0x49d687&&(_0x5f1cce=_0x55d192-0x1);for(let _0x3d641=_0x3bd092;_0x3d641<_0x55d192;_0x3d641++)_0x35c28e[_0x3d641][_0x2740('0x4a')]=_0x3d641<=_0x5f1cce?-0x1:_0x3d641<_0x5db989?0x0:0x1,_0x35c28e[_0x3d641][_0x2740('0xc9')]=_0x3d641;let _0x2b11f0=0x0;for(let _0xb96e58=_0x3bd092;_0xb96e58<=_0x5f1cce;_0xb96e58++)0x0==_0x35c28e[_0xb96e58][_0x2740('0xec')]?_0x35c28e[_0xb96e58][_0x2740('0xe')]=_0x2b11f0:(_0x2b11f0++,_0x35c28e[_0xb96e58][_0x2740('0xe')]=_0x2b11f0,_0x2b11f0++);for(let _0x5f1864=_0x3bd092;_0x5f1864<_0x55d192;_0x5f1864++)0x0==_0x35c28e[_0x5f1864][_0x2740('0x4a')]&&(_0x35c28e[_0x5f1864][_0x2740('0xe')]=_0x2b11f0);_0x2b11f0=0x0;for(let _0x4bc4dd=_0x55d192-0x1;_0x4bc4dd>=_0x5db989;_0x4bc4dd--)0x0==_0x35c28e[_0x4bc4dd]['distance']?_0x35c28e[_0x4bc4dd]['level']=_0x2b11f0:(_0x2b11f0--,_0x35c28e[_0x4bc4dd][_0x2740('0xe')]=_0x2b11f0,_0x2b11f0--);}}[_0x2740('0xfb')](_0x55f2b0){const _0x263f89=new Map(),_0x55601b=this[_0x2740('0x74')][_0x2740('0x94')]['schema'];for(let _0x36e8c1=0x1;_0x36e8c1<_0x55f2b0['length'];_0x36e8c1++){let _0x592217,_0xe58d6a,_0x1bc04a;const _0x248db8=_0x55f2b0[_0x36e8c1],_0x3059dd=_0x55f2b0[_0x36e8c1-0x1];if(_0x2740('0x11a')==_0x248db8['type'])continue;if(_0x248db8[_0x2740('0xc5')]!=_0x3059dd[_0x2740('0xc5')])continue;if(!_0x55601b[_0x2740('0x50')](_0x3059dd[_0x2740('0xa7')])||_0x55601b['isLimit'](_0x3059dd[_0x2740('0xa7')]))continue;if(!_0x55601b[_0x2740('0x50')](_0x248db8['item'])||_0x55601b[_0x2740('0x5b')](_0x248db8[_0x2740('0xa7')]))continue;if((_0x55f2b0[_0x36e8c1][_0x2740('0xa3')]||_0x55f2b0[_0x36e8c1][_0x2740('0x8')])&&_0x55f2b0[_0x36e8c1-0x1][_0x2740('0x113')])_0x592217=_0x55f2b0[_0x36e8c1],_0xe58d6a=_0x55f2b0[_0x36e8c1-0x1],_0x1bc04a=_0x36e8c1-0x1;else{if(!_0x55f2b0[_0x36e8c1][_0x2740('0x113')]||!_0x55f2b0[_0x36e8c1-0x1]['isAdded']&&!_0x55f2b0[_0x36e8c1-0x1][_0x2740('0x8')])continue;_0x592217=_0x55f2b0[_0x36e8c1-0x1],_0xe58d6a=_0x55f2b0[_0x36e8c1],_0x1bc04a=_0x36e8c1;}const _0x44ad96=_0x592217['level']==_0xe58d6a['level'],_0x19451c=Math[_0x2740('0x81')](_0x592217['level'])<Math[_0x2740('0x81')](_0xe58d6a['level'])&&0x0==_0xe58d6a[_0x2740('0xec')];(_0x44ad96||_0x19451c)&&(_0x263f89['set'](_0xe58d6a['id'],_0x592217['id']),_0x55f2b0[_0x2740('0xb4')](_0x1bc04a,0x1),_0x36e8c1--,_0x592217[_0x2740('0xa3')]=!0x1);}for(let _0x574723=0x0;_0x574723<_0x55f2b0[_0x2740('0x3')];_0x574723++)_0x263f89[_0x2740('0x2f')](_0x55f2b0[_0x574723][_0x2740('0x7a')])&&(_0x55f2b0[_0x574723][_0x2740('0x7a')]=_0x263f89[_0x2740('0x92')](_0x55f2b0[_0x574723][_0x2740('0x7a')]));}[_0x2740('0xe8')](_0x19fa53){const _0x367130=new Set(_0x19fa53[_0x2740('0xee')](_0x53486c=>_0x53486c['id']));for(let _0x17a77d=0x0;_0x17a77d<_0x19fa53['length'];_0x17a77d++)_0x367130[_0x2740('0x2f')](_0x19fa53[_0x17a77d]['pairId'])||0x0==_0x19fa53[_0x17a77d][_0x2740('0xec')]||(_0x19fa53[_0x17a77d][_0x2740('0x11c')]=!0x0);return _0x19fa53[_0x2740('0x118')](_0x1338c0=>!_0x1338c0[_0x2740('0x11c')]);}[_0x2740('0xac')](_0x1325ba){const _0x394bcc=new Set();for(let _0x277b93=0x0;_0x277b93<_0x1325ba['length'];_0x277b93++){if(_0x394bcc[_0x2740('0x2f')](_0x1325ba[_0x277b93]['id'])&&_0x1325ba[_0x277b93][_0x2740('0x113')]&&(_0x1325ba[_0x277b93][_0x2740('0x11c')]=!0x0),_0x1325ba[_0x277b93][_0x2740('0x11c')])continue;if(0x0==_0x1325ba[_0x277b93][_0x2740('0xec')])continue;if(_0x2740('0xc7')!=_0x1325ba[_0x277b93][_0x2740('0xc5')])continue;if(null==_0x1325ba[_0x277b93][_0x2740('0x7a')])continue;let _0x30094f=_0x277b93+0x1,_0x49add1=0x0;for(;_0x1325ba[_0x30094f]['id']!=_0x1325ba[_0x277b93]['pairId'];)'elementStart'==_0x1325ba[_0x30094f][_0x2740('0xc5')]?_0x49add1++:_0x2740('0xd2')==_0x1325ba[_0x30094f][_0x2740('0xc5')]&&_0x49add1--,_0x30094f++;if(0x0!=_0x49add1){if(_0x1325ba[_0x277b93]['isRemoved'])_0x1325ba[_0x277b93][_0x2740('0x11c')]=!0x0;else for(;_0x30094f!=_0x277b93;)_0x1325ba[_0x30094f][_0x2740('0x113')]&&0x0!=_0x1325ba[_0x30094f][_0x2740('0xec')]&&(_0x1325ba[_0x30094f][_0x2740('0x11c')]=!0x0,_0x394bcc[_0x2740('0x13')](_0x1325ba[_0x30094f]['pairId'])),_0x30094f--;}}return _0x1325ba[_0x2740('0x118')](_0x345d79=>!_0x345d79[_0x2740('0x11c')]);}[_0x2740('0x34')](_0x1dd0f8){const _0x3546d7=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x24')];for(let _0x41522a=0x0;_0x41522a<_0x1dd0f8['length'];_0x41522a++){if(!(_0x1dd0f8[_0x41522a]['isAdded']||_0x1dd0f8[_0x41522a]['isAddSuggestion']||_0x1dd0f8[_0x41522a]['isRemoved']||_0x1dd0f8[_0x41522a][_0x2740('0x100')]))continue;if(0x0==_0x1dd0f8[_0x41522a][_0x2740('0xec')])continue;const _0x29ff3c=_0x1dd0f8[_0x41522a]['item'];_0x3546d7[_0x2740('0x50')](_0x29ff3c)||_0x3546d7[_0x2740('0x5b')](_0x29ff3c)||(_0x1dd0f8[_0x41522a]['isAdded']&&delete _0x1dd0f8[_0x41522a][_0x2740('0xa3')],_0x1dd0f8[_0x41522a]['isAddSuggestion']&&delete _0x1dd0f8[_0x41522a][_0x2740('0x8')],_0x1dd0f8[_0x41522a][_0x2740('0x100')]&&delete _0x1dd0f8[_0x41522a][_0x2740('0x100')],_0x1dd0f8[_0x41522a][_0x2740('0x113')]&&(_0x1dd0f8[_0x41522a]['isIncorrect']=!0x0));}return _0x1dd0f8[_0x2740('0x118')](_0x2c28ab=>!_0x2c28ab[_0x2740('0x11c')]);}[_0x2740('0x60')](_0x3d6012,_0x5d0b0b,_0x242810){const _0x529378=new _0x434b7b(),_0x4d2347=[],_0x5112d1=new Map(),_0x4cfcad=this[_0x2740('0x74')][_0x2740('0x94')],_0x152ec7=_0x4cfcad['schema'],_0x5089f2=[_0x529378],_0x43eccf={},_0x231300={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x323579=null;const _0x3b44fc=[0x0];for(let _0xd044eb=0x0;_0xd044eb<_0x3d6012['length'];_0xd044eb++){let _0x4f2033,_0x170d89;if(_0x2740('0xc7')===_0x3d6012[_0xd044eb][_0x2740('0xc5')]){_0x4f2033=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc);const _0x2be27b=new _0x3cc323(_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xe5')],_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0x42')]());_0x5089f2[0x0][_0x2740('0xf')](_0x2be27b),_0x3b44fc[_0x2740('0x72')](0x0),_0x5089f2[_0x2740('0xa1')](_0x2be27b),_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579=null;}else{if(_0x2740('0xd2')===_0x3d6012[_0xd044eb][_0x2740('0xc5')])_0x5089f2['shift'](),_0x4f2033=_0x4cfcad['createPositionFromPath'](_0x529378,_0x3b44fc),_0x3b44fc[_0x2740('0x6a')](),_0x3b44fc[_0x3b44fc['length']-0x1]++,_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579=null;else{if(_0x4f2033=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc),_0x323579&&_0x1433a2(_0x323579,_0x3d6012[_0xd044eb][_0x2740('0xa7')]))_0x323579[_0x2740('0x26')]+=_0x3d6012[_0xd044eb]['item']['data'];else{const _0x26a2f7=new _0x14e401(_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xd')],_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0x42')]());_0x5089f2[0x0][_0x2740('0xf')](_0x26a2f7),_0x323579=_0x26a2f7;}_0x3b44fc[_0x3b44fc[_0x2740('0x3')]-0x1]+=_0x3d6012[_0xd044eb][_0x2740('0xa7')][_0x2740('0xc4')],_0x170d89=_0x4cfcad[_0x2740('0x2a')](_0x529378,_0x3b44fc);}}for(const _0x289dd2 of _0x3d6012[_0xd044eb][_0x2740('0x54')])_0x5112d1['set'](_0x289dd2,{'start':_0x4f2033,'end':null});_0x5b9f52('isRemoveSuggestion',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isAddSuggestion',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isRemoved',_0xd044eb,_0x4f2033,_0x170d89),_0x5b9f52('isAdded',_0xd044eb,_0x4f2033,_0x170d89);for(const _0x14d042 of _0x3d6012[_0xd044eb]['markersEnd']){_0x5112d1['get'](_0x14d042)[_0x2740('0x3d')]=_0x170d89;}}for(const [_0x505606,_0x5d00d1]of _0x5112d1){const _0x37291e=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x10e')](_0x5d00d1['start'],_0x5d00d1[_0x2740('0x3d')]);_0x529378[_0x2740('0x61')]['set'](_0x505606,_0x37291e);}return _0x4d2347['sort']((_0x4131af,_0x3776a0)=>{const _0x4eba2f=_0x529378[_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x4131af['id']),_0x381222=_0x529378[_0x2740('0x61')][_0x2740('0x92')]('revision:'+_0x3776a0['id']);return _0x4eba2f[_0x2740('0x117')][_0x2740('0xc1')](_0x381222[_0x2740('0x117')])?-0x1:_0x4eba2f['start'][_0x2740('0x112')](_0x381222[_0x2740('0x117')])?0x1:_0x4eba2f['end'][_0x2740('0xc1')](_0x381222[_0x2740('0x3d')])?-0x1:_0x4eba2f[_0x2740('0x3d')][_0x2740('0x112')](_0x381222[_0x2740('0x3d')])?0x1:'add'===_0x4131af[_0x2740('0xc5')]?-0x1:0x1;}),{'root':_0x529378,'changes':_0x4d2347};function _0x5b9f52(_0x3ae2f2,_0x3db705,_0xabc87c,_0x31ecd2){const _0x5dce7d=!!_0x3d6012[_0x3db705][_0x3ae2f2],_0xb32fdb=_0x5dce7d?_0x3d6012[_0x3db705][_0x3ae2f2]['userId']:null,_0xf2880c=_0x3db705===_0x3d6012[_0x2740('0x3')]-0x1,_0x5e4763=_0x231300[_0x3ae2f2][0x0],_0xc86e31=_0x152ec7[_0x2740('0xd5')](_0x3d6012[_0x3db705][_0x2740('0xa7')]);!_0x43eccf[_0x3ae2f2]&&_0x5dce7d?_0x43eccf[_0x3ae2f2]={'start':_0xabc87c,'tapeItem':_0x3d6012[_0x3db705],'userId':_0xb32fdb,'type':_0x3ae2f2}:_0x43eccf[_0x3ae2f2]&&!_0x5dce7d?(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0xabc87c,_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]=null):_0x43eccf[_0x3ae2f2]&&_0x5dce7d&&_0x43eccf[_0x3ae2f2][_0x2740('0x1d')]!==_0xb32fdb&&(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0xabc87c,_0x5e4763&&_0x5e4763[_0x2740('0x1d')]===_0x43eccf[_0x3ae2f2][_0x2740('0x1d')]||_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]={'start':_0xabc87c,'tapeItem':_0x3d6012[_0x3db705],'userId':_0xb32fdb,'type':_0x3ae2f2}),_0x43eccf[_0x3ae2f2]&&_0xc86e31&&('elementStart'!==_0x3d6012[_0x3db705][_0x2740('0xc5')]||_0x5e4763&&_0x5e4763[_0x2740('0x1d')]===_0xb32fdb||_0x231300[_0x3ae2f2][_0x2740('0xa1')]({'userId':_0xb32fdb,'object':_0x3d6012[_0x3db705]['item'],'change':_0x43eccf[_0x3ae2f2]}),_0x2740('0xd2')===_0x3d6012[_0x3db705]['type']&&_0x5e4763&&_0x5e4763['object']===_0x3d6012[_0x3db705][_0x2740('0xa7')]&&(_0x231300[_0x3ae2f2]['shift'](),_0x43eccf[_0x3ae2f2]=_0x5e4763[_0x2740('0x102')])),_0x43eccf[_0x3ae2f2]&&_0xf2880c&&(_0x43eccf[_0x3ae2f2][_0x2740('0x3d')]=_0x31ecd2,_0x17fb2a(_0x43eccf[_0x3ae2f2]),_0x43eccf[_0x3ae2f2]=null);}function _0x17fb2a({start:_0x8ce9d7,end:_0x4d0529,tapeItem:_0x1567b8,userId:_0x24b459,type:_0x4605e4}){const _0x4ee404=_0x1567b8[_0x2740('0xa7')],_0x4aadc4=_0x4cfcad['schema']['isBlock'](_0x4ee404)&&!_0x4cfcad['schema'][_0x2740('0x5b')](_0x4ee404),_0x46a232=_0x8ce9d7[_0x2740('0x88')]==_0x4d0529[_0x2740('0x70')]&&_0x4d0529[_0x2740('0xbb')];if(_0x4aadc4&&_0x46a232)return;const _0x489448=_0x4cfcad[_0x2740('0x10e')](_0x8ce9d7,_0x4d0529),_0x499fd9=_0x5d0b0b['get'](_0x24b459),_0x461f28=new _0x699e92({'author':_0x499fd9,'type':'isAdded'==_0x4605e4||_0x2740('0x8')==_0x4605e4?'add':'remove','data':{'isSuggestion':_0x2740('0x8')==_0x4605e4||_0x2740('0x100')==_0x4605e4},'createdAt':new Date(),'rootName':_0x242810});_0x4d2347[_0x2740('0x72')](_0x461f28),_0x529378[_0x2740('0x61')]['set'](_0x2740('0xf2')+_0x461f28['id'],_0x489448);}function _0x1433a2(_0x5a1238,_0x152e1f){const _0x348f20=_0x5a1238[_0x2740('0x42')](),_0x12ba5f=_0x152e1f[_0x2740('0x42')]();for(const _0x2ba194 of _0x348f20){if(_0x2ba194[0x1]!==_0x152e1f[_0x2740('0xf1')](_0x2ba194[0x0]))return!0x1;_0x12ba5f['next']();}return _0x12ba5f[_0x2740('0xa2')]()['done'];}}['_setConversion'](){this[_0x2740('0x74')]['conversion'][_0x2740('0x107')]('upcast')[_0x2740('0x27')]({'view':_0x2740('0xb9')}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x11e'))[_0x2740('0xd7')]({'model':'revision','view':_0x5c6a0d=>{const _0xde8714=_0x5c6a0d[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x43791e=this[_0x2740('0xd3')](_0xde8714);if(!_0x43791e)return null;const _0x348c04=_0x2740('0x13')==_0x43791e[_0x2740('0xc5')]?_0x2740('0xfd'):_0x2740('0xa5'),_0x5d6048=['ck-suggestion-marker',_0x2740('0x79')+_0x348c04];return _0x43791e[_0x2740('0xd')][_0x2740('0x5e')]&&_0x5d6048['push'](_0x2740('0x79')+_0x348c04+'-new'),this[_0x2740('0x105')]==_0x43791e&&_0x5d6048[_0x2740('0x72')]('ck-suggestion-marker--active'),{'classes':_0x5d6048,'attributes':{'data-change-id':_0xde8714}};}}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x97'))[_0x2740('0x13')](_0x41c32a=>{_0x41c32a['on'](_0x2740('0xc2'),(_0x336fea,_0x11fd25,_0x4682c9)=>{const _0x3a167b=_0x11fd25[_0x2740('0x35')][_0x2740('0x11d')](0x0);if(!_0x3a167b||!_0x3a167b['is'](_0x2740('0x39'),'code'))return;if(!_0x4682c9['consumable']['consume'](_0x3a167b,{'attributes':[_0x2740('0x75'),_0x2740('0x87')]}))return;const _0x255a0f=_0x11fd25[_0x2740('0x6d')][_0x2740('0x117')]['nodeAfter'];_0x4682c9['writer']['setAttribute'](_0x2740('0x75'),_0x3a167b[_0x2740('0xf1')](_0x2740('0x75')),_0x255a0f),_0x4682c9[_0x2740('0x6b')][_0x2740('0xff')]('vid_end',_0x3a167b[_0x2740('0xf1')](_0x2740('0x87')),_0x255a0f);},{'priority':'low'});}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')]('upcast')[_0x2740('0x13')](_0x14bae3=>{_0x14bae3['on'](_0x2740('0x39'),(_0x19abf4,_0x18a983,_0x43bdf6)=>{if(!_0x43bdf6[_0x2740('0x29')]['consume'](_0x18a983['viewItem'],{'attributes':['vid_start',_0x2740('0x87')]}))return;if(_0x18a983[_0x2740('0x6d')][_0x2740('0x109')])return;const _0x32e38d=_0x18a983[_0x2740('0x6d')][_0x2740('0x117')][_0x2740('0x88')];_0x32e38d[_0x2740('0x5d')]('vid_start')||_0x32e38d[_0x2740('0x5d')](_0x2740('0x116'))||(_0x43bdf6[_0x2740('0x6b')][_0x2740('0xff')](_0x2740('0x75'),_0x18a983[_0x2740('0x35')][_0x2740('0xf1')]('vid_start'),_0x32e38d),_0x43bdf6[_0x2740('0x6b')][_0x2740('0xff')](_0x2740('0x87'),_0x18a983[_0x2740('0x35')][_0x2740('0xf1')](_0x2740('0x87')),_0x32e38d));},{'priority':_0x2740('0xcd')});}),this[_0x2740('0x74')][_0x2740('0x99')]['for'](_0x2740('0x97'))['elementToAttribute']({'view':{'name':_0x2740('0x3f'),'attributes':{'vid':!0x0}},'model':{'key':_0x2740('0x116'),'value':_0x5585b0=>_0x5585b0['getAttribute'](_0x2740('0x116'))}}),this['editor']['model'][_0x2740('0x24')]['on'](_0x2740('0x96'),(_0x54452e,[,_0x1f2c42])=>{[_0x2740('0x75'),'vid_end','vid'][_0x2740('0x2b')](_0x1f2c42)&&(_0x54452e[_0x2740('0xca')]=!0x0,_0x54452e['stop']());},{'priority':_0x2740('0xab')}),this[_0x2740('0x74')]['conversion'][_0x2740('0x107')](_0x2740('0xb2'))['add'](_0x2a4c9a=>{_0x2a4c9a['on'](_0x2740('0x55'),(_0x186434,_0x5ecbc1,_0x4ff6fd)=>{if('\x20'!=_0x5ecbc1['item'][_0x2740('0xd')]||_0x5ecbc1[_0x2740('0xa7')][_0x2740('0x70')][_0x2740('0x56')]>0x1)return;if(!_0x4ff6fd['consumable'][_0x2740('0xbc')](_0x5ecbc1[_0x2740('0xa7')],_0x186434['name']))return;const _0x4fda3b=_0x4ff6fd[_0x2740('0x6b')],_0x571d93=_0x4ff6fd[_0x2740('0x17')]['toViewRange'](_0x5ecbc1[_0x2740('0xf9')]);_0x4fda3b[_0x2740('0x28')](_0x571d93,_0x4fda3b[_0x2740('0x14')](_0x2740('0x3f')));});}),this[_0x2740('0x74')]['conversion'][_0x2740('0x107')]('dataDowncast')[_0x2740('0xad')]({'model':_0x2740('0xb9')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x85'),function(_0x22bfb4){const _0xe6b868=_0x22bfb4[_0x2740('0xba')]['get'](_0x2740('0x7c'));return(_0x220500,_0x5a6209,_0x2d7237)=>{const _0x4cd71f=_0x5a6209[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x589b16=_0xe6b868[_0x2740('0xd3')](_0x4cd71f);if(!_0x589b16)return null;const _0x2c074e='add'==_0x589b16['type']?_0x2740('0xa4'):_0x2740('0x6c');if(!_0x2d7237[_0x2740('0x29')]['test'](_0x5a6209[_0x2740('0x10b')],_0x220500['name']))return;const _0x3bf05f=_0x5a6209['markerRange'][_0x2740('0xdd')](),_0x351eb1=_0x5a6209['markerRange'][_0x2740('0x117')],_0x420b37=_0x22bfb4[_0x2740('0x94')][_0x2740('0x24')];let _0x35663e=null,_0x33855d=null,_0x314a0d=!0x1,_0x2c8d14=!0x1;for(const _0x209785 of _0x3bf05f){const _0x424ef2=_0x209785[_0x2740('0xa7')];_0x314a0d=_0x314a0d||_0x420b37['isContent'](_0x424ef2);const _0x10a5e6=_0x2d7237[_0x2740('0x17')][_0x2740('0x5a')](_0x424ef2);if(_0x10a5e6&&_0x10a5e6[_0x2740('0x2d')](_0x2740('0xaf')))return;_0x2740('0xd2')==_0x209785['type']&&(_0x420b37[_0x2740('0x50')](_0x424ef2)&&!_0x420b37[_0x2740('0x5b')](_0x424ef2)&&(_0x424ef2[_0x2740('0x9f')]||_0x351eb1['isAtEnd']?_0x35663e&&_0x35663e['parent']==_0x424ef2||(_0x35663e=_0x424ef2,_0x49e924(_0x209785['previousPosition']),_0x2c8d14=!0x0):_0x33855d=_0x33855d||_0x209785[_0x2740('0xc0')]));}function _0x49e924(_0xf6b3fe){const _0x487368=_0x2d7237[_0x2740('0x6b')][_0x2740('0x66')](_0x2740('0x3f'),{'class':_0x2740('0x79')+_0x2c074e}),_0x40620f=_0x2d7237[_0x2740('0x17')][_0x2740('0x104')](_0xf6b3fe);_0x589b16[_0x2740('0xd')]['isSuggestion']&&_0x2d7237[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x79')+_0x2c074e+_0x2740('0x68'),_0x487368),_0xe6b868[_0x2740('0x105')]==_0x589b16&&_0x2d7237[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x9b'),_0x487368),_0x2d7237['writer'][_0x2740('0x59')](_0x40620f,_0x487368),_0x2d7237[_0x2740('0x17')]['bindElementToMarker'](_0x487368,_0x5a6209[_0x2740('0xf7')]);}_0x314a0d||_0x2c8d14||!_0x33855d||_0x49e924(_0x33855d);};}(this[_0x2740('0x74')]),{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0xe7'),(_0x39a3f5,_0x1294d3,_0x5b4dbc)=>{const _0x165b5b=_0x5b4dbc[_0x2740('0x17')]['markerNameToElements'](_0x1294d3[_0x2740('0xf7')]);if(_0x165b5b)for(const _0x392c07 of _0x165b5b)(_0x392c07[_0x2740('0x7d')](_0x2740('0x10f'))||_0x392c07[_0x2740('0x7d')]('ck-suggestion-marker-merge'))&&(_0x5b4dbc[_0x2740('0x17')][_0x2740('0xef')](_0x392c07,_0x1294d3[_0x2740('0xf7')]),_0x5b4dbc[_0x2740('0x6b')][_0x2740('0x9')](_0x392c07));},{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x85'),(_0x2c8cb1,_0x5116b1,_0xaf99d3)=>{const _0x334cd2=_0x5116b1[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1],_0x1f6ebc=this[_0x2740('0xd3')](_0x334cd2);if(!_0x1f6ebc)return null;const _0x33e92d=_0x2740('0x13')==_0x1f6ebc[_0x2740('0xc5')]?'split':'merge';if(_0xaf99d3[_0x2740('0x29')][_0x2740('0x114')](_0x5116b1['markerRange'],_0x2c8cb1['name']))for(const _0x2bf94e of _0x5116b1['markerRange'][_0x2740('0x3e')]()){if(!_0x2bf94e['is'](_0x2740('0x39'),_0x2740('0x22')))continue;const _0x30d00b=_0xaf99d3['writer'][_0x2740('0x66')]('span',{'class':_0x2740('0x79')+_0x33e92d}),_0x889e7c=_0xaf99d3['mapper'][_0x2740('0x104')](this['editor'][_0x2740('0x94')][_0x2740('0x5')](_0x2bf94e));_0x1f6ebc[_0x2740('0xd')][_0x2740('0x5e')]&&_0xaf99d3[_0x2740('0x6b')][_0x2740('0x110')](_0x2740('0x79')+_0x33e92d+_0x2740('0x68'),_0x30d00b),this[_0x2740('0x105')]==_0x1f6ebc&&_0xaf99d3[_0x2740('0x6b')]['addClass'](_0x2740('0x9b'),_0x30d00b),_0xaf99d3[_0x2740('0x6b')][_0x2740('0x59')](_0x889e7c,_0x30d00b),_0xaf99d3['mapper'][_0x2740('0x15')](_0x30d00b,_0x5116b1[_0x2740('0xf7')]);}},{'priority':_0x2740('0xd0')}),this['editor'][_0x2740('0x94')][_0x2740('0xdc')]['on'](_0x2740('0x102'),()=>{this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')]['change'](_0x484981=>{for(const _0xa2c262 of this['editor'][_0x2740('0x94')][_0x2740('0xdc')][_0x2740('0x1e')]()){const _0x2470b0=this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0xdc')][_0x2740('0x115')](_0xa2c262),_0x529cea=this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb5')][_0x2740('0xdc')]['getRoot'](_0xa2c262);if(_0x529cea){const _0x39ba5d=_0x2470b0[_0x2740('0xf1')]('revisionHistoryAttachChange');if(_0x484981[_0x2740('0xf6')](_0x2740('0x33'),_0x529cea),_0x484981['removeClass'](_0x2740('0x8b'),_0x529cea),_0x484981['removeClass']('ck-revision-history-root-remove',_0x529cea),_0x484981[_0x2740('0xfa')](_0x2740('0x9d'),_0x529cea),_0x39ba5d){const _0x565a9e=this['_getChangeFromId'](_0x39ba5d);if(!_0x565a9e)return null;_0x484981[_0x2740('0xff')](_0x2740('0x33'),_0x39ba5d,_0x529cea),_0x484981[_0x2740('0x110')](_0x2740('0xe0')+_0x565a9e[_0x2740('0xc5')],_0x529cea),this['activeChange']==_0x565a9e&&_0x484981[_0x2740('0x110')]('ck-revision-history-root--active',_0x529cea);}}}});}),this[_0x2740('0x74')][_0x2740('0x99')][_0x2740('0x107')]('upcast')[_0x2740('0x27')]({'view':_0x2740('0xf4'),'model':_0x3c9dbd=>_0x2740('0x4e')+_0x3c9dbd,'converterPriority':'highest'}),this['editor'][_0x2740('0x99')][_0x2740('0x107')](_0x2740('0x97'))[_0x2740('0x27')]({'view':'suggestion','model':_0x238712=>'revision-suggestion:'+_0x238712,'converterPriority':_0x2740('0xab')}),this['editor'][_0x2740('0x99')]['for'](_0x2740('0xb2'))['markerToData']({'model':_0x2740('0xeb'),'view':_0x574594=>({'name':_0x2740('0xb6')+_0x574594,'group':'revision-suggestion'}),'converterPriority':_0x2740('0xab')}),this['editor'][_0x2740('0x99')]['for'](_0x2740('0x11e'))[_0x2740('0xd7')]({'model':_0x2740('0xeb'),'view':_0x11dc79=>{const _0x5877be=_0x11dc79[_0x2740('0xf7')][_0x2740('0xa4')](':')[0x1];return _0x2740('0xfd')!=_0x5877be&&_0x2740('0xa5')!=_0x5877be?null:{'classes':[_0x2740('0xdb'),'ck-suggestion-preview-marker-'+_0x5877be]};}}),this[_0x2740('0x74')][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0x23'),Y(this['editor'],'merge'),{'priority':_0x2740('0xd0')}),this['editor'][_0x2740('0xd9')][_0x2740('0xb7')]['on'](_0x2740('0xd4'),Y(this[_0x2740('0x74')],'split'),{'priority':_0x2740('0xd0')}),this[_0x2740('0x74')]['editing'][_0x2740('0xb7')]['on']('removeMarker:revision-suggestion',(_0xb8cb6b,_0x2c235c,_0x3a3550)=>{const _0x172e34=_0x3a3550[_0x2740('0x17')]['markerNameToElements'](_0x2c235c[_0x2740('0xf7')]);if(_0x172e34)for(const _0x44f42a of _0x172e34)_0x44f42a['is'](_0x2740('0x95'))&&(_0x3a3550[_0x2740('0x17')]['unbindElementFromMarkerName'](_0x44f42a,_0x2c235c[_0x2740('0xf7')]),_0x3a3550['writer'][_0x2740('0x9')](_0x44f42a));},{'priority':_0x2740('0xd0')});}[_0x2740('0xd3')](_0x90bdb1){return this[_0x2740('0x80')][_0x2740('0x92')](_0x90bdb1);}[_0x2740('0xf0')](_0x370ae4){return this[_0x2740('0x106')]&&this['_changeView'][_0x2740('0x9a')](),this[_0x2740('0x106')]=new _0x376852(this['editor'][_0x2740('0x10d')],_0x370ae4),this[_0x2740('0x106')];}[_0x2740('0x46')](){this[_0x2740('0x74')][_0x2740('0x94')]['document'][_0x2740('0x71')][_0x2740('0x90')](_0x2740('0xb9')),this['on'](_0x2740('0x48'),(_0x52ede9,_0x4adfd1,_0x48ab7d,_0x4249d2)=>{_0x4249d2&&this[_0x2740('0x7e')][_0x2740('0x9')](_0x4249d2),_0x48ab7d&&(this[_0x2740('0x7e')][_0x2740('0x13')]({'view':_0x48ab7d,'stackId':_0x2740('0x0'),'position':{'target':()=>{const _0x5ee5b6=this[_0x2740('0x74')]['editing'],_0x2257ba=this[_0x2740('0xd3')](_0x48ab7d['changeId']);let _0x389a66;if(_0x2257ba['data'][_0x2740('0x31')]){const _0x3dcc2f=_0x5ee5b6[_0x2740('0xb5')][_0x2740('0x8c')](_0x2257ba[_0x2740('0x78')]);_0x389a66=Array['from'](_0x3dcc2f['getClientRects']());}else{const _0x200c32=this['editor']['model'][_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x48ab7d[_0x2740('0xaa')]);_0x389a66=Array[_0x2740('0x111')](_0x5ee5b6[_0x2740('0x17')][_0x2740('0x37')](_0x200c32['name']))[_0x2740('0xee')](_0x4bcffd=>_0x5ee5b6[_0x2740('0xb5')][_0x2740('0x8f')][_0x2740('0x77')](_0x4bcffd))[_0x2740('0xee')](_0x372e12=>Array['from'](_0x372e12[_0x2740('0x47')]()))[_0x2740('0xe2')]();}if(!this[_0x2740('0x1')])return _0x389a66[0x0];return _0x389a66['find'](_0x5195ba=>_0x5195ba['top']-0x3<=this[_0x2740('0x1')]['y']&&_0x5195ba[_0x2740('0x1c')]+0x3>=this[_0x2740('0x1')]['y']&&_0x5195ba['left']-0x3<=this[_0x2740('0x1')]['x']&&_0x5195ba[_0x2740('0x5c')]+0x3>=this[_0x2740('0x1')]['x'])||_0x389a66[0x0];}}}),this[_0x2740('0x7e')]['showStack'](_0x2740('0x0')));}),this['on']('change:activeChange',(_0x2d59d8,_0x133f83,_0x8c5698,_0x144b9b)=>{this[_0x2740('0xfe')]=_0x8c5698?this[_0x2740('0xf0')](_0x8c5698):null,this[_0x2740('0x74')][_0x2740('0x94')][_0x2740('0x102')](()=>{const _0x2e6df7=this[_0x2740('0x74')][_0x2740('0xd9')];_0x144b9b&&(_0x144b9b[_0x2740('0xd')][_0x2740('0x31')]?_0x2e6df7['view'][_0x2740('0x102')](_0x4489b8=>{_0x4489b8[_0x2740('0xfa')](_0x2740('0x9d'),_0x2e6df7[_0x2740('0xb5')][_0x2740('0xdc')][_0x2740('0x115')](_0x144b9b['rootName']));}):_0x2e6df7['reconvertMarker'](_0x2740('0xf2')+_0x144b9b['id'])),_0x8c5698&&(_0x8c5698[_0x2740('0xd')][_0x2740('0x31')]?_0x2e6df7[_0x2740('0xb5')][_0x2740('0x102')](_0x1b0ad4=>{_0x1b0ad4[_0x2740('0x110')]('ck-revision-history-root--active',_0x2e6df7['view'][_0x2740('0xdc')]['getRoot'](_0x8c5698['rootName']));}):_0x2e6df7[_0x2740('0x11')]('revision:'+_0x8c5698['id']));});}),this[_0x2740('0x8d')](this[_0x2740('0x74')][_0x2740('0xd9')]['view'][_0x2740('0xdc')],_0x2740('0x1b'),(_0x1c3c53,_0x5a2598)=>{if(this[_0x2740('0x105')])return;const _0xe18f0f=this[_0x2740('0x119')](_0x5a2598[_0x2740('0x7b')]),_0x52fc84=this[_0x2740('0x80')][_0x2740('0x92')](_0xe18f0f);_0x52fc84?(this[_0x2740('0x1')]={'x':_0x5a2598[_0x2740('0x2c')]['x'],'y':_0x5a2598[_0x2740('0x2c')]['y']},this[_0x2740('0xfe')]=this[_0x2740('0xf0')](_0x52fc84)):(this[_0x2740('0x1')]=null,this[_0x2740('0xfe')]=null);}),this[_0x2740('0x8d')](this[_0x2740('0x74')]['editing'][_0x2740('0xb5')][_0x2740('0xdc')],'mousedown',(_0x374017,_0x1d7121)=>{const _0x5b5d5d=this[_0x2740('0x119')](_0x1d7121[_0x2740('0x7b')]),_0x5ae2a5=this[_0x2740('0x80')][_0x2740('0x92')](_0x5b5d5d);_0x5ae2a5?(this[_0x2740('0x1')]={'x':_0x1d7121[_0x2740('0x2c')]['x'],'y':_0x1d7121[_0x2740('0x2c')]['y']},_0x5ae2a5===this[_0x2740('0x105')]?this[_0x2740('0x7e')][_0x2740('0x62')]():this[_0x2740('0x105')]=_0x5ae2a5):(this[_0x2740('0x1')]=null,this[_0x2740('0x105')]=null);});}[_0x2740('0x119')](_0x32a3dc){do{const _0x2388a3=_0x32a3dc[_0x2740('0xf1')](_0x2740('0x33'));if(_0x2388a3)return _0x2388a3;_0x32a3dc=_0x32a3dc[_0x2740('0x70')];}while(_0x32a3dc);return null;}[_0x2740('0x5f')](){this[_0x2740('0x74')]['model']['change'](_0x11b720=>{for(const _0x2c019c of this['editor'][_0x2740('0x94')][_0x2740('0x61')])_0x11b720['removeMarker'](_0x2c019c);});}}function Y(_0x22e864,_0x3b0c35){return(_0x3ac880,_0x4166b4,_0x282423)=>{if(!_0x282423[_0x2740('0x29')][_0x2740('0x114')](_0x4166b4[_0x2740('0x10b')],_0x3ac880[_0x2740('0xe5')]))return;const _0x17403b=_0x4166b4[_0x2740('0x10b')][_0x2740('0xdd')](),_0x2e7d4e=_0x4166b4[_0x2740('0x10b')][_0x2740('0x117')],_0x1738a3=_0x22e864[_0x2740('0x94')][_0x2740('0x24')];let _0x25c418=null,_0xa16f18=null,_0x4c9e55=!0x1,_0x1385b8=!0x1;for(const _0x3cd84e of _0x17403b){const _0xc2e1fa=_0x3cd84e[_0x2740('0xa7')];_0x4c9e55=_0x4c9e55||_0x1738a3[_0x2740('0xf5')](_0xc2e1fa);const _0x1bade6=_0x282423['mapper'][_0x2740('0x5a')](_0xc2e1fa);if(_0x1bade6&&_0x1bade6[_0x2740('0x2d')]('addHighlight'))return;'elementEnd'==_0x3cd84e[_0x2740('0xc5')]&&(_0x1738a3[_0x2740('0x50')](_0xc2e1fa)&&!_0x1738a3[_0x2740('0x5b')](_0xc2e1fa)&&(_0xc2e1fa['nextSibling']||_0x2e7d4e['isAtEnd']?_0x25c418&&_0x25c418[_0x2740('0x70')]==_0xc2e1fa||(_0x25c418=_0xc2e1fa,_0x20b010(_0x3cd84e[_0x2740('0xc0')]),_0x1385b8=!0x0):_0xa16f18=_0xa16f18||_0x3cd84e['previousPosition']));}function _0x20b010(_0x53c736){const _0x56e560=_0x282423[_0x2740('0x17')][_0x2740('0x104')](_0x53c736),_0x3f50b0=_0x282423[_0x2740('0x6b')][_0x2740('0x66')](_0x2740('0x3f'),{'class':_0x2740('0x6e')+_0x3b0c35});_0x282423[_0x2740('0x6b')][_0x2740('0x59')](_0x56e560,_0x3f50b0),_0x282423[_0x2740('0x17')][_0x2740('0x15')](_0x3f50b0,_0x4166b4[_0x2740('0xf7')]);}_0x4c9e55||_0x1385b8||!_0xa16f18||_0x20b010(_0xa16f18);};}export class RestoreRevisionCommand extends _0x1ea961{constructor(_0x6a7e16){super(_0x6a7e16);const _0x1dfeb6=_0x6a7e16[_0x2740('0xba')][_0x2740('0x92')](w);this[_0x2740('0x73')]=!0x1,this[_0x2740('0x8d')](_0x1dfeb6,_0x2740('0x1f'),()=>this[_0x2740('0x51')]()),this['listenTo'](_0x1dfeb6,'change:isEnabled',()=>this[_0x2740('0x51')]());}[_0x2740('0xd8')](){const _0x47f2b9=this[_0x2740('0x74')],_0x466eda=_0x47f2b9['plugins']['get'](w),_0x44b92b=_0x466eda['isReady']?_0x466eda['diff'][_0x2740('0x4c')]:null;_0x47f2b9['config'][_0x2740('0x92')](_0x2740('0x25'))['restoreRevisionCallback'](_0x44b92b);}[_0x2740('0x51')](){const {isReady:_0x4a24f3,isEnabled:_0x554e2e}=this[_0x2740('0x74')][_0x2740('0xba')][_0x2740('0x92')](w);this[_0x2740('0x63')]=_0x4a24f3&&_0x554e2e;}}export class ShowChangeCommand extends _0x1ea961{constructor(_0x3afef5,{direction:_0x3c7a14}){super(_0x3afef5);const _0xc1bb85=_0x3afef5[_0x2740('0xba')]['get'](w);this[_0x2740('0x73')]=!0x1,this[_0x2740('0x10')]='forward'===_0x3c7a14?0x1:-0x1,this[_0x2740('0x8d')](_0xc1bb85,_0x2740('0x1f'),()=>this[_0x2740('0x51')]()),this[_0x2740('0x8d')](_0xc1bb85,_0x2740('0x12'),()=>this['refresh']());}[_0x2740('0xd8')](){const _0xb39783=this[_0x2740('0x74')],_0x2e4687=_0xb39783[_0x2740('0xba')][_0x2740('0x92')](w),{isNavigationMode:_0x4a4f3f,currentChangeNumber:_0x1d7bf5}=_0x2e4687;let _0x27ff01;if(_0x2e4687[_0x2740('0x105')]=_0x4a4f3f?_0x2e4687[_0x2740('0x3b')][_0x2740('0xe4')][_0x2740('0x92')](_0x1d7bf5+this['_step']):_0x2e4687[_0x2740('0x3b')][_0x2740('0xe4')]['first'],_0x2e4687['activeChange']['data']['isOnRoot'])_0x27ff01=_0xb39783[_0x2740('0xd9')]['view'][_0x2740('0x8c')](_0x2e4687[_0x2740('0x105')][_0x2740('0x78')]);else{const _0x5eeecb=_0xb39783[_0x2740('0x94')][_0x2740('0x61')][_0x2740('0x92')](_0x2740('0xf2')+_0x2e4687[_0x2740('0x105')]['id']);_0x27ff01=_0x579c97(_0xb39783[_0x2740('0xd9')],_0x5eeecb);}_0x226e14({'target':_0x27ff01,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x298788,currentChangeNumber:_0x38d35d,numberOfChanges:_0x1d8785,isReady:_0x3c1253,isEnabled:_0x38caad}=this[_0x2740('0x74')][_0x2740('0xba')]['get'](w);this['isEnabled']=!!(_0x38caad&&_0x3c1253&&_0x1d8785)&&(!_0x298788||(0x1===this['_step']?_0x38d35d<_0x1d8785-0x1:_0x38d35d>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe6a2=['map','Show\x20more\x20items','function','isEnabled','Name\x20this\x20revision','listView','action','execute','items','change:isActionsDropdownOpen','find','panelPosition','name','ck-revision-history-sidebar__revision__actions','first','extendTemplate','_action','button','Compare\x20against\x20selected','class','threeVerticalDots','isVisible','bindTemplate','bind','Restore\x20this\x20revision','listenTo','locale','model','add','stopPropagation','ck-on','isActionsDropdownOpen','source'];(function(_0x295bd1,_0xe6a223){const _0x37c936=function(_0x27173d){while(--_0x27173d){_0x295bd1['push'](_0x295bd1['shift']());}};_0x37c936(++_0xe6a223);}(_0xe6a2,0x111));const _0x37c9=function(_0x295bd1,_0xe6a223){_0x295bd1=_0x295bd1-0x0;let _0x37c936=_0xe6a2[_0x295bd1];return _0x37c936;};import{Collection as _0x18c10f}from'ckeditor5/src/utils';import{icons as _0x3c98b3}from'ckeditor5/src/core';import{Model as _0x408338,addListToDropdown as _0x29ced8,createDropdown as _0x13b98e}from'ckeditor5/src/ui';import{getTranslation as _0xae44c1}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0xfbfd91,_0x53e8a3){const _0x592dac=_0xfbfd91[_0x37c9('0xd')],_0x53e3ac=_0xfbfd91[_0x37c9('0x11')],_0x302c2c=_0x13b98e(_0x53e3ac);_0x302c2c[_0x37c9('0x2')]='sw';const _0x328515=function(_0x1e4584,_0x22c7c5){const _0x5b43f8=function(_0x42c161,_0x934a62){const _0x4ee87a=_0x42c161[_0x37c9('0x11')],_0x2e3d73={'Compare\x20against\x20selected':_0xae44c1(_0x4ee87a,_0x37c9('0x9')),'Name\x20this\x20revision':_0xae44c1(_0x4ee87a,_0x37c9('0x1c')),'Restore\x20this\x20revision':_0xae44c1(_0x4ee87a,_0x37c9('0xf'))};return _0x934a62[_0x37c9('0x18')](_0x49870d=>{const _0x4c4c83=_0x2e3d73[_0x49870d[_0x37c9('0x3')]];return _0x4c4c83&&_0x4c4c83!==_0x49870d[_0x37c9('0x3')]&&(_0x49870d[_0x37c9('0x3')]=_0x4c4c83),_0x49870d;});}(_0x1e4584,_0x22c7c5),_0x4a55ed=new _0x18c10f();for(const _0x47b111 of _0x5b43f8){const _0x2be343={'type':_0x37c9('0x8'),'model':new _0x408338({'label':_0x47b111[_0x37c9('0x3')],'class':_0x47b111[_0x37c9('0xa')],'withText':!0x0,'_action':_0x47b111[_0x37c9('0x1e')]})};_0x2be343[_0x37c9('0x12')][_0x37c9('0xe')](_0x37c9('0x1b'))['to'](_0x1e4584,_0x37c9('0x16'),_0x27eeda=>_0x37c9('0x1a')!=typeof _0x47b111['isEnabled']||(!_0x27eeda||_0x47b111['isEnabled'](_0x1e4584))),_0x4a55ed[_0x37c9('0x13')](_0x2be343);}return _0x4a55ed;}(_0xfbfd91,_0x53e8a3);return _0xfbfd91['bind'](_0x37c9('0x16'))['to'](_0x302c2c,'isOpen'),_0x302c2c['buttonView']['set']({'label':_0xae44c1(_0x53e3ac,_0x37c9('0x19')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x3c98b3[_0x37c9('0xb')]}),_0x302c2c[_0x37c9('0x6')]({'attributes':{'class':[_0x37c9('0x4'),_0x592dac['if'](_0x37c9('0x16'),_0x37c9('0x15'))]},'on':{'click':_0x592dac['to'](_0x2f3cec=>_0x2f3cec[_0x37c9('0x14')]())}}),_0x302c2c['on'](_0x37c9('0x1f'),_0x2b4787=>{_0xfbfd91['isReady']&&_0x37c9('0x1a')==typeof _0x2b4787['source'][_0x37c9('0x7')]&&_0x2b4787[_0x37c9('0x17')][_0x37c9('0x7')](_0xfbfd91);}),_0x29ced8(_0x302c2c,_0x328515),_0x302c2c[_0x37c9('0x10')](_0xfbfd91,_0x37c9('0x0'),(_0x33747e,_0x5ddccc,_0x5c0d21)=>{if(_0x5c0d21)for(const _0x734ac7 of _0x302c2c[_0x37c9('0x1d')][_0x37c9('0x20')]){const _0x1607db=_0x734ac7['children'][_0x37c9('0x5')],_0x2603d5=_0x53e8a3[_0x37c9('0x1')](_0x305796=>_0x305796['action']===_0x1607db[_0x37c9('0x7')])[_0x37c9('0xc')];_0x734ac7[_0x37c9('0xc')]=void 0x0===_0x2603d5||_0x2603d5(_0xfbfd91);}}),_0x302c2c;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b81=['ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','push','Revision\x20creator','ck-revision-history-sidebar__revision-author__name','name','span','set'];(function(_0x2b3bfd,_0x4b8195){const _0x14fc99=function(_0x400ac2){while(--_0x400ac2){_0x2b3bfd['push'](_0x2b3bfd['shift']());}};_0x14fc99(++_0x4b8195);}(_0x4b81,0x119));const _0x14fc=function(_0x2b3bfd,_0x4b8195){_0x2b3bfd=_0x2b3bfd-0x0;let _0x14fc99=_0x4b81[_0x2b3bfd];return _0x14fc99;};import{View as _0x354e3e,IconView as _0x2d5b2e}from'ckeditor5/src/ui';import{getTranslation as _0x543adb}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x294615 from'../../../theme/icons/user.svg';export default class ti extends _0x354e3e{constructor(_0x5db3af,_0x36b7ee,_0x13e4cc){super(_0x5db3af);const _0x3f83e4=new _0x2d5b2e();_0x3f83e4[_0x14fc('0x6')]({'content':_0x294615,'viewBox':'0\x200\x2011\x2010'});const _0x41b2ca=['ck',_0x14fc('0x7')];_0x13e4cc&&_0x41b2ca[_0x14fc('0x1')](_0x14fc('0x0'));const _0x154251=[{'tag':_0x14fc('0x5'),'attributes':{'class':['ck',_0x14fc('0x3')],'title':_0x543adb(_0x5db3af,_0x13e4cc?_0x14fc('0x2'):'Revision\x20author')},'children':[_0x3f83e4,_0x36b7ee[_0x14fc('0x4')]]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x41b2ca},'children':_0x154251});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x6c5c=['ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate','set','span'];(function(_0x18247e,_0x6c5c31){var _0x39d762=function(_0x249c0e){while(--_0x249c0e){_0x18247e['push'](_0x18247e['shift']());}};_0x39d762(++_0x6c5c31);}(_0x6c5c,0x6a));var _0x39d7=function(_0x18247e,_0x6c5c31){_0x18247e=_0x18247e-0x0;var _0x39d762=_0x6c5c[_0x18247e];return _0x39d762;};import{LabeledFieldView as _0x4e163d}from'ckeditor5/src/ui';import{getTranslation as _0x1ec3af}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x4e163d{constructor(_0x1bcbe1,_0x482607){super(_0x1bcbe1,_0x482607),this[_0x39d7('0x2')]({'label':_0x1ec3af(_0x1bcbe1,_0x39d7('0x0'))}),this[_0x39d7('0x1')]({'tag':_0x39d7('0x3'),'attributes':{'class':[_0x39d7('0x4')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x39bb=['srcElement','bindTemplate','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','span','highlight','unshift','ck-revision-history-sidebar__revision__date','.ck-thread__remove-confirm','set','length','setName','creator','revisionActionsView','closest','_revision','change','isConfirm','isReady','ck-revision-history-sidebar__actions_dropdown_open','deselect','bind','value','render','isHighlighted','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision-authors','isSelected','_createdAtFormatted','div','filter','ck-revision-history-sidebar__revision__controls-wrapper','ck-reset','isActionsDropdownOpen','createdAt','fieldView','authors','name','extendTemplate','220','map','from','revisionNameView','select','isEnabled','setTemplate','listenTo','ck-disabled','fire','unhighlight','placeholder','ck-revision-history-sidebar__revision'];(function(_0x10725a,_0x39bb33){const _0x3935a5=function(_0x30a15a){while(--_0x30a15a){_0x10725a['push'](_0x10725a['shift']());}};_0x3935a5(++_0x39bb33);}(_0x39bb,0xa9));const _0x3935=function(_0x10725a,_0x39bb33){_0x10725a=_0x10725a-0x0;let _0x3935a5=_0x39bb[_0x10725a];return _0x3935a5;};import{View as _0xe80de1,createLabeledInputText as _0x50035d}from'ckeditor5/src/ui';import{ConfirmMixin as _0x126668}from'ckeditor5-collaboration/src/collaboration-core';import _0x1696b3 from'./revisionnameview';import _0x5ab08e from'./revisionauthorview';import{dateToPrettyFormat as _0x258956}from'./utils';import{createActionsDropdownView as _0x46b5fa}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x126668(_0xe80de1){constructor(_0x5c7a53,_0x4cef07,_0x1f0791){super(_0x5c7a53);const _0xf339d5=this[_0x3935('0x24')],_0x1d649d=function(_0x5c9c80,_0x23c82a){const _0x38be3c=Array[_0x3935('0x18')](_0x23c82a[_0x3935('0x13')])[_0x3935('0xd')](_0x110dcc=>_0x110dcc!=_0x23c82a['creator']);return _0x23c82a[_0x3935('0x2e')]&&_0x38be3c[_0x3935('0x28')](_0x23c82a[_0x3935('0x2e')]),_0x38be3c[_0x3935('0x17')](_0x9d22dc=>new _0x5ab08e(_0x5c9c80,_0x9d22dc,_0x9d22dc==_0x23c82a[_0x3935('0x2e')]));}(_0x5c7a53,_0x4cef07);this['id']=_0x4cef07['id'],this[_0x3935('0x31')]=_0x4cef07,this['bind']('name',_0x3935('0x11'))['to'](_0x4cef07),this['bind'](_0x3935('0xb'))['to'](this,_0x3935('0x11'),_0x2ad7c3=>_0x2ad7c3?_0x258956(_0x5c7a53['uiLanguage'],_0x2ad7c3):void 0x0),this[_0x3935('0x2b')](_0x3935('0xa'),!0x1),this[_0x3935('0x2b')](_0x3935('0x7'),!0x1),this[_0x3935('0x2b')](_0x3935('0x10'),!0x1),this[_0x3935('0x2b')](_0x3935('0x1'),!0x1),this[_0x3935('0x2b')](_0x3935('0x1b'),!0x1),this[_0x3935('0x19')]=new _0x1696b3(_0x5c7a53,_0x50035d),this[_0x3935('0x19')][_0x3935('0x12')][_0x3935('0x15')]({'attributes':{'maxlength':_0x3935('0x16')}}),this['revisionNameView'][_0x3935('0x12')]['bind'](_0x3935('0x5'),_0x3935('0x21'))['to'](this,_0x3935('0x14'),_0x3935('0xb')),this[_0x3935('0x19')][_0x3935('0x4')](_0x3935('0x1b'))['to'](this,_0x3935('0xa'),this,'isEnabled',(_0x5e4a6a,_0x1799b5)=>_0x5e4a6a&&_0x1799b5),this['revisionActionsView']=_0x1f0791&&_0x1f0791[_0x3935('0x2c')]?_0x46b5fa(this,_0x1f0791):'',this[_0x3935('0x2f')]&&this[_0x3935('0x2f')]['bind'](_0x3935('0x1b'))['to'](this),this[_0x3935('0x1c')]({'tag':'div','attributes':{'class':['ck',_0x3935('0xf'),_0x3935('0x8'),_0xf339d5['if'](_0x3935('0x0'),_0x3935('0x25'))]},'children':[{'tag':_0x3935('0xc'),'attributes':{'class':['ck','ck-reset',_0x3935('0x22'),_0xf339d5['if']('isEnabled',_0x3935('0x1e'),_0x4a027e=>!_0x4a027e),_0xf339d5['if'](_0x3935('0xa'),'ck-revision-history-sidebar__revision_selected'),_0xf339d5['if'](_0x3935('0x7'),'ck-revision-history-sidebar__revision_highlighted'),_0xf339d5['if'](_0x3935('0x10'),_0x3935('0x2'))]},'children':[this[_0x3935('0x19')],{'tag':_0x3935('0x26'),'attributes':{'class':['ck',_0x3935('0x29')]},'children':[{'text':_0xf339d5['to'](_0x3935('0xb'))}]},{'tag':_0x3935('0xc'),'attributes':{'class':['ck',_0x3935('0xe')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x3935('0x9')]},'children':_0x1d649d}]},this[_0x3935('0x2f')]],'on':{'click':_0xf339d5['to'](_0x4db5a5=>{_0x4db5a5[_0x3935('0x23')][_0x3935('0x30')](_0x3935('0x2a'))||this[_0x3935('0x1')]&&this['isEnabled']&&this[_0x3935('0x1f')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x3935('0x6')]();const _0x107f9a=this[_0x3935('0x19')][_0x3935('0x12')]['element'];this[_0x3935('0x1d')](_0x107f9a,_0x3935('0x32'),()=>{this[_0x3935('0x1f')](_0x3935('0x2d'),{'id':this['id'],'name':_0x107f9a['value']});});}[_0x3935('0x1a')](){this['isSelected']=!0x0;}[_0x3935('0x3')](){this['isSelected']=!0x1;}[_0x3935('0x27')](){this[_0x3935('0x7')]=!0x0;}[_0x3935('0x20')](){this[_0x3935('0x7')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x41a3=['_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','ck-revision-history-sidebar__subrevision-collapser__inner','isVisible','true','false','toggle','button','span','bindTemplate','set'];(function(_0x595fa9,_0x41a3de){const _0x493516=function(_0x539681){while(--_0x539681){_0x595fa9['push'](_0x595fa9['shift']());}};_0x493516(++_0x41a3de);}(_0x41a3,0x1db));const _0x4935=function(_0x595fa9,_0x41a3de){_0x595fa9=_0x595fa9-0x0;let _0x493516=_0x41a3[_0x595fa9];return _0x493516;};import{View as _0x48346e}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x48346e{constructor(_0x5f0abe){super(_0x5f0abe);const _0x56deb0=this[_0x4935('0x7')];this[_0x4935('0x8')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x4935('0x6'),'attributes':{'class':['ck',_0x4935('0xa'),_0x56deb0['if'](_0x4935('0x1'),'ck-hidden',_0x4e335b=>!_0x4e335b),_0x56deb0['if']('_isCollapsed','ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4935('0x5'),'aria-pressed':_0x56deb0['to'](_0x4935('0x9'),_0x34c0c1=>_0x34c0c1?_0x4935('0x3'):_0x4935('0x2'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x4935('0x0')]}}],'on':{'click':_0x56deb0['to']('click')}});}[_0x4935('0x4')](){this[_0x4935('0x9')]=!this['_isCollapsed'];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xbf8e=['select','set','isSelected','bindTemplate','bind','ck-reset','deselect','setTemplate','createdAt','ck-revision-history-sidebar__revision-authors','_parentRevisionId','ck-revision-history-sidebar__subrevision','fire','_createdAtFormatted','span','ck-revision-history-sidebar__revision','ck-revision-history-sidebar__revision__date','uiLanguage','div'];(function(_0x53bfa7,_0xbf8efe){const _0x1eab87=function(_0x480321){while(--_0x480321){_0x53bfa7['push'](_0x53bfa7['shift']());}};_0x1eab87(++_0xbf8efe);}(_0xbf8e,0x1c4));const _0x1eab=function(_0x53bfa7,_0xbf8efe){_0x53bfa7=_0x53bfa7-0x0;let _0x1eab87=_0xbf8e[_0x53bfa7];return _0x1eab87;};import{View as _0x2fe7af}from'ckeditor5/src/ui';import _0x16d51b from'./revisionauthorview';import{dateToPrettyFormat as _0x4e617e}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2fe7af{constructor(_0x3f7307,_0x5e726d,_0x64e18b){super(_0x3f7307);const _0x18e93e=this[_0x1eab('0x7')];this['id']=_0x5e726d['id'],this[_0x1eab('0x8')](_0x1eab('0xc'))['to'](_0x5e726d),this[_0x1eab('0x5')]('isSelected',!0x1),this[_0x1eab('0x8')](_0x1eab('0x11'))['to'](this,_0x1eab('0xc'),_0x38384a=>_0x38384a?_0x4e617e(_0x3f7307[_0x1eab('0x2')],_0x38384a):void 0x0),this[_0x1eab('0xe')]=_0x64e18b,this[_0x1eab('0xb')]({'tag':_0x1eab('0x3'),'attributes':{'class':['ck',_0x1eab('0x9'),_0x1eab('0x0'),_0x1eab('0xf'),_0x18e93e['if'](_0x1eab('0x6'),'ck-revision-history-sidebar__revision_selected')]},'children':[{'tag':_0x1eab('0x12'),'attributes':{'class':['ck',_0x1eab('0x1')]},'children':[{'text':_0x18e93e['to']('_createdAtFormatted')}]},{'tag':'ul','attributes':{'class':['ck',_0x1eab('0xd')]},'children':[new _0x16d51b(_0x3f7307,_0x5e726d['creator'],!0x0)]}],'on':{'click':_0x18e93e['to'](this[_0x1eab('0x4')][_0x1eab('0x8')](this))}});}[_0x1eab('0x4')](){this[_0x1eab('0x6')]=!0x0,this[_0x1eab('0x10')](_0x1eab('0x4'),{'parentId':this[_0x1eab('0xe')]});}[_0x1eab('0xa')](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5916=['numeric','long','toLocaleDateString'];(function(_0x15ba24,_0x5916ba){var _0x4048fd=function(_0x4b51ab){while(--_0x4b51ab){_0x15ba24['push'](_0x15ba24['shift']());}};_0x4048fd(++_0x5916ba);}(_0x5916,0xbf));var _0x4048=function(_0x15ba24,_0x5916ba){_0x15ba24=_0x15ba24-0x0;var _0x4048fd=_0x5916[_0x15ba24];return _0x4048fd;};export function dateToPrettyFormat(_0x57f80a,_0x4b60c5){return _0x4b60c5[_0x4048('0x0')](_0x57f80a,{'month':_0x4048('0x2'),'day':_0x4048('0x1')})+',\x20'+_0x4b60c5['toLocaleTimeString'](_0x57f80a,{'hour':_0x4048('0x1'),'minute':_0x4048('0x1')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb321=['ck-button-save','cancel','reset','focusFirst','220','form','arrowleft','_focusables','fieldView','stopPropagation','revisionNameInputView','trim','type','value','saveButtonView','locale','execute','render','revisionName','listenTo','_focusCycler','input','Save','Cancel','forEach','submit','cancelButtonView','keystrokes','_createButton','add','element','shift\x20+\x20tab','setTemplate','focusTracker','ck-button-cancel','arrowup','extendTemplate','set'];(function(_0x53c821,_0xb32131){const _0x327135=function(_0x17f5e8){while(--_0x17f5e8){_0x53c821['push'](_0x53c821['shift']());}};_0x327135(++_0xb32131);}(_0xb321,0x1c4));const _0x3271=function(_0x53c821,_0xb32131){_0x53c821=_0x53c821-0x0;let _0x327135=_0xb321[_0x53c821];return _0x327135;};import{icons as _0x16c07d}from'ckeditor5/src/core';import{ButtonView as _0x4944a2,FocusCycler as _0x8ece43,LabeledFieldView as _0x29b1b4,View as _0x293db5,ViewCollection as _0x40c290,createLabeledInputText as _0x95f85,injectCssTransitionDisabler as _0x50b6bf,submitHandler as _0x15c893}from'ckeditor5/src/ui';import{FocusTracker as _0x41fc06,KeystrokeHandler as _0x141b76}from'ckeditor5/src/utils';import{getTranslation as _0x3cfb99}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class wt extends _0x293db5{constructor(_0x1bfb6f){super(_0x1bfb6f),this['focusTracker']=new _0x41fc06(),this['keystrokes']=new _0x141b76(),this[_0x3271('0x3')]('revisionNameInputValue',''),this[_0x3271('0xe')]=this['_createRevisionNameInput'](),this['saveButtonView']=this[_0x3271('0x20')](_0x3cfb99(_0x1bfb6f,_0x3271('0x1a')),_0x16c07d['check'],_0x3271('0x4')),this[_0x3271('0x12')][_0x3271('0x10')]=_0x3271('0x1d'),this[_0x3271('0x1e')]=this[_0x3271('0x20')](_0x3cfb99(_0x1bfb6f,_0x3271('0x1b')),_0x16c07d[_0x3271('0x5')],_0x3271('0x0'),_0x3271('0x5')),this[_0x3271('0xb')]=new _0x40c290(),this['_focusCycler']=new _0x8ece43({'focusables':this[_0x3271('0xb')],'focusTracker':this['focusTracker'],'keystrokeHandler':this[_0x3271('0x1f')],'actions':{'focusPrevious':_0x3271('0x23'),'focusNext':'tab'}}),this[_0x3271('0x24')]({'tag':_0x3271('0x9'),'attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x3271('0xe')],this['saveButtonView'],this['cancelButtonView']]}),_0x50b6bf(this);}[_0x3271('0x15')](){super[_0x3271('0x15')](),_0x15c893({'view':this}),([this[_0x3271('0xe')],this[_0x3271('0x12')],this[_0x3271('0x1e')]][_0x3271('0x1c')](_0x47303e=>{this[_0x3271('0xb')][_0x3271('0x21')](_0x47303e),this[_0x3271('0x25')][_0x3271('0x21')](_0x47303e[_0x3271('0x22')]);}),this['keystrokes'][_0x3271('0x17')](this[_0x3271('0x22')]));const _0x566a78=_0x918b74=>_0x918b74[_0x3271('0xd')]();this[_0x3271('0x1f')][_0x3271('0x3')]('arrowright',_0x566a78),this['keystrokes']['set'](_0x3271('0xa'),_0x566a78),this['keystrokes']['set'](_0x3271('0x1'),_0x566a78),this['keystrokes']['set']('arrowdown',_0x566a78);}['focus'](){this[_0x3271('0x18')][_0x3271('0x7')]();}get[_0x3271('0x16')](){return this[_0x3271('0xe')][_0x3271('0xc')][_0x3271('0x22')][_0x3271('0x11')]['trim']();}set['revisionName'](_0xb30837){this[_0x3271('0xe')][_0x3271('0xc')][_0x3271('0x22')][_0x3271('0x11')]=_0xb30837[_0x3271('0xf')]();}[_0x3271('0x6')](){this[_0x3271('0xe')][_0x3271('0xc')][_0x3271('0x22')][_0x3271('0x11')]='';}['_createRevisionNameInput'](){const _0x37f5f0=new _0x29b1b4(this[_0x3271('0x13')],_0x95f85),_0x26c4e8=_0x37f5f0[_0x3271('0xc')];return _0x26c4e8[_0x3271('0x2')]({'attributes':{'maxlength':_0x3271('0x8')}}),_0x37f5f0['label']=_0x3cfb99(this[_0x3271('0x13')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x26c4e8['on'](_0x3271('0x19'),()=>{this['revisionNameInputValue']=_0x26c4e8[_0x3271('0x22')][_0x3271('0x11')][_0x3271('0xf')]();}),_0x37f5f0;}['_createButton'](_0x3eb95a,_0x416bab,_0x35090a,_0x59676f){const _0x4c0a58=new _0x4944a2(this[_0x3271('0x13')]);return _0x4c0a58[_0x3271('0x3')]({'label':_0x3eb95a,'icon':_0x416bab,'tooltip':!0x0}),_0x4c0a58[_0x3271('0x2')]({'attributes':{'class':_0x35090a}}),_0x59676f&&_0x4c0a58['delegate'](_0x3271('0x14'))['to'](this,_0x59676f),_0x4c0a58;}}
|