@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230906.0 → 0.0.0-nightly-20230908.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4605=['revision-suggestion','markerToHighlight','affectsData','left','all','getWalker','processor','showPreviousChange','WidgetToolbarRepository','indexOf','change:isEnabled','resolve','detachRoot','_removeRevisionMarkers','wrap','checkAttribute','addHighlight','_changeView','removeMarker:revision','_sortAndFilterDiffChanges','revision-viewer','adapter','numberOfChanges','remove','_findChangeIdFromDomTarget','forward','addRoot','setAttribute','hasAttribute','high','revisionHistoryLabel','getIndex','comment','_getDiff','createPositionBefore','_setDistance','createRevision','_getViewForChange','abs','getAttribute','reconvertMarker','activeView','getRoot','suggestion','showStack','level','requires','isContent','plugins','changes','enqueueChange','addRevision','_cleanUp','forEach','unbindElementFromMarkerName','change','revision-start','catch','getRevisionData','schema','insertion','revision','isCollapsed','elementToAttribute','_makeTape','isSuggestion','endIndex','from','POSITIVE_INFINITY','model','_balloon','parse','end','createRange','nodeAfter','ck-suggestion-preview-marker-','isOnRoot','bottom','bind','insert','ck-revision-history-root-add','revision-end','rootName','getClientRects','repository','data-revision-','add','top','markerNameToElements','clear','selection','mousedown','range','revision-comment:','marked','addMarker:revision-suggestion:insertion','authors','object','getCustomProperty','attributesBefore','listenTo','getChild','name','right','find','isEqual','attributesAfter','observeMarkers','side','removeMarker:revision-suggestion','_appendChild','hasClass','softBreak','isReady','markers','diff','createUIElement','slice','addClass','maxOffset','_markMismatchedRemovedTags','_markInsertions','forceDisabled','element','_fixObsoleteTags','ck-revision-history-root-remove','isNavigationMode','backward','revision:','commands','toViewElement','span','string','data','_threeWayMerge','useFillerType','execute','nextSibling','highest','vid_start','previousPosition','elementEnd','then','viewItem','_data','dataToMarker','_removeUnsupportedChanges','-new','downcastDispatcher','collaboration.channelId','mapViewToDom','vid_end','createPositionFromPath','mouseover','markerToData','uiElement','change:activeChange','deletion','merge','createAttributeElement','_refreshStartEndIndex','suggestion:','mapper','addMarker:revision','data-change-id','writer','isObject','insertions','flat','splice','loadRevisionData','ck-suggestion-marker','_makeModelFromViewString','filter','children','userId','isAtStart','length','next','isAtEnd','test','ck-suggestion-marker--active','deletions','shift','refresh','has','consumable','changeId','editing','_cleanMarkers','removeAttribute','view','ck-suggestion-marker-','_getRevisionsRange','elementStart','attachChange','ck-revision-history-root-','set','restoreRevisionCallback','newRevisionId','_update','bindElementToMarker','change:isReady','isIncorrect','push','ck-revision-history-root--active','removeClass','markerRange','getRootNames','diffData','split','currentChangeNumber','_joinTapes','locale','isAfter','markersStart','getRevision','_activeViewTarget','pairId','type','enableReadOnlyMode','isInline','nextPosition','_markSuggestions','includes','_initInteractions','roots','toViewPosition','target','isEnabled','sort','document','_makeModelFromTape','activeChange','conversion','editor','toViewRange','_changeIdToChange','attribute:vid','get','for','config','isAddSuggestion','updatePosition','modelRange','stop','startIndex','code','text','map','start','_processTape','vid','_setChanges','isRemoved','startsWith','isBlock','isLimit','getDomRoot','compare','isAdded','values','parent','_getChangeFromId','upcast','attributes','ck-editor__editable__overlay','RevisionViewer','change:activeView','isBefore','toModel','distance','keys','getAttributes','_step','return','createRangeIn','_removeMissingPairs','_markMarkers','low','markersEnd','destroy','consume','revision-suggestion:','concat','offsetSize','isRemoveSuggestion','element:pre','revisionHistoryAttachChange','item','domEvent','getRevisionRootsAttributes','_getViewObj','markerName','restoreRevision','error','isAttached','index','delete','change:numberOfChanges','unshift','pluginName'];(function(_0xe4662,_0x46057d){const _0x51b865=function(_0x3b7ba2){while(--_0x3b7ba2){_0xe4662['push'](_0xe4662['shift']());}};_0x51b865(++_0x46057d);}(_0x4605,0x67));const _0x51b8=function(_0xe4662,_0x46057d){_0xe4662=_0xe4662-0x0;let _0x51b865=_0x4605[_0xe4662];return _0x51b865;};import{Plugin as _0x1bbf13,Command as _0x3ab592}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x571fb1}from'ckeditor5/src/utils';import{ContextualBalloon as _0x5496f4}from'ckeditor5/src/ui';import{DocumentFragment as _0xcfbbd7,Element as _0x336b95,Text as _0x1fe542,ViewDocumentFragment as _0x38454b,ViewText as _0x1ba5b8,ViewElement as _0x2e1a6f,ViewContainerElement as _0x5dc999,ViewAttributeElement as _0x300403,ViewEmptyElement as _0x24cc69,ViewRawElement as _0x183e0c,ViewUIElement as _0x48950b}from'ckeditor5/src/engine';import{Users as _0x42da02,getMarkerDomElement as _0x306b6c}from'ckeditor5-collaboration/src/collaboration-core';import _0x41d175 from'./ui/revisionviewer/changedetailsview';import _0x55c80b from'./revisionsrepository';import _0x148687 from'./changeitem';import{default as _0x3cc7a8}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4b89ca}from'lodash-es';const tt={'c':_0x5dc999,'a':_0x300403,'e':_0x24cc69,'r':_0x183e0c,'u':_0x48950b};export default class d extends _0x1bbf13{static get[_0x51b8('0xc6')](){return _0x51b8('0xa4');}static get[_0x51b8('0xf5')](){return[_0x42da02,_0x5496f4,_0x55c80b];}constructor(_0x43ba45){super(_0x43ba45),this[_0x51b8('0x11b')]=this[_0x51b8('0x84')][_0x51b8('0xf7')]['get']('RevisionsRepository'),this[_0x51b8('0x5e')](_0x51b8('0x82'),null),this['set']('activeView',null),this[_0x51b8('0x72')]=null,this[_0x51b8('0x5e')](_0x51b8('0xc'),null),this[_0x51b8('0x5e')](_0x51b8('0xa'),!0x1),this[_0x51b8('0x5e')]('isEnabled',!0x0),this['on'](_0x51b8('0xd1'),(_0x34019e,_0x1e8fa4,_0x412f31)=>{this[_0x51b8('0x82')]=null,this[_0x51b8('0xf0')]=null,this[_0x51b8('0x84')][_0x51b8('0x55')]['view']['change'](_0x58341e=>{for(const _0x3a6ed1 of this[_0x51b8('0x84')]['editing'][_0x51b8('0x58')]['document'][_0x51b8('0x7b')])_0x412f31?_0x58341e[_0x51b8('0x67')](_0x51b8('0xa3'),_0x3a6ed1):_0x58341e[_0x51b8('0xf')](_0x51b8('0xa3'),_0x3a6ed1);});}),this['bind'](_0x51b8('0x17'))['to'](this,_0x51b8('0x82'),_0x3221e3=>null!==_0x3221e3),this['bind'](_0x51b8('0x6c'))['to'](this,_0x51b8('0xa'),this,_0x51b8('0xc'),this,_0x51b8('0x82'),(_0x1fa3fb,_0x342e39,_0x5ad69e)=>_0x1fa3fb&&_0x5ad69e?_0x342e39['changes'][_0x51b8('0xe6')](_0x5ad69e):0x0),this[_0x51b8('0x115')](_0x51b8('0xdd'))['to'](this,_0x51b8('0xa'),this,'diff',(_0x498a27,_0x54f8ac)=>_0x498a27?_0x54f8ac[_0x51b8('0xf8')][_0x51b8('0x4a')]:0x0),this[_0x51b8('0xd8')]=null,this['_changeIdToChange']=new Map(),this[_0x51b8('0xdc')]=null,this[_0x51b8('0x10d')]=this[_0x51b8('0x84')]['plugins']['get'](_0x5496f4);}['init'](){const _0x2104c8=this[_0x51b8('0x84')],_0x52c266=new ShowChangeCommand(_0x2104c8,{'direction':_0x51b8('0x18')}),_0x4263ab=new ShowChangeCommand(_0x2104c8,{'direction':_0x51b8('0xe0')});(_0x2104c8[_0x51b8('0x1a')][_0x51b8('0x11d')](_0x51b8('0xce'),_0x52c266),_0x2104c8[_0x51b8('0x1a')]['add']('showNextChange',_0x4263ab),_0x2104c8['commands']['add'](_0x51b8('0xbf'),new RestoreRevisionCommand(_0x2104c8)),this['on'](_0x51b8('0xc4'),()=>{_0x52c266[_0x51b8('0x51')](),_0x4263ab[_0x51b8('0x51')]();}),this['_setConversion'](),this[_0x51b8('0x7a')](),_0x2104c8[_0x51b8('0x75')](_0x51b8('0xdb')),_0x2104c8[_0x51b8('0xf7')][_0x51b8('0x52')](_0x51b8('0xcf')))&&_0x2104c8['plugins'][_0x51b8('0x88')](_0x51b8('0xcf'))[_0x51b8('0x13')]('revision-viewer');}async[_0x51b8('0x101')](_0x9ff1da){await this[_0x51b8('0x43')](_0x9ff1da);const _0x5ab6ea={};for(const _0x48e1d1 in _0x9ff1da[_0x51b8('0x6a')]){if(_0x9ff1da[_0x51b8('0x6a')][_0x48e1d1]['attachChange']&&!_0x9ff1da[_0x51b8('0x6a')][_0x48e1d1][_0x51b8('0x5c')]['isAttached'])continue;const _0x1ade5d=this[_0x51b8('0xd4')](JSON['parse'](_0x9ff1da['diffData'][_0x48e1d1]['insertions'])),_0x264392=this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')]['document'],_0x459ca5=new _0x38454b(_0x264392,_0x1ade5d[_0x51b8('0x92')](_0x503504=>this[_0x51b8('0xbd')](_0x503504)));this[_0x51b8('0x84')][_0x51b8('0x1e')][_0x51b8('0xcd')]['useFillerType'](_0x51b8('0x125')),_0x5ab6ea[_0x48e1d1]=this[_0x51b8('0x84')][_0x51b8('0x1e')]['processor']['toData'](_0x459ca5),this['editor'][_0x51b8('0x1e')]['processor'][_0x51b8('0x20')]('default');}return _0x5ab6ea;}async[_0x51b8('0xbc')](_0x447583){await this[_0x51b8('0x43')](_0x447583);const _0x4c3ecd={};for(const _0xff1805 in _0x447583[_0x51b8('0x6a')])_0x447583[_0x51b8('0x6a')][_0xff1805]['attachChange']&&!_0x447583[_0x51b8('0x6a')][_0xff1805]['attachChange'][_0x51b8('0xc1')]||(_0x4c3ecd[_0xff1805]=_0x447583[_0x51b8('0x6a')][_0xff1805][_0x51b8('0x3')]||{});return _0x4c3ecd;}[_0x51b8('0xd4')](_0x281921){return(_0x281921=_0x281921[_0x51b8('0x46')](_0xee5543=>!_0xee5543[_0x51b8('0x12d')]||_0x51b8('0xff')!==_0xee5543[_0x51b8('0x12d')]&&_0x51b8('0x118')!==_0xee5543[_0x51b8('0x12d')]))['forEach'](_0x19e8db=>{_0x51b8('0x1d')!=typeof _0x19e8db&&(_0x19e8db[_0x51b8('0x47')]=this[_0x51b8('0xd4')](_0x19e8db[_0x51b8('0x47')]),_0x19e8db['attributes']=_0x19e8db[_0x51b8('0xa2')][_0x51b8('0x46')](_0x47ec97=>!_0x47ec97[0x0][_0x51b8('0x98')](_0x51b8('0x11c'))));}),_0x281921;}async[_0x51b8('0x9c')](_0x363a62,_0x268b96,_0x715034=!0x1){if(!this[_0x51b8('0x7e')])return;const _0x3d1a6a=this[_0x51b8('0xc')],_0x101ef1=this[_0x51b8('0x11b')],_0x443fea=_0x51b8('0x1d')==typeof _0x363a62?_0x101ef1['getRevision'](_0x363a62):_0x363a62,_0x786c10=_0x51b8('0x1d')==typeof _0x268b96?_0x101ef1['getRevision'](_0x268b96):_0x268b96,_0x10c260=_0x443fea['id'],_0x528e4a=_0x786c10?_0x786c10['id']:null;if(!_0x715034&&this[_0x51b8('0xc')]&&this[_0x51b8('0xc')][_0x51b8('0x60')]===_0x10c260&&this['diff']['oldRevisionId']===_0x528e4a)return Promise['resolve']();this[_0x51b8('0xa')]=!0x1,this[_0x51b8('0xf0')]=null,this[_0x51b8('0x82')]=null,this[_0x51b8('0xc')]=new _0x3cc7a8(_0x10c260,_0x528e4a);const _0x314b1b=this[_0x51b8('0x5a')](_0x443fea,_0x786c10,!0x0)[_0x51b8('0x92')](_0x577bd8=>this['loadRevisionData'](_0x577bd8));return _0x314b1b[_0x51b8('0x65')](new Promise(_0x334471=>{setTimeout(_0x334471,0x14);})),Promise[_0x51b8('0xcb')](_0x314b1b)['then'](()=>{if(!this[_0x51b8('0x7e')])return;this[_0x51b8('0xfb')]();const _0x121eb9=this[_0x51b8('0xe8')](_0x10c260,_0x528e4a);for(const _0x5d9479 of _0x121eb9['changes'])this['_changeIdToChange']['set'](_0x5d9479['id'],_0x5d9479);this[_0x51b8('0x84')][_0x51b8('0x10c')]['enqueueChange']({'isUndoable':!0x1},_0x2cbd16=>{for(const _0x248b19 of this['editor']['model'][_0x51b8('0x80')][_0x51b8('0x69')]())_0x2cbd16['detachRoot'](_0x248b19);for(const _0x4a1b92 of Object[_0x51b8('0xa9')](_0x121eb9['model'])){const _0x21db3b=_0x2cbd16[_0x51b8('0xe1')](_0x4a1b92);for(const _0x1c9a0c of Object['keys'](_0x121eb9['attributes'][_0x4a1b92]))_0x2cbd16[_0x51b8('0xe2')](_0x1c9a0c,_0x121eb9[_0x51b8('0xa2')][_0x4a1b92][_0x1c9a0c],_0x21db3b);_0x2cbd16[_0x51b8('0x116')](_0x121eb9['model'][_0x4a1b92],_0x21db3b,0x0);}}),this[_0x51b8('0xc')][_0x51b8('0x96')](this[_0x51b8('0xda')](_0x121eb9[_0x51b8('0xf8')])),this['isReady']=!0x0;})[_0x51b8('0x100')](_0x531427=>{console[_0x51b8('0xc0')](_0x531427),this['_cleanUp'](),_0x3d1a6a&&(this[_0x51b8('0xc')]=_0x3d1a6a),this[_0x51b8('0xa')]=!0x0;});}['addRevisionData'](_0x205e1d,_0x2731d8){const _0x285ca9=this['repository'][_0x51b8('0xeb')](_0x205e1d);return _0x285ca9['on'](_0x51b8('0x61'),(_0x3fbfb3,_0x4457c7,_0xf2fe99)=>_0x2731d8(_0x4457c7,_0xf2fe99,_0x285ca9)),this[_0x51b8('0x11b')][_0x51b8('0xfa')](_0x285ca9),_0x285ca9;}[_0x51b8('0x43')](_0x5e6be4){if(!_0x5e6be4||_0x5e6be4[_0x51b8('0x6a')])return Promise[_0x51b8('0xd2')]();{const _0x52a549=this['editor'][_0x51b8('0x8a')][_0x51b8('0x88')](_0x51b8('0x2e'));return this[_0x51b8('0xdc')][_0x51b8('0x71')]({'channelId':_0x52a549,'revisionId':_0x5e6be4['id']})[_0x51b8('0x27')](_0x41247a=>{_0x5e6be4[_0x51b8('0x61')]({'diffData':_0x41247a[_0x51b8('0x6a')]},!0x0);});}}[_0x51b8('0xfb')](){this[_0x51b8('0x82')]=null,this[_0x51b8('0x56')](),this[_0x51b8('0xd8')]&&this[_0x51b8('0xd8')][_0x51b8('0xb2')](),this['_changeView']=null,this[_0x51b8('0x86')][_0x51b8('0x120')](),this[_0x51b8('0x84')]['model'][_0x51b8('0xf9')]({'isUndoable':!0x1},_0x18cc39=>{for(const _0xe2d847 of this[_0x51b8('0x84')][_0x51b8('0x10c')]['document']['getRootNames']())_0x18cc39[_0x51b8('0xd3')](_0xe2d847);});}['_sortAndFilterDiffChanges'](_0x24d776){const _0x527432=[],_0x24e2e3=new Map();for(const _0x26d8af of this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x80')][_0x51b8('0x69')]()){const _0x26eb06=this['editor'][_0x51b8('0x55')]['view'][_0x51b8('0x9b')](_0x26d8af);if(!_0x26eb06)continue;const _0x522d4a=_0x26eb06['getClientRects']()[_0x51b8('0xba')](0x0);_0x522d4a&&(_0x527432[_0x51b8('0x65')](_0x26d8af),_0x24e2e3[_0x51b8('0x5e')](_0x26d8af,_0x522d4a));}return _0x527432['sort']((_0x5cdcbd,_0x2a7b39)=>{const _0x517818=_0x24e2e3['get'](_0x5cdcbd),_0x5cc342=_0x24e2e3[_0x51b8('0x88')](_0x2a7b39);return _0x517818['y']-_0x5cc342['y']||_0x517818['x']-_0x5cc342['x'];}),(_0x24d776=_0x24d776[_0x51b8('0x46')](_0x1086ad=>_0x527432[_0x51b8('0x79')](_0x1086ad[_0x51b8('0x119')])))[_0x51b8('0x7f')]((_0x142fc3,_0x5ddd28)=>_0x527432[_0x51b8('0xd0')](_0x142fc3[_0x51b8('0x119')])-_0x527432[_0x51b8('0xd0')](_0x5ddd28[_0x51b8('0x119')])),_0x24d776;}['_makeTape'](_0x158d87){const _0x2d96be=Array[_0x51b8('0x10a')](_0x158d87[_0x51b8('0xb')])[_0x51b8('0x46')](([_0x36b5ca,_0x3f2b96])=>_0x36b5ca[_0x51b8('0x98')](_0x51b8('0x19'))&&!_0x3f2b96['isCollapsed']),_0x183152=Array[_0x51b8('0x10a')](this[_0x51b8('0x84')]['model'][_0x51b8('0xad')](_0x158d87)[_0x51b8('0xcc')]({'singleCharacters':!0x0}));if(0x0!=_0x2d96be[_0x51b8('0x4a')])for(const _0x1ffa04 of _0x183152){const [_0x3a39cd,_0x588048]=_0x2d96be[0x0],[,_0x1397c2,_0x14ac1c]=_0x3a39cd[_0x51b8('0x6b')](':');if(_0x588048[_0x51b8('0x10f')][_0x51b8('0x2')](_0x1ffa04[_0x51b8('0x77')])&&_0x2d96be[_0x51b8('0x50')](),(_0x1ffa04[_0x51b8('0x25')]['isEqual'](_0x588048[_0x51b8('0x93')])||_0x1ffa04[_0x51b8('0x25')][_0x51b8('0x6f')](_0x588048[_0x51b8('0x93')]))&&(_0x51b8('0x103')==_0x1397c2?_0x1ffa04[_0x51b8('0x9d')]={'userId':_0x14ac1c}:_0x51b8('0x36')==_0x1397c2&&(_0x1ffa04['isRemoved']={'userId':_0x14ac1c})),0x0==_0x2d96be['length'])break;}return _0x183152;}[_0x51b8('0x39')](_0x32a454){const _0x188bad=new Map();for(let _0x30ff33=0x0;_0x30ff33<_0x32a454[_0x51b8('0x4a')];_0x30ff33++)_0x51b8('0x91')===_0x32a454[_0x30ff33]['type']?(_0x32a454[_0x30ff33]['item'][_0x51b8('0x8f')]=_0x30ff33,_0x32a454[_0x30ff33]['item'][_0x51b8('0x109')]=_0x30ff33):(_0x51b8('0x5b')===_0x32a454[_0x30ff33]['type']?_0x32a454[_0x30ff33]['item']['startIndex']=_0x30ff33:_0x51b8('0x26')===_0x32a454[_0x30ff33][_0x51b8('0x74')]&&(_0x32a454[_0x30ff33][_0x51b8('0xba')][_0x51b8('0x109')]=_0x30ff33),_0x188bad[_0x51b8('0x5e')](_0x32a454[_0x30ff33]['id'],_0x30ff33));for(const _0x3fd89e of _0x188bad[_0x51b8('0x9e')]())_0x51b8('0x5b')===_0x32a454[_0x3fd89e]['type']?_0x32a454[_0x3fd89e][_0x51b8('0xba')][_0x51b8('0x109')]=_0x188bad[_0x51b8('0x88')](_0x32a454[_0x3fd89e]['pairId']):_0x51b8('0x26')===_0x32a454[_0x3fd89e][_0x51b8('0x74')]&&(_0x32a454[_0x3fd89e][_0x51b8('0xba')]['startIndex']=_0x188bad[_0x51b8('0x88')](_0x32a454[_0x3fd89e]['pairId']));}[_0x51b8('0x94')](_0x5b0864){for(let _0x36530f=0x0;_0x36530f<_0x5b0864['length'];_0x36530f++){if('elementStart'===_0x5b0864[_0x36530f][_0x51b8('0x74')])_0x5b0864[_0x36530f][_0x51b8('0xba')][_0x51b8('0x8f')]=_0x36530f;else{if(_0x51b8('0x26')===_0x5b0864[_0x36530f][_0x51b8('0x74')]){_0x5b0864[_0x36530f]['item'][_0x51b8('0x109')]=_0x36530f;const _0x5b2894=_0x5b0864[_0x36530f][_0x51b8('0xba')][_0x51b8('0x8f')];_0x5b0864[_0x5b2894][_0x51b8('0x73')]=_0x5b0864[_0x36530f]['id'],_0x5b0864[_0x36530f][_0x51b8('0x73')]=_0x5b0864[_0x5b2894]['id'];}else _0x5b0864[_0x36530f][_0x51b8('0xba')]['startIndex']=_0x36530f,_0x5b0864[_0x36530f][_0x51b8('0xba')][_0x51b8('0x109')]=_0x36530f,_0x5b0864[_0x36530f][_0x51b8('0x73')]=null;}_0x5b0864[_0x36530f][_0x51b8('0x70')]||(_0x5b0864[_0x36530f]['markersStart']=[],_0x5b0864[_0x36530f][_0x51b8('0xb1')]=[]);}}['_markInsertions'](_0x537b2d,_0x19fb7b){const _0x1de6dd=_0x537b2d[_0x51b8('0x46')](_0x533dd6=>!_0x533dd6[_0x51b8('0x9d')]);for(let _0x250399=0x0;_0x250399<_0x19fb7b[_0x51b8('0x4a')];_0x250399++)_0x19fb7b[_0x250399][_0x51b8('0x9d')]&&(_0x1de6dd[_0x250399]['isAdded']=_0x19fb7b[_0x250399]['isAdded']);}[_0x51b8('0x45')](_0x183b80){const _0x770d4c=JSON[_0x51b8('0x10e')](_0x183b80),_0x397a90=this[_0x51b8('0x84')]['editing'][_0x51b8('0x58')][_0x51b8('0x80')],_0x56415a=new _0x38454b(_0x397a90,_0x770d4c[_0x51b8('0x92')](_0x145d40=>this[_0x51b8('0xbd')](_0x145d40)));return this[_0x51b8('0x84')]['data'][_0x51b8('0xa7')](_0x56415a);}[_0x51b8('0xbd')](_0x935d4d){const _0x1ad1c6=this[_0x51b8('0x84')][_0x51b8('0x55')]['view']['document'];if(_0x51b8('0x1d')==typeof _0x935d4d)return new _0x1ba5b8(_0x1ad1c6,_0x935d4d);{const _0x568aac=_0x935d4d[_0x51b8('0x47')][_0x51b8('0x92')](_0x491d6e=>this[_0x51b8('0xbd')](_0x491d6e));return new(tt[_0x935d4d[(_0x51b8('0x74'))]]||_0x2e1a6f)(_0x1ad1c6,_0x935d4d['name'],_0x935d4d[_0x51b8('0xa2')],_0x568aac);}}[_0x51b8('0xe8')](_0x19f2ca,_0x194837=null){const _0x368006=this[_0x51b8('0x11b')][_0x51b8('0x71')](_0x19f2ca),_0xcb8b25=_0x194837?this['repository'][_0x51b8('0x71')](_0x194837):null,_0x3dded1=this[_0x51b8('0x5a')](_0x368006,_0xcb8b25),_0x3d27cd=_0x3dded1[_0x3dded1[_0x51b8('0x4a')]-0x1],_0x2996c0=new Map(),_0x70b3bb={'model':{},'attributes':{},'changes':[]},_0x15d624=new Set(),_0x2ce22e=new Map();for(let _0xdc16b8=_0x3dded1[_0x51b8('0x4a')]-0x1;_0xdc16b8>=0x0;_0xdc16b8--){const _0x520b0c=_0x3dded1[_0xdc16b8];for(const _0x10ae23 of Object['keys'](_0x520b0c[_0x51b8('0x6a')]))if(_0x520b0c[_0x51b8('0x6a')][_0x10ae23][_0x51b8('0x5c')]){const _0x16e6b6=_0x520b0c[_0x51b8('0x6a')][_0x10ae23][_0x51b8('0x5c')];_0x16e6b6[_0x51b8('0xc1')]?(_0x15d624[_0x51b8('0x11d')](_0x10ae23),_0x2ce22e[_0x51b8('0x52')](_0x10ae23)&&_0x2ce22e[_0x51b8('0x88')](_0x10ae23)[_0x51b8('0x48')]==_0x16e6b6['userId']?_0x2ce22e[_0x51b8('0xc3')](_0x10ae23):_0x2ce22e[_0x51b8('0x5e')](_0x10ae23,_0x16e6b6)):_0x2ce22e['has'](_0x10ae23)?(_0x15d624[_0x51b8('0xc3')](_0x10ae23),_0x2ce22e['delete'](_0x10ae23)):(_0x15d624[_0x51b8('0x11d')](_0x10ae23),_0x2ce22e[_0x51b8('0x5e')](_0x10ae23,_0x16e6b6));}else _0x15d624['add'](_0x10ae23);}for(const _0x4af2c9 of _0x15d624){const _0x3af828=_0x2ce22e['has'](_0x4af2c9)&&!_0x2ce22e[_0x51b8('0x88')](_0x4af2c9)['isAttached'];let _0x5a4115=_0x3af828?_0x3dded1[_0x51b8('0x4a')]-0x1:0x0;const _0x4d59a2=_0x3af828?-0x1:0x1;for(;_0x3dded1[_0x5a4115];){const _0x2459be=_0x3dded1[_0x5a4115];if(_0x2459be[_0x51b8('0x6a')][_0x4af2c9]){const _0x32fcf9=_0x3af828?_0x2459be['diffData'][_0x4af2c9][_0x51b8('0x12a')]:_0x2459be['diffData'][_0x4af2c9][_0x51b8('0x3')];_0x70b3bb[_0x51b8('0xa2')][_0x4af2c9]=_0x32fcf9?_0x4b89ca(_0x32fcf9):{};break;}_0x5a4115+=_0x4d59a2;}}for(const _0x27a0c5 of _0x3dded1){_0x27a0c5[_0x51b8('0x10c')]={};for(const _0x3283d4 of _0x27a0c5[_0x51b8('0x127')])_0x2996c0['set'](_0x3283d4['id'],_0x3283d4);for(const _0x2d5890 of _0x15d624){const _0x4c4620=_0x27a0c5[_0x51b8('0x6a')][_0x2d5890]?_0x27a0c5['diffData'][_0x2d5890]['insertions']:'[]',_0x2ad7d3=_0x27a0c5['diffData'][_0x2d5890]?_0x27a0c5[_0x51b8('0x6a')][_0x2d5890][_0x51b8('0x4f')]:'[]';_0x27a0c5[_0x51b8('0x10c')][_0x2d5890]={'insertions':this['_makeModelFromViewString'](_0x4c4620),'deletions':this[_0x51b8('0x45')](_0x2ad7d3)};}}for(const _0x44a75b of _0x15d624){let _0x4a276b=null,_0x4a300d=0x0;const _0x51ef5a=new Map(Array[_0x51b8('0x10a')](_0x368006[_0x51b8('0x10c')][_0x44a75b][_0x51b8('0x40')][_0x51b8('0xb')])[_0x51b8('0x46')](([_0x462c54])=>!_0x462c54[_0x51b8('0x98')]('revision:')));let _0x467757=0x0;for(const _0x8446f8 of _0x3dded1){const _0x35a2e9=this[_0x51b8('0x107')](_0x8446f8[_0x51b8('0x10c')][_0x44a75b][_0x51b8('0x40')]);_0x8446f8==_0x368006?(_0x4a276b=_0x35a2e9,_0x4a300d=_0x4a276b['length'],_0x4a276b['forEach'](_0x3a1316=>{_0x3a1316['id']=_0x467757++;}),this['_processTape'](_0x4a276b)):this[_0x51b8('0x12')](_0x4a276b,_0x35a2e9);const _0x44258f=_0x4a276b[_0x51b8('0x46')](_0x3689d0=>!_0x3689d0['isAdded'])[_0x51b8('0x92')](_0x192656=>_0x192656['id']);let _0x35328f=0x0;const _0x5a66f6=this[_0x51b8('0x107')](_0x8446f8[_0x51b8('0x10c')][_0x44a75b]['deletions']);_0x5a66f6[_0x51b8('0xfc')](_0x1da0f8=>{_0x1da0f8[_0x51b8('0x97')]?_0x1da0f8['id']=_0x4a300d++:_0x1da0f8['id']=_0x44258f[_0x35328f++];}),this['_processTape'](_0x5a66f6),this[_0x51b8('0xea')](_0x4a276b,'isAdded'),this[_0x51b8('0xea')](_0x5a66f6,_0x51b8('0x97')),_0x8446f8==_0x368006&&this[_0x51b8('0xaf')](_0x4a276b,_0x51ef5a),_0x4a276b=this['_joinTapes'](_0x4a276b,_0x5a66f6),this['_refreshStartEndIndex'](_0x4a276b),this[_0x51b8('0xea')](_0x4a276b,_0x51b8('0x97'));}_0x4a276b=_0x4a276b[_0x51b8('0x46')](_0x48ef7f=>!(_0x48ef7f[_0x51b8('0x9d')]&&_0x48ef7f[_0x51b8('0x97')]));const _0x206ce4=new Map(_0x3d27cd[_0x51b8('0x10c')][_0x44a75b][_0x51b8('0x4f')][_0x51b8('0xb')]),_0x4bdb91=new Set(_0x51ef5a[_0x51b8('0xa9')]());for(const _0x2ac183 of _0x206ce4[_0x51b8('0xa9')]())_0x4bdb91['delete'](_0x2ac183);this['_markSuggestions'](_0x4a276b,_0x4bdb91),this[_0x51b8('0x15')](_0x4a276b),_0x4a276b=this['_removeMissingPairs'](_0x4a276b),_0x4a276b=this[_0x51b8('0x11')](_0x4a276b),_0x4a276b=this[_0x51b8('0x2b')](_0x4a276b);const {root:_0x26e0a4,changes:_0x433c74}=this[_0x51b8('0x81')](_0x4a276b,_0x2996c0,_0x44a75b);_0x70b3bb[_0x51b8('0x10c')][_0x44a75b]=_0x26e0a4;const _0x3dd82b=_0x2ce22e[_0x51b8('0x88')](_0x44a75b);if(_0x3dd82b){const _0x455a15=_0x2996c0['get'](_0x3dd82b[_0x51b8('0x48')]),_0x2c4295=new _0x148687({'author':_0x455a15,'type':_0x3dd82b['isAttached']?_0x51b8('0x11d'):_0x51b8('0xde'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x44a75b});_0x433c74[_0x51b8('0xc5')](_0x2c4295),_0x70b3bb[_0x51b8('0xa2')][_0x44a75b][_0x51b8('0xb9')]=_0x2c4295['id'];}_0x70b3bb[_0x51b8('0xf8')]=_0x70b3bb['changes']['concat'](_0x433c74);}return _0x70b3bb;}[_0x51b8('0xaf')](_0x2713da,_0xae54ad){for(let _0x441ecb=0x0;_0x441ecb<_0x2713da[_0x51b8('0x4a')];_0x441ecb++)for(const [_0x483dea,_0x13df13]of _0xae54ad)_0x13df13[_0x51b8('0x93')][_0x51b8('0x2')](_0x2713da[_0x441ecb]['previousPosition'])&&_0x2713da[_0x441ecb][_0x51b8('0x70')][_0x51b8('0x65')](_0x483dea),_0x13df13[_0x51b8('0x10f')][_0x51b8('0x2')](_0x2713da[_0x441ecb][_0x51b8('0x77')])&&_0x2713da[_0x441ecb][_0x51b8('0xb1')][_0x51b8('0x65')](_0x483dea);}[_0x51b8('0x6d')](_0x505b85,_0x5b56c8){let _0x3650eb=[],_0x3ae74f=0x0,_0x70f6a4=0x0;for(;_0x3ae74f<_0x505b85['length']||_0x70f6a4<_0x5b56c8[_0x51b8('0x4a')];){const _0x37d678=_0x505b85[_0x3ae74f]||{},_0x117ec0=_0x5b56c8[_0x70f6a4]||{};if(_0x37d678['id']==_0x117ec0['id'])_0x3ae74f++,_0x70f6a4++,_0x3650eb['push'](_0x37d678);else{if(_0x117ec0['isRemoved']&&_0x37d678[_0x51b8('0x9d')]){const {commonTape:_0x5a35c4,iEnd:_0x37cc94,jEnd:_0xca45d1}=this['_threeWayMerge'](_0x505b85,_0x3ae74f,_0x5b56c8,_0x70f6a4);_0x3650eb=_0x3650eb[_0x51b8('0xb5')](_0x5a35c4),_0x3ae74f=_0x37cc94,_0x70f6a4=_0xca45d1;}else _0x117ec0[_0x51b8('0x97')]?(_0x70f6a4++,_0x3650eb[_0x51b8('0x65')](_0x117ec0)):(_0x3ae74f++,_0x3650eb[_0x51b8('0x65')](_0x37d678));}}return _0x3650eb;}[_0x51b8('0x78')](_0x486971,_0x18dd81){const _0x5d5462=[];for(let _0x1eecd0=0x0;_0x1eecd0<_0x486971[_0x51b8('0x4a')];_0x1eecd0++){for(let _0x4434c4=0x0;_0x4434c4<_0x486971[_0x1eecd0][_0x51b8('0x70')]['length'];_0x4434c4++){const _0x1385ff=_0x486971[_0x1eecd0][_0x51b8('0x70')][_0x4434c4];if(!_0x18dd81[_0x51b8('0x52')](_0x1385ff))continue;const {group:_0xe7c119,type:_0x20ffda,authorId:_0x26abbe}=_0x49974f(_0x1385ff);_0x51b8('0xc7')!=_0xe7c119||'insertion'!=_0x20ffda&&_0x51b8('0x36')!=_0x20ffda||(_0x5d5462[_0x51b8('0xc5')]({'type':_0x20ffda,'name':_0x1385ff,'userId':_0x26abbe}),_0x486971[_0x1eecd0]['markersStart'][_0x51b8('0x42')](_0x4434c4,0x1),_0x4434c4--);}_0x56a95c(_0x486971[_0x1eecd0]);for(let _0x4ae3f1=0x0;_0x4ae3f1<_0x486971[_0x1eecd0][_0x51b8('0xb1')]['length'];_0x4ae3f1++){const _0x385ecf=_0x486971[_0x1eecd0][_0x51b8('0xb1')][_0x4ae3f1];if(!_0x18dd81[_0x51b8('0x52')](_0x385ecf))continue;const {group:_0x3f291a,type:_0xf56d92}=_0x49974f(_0x385ecf);if(_0x51b8('0xc7')!=_0x3f291a||_0x51b8('0x103')!=_0xf56d92&&_0x51b8('0x36')!=_0xf56d92)continue;_0x486971[_0x1eecd0][_0x51b8('0xb1')][_0x51b8('0x42')](_0x4ae3f1,0x1),_0x4ae3f1--;const _0xfa722a=_0x5d5462['findIndex'](_0x43355c=>_0x43355c[_0x51b8('0x12d')]==_0x385ecf);_0xfa722a>-0x1&&_0x5d5462[_0x51b8('0x42')](_0xfa722a,0x1);}}function _0x49974f(_0x291b44){const _0x4cb060=_0x291b44[_0x51b8('0x6b')](':');return{'group':_0x4cb060[0x0],'type':_0x4cb060[0x1],'subType':_0x4cb060[_0x51b8('0x4a')]>=0x5?_0x4cb060[0x2]:null,'id':_0x4cb060['length']<0x5?_0x4cb060[0x2]:_0x4cb060[0x3],'authorId':_0x4cb060[_0x51b8('0x4a')]<0x5?_0x4cb060[0x3]:_0x4cb060[0x4],'markerCount':0x6==_0x4cb060[_0x51b8('0x4a')]?_0x4cb060[0x5]:null};}function _0x56a95c(_0x296eb2){for(let _0x4d250d=0x0;_0x4d250d<_0x5d5462['length'];_0x4d250d++){if(_0x296eb2[_0x51b8('0x9d')]&&_0x51b8('0x103')==_0x5d5462[_0x4d250d][_0x51b8('0x74')])return _0x296eb2[_0x51b8('0x8b')]=_0x5d5462[_0x4d250d],void delete _0x296eb2['isAdded'];if(!_0x296eb2['isAdded']&&!_0x296eb2[_0x51b8('0x97')]&&_0x51b8('0x36')==_0x5d5462[_0x4d250d][_0x51b8('0x74')])return void(_0x296eb2[_0x51b8('0xb7')]=_0x5d5462[_0x4d250d]);}}}[_0x51b8('0xea')](_0x3b0db2,_0x102003){let _0xb51659=0x0,_0x5c906b=!0x1;const _0x49a643=new Map();for(const _0x3a4c7b of _0x3b0db2)_0x3a4c7b[_0x102003]?_0x5c906b&&(_0xb51659++,_0x5c906b=!0x1):(_0xb51659++,_0x5c906b=!0x0),_0x49a643['set'](_0x3a4c7b['id'],_0xb51659);for(let _0x3337a0=0x0;_0x3337a0<_0x3b0db2[_0x51b8('0x4a')];_0x3337a0++){if(_0x51b8('0x97')==_0x102003&&_0x3b0db2[_0x3337a0][_0x51b8('0x9d')]||_0x51b8('0x9d')==_0x102003&&_0x3b0db2[_0x3337a0][_0x51b8('0x97')])continue;if(_0x51b8('0x91')==_0x3b0db2[_0x3337a0][_0x51b8('0x74')]){_0x3b0db2[_0x3337a0][_0x51b8('0xa8')]=0x0;continue;}const _0x16dfb4=_0x49a643[_0x51b8('0x88')](_0x3b0db2[_0x3337a0][_0x51b8('0x73')]),_0x86bb1c=_0x49a643['get'](_0x3b0db2[_0x3337a0]['id']);_0x3b0db2[_0x3337a0]['distance']=_0x16dfb4-_0x86bb1c;}}['_getRevisionsRange'](_0x4eb1c9,_0x4898c7,_0x296f80=!0x1){const _0x4a6136=[];let _0x4c0cc7=this['repository'][_0x51b8('0xe6')](_0x4eb1c9),_0x4633c0=this['repository'][_0x51b8('0xe6')](_0x4898c7);for(-0x1==_0x4633c0&&(_0x4633c0=this['repository']['_revisions'][_0x51b8('0x4a')],_0x296f80=!0x1);_0x4c0cc7<_0x4633c0;)_0x4a6136['push'](this['repository'][_0x51b8('0x71')](_0x4c0cc7)),_0x4c0cc7++;return _0x296f80&&_0x4a6136[_0x51b8('0x65')](this[_0x51b8('0x11b')][_0x51b8('0x71')](_0x4c0cc7)),_0x4a6136;}[_0x51b8('0x1f')](_0x1b8e9c,_0x29ed08,_0xb495c,_0x150be7){const _0x497762=this[_0x51b8('0x84')]['model']['schema'];let _0xbeb8b1=_0x29ed08;for(;_0x1b8e9c[_0xbeb8b1]&&_0x1b8e9c[_0xbeb8b1][_0x51b8('0x9d')];)_0xbeb8b1++;let _0x5d2a37=_0x150be7;for(;_0xb495c[_0x5d2a37]&&_0xb495c[_0x5d2a37][_0x51b8('0x97')];)_0x5d2a37++;_0x5dcaa9(_0x1b8e9c,_0x29ed08,_0xbeb8b1),_0x5dcaa9(_0xb495c,_0x150be7,_0x5d2a37);const _0x5e6126=_0xb495c[_0x51b8('0xe')](_0x150be7,_0x5d2a37)['concat'](_0x1b8e9c[_0x51b8('0xe')](_0x29ed08,_0xbeb8b1));return _0x5e6126[_0x51b8('0x7f')]((_0x1c2cf1,_0x1aab19)=>_0x1c2cf1['side']!=_0x1aab19[_0x51b8('0x5')]?_0x1c2cf1[_0x51b8('0x5')]-_0x1aab19[_0x51b8('0x5')]:_0x1c2cf1['level']!=_0x1aab19['level']?_0x1c2cf1[_0x51b8('0xf4')]-_0x1aab19[_0x51b8('0xf4')]:_0x1c2cf1['distance']!=_0x1aab19[_0x51b8('0xa8')]?_0x1aab19[_0x51b8('0xa8')]-_0x1c2cf1['distance']:!!_0x1c2cf1['isAdded']!=!!_0x1aab19[_0x51b8('0x9d')]?-0x1==_0x1c2cf1['side']||0x0==_0x1c2cf1['side']?_0x1c2cf1[_0x51b8('0x9d')]?-0x1:0x1:_0x1c2cf1[_0x51b8('0x9d')]?0x1:-0x1:_0x1c2cf1[_0x51b8('0xc2')]-_0x1aab19['index']),{'commonTape':_0x5e6126,'iEnd':_0xbeb8b1,'jEnd':_0x5d2a37};function _0x5dcaa9(_0x43c6d2,_0x5bce18,_0x489ed9){let _0x5e9d65=-0x1,_0x23b83d=Number[_0x51b8('0x10b')],_0x2386ee=!0x0;for(let _0x236051=_0x5bce18;_0x236051<_0x489ed9;_0x236051++)if(_0x497762[_0x51b8('0x76')](_0x43c6d2[_0x236051][_0x51b8('0xba')])||(_0x2386ee=!0x1),_0x43c6d2[_0x236051][_0x51b8('0xba')][_0x51b8('0x8f')]<_0x5bce18&&(_0x5e9d65=_0x236051),_0x43c6d2[_0x236051]['item'][_0x51b8('0x109')]>=_0x489ed9){_0x23b83d=_0x236051;break;}_0x2386ee&&(_0x5e9d65=_0x489ed9-0x1);for(let _0x448140=_0x5bce18;_0x448140<_0x489ed9;_0x448140++)_0x43c6d2[_0x448140][_0x51b8('0x5')]=_0x448140<=_0x5e9d65?-0x1:_0x448140<_0x23b83d?0x0:0x1,_0x43c6d2[_0x448140][_0x51b8('0xc2')]=_0x448140;let _0x1f4a98=0x0;for(let _0x3dc61a=_0x5bce18;_0x3dc61a<=_0x5e9d65;_0x3dc61a++)0x0==_0x43c6d2[_0x3dc61a]['distance']?_0x43c6d2[_0x3dc61a]['level']=_0x1f4a98:(_0x1f4a98++,_0x43c6d2[_0x3dc61a][_0x51b8('0xf4')]=_0x1f4a98,_0x1f4a98++);for(let _0x414d72=_0x5bce18;_0x414d72<_0x489ed9;_0x414d72++)0x0==_0x43c6d2[_0x414d72]['side']&&(_0x43c6d2[_0x414d72]['level']=_0x1f4a98);_0x1f4a98=0x0;for(let _0x414d1a=_0x489ed9-0x1;_0x414d1a>=_0x23b83d;_0x414d1a--)0x0==_0x43c6d2[_0x414d1a]['distance']?_0x43c6d2[_0x414d1a][_0x51b8('0xf4')]=_0x1f4a98:(_0x1f4a98--,_0x43c6d2[_0x414d1a]['level']=_0x1f4a98,_0x1f4a98--);}}[_0x51b8('0x15')](_0x2be7be){const _0x2e8d49=new Map(),_0x22671c=this[_0x51b8('0x84')][_0x51b8('0x10c')]['schema'];for(let _0xbee68e=0x1;_0xbee68e<_0x2be7be[_0x51b8('0x4a')];_0xbee68e++){let _0x5eaf56,_0x4d5c86,_0x48496f;const _0x4edd83=_0x2be7be[_0xbee68e],_0x2ff497=_0x2be7be[_0xbee68e-0x1];if(_0x51b8('0x91')==_0x4edd83['type'])continue;if(_0x4edd83[_0x51b8('0x74')]!=_0x2ff497[_0x51b8('0x74')])continue;if(!_0x22671c[_0x51b8('0x99')](_0x2ff497[_0x51b8('0xba')])||_0x22671c[_0x51b8('0x9a')](_0x2ff497['item']))continue;if(!_0x22671c['isBlock'](_0x4edd83[_0x51b8('0xba')])||_0x22671c['isLimit'](_0x4edd83[_0x51b8('0xba')]))continue;if((_0x2be7be[_0xbee68e][_0x51b8('0x9d')]||_0x2be7be[_0xbee68e][_0x51b8('0x8b')])&&_0x2be7be[_0xbee68e-0x1][_0x51b8('0x97')])_0x5eaf56=_0x2be7be[_0xbee68e],_0x4d5c86=_0x2be7be[_0xbee68e-0x1],_0x48496f=_0xbee68e-0x1;else{if(!_0x2be7be[_0xbee68e][_0x51b8('0x97')]||!_0x2be7be[_0xbee68e-0x1][_0x51b8('0x9d')]&&!_0x2be7be[_0xbee68e-0x1]['isAddSuggestion'])continue;_0x5eaf56=_0x2be7be[_0xbee68e-0x1],_0x4d5c86=_0x2be7be[_0xbee68e],_0x48496f=_0xbee68e;}const _0x25d4ce=_0x5eaf56['level']==_0x4d5c86[_0x51b8('0xf4')],_0x291972=Math['abs'](_0x5eaf56[_0x51b8('0xf4')])<Math[_0x51b8('0xed')](_0x4d5c86['level'])&&0x0==_0x4d5c86[_0x51b8('0xa8')];(_0x25d4ce||_0x291972)&&(_0x2e8d49[_0x51b8('0x5e')](_0x4d5c86['id'],_0x5eaf56['id']),_0x2be7be[_0x51b8('0x42')](_0x48496f,0x1),_0xbee68e--,_0x5eaf56['isAdded']=!0x1);}for(let _0x499ecb=0x0;_0x499ecb<_0x2be7be[_0x51b8('0x4a')];_0x499ecb++)_0x2e8d49[_0x51b8('0x52')](_0x2be7be[_0x499ecb][_0x51b8('0x73')])&&(_0x2be7be[_0x499ecb]['pairId']=_0x2e8d49[_0x51b8('0x88')](_0x2be7be[_0x499ecb][_0x51b8('0x73')]));}[_0x51b8('0xae')](_0x37150c){const _0x5d66a9=new Set(_0x37150c[_0x51b8('0x92')](_0x1f1cf6=>_0x1f1cf6['id']));for(let _0x5407c6=0x0;_0x5407c6<_0x37150c[_0x51b8('0x4a')];_0x5407c6++)_0x5d66a9[_0x51b8('0x52')](_0x37150c[_0x5407c6]['pairId'])||0x0==_0x37150c[_0x5407c6][_0x51b8('0xa8')]||(_0x37150c[_0x5407c6][_0x51b8('0x64')]=!0x0);return _0x37150c[_0x51b8('0x46')](_0x4ed158=>!_0x4ed158[_0x51b8('0x64')]);}[_0x51b8('0x11')](_0x5eae4e){const _0x5e9890=new Set();for(let _0x4bd292=0x0;_0x4bd292<_0x5eae4e[_0x51b8('0x4a')];_0x4bd292++){if(_0x5e9890[_0x51b8('0x52')](_0x5eae4e[_0x4bd292]['id'])&&_0x5eae4e[_0x4bd292][_0x51b8('0x97')]&&(_0x5eae4e[_0x4bd292][_0x51b8('0x64')]=!0x0),_0x5eae4e[_0x4bd292]['isIncorrect'])continue;if(0x0==_0x5eae4e[_0x4bd292][_0x51b8('0xa8')])continue;if(_0x51b8('0x5b')!=_0x5eae4e[_0x4bd292][_0x51b8('0x74')])continue;if(null==_0x5eae4e[_0x4bd292][_0x51b8('0x73')])continue;let _0x31482a=_0x4bd292+0x1,_0x105580=0x0;for(;_0x5eae4e[_0x31482a]['id']!=_0x5eae4e[_0x4bd292][_0x51b8('0x73')];)'elementStart'==_0x5eae4e[_0x31482a][_0x51b8('0x74')]?_0x105580++:_0x51b8('0x26')==_0x5eae4e[_0x31482a][_0x51b8('0x74')]&&_0x105580--,_0x31482a++;if(0x0!=_0x105580){if(_0x5eae4e[_0x4bd292][_0x51b8('0x97')])_0x5eae4e[_0x4bd292][_0x51b8('0x64')]=!0x0;else for(;_0x31482a!=_0x4bd292;)_0x5eae4e[_0x31482a][_0x51b8('0x97')]&&0x0!=_0x5eae4e[_0x31482a][_0x51b8('0xa8')]&&(_0x5eae4e[_0x31482a][_0x51b8('0x64')]=!0x0,_0x5e9890['add'](_0x5eae4e[_0x31482a][_0x51b8('0x73')])),_0x31482a--;}}return _0x5eae4e[_0x51b8('0x46')](_0x4674ca=>!_0x4674ca[_0x51b8('0x64')]);}[_0x51b8('0x2b')](_0x522aea){const _0x5084a6=this[_0x51b8('0x84')][_0x51b8('0x10c')]['schema'];for(let _0x3229e4=0x0;_0x3229e4<_0x522aea[_0x51b8('0x4a')];_0x3229e4++){if(!(_0x522aea[_0x3229e4]['isAdded']||_0x522aea[_0x3229e4][_0x51b8('0x8b')]||_0x522aea[_0x3229e4][_0x51b8('0x97')]||_0x522aea[_0x3229e4][_0x51b8('0xb7')]))continue;if(0x0==_0x522aea[_0x3229e4]['distance'])continue;const _0x4687ba=_0x522aea[_0x3229e4]['item'];_0x5084a6['isBlock'](_0x4687ba)||_0x5084a6[_0x51b8('0x9a')](_0x4687ba)||(_0x522aea[_0x3229e4][_0x51b8('0x9d')]&&delete _0x522aea[_0x3229e4][_0x51b8('0x9d')],_0x522aea[_0x3229e4]['isAddSuggestion']&&delete _0x522aea[_0x3229e4][_0x51b8('0x8b')],_0x522aea[_0x3229e4][_0x51b8('0xb7')]&&delete _0x522aea[_0x3229e4][_0x51b8('0xb7')],_0x522aea[_0x3229e4][_0x51b8('0x97')]&&(_0x522aea[_0x3229e4][_0x51b8('0x64')]=!0x0));}return _0x522aea[_0x51b8('0x46')](_0x2d7673=>!_0x2d7673['isIncorrect']);}[_0x51b8('0x81')](_0x4a4031,_0x3e4e73,_0x5019f9){const _0x437bac=new _0xcfbbd7(),_0x5019d9=[],_0x400794=new Map(),_0x25b96b=this[_0x51b8('0x84')][_0x51b8('0x10c')],_0x5053dd=_0x25b96b['schema'],_0x452f86=[_0x437bac],_0x222fbc={},_0x10d4d8={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0xf42f1d=null;const _0x17e8aa=[0x0];for(let _0x12bcd9=0x0;_0x12bcd9<_0x4a4031['length'];_0x12bcd9++){let _0x4b33a0,_0x16e6dc;if(_0x51b8('0x5b')===_0x4a4031[_0x12bcd9][_0x51b8('0x74')]){_0x4b33a0=_0x25b96b['createPositionFromPath'](_0x437bac,_0x17e8aa);const _0x2af981=new _0x336b95(_0x4a4031[_0x12bcd9]['item'][_0x51b8('0x12d')],_0x4a4031[_0x12bcd9]['item']['getAttributes']());_0x452f86[0x0][_0x51b8('0x7')](_0x2af981),_0x17e8aa[_0x51b8('0x65')](0x0),_0x452f86[_0x51b8('0xc5')](_0x2af981),_0x16e6dc=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0xf42f1d=null;}else{if('elementEnd'===_0x4a4031[_0x12bcd9][_0x51b8('0x74')])_0x452f86[_0x51b8('0x50')](),_0x4b33a0=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0x17e8aa['pop'](),_0x17e8aa[_0x17e8aa[_0x51b8('0x4a')]-0x1]++,_0x16e6dc=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0xf42f1d=null;else{if(_0x4b33a0=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa),_0xf42f1d&&_0x35a4bf(_0xf42f1d,_0x4a4031[_0x12bcd9]['item']))_0xf42f1d[_0x51b8('0x29')]+=_0x4a4031[_0x12bcd9]['item']['data'];else{const _0x542f3e=new _0x1fe542(_0x4a4031[_0x12bcd9][_0x51b8('0xba')][_0x51b8('0x1e')],_0x4a4031[_0x12bcd9][_0x51b8('0xba')][_0x51b8('0xaa')]());_0x452f86[0x0][_0x51b8('0x7')](_0x542f3e),_0xf42f1d=_0x542f3e;}_0x17e8aa[_0x17e8aa[_0x51b8('0x4a')]-0x1]+=_0x4a4031[_0x12bcd9][_0x51b8('0xba')][_0x51b8('0xb6')],_0x16e6dc=_0x25b96b[_0x51b8('0x31')](_0x437bac,_0x17e8aa);}}for(const _0x33f303 of _0x4a4031[_0x12bcd9][_0x51b8('0x70')])_0x400794[_0x51b8('0x5e')](_0x33f303,{'start':_0x4b33a0,'end':null});_0x598397(_0x51b8('0xb7'),_0x12bcd9,_0x4b33a0,_0x16e6dc),_0x598397('isAddSuggestion',_0x12bcd9,_0x4b33a0,_0x16e6dc),_0x598397(_0x51b8('0x97'),_0x12bcd9,_0x4b33a0,_0x16e6dc),_0x598397(_0x51b8('0x9d'),_0x12bcd9,_0x4b33a0,_0x16e6dc);for(const _0x445195 of _0x4a4031[_0x12bcd9][_0x51b8('0xb1')]){_0x400794[_0x51b8('0x88')](_0x445195)[_0x51b8('0x10f')]=_0x16e6dc;}}for(const [_0x187c71,_0x23323c]of _0x400794){const _0x194267=this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x110')](_0x23323c[_0x51b8('0x93')],_0x23323c[_0x51b8('0x10f')]);_0x437bac[_0x51b8('0xb')]['set'](_0x187c71,_0x194267);}return _0x5019d9['sort']((_0x342d7c,_0x14226f)=>{const _0x4f4638=_0x437bac[_0x51b8('0xb')][_0x51b8('0x88')](_0x51b8('0x19')+_0x342d7c['id']),_0x4d78fa=_0x437bac[_0x51b8('0xb')][_0x51b8('0x88')](_0x51b8('0x19')+_0x14226f['id']);return _0x4f4638['start'][_0x51b8('0xa6')](_0x4d78fa[_0x51b8('0x93')])?-0x1:_0x4f4638['start'][_0x51b8('0x6f')](_0x4d78fa['start'])?0x1:_0x4f4638[_0x51b8('0x10f')][_0x51b8('0xa6')](_0x4d78fa[_0x51b8('0x10f')])?-0x1:_0x4f4638['end'][_0x51b8('0x6f')](_0x4d78fa['end'])?0x1:_0x51b8('0x11d')===_0x342d7c['type']?-0x1:0x1;}),{'root':_0x437bac,'changes':_0x5019d9};function _0x598397(_0x41204b,_0x418e2a,_0x2892f2,_0x41de3e){const _0x5967ed=!!_0x4a4031[_0x418e2a][_0x41204b],_0x16d68=_0x5967ed?_0x4a4031[_0x418e2a][_0x41204b][_0x51b8('0x48')]:null,_0x58def8=_0x418e2a===_0x4a4031[_0x51b8('0x4a')]-0x1,_0x3df2ae=_0x10d4d8[_0x41204b][0x0],_0x3623af=_0x5053dd[_0x51b8('0x3f')](_0x4a4031[_0x418e2a]['item']);!_0x222fbc[_0x41204b]&&_0x5967ed?_0x222fbc[_0x41204b]={'start':_0x2892f2,'tapeItem':_0x4a4031[_0x418e2a],'userId':_0x16d68,'type':_0x41204b}:_0x222fbc[_0x41204b]&&!_0x5967ed?(_0x222fbc[_0x41204b]['end']=_0x2892f2,_0x3bd460(_0x222fbc[_0x41204b]),_0x222fbc[_0x41204b]=null):_0x222fbc[_0x41204b]&&_0x5967ed&&_0x222fbc[_0x41204b][_0x51b8('0x48')]!==_0x16d68&&(_0x222fbc[_0x41204b]['end']=_0x2892f2,_0x3df2ae&&_0x3df2ae[_0x51b8('0x48')]===_0x222fbc[_0x41204b][_0x51b8('0x48')]||_0x3bd460(_0x222fbc[_0x41204b]),_0x222fbc[_0x41204b]={'start':_0x2892f2,'tapeItem':_0x4a4031[_0x418e2a],'userId':_0x16d68,'type':_0x41204b}),_0x222fbc[_0x41204b]&&_0x3623af&&('elementStart'!==_0x4a4031[_0x418e2a]['type']||_0x3df2ae&&_0x3df2ae[_0x51b8('0x48')]===_0x16d68||_0x10d4d8[_0x41204b][_0x51b8('0xc5')]({'userId':_0x16d68,'object':_0x4a4031[_0x418e2a][_0x51b8('0xba')],'change':_0x222fbc[_0x41204b]}),_0x51b8('0x26')===_0x4a4031[_0x418e2a][_0x51b8('0x74')]&&_0x3df2ae&&_0x3df2ae[_0x51b8('0x128')]===_0x4a4031[_0x418e2a][_0x51b8('0xba')]&&(_0x10d4d8[_0x41204b]['shift'](),_0x222fbc[_0x41204b]=_0x3df2ae[_0x51b8('0xfe')])),_0x222fbc[_0x41204b]&&_0x58def8&&(_0x222fbc[_0x41204b][_0x51b8('0x10f')]=_0x41de3e,_0x3bd460(_0x222fbc[_0x41204b]),_0x222fbc[_0x41204b]=null);}function _0x3bd460({start:_0x439bc9,end:_0x88c573,tapeItem:_0xa83535,userId:_0x28d4fb,type:_0x19da29}){const _0x5fd9a5=_0xa83535[_0x51b8('0xba')],_0x2eda0d=_0x25b96b[_0x51b8('0x102')][_0x51b8('0x99')](_0x5fd9a5)&&!_0x25b96b[_0x51b8('0x102')]['isLimit'](_0x5fd9a5),_0x460167=_0x439bc9[_0x51b8('0x111')]==_0x88c573[_0x51b8('0x9f')]&&_0x88c573[_0x51b8('0x49')];if(_0x2eda0d&&_0x460167)return;const _0xfe617=_0x25b96b[_0x51b8('0x110')](_0x439bc9,_0x88c573),_0x23738a=_0x3e4e73[_0x51b8('0x88')](_0x28d4fb),_0x9529e3=new _0x148687({'author':_0x23738a,'type':'isAdded'==_0x19da29||_0x51b8('0x8b')==_0x19da29?_0x51b8('0x11d'):_0x51b8('0xde'),'data':{'isSuggestion':_0x51b8('0x8b')==_0x19da29||_0x51b8('0xb7')==_0x19da29},'createdAt':new Date(),'rootName':_0x5019f9});_0x5019d9[_0x51b8('0x65')](_0x9529e3),_0x437bac[_0x51b8('0xb')][_0x51b8('0x5e')](_0x51b8('0x19')+_0x9529e3['id'],_0xfe617);}function _0x35a4bf(_0x40ecd7,_0x43a037){const _0x9ceb39=_0x40ecd7[_0x51b8('0xaa')](),_0x10b9b9=_0x43a037['getAttributes']();for(const _0x4b8f9e of _0x9ceb39){if(_0x4b8f9e[0x1]!==_0x43a037[_0x51b8('0xee')](_0x4b8f9e[0x0]))return!0x1;_0x10b9b9[_0x51b8('0x4b')]();}return _0x10b9b9['next']()['done'];}}['_setConversion'](){this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')](_0x51b8('0xa1'))['dataToMarker']({'view':'revision'}),this['editor'][_0x51b8('0x83')][_0x51b8('0x89')]('editingDowncast')[_0x51b8('0xc8')]({'model':_0x51b8('0x104'),'view':_0x34e88e=>{const _0xcd4afe=_0x34e88e[_0x51b8('0xbe')][_0x51b8('0x6b')](':')[0x1],_0x190060=this[_0x51b8('0xa0')](_0xcd4afe);if(!_0x190060)return null;const _0x15a4a6='add'==_0x190060[_0x51b8('0x74')]?_0x51b8('0x103'):_0x51b8('0x36'),_0x17c941=[_0x51b8('0x44'),'ck-suggestion-marker-'+_0x15a4a6];return _0x190060['data'][_0x51b8('0x108')]&&_0x17c941[_0x51b8('0x65')](_0x51b8('0x59')+_0x15a4a6+_0x51b8('0x2c')),this[_0x51b8('0x82')]==_0x190060&&_0x17c941['push']('ck-suggestion-marker--active'),{'classes':_0x17c941,'attributes':{'data-change-id':_0xcd4afe}};}}),this['editor'][_0x51b8('0x83')][_0x51b8('0x89')](_0x51b8('0xa1'))[_0x51b8('0x11d')](_0xfcf978=>{_0xfcf978['on'](_0x51b8('0xb8'),(_0x2327e3,_0x59ee9f,_0x47a002)=>{const _0x2fc2a0=_0x59ee9f[_0x51b8('0x28')][_0x51b8('0x12c')](0x0);if(!_0x2fc2a0||!_0x2fc2a0['is'](_0x51b8('0x14'),_0x51b8('0x90')))return;if(!_0x47a002[_0x51b8('0x53')][_0x51b8('0xb3')](_0x2fc2a0,{'attributes':[_0x51b8('0x24'),_0x51b8('0x30')]}))return;const _0x2cd951=_0x59ee9f[_0x51b8('0x8d')]['start']['nodeAfter'];_0x47a002[_0x51b8('0x3e')][_0x51b8('0xe2')](_0x51b8('0x24'),_0x2fc2a0[_0x51b8('0xee')](_0x51b8('0x24')),_0x2cd951),_0x47a002[_0x51b8('0x3e')][_0x51b8('0xe2')](_0x51b8('0x30'),_0x2fc2a0[_0x51b8('0xee')]('vid_end'),_0x2cd951);},{'priority':_0x51b8('0xb0')});}),this['editor'][_0x51b8('0x83')]['for'](_0x51b8('0xa1'))[_0x51b8('0x11d')](_0xba22c0=>{_0xba22c0['on'](_0x51b8('0x14'),(_0x8dc5fe,_0x10ff0c,_0xe0d633)=>{if(!_0xe0d633[_0x51b8('0x53')][_0x51b8('0xb3')](_0x10ff0c[_0x51b8('0x28')],{'attributes':['vid_start','vid_end']}))return;if(_0x10ff0c[_0x51b8('0x8d')][_0x51b8('0x105')])return;const _0x396a9f=_0x10ff0c[_0x51b8('0x8d')][_0x51b8('0x93')][_0x51b8('0x111')];_0x396a9f[_0x51b8('0xe3')]('vid_start')||_0x396a9f[_0x51b8('0xe3')](_0x51b8('0x95'))||(_0xe0d633[_0x51b8('0x3e')][_0x51b8('0xe2')](_0x51b8('0x24'),_0x10ff0c['viewItem'][_0x51b8('0xee')](_0x51b8('0x24')),_0x396a9f),_0xe0d633[_0x51b8('0x3e')]['setAttribute'](_0x51b8('0x30'),_0x10ff0c['viewItem'][_0x51b8('0xee')](_0x51b8('0x30')),_0x396a9f));},{'priority':_0x51b8('0xb0')});}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('upcast')[_0x51b8('0x106')]({'view':{'name':_0x51b8('0x1c'),'attributes':{'vid':!0x0}},'model':{'key':_0x51b8('0x95'),'value':_0x239d74=>_0x239d74[_0x51b8('0xee')](_0x51b8('0x95'))}}),this[_0x51b8('0x84')][_0x51b8('0x10c')]['schema']['on'](_0x51b8('0xd6'),(_0x77cba5,[,_0x214563])=>{['vid_start','vid_end',_0x51b8('0x95')][_0x51b8('0x79')](_0x214563)&&(_0x77cba5[_0x51b8('0xac')]=!0x0,_0x77cba5[_0x51b8('0x8e')]());},{'priority':'highest'}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('dataDowncast')[_0x51b8('0x11d')](_0x188ec1=>{_0x188ec1['on'](_0x51b8('0x87'),(_0x57bca3,_0x39822d,_0x1b18ab)=>{if('\x20'!=_0x39822d['item'][_0x51b8('0x1e')]||_0x39822d[_0x51b8('0xba')][_0x51b8('0x9f')][_0x51b8('0x10')]>0x1)return;if(!_0x1b18ab['consumable'][_0x51b8('0xb3')](_0x39822d['item'],_0x57bca3[_0x51b8('0x12d')]))return;const _0x545d4c=_0x1b18ab[_0x51b8('0x3e')],_0x5bfcb3=_0x1b18ab[_0x51b8('0x3b')][_0x51b8('0x85')](_0x39822d[_0x51b8('0x123')]);_0x545d4c[_0x51b8('0xd5')](_0x5bfcb3,_0x545d4c[_0x51b8('0x38')](_0x51b8('0x1c')));});}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('dataDowncast')[_0x51b8('0x33')]({'model':_0x51b8('0x104')}),this['editor']['editing'][_0x51b8('0x2d')]['on'](_0x51b8('0x3c'),function(_0x304e26){const _0x4e52dc=_0x304e26[_0x51b8('0xf7')][_0x51b8('0x88')](_0x51b8('0xa4'));return(_0xec81df,_0x41acaa,_0x10b3fe)=>{const _0x1d5725=_0x41acaa[_0x51b8('0xbe')][_0x51b8('0x6b')](':')[0x1],_0x1295da=_0x4e52dc[_0x51b8('0xa0')](_0x1d5725);if(!_0x1295da)return null;const _0x1fc003=_0x51b8('0x11d')==_0x1295da[_0x51b8('0x74')]?_0x51b8('0x6b'):'merge';if(!_0x10b3fe[_0x51b8('0x53')][_0x51b8('0x4d')](_0x41acaa[_0x51b8('0x68')],_0xec81df[_0x51b8('0x12d')]))return;const _0x2ee641=_0x41acaa['markerRange'][_0x51b8('0xcc')](),_0x9f2538=_0x41acaa[_0x51b8('0x68')][_0x51b8('0x93')],_0x5092c0=_0x304e26[_0x51b8('0x10c')]['schema'];let _0x22d1d8=null,_0x11f2d4=null,_0x3a7521=!0x1,_0x298ee3=!0x1;for(const _0x3b72be of _0x2ee641){const _0x6e1fb1=_0x3b72be[_0x51b8('0xba')];_0x3a7521=_0x3a7521||_0x5092c0[_0x51b8('0xf6')](_0x6e1fb1);const _0x547a8c=_0x10b3fe[_0x51b8('0x3b')][_0x51b8('0x1b')](_0x6e1fb1);if(_0x547a8c&&_0x547a8c[_0x51b8('0x129')](_0x51b8('0xd7')))return;_0x51b8('0x26')==_0x3b72be[_0x51b8('0x74')]&&(_0x5092c0['isBlock'](_0x6e1fb1)&&!_0x5092c0['isLimit'](_0x6e1fb1)&&(_0x6e1fb1[_0x51b8('0x22')]||_0x9f2538[_0x51b8('0x4c')]?_0x22d1d8&&_0x22d1d8[_0x51b8('0x9f')]==_0x6e1fb1||(_0x22d1d8=_0x6e1fb1,_0x531534(_0x3b72be['previousPosition']),_0x298ee3=!0x0):_0x11f2d4=_0x11f2d4||_0x3b72be[_0x51b8('0x25')]));}function _0x531534(_0x486432){const _0x3baf20=_0x10b3fe[_0x51b8('0x3e')][_0x51b8('0xd')](_0x51b8('0x1c'),{'class':'ck-suggestion-marker-'+_0x1fc003}),_0x3e069c=_0x10b3fe[_0x51b8('0x3b')][_0x51b8('0x7c')](_0x486432);_0x1295da[_0x51b8('0x1e')][_0x51b8('0x108')]&&_0x10b3fe[_0x51b8('0x3e')]['addClass'](_0x51b8('0x59')+_0x1fc003+_0x51b8('0x2c'),_0x3baf20),_0x4e52dc['activeChange']==_0x1295da&&_0x10b3fe['writer'][_0x51b8('0xf')](_0x51b8('0x4e'),_0x3baf20),_0x10b3fe[_0x51b8('0x3e')][_0x51b8('0x116')](_0x3e069c,_0x3baf20),_0x10b3fe[_0x51b8('0x3b')][_0x51b8('0x62')](_0x3baf20,_0x41acaa[_0x51b8('0xbe')]);}_0x3a7521||_0x298ee3||!_0x11f2d4||_0x531534(_0x11f2d4);};}(this[_0x51b8('0x84')]),{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x2d')]['on'](_0x51b8('0xd9'),(_0x49f627,_0x478a58,_0x574a0c)=>{const _0x1cdcd1=_0x574a0c[_0x51b8('0x3b')][_0x51b8('0x11f')](_0x478a58['markerName']);if(_0x1cdcd1)for(const _0x4ac306 of _0x1cdcd1)(_0x4ac306[_0x51b8('0x8')]('ck-suggestion-marker-split')||_0x4ac306[_0x51b8('0x8')]('ck-suggestion-marker-merge'))&&(_0x574a0c[_0x51b8('0x3b')][_0x51b8('0xfd')](_0x4ac306,_0x478a58['markerName']),_0x574a0c['writer'][_0x51b8('0xde')](_0x4ac306));},{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x2d')]['on'](_0x51b8('0x3c'),(_0x420e3,_0x531daf,_0x38d075)=>{const _0x1d76bd=_0x531daf[_0x51b8('0xbe')]['split'](':')[0x1],_0x37766e=this[_0x51b8('0xa0')](_0x1d76bd);if(!_0x37766e)return null;const _0x1c56db=_0x51b8('0x11d')==_0x37766e[_0x51b8('0x74')]?'split':_0x51b8('0x37');if(_0x38d075[_0x51b8('0x53')][_0x51b8('0x4d')](_0x531daf[_0x51b8('0x68')],_0x420e3[_0x51b8('0x12d')]))for(const _0x4dba86 of _0x531daf['markerRange']['getItems']()){if(!_0x4dba86['is'](_0x51b8('0x14'),_0x51b8('0x9')))continue;const _0x1ab9e8=_0x38d075[_0x51b8('0x3e')][_0x51b8('0xd')](_0x51b8('0x1c'),{'class':_0x51b8('0x59')+_0x1c56db}),_0x42208b=_0x38d075['mapper'][_0x51b8('0x7c')](this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0xe9')](_0x4dba86));_0x37766e[_0x51b8('0x1e')]['isSuggestion']&&_0x38d075[_0x51b8('0x3e')]['addClass'](_0x51b8('0x59')+_0x1c56db+_0x51b8('0x2c'),_0x1ab9e8),this['activeChange']==_0x37766e&&_0x38d075[_0x51b8('0x3e')]['addClass'](_0x51b8('0x4e'),_0x1ab9e8),_0x38d075['writer'][_0x51b8('0x116')](_0x42208b,_0x1ab9e8),_0x38d075[_0x51b8('0x3b')]['bindElementToMarker'](_0x1ab9e8,_0x531daf[_0x51b8('0xbe')]);}},{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x80')]['on'](_0x51b8('0xfe'),()=>{this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0xfe')](_0x1c5b8b=>{for(const _0x37f4f4 of this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0x80')][_0x51b8('0x69')]()){const _0x6548ab=this['editor'][_0x51b8('0x10c')][_0x51b8('0x80')]['getRoot'](_0x37f4f4),_0x575491=this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x80')]['getRoot'](_0x37f4f4);if(_0x575491){const _0x304413=_0x6548ab['getAttribute'](_0x51b8('0xb9'));if(_0x1c5b8b[_0x51b8('0x57')](_0x51b8('0x3d'),_0x575491),_0x1c5b8b[_0x51b8('0x67')](_0x51b8('0x117'),_0x575491),_0x1c5b8b['removeClass'](_0x51b8('0x16'),_0x575491),_0x1c5b8b[_0x51b8('0x67')](_0x51b8('0x66'),_0x575491),_0x304413){const _0x22d2c4=this['_getChangeFromId'](_0x304413);if(!_0x22d2c4)return null;_0x1c5b8b[_0x51b8('0xe2')](_0x51b8('0x3d'),_0x304413,_0x575491),_0x1c5b8b['addClass'](_0x51b8('0x5d')+_0x22d2c4[_0x51b8('0x74')],_0x575491),this[_0x51b8('0x82')]==_0x22d2c4&&_0x1c5b8b['addClass']('ck-revision-history-root--active',_0x575491);}}}});}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('upcast')[_0x51b8('0x2a')]({'view':_0x51b8('0xe7'),'model':_0x581199=>_0x51b8('0x124')+_0x581199,'converterPriority':'highest'}),this[_0x51b8('0x84')]['conversion'][_0x51b8('0x89')]('upcast')[_0x51b8('0x2a')]({'view':_0x51b8('0xf2'),'model':_0x31aaa2=>_0x51b8('0xb4')+_0x31aaa2,'converterPriority':'highest'}),this[_0x51b8('0x84')][_0x51b8('0x83')][_0x51b8('0x89')]('dataDowncast')[_0x51b8('0x33')]({'model':'revision-suggestion','view':_0x5d0abc=>({'name':_0x51b8('0x3a')+_0x5d0abc,'group':_0x51b8('0xc7')}),'converterPriority':_0x51b8('0x23')}),this['editor'][_0x51b8('0x83')][_0x51b8('0x89')]('editingDowncast')[_0x51b8('0xc8')]({'model':_0x51b8('0xc7'),'view':_0x4903d5=>{const _0x4d9e36=_0x4903d5['markerName'][_0x51b8('0x6b')](':')[0x1];return'insertion'!=_0x4d9e36&&_0x51b8('0x36')!=_0x4d9e36?null:{'classes':['ck-suggestion-preview-marker',_0x51b8('0x112')+_0x4d9e36]};}}),this[_0x51b8('0x84')][_0x51b8('0x55')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this['editor'],_0x51b8('0x37')),{'priority':_0x51b8('0xe4')}),this[_0x51b8('0x84')][_0x51b8('0x55')]['downcastDispatcher']['on'](_0x51b8('0x126'),et(this[_0x51b8('0x84')],_0x51b8('0x6b')),{'priority':'high'}),this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x2d')]['on'](_0x51b8('0x6'),(_0x1bd608,_0x17c9ee,_0x4ebce4)=>{const _0x57b182=_0x4ebce4[_0x51b8('0x3b')]['markerNameToElements'](_0x17c9ee[_0x51b8('0xbe')]);if(_0x57b182)for(const _0x33effa of _0x57b182)_0x33effa['is'](_0x51b8('0x34'))&&(_0x4ebce4[_0x51b8('0x3b')][_0x51b8('0xfd')](_0x33effa,_0x17c9ee[_0x51b8('0xbe')]),_0x4ebce4['writer']['remove'](_0x33effa));},{'priority':'high'});}[_0x51b8('0xa0')](_0x3ff8da){return this['_changeIdToChange'][_0x51b8('0x88')](_0x3ff8da);}[_0x51b8('0xec')](_0x15c519){return this[_0x51b8('0xd8')]&&this[_0x51b8('0xd8')]['destroy'](),this[_0x51b8('0xd8')]=new _0x41d175(this[_0x51b8('0x84')][_0x51b8('0x6e')],_0x15c519),this[_0x51b8('0xd8')];}[_0x51b8('0x7a')](){this[_0x51b8('0x84')]['model'][_0x51b8('0x80')][_0x51b8('0x121')][_0x51b8('0x4')](_0x51b8('0x104')),this['on'](_0x51b8('0xa5'),(_0x231b7b,_0x147d93,_0x20bdbf,_0x420582)=>{_0x420582&&this[_0x51b8('0x10d')]['remove'](_0x420582),_0x20bdbf&&(this[_0x51b8('0x10d')][_0x51b8('0x11d')]({'view':_0x20bdbf,'stackId':_0x51b8('0xe5'),'position':{'target':()=>{const _0x135785=this['editor'][_0x51b8('0x55')],_0x327792=this['_getChangeFromId'](_0x20bdbf[_0x51b8('0x54')]);let _0x31513a;if(_0x327792[_0x51b8('0x1e')][_0x51b8('0x113')]){const _0x103f4a=_0x135785[_0x51b8('0x58')][_0x51b8('0x9b')](_0x327792['rootName']);_0x31513a=Array[_0x51b8('0x10a')](_0x103f4a['getClientRects']());}else{const _0x8288b3=this['editor'][_0x51b8('0x10c')][_0x51b8('0xb')][_0x51b8('0x88')]('revision:'+_0x20bdbf[_0x51b8('0x54')]);_0x31513a=Array[_0x51b8('0x10a')](_0x135785[_0x51b8('0x3b')][_0x51b8('0x11f')](_0x8288b3[_0x51b8('0x12d')]))[_0x51b8('0x92')](_0x1f53dc=>_0x135785[_0x51b8('0x58')]['domConverter'][_0x51b8('0x2f')](_0x1f53dc))[_0x51b8('0x92')](_0x104156=>Array[_0x51b8('0x10a')](_0x104156[_0x51b8('0x11a')]()))[_0x51b8('0x41')]();}if(!this['_activeViewTarget'])return _0x31513a[0x0];return _0x31513a[_0x51b8('0x1')](_0x38b61e=>_0x38b61e[_0x51b8('0x11e')]-0x3<=this[_0x51b8('0x72')]['y']&&_0x38b61e[_0x51b8('0x114')]+0x3>=this[_0x51b8('0x72')]['y']&&_0x38b61e[_0x51b8('0xca')]-0x3<=this['_activeViewTarget']['x']&&_0x38b61e[_0x51b8('0x0')]+0x3>=this[_0x51b8('0x72')]['x'])||_0x31513a[0x0];}}}),this[_0x51b8('0x10d')][_0x51b8('0xf3')](_0x51b8('0xe5')));}),this['on'](_0x51b8('0x35'),(_0x4f21a7,_0x145b4d,_0x29b666,_0x1f2a71)=>{this[_0x51b8('0xf0')]=_0x29b666?this[_0x51b8('0xec')](_0x29b666):null,this['editor'][_0x51b8('0x10c')][_0x51b8('0xfe')](()=>{const _0x3e3490=this[_0x51b8('0x84')][_0x51b8('0x55')];_0x1f2a71&&(_0x1f2a71['data'][_0x51b8('0x113')]?_0x3e3490[_0x51b8('0x58')][_0x51b8('0xfe')](_0x1f5dc4=>{_0x1f5dc4[_0x51b8('0x67')](_0x51b8('0x66'),_0x3e3490[_0x51b8('0x58')][_0x51b8('0x80')][_0x51b8('0xf1')](_0x1f2a71[_0x51b8('0x119')]));}):_0x3e3490[_0x51b8('0xef')]('revision:'+_0x1f2a71['id'])),_0x29b666&&(_0x29b666[_0x51b8('0x1e')]['isOnRoot']?_0x3e3490[_0x51b8('0x58')]['change'](_0x38058f=>{_0x38058f[_0x51b8('0xf')](_0x51b8('0x66'),_0x3e3490[_0x51b8('0x58')][_0x51b8('0x80')][_0x51b8('0xf1')](_0x29b666['rootName']));}):_0x3e3490['reconvertMarker'](_0x51b8('0x19')+_0x29b666['id']));});}),this['listenTo'](this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x80')],_0x51b8('0x32'),(_0x53498c,_0x3c8be1)=>{if(this[_0x51b8('0x82')])return;const _0x47b765=this[_0x51b8('0xdf')](_0x3c8be1[_0x51b8('0x7d')]),_0xf470fb=this[_0x51b8('0x86')][_0x51b8('0x88')](_0x47b765);_0xf470fb?(this[_0x51b8('0x72')]={'x':_0x3c8be1[_0x51b8('0xbb')]['x'],'y':_0x3c8be1['domEvent']['y']},this[_0x51b8('0xf0')]=this[_0x51b8('0xec')](_0xf470fb)):(this[_0x51b8('0x72')]=null,this[_0x51b8('0xf0')]=null);}),this[_0x51b8('0x12b')](this[_0x51b8('0x84')][_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x80')],_0x51b8('0x122'),(_0x3a29b2,_0x59fed6)=>{const _0x5f0b6c=this['_findChangeIdFromDomTarget'](_0x59fed6[_0x51b8('0x7d')]),_0x3c294f=this['_changeIdToChange'][_0x51b8('0x88')](_0x5f0b6c);_0x3c294f?(this[_0x51b8('0x72')]={'x':_0x59fed6['domEvent']['x'],'y':_0x59fed6[_0x51b8('0xbb')]['y']},_0x3c294f===this['activeChange']?this['_balloon'][_0x51b8('0x8c')]():this[_0x51b8('0x82')]=_0x3c294f):(this['_activeViewTarget']=null,this[_0x51b8('0x82')]=null);});}[_0x51b8('0xdf')](_0x314af9){do{const _0x314f74=_0x314af9[_0x51b8('0xee')]('data-change-id');if(_0x314f74)return _0x314f74;_0x314af9=_0x314af9[_0x51b8('0x9f')];}while(_0x314af9);return null;}[_0x51b8('0x56')](){this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0xfe')](_0x536879=>{for(const _0x4c8ecc of this[_0x51b8('0x84')][_0x51b8('0x10c')][_0x51b8('0xb')])_0x536879['removeMarker'](_0x4c8ecc);});}}function et(_0x2e09bc,_0x58e6d9){return(_0x1ec1b2,_0x2a0679,_0x5b45ac)=>{if(!_0x5b45ac[_0x51b8('0x53')][_0x51b8('0x4d')](_0x2a0679[_0x51b8('0x68')],_0x1ec1b2[_0x51b8('0x12d')]))return;const _0x218e6a=_0x2a0679['markerRange'][_0x51b8('0xcc')](),_0x3ee8e9=_0x2a0679['markerRange'][_0x51b8('0x93')],_0x2e862d=_0x2e09bc[_0x51b8('0x10c')][_0x51b8('0x102')];let _0x1293e5=null,_0x51b84a=null,_0x4f5726=!0x1,_0x440779=!0x1;for(const _0x278efd of _0x218e6a){const _0x2d7cc1=_0x278efd[_0x51b8('0xba')];_0x4f5726=_0x4f5726||_0x2e862d[_0x51b8('0xf6')](_0x2d7cc1);const _0x43da7d=_0x5b45ac[_0x51b8('0x3b')]['toViewElement'](_0x2d7cc1);if(_0x43da7d&&_0x43da7d[_0x51b8('0x129')](_0x51b8('0xd7')))return;_0x51b8('0x26')==_0x278efd[_0x51b8('0x74')]&&(_0x2e862d['isBlock'](_0x2d7cc1)&&!_0x2e862d[_0x51b8('0x9a')](_0x2d7cc1)&&(_0x2d7cc1[_0x51b8('0x22')]||_0x3ee8e9[_0x51b8('0x4c')]?_0x1293e5&&_0x1293e5[_0x51b8('0x9f')]==_0x2d7cc1||(_0x1293e5=_0x2d7cc1,_0x71e052(_0x278efd[_0x51b8('0x25')]),_0x440779=!0x0):_0x51b84a=_0x51b84a||_0x278efd['previousPosition']));}function _0x71e052(_0x227b15){const _0x3849ca=_0x5b45ac['mapper'][_0x51b8('0x7c')](_0x227b15),_0x349823=_0x5b45ac[_0x51b8('0x3e')][_0x51b8('0xd')](_0x51b8('0x1c'),{'class':_0x51b8('0x112')+_0x58e6d9});_0x5b45ac[_0x51b8('0x3e')][_0x51b8('0x116')](_0x3849ca,_0x349823),_0x5b45ac[_0x51b8('0x3b')][_0x51b8('0x62')](_0x349823,_0x2a0679[_0x51b8('0xbe')]);}_0x4f5726||_0x440779||!_0x51b84a||_0x71e052(_0x51b84a);};}export class RestoreRevisionCommand extends _0x3ab592{constructor(_0x11e9fa){super(_0x11e9fa);const _0x55c435=_0x11e9fa[_0x51b8('0xf7')]['get'](d);this[_0x51b8('0xc9')]=!0x1,this['listenTo'](_0x55c435,_0x51b8('0x63'),()=>this[_0x51b8('0x51')]()),this['listenTo'](_0x55c435,_0x51b8('0xd1'),()=>this[_0x51b8('0x51')]());}[_0x51b8('0x21')](){const _0x387934=this[_0x51b8('0x84')],_0x174c4f=_0x387934[_0x51b8('0xf7')][_0x51b8('0x88')](d),_0x15cfff=_0x174c4f[_0x51b8('0xa')]?_0x174c4f[_0x51b8('0xc')]['newRevisionId']:null;_0x387934[_0x51b8('0x8a')][_0x51b8('0x88')]('revisionHistory')[_0x51b8('0x5f')](_0x15cfff);}['refresh'](){const {isReady:_0x763605,isEnabled:_0x1a5234}=this[_0x51b8('0x84')][_0x51b8('0xf7')][_0x51b8('0x88')](d);this[_0x51b8('0x7e')]=_0x763605&&_0x1a5234;}}export class ShowChangeCommand extends _0x3ab592{constructor(_0xebe6e8,{direction:_0x151dd4}){super(_0xebe6e8);const _0x2d9073=_0xebe6e8[_0x51b8('0xf7')][_0x51b8('0x88')](d);this[_0x51b8('0xc9')]=!0x1,this['_step']=_0x51b8('0xe0')===_0x151dd4?0x1:-0x1,this[_0x51b8('0x12b')](_0x2d9073,_0x51b8('0x63'),()=>this[_0x51b8('0x51')]()),this[_0x51b8('0x12b')](_0x2d9073,_0x51b8('0xd1'),()=>this[_0x51b8('0x51')]()),this[_0x51b8('0x12b')](_0x2d9073,_0x51b8('0x35'),()=>this[_0x51b8('0x51')]());}[_0x51b8('0x21')](){const _0x53827c=this[_0x51b8('0x84')],_0x39cf41=_0x53827c['plugins'][_0x51b8('0x88')](d),{isNavigationMode:_0x5e6fa9,currentChangeNumber:_0x9cfd69}=_0x39cf41;let _0x4b5227;if(_0x39cf41['activeChange']=_0x5e6fa9?_0x39cf41['diff'][_0x51b8('0xf8')][_0x51b8('0x88')](_0x9cfd69+this[_0x51b8('0xab')]):_0x39cf41[_0x51b8('0xc')]['changes']['first'],_0x39cf41['activeChange'][_0x51b8('0x1e')][_0x51b8('0x113')])_0x4b5227=_0x53827c[_0x51b8('0x55')][_0x51b8('0x58')][_0x51b8('0x9b')](_0x39cf41['activeChange'][_0x51b8('0x119')]);else{const _0x2ff523=_0x53827c[_0x51b8('0x10c')]['markers'][_0x51b8('0x88')](_0x51b8('0x19')+_0x39cf41[_0x51b8('0x82')]['id']);_0x4b5227=_0x306b6c(_0x53827c[_0x51b8('0x55')],_0x2ff523);}_0x571fb1({'target':_0x4b5227,'viewportOffset':0x28});}[_0x51b8('0x51')](){const {isNavigationMode:_0x2d8d07,currentChangeNumber:_0x3c8323,numberOfChanges:_0x30c5af,isReady:_0x14d193,isEnabled:_0xeed385}=this[_0x51b8('0x84')][_0x51b8('0xf7')][_0x51b8('0x88')](d);this[_0x51b8('0x7e')]=!!(_0xeed385&&_0x14d193&&_0x30c5af)&&(!_0x2d8d07||(0x1===this[_0x51b8('0xab')]?_0x3c8323<_0x30c5af-0x1:_0x3c8323>0x0));}}
|
|
23
|
+
const _0x38de=['isAddSuggestion','addMarker:revision-suggestion:insertion','toViewPosition','addClass','isAfter','flat','shift','end','getAttributes','revisionHistoryLabel','hasClass','isAttached','editing','_cleanUp','isRemoved','rootName','delete','setAttribute','upcast','createRevision','then','activeChange','addMarker:revision-suggestion:deletion','model','_getDiff','highest','change:isEnabled','RevisionsRepository','_changeIdToChange','insert','_processTape','add','deletions','config','error','getClientRects','addMarker:revision','ck-revision-history-root-add','changes','adapter','markerNameToElements','high','isEnabled','comment','markerName','currentChangeNumber','pop','softBreak','_data','dataToMarker','distance','getWalker','_removeRevisionMarkers','refresh','length','element','change:numberOfChanges','_getViewObj','RevisionViewer','filter','oldRevisionId','_markMarkers','locale','revision-comment:','endIndex','_getViewForChange','revision:','resolve','revision-suggestion:','_initInteractions','vid_end','change:activeChange','suggestion:','clear','isIncorrect','toData','view','isObject','domConverter','done','userId','restoreRevision','domEvent','change','getRootNames','detachRoot','data-change-id','consumable','sort','catch','parent','revision-suggestion','schema','_changeView','_balloon','removeMarker:revision','isLimit','collaboration.channelId','activeView','push','roots','element:pre','indexOf','change:activeView','backward','revision-viewer','isContent','ck-suggestion-preview-marker','values','index','split','showStack','editor','markerToData','getRoot','_removeUnsupportedChanges','get','name','isEqual','toViewElement','elementToAttribute','getCustomProperty','type','bindElementToMarker','createRangeIn','restoreRevisionCallback','ck-revision-history-root-remove','suggestion','isInline','isReady','toViewRange','consume','listenTo','level','mouseover','bind','deletion','forEach','_joinTapes','enqueueChange','test','uiElement','low','elementEnd','merge','_makeModelFromTape','_makeTape','slice','string','_update','_step','unbindElementFromMarkerName','nextSibling','revisionHistoryAttachChange','plugins','attachChange','WidgetToolbarRepository','-new','_getRevisionsRange','revisionHistory','find','attributesBefore','ck-revision-history-root--active','default','enableReadOnlyMode','ck-revision-history-root-','item','POSITIVE_INFINITY','_appendChild','viewItem','_cleanMarkers','authors','_refreshStartEndIndex','updatePosition','_fixObsoleteTags','isCollapsed','findIndex','mapper','elementStart','conversion','ck-suggestion-marker','keys','createUIElement','selection','ck-suggestion-preview-marker-','ck-editor__editable__overlay','repository','stop','change:isReady','revision','_getChangeFromId','getRevisionRootsAttributes','markersEnd','has','isAtStart','getChild','remove','checkAttribute','span','start','vid_start','data-revision-','removeClass','mapViewToDom','_markInsertions','isBlock','concat','abs','insertion','_findChangeIdFromDomTarget','vid','markerToHighlight','nodeAfter','dataDowncast','changeId','loadRevisionData','writer','newRevisionId','pairId','from','createPositionFromPath','unshift','data','next','commands','startsWith','offsetSize','set','createPositionBefore','addRevision','isBefore','revision-start','nextPosition','reconvertMarker','target','top','text','getRevision','getIndex','markersStart','attributes','splice','map','_makeModelFromViewString','range','_threeWayMerge','createRange','toModel','isAtEnd','for','isNavigationMode','affectsData','pluginName','_setDistance','getDomRoot','isAdded','mousedown','attributesAfter','processor','_activeViewTarget','observeMarkers','_markSuggestions','parse','side','ck-suggestion-marker--active','isRemoveSuggestion','isOnRoot','document','hasAttribute','startIndex','diffData','addHighlight','editingDowncast','getAttribute','execute','removeMarker:revision-suggestion','isSuggestion','all','destroy','showNextChange','left','modelRange','forceDisabled','diff','previousPosition','forward','addRoot','insertions','ck-suggestion-marker-','downcastDispatcher','showPreviousChange','markerRange','_setConversion','markers','useFillerType'];(function(_0x10efc5,_0x38de09){const _0x4a7e7d=function(_0x33131f){while(--_0x33131f){_0x10efc5['push'](_0x10efc5['shift']());}};_0x4a7e7d(++_0x38de09);}(_0x38de,0xab));const _0x4a7e=function(_0x10efc5,_0x38de09){_0x10efc5=_0x10efc5-0x0;let _0x4a7e7d=_0x38de[_0x10efc5];return _0x4a7e7d;};import{Plugin as _0x317eec,Command as _0x4a4255}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x2aa636}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3596b6}from'ckeditor5/src/ui';import{DocumentFragment as _0x2e212a,Element as _0x4418da,Text as _0x205bbd,ViewDocumentFragment as _0x405b5f,ViewText as _0x83b51f,ViewElement as _0x46dda2,ViewContainerElement as _0x27fabf,ViewAttributeElement as _0x412101,ViewEmptyElement as _0x6cdf7,ViewRawElement as _0x5e42ae,ViewUIElement as _0xfe1d67}from'ckeditor5/src/engine';import{Users as _0x18c015,getMarkerDomElement as _0x347b17}from'ckeditor5-collaboration/src/collaboration-core';import _0x1bd20b from'./ui/revisionviewer/changedetailsview';import _0x2f6749 from'./revisionsrepository';import _0x3f5468 from'./changeitem';import{default as _0xcb2177}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x110810}from'lodash-es';const tt={'c':_0x27fabf,'a':_0x412101,'e':_0x6cdf7,'r':_0x5e42ae,'u':_0xfe1d67};export default class d extends _0x317eec{static get[_0x4a7e('0x51')](){return _0x4a7e('0xb6');}static get['requires'](){return[_0x18c015,_0x3596b6,_0x2f6749];}constructor(_0x401a4d){super(_0x401a4d),this[_0x4a7e('0xf')]=this[_0x4a7e('0xec')][_0x4a7e('0x116')][_0x4a7e('0xf0')](_0x4a7e('0x97')),this[_0x4a7e('0x38')](_0x4a7e('0x91'),null),this[_0x4a7e('0x38')](_0x4a7e('0xde'),null),this[_0x4a7e('0x58')]=null,this[_0x4a7e('0x38')](_0x4a7e('0x70'),null),this[_0x4a7e('0x38')]('isReady',!0x1),this[_0x4a7e('0x38')]('isEnabled',!0x0),this['on'](_0x4a7e('0x96'),(_0x1e409c,_0x266690,_0x4d5052)=>{this[_0x4a7e('0x91')]=null,this[_0x4a7e('0xde')]=null,this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0xcf')](_0x696861=>{for(const _0x3ed897 of this[_0x4a7e('0xec')]['editing'][_0x4a7e('0xc8')][_0x4a7e('0x60')][_0x4a7e('0xe0')])_0x4d5052?_0x696861[_0x4a7e('0x1f')]('ck-editor__editable__overlay',_0x3ed897):_0x696861[_0x4a7e('0x7f')](_0x4a7e('0xe'),_0x3ed897);});}),this[_0x4a7e('0x103')](_0x4a7e('0x4f'))['to'](this,_0x4a7e('0x91'),_0x3f593a=>null!==_0x3f593a),this[_0x4a7e('0x103')](_0x4a7e('0xa9'))['to'](this,'isReady',this,_0x4a7e('0x70'),this,'activeChange',(_0x2e9acd,_0x1468b6,_0x19f3a6)=>_0x2e9acd&&_0x19f3a6?_0x1468b6[_0x4a7e('0xa2')]['getIndex'](_0x19f3a6):0x0),this['bind']('numberOfChanges')['to'](this,_0x4a7e('0xfd'),this,'diff',(_0x6da837,_0x28cc08)=>_0x6da837?_0x28cc08['changes'][_0x4a7e('0xb2')]:0x0),this[_0x4a7e('0xd9')]=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this[_0x4a7e('0xda')]=this['editor']['plugins'][_0x4a7e('0xf0')](_0x3596b6);}['init'](){const _0x282e10=this[_0x4a7e('0xec')],_0x124eee=new ShowChangeCommand(_0x282e10,{'direction':_0x4a7e('0xe4')}),_0x58899c=new ShowChangeCommand(_0x282e10,{'direction':_0x4a7e('0x72')});(_0x282e10[_0x4a7e('0x35')]['add'](_0x4a7e('0x77'),_0x124eee),_0x282e10[_0x4a7e('0x35')]['add'](_0x4a7e('0x6c'),_0x58899c),_0x282e10[_0x4a7e('0x35')][_0x4a7e('0x9b')](_0x4a7e('0xcd'),new RestoreRevisionCommand(_0x282e10)),this['on'](_0x4a7e('0xb4'),()=>{_0x124eee[_0x4a7e('0xb1')](),_0x58899c[_0x4a7e('0xb1')]();}),this[_0x4a7e('0x79')](),this['_initInteractions'](),_0x282e10[_0x4a7e('0x120')](_0x4a7e('0xe5')),_0x282e10[_0x4a7e('0x116')][_0x4a7e('0x16')](_0x4a7e('0x118')))&&_0x282e10['plugins'][_0x4a7e('0xf0')]('WidgetToolbarRepository')[_0x4a7e('0x6f')](_0x4a7e('0xe5'));}async['getRevisionData'](_0x5614c6){await this['loadRevisionData'](_0x5614c6);const _0x4ca053={};for(const _0x189b29 in _0x5614c6[_0x4a7e('0x63')]){if(_0x5614c6[_0x4a7e('0x63')][_0x189b29]['attachChange']&&!_0x5614c6[_0x4a7e('0x63')][_0x189b29][_0x4a7e('0x117')][_0x4a7e('0x87')])continue;const _0x5ca211=this[_0x4a7e('0xb0')](JSON[_0x4a7e('0x5b')](_0x5614c6[_0x4a7e('0x63')][_0x189b29][_0x4a7e('0x74')])),_0x5ab618=this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0x60')],_0x290710=new _0x405b5f(_0x5ab618,_0x5ca211[_0x4a7e('0x47')](_0x3d7623=>this[_0x4a7e('0xb5')](_0x3d7623)));this['editor'][_0x4a7e('0x33')][_0x4a7e('0x57')][_0x4a7e('0x7b')]('marked'),_0x4ca053[_0x189b29]=this['editor'][_0x4a7e('0x33')]['processor'][_0x4a7e('0xc7')](_0x290710),this['editor'][_0x4a7e('0x33')]['processor'][_0x4a7e('0x7b')](_0x4a7e('0x11f'));}return _0x4ca053;}async[_0x4a7e('0x14')](_0x2abb76){await this[_0x4a7e('0x2c')](_0x2abb76);const _0x3b839a={};for(const _0x5e10b9 in _0x2abb76[_0x4a7e('0x63')])_0x2abb76[_0x4a7e('0x63')][_0x5e10b9][_0x4a7e('0x117')]&&!_0x2abb76[_0x4a7e('0x63')][_0x5e10b9][_0x4a7e('0x117')][_0x4a7e('0x87')]||(_0x3b839a[_0x5e10b9]=_0x2abb76[_0x4a7e('0x63')][_0x5e10b9][_0x4a7e('0x56')]||{});return _0x3b839a;}[_0x4a7e('0xb0')](_0x1944b9){return(_0x1944b9=_0x1944b9[_0x4a7e('0xb7')](_0x1fdd65=>!_0x1fdd65[_0x4a7e('0xf1')]||_0x4a7e('0x3c')!==_0x1fdd65[_0x4a7e('0xf1')]&&'revision-end'!==_0x1fdd65[_0x4a7e('0xf1')]))[_0x4a7e('0x105')](_0x232f95=>{_0x4a7e('0x110')!=typeof _0x232f95&&(_0x232f95['children']=this[_0x4a7e('0xb0')](_0x232f95['children']),_0x232f95[_0x4a7e('0x45')]=_0x232f95[_0x4a7e('0x45')][_0x4a7e('0xb7')](_0x4c9623=>!_0x4c9623[0x0][_0x4a7e('0x36')](_0x4a7e('0x1e'))));}),_0x1944b9;}async['compare'](_0x29be2d,_0x14715b,_0x4ca863=!0x1){if(!this[_0x4a7e('0xa6')])return;const _0x510eeb=this['diff'],_0x34a9c1=this['repository'],_0x34dfbb='string'==typeof _0x29be2d?_0x34a9c1[_0x4a7e('0x42')](_0x29be2d):_0x29be2d,_0x4a8202=_0x4a7e('0x110')==typeof _0x14715b?_0x34a9c1[_0x4a7e('0x42')](_0x14715b):_0x14715b,_0x5423a0=_0x34dfbb['id'],_0x29b14a=_0x4a8202?_0x4a8202['id']:null;if(!_0x4ca863&&this[_0x4a7e('0x70')]&&this[_0x4a7e('0x70')][_0x4a7e('0x2e')]===_0x5423a0&&this[_0x4a7e('0x70')][_0x4a7e('0xb8')]===_0x29b14a)return Promise[_0x4a7e('0xbf')]();this[_0x4a7e('0xfd')]=!0x1,this[_0x4a7e('0xde')]=null,this[_0x4a7e('0x91')]=null,this[_0x4a7e('0x70')]=new _0xcb2177(_0x5423a0,_0x29b14a);const _0x7075af=this[_0x4a7e('0x11a')](_0x34dfbb,_0x4a8202,!0x0)[_0x4a7e('0x47')](_0x1e0832=>this['loadRevisionData'](_0x1e0832));return _0x7075af[_0x4a7e('0xdf')](new Promise(_0x576ff8=>{setTimeout(_0x576ff8,0x14);})),Promise[_0x4a7e('0x6a')](_0x7075af)[_0x4a7e('0x90')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x27826c=this['_getDiff'](_0x5423a0,_0x29b14a);for(const _0x2fccc7 of _0x27826c[_0x4a7e('0xa2')])this[_0x4a7e('0x98')][_0x4a7e('0x38')](_0x2fccc7['id'],_0x2fccc7);this[_0x4a7e('0xec')]['model'][_0x4a7e('0x107')]({'isUndoable':!0x1},_0x37ece5=>{for(const _0x58051f of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')][_0x4a7e('0xd0')]())_0x37ece5[_0x4a7e('0xd1')](_0x58051f);for(const _0x585895 of Object[_0x4a7e('0xa')](_0x27826c['model'])){const _0x1cc695=_0x37ece5[_0x4a7e('0x73')](_0x585895);for(const _0x57a18d of Object['keys'](_0x27826c[_0x4a7e('0x45')][_0x585895]))_0x37ece5[_0x4a7e('0x8d')](_0x57a18d,_0x27826c[_0x4a7e('0x45')][_0x585895][_0x57a18d],_0x1cc695);_0x37ece5['insert'](_0x27826c[_0x4a7e('0x93')][_0x585895],_0x1cc695,0x0);}}),this[_0x4a7e('0x70')]['_setChanges'](this['_sortAndFilterDiffChanges'](_0x27826c['changes'])),this[_0x4a7e('0xfd')]=!0x0;})[_0x4a7e('0xd5')](_0x9bc716=>{console[_0x4a7e('0x9e')](_0x9bc716),this['_cleanUp'](),_0x510eeb&&(this[_0x4a7e('0x70')]=_0x510eeb),this[_0x4a7e('0xfd')]=!0x0;});}['addRevisionData'](_0xa074cb,_0x3b0127){const _0x198b32=this[_0x4a7e('0xf')][_0x4a7e('0x8f')](_0xa074cb);return _0x198b32['on']('_update',(_0xe6c356,_0x38a981,_0x5b0476)=>_0x3b0127(_0x38a981,_0x5b0476,_0x198b32)),this[_0x4a7e('0xf')][_0x4a7e('0x3a')](_0x198b32),_0x198b32;}[_0x4a7e('0x2c')](_0x260bad){if(!_0x260bad||_0x260bad[_0x4a7e('0x63')])return Promise[_0x4a7e('0xbf')]();{const _0x38888f=this['editor']['config'][_0x4a7e('0xf0')](_0x4a7e('0xdd'));return this[_0x4a7e('0xa3')][_0x4a7e('0x42')]({'channelId':_0x38888f,'revisionId':_0x260bad['id']})[_0x4a7e('0x90')](_0x11ac41=>{_0x260bad[_0x4a7e('0x111')]({'diffData':_0x11ac41[_0x4a7e('0x63')]},!0x0);});}}[_0x4a7e('0x89')](){this[_0x4a7e('0x91')]=null,this['_cleanMarkers'](),this[_0x4a7e('0xd9')]&&this[_0x4a7e('0xd9')]['destroy'](),this['_changeView']=null,this[_0x4a7e('0x98')][_0x4a7e('0xc5')](),this[_0x4a7e('0xec')]['model'][_0x4a7e('0x107')]({'isUndoable':!0x1},_0x477ec2=>{for(const _0x4718aa of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')]['getRootNames']())_0x477ec2[_0x4a7e('0xd1')](_0x4718aa);});}['_sortAndFilterDiffChanges'](_0x35ae4a){const _0x11afb4=[],_0x2d40c2=new Map();for(const _0x337312 of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')]['getRootNames']()){const _0x4d8983=this['editor'][_0x4a7e('0x88')]['view'][_0x4a7e('0x53')](_0x337312);if(!_0x4d8983)continue;const _0x570216=_0x4d8983[_0x4a7e('0x9f')]()['item'](0x0);_0x570216&&(_0x11afb4[_0x4a7e('0xdf')](_0x337312),_0x2d40c2['set'](_0x337312,_0x570216));}return _0x11afb4[_0x4a7e('0xd4')]((_0x436010,_0x2a4c77)=>{const _0x599781=_0x2d40c2['get'](_0x436010),_0x3e19c6=_0x2d40c2[_0x4a7e('0xf0')](_0x2a4c77);return _0x599781['y']-_0x3e19c6['y']||_0x599781['x']-_0x3e19c6['x'];}),(_0x35ae4a=_0x35ae4a[_0x4a7e('0xb7')](_0x46458f=>_0x11afb4['includes'](_0x46458f[_0x4a7e('0x8b')])))['sort']((_0x5d2bb6,_0x5190aa)=>_0x11afb4[_0x4a7e('0xe2')](_0x5d2bb6[_0x4a7e('0x8b')])-_0x11afb4['indexOf'](_0x5190aa[_0x4a7e('0x8b')])),_0x35ae4a;}[_0x4a7e('0x10e')](_0x3bd9e6){const _0x4ce4c2=Array['from'](_0x3bd9e6['markers'])['filter'](([_0x487c47,_0x3334f1])=>_0x487c47['startsWith']('revision:')&&!_0x3334f1[_0x4a7e('0x4')]),_0x3fe8eb=Array[_0x4a7e('0x30')](this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xf8')](_0x3bd9e6)[_0x4a7e('0xaf')]({'singleCharacters':!0x0}));if(0x0!=_0x4ce4c2[_0x4a7e('0xb2')])for(const _0x24a73d of _0x3fe8eb){const [_0x2ac7c7,_0x51dc76]=_0x4ce4c2[0x0],[,_0x31e43b,_0x4841c3]=_0x2ac7c7['split'](':');if(_0x51dc76[_0x4a7e('0x83')][_0x4a7e('0xf2')](_0x24a73d[_0x4a7e('0x3d')])&&_0x4ce4c2[_0x4a7e('0x82')](),(_0x24a73d[_0x4a7e('0x71')][_0x4a7e('0xf2')](_0x51dc76['start'])||_0x24a73d[_0x4a7e('0x71')]['isAfter'](_0x51dc76[_0x4a7e('0x1c')]))&&(_0x4a7e('0x25')==_0x31e43b?_0x24a73d[_0x4a7e('0x54')]={'userId':_0x4841c3}:_0x4a7e('0x104')==_0x31e43b&&(_0x24a73d['isRemoved']={'userId':_0x4841c3})),0x0==_0x4ce4c2[_0x4a7e('0xb2')])break;}return _0x3fe8eb;}['_refreshStartEndIndex'](_0x3c1cae){const _0x594a03=new Map();for(let _0x48b8b6=0x0;_0x48b8b6<_0x3c1cae['length'];_0x48b8b6++)'text'===_0x3c1cae[_0x48b8b6][_0x4a7e('0xf6')]?(_0x3c1cae[_0x48b8b6]['item'][_0x4a7e('0x62')]=_0x48b8b6,_0x3c1cae[_0x48b8b6]['item'][_0x4a7e('0xbc')]=_0x48b8b6):(_0x4a7e('0x7')===_0x3c1cae[_0x48b8b6][_0x4a7e('0xf6')]?_0x3c1cae[_0x48b8b6][_0x4a7e('0x122')]['startIndex']=_0x48b8b6:_0x4a7e('0x10b')===_0x3c1cae[_0x48b8b6][_0x4a7e('0xf6')]&&(_0x3c1cae[_0x48b8b6][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x48b8b6),_0x594a03['set'](_0x3c1cae[_0x48b8b6]['id'],_0x48b8b6));for(const _0xaabe82 of _0x594a03[_0x4a7e('0xe8')]())_0x4a7e('0x7')===_0x3c1cae[_0xaabe82]['type']?_0x3c1cae[_0xaabe82][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x594a03[_0x4a7e('0xf0')](_0x3c1cae[_0xaabe82][_0x4a7e('0x2f')]):_0x4a7e('0x10b')===_0x3c1cae[_0xaabe82]['type']&&(_0x3c1cae[_0xaabe82][_0x4a7e('0x122')][_0x4a7e('0x62')]=_0x594a03['get'](_0x3c1cae[_0xaabe82][_0x4a7e('0x2f')]));}[_0x4a7e('0x9a')](_0x211b4a){for(let _0x1fc794=0x0;_0x1fc794<_0x211b4a['length'];_0x1fc794++){if(_0x4a7e('0x7')===_0x211b4a[_0x1fc794]['type'])_0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0x62')]=_0x1fc794;else{if(_0x4a7e('0x10b')===_0x211b4a[_0x1fc794][_0x4a7e('0xf6')]){_0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x1fc794;const _0x24f423=_0x211b4a[_0x1fc794]['item'][_0x4a7e('0x62')];_0x211b4a[_0x24f423][_0x4a7e('0x2f')]=_0x211b4a[_0x1fc794]['id'],_0x211b4a[_0x1fc794][_0x4a7e('0x2f')]=_0x211b4a[_0x24f423]['id'];}else _0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0x62')]=_0x1fc794,_0x211b4a[_0x1fc794][_0x4a7e('0x122')][_0x4a7e('0xbc')]=_0x1fc794,_0x211b4a[_0x1fc794][_0x4a7e('0x2f')]=null;}_0x211b4a[_0x1fc794][_0x4a7e('0x44')]||(_0x211b4a[_0x1fc794][_0x4a7e('0x44')]=[],_0x211b4a[_0x1fc794][_0x4a7e('0x15')]=[]);}}[_0x4a7e('0x21')](_0x76f406,_0x4db4d0){const _0x20ea7e=_0x76f406[_0x4a7e('0xb7')](_0x5b894b=>!_0x5b894b['isAdded']);for(let _0x5c400b=0x0;_0x5c400b<_0x4db4d0['length'];_0x5c400b++)_0x4db4d0[_0x5c400b][_0x4a7e('0x54')]&&(_0x20ea7e[_0x5c400b][_0x4a7e('0x54')]=_0x4db4d0[_0x5c400b]['isAdded']);}[_0x4a7e('0x48')](_0x592ed8){const _0x469b44=JSON[_0x4a7e('0x5b')](_0x592ed8),_0x2df612=this[_0x4a7e('0xec')][_0x4a7e('0x88')]['view'][_0x4a7e('0x60')],_0x206bf0=new _0x405b5f(_0x2df612,_0x469b44['map'](_0x21cc41=>this[_0x4a7e('0xb5')](_0x21cc41)));return this[_0x4a7e('0xec')]['data'][_0x4a7e('0x4c')](_0x206bf0);}[_0x4a7e('0xb5')](_0xdffc2d){const _0x34b2e5=this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')]['document'];if(_0x4a7e('0x110')==typeof _0xdffc2d)return new _0x83b51f(_0x34b2e5,_0xdffc2d);{const _0x25958c=_0xdffc2d['children'][_0x4a7e('0x47')](_0x4fd20d=>this[_0x4a7e('0xb5')](_0x4fd20d));return new(tt[_0xdffc2d['type']]||_0x46dda2)(_0x34b2e5,_0xdffc2d[_0x4a7e('0xf1')],_0xdffc2d[_0x4a7e('0x45')],_0x25958c);}}[_0x4a7e('0x94')](_0x30c7fa,_0x2c1b2c=null){const _0x52a133=this['repository'][_0x4a7e('0x42')](_0x30c7fa),_0x255d29=_0x2c1b2c?this['repository'][_0x4a7e('0x42')](_0x2c1b2c):null,_0x2f3bb1=this[_0x4a7e('0x11a')](_0x52a133,_0x255d29),_0x486f61=_0x2f3bb1[_0x2f3bb1[_0x4a7e('0xb2')]-0x1],_0x556230=new Map(),_0x5e0807={'model':{},'attributes':{},'changes':[]},_0x36fea0=new Set(),_0x4ce8bc=new Map();for(let _0x479feb=_0x2f3bb1[_0x4a7e('0xb2')]-0x1;_0x479feb>=0x0;_0x479feb--){const _0x5bbe6b=_0x2f3bb1[_0x479feb];for(const _0x25fee2 of Object['keys'](_0x5bbe6b['diffData']))if(_0x5bbe6b['diffData'][_0x25fee2]['attachChange']){const _0x103fb6=_0x5bbe6b['diffData'][_0x25fee2][_0x4a7e('0x117')];_0x103fb6[_0x4a7e('0x87')]?(_0x36fea0[_0x4a7e('0x9b')](_0x25fee2),_0x4ce8bc[_0x4a7e('0x16')](_0x25fee2)&&_0x4ce8bc[_0x4a7e('0xf0')](_0x25fee2)[_0x4a7e('0xcc')]==_0x103fb6[_0x4a7e('0xcc')]?_0x4ce8bc[_0x4a7e('0x8c')](_0x25fee2):_0x4ce8bc[_0x4a7e('0x38')](_0x25fee2,_0x103fb6)):_0x4ce8bc[_0x4a7e('0x16')](_0x25fee2)?(_0x36fea0[_0x4a7e('0x8c')](_0x25fee2),_0x4ce8bc['delete'](_0x25fee2)):(_0x36fea0[_0x4a7e('0x9b')](_0x25fee2),_0x4ce8bc[_0x4a7e('0x38')](_0x25fee2,_0x103fb6));}else _0x36fea0[_0x4a7e('0x9b')](_0x25fee2);}for(const _0x354e05 of _0x36fea0){const _0x426f26=_0x4ce8bc[_0x4a7e('0x16')](_0x354e05)&&!_0x4ce8bc[_0x4a7e('0xf0')](_0x354e05)[_0x4a7e('0x87')];let _0x39d128=_0x426f26?_0x2f3bb1[_0x4a7e('0xb2')]-0x1:0x0;const _0x82c364=_0x426f26?-0x1:0x1;for(;_0x2f3bb1[_0x39d128];){const _0x19aded=_0x2f3bb1[_0x39d128];if(_0x19aded[_0x4a7e('0x63')][_0x354e05]){const _0x29ab1b=_0x426f26?_0x19aded[_0x4a7e('0x63')][_0x354e05][_0x4a7e('0x11d')]:_0x19aded[_0x4a7e('0x63')][_0x354e05][_0x4a7e('0x56')];_0x5e0807[_0x4a7e('0x45')][_0x354e05]=_0x29ab1b?_0x110810(_0x29ab1b):{};break;}_0x39d128+=_0x82c364;}}for(const _0x2ba9f2 of _0x2f3bb1){_0x2ba9f2['model']={};for(const _0x1031a1 of _0x2ba9f2[_0x4a7e('0x0')])_0x556230['set'](_0x1031a1['id'],_0x1031a1);for(const _0x8b8a1d of _0x36fea0){const _0x5b2c80=_0x2ba9f2[_0x4a7e('0x63')][_0x8b8a1d]?_0x2ba9f2['diffData'][_0x8b8a1d][_0x4a7e('0x74')]:'[]',_0x34e733=_0x2ba9f2['diffData'][_0x8b8a1d]?_0x2ba9f2[_0x4a7e('0x63')][_0x8b8a1d][_0x4a7e('0x9c')]:'[]';_0x2ba9f2[_0x4a7e('0x93')][_0x8b8a1d]={'insertions':this[_0x4a7e('0x48')](_0x5b2c80),'deletions':this[_0x4a7e('0x48')](_0x34e733)};}}for(const _0x1142cf of _0x36fea0){let _0x2bb947=null,_0x4192b9=0x0;const _0x3b0b2a=new Map(Array['from'](_0x52a133[_0x4a7e('0x93')][_0x1142cf][_0x4a7e('0x74')][_0x4a7e('0x7a')])['filter'](([_0x173bab])=>!_0x173bab[_0x4a7e('0x36')]('revision:')));let _0x42a6b7=0x0;for(const _0x5e5173 of _0x2f3bb1){const _0x516b04=this[_0x4a7e('0x10e')](_0x5e5173[_0x4a7e('0x93')][_0x1142cf]['insertions']);_0x5e5173==_0x52a133?(_0x2bb947=_0x516b04,_0x4192b9=_0x2bb947[_0x4a7e('0xb2')],_0x2bb947[_0x4a7e('0x105')](_0x3e633c=>{_0x3e633c['id']=_0x42a6b7++;}),this[_0x4a7e('0x9a')](_0x2bb947)):this[_0x4a7e('0x21')](_0x2bb947,_0x516b04);const _0x2b2b5f=_0x2bb947[_0x4a7e('0xb7')](_0x149a0c=>!_0x149a0c[_0x4a7e('0x54')])[_0x4a7e('0x47')](_0x1647a9=>_0x1647a9['id']);let _0x216641=0x0;const _0x2ffe41=this[_0x4a7e('0x10e')](_0x5e5173[_0x4a7e('0x93')][_0x1142cf]['deletions']);_0x2ffe41['forEach'](_0x127268=>{_0x127268[_0x4a7e('0x8a')]?_0x127268['id']=_0x4192b9++:_0x127268['id']=_0x2b2b5f[_0x216641++];}),this[_0x4a7e('0x9a')](_0x2ffe41),this['_setDistance'](_0x2bb947,_0x4a7e('0x54')),this[_0x4a7e('0x52')](_0x2ffe41,_0x4a7e('0x8a')),_0x5e5173==_0x52a133&&this[_0x4a7e('0xb9')](_0x2bb947,_0x3b0b2a),_0x2bb947=this[_0x4a7e('0x106')](_0x2bb947,_0x2ffe41),this[_0x4a7e('0x1')](_0x2bb947),this[_0x4a7e('0x52')](_0x2bb947,'isRemoved');}_0x2bb947=_0x2bb947[_0x4a7e('0xb7')](_0x2f7a88=>!(_0x2f7a88[_0x4a7e('0x54')]&&_0x2f7a88[_0x4a7e('0x8a')]));const _0x2673e4=new Map(_0x486f61[_0x4a7e('0x93')][_0x1142cf][_0x4a7e('0x9c')][_0x4a7e('0x7a')]),_0x45eb25=new Set(_0x3b0b2a[_0x4a7e('0xa')]());for(const _0x28a2e5 of _0x2673e4[_0x4a7e('0xa')]())_0x45eb25[_0x4a7e('0x8c')](_0x28a2e5);this[_0x4a7e('0x5a')](_0x2bb947,_0x45eb25),this[_0x4a7e('0x3')](_0x2bb947),_0x2bb947=this['_removeMissingPairs'](_0x2bb947),_0x2bb947=this['_markMismatchedRemovedTags'](_0x2bb947),_0x2bb947=this['_removeUnsupportedChanges'](_0x2bb947);const {root:_0x555128,changes:_0xcb2654}=this[_0x4a7e('0x10d')](_0x2bb947,_0x556230,_0x1142cf);_0x5e0807['model'][_0x1142cf]=_0x555128;const _0x27a955=_0x4ce8bc[_0x4a7e('0xf0')](_0x1142cf);if(_0x27a955){const _0x5a52d2=_0x556230[_0x4a7e('0xf0')](_0x27a955[_0x4a7e('0xcc')]),_0x1203d0=new _0x3f5468({'author':_0x5a52d2,'type':_0x27a955[_0x4a7e('0x87')]?_0x4a7e('0x9b'):_0x4a7e('0x19'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x1142cf});_0xcb2654[_0x4a7e('0x32')](_0x1203d0),_0x5e0807[_0x4a7e('0x45')][_0x1142cf][_0x4a7e('0x115')]=_0x1203d0['id'];}_0x5e0807[_0x4a7e('0xa2')]=_0x5e0807['changes'][_0x4a7e('0x23')](_0xcb2654);}return _0x5e0807;}['_markMarkers'](_0x11db60,_0xb4278e){for(let _0x191e7a=0x0;_0x191e7a<_0x11db60['length'];_0x191e7a++)for(const [_0x2144de,_0x3eb249]of _0xb4278e)_0x3eb249[_0x4a7e('0x1c')][_0x4a7e('0xf2')](_0x11db60[_0x191e7a]['previousPosition'])&&_0x11db60[_0x191e7a][_0x4a7e('0x44')][_0x4a7e('0xdf')](_0x2144de),_0x3eb249[_0x4a7e('0x83')][_0x4a7e('0xf2')](_0x11db60[_0x191e7a]['nextPosition'])&&_0x11db60[_0x191e7a][_0x4a7e('0x15')][_0x4a7e('0xdf')](_0x2144de);}[_0x4a7e('0x106')](_0x188e84,_0x8ec45d){let _0xe4851e=[],_0x2f48d2=0x0,_0x1d5253=0x0;for(;_0x2f48d2<_0x188e84[_0x4a7e('0xb2')]||_0x1d5253<_0x8ec45d[_0x4a7e('0xb2')];){const _0x26f1e5=_0x188e84[_0x2f48d2]||{},_0x435e36=_0x8ec45d[_0x1d5253]||{};if(_0x26f1e5['id']==_0x435e36['id'])_0x2f48d2++,_0x1d5253++,_0xe4851e[_0x4a7e('0xdf')](_0x26f1e5);else{if(_0x435e36['isRemoved']&&_0x26f1e5['isAdded']){const {commonTape:_0x353b2,iEnd:_0x5effac,jEnd:_0x5b4836}=this[_0x4a7e('0x4a')](_0x188e84,_0x2f48d2,_0x8ec45d,_0x1d5253);_0xe4851e=_0xe4851e[_0x4a7e('0x23')](_0x353b2),_0x2f48d2=_0x5effac,_0x1d5253=_0x5b4836;}else _0x435e36[_0x4a7e('0x8a')]?(_0x1d5253++,_0xe4851e['push'](_0x435e36)):(_0x2f48d2++,_0xe4851e[_0x4a7e('0xdf')](_0x26f1e5));}}return _0xe4851e;}[_0x4a7e('0x5a')](_0x9b0f33,_0x31cf2a){const _0x226253=[];for(let _0x1daecf=0x0;_0x1daecf<_0x9b0f33['length'];_0x1daecf++){for(let _0x29913c=0x0;_0x29913c<_0x9b0f33[_0x1daecf][_0x4a7e('0x44')][_0x4a7e('0xb2')];_0x29913c++){const _0x287e66=_0x9b0f33[_0x1daecf][_0x4a7e('0x44')][_0x29913c];if(!_0x31cf2a[_0x4a7e('0x16')](_0x287e66))continue;const {group:_0x329e28,type:_0x307595,authorId:_0x898364}=_0x51b3ca(_0x287e66);_0x4a7e('0xd7')!=_0x329e28||_0x4a7e('0x25')!=_0x307595&&_0x4a7e('0x104')!=_0x307595||(_0x226253[_0x4a7e('0x32')]({'type':_0x307595,'name':_0x287e66,'userId':_0x898364}),_0x9b0f33[_0x1daecf][_0x4a7e('0x44')][_0x4a7e('0x46')](_0x29913c,0x1),_0x29913c--);}_0x3f6357(_0x9b0f33[_0x1daecf]);for(let _0x201cca=0x0;_0x201cca<_0x9b0f33[_0x1daecf][_0x4a7e('0x15')][_0x4a7e('0xb2')];_0x201cca++){const _0x10f379=_0x9b0f33[_0x1daecf][_0x4a7e('0x15')][_0x201cca];if(!_0x31cf2a[_0x4a7e('0x16')](_0x10f379))continue;const {group:_0x458567,type:_0x165d59}=_0x51b3ca(_0x10f379);if(_0x4a7e('0xd7')!=_0x458567||'insertion'!=_0x165d59&&_0x4a7e('0x104')!=_0x165d59)continue;_0x9b0f33[_0x1daecf][_0x4a7e('0x15')][_0x4a7e('0x46')](_0x201cca,0x1),_0x201cca--;const _0x553b6c=_0x226253[_0x4a7e('0x5')](_0x3618e9=>_0x3618e9[_0x4a7e('0xf1')]==_0x10f379);_0x553b6c>-0x1&&_0x226253[_0x4a7e('0x46')](_0x553b6c,0x1);}}function _0x51b3ca(_0x114cf6){const _0xd1e95c=_0x114cf6[_0x4a7e('0xea')](':');return{'group':_0xd1e95c[0x0],'type':_0xd1e95c[0x1],'subType':_0xd1e95c[_0x4a7e('0xb2')]>=0x5?_0xd1e95c[0x2]:null,'id':_0xd1e95c[_0x4a7e('0xb2')]<0x5?_0xd1e95c[0x2]:_0xd1e95c[0x3],'authorId':_0xd1e95c[_0x4a7e('0xb2')]<0x5?_0xd1e95c[0x3]:_0xd1e95c[0x4],'markerCount':0x6==_0xd1e95c[_0x4a7e('0xb2')]?_0xd1e95c[0x5]:null};}function _0x3f6357(_0x46ae26){for(let _0x4a703b=0x0;_0x4a703b<_0x226253[_0x4a7e('0xb2')];_0x4a703b++){if(_0x46ae26[_0x4a7e('0x54')]&&_0x4a7e('0x25')==_0x226253[_0x4a703b][_0x4a7e('0xf6')])return _0x46ae26['isAddSuggestion']=_0x226253[_0x4a703b],void delete _0x46ae26[_0x4a7e('0x54')];if(!_0x46ae26[_0x4a7e('0x54')]&&!_0x46ae26[_0x4a7e('0x8a')]&&_0x4a7e('0x104')==_0x226253[_0x4a703b][_0x4a7e('0xf6')])return void(_0x46ae26['isRemoveSuggestion']=_0x226253[_0x4a703b]);}}}[_0x4a7e('0x52')](_0x40bb33,_0x13da83){let _0x9ba9b5=0x0,_0x3dc138=!0x1;const _0x410c76=new Map();for(const _0x4a6fa8 of _0x40bb33)_0x4a6fa8[_0x13da83]?_0x3dc138&&(_0x9ba9b5++,_0x3dc138=!0x1):(_0x9ba9b5++,_0x3dc138=!0x0),_0x410c76[_0x4a7e('0x38')](_0x4a6fa8['id'],_0x9ba9b5);for(let _0xa321d3=0x0;_0xa321d3<_0x40bb33['length'];_0xa321d3++){if('isRemoved'==_0x13da83&&_0x40bb33[_0xa321d3][_0x4a7e('0x54')]||'isAdded'==_0x13da83&&_0x40bb33[_0xa321d3][_0x4a7e('0x8a')])continue;if(_0x4a7e('0x41')==_0x40bb33[_0xa321d3][_0x4a7e('0xf6')]){_0x40bb33[_0xa321d3][_0x4a7e('0xae')]=0x0;continue;}const _0xbbf25a=_0x410c76['get'](_0x40bb33[_0xa321d3][_0x4a7e('0x2f')]),_0x2df74e=_0x410c76[_0x4a7e('0xf0')](_0x40bb33[_0xa321d3]['id']);_0x40bb33[_0xa321d3][_0x4a7e('0xae')]=_0xbbf25a-_0x2df74e;}}[_0x4a7e('0x11a')](_0xb1cb04,_0x459c87,_0x306545=!0x1){const _0x4fe088=[];let _0x285883=this['repository'][_0x4a7e('0x43')](_0xb1cb04),_0x311ee4=this[_0x4a7e('0xf')]['getIndex'](_0x459c87);for(-0x1==_0x311ee4&&(_0x311ee4=this['repository']['_revisions'][_0x4a7e('0xb2')],_0x306545=!0x1);_0x285883<_0x311ee4;)_0x4fe088[_0x4a7e('0xdf')](this[_0x4a7e('0xf')][_0x4a7e('0x42')](_0x285883)),_0x285883++;return _0x306545&&_0x4fe088[_0x4a7e('0xdf')](this['repository'][_0x4a7e('0x42')](_0x285883)),_0x4fe088;}[_0x4a7e('0x4a')](_0x32e4d3,_0x4f12a2,_0x334f89,_0x2548da){const _0x40602e=this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xd8')];let _0x27583b=_0x4f12a2;for(;_0x32e4d3[_0x27583b]&&_0x32e4d3[_0x27583b]['isAdded'];)_0x27583b++;let _0x361d11=_0x2548da;for(;_0x334f89[_0x361d11]&&_0x334f89[_0x361d11][_0x4a7e('0x8a')];)_0x361d11++;_0x5d7146(_0x32e4d3,_0x4f12a2,_0x27583b),_0x5d7146(_0x334f89,_0x2548da,_0x361d11);const _0xe0c74f=_0x334f89[_0x4a7e('0x10f')](_0x2548da,_0x361d11)[_0x4a7e('0x23')](_0x32e4d3[_0x4a7e('0x10f')](_0x4f12a2,_0x27583b));return _0xe0c74f[_0x4a7e('0xd4')]((_0x3661f0,_0x4f7e8b)=>_0x3661f0[_0x4a7e('0x5c')]!=_0x4f7e8b[_0x4a7e('0x5c')]?_0x3661f0['side']-_0x4f7e8b[_0x4a7e('0x5c')]:_0x3661f0[_0x4a7e('0x101')]!=_0x4f7e8b[_0x4a7e('0x101')]?_0x3661f0[_0x4a7e('0x101')]-_0x4f7e8b[_0x4a7e('0x101')]:_0x3661f0[_0x4a7e('0xae')]!=_0x4f7e8b[_0x4a7e('0xae')]?_0x4f7e8b[_0x4a7e('0xae')]-_0x3661f0['distance']:!!_0x3661f0[_0x4a7e('0x54')]!=!!_0x4f7e8b[_0x4a7e('0x54')]?-0x1==_0x3661f0[_0x4a7e('0x5c')]||0x0==_0x3661f0[_0x4a7e('0x5c')]?_0x3661f0[_0x4a7e('0x54')]?-0x1:0x1:_0x3661f0[_0x4a7e('0x54')]?0x1:-0x1:_0x3661f0[_0x4a7e('0xe9')]-_0x4f7e8b[_0x4a7e('0xe9')]),{'commonTape':_0xe0c74f,'iEnd':_0x27583b,'jEnd':_0x361d11};function _0x5d7146(_0x22cf3f,_0x32e11c,_0x4592f7){let _0x8d3da7=-0x1,_0x599f0b=Number[_0x4a7e('0x123')],_0x34dfb6=!0x0;for(let _0x449ac6=_0x32e11c;_0x449ac6<_0x4592f7;_0x449ac6++)if(_0x40602e[_0x4a7e('0xfc')](_0x22cf3f[_0x449ac6]['item'])||(_0x34dfb6=!0x1),_0x22cf3f[_0x449ac6][_0x4a7e('0x122')][_0x4a7e('0x62')]<_0x32e11c&&(_0x8d3da7=_0x449ac6),_0x22cf3f[_0x449ac6][_0x4a7e('0x122')][_0x4a7e('0xbc')]>=_0x4592f7){_0x599f0b=_0x449ac6;break;}_0x34dfb6&&(_0x8d3da7=_0x4592f7-0x1);for(let _0x476765=_0x32e11c;_0x476765<_0x4592f7;_0x476765++)_0x22cf3f[_0x476765][_0x4a7e('0x5c')]=_0x476765<=_0x8d3da7?-0x1:_0x476765<_0x599f0b?0x0:0x1,_0x22cf3f[_0x476765][_0x4a7e('0xe9')]=_0x476765;let _0x42b4a4=0x0;for(let _0x3664ff=_0x32e11c;_0x3664ff<=_0x8d3da7;_0x3664ff++)0x0==_0x22cf3f[_0x3664ff][_0x4a7e('0xae')]?_0x22cf3f[_0x3664ff][_0x4a7e('0x101')]=_0x42b4a4:(_0x42b4a4++,_0x22cf3f[_0x3664ff][_0x4a7e('0x101')]=_0x42b4a4,_0x42b4a4++);for(let _0x4cd342=_0x32e11c;_0x4cd342<_0x4592f7;_0x4cd342++)0x0==_0x22cf3f[_0x4cd342][_0x4a7e('0x5c')]&&(_0x22cf3f[_0x4cd342][_0x4a7e('0x101')]=_0x42b4a4);_0x42b4a4=0x0;for(let _0x5a56bd=_0x4592f7-0x1;_0x5a56bd>=_0x599f0b;_0x5a56bd--)0x0==_0x22cf3f[_0x5a56bd][_0x4a7e('0xae')]?_0x22cf3f[_0x5a56bd][_0x4a7e('0x101')]=_0x42b4a4:(_0x42b4a4--,_0x22cf3f[_0x5a56bd][_0x4a7e('0x101')]=_0x42b4a4,_0x42b4a4--);}}[_0x4a7e('0x3')](_0x2de3fc){const _0xdbbdf0=new Map(),_0x2e0cfa=this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xd8')];for(let _0x419598=0x1;_0x419598<_0x2de3fc[_0x4a7e('0xb2')];_0x419598++){let _0x704479,_0x1083fc,_0x2201af;const _0x48057f=_0x2de3fc[_0x419598],_0x5841b8=_0x2de3fc[_0x419598-0x1];if(_0x4a7e('0x41')==_0x48057f[_0x4a7e('0xf6')])continue;if(_0x48057f[_0x4a7e('0xf6')]!=_0x5841b8['type'])continue;if(!_0x2e0cfa[_0x4a7e('0x22')](_0x5841b8[_0x4a7e('0x122')])||_0x2e0cfa['isLimit'](_0x5841b8[_0x4a7e('0x122')]))continue;if(!_0x2e0cfa['isBlock'](_0x48057f['item'])||_0x2e0cfa['isLimit'](_0x48057f['item']))continue;if((_0x2de3fc[_0x419598][_0x4a7e('0x54')]||_0x2de3fc[_0x419598]['isAddSuggestion'])&&_0x2de3fc[_0x419598-0x1][_0x4a7e('0x8a')])_0x704479=_0x2de3fc[_0x419598],_0x1083fc=_0x2de3fc[_0x419598-0x1],_0x2201af=_0x419598-0x1;else{if(!_0x2de3fc[_0x419598][_0x4a7e('0x8a')]||!_0x2de3fc[_0x419598-0x1][_0x4a7e('0x54')]&&!_0x2de3fc[_0x419598-0x1][_0x4a7e('0x7c')])continue;_0x704479=_0x2de3fc[_0x419598-0x1],_0x1083fc=_0x2de3fc[_0x419598],_0x2201af=_0x419598;}const _0x590b83=_0x704479['level']==_0x1083fc[_0x4a7e('0x101')],_0x31d608=Math[_0x4a7e('0x24')](_0x704479['level'])<Math[_0x4a7e('0x24')](_0x1083fc[_0x4a7e('0x101')])&&0x0==_0x1083fc['distance'];(_0x590b83||_0x31d608)&&(_0xdbbdf0[_0x4a7e('0x38')](_0x1083fc['id'],_0x704479['id']),_0x2de3fc['splice'](_0x2201af,0x1),_0x419598--,_0x704479[_0x4a7e('0x54')]=!0x1);}for(let _0x2a60b9=0x0;_0x2a60b9<_0x2de3fc[_0x4a7e('0xb2')];_0x2a60b9++)_0xdbbdf0[_0x4a7e('0x16')](_0x2de3fc[_0x2a60b9][_0x4a7e('0x2f')])&&(_0x2de3fc[_0x2a60b9][_0x4a7e('0x2f')]=_0xdbbdf0['get'](_0x2de3fc[_0x2a60b9]['pairId']));}['_removeMissingPairs'](_0x1ce4cf){const _0x3ae2f2=new Set(_0x1ce4cf[_0x4a7e('0x47')](_0x56fbb8=>_0x56fbb8['id']));for(let _0x3ee696=0x0;_0x3ee696<_0x1ce4cf[_0x4a7e('0xb2')];_0x3ee696++)_0x3ae2f2['has'](_0x1ce4cf[_0x3ee696][_0x4a7e('0x2f')])||0x0==_0x1ce4cf[_0x3ee696][_0x4a7e('0xae')]||(_0x1ce4cf[_0x3ee696][_0x4a7e('0xc6')]=!0x0);return _0x1ce4cf[_0x4a7e('0xb7')](_0x42d191=>!_0x42d191[_0x4a7e('0xc6')]);}['_markMismatchedRemovedTags'](_0x5d1f65){const _0x2a9b62=new Set();for(let _0x956c81=0x0;_0x956c81<_0x5d1f65[_0x4a7e('0xb2')];_0x956c81++){if(_0x2a9b62[_0x4a7e('0x16')](_0x5d1f65[_0x956c81]['id'])&&_0x5d1f65[_0x956c81][_0x4a7e('0x8a')]&&(_0x5d1f65[_0x956c81][_0x4a7e('0xc6')]=!0x0),_0x5d1f65[_0x956c81]['isIncorrect'])continue;if(0x0==_0x5d1f65[_0x956c81][_0x4a7e('0xae')])continue;if(_0x4a7e('0x7')!=_0x5d1f65[_0x956c81][_0x4a7e('0xf6')])continue;if(null==_0x5d1f65[_0x956c81][_0x4a7e('0x2f')])continue;let _0x17c4b8=_0x956c81+0x1,_0x6e7cd1=0x0;for(;_0x5d1f65[_0x17c4b8]['id']!=_0x5d1f65[_0x956c81][_0x4a7e('0x2f')];)'elementStart'==_0x5d1f65[_0x17c4b8][_0x4a7e('0xf6')]?_0x6e7cd1++:_0x4a7e('0x10b')==_0x5d1f65[_0x17c4b8][_0x4a7e('0xf6')]&&_0x6e7cd1--,_0x17c4b8++;if(0x0!=_0x6e7cd1){if(_0x5d1f65[_0x956c81][_0x4a7e('0x8a')])_0x5d1f65[_0x956c81][_0x4a7e('0xc6')]=!0x0;else for(;_0x17c4b8!=_0x956c81;)_0x5d1f65[_0x17c4b8][_0x4a7e('0x8a')]&&0x0!=_0x5d1f65[_0x17c4b8][_0x4a7e('0xae')]&&(_0x5d1f65[_0x17c4b8][_0x4a7e('0xc6')]=!0x0,_0x2a9b62[_0x4a7e('0x9b')](_0x5d1f65[_0x17c4b8][_0x4a7e('0x2f')])),_0x17c4b8--;}}return _0x5d1f65['filter'](_0x4efdba=>!_0x4efdba['isIncorrect']);}[_0x4a7e('0xef')](_0x3de24e){const _0x537b81=this[_0x4a7e('0xec')]['model'][_0x4a7e('0xd8')];for(let _0x33d0c1=0x0;_0x33d0c1<_0x3de24e['length'];_0x33d0c1++){if(!(_0x3de24e[_0x33d0c1]['isAdded']||_0x3de24e[_0x33d0c1][_0x4a7e('0x7c')]||_0x3de24e[_0x33d0c1][_0x4a7e('0x8a')]||_0x3de24e[_0x33d0c1][_0x4a7e('0x5e')]))continue;if(0x0==_0x3de24e[_0x33d0c1][_0x4a7e('0xae')])continue;const _0x48f4ba=_0x3de24e[_0x33d0c1][_0x4a7e('0x122')];_0x537b81['isBlock'](_0x48f4ba)||_0x537b81[_0x4a7e('0xdc')](_0x48f4ba)||(_0x3de24e[_0x33d0c1]['isAdded']&&delete _0x3de24e[_0x33d0c1][_0x4a7e('0x54')],_0x3de24e[_0x33d0c1][_0x4a7e('0x7c')]&&delete _0x3de24e[_0x33d0c1][_0x4a7e('0x7c')],_0x3de24e[_0x33d0c1][_0x4a7e('0x5e')]&&delete _0x3de24e[_0x33d0c1]['isRemoveSuggestion'],_0x3de24e[_0x33d0c1]['isRemoved']&&(_0x3de24e[_0x33d0c1][_0x4a7e('0xc6')]=!0x0));}return _0x3de24e[_0x4a7e('0xb7')](_0xec4835=>!_0xec4835['isIncorrect']);}[_0x4a7e('0x10d')](_0x407e1e,_0x4021bf,_0x1a6821){const _0x4d1393=new _0x2e212a(),_0x54b7c9=[],_0x49b34f=new Map(),_0x16e2dc=this[_0x4a7e('0xec')][_0x4a7e('0x93')],_0x2818bf=_0x16e2dc[_0x4a7e('0xd8')],_0x3460aa=[_0x4d1393],_0x1c5f47={},_0x243658={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1b5cd4=null;const _0x131025=[0x0];for(let _0x5247d3=0x0;_0x5247d3<_0x407e1e['length'];_0x5247d3++){let _0xa167,_0x8b7148;if('elementStart'===_0x407e1e[_0x5247d3][_0x4a7e('0xf6')]){_0xa167=_0x16e2dc['createPositionFromPath'](_0x4d1393,_0x131025);const _0x176656=new _0x4418da(_0x407e1e[_0x5247d3][_0x4a7e('0x122')]['name'],_0x407e1e[_0x5247d3]['item'][_0x4a7e('0x84')]());_0x3460aa[0x0][_0x4a7e('0x124')](_0x176656),_0x131025[_0x4a7e('0xdf')](0x0),_0x3460aa[_0x4a7e('0x32')](_0x176656),_0x8b7148=_0x16e2dc[_0x4a7e('0x31')](_0x4d1393,_0x131025),_0x1b5cd4=null;}else{if(_0x4a7e('0x10b')===_0x407e1e[_0x5247d3]['type'])_0x3460aa[_0x4a7e('0x82')](),_0xa167=_0x16e2dc['createPositionFromPath'](_0x4d1393,_0x131025),_0x131025[_0x4a7e('0xaa')](),_0x131025[_0x131025[_0x4a7e('0xb2')]-0x1]++,_0x8b7148=_0x16e2dc[_0x4a7e('0x31')](_0x4d1393,_0x131025),_0x1b5cd4=null;else{if(_0xa167=_0x16e2dc['createPositionFromPath'](_0x4d1393,_0x131025),_0x1b5cd4&&_0x5bcefb(_0x1b5cd4,_0x407e1e[_0x5247d3][_0x4a7e('0x122')]))_0x1b5cd4[_0x4a7e('0xac')]+=_0x407e1e[_0x5247d3][_0x4a7e('0x122')]['data'];else{const _0x270dab=new _0x205bbd(_0x407e1e[_0x5247d3]['item'][_0x4a7e('0x33')],_0x407e1e[_0x5247d3][_0x4a7e('0x122')][_0x4a7e('0x84')]());_0x3460aa[0x0][_0x4a7e('0x124')](_0x270dab),_0x1b5cd4=_0x270dab;}_0x131025[_0x131025[_0x4a7e('0xb2')]-0x1]+=_0x407e1e[_0x5247d3]['item'][_0x4a7e('0x37')],_0x8b7148=_0x16e2dc[_0x4a7e('0x31')](_0x4d1393,_0x131025);}}for(const _0x22dad5 of _0x407e1e[_0x5247d3][_0x4a7e('0x44')])_0x49b34f[_0x4a7e('0x38')](_0x22dad5,{'start':_0xa167,'end':null});_0x5d9b98(_0x4a7e('0x5e'),_0x5247d3,_0xa167,_0x8b7148),_0x5d9b98(_0x4a7e('0x7c'),_0x5247d3,_0xa167,_0x8b7148),_0x5d9b98(_0x4a7e('0x8a'),_0x5247d3,_0xa167,_0x8b7148),_0x5d9b98(_0x4a7e('0x54'),_0x5247d3,_0xa167,_0x8b7148);for(const _0x1932c4 of _0x407e1e[_0x5247d3]['markersEnd']){_0x49b34f[_0x4a7e('0xf0')](_0x1932c4)['end']=_0x8b7148;}}for(const [_0x5db0ec,_0x551879]of _0x49b34f){const _0x8f3711=this['editor'][_0x4a7e('0x93')][_0x4a7e('0x4b')](_0x551879[_0x4a7e('0x1c')],_0x551879['end']);_0x4d1393['markers'][_0x4a7e('0x38')](_0x5db0ec,_0x8f3711);}return _0x54b7c9[_0x4a7e('0xd4')]((_0x1ed0ad,_0x386957)=>{const _0x17984d=_0x4d1393['markers'][_0x4a7e('0xf0')](_0x4a7e('0xbe')+_0x1ed0ad['id']),_0x24ed26=_0x4d1393['markers'][_0x4a7e('0xf0')]('revision:'+_0x386957['id']);return _0x17984d[_0x4a7e('0x1c')]['isBefore'](_0x24ed26[_0x4a7e('0x1c')])?-0x1:_0x17984d['start']['isAfter'](_0x24ed26[_0x4a7e('0x1c')])?0x1:_0x17984d[_0x4a7e('0x83')][_0x4a7e('0x3b')](_0x24ed26['end'])?-0x1:_0x17984d[_0x4a7e('0x83')][_0x4a7e('0x80')](_0x24ed26[_0x4a7e('0x83')])?0x1:_0x4a7e('0x9b')===_0x1ed0ad[_0x4a7e('0xf6')]?-0x1:0x1;}),{'root':_0x4d1393,'changes':_0x54b7c9};function _0x5d9b98(_0xcf7876,_0x42d01c,_0x3884c6,_0x5cff0e){const _0x5c597d=!!_0x407e1e[_0x42d01c][_0xcf7876],_0x2688be=_0x5c597d?_0x407e1e[_0x42d01c][_0xcf7876]['userId']:null,_0x365e06=_0x42d01c===_0x407e1e[_0x4a7e('0xb2')]-0x1,_0x5dd46a=_0x243658[_0xcf7876][0x0],_0x275587=_0x2818bf[_0x4a7e('0xc9')](_0x407e1e[_0x42d01c]['item']);!_0x1c5f47[_0xcf7876]&&_0x5c597d?_0x1c5f47[_0xcf7876]={'start':_0x3884c6,'tapeItem':_0x407e1e[_0x42d01c],'userId':_0x2688be,'type':_0xcf7876}:_0x1c5f47[_0xcf7876]&&!_0x5c597d?(_0x1c5f47[_0xcf7876]['end']=_0x3884c6,_0x22cb75(_0x1c5f47[_0xcf7876]),_0x1c5f47[_0xcf7876]=null):_0x1c5f47[_0xcf7876]&&_0x5c597d&&_0x1c5f47[_0xcf7876][_0x4a7e('0xcc')]!==_0x2688be&&(_0x1c5f47[_0xcf7876][_0x4a7e('0x83')]=_0x3884c6,_0x5dd46a&&_0x5dd46a[_0x4a7e('0xcc')]===_0x1c5f47[_0xcf7876][_0x4a7e('0xcc')]||_0x22cb75(_0x1c5f47[_0xcf7876]),_0x1c5f47[_0xcf7876]={'start':_0x3884c6,'tapeItem':_0x407e1e[_0x42d01c],'userId':_0x2688be,'type':_0xcf7876}),_0x1c5f47[_0xcf7876]&&_0x275587&&(_0x4a7e('0x7')!==_0x407e1e[_0x42d01c][_0x4a7e('0xf6')]||_0x5dd46a&&_0x5dd46a[_0x4a7e('0xcc')]===_0x2688be||_0x243658[_0xcf7876]['unshift']({'userId':_0x2688be,'object':_0x407e1e[_0x42d01c][_0x4a7e('0x122')],'change':_0x1c5f47[_0xcf7876]}),'elementEnd'===_0x407e1e[_0x42d01c][_0x4a7e('0xf6')]&&_0x5dd46a&&_0x5dd46a['object']===_0x407e1e[_0x42d01c]['item']&&(_0x243658[_0xcf7876][_0x4a7e('0x82')](),_0x1c5f47[_0xcf7876]=_0x5dd46a[_0x4a7e('0xcf')])),_0x1c5f47[_0xcf7876]&&_0x365e06&&(_0x1c5f47[_0xcf7876]['end']=_0x5cff0e,_0x22cb75(_0x1c5f47[_0xcf7876]),_0x1c5f47[_0xcf7876]=null);}function _0x22cb75({start:_0x3d0cd3,end:_0x188482,tapeItem:_0x3b2121,userId:_0x24b43c,type:_0xd4a157}){const _0x34e0f6=_0x3b2121['item'],_0x519e21=_0x16e2dc[_0x4a7e('0xd8')][_0x4a7e('0x22')](_0x34e0f6)&&!_0x16e2dc[_0x4a7e('0xd8')][_0x4a7e('0xdc')](_0x34e0f6),_0x286d6c=_0x3d0cd3[_0x4a7e('0x29')]==_0x188482[_0x4a7e('0xd6')]&&_0x188482[_0x4a7e('0x17')];if(_0x519e21&&_0x286d6c)return;const _0xac30dc=_0x16e2dc['createRange'](_0x3d0cd3,_0x188482),_0x23602d=_0x4021bf[_0x4a7e('0xf0')](_0x24b43c),_0x5972b2=new _0x3f5468({'author':_0x23602d,'type':'isAdded'==_0xd4a157||_0x4a7e('0x7c')==_0xd4a157?_0x4a7e('0x9b'):_0x4a7e('0x19'),'data':{'isSuggestion':'isAddSuggestion'==_0xd4a157||'isRemoveSuggestion'==_0xd4a157},'createdAt':new Date(),'rootName':_0x1a6821});_0x54b7c9[_0x4a7e('0xdf')](_0x5972b2),_0x4d1393[_0x4a7e('0x7a')][_0x4a7e('0x38')]('revision:'+_0x5972b2['id'],_0xac30dc);}function _0x5bcefb(_0x1b4877,_0xc02320){const _0x49cc98=_0x1b4877[_0x4a7e('0x84')](),_0x411c75=_0xc02320[_0x4a7e('0x84')]();for(const _0x5cce06 of _0x49cc98){if(_0x5cce06[0x1]!==_0xc02320[_0x4a7e('0x66')](_0x5cce06[0x0]))return!0x1;_0x411c75[_0x4a7e('0x34')]();}return _0x411c75[_0x4a7e('0x34')]()[_0x4a7e('0xcb')];}}[_0x4a7e('0x79')](){this[_0x4a7e('0xec')][_0x4a7e('0x8')]['for'](_0x4a7e('0x8e'))['dataToMarker']({'view':'revision'}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x65'))['markerToHighlight']({'model':_0x4a7e('0x12'),'view':_0x2576ba=>{const _0x6b3f33=_0x2576ba['markerName']['split'](':')[0x1],_0x278adc=this[_0x4a7e('0x13')](_0x6b3f33);if(!_0x278adc)return null;const _0x85b4ae=_0x4a7e('0x9b')==_0x278adc[_0x4a7e('0xf6')]?_0x4a7e('0x25'):_0x4a7e('0x104'),_0x20bbda=[_0x4a7e('0x9'),_0x4a7e('0x75')+_0x85b4ae];return _0x278adc['data'][_0x4a7e('0x69')]&&_0x20bbda[_0x4a7e('0xdf')](_0x4a7e('0x75')+_0x85b4ae+'-new'),this['activeChange']==_0x278adc&&_0x20bbda['push'](_0x4a7e('0x5d')),{'classes':_0x20bbda,'attributes':{'data-change-id':_0x6b3f33}};}}),this[_0x4a7e('0xec')]['conversion']['for']('upcast')[_0x4a7e('0x9b')](_0x30e15f=>{_0x30e15f['on'](_0x4a7e('0xe1'),(_0x1fec60,_0x2826da,_0x55e17e)=>{const _0x13873f=_0x2826da[_0x4a7e('0x125')][_0x4a7e('0x18')](0x0);if(!_0x13873f||!_0x13873f['is'](_0x4a7e('0xb3'),'code'))return;if(!_0x55e17e[_0x4a7e('0xd3')]['consume'](_0x13873f,{'attributes':[_0x4a7e('0x1d'),_0x4a7e('0xc2')]}))return;const _0x3b68ab=_0x2826da[_0x4a7e('0x6e')][_0x4a7e('0x1c')]['nodeAfter'];_0x55e17e[_0x4a7e('0x2d')]['setAttribute'](_0x4a7e('0x1d'),_0x13873f['getAttribute'](_0x4a7e('0x1d')),_0x3b68ab),_0x55e17e[_0x4a7e('0x2d')]['setAttribute'](_0x4a7e('0xc2'),_0x13873f['getAttribute'](_0x4a7e('0xc2')),_0x3b68ab);},{'priority':_0x4a7e('0x10a')});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x8e'))['add'](_0x3ce0ca=>{_0x3ce0ca['on'](_0x4a7e('0xb3'),(_0x210128,_0x1cd65a,_0x4dd1b3)=>{if(!_0x4dd1b3[_0x4a7e('0xd3')][_0x4a7e('0xff')](_0x1cd65a[_0x4a7e('0x125')],{'attributes':[_0x4a7e('0x1d'),_0x4a7e('0xc2')]}))return;if(_0x1cd65a['modelRange'][_0x4a7e('0x4')])return;const _0x594989=_0x1cd65a[_0x4a7e('0x6e')][_0x4a7e('0x1c')][_0x4a7e('0x29')];_0x594989[_0x4a7e('0x61')]('vid_start')||_0x594989[_0x4a7e('0x61')](_0x4a7e('0x27'))||(_0x4dd1b3[_0x4a7e('0x2d')][_0x4a7e('0x8d')](_0x4a7e('0x1d'),_0x1cd65a[_0x4a7e('0x125')][_0x4a7e('0x66')]('vid_start'),_0x594989),_0x4dd1b3['writer'][_0x4a7e('0x8d')](_0x4a7e('0xc2'),_0x1cd65a['viewItem'][_0x4a7e('0x66')](_0x4a7e('0xc2')),_0x594989));},{'priority':'low'});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')]('upcast')[_0x4a7e('0xf4')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x4a7e('0x27'),'value':_0x2985d6=>_0x2985d6[_0x4a7e('0x66')](_0x4a7e('0x27'))}}),this['editor'][_0x4a7e('0x93')][_0x4a7e('0xd8')]['on'](_0x4a7e('0x1a'),(_0x10dab9,[,_0xdcfa5f])=>{[_0x4a7e('0x1d'),'vid_end','vid']['includes'](_0xdcfa5f)&&(_0x10dab9['return']=!0x0,_0x10dab9[_0x4a7e('0x10')]());},{'priority':_0x4a7e('0x95')}),this[_0x4a7e('0xec')]['conversion']['for'](_0x4a7e('0x2a'))[_0x4a7e('0x9b')](_0x2f8c9b=>{_0x2f8c9b['on']('attribute:vid',(_0x2eae64,_0x43a32a,_0x206f12)=>{if('\x20'!=_0x43a32a[_0x4a7e('0x122')][_0x4a7e('0x33')]||_0x43a32a[_0x4a7e('0x122')][_0x4a7e('0xd6')]['maxOffset']>0x1)return;if(!_0x206f12['consumable'][_0x4a7e('0xff')](_0x43a32a[_0x4a7e('0x122')],_0x2eae64[_0x4a7e('0xf1')]))return;const _0x13719a=_0x206f12[_0x4a7e('0x2d')],_0xb5d3dc=_0x206f12[_0x4a7e('0x6')][_0x4a7e('0xfe')](_0x43a32a[_0x4a7e('0x49')]);_0x13719a['wrap'](_0xb5d3dc,_0x13719a['createAttributeElement'](_0x4a7e('0x1b')));});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')]('dataDowncast')[_0x4a7e('0xed')]({'model':'revision'}),this[_0x4a7e('0xec')]['editing']['downcastDispatcher']['on'](_0x4a7e('0xa0'),function(_0xa22168){const _0x43bb2c=_0xa22168[_0x4a7e('0x116')][_0x4a7e('0xf0')](_0x4a7e('0xb6'));return(_0x8da2e9,_0x1cc7cb,_0x11c9e1)=>{const _0x5ba03b=_0x1cc7cb[_0x4a7e('0xa8')]['split'](':')[0x1],_0x55d453=_0x43bb2c['_getChangeFromId'](_0x5ba03b);if(!_0x55d453)return null;const _0x5c318c=_0x4a7e('0x9b')==_0x55d453[_0x4a7e('0xf6')]?'split':_0x4a7e('0x10c');if(!_0x11c9e1[_0x4a7e('0xd3')][_0x4a7e('0x108')](_0x1cc7cb[_0x4a7e('0x78')],_0x8da2e9['name']))return;const _0x4e452f=_0x1cc7cb[_0x4a7e('0x78')][_0x4a7e('0xaf')](),_0x564346=_0x1cc7cb[_0x4a7e('0x78')]['start'],_0x502911=_0xa22168[_0x4a7e('0x93')][_0x4a7e('0xd8')];let _0x540df2=null,_0x45fb7c=null,_0x1e015b=!0x1,_0x22b876=!0x1;for(const _0x2e12c9 of _0x4e452f){const _0x2483df=_0x2e12c9[_0x4a7e('0x122')];_0x1e015b=_0x1e015b||_0x502911[_0x4a7e('0xe6')](_0x2483df);const _0x4d0876=_0x11c9e1[_0x4a7e('0x6')][_0x4a7e('0xf3')](_0x2483df);if(_0x4d0876&&_0x4d0876['getCustomProperty'](_0x4a7e('0x64')))return;'elementEnd'==_0x2e12c9[_0x4a7e('0xf6')]&&(_0x502911[_0x4a7e('0x22')](_0x2483df)&&!_0x502911[_0x4a7e('0xdc')](_0x2483df)&&(_0x2483df[_0x4a7e('0x114')]||_0x564346[_0x4a7e('0x4d')]?_0x540df2&&_0x540df2[_0x4a7e('0xd6')]==_0x2483df||(_0x540df2=_0x2483df,_0x36cb34(_0x2e12c9['previousPosition']),_0x22b876=!0x0):_0x45fb7c=_0x45fb7c||_0x2e12c9['previousPosition']));}function _0x36cb34(_0x407bbb){const _0x17453f=_0x11c9e1['writer'][_0x4a7e('0xb')]('span',{'class':'ck-suggestion-marker-'+_0x5c318c}),_0x43dd38=_0x11c9e1[_0x4a7e('0x6')][_0x4a7e('0x7e')](_0x407bbb);_0x55d453['data']['isSuggestion']&&_0x11c9e1['writer'][_0x4a7e('0x7f')]('ck-suggestion-marker-'+_0x5c318c+'-new',_0x17453f),_0x43bb2c[_0x4a7e('0x91')]==_0x55d453&&_0x11c9e1[_0x4a7e('0x2d')][_0x4a7e('0x7f')](_0x4a7e('0x5d'),_0x17453f),_0x11c9e1[_0x4a7e('0x2d')][_0x4a7e('0x99')](_0x43dd38,_0x17453f),_0x11c9e1[_0x4a7e('0x6')][_0x4a7e('0xf7')](_0x17453f,_0x1cc7cb[_0x4a7e('0xa8')]);}_0x1e015b||_0x22b876||!_0x45fb7c||_0x36cb34(_0x45fb7c);};}(this[_0x4a7e('0xec')]),{'priority':_0x4a7e('0xa5')}),this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0xdb'),(_0x4f5e30,_0x1470c7,_0x54c297)=>{const _0x2581b6=_0x54c297[_0x4a7e('0x6')]['markerNameToElements'](_0x1470c7[_0x4a7e('0xa8')]);if(_0x2581b6)for(const _0x535628 of _0x2581b6)(_0x535628[_0x4a7e('0x86')]('ck-suggestion-marker-split')||_0x535628[_0x4a7e('0x86')]('ck-suggestion-marker-merge'))&&(_0x54c297[_0x4a7e('0x6')][_0x4a7e('0x113')](_0x535628,_0x1470c7['markerName']),_0x54c297['writer'][_0x4a7e('0x19')](_0x535628));},{'priority':_0x4a7e('0xa5')}),this[_0x4a7e('0xec')][_0x4a7e('0x88')]['downcastDispatcher']['on']('addMarker:revision',(_0x5265dd,_0x4fe22b,_0xa49fb1)=>{const _0x117e27=_0x4fe22b['markerName'][_0x4a7e('0xea')](':')[0x1],_0x2da2a8=this[_0x4a7e('0x13')](_0x117e27);if(!_0x2da2a8)return null;const _0x2837c4=_0x4a7e('0x9b')==_0x2da2a8['type']?_0x4a7e('0xea'):'merge';if(_0xa49fb1[_0x4a7e('0xd3')][_0x4a7e('0x108')](_0x4fe22b[_0x4a7e('0x78')],_0x5265dd[_0x4a7e('0xf1')]))for(const _0x4404ce of _0x4fe22b['markerRange']['getItems']()){if(!_0x4404ce['is'](_0x4a7e('0xb3'),_0x4a7e('0xab')))continue;const _0x117949=_0xa49fb1['writer']['createUIElement']('span',{'class':_0x4a7e('0x75')+_0x2837c4}),_0x2bde53=_0xa49fb1[_0x4a7e('0x6')][_0x4a7e('0x7e')](this[_0x4a7e('0xec')]['model'][_0x4a7e('0x39')](_0x4404ce));_0x2da2a8['data'][_0x4a7e('0x69')]&&_0xa49fb1[_0x4a7e('0x2d')][_0x4a7e('0x7f')]('ck-suggestion-marker-'+_0x2837c4+_0x4a7e('0x119'),_0x117949),this[_0x4a7e('0x91')]==_0x2da2a8&&_0xa49fb1[_0x4a7e('0x2d')][_0x4a7e('0x7f')](_0x4a7e('0x5d'),_0x117949),_0xa49fb1['writer'][_0x4a7e('0x99')](_0x2bde53,_0x117949),_0xa49fb1['mapper'][_0x4a7e('0xf7')](_0x117949,_0x4fe22b[_0x4a7e('0xa8')]);}},{'priority':'high'}),this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x60')]['on'](_0x4a7e('0xcf'),()=>{this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0xcf')](_0xcdfb09=>{for(const _0x6db15d of this[_0x4a7e('0xec')][_0x4a7e('0x93')]['document'][_0x4a7e('0xd0')]()){const _0x5ee878=this[_0x4a7e('0xec')][_0x4a7e('0x93')]['document'][_0x4a7e('0xee')](_0x6db15d),_0x530c87=this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')][_0x4a7e('0x60')]['getRoot'](_0x6db15d);if(_0x530c87){const _0x36f808=_0x5ee878['getAttribute'](_0x4a7e('0x115'));if(_0xcdfb09['removeAttribute'](_0x4a7e('0xd2'),_0x530c87),_0xcdfb09[_0x4a7e('0x1f')](_0x4a7e('0xa1'),_0x530c87),_0xcdfb09[_0x4a7e('0x1f')](_0x4a7e('0xfa'),_0x530c87),_0xcdfb09['removeClass'](_0x4a7e('0x11e'),_0x530c87),_0x36f808){const _0x2d5eb4=this[_0x4a7e('0x13')](_0x36f808);if(!_0x2d5eb4)return null;_0xcdfb09['setAttribute'](_0x4a7e('0xd2'),_0x36f808,_0x530c87),_0xcdfb09[_0x4a7e('0x7f')](_0x4a7e('0x121')+_0x2d5eb4[_0x4a7e('0xf6')],_0x530c87),this['activeChange']==_0x2d5eb4&&_0xcdfb09[_0x4a7e('0x7f')](_0x4a7e('0x11e'),_0x530c87);}}}});}),this[_0x4a7e('0xec')][_0x4a7e('0x8')]['for'](_0x4a7e('0x8e'))[_0x4a7e('0xad')]({'view':_0x4a7e('0xa7'),'model':_0x59869e=>_0x4a7e('0xbb')+_0x59869e,'converterPriority':_0x4a7e('0x95')}),this['editor'][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x8e'))['dataToMarker']({'view':_0x4a7e('0xfb'),'model':_0x463d67=>_0x4a7e('0xc0')+_0x463d67,'converterPriority':_0x4a7e('0x95')}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x2a'))[_0x4a7e('0xed')]({'model':_0x4a7e('0xd7'),'view':_0x385cba=>({'name':_0x4a7e('0xc4')+_0x385cba,'group':_0x4a7e('0xd7')}),'converterPriority':_0x4a7e('0x95')}),this[_0x4a7e('0xec')][_0x4a7e('0x8')][_0x4a7e('0x4e')](_0x4a7e('0x65'))[_0x4a7e('0x28')]({'model':_0x4a7e('0xd7'),'view':_0x3825e0=>{const _0x190705=_0x3825e0[_0x4a7e('0xa8')][_0x4a7e('0xea')](':')[0x1];return _0x4a7e('0x25')!=_0x190705&&_0x4a7e('0x104')!=_0x190705?null:{'classes':[_0x4a7e('0xe7'),_0x4a7e('0xd')+_0x190705]};}}),this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0x92'),et(this[_0x4a7e('0xec')],_0x4a7e('0x10c')),{'priority':_0x4a7e('0xa5')}),this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0x7d'),et(this[_0x4a7e('0xec')],_0x4a7e('0xea')),{'priority':_0x4a7e('0xa5')}),this['editor'][_0x4a7e('0x88')][_0x4a7e('0x76')]['on'](_0x4a7e('0x68'),(_0x20fef8,_0x1143c1,_0x20d1b0)=>{const _0x25abbb=_0x20d1b0[_0x4a7e('0x6')]['markerNameToElements'](_0x1143c1[_0x4a7e('0xa8')]);if(_0x25abbb)for(const _0x1482ab of _0x25abbb)_0x1482ab['is'](_0x4a7e('0x109'))&&(_0x20d1b0['mapper']['unbindElementFromMarkerName'](_0x1482ab,_0x1143c1['markerName']),_0x20d1b0[_0x4a7e('0x2d')]['remove'](_0x1482ab));},{'priority':_0x4a7e('0xa5')});}[_0x4a7e('0x13')](_0x5853e9){return this[_0x4a7e('0x98')][_0x4a7e('0xf0')](_0x5853e9);}[_0x4a7e('0xbd')](_0x1fc7c4){return this[_0x4a7e('0xd9')]&&this['_changeView'][_0x4a7e('0x6b')](),this[_0x4a7e('0xd9')]=new _0x1bd20b(this[_0x4a7e('0xec')][_0x4a7e('0xba')],_0x1fc7c4),this[_0x4a7e('0xd9')];}[_0x4a7e('0xc1')](){this[_0x4a7e('0xec')]['model'][_0x4a7e('0x60')][_0x4a7e('0xc')][_0x4a7e('0x59')](_0x4a7e('0x12')),this['on'](_0x4a7e('0xe3'),(_0x13a259,_0x4e8586,_0x1406a8,_0x592d17)=>{_0x592d17&&this[_0x4a7e('0xda')][_0x4a7e('0x19')](_0x592d17),_0x1406a8&&(this[_0x4a7e('0xda')][_0x4a7e('0x9b')]({'view':_0x1406a8,'stackId':_0x4a7e('0x85'),'position':{'target':()=>{const _0x414a68=this[_0x4a7e('0xec')][_0x4a7e('0x88')],_0x6966b6=this[_0x4a7e('0x13')](_0x1406a8[_0x4a7e('0x2b')]);let _0x45bbec;if(_0x6966b6[_0x4a7e('0x33')]['isOnRoot']){const _0x2ba8ee=_0x414a68['view']['getDomRoot'](_0x6966b6[_0x4a7e('0x8b')]);_0x45bbec=Array[_0x4a7e('0x30')](_0x2ba8ee[_0x4a7e('0x9f')]());}else{const _0x3392b2=this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x7a')]['get'](_0x4a7e('0xbe')+_0x1406a8['changeId']);_0x45bbec=Array[_0x4a7e('0x30')](_0x414a68['mapper'][_0x4a7e('0xa4')](_0x3392b2[_0x4a7e('0xf1')]))[_0x4a7e('0x47')](_0x1233c7=>_0x414a68[_0x4a7e('0xc8')][_0x4a7e('0xca')][_0x4a7e('0x20')](_0x1233c7))[_0x4a7e('0x47')](_0x39f17e=>Array[_0x4a7e('0x30')](_0x39f17e[_0x4a7e('0x9f')]()))[_0x4a7e('0x81')]();}if(!this[_0x4a7e('0x58')])return _0x45bbec[0x0];return _0x45bbec[_0x4a7e('0x11c')](_0x596d6a=>_0x596d6a[_0x4a7e('0x40')]-0x3<=this[_0x4a7e('0x58')]['y']&&_0x596d6a['bottom']+0x3>=this[_0x4a7e('0x58')]['y']&&_0x596d6a[_0x4a7e('0x6d')]-0x3<=this[_0x4a7e('0x58')]['x']&&_0x596d6a['right']+0x3>=this['_activeViewTarget']['x'])||_0x45bbec[0x0];}}}),this[_0x4a7e('0xda')][_0x4a7e('0xeb')](_0x4a7e('0x85')));}),this['on'](_0x4a7e('0xc3'),(_0x175d91,_0xe893,_0x1e7e11,_0x35b29a)=>{this[_0x4a7e('0xde')]=_0x1e7e11?this[_0x4a7e('0xbd')](_0x1e7e11):null,this['editor'][_0x4a7e('0x93')]['change'](()=>{const _0x1fd6bb=this[_0x4a7e('0xec')]['editing'];_0x35b29a&&(_0x35b29a['data'][_0x4a7e('0x5f')]?_0x1fd6bb[_0x4a7e('0xc8')][_0x4a7e('0xcf')](_0x438d66=>{_0x438d66[_0x4a7e('0x1f')](_0x4a7e('0x11e'),_0x1fd6bb['view'][_0x4a7e('0x60')]['getRoot'](_0x35b29a[_0x4a7e('0x8b')]));}):_0x1fd6bb[_0x4a7e('0x3e')](_0x4a7e('0xbe')+_0x35b29a['id'])),_0x1e7e11&&(_0x1e7e11[_0x4a7e('0x33')][_0x4a7e('0x5f')]?_0x1fd6bb['view']['change'](_0x435644=>{_0x435644[_0x4a7e('0x7f')](_0x4a7e('0x11e'),_0x1fd6bb[_0x4a7e('0xc8')][_0x4a7e('0x60')][_0x4a7e('0xee')](_0x1e7e11[_0x4a7e('0x8b')]));}):_0x1fd6bb['reconvertMarker'](_0x4a7e('0xbe')+_0x1e7e11['id']));});}),this[_0x4a7e('0x100')](this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')]['document'],_0x4a7e('0x102'),(_0x35eced,_0x35e868)=>{if(this[_0x4a7e('0x91')])return;const _0x42cc20=this[_0x4a7e('0x26')](_0x35e868[_0x4a7e('0x3f')]),_0xf76551=this[_0x4a7e('0x98')][_0x4a7e('0xf0')](_0x42cc20);_0xf76551?(this[_0x4a7e('0x58')]={'x':_0x35e868['domEvent']['x'],'y':_0x35e868[_0x4a7e('0xce')]['y']},this['activeView']=this['_getViewForChange'](_0xf76551)):(this[_0x4a7e('0x58')]=null,this[_0x4a7e('0xde')]=null);}),this['listenTo'](this[_0x4a7e('0xec')][_0x4a7e('0x88')][_0x4a7e('0xc8')]['document'],_0x4a7e('0x55'),(_0x10388a,_0x30cb75)=>{const _0x351973=this['_findChangeIdFromDomTarget'](_0x30cb75[_0x4a7e('0x3f')]),_0x2cc32d=this[_0x4a7e('0x98')][_0x4a7e('0xf0')](_0x351973);_0x2cc32d?(this[_0x4a7e('0x58')]={'x':_0x30cb75[_0x4a7e('0xce')]['x'],'y':_0x30cb75['domEvent']['y']},_0x2cc32d===this[_0x4a7e('0x91')]?this[_0x4a7e('0xda')][_0x4a7e('0x2')]():this[_0x4a7e('0x91')]=_0x2cc32d):(this[_0x4a7e('0x58')]=null,this[_0x4a7e('0x91')]=null);});}[_0x4a7e('0x26')](_0x36cc6e){do{const _0x12223e=_0x36cc6e[_0x4a7e('0x66')]('data-change-id');if(_0x12223e)return _0x12223e;_0x36cc6e=_0x36cc6e['parent'];}while(_0x36cc6e);return null;}[_0x4a7e('0x126')](){this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0xcf')](_0x19fe96=>{for(const _0x2310cb of this[_0x4a7e('0xec')][_0x4a7e('0x93')][_0x4a7e('0x7a')])_0x19fe96['removeMarker'](_0x2310cb);});}}function et(_0x3b922b,_0x313b29){return(_0x6d0df0,_0x451bba,_0x5c1e3a)=>{if(!_0x5c1e3a[_0x4a7e('0xd3')][_0x4a7e('0x108')](_0x451bba['markerRange'],_0x6d0df0[_0x4a7e('0xf1')]))return;const _0x5d75fe=_0x451bba[_0x4a7e('0x78')][_0x4a7e('0xaf')](),_0x3bcf4f=_0x451bba[_0x4a7e('0x78')]['start'],_0x2acac4=_0x3b922b[_0x4a7e('0x93')]['schema'];let _0xd1121e=null,_0x21ce75=null,_0x2d6761=!0x1,_0x3cae90=!0x1;for(const _0x2baa4d of _0x5d75fe){const _0xa10034=_0x2baa4d[_0x4a7e('0x122')];_0x2d6761=_0x2d6761||_0x2acac4[_0x4a7e('0xe6')](_0xa10034);const _0x4689e5=_0x5c1e3a['mapper'][_0x4a7e('0xf3')](_0xa10034);if(_0x4689e5&&_0x4689e5[_0x4a7e('0xf5')](_0x4a7e('0x64')))return;_0x4a7e('0x10b')==_0x2baa4d[_0x4a7e('0xf6')]&&(_0x2acac4[_0x4a7e('0x22')](_0xa10034)&&!_0x2acac4[_0x4a7e('0xdc')](_0xa10034)&&(_0xa10034[_0x4a7e('0x114')]||_0x3bcf4f[_0x4a7e('0x4d')]?_0xd1121e&&_0xd1121e[_0x4a7e('0xd6')]==_0xa10034||(_0xd1121e=_0xa10034,_0x5e597c(_0x2baa4d['previousPosition']),_0x3cae90=!0x0):_0x21ce75=_0x21ce75||_0x2baa4d['previousPosition']));}function _0x5e597c(_0x258e0c){const _0x163c5a=_0x5c1e3a[_0x4a7e('0x6')][_0x4a7e('0x7e')](_0x258e0c),_0x425251=_0x5c1e3a[_0x4a7e('0x2d')]['createUIElement']('span',{'class':_0x4a7e('0xd')+_0x313b29});_0x5c1e3a[_0x4a7e('0x2d')]['insert'](_0x163c5a,_0x425251),_0x5c1e3a[_0x4a7e('0x6')][_0x4a7e('0xf7')](_0x425251,_0x451bba[_0x4a7e('0xa8')]);}_0x2d6761||_0x3cae90||!_0x21ce75||_0x5e597c(_0x21ce75);};}export class RestoreRevisionCommand extends _0x4a4255{constructor(_0x430e37){super(_0x430e37);const _0x31575c=_0x430e37['plugins'][_0x4a7e('0xf0')](d);this[_0x4a7e('0x50')]=!0x1,this[_0x4a7e('0x100')](_0x31575c,'change:isReady',()=>this[_0x4a7e('0xb1')]()),this['listenTo'](_0x31575c,_0x4a7e('0x96'),()=>this[_0x4a7e('0xb1')]());}[_0x4a7e('0x67')](){const _0x405bc8=this['editor'],_0x2110ee=_0x405bc8[_0x4a7e('0x116')][_0x4a7e('0xf0')](d),_0x37961c=_0x2110ee[_0x4a7e('0xfd')]?_0x2110ee['diff'][_0x4a7e('0x2e')]:null;_0x405bc8[_0x4a7e('0x9d')]['get'](_0x4a7e('0x11b'))[_0x4a7e('0xf9')](_0x37961c);}[_0x4a7e('0xb1')](){const {isReady:_0x2f903a,isEnabled:_0x138310}=this[_0x4a7e('0xec')]['plugins'][_0x4a7e('0xf0')](d);this[_0x4a7e('0xa6')]=_0x2f903a&&_0x138310;}}export class ShowChangeCommand extends _0x4a4255{constructor(_0x5220bb,{direction:_0x4acc6}){super(_0x5220bb);const _0x2f3a05=_0x5220bb['plugins']['get'](d);this['affectsData']=!0x1,this[_0x4a7e('0x112')]='forward'===_0x4acc6?0x1:-0x1,this[_0x4a7e('0x100')](_0x2f3a05,_0x4a7e('0x11'),()=>this['refresh']()),this[_0x4a7e('0x100')](_0x2f3a05,'change:isEnabled',()=>this[_0x4a7e('0xb1')]()),this[_0x4a7e('0x100')](_0x2f3a05,_0x4a7e('0xc3'),()=>this[_0x4a7e('0xb1')]());}[_0x4a7e('0x67')](){const _0x2221bd=this['editor'],_0x1d9b5c=_0x2221bd[_0x4a7e('0x116')]['get'](d),{isNavigationMode:_0x44d605,currentChangeNumber:_0x69c449}=_0x1d9b5c;let _0x52ed6d;if(_0x1d9b5c[_0x4a7e('0x91')]=_0x44d605?_0x1d9b5c['diff'][_0x4a7e('0xa2')][_0x4a7e('0xf0')](_0x69c449+this['_step']):_0x1d9b5c[_0x4a7e('0x70')][_0x4a7e('0xa2')]['first'],_0x1d9b5c[_0x4a7e('0x91')][_0x4a7e('0x33')][_0x4a7e('0x5f')])_0x52ed6d=_0x2221bd['editing'][_0x4a7e('0xc8')][_0x4a7e('0x53')](_0x1d9b5c[_0x4a7e('0x91')][_0x4a7e('0x8b')]);else{const _0xc6b2e0=_0x2221bd[_0x4a7e('0x93')][_0x4a7e('0x7a')][_0x4a7e('0xf0')]('revision:'+_0x1d9b5c[_0x4a7e('0x91')]['id']);_0x52ed6d=_0x347b17(_0x2221bd['editing'],_0xc6b2e0);}_0x2aa636({'target':_0x52ed6d,'viewportOffset':0x28});}[_0x4a7e('0xb1')](){const {isNavigationMode:_0x49f9c4,currentChangeNumber:_0x20b62b,numberOfChanges:_0x3f79e3,isReady:_0x4b26ed,isEnabled:_0x48887b}=this[_0x4a7e('0xec')][_0x4a7e('0x116')][_0x4a7e('0xf0')](d);this[_0x4a7e('0xa6')]=!!(_0x48887b&&_0x4b26ed&&_0x3f79e3)&&(!_0x49f9c4||(0x1===this[_0x4a7e('0x112')]?_0x20b62b<_0x3f79e3-0x1:_0x20b62b>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x45b1=['map','class','isOpen','threeVerticalDots','source','action','listView','items','first','Restore\x20this\x20revision','bind','set','isReady','Show\x20more\x20items','execute','ck-revision-history-sidebar__revision__actions','_action','function','stopPropagation','button','locale','isActionsDropdownOpen','Name\x20this\x20revision','isEnabled','change:isActionsDropdownOpen','add','ck-on','panelPosition','find','name','model','extendTemplate'];(function(_0x8915af,_0x45b109){const _0x20fe9c=function(_0xcedd2e){while(--_0xcedd2e){_0x8915af['push'](_0x8915af['shift']());}};_0x20fe9c(++_0x45b109);}(_0x45b1,0x87));const _0x20fe=function(_0x8915af,_0x45b109){_0x8915af=_0x8915af-0x0;let _0x20fe9c=_0x45b1[_0x8915af];return _0x20fe9c;};import{Collection as _0x558d89}from'ckeditor5/src/utils';import{icons as _0x2345c7}from'ckeditor5/src/core';import{Model as _0x33034f,addListToDropdown as _0x404d37,createDropdown as _0x24ba99}from'ckeditor5/src/ui';import{getTranslation as _0x50ecc4}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x28159d,_0x33fd65){const _0x4fb1b9=_0x28159d['bindTemplate'],_0x5c888e=_0x28159d['locale'],_0x4a9d65=_0x24ba99(_0x5c888e);_0x4a9d65[_0x20fe('0x14')]='sw';const _0xab780e=function(_0x1466ab,_0x3e4672){const _0x1f66a2=function(_0xf66ee9,_0x595aea){const _0x4a7ae6=_0xf66ee9[_0x20fe('0xd')],_0x4db291={'Compare\x20against\x20selected':_0x50ecc4(_0x4a7ae6,'Compare\x20against\x20selected'),'Name\x20this\x20revision':_0x50ecc4(_0x4a7ae6,_0x20fe('0xf')),'Restore\x20this\x20revision':_0x50ecc4(_0x4a7ae6,_0x20fe('0x2'))};return _0x595aea[_0x20fe('0x19')](_0x3c1747=>{const _0x3801d3=_0x4db291[_0x3c1747[_0x20fe('0x16')]];return _0x3801d3&&_0x3801d3!==_0x3c1747[_0x20fe('0x16')]&&(_0x3c1747['name']=_0x3801d3),_0x3c1747;});}(_0x1466ab,_0x3e4672),_0x19999d=new _0x558d89();for(const _0x352615 of _0x1f66a2){const _0x38fe65={'type':_0x20fe('0xc'),'model':new _0x33034f({'label':_0x352615[_0x20fe('0x16')],'class':_0x352615[_0x20fe('0x1a')],'withText':!0x0,'_action':_0x352615[_0x20fe('0x1e')]})};_0x38fe65[_0x20fe('0x17')][_0x20fe('0x3')](_0x20fe('0x10'))['to'](_0x1466ab,_0x20fe('0xe'),_0x2eae23=>_0x20fe('0xa')!=typeof _0x352615[_0x20fe('0x10')]||(!_0x2eae23||_0x352615[_0x20fe('0x10')](_0x1466ab))),_0x19999d[_0x20fe('0x12')](_0x38fe65);}return _0x19999d;}(_0x28159d,_0x33fd65);return _0x28159d[_0x20fe('0x3')](_0x20fe('0xe'))['to'](_0x4a9d65,_0x20fe('0x1b')),_0x4a9d65['buttonView'][_0x20fe('0x4')]({'label':_0x50ecc4(_0x5c888e,_0x20fe('0x6')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x2345c7[_0x20fe('0x1c')]}),_0x4a9d65[_0x20fe('0x18')]({'attributes':{'class':[_0x20fe('0x8'),_0x4fb1b9['if']('isActionsDropdownOpen',_0x20fe('0x13'))]},'on':{'click':_0x4fb1b9['to'](_0x39f451=>_0x39f451[_0x20fe('0xb')]())}}),_0x4a9d65['on'](_0x20fe('0x7'),_0x53e104=>{_0x28159d[_0x20fe('0x5')]&&_0x20fe('0xa')==typeof _0x53e104[_0x20fe('0x1d')][_0x20fe('0x9')]&&_0x53e104[_0x20fe('0x1d')][_0x20fe('0x9')](_0x28159d);}),_0x404d37(_0x4a9d65,_0xab780e),_0x4a9d65['listenTo'](_0x28159d,_0x20fe('0x11'),(_0x219208,_0x52aa40,_0xfe297f)=>{if(_0xfe297f)for(const _0x873f8e of _0x4a9d65[_0x20fe('0x1f')][_0x20fe('0x0')]){const _0x26f5a8=_0x873f8e['children'][_0x20fe('0x1')],_0x25061a=_0x33fd65[_0x20fe('0x15')](_0x2b9b7b=>_0x2b9b7b[_0x20fe('0x1e')]===_0x26f5a8['_action'])['isVisible'];_0x873f8e['isVisible']=void 0x0===_0x25061a||_0x25061a(_0x28159d);}}),_0x4a9d65;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1f77=['Revision\x20creator','ck-revision-history-sidebar__revision-author','push','ck-revision-history-sidebar__revision-author__name','set','0\x200\x2011\x2010','setTemplate','name','ck-revision-history-sidebar__revision-author_creator','Revision\x20author'];(function(_0x566898,_0x1f77aa){const _0x310e70=function(_0x42a60f){while(--_0x42a60f){_0x566898['push'](_0x566898['shift']());}};_0x310e70(++_0x1f77aa);}(_0x1f77,0x7a));const _0x310e=function(_0x566898,_0x1f77aa){_0x566898=_0x566898-0x0;let _0x310e70=_0x1f77[_0x566898];return _0x310e70;};import{View as _0x25999f,IconView as _0x32c003}from'ckeditor5/src/ui';import{getTranslation as _0x5bb491}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x15e3be from'../../../theme/icons/user.svg';export default class ti extends _0x25999f{constructor(_0x3fde3e,_0x6dcaf7,_0x4c6fa9){super(_0x3fde3e);const _0xc7ff0=new _0x32c003();_0xc7ff0[_0x310e('0x2')]({'content':_0x15e3be,'viewBox':_0x310e('0x3')});const _0x3bc9a5=['ck',_0x310e('0x9')];_0x4c6fa9&&_0x3bc9a5[_0x310e('0x0')](_0x310e('0x6'));const _0x81b9a0=[{'tag':'span','attributes':{'class':['ck',_0x310e('0x1')],'title':_0x5bb491(_0x3fde3e,_0x4c6fa9?_0x310e('0x8'):_0x310e('0x7'))},'children':[_0xc7ff0,_0x6dcaf7[_0x310e('0x5')]]}];this[_0x310e('0x4')]({'tag':'li','attributes':{'class':_0x3bc9a5},'children':_0x81b9a0});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2db0=['Revision\x20name','span','extendTemplate','ck-revision-history-sidebar__revision-name'];(function(_0x34f1e6,_0x2db0fc){var _0x3968af=function(_0x2ec303){while(--_0x2ec303){_0x34f1e6['push'](_0x34f1e6['shift']());}};_0x3968af(++_0x2db0fc);}(_0x2db0,0x142));var _0x3968=function(_0x34f1e6,_0x2db0fc){_0x34f1e6=_0x34f1e6-0x0;var _0x3968af=_0x2db0[_0x34f1e6];return _0x3968af;};import{LabeledFieldView as _0x5ad1e8}from'ckeditor5/src/ui';import{getTranslation as _0x5c9c95}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5ad1e8{constructor(_0x3c50d0,_0x4e8935){super(_0x3c50d0,_0x4e8935),this['set']({'label':_0x5c9c95(_0x3c50d0,_0x3968('0x2'))}),this[_0x3968('0x0')]({'tag':_0x3968('0x3'),'attributes':{'class':[_0x3968('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4624=['unshift','revisionNameView','bindTemplate','fire','ck-revision-history-sidebar__revision__controls-wrapper','ck-revision-history-sidebar__revision_highlighted','placeholder','set','isSelected','from','ck-revision-history-sidebar__revision_selected','unhighlight','setTemplate','filter','createdAt','_createdAtFormatted','span','ck-reset','fieldView','220','authors','ck-revision-history-sidebar__revision__date','value','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','_revision','ck-revision-history-sidebar__revision-wrapper','.ck-thread__remove-confirm','isActionsDropdownOpen','revisionActionsView','div','setName','change','ck-disabled','bind','isEnabled','element','ck-revision-history-sidebar__revision-authors','isReady','isHighlighted','select','creator','uiLanguage','render','highlight','closest','ck-revision-history-sidebar__revision','map','srcElement'];(function(_0x1962d7,_0x46242b){const _0x5f0f5a=function(_0x3df3cb){while(--_0x3df3cb){_0x1962d7['push'](_0x1962d7['shift']());}};_0x5f0f5a(++_0x46242b);}(_0x4624,0xce));const _0x5f0f=function(_0x1962d7,_0x46242b){_0x1962d7=_0x1962d7-0x0;let _0x5f0f5a=_0x4624[_0x1962d7];return _0x5f0f5a;};import{View as _0x5d4c64,createLabeledInputText as _0x5642f4}from'ckeditor5/src/ui';import{ConfirmMixin as _0x12d7ff}from'ckeditor5-collaboration/src/collaboration-core';import _0x1fe61c from'./revisionnameview';import _0x5599aa from'./revisionauthorview';import{dateToPrettyFormat as _0x560364}from'./utils';import{createActionsDropdownView as _0x104cb2}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x12d7ff(_0x5d4c64){constructor(_0x4b0b81,_0xf62272,_0x87c37d){super(_0x4b0b81);const _0x476768=this[_0x5f0f('0x24')],_0x348533=function(_0x32a799,_0x55f730){const _0x48d635=Array[_0x5f0f('0x2b')](_0x55f730[_0x5f0f('0x6')])[_0x5f0f('0x2f')](_0x5d3fe3=>_0x5d3fe3!=_0x55f730[_0x5f0f('0x1a')]);return _0x55f730[_0x5f0f('0x1a')]&&_0x48d635[_0x5f0f('0x22')](_0x55f730[_0x5f0f('0x1a')]),_0x48d635[_0x5f0f('0x20')](_0xee814e=>new _0x5599aa(_0x32a799,_0xee814e,_0xee814e==_0x55f730[_0x5f0f('0x1a')]));}(_0x4b0b81,_0xf62272);this['id']=_0xf62272['id'],this[_0x5f0f('0xa')]=_0xf62272,this[_0x5f0f('0x13')]('name',_0x5f0f('0x0'))['to'](_0xf62272),this['bind'](_0x5f0f('0x1'))['to'](this,'createdAt',_0x229efe=>_0x229efe?_0x560364(_0x4b0b81[_0x5f0f('0x1b')],_0x229efe):void 0x0),this['set'](_0x5f0f('0x2a'),!0x1),this[_0x5f0f('0x29')]('isHighlighted',!0x1),this[_0x5f0f('0x29')](_0x5f0f('0xd'),!0x1),this[_0x5f0f('0x29')](_0x5f0f('0x17'),!0x1),this[_0x5f0f('0x29')]('isEnabled',!0x1),this[_0x5f0f('0x23')]=new _0x1fe61c(_0x4b0b81,_0x5642f4),this[_0x5f0f('0x23')][_0x5f0f('0x4')]['extendTemplate']({'attributes':{'maxlength':_0x5f0f('0x5')}}),this['revisionNameView'][_0x5f0f('0x4')][_0x5f0f('0x13')](_0x5f0f('0x8'),_0x5f0f('0x28'))['to'](this,'name',_0x5f0f('0x1')),this[_0x5f0f('0x23')][_0x5f0f('0x13')](_0x5f0f('0x14'))['to'](this,_0x5f0f('0x2a'),this,_0x5f0f('0x14'),(_0x53bb7f,_0x44cf3e)=>_0x53bb7f&&_0x44cf3e),this[_0x5f0f('0xe')]=_0x87c37d&&_0x87c37d['length']?_0x104cb2(this,_0x87c37d):'',this[_0x5f0f('0xe')]&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this[_0x5f0f('0x2e')]({'tag':'div','attributes':{'class':['ck',_0x5f0f('0x3'),_0x5f0f('0xb'),_0x476768['if']('isConfirm',_0x5f0f('0x9'))]},'children':[{'tag':_0x5f0f('0xf'),'attributes':{'class':['ck',_0x5f0f('0x3'),_0x5f0f('0x1f'),_0x476768['if'](_0x5f0f('0x14'),_0x5f0f('0x12'),_0x304dd9=>!_0x304dd9),_0x476768['if'](_0x5f0f('0x2a'),_0x5f0f('0x2c')),_0x476768['if']('isHighlighted',_0x5f0f('0x27')),_0x476768['if'](_0x5f0f('0xd'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x5f0f('0x23')],{'tag':_0x5f0f('0x2'),'attributes':{'class':['ck',_0x5f0f('0x7')]},'children':[{'text':_0x476768['to'](_0x5f0f('0x1'))}]},{'tag':_0x5f0f('0xf'),'attributes':{'class':['ck',_0x5f0f('0x26')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x5f0f('0x16')]},'children':_0x348533}]},this[_0x5f0f('0xe')]],'on':{'click':_0x476768['to'](_0x10c012=>{_0x10c012[_0x5f0f('0x21')][_0x5f0f('0x1e')](_0x5f0f('0xc'))||this[_0x5f0f('0x17')]&&this[_0x5f0f('0x14')]&&this[_0x5f0f('0x25')](_0x5f0f('0x19'),{'id':this['id']});})}}]});}[_0x5f0f('0x1c')](){super['render']();const _0x3af78c=this[_0x5f0f('0x23')][_0x5f0f('0x4')][_0x5f0f('0x15')];this['listenTo'](_0x3af78c,_0x5f0f('0x11'),()=>{this[_0x5f0f('0x25')](_0x5f0f('0x10'),{'id':this['id'],'name':_0x3af78c[_0x5f0f('0x8')]});});}[_0x5f0f('0x19')](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x5f0f('0x1d')](){this[_0x5f0f('0x18')]=!0x0;}[_0x5f0f('0x2d')](){this[_0x5f0f('0x18')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e6d=['false','set','click','setTemplate','bindTemplate','isVisible','ck-revision-history-sidebar__subrevision-collapser_collapsed','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser__inner','span','ck-revision-history-sidebar__subrevision-collapser'];(function(_0x562e14,_0x3e6d9d){const _0x14943f=function(_0xa5a60f){while(--_0xa5a60f){_0x562e14['push'](_0x562e14['shift']());}};_0x14943f(++_0x3e6d9d);}(_0x3e6d,0x1ce));const _0x1494=function(_0x562e14,_0x3e6d9d){_0x562e14=_0x562e14-0x0;let _0x14943f=_0x3e6d[_0x562e14];return _0x14943f;};import{View as _0x217242}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x217242{constructor(_0x1133d1){super(_0x1133d1);const _0x5cebad=this[_0x1494('0x4')];this[_0x1494('0x1')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x1494('0x3')]({'tag':'span','attributes':{'class':['ck',_0x1494('0xa'),_0x5cebad['if'](_0x1494('0x5'),'ck-hidden',_0x31e575=>!_0x31e575),_0x5cebad['if'](_0x1494('0x7'),_0x1494('0x6'))],'role':'button','aria-pressed':_0x5cebad['to']('_isCollapsed',_0xf14135=>_0xf14135?_0x1494('0x0'):'true')},'children':[{'tag':_0x1494('0x9'),'attributes':{'class':['ck',_0x1494('0x8')]}}],'on':{'click':_0x5cebad['to'](_0x1494('0x2'))}});}['toggle'](){this['_isCollapsed']=!this[_0x1494('0x7')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b07=['ck-revision-history-sidebar__subrevision','isSelected','fire','bind','set','ck-revision-history-sidebar__revision','select','_createdAtFormatted','createdAt','setTemplate','deselect','span','ck-reset','div','creator','ck-revision-history-sidebar__revision_selected','_parentRevisionId','ck-revision-history-sidebar__revision-authors','uiLanguage'];(function(_0xd31d3,_0x5b074c){const _0x2e89cd=function(_0x497b0d){while(--_0x497b0d){_0xd31d3['push'](_0xd31d3['shift']());}};_0x2e89cd(++_0x5b074c);}(_0x5b07,0x67));const _0x2e89=function(_0xd31d3,_0x5b074c){_0xd31d3=_0xd31d3-0x0;let _0x2e89cd=_0x5b07[_0xd31d3];return _0x2e89cd;};import{View as _0x52bd13}from'ckeditor5/src/ui';import _0x4dcbbd from'./revisionauthorview';import{dateToPrettyFormat as _0x3f9230}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x52bd13{constructor(_0xce7bb0,_0x25a6dd,_0x405679){super(_0xce7bb0);const _0x29c311=this['bindTemplate'];this['id']=_0x25a6dd['id'],this[_0x2e89('0xe')](_0x2e89('0x0'))['to'](_0x25a6dd),this[_0x2e89('0xf')](_0x2e89('0xc'),!0x1),this[_0x2e89('0xe')]('_createdAtFormatted')['to'](this,_0x2e89('0x0'),_0x2651b7=>_0x2651b7?_0x3f9230(_0xce7bb0[_0x2e89('0xa')],_0x2651b7):void 0x0),this[_0x2e89('0x8')]=_0x405679,this[_0x2e89('0x1')]({'tag':_0x2e89('0x5'),'attributes':{'class':['ck',_0x2e89('0x4'),_0x2e89('0x10'),_0x2e89('0xb'),_0x29c311['if'](_0x2e89('0xc'),_0x2e89('0x7'))]},'children':[{'tag':_0x2e89('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x29c311['to'](_0x2e89('0x12'))}]},{'tag':'ul','attributes':{'class':['ck',_0x2e89('0x9')]},'children':[new _0x4dcbbd(_0xce7bb0,_0x25a6dd[_0x2e89('0x6')],!0x0)]}],'on':{'click':_0x29c311['to'](this[_0x2e89('0x11')][_0x2e89('0xe')](this))}});}[_0x2e89('0x11')](){this[_0x2e89('0xc')]=!0x0,this[_0x2e89('0xd')](_0x2e89('0x11'),{'parentId':this['_parentRevisionId']});}[_0x2e89('0x2')](){this[_0x2e89('0xc')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x2511=['numeric','toLocaleTimeString','toLocaleDateString','long'];(function(_0x5d619d,_0x25114e){var _0x39d7cd=function(_0x19dbbb){while(--_0x19dbbb){_0x5d619d['push'](_0x5d619d['shift']());}};_0x39d7cd(++_0x25114e);}(_0x2511,0x1ec));var _0x39d7=function(_0x5d619d,_0x25114e){_0x5d619d=_0x5d619d-0x0;var _0x39d7cd=_0x2511[_0x5d619d];return _0x39d7cd;};export function dateToPrettyFormat(_0x57bd75,_0x2f0fda){return _0x2f0fda[_0x39d7('0x2')](_0x57bd75,{'month':_0x39d7('0x3'),'day':'numeric'})+',\x20'+_0x2f0fda[_0x39d7('0x1')](_0x57bd75,{'hour':_0x39d7('0x0'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x331e=['stopPropagation','locale','reset','saveButtonView','_focusables','ck-button-cancel','cancelButtonView','revisionNameInputView','render','element','arrowup','setTemplate','extendTemplate','submit','trim','fieldView','add','set','type','revisionName','_createRevisionNameInput','value','form','cancel','listenTo','focus','revisionNameInputValue','delegate','Cancel','arrowleft','ck-button-save','arrowdown','focusTracker','220','input','shift\x20+\x20tab','arrowright','Name\x20of\x20the\x20revision\x20(optional)','_focusCycler','tab','ck-revision-history-save-revision-form','keystrokes','_createButton'];(function(_0x33839e,_0x331e1d){const _0x176659=function(_0xd80c8f){while(--_0xd80c8f){_0x33839e['push'](_0x33839e['shift']());}};_0x176659(++_0x331e1d);}(_0x331e,0x13c));const _0x1766=function(_0x33839e,_0x331e1d){_0x33839e=_0x33839e-0x0;let _0x176659=_0x331e[_0x33839e];return _0x176659;};import{icons as _0x2a09ff}from'ckeditor5/src/core';import{ButtonView as _0x52fce8,FocusCycler as _0x4ffab1,LabeledFieldView as _0x2f7625,View as _0xa40eb4,ViewCollection as _0x36c622,createLabeledInputText as _0x2325c4,injectCssTransitionDisabler as _0x3a953f,submitHandler as _0x5c7451}from'ckeditor5/src/ui';import{FocusTracker as _0xa21a94,KeystrokeHandler as _0xe314a4}from'ckeditor5/src/utils';import{getTranslation as _0x515c36}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0xa40eb4{constructor(_0x26a573){super(_0x26a573),this[_0x1766('0x11')]=new _0xa21a94(),this[_0x1766('0x1a')]=new _0xe314a4(),this[_0x1766('0x2')]('revisionNameInputValue',''),this[_0x1766('0x23')]=this[_0x1766('0x5')](),this[_0x1766('0x1f')]=this[_0x1766('0x1b')](_0x515c36(_0x26a573,'Save'),_0x2a09ff['check'],_0x1766('0xf')),this[_0x1766('0x1f')][_0x1766('0x3')]=_0x1766('0x29'),this[_0x1766('0x22')]=this['_createButton'](_0x515c36(_0x26a573,_0x1766('0xd')),_0x2a09ff[_0x1766('0x8')],_0x1766('0x21'),_0x1766('0x8')),this['_focusables']=new _0x36c622(),this[_0x1766('0x17')]=new _0x4ffab1({'focusables':this['_focusables'],'focusTracker':this[_0x1766('0x11')],'keystrokeHandler':this[_0x1766('0x1a')],'actions':{'focusPrevious':_0x1766('0x14'),'focusNext':_0x1766('0x18')}}),this[_0x1766('0x27')]({'tag':_0x1766('0x7'),'attributes':{'class':['ck',_0x1766('0x19'),'ck-responsive-form'],'tabindex':'-1'},'children':[this[_0x1766('0x23')],this['saveButtonView'],this['cancelButtonView']]}),_0x3a953f(this);}[_0x1766('0x24')](){super[_0x1766('0x24')](),_0x5c7451({'view':this}),([this['revisionNameInputView'],this[_0x1766('0x1f')],this[_0x1766('0x22')]]['forEach'](_0x4a59c3=>{this[_0x1766('0x20')][_0x1766('0x1')](_0x4a59c3),this['focusTracker'][_0x1766('0x1')](_0x4a59c3[_0x1766('0x25')]);}),this[_0x1766('0x1a')][_0x1766('0x9')](this[_0x1766('0x25')]));const _0x5915ed=_0x3e89cc=>_0x3e89cc[_0x1766('0x1c')]();this[_0x1766('0x1a')][_0x1766('0x2')](_0x1766('0x15'),_0x5915ed),this[_0x1766('0x1a')][_0x1766('0x2')](_0x1766('0xe'),_0x5915ed),this['keystrokes'][_0x1766('0x2')](_0x1766('0x26'),_0x5915ed),this[_0x1766('0x1a')][_0x1766('0x2')](_0x1766('0x10'),_0x5915ed);}[_0x1766('0xa')](){this[_0x1766('0x17')]['focusFirst']();}get[_0x1766('0x4')](){return this[_0x1766('0x23')]['fieldView'][_0x1766('0x25')][_0x1766('0x6')][_0x1766('0x2a')]();}set[_0x1766('0x4')](_0x10e0a0){this[_0x1766('0x23')][_0x1766('0x0')][_0x1766('0x25')][_0x1766('0x6')]=_0x10e0a0['trim']();}[_0x1766('0x1e')](){this[_0x1766('0x23')][_0x1766('0x0')][_0x1766('0x25')][_0x1766('0x6')]='';}[_0x1766('0x5')](){const _0x5f130e=new _0x2f7625(this[_0x1766('0x1d')],_0x2325c4),_0x324fa4=_0x5f130e[_0x1766('0x0')];return _0x324fa4[_0x1766('0x28')]({'attributes':{'maxlength':_0x1766('0x12')}}),_0x5f130e['label']=_0x515c36(this[_0x1766('0x1d')],_0x1766('0x16')),_0x324fa4['on'](_0x1766('0x13'),()=>{this[_0x1766('0xb')]=_0x324fa4[_0x1766('0x25')][_0x1766('0x6')][_0x1766('0x2a')]();}),_0x5f130e;}[_0x1766('0x1b')](_0x74996d,_0x31698a,_0x28d406,_0x22d701){const _0x203848=new _0x52fce8(this[_0x1766('0x1d')]);return _0x203848[_0x1766('0x2')]({'label':_0x74996d,'icon':_0x31698a,'tooltip':!0x0}),_0x203848['extendTemplate']({'attributes':{'class':_0x28d406}}),_0x22d701&&_0x203848[_0x1766('0xc')]('execute')['to'](this,_0x22d701),_0x203848;}}
|