@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20230820.0 → 0.0.0-nightly-20230821.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x8135=['sort','_removeMissingPairs','isLimit','restoreRevision','dataDowncast','start','add','revision','splice','range','vid_end','createPositionBefore','pop','side','markers','authors','roots','startsWith','mapViewToDom','elementStart','backward','hasClass','nodeAfter','abs','reconvertMarker','map','_makeTape','next','getIndex','isRemoved','newRevisionId','isIncorrect','isNavigationMode','WidgetToolbarRepository','getCustomProperty','change','high','isSuggestion','changeId','vid','type','change:isEnabled','upcast','_changeView','mousedown','execute','isContent','_getRevisionsRange','_fixObsoleteTags','createPositionFromPath','_makeModelFromTape','span','getAttribute','isOnRoot','change:activeChange','isRemoveSuggestion','_setDistance','document','isAddSuggestion','collaboration.channelId','text','shift','_changeIdToChange','name','pairId','startIndex','createRevision','_initInteractions','right','model','revisionHistoryLabel','_cleanUp','numberOfChanges','markerNameToElements','rootName','toViewElement','writer','error','addRevisionData','currentChangeNumber','useFillerType','downcastDispatcher','keys','_refreshStartEndIndex','editing','isInline','attributes','concat','comment','markerName','target','_makeModelFromViewString','changes','element:pre','_data','suggestion:','createRangeIn','affectsData','_getViewObj','ck-revision-history-root-','_markMarkers','showStack','_getChangeFromId','nextSibling','markerRange','parse','getRoot','from','change:numberOfChanges','suggestion','updatePosition','_step','_removeRevisionMarkers','config','diff','elementToAttribute','then','markerToData','pluginName','commands','enqueueChange','ck-suggestion-marker-','_findChangeIdFromDomTarget','for','test','consume','_markInsertions','createUIElement','data-revision-','ck-editor__editable__overlay','_activeViewTarget','removeMarker:revision','vid_start','unshift','unbindElementFromMarkerName','end','editor','removeClass','getRevisionData','left','offsetSize','push','conversion','revisionHistory','change:activeView','markersStart','showNextChange','get','remove','attachChange','getRevision','detachRoot','repository','ck-revision-history-root-add','revision-comment:','nextPosition','markersEnd','_setChanges','viewItem','_cleanMarkers','userId','mapper','uiElement','toViewPosition','string','activeView','attributesBefore','adapter','checkAttribute','addHighlight','view','RevisionViewer','_balloon','-new','change:isReady','isAtStart','object','isAfter','parent','revision-suggestion','_removeUnsupportedChanges','set','delete','getRootNames','_processTape','processor','default','_markMismatchedRemovedTags','dataToMarker','forEach','getAttributes','element','_update','loadRevisionData','bindElementToMarker','_getViewForChange','showPreviousChange','locale','ck-revision-history-root--active','isBefore','ck-suggestion-marker-split','mouseover','deletions','hasAttribute','includes','length','deletion','addMarker:revision-suggestion:insertion','_markSuggestions','highest','all','level','endIndex','_setConversion','clear','distance','insertions','isBlock','item','isEnabled','consumable','schema','isAttached','requires','findIndex','marked','getClientRects','setAttribute','indexOf','softBreak','revisionHistoryAttachChange','diffData','addMarker:revision','resolve','activeChange','merge','filter','_appendChild','toData','data-change-id','has','insertion','attributesAfter','index','split','getItems','getDomRoot','isAtEnd','maxOffset','removeMarker','data','forceDisabled','domEvent','stop','addClass','ck-suggestion-marker-merge','listenTo','_getDiff','revision-end','getWalker','editingDowncast','_sortAndFilterDiffChanges','previousPosition','selection','insert','ck-suggestion-preview-marker-','plugins','ck-suggestion-preview-marker','getRevisionRootsAttributes','compare','isEqual','slice','createRange','restoreRevisionCallback','isReady','ck-suggestion-marker--active','isAdded','forward','_threeWayMerge','revision:','low','bind','refresh','getChild','revision-start','top','modelRange','find','_joinTapes','elementEnd'];(function(_0x254c27,_0x813510){const _0x5859a4=function(_0x1c3a9e){while(--_0x1c3a9e){_0x254c27['push'](_0x254c27['shift']());}};_0x5859a4(++_0x813510);}(_0x8135,0x100));const _0x5859=function(_0x254c27,_0x813510){_0x254c27=_0x254c27-0x0;let _0x5859a4=_0x8135[_0x254c27];return _0x5859a4;};import{Plugin as _0x193c24,Command as _0x4034ce}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5cbda3}from'ckeditor5/src/utils';import{ContextualBalloon as _0x1efa1b}from'ckeditor5/src/ui';import{DocumentFragment as _0x5ae4b3,Element as _0x1c5b79,Text as _0xd2c2f,ViewDocumentFragment as _0x5e5cb4,ViewText as _0x59ce10,ViewElement as _0x2f41ac,ViewContainerElement as _0xb4abbf,ViewAttributeElement as _0x2a3e28,ViewEmptyElement as _0xda6fa2,ViewRawElement as _0x5e8a04,ViewUIElement as _0x3aa07c}from'ckeditor5/src/engine';import{Users as _0x5f1a33,getMarkerDomElement as _0x5a0b75}from'ckeditor5-collaboration/src/collaboration-core';import _0xbeef29 from'./ui/revisionviewer/changedetailsview';import _0x53ab8c from'./revisionsrepository';import _0x31e9c7 from'./changeitem';import{default as _0xc41a6e}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x27c916}from'lodash-es';const tt={'c':_0xb4abbf,'a':_0x2a3e28,'e':_0xda6fa2,'r':_0x5e8a04,'u':_0x3aa07c};export default class d extends _0x193c24{static get[_0x5859('0x98')](){return'RevisionViewer';}static get[_0x5859('0x101')](){return[_0x5f1a33,_0x1efa1b,_0x53ab8c];}constructor(_0x95b7b8){super(_0x95b7b8),this[_0x5859('0xba')]=this[_0x5859('0xaa')][_0x5859('0xa')][_0x5859('0xb5')]('RevisionsRepository'),this['set'](_0x5859('0x10c'),null),this[_0x5859('0xd7')](_0x5859('0xc7'),null),this[_0x5859('0xa4')]=null,this[_0x5859('0xd7')]('diff',null),this[_0x5859('0xd7')]('isReady',!0x1),this[_0x5859('0xd7')](_0x5859('0xfd'),!0x0),this['on']('change:isEnabled',(_0x337d82,_0x264a21,_0x488d5d)=>{this[_0x5859('0x10c')]=null,this[_0x5859('0xc7')]=null,this[_0x5859('0xaa')][_0x5859('0x76')]['view'][_0x5859('0x45')](_0x323b52=>{for(const _0x4a54b7 of this[_0x5859('0xaa')]['editing'][_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x32')])_0x488d5d?_0x323b52[_0x5859('0xab')](_0x5859('0xa3'),_0x4a54b7):_0x323b52[_0x5859('0x120')](_0x5859('0xa3'),_0x4a54b7);});}),this[_0x5859('0x19')](_0x5859('0x42'))['to'](this,_0x5859('0x10c'),_0x489bbd=>null!==_0x489bbd),this[_0x5859('0x19')](_0x5859('0x71'))['to'](this,_0x5859('0x12'),this,_0x5859('0x94'),this,_0x5859('0x10c'),(_0x361a7b,_0x48401a,_0x22271b)=>_0x361a7b&&_0x22271b?_0x48401a[_0x5859('0x7e')][_0x5859('0x3e')](_0x22271b):0x0),this[_0x5859('0x19')](_0x5859('0x6a'))['to'](this,'isReady',this,_0x5859('0x94'),(_0x1f033d,_0x341869)=>_0x1f033d?_0x341869['changes'][_0x5859('0xef')]:0x0),this[_0x5859('0x4d')]=null,this[_0x5859('0x60')]=new Map(),this[_0x5859('0xc9')]=null,this[_0x5859('0xce')]=this['editor'][_0x5859('0xa')][_0x5859('0xb5')](_0x1efa1b);}['init'](){const _0x53707b=this[_0x5859('0xaa')],_0x41aeac=new ShowChangeCommand(_0x53707b,{'direction':_0x5859('0x36')}),_0x5f33ee=new ShowChangeCommand(_0x53707b,{'direction':'forward'});(_0x53707b[_0x5859('0x99')][_0x5859('0x28')](_0x5859('0xe6'),_0x41aeac),_0x53707b[_0x5859('0x99')]['add'](_0x5859('0xb4'),_0x5f33ee),_0x53707b['commands'][_0x5859('0x28')](_0x5859('0x25'),new RestoreRevisionCommand(_0x53707b)),this['on'](_0x5859('0x8e'),()=>{_0x41aeac['refresh'](),_0x5f33ee[_0x5859('0x1a')]();}),this[_0x5859('0xf7')](),this['_initInteractions'](),_0x53707b['enableReadOnlyMode']('revision-viewer'),_0x53707b[_0x5859('0xa')][_0x5859('0x112')](_0x5859('0x43')))&&_0x53707b[_0x5859('0xa')][_0x5859('0xb5')](_0x5859('0x43'))[_0x5859('0x11d')]('revision-viewer');}async[_0x5859('0xac')](_0x3ac132){await this[_0x5859('0xe3')](_0x3ac132);const _0x5a3da7={};for(const _0x5a6d4b in _0x3ac132[_0x5859('0x109')]){if(_0x3ac132[_0x5859('0x109')][_0x5a6d4b][_0x5859('0xb7')]&&!_0x3ac132[_0x5859('0x109')][_0x5a6d4b][_0x5859('0xb7')][_0x5859('0x100')])continue;const _0x55cc1e=this[_0x5859('0x92')](JSON['parse'](_0x3ac132[_0x5859('0x109')][_0x5a6d4b]['insertions'])),_0x1ec4a4=this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')]['document'],_0x2868f3=new _0x5e5cb4(_0x1ec4a4,_0x55cc1e['map'](_0x5a2d7d=>this['_getViewObj'](_0x5a2d7d)));this['editor']['data']['processor']['useFillerType'](_0x5859('0x103')),_0x5a3da7[_0x5a6d4b]=this[_0x5859('0xaa')][_0x5859('0x11c')][_0x5859('0xdb')][_0x5859('0x110')](_0x2868f3),this['editor'][_0x5859('0x11c')]['processor'][_0x5859('0x72')](_0x5859('0xdc'));}return _0x5a3da7;}async[_0x5859('0xc')](_0x570937){await this['loadRevisionData'](_0x570937);const _0x5a5bab={};for(const _0x567c10 in _0x570937['diffData'])_0x570937[_0x5859('0x109')][_0x567c10]['attachChange']&&!_0x570937['diffData'][_0x567c10][_0x5859('0xb7')][_0x5859('0x100')]||(_0x5a5bab[_0x567c10]=_0x570937[_0x5859('0x109')][_0x567c10][_0x5859('0x114')]||{});return _0x5a5bab;}[_0x5859('0x92')](_0x330a55){return(_0x330a55=_0x330a55[_0x5859('0x10e')](_0x3618e3=>!_0x3618e3['name']||_0x5859('0x1c')!==_0x3618e3[_0x5859('0x61')]&&_0x5859('0x2')!==_0x3618e3['name']))['forEach'](_0x21a622=>{_0x5859('0xc6')!=typeof _0x21a622&&(_0x21a622['children']=this[_0x5859('0x92')](_0x21a622['children']),_0x21a622[_0x5859('0x78')]=_0x21a622[_0x5859('0x78')][_0x5859('0x10e')](_0x38ed2c=>!_0x38ed2c[0x0][_0x5859('0x33')](_0x5859('0xa2'))));}),_0x330a55;}async[_0x5859('0xd')](_0x32386e,_0xeed90f,_0x51c6fd=!0x1){if(!this[_0x5859('0xfd')])return;const _0x938c60=this['diff'],_0xd8fc83=this['repository'],_0x2622ad='string'==typeof _0x32386e?_0xd8fc83[_0x5859('0xb8')](_0x32386e):_0x32386e,_0x20e408=_0x5859('0xc6')==typeof _0xeed90f?_0xd8fc83[_0x5859('0xb8')](_0xeed90f):_0xeed90f,_0x3bdd8e=_0x2622ad['id'],_0x4e3df5=_0x20e408?_0x20e408['id']:null;if(!_0x51c6fd&&this[_0x5859('0x94')]&&this[_0x5859('0x94')][_0x5859('0x40')]===_0x3bdd8e&&this[_0x5859('0x94')]['oldRevisionId']===_0x4e3df5)return Promise['resolve']();this[_0x5859('0x12')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x5859('0x94')]=new _0xc41a6e(_0x3bdd8e,_0x4e3df5);const _0x6baf0b=this[_0x5859('0x51')](_0x2622ad,_0x20e408,!0x0)['map'](_0x565b4f=>this[_0x5859('0xe3')](_0x565b4f));return _0x6baf0b['push'](new Promise(_0x3af885=>{setTimeout(_0x3af885,0x14);})),Promise[_0x5859('0xf4')](_0x6baf0b)[_0x5859('0x96')](()=>{if(!this[_0x5859('0xfd')])return;this[_0x5859('0x69')]();const _0x115f1f=this[_0x5859('0x1')](_0x3bdd8e,_0x4e3df5);for(const _0x49ac60 of _0x115f1f[_0x5859('0x7e')])this[_0x5859('0x60')]['set'](_0x49ac60['id'],_0x49ac60);this[_0x5859('0xaa')]['model']['enqueueChange']({'isUndoable':!0x1},_0x3f10f7=>{for(const _0x5dfa1a of this['editor'][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]())_0x3f10f7[_0x5859('0xb9')](_0x5dfa1a);for(const _0x4a93d2 of Object[_0x5859('0x74')](_0x115f1f[_0x5859('0x67')])){const _0xa62110=_0x3f10f7['addRoot'](_0x4a93d2);for(const _0x42e991 of Object[_0x5859('0x74')](_0x115f1f['attributes'][_0x4a93d2]))_0x3f10f7[_0x5859('0x105')](_0x42e991,_0x115f1f[_0x5859('0x78')][_0x4a93d2][_0x42e991],_0xa62110);_0x3f10f7['insert'](_0x115f1f['model'][_0x4a93d2],_0xa62110,0x0);}}),this[_0x5859('0x94')][_0x5859('0xbf')](this[_0x5859('0x5')](_0x115f1f[_0x5859('0x7e')])),this[_0x5859('0x12')]=!0x0;})['catch'](_0x39c53a=>{console[_0x5859('0x6f')](_0x39c53a),this['_cleanUp'](),_0x938c60&&(this[_0x5859('0x94')]=_0x938c60),this[_0x5859('0x12')]=!0x0;});}[_0x5859('0x70')](_0x4133fd,_0x29c4ba){const _0x174f57=this[_0x5859('0xba')][_0x5859('0x64')](_0x4133fd);return _0x174f57['on'](_0x5859('0xe2'),(_0x37d55e,_0x5d2fdd,_0x27fd65)=>_0x29c4ba(_0x5d2fdd,_0x27fd65,_0x174f57)),this[_0x5859('0xba')]['addRevision'](_0x174f57),_0x174f57;}['loadRevisionData'](_0x300ea6){if(!_0x300ea6||_0x300ea6[_0x5859('0x109')])return Promise[_0x5859('0x10b')]();{const _0x15a3d7=this[_0x5859('0xaa')][_0x5859('0x93')]['get'](_0x5859('0x5d'));return this[_0x5859('0xc9')][_0x5859('0xb8')]({'channelId':_0x15a3d7,'revisionId':_0x300ea6['id']})['then'](_0x504f1a=>{_0x300ea6[_0x5859('0xe2')]({'diffData':_0x504f1a[_0x5859('0x109')]},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this[_0x5859('0xc1')](),this['_changeView']&&this[_0x5859('0x4d')]['destroy'](),this[_0x5859('0x4d')]=null,this[_0x5859('0x60')][_0x5859('0xf8')](),this[_0x5859('0xaa')]['model'][_0x5859('0x9a')]({'isUndoable':!0x1},_0x38322e=>{for(const _0x2cf5cf of this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]())_0x38322e[_0x5859('0xb9')](_0x2cf5cf);});}[_0x5859('0x5')](_0x2d7e3c){const _0x38396f=[],_0x38f240=new Map();for(const _0x2217ce of this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0xd9')]()){const _0x127acc=this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')][_0x5859('0x118')](_0x2217ce);if(!_0x127acc)continue;const _0x1f8a74=_0x127acc[_0x5859('0x104')]()[_0x5859('0xfc')](0x0);_0x1f8a74&&(_0x38396f['push'](_0x2217ce),_0x38f240[_0x5859('0xd7')](_0x2217ce,_0x1f8a74));}return _0x38396f[_0x5859('0x22')]((_0x51ffc0,_0x8e8ac8)=>{const _0x54b30c=_0x38f240[_0x5859('0xb5')](_0x51ffc0),_0x33f0f6=_0x38f240[_0x5859('0xb5')](_0x8e8ac8);return _0x54b30c['y']-_0x33f0f6['y']||_0x54b30c['x']-_0x33f0f6['x'];}),(_0x2d7e3c=_0x2d7e3c[_0x5859('0x10e')](_0x370bf8=>_0x38396f['includes'](_0x370bf8[_0x5859('0x6c')])))[_0x5859('0x22')]((_0x280a40,_0x8a74aa)=>_0x38396f[_0x5859('0x106')](_0x280a40['rootName'])-_0x38396f[_0x5859('0x106')](_0x8a74aa[_0x5859('0x6c')])),_0x2d7e3c;}['_makeTape'](_0x316a73){const _0x224672=Array[_0x5859('0x8d')](_0x316a73[_0x5859('0x30')])['filter'](([_0x14b57e,_0x1f4b5c])=>_0x14b57e['startsWith']('revision:')&&!_0x1f4b5c['isCollapsed']),_0x133ae5=Array[_0x5859('0x8d')](this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x82')](_0x316a73)[_0x5859('0x3')]({'singleCharacters':!0x0}));if(0x0!=_0x224672[_0x5859('0xef')])for(const _0x25057c of _0x133ae5){const [_0x162c29,_0x55c6f8]=_0x224672[0x0],[,_0x4b017e,_0x478fff]=_0x162c29[_0x5859('0x116')](':');if(_0x55c6f8['end'][_0x5859('0xe')](_0x25057c[_0x5859('0xbd')])&&_0x224672[_0x5859('0x5f')](),(_0x25057c[_0x5859('0x6')]['isEqual'](_0x55c6f8[_0x5859('0x27')])||_0x25057c[_0x5859('0x6')][_0x5859('0xd3')](_0x55c6f8[_0x5859('0x27')]))&&(_0x5859('0x113')==_0x4b017e?_0x25057c[_0x5859('0x14')]={'userId':_0x478fff}:_0x5859('0xf0')==_0x4b017e&&(_0x25057c[_0x5859('0x3f')]={'userId':_0x478fff})),0x0==_0x224672['length'])break;}return _0x133ae5;}[_0x5859('0x75')](_0x211135){const _0x1e9e72=new Map();for(let _0x4e35b3=0x0;_0x4e35b3<_0x211135['length'];_0x4e35b3++)_0x5859('0x5e')===_0x211135[_0x4e35b3][_0x5859('0x4a')]?(_0x211135[_0x4e35b3][_0x5859('0xfc')]['startIndex']=_0x4e35b3,_0x211135[_0x4e35b3][_0x5859('0xfc')]['endIndex']=_0x4e35b3):('elementStart'===_0x211135[_0x4e35b3]['type']?_0x211135[_0x4e35b3][_0x5859('0xfc')][_0x5859('0x63')]=_0x4e35b3:_0x5859('0x21')===_0x211135[_0x4e35b3][_0x5859('0x4a')]&&(_0x211135[_0x4e35b3]['item']['endIndex']=_0x4e35b3),_0x1e9e72['set'](_0x211135[_0x4e35b3]['id'],_0x4e35b3));for(const _0x1f4527 of _0x1e9e72['values']())_0x5859('0x35')===_0x211135[_0x1f4527][_0x5859('0x4a')]?_0x211135[_0x1f4527][_0x5859('0xfc')][_0x5859('0xf6')]=_0x1e9e72[_0x5859('0xb5')](_0x211135[_0x1f4527][_0x5859('0x62')]):_0x5859('0x21')===_0x211135[_0x1f4527]['type']&&(_0x211135[_0x1f4527]['item'][_0x5859('0x63')]=_0x1e9e72[_0x5859('0xb5')](_0x211135[_0x1f4527][_0x5859('0x62')]));}[_0x5859('0xda')](_0xf42b08){for(let _0x180032=0x0;_0x180032<_0xf42b08[_0x5859('0xef')];_0x180032++){if('elementStart'===_0xf42b08[_0x180032][_0x5859('0x4a')])_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0x63')]=_0x180032;else{if(_0x5859('0x21')===_0xf42b08[_0x180032][_0x5859('0x4a')]){_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0xf6')]=_0x180032;const _0x1e1682=_0xf42b08[_0x180032][_0x5859('0xfc')][_0x5859('0x63')];_0xf42b08[_0x1e1682][_0x5859('0x62')]=_0xf42b08[_0x180032]['id'],_0xf42b08[_0x180032]['pairId']=_0xf42b08[_0x1e1682]['id'];}else _0xf42b08[_0x180032]['item'][_0x5859('0x63')]=_0x180032,_0xf42b08[_0x180032][_0x5859('0xfc')]['endIndex']=_0x180032,_0xf42b08[_0x180032][_0x5859('0x62')]=null;}_0xf42b08[_0x180032]['markersStart']||(_0xf42b08[_0x180032][_0x5859('0xb3')]=[],_0xf42b08[_0x180032][_0x5859('0xbe')]=[]);}}[_0x5859('0xa0')](_0xf0aee8,_0x47b81b){const _0x5065f1=_0xf0aee8[_0x5859('0x10e')](_0x48f030=>!_0x48f030['isAdded']);for(let _0x26ff5e=0x0;_0x26ff5e<_0x47b81b['length'];_0x26ff5e++)_0x47b81b[_0x26ff5e][_0x5859('0x14')]&&(_0x5065f1[_0x26ff5e][_0x5859('0x14')]=_0x47b81b[_0x26ff5e][_0x5859('0x14')]);}[_0x5859('0x7d')](_0x5df227){const _0x10b817=JSON[_0x5859('0x8b')](_0x5df227),_0x21597a=this[_0x5859('0xaa')]['editing']['view'][_0x5859('0x5b')],_0x395c2b=new _0x5e5cb4(_0x21597a,_0x10b817[_0x5859('0x3b')](_0x13b335=>this[_0x5859('0x84')](_0x13b335)));return this['editor'][_0x5859('0x11c')]['toModel'](_0x395c2b);}[_0x5859('0x84')](_0x1d7a48){const _0x43670e=this['editor'][_0x5859('0x76')][_0x5859('0xcc')][_0x5859('0x5b')];if(_0x5859('0xc6')==typeof _0x1d7a48)return new _0x59ce10(_0x43670e,_0x1d7a48);{const _0x4e6f37=_0x1d7a48['children'][_0x5859('0x3b')](_0x57ca38=>this[_0x5859('0x84')](_0x57ca38));return new(tt[_0x1d7a48[(_0x5859('0x4a'))]]||_0x2f41ac)(_0x43670e,_0x1d7a48[_0x5859('0x61')],_0x1d7a48['attributes'],_0x4e6f37);}}[_0x5859('0x1')](_0x1f77c7,_0x13ba78=null){const _0x49977b=this[_0x5859('0xba')][_0x5859('0xb8')](_0x1f77c7),_0x2db545=_0x13ba78?this['repository'][_0x5859('0xb8')](_0x13ba78):null,_0x5d7e67=this[_0x5859('0x51')](_0x49977b,_0x2db545),_0x16fb54=_0x5d7e67[_0x5d7e67[_0x5859('0xef')]-0x1],_0x4b332e=new Map(),_0x3db07b={'model':{},'attributes':{},'changes':[]},_0x40db0e=new Set(),_0x5d6e40=new Map();for(let _0x4e31a2=_0x5d7e67[_0x5859('0xef')]-0x1;_0x4e31a2>=0x0;_0x4e31a2--){const _0xc607fd=_0x5d7e67[_0x4e31a2];for(const _0x4fe581 of Object[_0x5859('0x74')](_0xc607fd[_0x5859('0x109')]))if(_0xc607fd[_0x5859('0x109')][_0x4fe581][_0x5859('0xb7')]){const _0x58c0f9=_0xc607fd[_0x5859('0x109')][_0x4fe581][_0x5859('0xb7')];_0x58c0f9[_0x5859('0x100')]?(_0x40db0e[_0x5859('0x28')](_0x4fe581),_0x5d6e40['has'](_0x4fe581)&&_0x5d6e40['get'](_0x4fe581)['userId']==_0x58c0f9[_0x5859('0xc2')]?_0x5d6e40['delete'](_0x4fe581):_0x5d6e40[_0x5859('0xd7')](_0x4fe581,_0x58c0f9)):_0x5d6e40[_0x5859('0x112')](_0x4fe581)?(_0x40db0e[_0x5859('0xd8')](_0x4fe581),_0x5d6e40['delete'](_0x4fe581)):(_0x40db0e[_0x5859('0x28')](_0x4fe581),_0x5d6e40[_0x5859('0xd7')](_0x4fe581,_0x58c0f9));}else _0x40db0e['add'](_0x4fe581);}for(const _0x553f8b of _0x40db0e){const _0x144ba2=_0x5d6e40[_0x5859('0x112')](_0x553f8b)&&!_0x5d6e40[_0x5859('0xb5')](_0x553f8b)[_0x5859('0x100')];let _0x18b7b6=_0x144ba2?_0x5d7e67[_0x5859('0xef')]-0x1:0x0;const _0x129413=_0x144ba2?-0x1:0x1;for(;_0x5d7e67[_0x18b7b6];){const _0x1d28e7=_0x5d7e67[_0x18b7b6];if(_0x1d28e7[_0x5859('0x109')][_0x553f8b]){const _0x50f119=_0x144ba2?_0x1d28e7[_0x5859('0x109')][_0x553f8b][_0x5859('0xc8')]:_0x1d28e7['diffData'][_0x553f8b][_0x5859('0x114')];_0x3db07b['attributes'][_0x553f8b]=_0x50f119?_0x27c916(_0x50f119):{};break;}_0x18b7b6+=_0x129413;}}for(const _0x272ecd of _0x5d7e67){_0x272ecd[_0x5859('0x67')]={};for(const _0x23a2e8 of _0x272ecd[_0x5859('0x31')])_0x4b332e[_0x5859('0xd7')](_0x23a2e8['id'],_0x23a2e8);for(const _0x3fdd4b of _0x40db0e){const _0x57448d=_0x272ecd['diffData'][_0x3fdd4b]?_0x272ecd['diffData'][_0x3fdd4b][_0x5859('0xfa')]:'[]',_0x3ec2b5=_0x272ecd[_0x5859('0x109')][_0x3fdd4b]?_0x272ecd[_0x5859('0x109')][_0x3fdd4b]['deletions']:'[]';_0x272ecd[_0x5859('0x67')][_0x3fdd4b]={'insertions':this['_makeModelFromViewString'](_0x57448d),'deletions':this[_0x5859('0x7d')](_0x3ec2b5)};}}for(const _0x363d0c of _0x40db0e){let _0x2ebe6e=null,_0x4acb22=0x0;const _0x260cb3=new Map(Array[_0x5859('0x8d')](_0x49977b[_0x5859('0x67')][_0x363d0c][_0x5859('0xfa')][_0x5859('0x30')])[_0x5859('0x10e')](([_0x20c38a])=>!_0x20c38a[_0x5859('0x33')](_0x5859('0x17'))));let _0x228d57=0x0;for(const _0x5672d9 of _0x5d7e67){const _0x5b8429=this[_0x5859('0x3c')](_0x5672d9[_0x5859('0x67')][_0x363d0c][_0x5859('0xfa')]);_0x5672d9==_0x49977b?(_0x2ebe6e=_0x5b8429,_0x4acb22=_0x2ebe6e['length'],_0x2ebe6e[_0x5859('0xdf')](_0x38cb96=>{_0x38cb96['id']=_0x228d57++;}),this[_0x5859('0xda')](_0x2ebe6e)):this[_0x5859('0xa0')](_0x2ebe6e,_0x5b8429);const _0x1dc430=_0x2ebe6e[_0x5859('0x10e')](_0x3dd11d=>!_0x3dd11d[_0x5859('0x14')])[_0x5859('0x3b')](_0x290aee=>_0x290aee['id']);let _0x46cc9f=0x0;const _0x55bd57=this[_0x5859('0x3c')](_0x5672d9[_0x5859('0x67')][_0x363d0c]['deletions']);_0x55bd57[_0x5859('0xdf')](_0x4074ab=>{_0x4074ab[_0x5859('0x3f')]?_0x4074ab['id']=_0x4acb22++:_0x4074ab['id']=_0x1dc430[_0x46cc9f++];}),this[_0x5859('0xda')](_0x55bd57),this['_setDistance'](_0x2ebe6e,_0x5859('0x14')),this[_0x5859('0x5a')](_0x55bd57,_0x5859('0x3f')),_0x5672d9==_0x49977b&&this['_markMarkers'](_0x2ebe6e,_0x260cb3),_0x2ebe6e=this[_0x5859('0x20')](_0x2ebe6e,_0x55bd57),this[_0x5859('0x75')](_0x2ebe6e),this['_setDistance'](_0x2ebe6e,'isRemoved');}_0x2ebe6e=_0x2ebe6e[_0x5859('0x10e')](_0x3d95a1=>!(_0x3d95a1[_0x5859('0x14')]&&_0x3d95a1['isRemoved']));const _0x4da9df=new Map(_0x16fb54[_0x5859('0x67')][_0x363d0c][_0x5859('0xec')][_0x5859('0x30')]),_0x56be8c=new Set(_0x260cb3[_0x5859('0x74')]());for(const _0x50a60b of _0x4da9df[_0x5859('0x74')]())_0x56be8c[_0x5859('0xd8')](_0x50a60b);this[_0x5859('0xf2')](_0x2ebe6e,_0x56be8c),this[_0x5859('0x52')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0x23')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0xdd')](_0x2ebe6e),_0x2ebe6e=this[_0x5859('0xd6')](_0x2ebe6e);const {root:_0x4e9c70,changes:_0x5f4e69}=this[_0x5859('0x54')](_0x2ebe6e,_0x4b332e,_0x363d0c);_0x3db07b[_0x5859('0x67')][_0x363d0c]=_0x4e9c70;const _0x135fcb=_0x5d6e40['get'](_0x363d0c);if(_0x135fcb){const _0x53deb7=_0x4b332e[_0x5859('0xb5')](_0x135fcb[_0x5859('0xc2')]),_0x3ffeb3=new _0x31e9c7({'author':_0x53deb7,'type':_0x135fcb[_0x5859('0x100')]?'add':_0x5859('0xb6'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x363d0c});_0x5f4e69[_0x5859('0xa7')](_0x3ffeb3),_0x3db07b['attributes'][_0x363d0c]['revisionHistoryAttachChange']=_0x3ffeb3['id'];}_0x3db07b[_0x5859('0x7e')]=_0x3db07b[_0x5859('0x7e')][_0x5859('0x79')](_0x5f4e69);}return _0x3db07b;}[_0x5859('0x86')](_0x52fda4,_0x27218d){for(let _0x1da0ce=0x0;_0x1da0ce<_0x52fda4['length'];_0x1da0ce++)for(const [_0x4867a6,_0x31a2b0]of _0x27218d)_0x31a2b0[_0x5859('0x27')][_0x5859('0xe')](_0x52fda4[_0x1da0ce]['previousPosition'])&&_0x52fda4[_0x1da0ce]['markersStart'][_0x5859('0xaf')](_0x4867a6),_0x31a2b0[_0x5859('0xa9')][_0x5859('0xe')](_0x52fda4[_0x1da0ce]['nextPosition'])&&_0x52fda4[_0x1da0ce][_0x5859('0xbe')][_0x5859('0xaf')](_0x4867a6);}[_0x5859('0x20')](_0x7a3936,_0x572eae){let _0x19523f=[],_0x2b2c03=0x0,_0x5888c7=0x0;for(;_0x2b2c03<_0x7a3936[_0x5859('0xef')]||_0x5888c7<_0x572eae[_0x5859('0xef')];){const _0x19db11=_0x7a3936[_0x2b2c03]||{},_0x42f8c4=_0x572eae[_0x5888c7]||{};if(_0x19db11['id']==_0x42f8c4['id'])_0x2b2c03++,_0x5888c7++,_0x19523f[_0x5859('0xaf')](_0x19db11);else{if(_0x42f8c4['isRemoved']&&_0x19db11[_0x5859('0x14')]){const {commonTape:_0x327a3b,iEnd:_0x297830,jEnd:_0x43fa82}=this[_0x5859('0x16')](_0x7a3936,_0x2b2c03,_0x572eae,_0x5888c7);_0x19523f=_0x19523f['concat'](_0x327a3b),_0x2b2c03=_0x297830,_0x5888c7=_0x43fa82;}else _0x42f8c4['isRemoved']?(_0x5888c7++,_0x19523f[_0x5859('0xaf')](_0x42f8c4)):(_0x2b2c03++,_0x19523f[_0x5859('0xaf')](_0x19db11));}}return _0x19523f;}['_markSuggestions'](_0x10dd90,_0x1560f8){const _0x134322=[];for(let _0x386c3a=0x0;_0x386c3a<_0x10dd90[_0x5859('0xef')];_0x386c3a++){for(let _0x2cd3bf=0x0;_0x2cd3bf<_0x10dd90[_0x386c3a][_0x5859('0xb3')][_0x5859('0xef')];_0x2cd3bf++){const _0x229048=_0x10dd90[_0x386c3a][_0x5859('0xb3')][_0x2cd3bf];if(!_0x1560f8[_0x5859('0x112')](_0x229048))continue;const {group:_0x56bff1,type:_0x22c130,authorId:_0x21fe7e}=_0x36101b(_0x229048);_0x5859('0xd5')!=_0x56bff1||_0x5859('0x113')!=_0x22c130&&'deletion'!=_0x22c130||(_0x134322['unshift']({'type':_0x22c130,'name':_0x229048,'userId':_0x21fe7e}),_0x10dd90[_0x386c3a]['markersStart'][_0x5859('0x2a')](_0x2cd3bf,0x1),_0x2cd3bf--);}_0x1e4fe7(_0x10dd90[_0x386c3a]);for(let _0x3f46de=0x0;_0x3f46de<_0x10dd90[_0x386c3a]['markersEnd'][_0x5859('0xef')];_0x3f46de++){const _0x716948=_0x10dd90[_0x386c3a][_0x5859('0xbe')][_0x3f46de];if(!_0x1560f8[_0x5859('0x112')](_0x716948))continue;const {group:_0x1ddca2,type:_0x11510c}=_0x36101b(_0x716948);if(_0x5859('0xd5')!=_0x1ddca2||'insertion'!=_0x11510c&&'deletion'!=_0x11510c)continue;_0x10dd90[_0x386c3a]['markersEnd'][_0x5859('0x2a')](_0x3f46de,0x1),_0x3f46de--;const _0x2dda88=_0x134322[_0x5859('0x102')](_0x3ad91c=>_0x3ad91c[_0x5859('0x61')]==_0x716948);_0x2dda88>-0x1&&_0x134322[_0x5859('0x2a')](_0x2dda88,0x1);}}function _0x36101b(_0x4355d2){const _0x25267b=_0x4355d2[_0x5859('0x116')](':');return{'group':_0x25267b[0x0],'type':_0x25267b[0x1],'subType':_0x25267b[_0x5859('0xef')]>=0x5?_0x25267b[0x2]:null,'id':_0x25267b[_0x5859('0xef')]<0x5?_0x25267b[0x2]:_0x25267b[0x3],'authorId':_0x25267b[_0x5859('0xef')]<0x5?_0x25267b[0x3]:_0x25267b[0x4],'markerCount':0x6==_0x25267b[_0x5859('0xef')]?_0x25267b[0x5]:null};}function _0x1e4fe7(_0x3f9395){for(let _0x3c6afd=0x0;_0x3c6afd<_0x134322['length'];_0x3c6afd++){if(_0x3f9395[_0x5859('0x14')]&&_0x5859('0x113')==_0x134322[_0x3c6afd]['type'])return _0x3f9395[_0x5859('0x5c')]=_0x134322[_0x3c6afd],void delete _0x3f9395[_0x5859('0x14')];if(!_0x3f9395[_0x5859('0x14')]&&!_0x3f9395[_0x5859('0x3f')]&&'deletion'==_0x134322[_0x3c6afd][_0x5859('0x4a')])return void(_0x3f9395[_0x5859('0x59')]=_0x134322[_0x3c6afd]);}}}[_0x5859('0x5a')](_0x3ce3cf,_0x5e23f0){let _0x5576d3=0x0,_0x454918=!0x1;const _0x3f0f93=new Map();for(const _0x8ac3d7 of _0x3ce3cf)_0x8ac3d7[_0x5e23f0]?_0x454918&&(_0x5576d3++,_0x454918=!0x1):(_0x5576d3++,_0x454918=!0x0),_0x3f0f93[_0x5859('0xd7')](_0x8ac3d7['id'],_0x5576d3);for(let _0x4ff996=0x0;_0x4ff996<_0x3ce3cf[_0x5859('0xef')];_0x4ff996++){if('isRemoved'==_0x5e23f0&&_0x3ce3cf[_0x4ff996][_0x5859('0x14')]||_0x5859('0x14')==_0x5e23f0&&_0x3ce3cf[_0x4ff996][_0x5859('0x3f')])continue;if(_0x5859('0x5e')==_0x3ce3cf[_0x4ff996][_0x5859('0x4a')]){_0x3ce3cf[_0x4ff996]['distance']=0x0;continue;}const _0x3d0dfb=_0x3f0f93[_0x5859('0xb5')](_0x3ce3cf[_0x4ff996][_0x5859('0x62')]),_0x1f7215=_0x3f0f93[_0x5859('0xb5')](_0x3ce3cf[_0x4ff996]['id']);_0x3ce3cf[_0x4ff996][_0x5859('0xf9')]=_0x3d0dfb-_0x1f7215;}}[_0x5859('0x51')](_0x51d9bd,_0x4c62e8,_0x246bcf=!0x1){const _0x1614f4=[];let _0x59ce58=this['repository']['getIndex'](_0x51d9bd),_0x46de7b=this['repository'][_0x5859('0x3e')](_0x4c62e8);for(-0x1==_0x46de7b&&(_0x46de7b=this['repository']['_revisions']['length'],_0x246bcf=!0x1);_0x59ce58<_0x46de7b;)_0x1614f4['push'](this[_0x5859('0xba')][_0x5859('0xb8')](_0x59ce58)),_0x59ce58++;return _0x246bcf&&_0x1614f4[_0x5859('0xaf')](this['repository']['getRevision'](_0x59ce58)),_0x1614f4;}[_0x5859('0x16')](_0x20f73c,_0x3ac397,_0x46a4ef,_0x53b04e){const _0x58f098=this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0xff')];let _0x37552b=_0x3ac397;for(;_0x20f73c[_0x37552b]&&_0x20f73c[_0x37552b]['isAdded'];)_0x37552b++;let _0x15a554=_0x53b04e;for(;_0x46a4ef[_0x15a554]&&_0x46a4ef[_0x15a554][_0x5859('0x3f')];)_0x15a554++;_0x46f89d(_0x20f73c,_0x3ac397,_0x37552b),_0x46f89d(_0x46a4ef,_0x53b04e,_0x15a554);const _0x197a12=_0x46a4ef[_0x5859('0xf')](_0x53b04e,_0x15a554)[_0x5859('0x79')](_0x20f73c['slice'](_0x3ac397,_0x37552b));return _0x197a12[_0x5859('0x22')]((_0x5521ef,_0x5ba517)=>_0x5521ef['side']!=_0x5ba517[_0x5859('0x2f')]?_0x5521ef[_0x5859('0x2f')]-_0x5ba517[_0x5859('0x2f')]:_0x5521ef['level']!=_0x5ba517[_0x5859('0xf5')]?_0x5521ef[_0x5859('0xf5')]-_0x5ba517[_0x5859('0xf5')]:_0x5521ef[_0x5859('0xf9')]!=_0x5ba517[_0x5859('0xf9')]?_0x5ba517[_0x5859('0xf9')]-_0x5521ef[_0x5859('0xf9')]:!!_0x5521ef[_0x5859('0x14')]!=!!_0x5ba517['isAdded']?-0x1==_0x5521ef[_0x5859('0x2f')]||0x0==_0x5521ef[_0x5859('0x2f')]?_0x5521ef[_0x5859('0x14')]?-0x1:0x1:_0x5521ef['isAdded']?0x1:-0x1:_0x5521ef[_0x5859('0x115')]-_0x5ba517[_0x5859('0x115')]),{'commonTape':_0x197a12,'iEnd':_0x37552b,'jEnd':_0x15a554};function _0x46f89d(_0x7a0911,_0x435e31,_0x245cc3){let _0x5436cb=-0x1,_0x8c1f3b=Number['POSITIVE_INFINITY'],_0x4b79a2=!0x0;for(let _0x1e17e9=_0x435e31;_0x1e17e9<_0x245cc3;_0x1e17e9++)if(_0x58f098[_0x5859('0x77')](_0x7a0911[_0x1e17e9][_0x5859('0xfc')])||(_0x4b79a2=!0x1),_0x7a0911[_0x1e17e9][_0x5859('0xfc')][_0x5859('0x63')]<_0x435e31&&(_0x5436cb=_0x1e17e9),_0x7a0911[_0x1e17e9][_0x5859('0xfc')]['endIndex']>=_0x245cc3){_0x8c1f3b=_0x1e17e9;break;}_0x4b79a2&&(_0x5436cb=_0x245cc3-0x1);for(let _0x493779=_0x435e31;_0x493779<_0x245cc3;_0x493779++)_0x7a0911[_0x493779][_0x5859('0x2f')]=_0x493779<=_0x5436cb?-0x1:_0x493779<_0x8c1f3b?0x0:0x1,_0x7a0911[_0x493779][_0x5859('0x115')]=_0x493779;let _0x1ca393=0x0;for(let _0x21bcf1=_0x435e31;_0x21bcf1<=_0x5436cb;_0x21bcf1++)0x0==_0x7a0911[_0x21bcf1][_0x5859('0xf9')]?_0x7a0911[_0x21bcf1]['level']=_0x1ca393:(_0x1ca393++,_0x7a0911[_0x21bcf1][_0x5859('0xf5')]=_0x1ca393,_0x1ca393++);for(let _0xfd36b7=_0x435e31;_0xfd36b7<_0x245cc3;_0xfd36b7++)0x0==_0x7a0911[_0xfd36b7][_0x5859('0x2f')]&&(_0x7a0911[_0xfd36b7][_0x5859('0xf5')]=_0x1ca393);_0x1ca393=0x0;for(let _0x1c589c=_0x245cc3-0x1;_0x1c589c>=_0x8c1f3b;_0x1c589c--)0x0==_0x7a0911[_0x1c589c]['distance']?_0x7a0911[_0x1c589c][_0x5859('0xf5')]=_0x1ca393:(_0x1ca393--,_0x7a0911[_0x1c589c][_0x5859('0xf5')]=_0x1ca393,_0x1ca393--);}}[_0x5859('0x52')](_0x3254f5){const _0x5452bf=new Map(),_0x442af6=this[_0x5859('0xaa')][_0x5859('0x67')]['schema'];for(let _0x4dbfdd=0x1;_0x4dbfdd<_0x3254f5[_0x5859('0xef')];_0x4dbfdd++){let _0x1ff052,_0x772add,_0xd07fde;const _0x3bce3e=_0x3254f5[_0x4dbfdd],_0x5590bf=_0x3254f5[_0x4dbfdd-0x1];if(_0x5859('0x5e')==_0x3bce3e[_0x5859('0x4a')])continue;if(_0x3bce3e[_0x5859('0x4a')]!=_0x5590bf[_0x5859('0x4a')])continue;if(!_0x442af6[_0x5859('0xfb')](_0x5590bf[_0x5859('0xfc')])||_0x442af6[_0x5859('0x24')](_0x5590bf[_0x5859('0xfc')]))continue;if(!_0x442af6['isBlock'](_0x3bce3e[_0x5859('0xfc')])||_0x442af6[_0x5859('0x24')](_0x3bce3e[_0x5859('0xfc')]))continue;if((_0x3254f5[_0x4dbfdd][_0x5859('0x14')]||_0x3254f5[_0x4dbfdd][_0x5859('0x5c')])&&_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x3f')])_0x1ff052=_0x3254f5[_0x4dbfdd],_0x772add=_0x3254f5[_0x4dbfdd-0x1],_0xd07fde=_0x4dbfdd-0x1;else{if(!_0x3254f5[_0x4dbfdd]['isRemoved']||!_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x14')]&&!_0x3254f5[_0x4dbfdd-0x1][_0x5859('0x5c')])continue;_0x1ff052=_0x3254f5[_0x4dbfdd-0x1],_0x772add=_0x3254f5[_0x4dbfdd],_0xd07fde=_0x4dbfdd;}const _0x459e4f=_0x1ff052[_0x5859('0xf5')]==_0x772add[_0x5859('0xf5')],_0x3be896=Math[_0x5859('0x39')](_0x1ff052['level'])<Math['abs'](_0x772add[_0x5859('0xf5')])&&0x0==_0x772add['distance'];(_0x459e4f||_0x3be896)&&(_0x5452bf[_0x5859('0xd7')](_0x772add['id'],_0x1ff052['id']),_0x3254f5[_0x5859('0x2a')](_0xd07fde,0x1),_0x4dbfdd--,_0x1ff052[_0x5859('0x14')]=!0x1);}for(let _0x57ab10=0x0;_0x57ab10<_0x3254f5['length'];_0x57ab10++)_0x5452bf[_0x5859('0x112')](_0x3254f5[_0x57ab10][_0x5859('0x62')])&&(_0x3254f5[_0x57ab10][_0x5859('0x62')]=_0x5452bf[_0x5859('0xb5')](_0x3254f5[_0x57ab10][_0x5859('0x62')]));}[_0x5859('0x23')](_0x2bc6b3){const _0x5a0eb4=new Set(_0x2bc6b3[_0x5859('0x3b')](_0x4a14f0=>_0x4a14f0['id']));for(let _0x207686=0x0;_0x207686<_0x2bc6b3[_0x5859('0xef')];_0x207686++)_0x5a0eb4['has'](_0x2bc6b3[_0x207686][_0x5859('0x62')])||0x0==_0x2bc6b3[_0x207686][_0x5859('0xf9')]||(_0x2bc6b3[_0x207686][_0x5859('0x41')]=!0x0);return _0x2bc6b3[_0x5859('0x10e')](_0x32987f=>!_0x32987f[_0x5859('0x41')]);}[_0x5859('0xdd')](_0x228916){const _0x24d72c=new Set();for(let _0x26526b=0x0;_0x26526b<_0x228916['length'];_0x26526b++){if(_0x24d72c[_0x5859('0x112')](_0x228916[_0x26526b]['id'])&&_0x228916[_0x26526b]['isRemoved']&&(_0x228916[_0x26526b][_0x5859('0x41')]=!0x0),_0x228916[_0x26526b][_0x5859('0x41')])continue;if(0x0==_0x228916[_0x26526b][_0x5859('0xf9')])continue;if(_0x5859('0x35')!=_0x228916[_0x26526b]['type'])continue;if(null==_0x228916[_0x26526b][_0x5859('0x62')])continue;let _0x48d1d1=_0x26526b+0x1,_0x1c4c30=0x0;for(;_0x228916[_0x48d1d1]['id']!=_0x228916[_0x26526b][_0x5859('0x62')];)'elementStart'==_0x228916[_0x48d1d1]['type']?_0x1c4c30++:'elementEnd'==_0x228916[_0x48d1d1][_0x5859('0x4a')]&&_0x1c4c30--,_0x48d1d1++;if(0x0!=_0x1c4c30){if(_0x228916[_0x26526b][_0x5859('0x3f')])_0x228916[_0x26526b][_0x5859('0x41')]=!0x0;else for(;_0x48d1d1!=_0x26526b;)_0x228916[_0x48d1d1][_0x5859('0x3f')]&&0x0!=_0x228916[_0x48d1d1][_0x5859('0xf9')]&&(_0x228916[_0x48d1d1][_0x5859('0x41')]=!0x0,_0x24d72c['add'](_0x228916[_0x48d1d1][_0x5859('0x62')])),_0x48d1d1--;}}return _0x228916['filter'](_0x25e104=>!_0x25e104[_0x5859('0x41')]);}[_0x5859('0xd6')](_0x453989){const _0x3d0f10=this[_0x5859('0xaa')][_0x5859('0x67')]['schema'];for(let _0x58c8de=0x0;_0x58c8de<_0x453989[_0x5859('0xef')];_0x58c8de++){if(!(_0x453989[_0x58c8de][_0x5859('0x14')]||_0x453989[_0x58c8de][_0x5859('0x5c')]||_0x453989[_0x58c8de][_0x5859('0x3f')]||_0x453989[_0x58c8de][_0x5859('0x59')]))continue;if(0x0==_0x453989[_0x58c8de][_0x5859('0xf9')])continue;const _0x500e98=_0x453989[_0x58c8de][_0x5859('0xfc')];_0x3d0f10[_0x5859('0xfb')](_0x500e98)||_0x3d0f10['isLimit'](_0x500e98)||(_0x453989[_0x58c8de][_0x5859('0x14')]&&delete _0x453989[_0x58c8de][_0x5859('0x14')],_0x453989[_0x58c8de][_0x5859('0x5c')]&&delete _0x453989[_0x58c8de][_0x5859('0x5c')],_0x453989[_0x58c8de][_0x5859('0x59')]&&delete _0x453989[_0x58c8de][_0x5859('0x59')],_0x453989[_0x58c8de]['isRemoved']&&(_0x453989[_0x58c8de][_0x5859('0x41')]=!0x0));}return _0x453989[_0x5859('0x10e')](_0x8aecbc=>!_0x8aecbc[_0x5859('0x41')]);}[_0x5859('0x54')](_0x5e77d1,_0x11746f,_0x578c24){const _0x2b7c75=new _0x5ae4b3(),_0x32ba53=[],_0x1c4313=new Map(),_0x385066=this['editor'][_0x5859('0x67')],_0x2bd1dc=_0x385066[_0x5859('0xff')],_0x4f2942=[_0x2b7c75],_0x348f62={},_0xc23985={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x290384=null;const _0x898c93=[0x0];for(let _0x2ff813=0x0;_0x2ff813<_0x5e77d1[_0x5859('0xef')];_0x2ff813++){let _0x52efe5,_0x1de1e1;if(_0x5859('0x35')===_0x5e77d1[_0x2ff813]['type']){_0x52efe5=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93);const _0x4ade35=new _0x1c5b79(_0x5e77d1[_0x2ff813]['item'][_0x5859('0x61')],_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xe0')]());_0x4f2942[0x0][_0x5859('0x10f')](_0x4ade35),_0x898c93[_0x5859('0xaf')](0x0),_0x4f2942[_0x5859('0xa7')](_0x4ade35),_0x1de1e1=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93),_0x290384=null;}else{if(_0x5859('0x21')===_0x5e77d1[_0x2ff813][_0x5859('0x4a')])_0x4f2942[_0x5859('0x5f')](),_0x52efe5=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93),_0x898c93[_0x5859('0x2e')](),_0x898c93[_0x898c93[_0x5859('0xef')]-0x1]++,_0x1de1e1=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93),_0x290384=null;else{if(_0x52efe5=_0x385066['createPositionFromPath'](_0x2b7c75,_0x898c93),_0x290384&&_0x1f194e(_0x290384,_0x5e77d1[_0x2ff813][_0x5859('0xfc')]))_0x290384[_0x5859('0x80')]+=_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0x11c')];else{const _0x404f6f=new _0xd2c2f(_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0x11c')],_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xe0')]());_0x4f2942[0x0][_0x5859('0x10f')](_0x404f6f),_0x290384=_0x404f6f;}_0x898c93[_0x898c93['length']-0x1]+=_0x5e77d1[_0x2ff813][_0x5859('0xfc')][_0x5859('0xae')],_0x1de1e1=_0x385066[_0x5859('0x53')](_0x2b7c75,_0x898c93);}}for(const _0xb1834a of _0x5e77d1[_0x2ff813][_0x5859('0xb3')])_0x1c4313['set'](_0xb1834a,{'start':_0x52efe5,'end':null});_0x19d9af('isRemoveSuggestion',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isAddSuggestion',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isRemoved',_0x2ff813,_0x52efe5,_0x1de1e1),_0x19d9af('isAdded',_0x2ff813,_0x52efe5,_0x1de1e1);for(const _0x1b997c of _0x5e77d1[_0x2ff813][_0x5859('0xbe')]){_0x1c4313[_0x5859('0xb5')](_0x1b997c)[_0x5859('0xa9')]=_0x1de1e1;}}for(const [_0x3ea78c,_0x3a90d7]of _0x1c4313){const _0x46b3b0=this[_0x5859('0xaa')][_0x5859('0x67')]['createRange'](_0x3a90d7['start'],_0x3a90d7[_0x5859('0xa9')]);_0x2b7c75[_0x5859('0x30')][_0x5859('0xd7')](_0x3ea78c,_0x46b3b0);}return _0x32ba53[_0x5859('0x22')]((_0x105bba,_0x437fa1)=>{const _0x316c8a=_0x2b7c75[_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x105bba['id']),_0x83f199=_0x2b7c75[_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x437fa1['id']);return _0x316c8a[_0x5859('0x27')][_0x5859('0xe9')](_0x83f199[_0x5859('0x27')])?-0x1:_0x316c8a['start'][_0x5859('0xd3')](_0x83f199[_0x5859('0x27')])?0x1:_0x316c8a[_0x5859('0xa9')][_0x5859('0xe9')](_0x83f199[_0x5859('0xa9')])?-0x1:_0x316c8a['end'][_0x5859('0xd3')](_0x83f199[_0x5859('0xa9')])?0x1:'add'===_0x105bba[_0x5859('0x4a')]?-0x1:0x1;}),{'root':_0x2b7c75,'changes':_0x32ba53};function _0x19d9af(_0x2889af,_0x1fe24b,_0x2de5c4,_0x23b621){const _0x163dfb=!!_0x5e77d1[_0x1fe24b][_0x2889af],_0x2f0d8e=_0x163dfb?_0x5e77d1[_0x1fe24b][_0x2889af][_0x5859('0xc2')]:null,_0x4a892c=_0x1fe24b===_0x5e77d1[_0x5859('0xef')]-0x1,_0x30f8c5=_0xc23985[_0x2889af][0x0],_0x2a654d=_0x2bd1dc['isObject'](_0x5e77d1[_0x1fe24b][_0x5859('0xfc')]);!_0x348f62[_0x2889af]&&_0x163dfb?_0x348f62[_0x2889af]={'start':_0x2de5c4,'tapeItem':_0x5e77d1[_0x1fe24b],'userId':_0x2f0d8e,'type':_0x2889af}:_0x348f62[_0x2889af]&&!_0x163dfb?(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x2de5c4,_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]=null):_0x348f62[_0x2889af]&&_0x163dfb&&_0x348f62[_0x2889af][_0x5859('0xc2')]!==_0x2f0d8e&&(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x2de5c4,_0x30f8c5&&_0x30f8c5[_0x5859('0xc2')]===_0x348f62[_0x2889af]['userId']||_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]={'start':_0x2de5c4,'tapeItem':_0x5e77d1[_0x1fe24b],'userId':_0x2f0d8e,'type':_0x2889af}),_0x348f62[_0x2889af]&&_0x2a654d&&(_0x5859('0x35')!==_0x5e77d1[_0x1fe24b][_0x5859('0x4a')]||_0x30f8c5&&_0x30f8c5[_0x5859('0xc2')]===_0x2f0d8e||_0xc23985[_0x2889af][_0x5859('0xa7')]({'userId':_0x2f0d8e,'object':_0x5e77d1[_0x1fe24b]['item'],'change':_0x348f62[_0x2889af]}),_0x5859('0x21')===_0x5e77d1[_0x1fe24b]['type']&&_0x30f8c5&&_0x30f8c5[_0x5859('0xd2')]===_0x5e77d1[_0x1fe24b]['item']&&(_0xc23985[_0x2889af][_0x5859('0x5f')](),_0x348f62[_0x2889af]=_0x30f8c5[_0x5859('0x45')])),_0x348f62[_0x2889af]&&_0x4a892c&&(_0x348f62[_0x2889af][_0x5859('0xa9')]=_0x23b621,_0x514160(_0x348f62[_0x2889af]),_0x348f62[_0x2889af]=null);}function _0x514160({start:_0x56b34e,end:_0x46f7ef,tapeItem:_0x20c810,userId:_0x47587b,type:_0x315c07}){const _0x3b660b=_0x20c810[_0x5859('0xfc')],_0x14adb8=_0x385066[_0x5859('0xff')][_0x5859('0xfb')](_0x3b660b)&&!_0x385066[_0x5859('0xff')][_0x5859('0x24')](_0x3b660b),_0x318c13=_0x56b34e[_0x5859('0x38')]==_0x46f7ef[_0x5859('0xd4')]&&_0x46f7ef[_0x5859('0xd1')];if(_0x14adb8&&_0x318c13)return;const _0x42c6a7=_0x385066[_0x5859('0x10')](_0x56b34e,_0x46f7ef),_0x21f071=_0x11746f['get'](_0x47587b),_0x378120=new _0x31e9c7({'author':_0x21f071,'type':_0x5859('0x14')==_0x315c07||_0x5859('0x5c')==_0x315c07?_0x5859('0x28'):_0x5859('0xb6'),'data':{'isSuggestion':_0x5859('0x5c')==_0x315c07||_0x5859('0x59')==_0x315c07},'createdAt':new Date(),'rootName':_0x578c24});_0x32ba53[_0x5859('0xaf')](_0x378120),_0x2b7c75[_0x5859('0x30')]['set'](_0x5859('0x17')+_0x378120['id'],_0x42c6a7);}function _0x1f194e(_0x590d19,_0x5a1b0c){const _0x5282ef=_0x590d19[_0x5859('0xe0')](),_0x387cc1=_0x5a1b0c[_0x5859('0xe0')]();for(const _0x54b116 of _0x5282ef){if(_0x54b116[0x1]!==_0x5a1b0c[_0x5859('0x56')](_0x54b116[0x0]))return!0x1;_0x387cc1['next']();}return _0x387cc1[_0x5859('0x3d')]()['done'];}}[_0x5859('0xf7')](){this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('upcast')['dataToMarker']({'view':_0x5859('0x29')}),this[_0x5859('0xaa')][_0x5859('0xb0')]['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x27771e=>{const _0x3c2578=_0x27771e[_0x5859('0x7b')][_0x5859('0x116')](':')[0x1],_0x12f2f4=this[_0x5859('0x88')](_0x3c2578);if(!_0x12f2f4)return null;const _0x262ec1=_0x5859('0x28')==_0x12f2f4[_0x5859('0x4a')]?'insertion':'deletion',_0x17e37d=['ck-suggestion-marker','ck-suggestion-marker-'+_0x262ec1];return _0x12f2f4[_0x5859('0x11c')][_0x5859('0x47')]&&_0x17e37d[_0x5859('0xaf')](_0x5859('0x9b')+_0x262ec1+_0x5859('0xcf')),this['activeChange']==_0x12f2f4&&_0x17e37d['push']('ck-suggestion-marker--active'),{'classes':_0x17e37d,'attributes':{'data-change-id':_0x3c2578}};}}),this['editor'][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))['add'](_0x464dbf=>{_0x464dbf['on'](_0x5859('0x7f'),(_0x4ce6bd,_0x47fa15,_0x7f0ac6)=>{const _0x2b8d92=_0x47fa15[_0x5859('0xc0')][_0x5859('0x1b')](0x0);if(!_0x2b8d92||!_0x2b8d92['is']('element','code'))return;if(!_0x7f0ac6[_0x5859('0xfe')][_0x5859('0x9f')](_0x2b8d92,{'attributes':[_0x5859('0xa6'),'vid_end']}))return;const _0x35c9c6=_0x47fa15[_0x5859('0x1e')][_0x5859('0x27')]['nodeAfter'];_0x7f0ac6[_0x5859('0x6e')][_0x5859('0x105')](_0x5859('0xa6'),_0x2b8d92['getAttribute'](_0x5859('0xa6')),_0x35c9c6),_0x7f0ac6[_0x5859('0x6e')][_0x5859('0x105')]('vid_end',_0x2b8d92[_0x5859('0x56')]('vid_end'),_0x35c9c6);},{'priority':'low'});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0x28')](_0x513502=>{_0x513502['on']('element',(_0x470223,_0x932a5a,_0xb701b7)=>{if(!_0xb701b7[_0x5859('0xfe')][_0x5859('0x9f')](_0x932a5a[_0x5859('0xc0')],{'attributes':['vid_start','vid_end']}))return;if(_0x932a5a[_0x5859('0x1e')]['isCollapsed'])return;const _0x44a9cf=_0x932a5a['modelRange'][_0x5859('0x27')][_0x5859('0x38')];_0x44a9cf[_0x5859('0xed')](_0x5859('0xa6'))||_0x44a9cf[_0x5859('0xed')](_0x5859('0x49'))||(_0xb701b7['writer'][_0x5859('0x105')](_0x5859('0xa6'),_0x932a5a[_0x5859('0xc0')]['getAttribute'](_0x5859('0xa6')),_0x44a9cf),_0xb701b7[_0x5859('0x6e')][_0x5859('0x105')](_0x5859('0x2c'),_0x932a5a[_0x5859('0xc0')][_0x5859('0x56')]('vid_end'),_0x44a9cf));},{'priority':_0x5859('0x18')});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0x95')]({'view':{'name':_0x5859('0x55'),'attributes':{'vid':!0x0}},'model':{'key':_0x5859('0x49'),'value':_0x12c004=>_0x12c004[_0x5859('0x56')](_0x5859('0x49'))}}),this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0xff')]['on'](_0x5859('0xca'),(_0x4ba9c7,[,_0x47cc15])=>{[_0x5859('0xa6'),'vid_end',_0x5859('0x49')][_0x5859('0xee')](_0x47cc15)&&(_0x4ba9c7['return']=!0x0,_0x4ba9c7[_0x5859('0x11f')]());},{'priority':_0x5859('0xf3')}),this['editor'][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x26'))[_0x5859('0x28')](_0x4d4601=>{_0x4d4601['on']('attribute:vid',(_0xaa1a21,_0x4a5d6d,_0x2a6cc8)=>{if('\x20'!=_0x4a5d6d['item'][_0x5859('0x11c')]||_0x4a5d6d[_0x5859('0xfc')][_0x5859('0xd4')][_0x5859('0x11a')]>0x1)return;if(!_0x2a6cc8[_0x5859('0xfe')][_0x5859('0x9f')](_0x4a5d6d['item'],_0xaa1a21[_0x5859('0x61')]))return;const _0x11601d=_0x2a6cc8['writer'],_0x1eccd4=_0x2a6cc8[_0x5859('0xc3')]['toViewRange'](_0x4a5d6d[_0x5859('0x2b')]);_0x11601d['wrap'](_0x1eccd4,_0x11601d['createAttributeElement'](_0x5859('0x55')));});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('dataDowncast')[_0x5859('0x97')]({'model':_0x5859('0x29')}),this[_0x5859('0xaa')]['editing']['downcastDispatcher']['on'](_0x5859('0x10a'),function(_0x27f9f4){const _0x2eeb0d=_0x27f9f4[_0x5859('0xa')][_0x5859('0xb5')](_0x5859('0xcd'));return(_0x4bd0d6,_0x4bcafb,_0x4d9b71)=>{const _0x1d0fee=_0x4bcafb[_0x5859('0x7b')][_0x5859('0x116')](':')[0x1],_0x2858ff=_0x2eeb0d['_getChangeFromId'](_0x1d0fee);if(!_0x2858ff)return null;const _0x42eaba=_0x5859('0x28')==_0x2858ff[_0x5859('0x4a')]?'split':_0x5859('0x10d');if(!_0x4d9b71[_0x5859('0xfe')][_0x5859('0x9e')](_0x4bcafb[_0x5859('0x8a')],_0x4bd0d6[_0x5859('0x61')]))return;const _0x2a4aa3=_0x4bcafb[_0x5859('0x8a')][_0x5859('0x3')](),_0x1660dc=_0x4bcafb[_0x5859('0x8a')][_0x5859('0x27')],_0x2da316=_0x27f9f4[_0x5859('0x67')]['schema'];let _0x112a64=null,_0x564fa6=null,_0x4b194f=!0x1,_0xfc4a7c=!0x1;for(const _0x46656e of _0x2a4aa3){const _0x55a5dc=_0x46656e[_0x5859('0xfc')];_0x4b194f=_0x4b194f||_0x2da316['isContent'](_0x55a5dc);const _0x1f0e4e=_0x4d9b71[_0x5859('0xc3')][_0x5859('0x6d')](_0x55a5dc);if(_0x1f0e4e&&_0x1f0e4e['getCustomProperty'](_0x5859('0xcb')))return;_0x5859('0x21')==_0x46656e[_0x5859('0x4a')]&&(_0x2da316[_0x5859('0xfb')](_0x55a5dc)&&!_0x2da316[_0x5859('0x24')](_0x55a5dc)&&(_0x55a5dc[_0x5859('0x89')]||_0x1660dc['isAtEnd']?_0x112a64&&_0x112a64['parent']==_0x55a5dc||(_0x112a64=_0x55a5dc,_0x39b4cb(_0x46656e[_0x5859('0x6')]),_0xfc4a7c=!0x0):_0x564fa6=_0x564fa6||_0x46656e[_0x5859('0x6')]));}function _0x39b4cb(_0x123814){const _0x5bda41=_0x4d9b71[_0x5859('0x6e')][_0x5859('0xa1')]('span',{'class':'ck-suggestion-marker-'+_0x42eaba}),_0x365653=_0x4d9b71[_0x5859('0xc3')][_0x5859('0xc5')](_0x123814);_0x2858ff[_0x5859('0x11c')]['isSuggestion']&&_0x4d9b71[_0x5859('0x6e')][_0x5859('0x120')](_0x5859('0x9b')+_0x42eaba+_0x5859('0xcf'),_0x5bda41),_0x2eeb0d['activeChange']==_0x2858ff&&_0x4d9b71[_0x5859('0x6e')]['addClass'](_0x5859('0x13'),_0x5bda41),_0x4d9b71[_0x5859('0x6e')]['insert'](_0x365653,_0x5bda41),_0x4d9b71['mapper'][_0x5859('0xe4')](_0x5bda41,_0x4bcafb[_0x5859('0x7b')]);}_0x4b194f||_0xfc4a7c||!_0x564fa6||_0x39b4cb(_0x564fa6);};}(this[_0x5859('0xaa')]),{'priority':'high'}),this[_0x5859('0xaa')]['editing']['downcastDispatcher']['on'](_0x5859('0xa5'),(_0x2a8053,_0x6ff939,_0x59dd00)=>{const _0x1d6305=_0x59dd00['mapper'][_0x5859('0x6b')](_0x6ff939['markerName']);if(_0x1d6305)for(const _0x2d368b of _0x1d6305)(_0x2d368b[_0x5859('0x37')](_0x5859('0xea'))||_0x2d368b[_0x5859('0x37')](_0x5859('0x121')))&&(_0x59dd00[_0x5859('0xc3')][_0x5859('0xa8')](_0x2d368b,_0x6ff939[_0x5859('0x7b')]),_0x59dd00[_0x5859('0x6e')][_0x5859('0xb6')](_0x2d368b));},{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on'](_0x5859('0x10a'),(_0x5af706,_0x174d53,_0x487493)=>{const _0x2a027d=_0x174d53['markerName'][_0x5859('0x116')](':')[0x1],_0x2a4aba=this[_0x5859('0x88')](_0x2a027d);if(!_0x2a4aba)return null;const _0x3b0769=_0x5859('0x28')==_0x2a4aba[_0x5859('0x4a')]?_0x5859('0x116'):_0x5859('0x10d');if(_0x487493[_0x5859('0xfe')]['test'](_0x174d53[_0x5859('0x8a')],_0x5af706[_0x5859('0x61')]))for(const _0x446c47 of _0x174d53['markerRange'][_0x5859('0x117')]()){if(!_0x446c47['is'](_0x5859('0xe1'),_0x5859('0x107')))continue;const _0x1171da=_0x487493[_0x5859('0x6e')]['createUIElement'](_0x5859('0x55'),{'class':_0x5859('0x9b')+_0x3b0769}),_0x59c87d=_0x487493['mapper'][_0x5859('0xc5')](this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x2d')](_0x446c47));_0x2a4aba['data'][_0x5859('0x47')]&&_0x487493[_0x5859('0x6e')][_0x5859('0x120')](_0x5859('0x9b')+_0x3b0769+_0x5859('0xcf'),_0x1171da),this[_0x5859('0x10c')]==_0x2a4aba&&_0x487493['writer']['addClass'](_0x5859('0x13'),_0x1171da),_0x487493[_0x5859('0x6e')][_0x5859('0x8')](_0x59c87d,_0x1171da),_0x487493[_0x5859('0xc3')]['bindElementToMarker'](_0x1171da,_0x174d53['markerName']);}},{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')]['on']('change',()=>{this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0xcc')]['change'](_0x34f572=>{for(const _0x246558 of this[_0x5859('0xaa')]['model'][_0x5859('0x5b')][_0x5859('0xd9')]()){const _0x35c19a=this[_0x5859('0xaa')][_0x5859('0x67')]['document'][_0x5859('0x8c')](_0x246558),_0x3900e4=this[_0x5859('0xaa')][_0x5859('0x76')]['view']['document']['getRoot'](_0x246558);if(_0x3900e4){const _0x51a0d5=_0x35c19a[_0x5859('0x56')](_0x5859('0x108'));if(_0x34f572['removeAttribute'](_0x5859('0x111'),_0x3900e4),_0x34f572['removeClass'](_0x5859('0xbb'),_0x3900e4),_0x34f572['removeClass']('ck-revision-history-root-remove',_0x3900e4),_0x34f572[_0x5859('0xab')]('ck-revision-history-root--active',_0x3900e4),_0x51a0d5){const _0x30f4fb=this[_0x5859('0x88')](_0x51a0d5);if(!_0x30f4fb)return null;_0x34f572[_0x5859('0x105')](_0x5859('0x111'),_0x51a0d5,_0x3900e4),_0x34f572[_0x5859('0x120')](_0x5859('0x85')+_0x30f4fb[_0x5859('0x4a')],_0x3900e4),this['activeChange']==_0x30f4fb&&_0x34f572['addClass'](_0x5859('0xe8'),_0x3900e4);}}}});}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')]('upcast')[_0x5859('0xde')]({'view':_0x5859('0x7a'),'model':_0x1b5d52=>_0x5859('0xbc')+_0x1b5d52,'converterPriority':_0x5859('0xf3')}),this[_0x5859('0xaa')][_0x5859('0xb0')][_0x5859('0x9d')](_0x5859('0x4c'))[_0x5859('0xde')]({'view':_0x5859('0x8f'),'model':_0xcbff38=>'revision-suggestion:'+_0xcbff38,'converterPriority':'highest'}),this[_0x5859('0xaa')]['conversion']['for'](_0x5859('0x26'))[_0x5859('0x97')]({'model':_0x5859('0xd5'),'view':_0x3f457c=>({'name':_0x5859('0x81')+_0x3f457c,'group':'revision-suggestion'}),'converterPriority':_0x5859('0xf3')}),this['editor'][_0x5859('0xb0')]['for'](_0x5859('0x4'))['markerToHighlight']({'model':_0x5859('0xd5'),'view':_0x2129ad=>{const _0x577f2b=_0x2129ad['markerName'][_0x5859('0x116')](':')[0x1];return _0x5859('0x113')!=_0x577f2b&&'deletion'!=_0x577f2b?null:{'classes':[_0x5859('0xb'),_0x5859('0x9')+_0x577f2b]};}}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on']('addMarker:revision-suggestion:deletion',et(this[_0x5859('0xaa')],_0x5859('0x10d')),{'priority':'high'}),this['editor'][_0x5859('0x76')][_0x5859('0x73')]['on'](_0x5859('0xf1'),et(this[_0x5859('0xaa')],'split'),{'priority':_0x5859('0x46')}),this[_0x5859('0xaa')][_0x5859('0x76')][_0x5859('0x73')]['on']('removeMarker:revision-suggestion',(_0x4cd766,_0x260247,_0x31a468)=>{const _0x20cb3d=_0x31a468[_0x5859('0xc3')][_0x5859('0x6b')](_0x260247[_0x5859('0x7b')]);if(_0x20cb3d)for(const _0x1fd772 of _0x20cb3d)_0x1fd772['is'](_0x5859('0xc4'))&&(_0x31a468['mapper'][_0x5859('0xa8')](_0x1fd772,_0x260247[_0x5859('0x7b')]),_0x31a468[_0x5859('0x6e')]['remove'](_0x1fd772));},{'priority':'high'});}[_0x5859('0x88')](_0x587c48){return this[_0x5859('0x60')]['get'](_0x587c48);}[_0x5859('0xe5')](_0x30b3c8){return this['_changeView']&&this[_0x5859('0x4d')]['destroy'](),this[_0x5859('0x4d')]=new _0xbeef29(this['editor'][_0x5859('0xe7')],_0x30b3c8),this[_0x5859('0x4d')];}[_0x5859('0x65')](){this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x5b')][_0x5859('0x7')]['observeMarkers'](_0x5859('0x29')),this['on'](_0x5859('0xb2'),(_0x187616,_0x3335f3,_0x3eb193,_0x1ce59e)=>{_0x1ce59e&&this[_0x5859('0xce')][_0x5859('0xb6')](_0x1ce59e),_0x3eb193&&(this[_0x5859('0xce')]['add']({'view':_0x3eb193,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3368a4=this[_0x5859('0xaa')][_0x5859('0x76')],_0x1d9833=this['_getChangeFromId'](_0x3eb193[_0x5859('0x48')]);let _0x39b50c;if(_0x1d9833[_0x5859('0x11c')][_0x5859('0x57')]){const _0x3c8d1d=_0x3368a4[_0x5859('0xcc')]['getDomRoot'](_0x1d9833[_0x5859('0x6c')]);_0x39b50c=Array[_0x5859('0x8d')](_0x3c8d1d['getClientRects']());}else{const _0x34d8c4=this['editor']['model'][_0x5859('0x30')][_0x5859('0xb5')](_0x5859('0x17')+_0x3eb193['changeId']);_0x39b50c=Array[_0x5859('0x8d')](_0x3368a4['mapper'][_0x5859('0x6b')](_0x34d8c4['name']))[_0x5859('0x3b')](_0x40a9c1=>_0x3368a4[_0x5859('0xcc')]['domConverter'][_0x5859('0x34')](_0x40a9c1))[_0x5859('0x3b')](_0x5019b3=>Array[_0x5859('0x8d')](_0x5019b3[_0x5859('0x104')]()))['flat']();}if(!this[_0x5859('0xa4')])return _0x39b50c[0x0];return _0x39b50c[_0x5859('0x1f')](_0x32e2d8=>_0x32e2d8[_0x5859('0x1d')]-0x3<=this['_activeViewTarget']['y']&&_0x32e2d8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x32e2d8[_0x5859('0xad')]-0x3<=this[_0x5859('0xa4')]['x']&&_0x32e2d8[_0x5859('0x66')]+0x3>=this['_activeViewTarget']['x'])||_0x39b50c[0x0];}}}),this[_0x5859('0xce')][_0x5859('0x87')](_0x5859('0x68')));}),this['on'](_0x5859('0x58'),(_0x1d1e8a,_0x3d0037,_0x7e47f2,_0x27178e)=>{this[_0x5859('0xc7')]=_0x7e47f2?this[_0x5859('0xe5')](_0x7e47f2):null,this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x45')](()=>{const _0x20b26f=this[_0x5859('0xaa')]['editing'];_0x27178e&&(_0x27178e[_0x5859('0x11c')]['isOnRoot']?_0x20b26f['view'][_0x5859('0x45')](_0x2c1d25=>{_0x2c1d25['removeClass'](_0x5859('0xe8'),_0x20b26f[_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x8c')](_0x27178e[_0x5859('0x6c')]));}):_0x20b26f[_0x5859('0x3a')](_0x5859('0x17')+_0x27178e['id'])),_0x7e47f2&&(_0x7e47f2['data']['isOnRoot']?_0x20b26f[_0x5859('0xcc')][_0x5859('0x45')](_0x22bcf2=>{_0x22bcf2[_0x5859('0x120')](_0x5859('0xe8'),_0x20b26f[_0x5859('0xcc')][_0x5859('0x5b')][_0x5859('0x8c')](_0x7e47f2[_0x5859('0x6c')]));}):_0x20b26f[_0x5859('0x3a')](_0x5859('0x17')+_0x7e47f2['id']));});}),this[_0x5859('0x0')](this['editor']['editing'][_0x5859('0xcc')]['document'],_0x5859('0xeb'),(_0xecbf1f,_0x12214d)=>{if(this[_0x5859('0x10c')])return;const _0x4abda7=this['_findChangeIdFromDomTarget'](_0x12214d[_0x5859('0x7c')]),_0x5e3184=this[_0x5859('0x60')][_0x5859('0xb5')](_0x4abda7);_0x5e3184?(this[_0x5859('0xa4')]={'x':_0x12214d['domEvent']['x'],'y':_0x12214d[_0x5859('0x11e')]['y']},this[_0x5859('0xc7')]=this[_0x5859('0xe5')](_0x5e3184)):(this[_0x5859('0xa4')]=null,this[_0x5859('0xc7')]=null);}),this[_0x5859('0x0')](this[_0x5859('0xaa')][_0x5859('0x76')]['view']['document'],_0x5859('0x4e'),(_0x588d72,_0x45f105)=>{const _0x5bc9cb=this[_0x5859('0x9c')](_0x45f105[_0x5859('0x7c')]),_0x103bde=this['_changeIdToChange']['get'](_0x5bc9cb);_0x103bde?(this[_0x5859('0xa4')]={'x':_0x45f105['domEvent']['x'],'y':_0x45f105[_0x5859('0x11e')]['y']},_0x103bde===this[_0x5859('0x10c')]?this[_0x5859('0xce')][_0x5859('0x90')]():this[_0x5859('0x10c')]=_0x103bde):(this['_activeViewTarget']=null,this[_0x5859('0x10c')]=null);});}['_findChangeIdFromDomTarget'](_0x3e261f){do{const _0x46d276=_0x3e261f[_0x5859('0x56')]('data-change-id');if(_0x46d276)return _0x46d276;_0x3e261f=_0x3e261f[_0x5859('0xd4')];}while(_0x3e261f);return null;}['_cleanMarkers'](){this[_0x5859('0xaa')][_0x5859('0x67')][_0x5859('0x45')](_0x2c1611=>{for(const _0x2adb8b of this['editor'][_0x5859('0x67')]['markers'])_0x2c1611[_0x5859('0x11b')](_0x2adb8b);});}}function et(_0x23ef96,_0x23f7a8){return(_0x2cf7f1,_0x10f71c,_0x15ad98)=>{if(!_0x15ad98[_0x5859('0xfe')][_0x5859('0x9e')](_0x10f71c[_0x5859('0x8a')],_0x2cf7f1[_0x5859('0x61')]))return;const _0x1b922c=_0x10f71c['markerRange'][_0x5859('0x3')](),_0x4fc342=_0x10f71c['markerRange'][_0x5859('0x27')],_0x20261d=_0x23ef96[_0x5859('0x67')][_0x5859('0xff')];let _0x2e453a=null,_0x5f538a=null,_0x558b0c=!0x1,_0x2068fe=!0x1;for(const _0x283652 of _0x1b922c){const _0x381d9a=_0x283652[_0x5859('0xfc')];_0x558b0c=_0x558b0c||_0x20261d[_0x5859('0x50')](_0x381d9a);const _0x484e1e=_0x15ad98['mapper'][_0x5859('0x6d')](_0x381d9a);if(_0x484e1e&&_0x484e1e[_0x5859('0x44')]('addHighlight'))return;_0x5859('0x21')==_0x283652[_0x5859('0x4a')]&&(_0x20261d[_0x5859('0xfb')](_0x381d9a)&&!_0x20261d[_0x5859('0x24')](_0x381d9a)&&(_0x381d9a[_0x5859('0x89')]||_0x4fc342[_0x5859('0x119')]?_0x2e453a&&_0x2e453a[_0x5859('0xd4')]==_0x381d9a||(_0x2e453a=_0x381d9a,_0x41c99d(_0x283652[_0x5859('0x6')]),_0x2068fe=!0x0):_0x5f538a=_0x5f538a||_0x283652[_0x5859('0x6')]));}function _0x41c99d(_0x1f890d){const _0x7dfe5f=_0x15ad98[_0x5859('0xc3')][_0x5859('0xc5')](_0x1f890d),_0x3c9f3e=_0x15ad98[_0x5859('0x6e')][_0x5859('0xa1')]('span',{'class':_0x5859('0x9')+_0x23f7a8});_0x15ad98[_0x5859('0x6e')]['insert'](_0x7dfe5f,_0x3c9f3e),_0x15ad98[_0x5859('0xc3')][_0x5859('0xe4')](_0x3c9f3e,_0x10f71c[_0x5859('0x7b')]);}_0x558b0c||_0x2068fe||!_0x5f538a||_0x41c99d(_0x5f538a);};}export class RestoreRevisionCommand extends _0x4034ce{constructor(_0x379ed3){super(_0x379ed3);const _0xb1b445=_0x379ed3[_0x5859('0xa')][_0x5859('0xb5')](d);this[_0x5859('0x83')]=!0x1,this[_0x5859('0x0')](_0xb1b445,_0x5859('0xd0'),()=>this['refresh']()),this['listenTo'](_0xb1b445,'change:isEnabled',()=>this[_0x5859('0x1a')]());}[_0x5859('0x4f')](){const _0x13cb84=this[_0x5859('0xaa')],_0x938076=_0x13cb84[_0x5859('0xa')][_0x5859('0xb5')](d),_0x370422=_0x938076[_0x5859('0x12')]?_0x938076[_0x5859('0x94')][_0x5859('0x40')]:null;_0x13cb84['config'][_0x5859('0xb5')](_0x5859('0xb1'))[_0x5859('0x11')](_0x370422);}[_0x5859('0x1a')](){const {isReady:_0x43ba79,isEnabled:_0x4b002c}=this[_0x5859('0xaa')]['plugins'][_0x5859('0xb5')](d);this[_0x5859('0xfd')]=_0x43ba79&&_0x4b002c;}}export class ShowChangeCommand extends _0x4034ce{constructor(_0xb9a75c,{direction:_0x9e70e2}){super(_0xb9a75c);const _0x3c9a8d=_0xb9a75c[_0x5859('0xa')][_0x5859('0xb5')](d);this[_0x5859('0x83')]=!0x1,this[_0x5859('0x91')]=_0x5859('0x15')===_0x9e70e2?0x1:-0x1,this[_0x5859('0x0')](_0x3c9a8d,_0x5859('0xd0'),()=>this[_0x5859('0x1a')]()),this[_0x5859('0x0')](_0x3c9a8d,_0x5859('0x4b'),()=>this[_0x5859('0x1a')]()),this[_0x5859('0x0')](_0x3c9a8d,'change:activeChange',()=>this[_0x5859('0x1a')]());}['execute'](){const _0xc3523c=this[_0x5859('0xaa')],_0x270ebf=_0xc3523c[_0x5859('0xa')][_0x5859('0xb5')](d),{isNavigationMode:_0xee6536,currentChangeNumber:_0x2f3abb}=_0x270ebf;let _0x2cdf0a;if(_0x270ebf[_0x5859('0x10c')]=_0xee6536?_0x270ebf[_0x5859('0x94')]['changes'][_0x5859('0xb5')](_0x2f3abb+this['_step']):_0x270ebf[_0x5859('0x94')][_0x5859('0x7e')]['first'],_0x270ebf[_0x5859('0x10c')][_0x5859('0x11c')]['isOnRoot'])_0x2cdf0a=_0xc3523c[_0x5859('0x76')][_0x5859('0xcc')]['getDomRoot'](_0x270ebf[_0x5859('0x10c')][_0x5859('0x6c')]);else{const _0x232d3e=_0xc3523c[_0x5859('0x67')]['markers'][_0x5859('0xb5')](_0x5859('0x17')+_0x270ebf[_0x5859('0x10c')]['id']);_0x2cdf0a=_0x5a0b75(_0xc3523c['editing'],_0x232d3e);}_0x5cbda3({'target':_0x2cdf0a,'viewportOffset':0x28});}[_0x5859('0x1a')](){const {isNavigationMode:_0x568de6,currentChangeNumber:_0x7740f8,numberOfChanges:_0x422a78,isReady:_0x11eb63,isEnabled:_0x4c6730}=this['editor'][_0x5859('0xa')][_0x5859('0xb5')](d);this['isEnabled']=!!(_0x4c6730&&_0x11eb63&&_0x422a78)&&(!_0x568de6||(0x1===this[_0x5859('0x91')]?_0x7740f8<_0x422a78-0x1:_0x7740f8>0x0));}}
|
|
23
|
+
const _0x595f=['getRevisionData','parse','ck-suggestion-marker-merge','attributes','data-change-id','change:numberOfChanges','_joinTapes','addRevision','change:activeView','removeAttribute','observeMarkers','hasClass','split','compare','createPositionBefore','_makeTape','loadRevisionData','init','abs','isAtStart','_cleanUp','createRevision','_removeUnsupportedChanges','changes','_threeWayMerge','modelRange','elementToAttribute','dataDowncast','element','isReady','unshift','refresh','revisionHistoryAttachChange','merge','showPreviousChange','writer','for','add','isAddSuggestion','high','next','_appendChild','wrap','hasAttribute','revisionHistoryLabel','splice','clear','dataToMarker','_setChanges','markerNameToElements','forEach','_setConversion','domConverter','addMarker:revision-suggestion:insertion','_getViewForChange','destroy','bindElementToMarker','_revisions','pairId','isOnRoot','selection','offsetSize','forceDisabled','setAttribute','removeMarker','isRemoveSuggestion','activeView','suggestion','isObject','from','_getChangeFromId','ck-suggestion-marker-','attachChange','revision-comment:','map','softBreak','_findChangeIdFromDomTarget','level','ck-revision-history-root--active','document','change:activeChange','done','isLimit','getItems','change','maxOffset','stop','isContent','test','RevisionViewer','createUIElement','getClientRects','findIndex','flat','_changeIdToChange','_changeView','isAttached','restoreRevision','indexOf','createPositionFromPath','_markSuggestions','isAtEnd','adapter','POSITIVE_INFINITY','detachRoot','string','remove','comment','getAttributes','isAdded','resolve','text','oldRevisionId','showStack','vid_end','vid','highest','_removeRevisionMarkers','revisionHistory','set','_removeMissingPairs','-new','slice','authors','toData','start','conversion','editing','getRootNames','revision-viewer','getIndex','item','revision-suggestion','then','data','_cleanMarkers','shift','toViewElement','config','vid_start','revision-end','elementEnd','attributesBefore','length','markersEnd','insertion','viewItem','nextSibling','consumable','default','change:isEnabled','startIndex','isEqual','model','removeMarker:revision','_refreshStartEndIndex','nodeAfter','mapper','domEvent','getDomRoot','ck-revision-history-root-remove','target','_setDistance','newRevisionId','delete','filter','removeMarker:revision-suggestion','markerName','low','backward','return','requires','isRemoved','markerToHighlight','affectsData','upcast','addMarker:revision-suggestion:deletion','markerRange','find','_markMismatchedRemovedTags','range','span','isEnabled','right','removeClass','downcastDispatcher','markersStart','_data','top','editingDowncast','editor','suggestion:','markers','_initInteractions','commands','children','ck-suggestion-marker--active','previousPosition','distance','_markInsertions','addClass','_fixObsoleteTags','has','startsWith','sort','first','concat','addMarker:revision','reconvertMarker','keys','insert','getRevisionRootsAttributes','end','isSuggestion','getWalker','elementStart','diff','plugins','mousedown','diffData','listenTo','revision','attributesAfter','_activeViewTarget','_processTape','isCollapsed','unbindElementFromMarkerName','_update','useFillerType','isBefore','createRange','endIndex','_markMarkers','getRoot','updatePosition','mouseover','isAfter','schema','consume','forward','revision-start','enqueueChange','_getRevisionsRange','isIncorrect','pop','deletions','rootName','all','push','userId','_getDiff','numberOfChanges','ck-editor__editable__overlay','getAttribute','side','values','get','addHighlight','ck-revision-history-root-add','_makeModelFromTape','_balloon','isNavigationMode','element:pre','addRevisionData','mapViewToDom','index','toViewPosition','processor','revision:','name','data-revision-','collaboration.channelId','execute','catch','repository','nextPosition','_makeModelFromViewString','view','pluginName','ck-suggestion-marker','activeChange','insertions','roots','createAttributeElement','isBlock','addRoot','bind','type','parent','change:isReady','_getViewObj','markerToData','ck-suggestion-preview-marker-','getRevision','deletion'];(function(_0x55b73e,_0x595f31){const _0x572611=function(_0x1681f6){while(--_0x1681f6){_0x55b73e['push'](_0x55b73e['shift']());}};_0x572611(++_0x595f31);}(_0x595f,0x1cc));const _0x5726=function(_0x55b73e,_0x595f31){_0x55b73e=_0x55b73e-0x0;let _0x572611=_0x595f[_0x55b73e];return _0x572611;};import{Plugin as _0x59e17b,Command as _0x5b6897}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x51bcee}from'ckeditor5/src/utils';import{ContextualBalloon as _0xc979e9}from'ckeditor5/src/ui';import{DocumentFragment as _0x2772c1,Element as _0x1af282,Text as _0x59a7ea,ViewDocumentFragment as _0x1aad8d,ViewText as _0x30fa61,ViewElement as _0x1ce631,ViewContainerElement as _0x549e1,ViewAttributeElement as _0x141d6f,ViewEmptyElement as _0x567668,ViewRawElement as _0x41c265,ViewUIElement as _0x5a9354}from'ckeditor5/src/engine';import{Users as _0x580426,getMarkerDomElement as _0x53aa82}from'ckeditor5-collaboration/src/collaboration-core';import _0x347ed5 from'./ui/revisionviewer/changedetailsview';import _0x30f951 from'./revisionsrepository';import _0x80f3b2 from'./changeitem';import{default as _0x417e02}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3fd7d9}from'lodash-es';const tt={'c':_0x549e1,'a':_0x141d6f,'e':_0x567668,'r':_0x41c265,'u':_0x5a9354};export default class d extends _0x59e17b{static get[_0x5726('0x71')](){return _0x5726('0xdb');}static get[_0x5726('0x6')](){return[_0x580426,_0xc979e9,_0x30f951];}constructor(_0x2aceb6){super(_0x2aceb6),this[_0x5726('0x6d')]=this['editor'][_0x5726('0x34')]['get']('RevisionsRepository'),this[_0x5726('0xf9')](_0x5726('0x73'),null),this[_0x5726('0xf9')]('activeView',null),this[_0x5726('0x3a')]=null,this['set'](_0x5726('0x33'),null),this['set'](_0x5726('0x9f'),!0x1),this[_0x5726('0xf9')]('isEnabled',!0x0),this['on'](_0x5726('0x118'),(_0x18d67a,_0x1b9854,_0x2a3876)=>{this[_0x5726('0x73')]=null,this[_0x5726('0xc4')]=null,this[_0x5726('0x19')]['editing'][_0x5726('0x70')][_0x5726('0xd6')](_0x3d689e=>{for(const _0x35aa9f of this[_0x5726('0x19')][_0x5726('0x101')][_0x5726('0x70')][_0x5726('0xd1')][_0x5726('0x75')])_0x2a3876?_0x3d689e[_0x5726('0x13')](_0x5726('0x57'),_0x35aa9f):_0x3d689e[_0x5726('0x23')]('ck-editor__editable__overlay',_0x35aa9f);});}),this[_0x5726('0x79')](_0x5726('0x60'))['to'](this,'activeChange',_0x14454e=>null!==_0x14454e),this[_0x5726('0x79')]('currentChangeNumber')['to'](this,_0x5726('0x9f'),this,_0x5726('0x33'),this,_0x5726('0x73'),(_0x45eaf4,_0x7264c5,_0x3e3814)=>_0x45eaf4&&_0x3e3814?_0x7264c5[_0x5726('0x99')]['getIndex'](_0x3e3814):0x0),this['bind'](_0x5726('0x56'))['to'](this,'isReady',this,_0x5726('0x33'),(_0x178a04,_0x2a457f)=>_0x178a04?_0x2a457f[_0x5726('0x99')][_0x5726('0x111')]:0x0),this[_0x5726('0xe1')]=null,this[_0x5726('0xe0')]=new Map(),this[_0x5726('0xe8')]=null,this[_0x5726('0x5f')]=this[_0x5726('0x19')][_0x5726('0x34')]['get'](_0xc979e9);}[_0x5726('0x93')](){const _0x1038c5=this['editor'],_0x583460=new ShowChangeCommand(_0x1038c5,{'direction':_0x5726('0x4')}),_0x217947=new ShowChangeCommand(_0x1038c5,{'direction':_0x5726('0x4a')});(_0x1038c5[_0x5726('0x1d')][_0x5726('0xa7')](_0x5726('0xa4'),_0x583460),_0x1038c5[_0x5726('0x1d')][_0x5726('0xa7')]('showNextChange',_0x217947),_0x1038c5[_0x5726('0x1d')][_0x5726('0xa7')](_0x5726('0xe3'),new RestoreRevisionCommand(_0x1038c5)),this['on'](_0x5726('0x87'),()=>{_0x583460[_0x5726('0xa1')](),_0x217947['refresh']();}),this[_0x5726('0xb5')](),this[_0x5726('0x1c')](),_0x1038c5['enableReadOnlyMode']('revision-viewer'),_0x1038c5['plugins']['has']('WidgetToolbarRepository'))&&_0x1038c5['plugins'][_0x5726('0x5b')]('WidgetToolbarRepository')[_0x5726('0xc0')](_0x5726('0x103'));}async[_0x5726('0x82')](_0x4534d9){await this['loadRevisionData'](_0x4534d9);const _0x64dd28={};for(const _0xa99933 in _0x4534d9[_0x5726('0x36')]){if(_0x4534d9[_0x5726('0x36')][_0xa99933][_0x5726('0xca')]&&!_0x4534d9[_0x5726('0x36')][_0xa99933][_0x5726('0xca')][_0x5726('0xe2')])continue;const _0x51bfba=this[_0x5726('0xf7')](JSON[_0x5726('0x83')](_0x4534d9[_0x5726('0x36')][_0xa99933][_0x5726('0x74')])),_0x2498fa=this[_0x5726('0x19')][_0x5726('0x101')]['view']['document'],_0x1feaa4=new _0x1aad8d(_0x2498fa,_0x51bfba[_0x5726('0xcc')](_0x25b311=>this[_0x5726('0x7d')](_0x25b311)));this[_0x5726('0x19')][_0x5726('0x108')]['processor'][_0x5726('0x3f')]('marked'),_0x64dd28[_0xa99933]=this[_0x5726('0x19')]['data'][_0x5726('0x66')][_0x5726('0xfe')](_0x1feaa4),this[_0x5726('0x19')][_0x5726('0x108')][_0x5726('0x66')][_0x5726('0x3f')](_0x5726('0x117'));}return _0x64dd28;}async[_0x5726('0x2e')](_0x8ba0d1){await this[_0x5726('0x92')](_0x8ba0d1);const _0x150231={};for(const _0x4936d4 in _0x8ba0d1[_0x5726('0x36')])_0x8ba0d1[_0x5726('0x36')][_0x4936d4][_0x5726('0xca')]&&!_0x8ba0d1[_0x5726('0x36')][_0x4936d4][_0x5726('0xca')][_0x5726('0xe2')]||(_0x150231[_0x4936d4]=_0x8ba0d1['diffData'][_0x4936d4][_0x5726('0x39')]||{});return _0x150231;}['_removeRevisionMarkers'](_0x4fd9a1){return(_0x4fd9a1=_0x4fd9a1[_0x5726('0x0')](_0x4fcda8=>!_0x4fcda8[_0x5726('0x68')]||_0x5726('0x4b')!==_0x4fcda8['name']&&_0x5726('0x10e')!==_0x4fcda8[_0x5726('0x68')]))[_0x5726('0xb4')](_0x4403f6=>{_0x5726('0xeb')!=typeof _0x4403f6&&(_0x4403f6[_0x5726('0x1e')]=this['_removeRevisionMarkers'](_0x4403f6['children']),_0x4403f6[_0x5726('0x85')]=_0x4403f6[_0x5726('0x85')][_0x5726('0x0')](_0x46bbd0=>!_0x46bbd0[0x0]['startsWith'](_0x5726('0x69'))));}),_0x4fd9a1;}async[_0x5726('0x8f')](_0x4fbb55,_0x4b1a52,_0xd2e655=!0x1){if(!this[_0x5726('0x11')])return;const _0x13dcd8=this[_0x5726('0x33')],_0x4c51d6=this['repository'],_0x3653f3=_0x5726('0xeb')==typeof _0x4fbb55?_0x4c51d6[_0x5726('0x80')](_0x4fbb55):_0x4fbb55,_0x1280bc=_0x5726('0xeb')==typeof _0x4b1a52?_0x4c51d6[_0x5726('0x80')](_0x4b1a52):_0x4b1a52,_0x1c3ec2=_0x3653f3['id'],_0x5016a3=_0x1280bc?_0x1280bc['id']:null;if(!_0xd2e655&&this['diff']&&this['diff'][_0x5726('0x125')]===_0x1c3ec2&&this['diff'][_0x5726('0xf2')]===_0x5016a3)return Promise['resolve']();this[_0x5726('0x9f')]=!0x1,this[_0x5726('0xc4')]=null,this[_0x5726('0x73')]=null,this[_0x5726('0x33')]=new _0x417e02(_0x1c3ec2,_0x5016a3);const _0x124127=this[_0x5726('0x4d')](_0x3653f3,_0x1280bc,!0x0)[_0x5726('0xcc')](_0x542d9e=>this[_0x5726('0x92')](_0x542d9e));return _0x124127[_0x5726('0x53')](new Promise(_0x1e29c8=>{setTimeout(_0x1e29c8,0x14);})),Promise[_0x5726('0x52')](_0x124127)[_0x5726('0x107')](()=>{if(!this[_0x5726('0x11')])return;this['_cleanUp']();const _0x41a99a=this[_0x5726('0x55')](_0x1c3ec2,_0x5016a3);for(const _0x26de4d of _0x41a99a[_0x5726('0x99')])this[_0x5726('0xe0')][_0x5726('0xf9')](_0x26de4d['id'],_0x26de4d);this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0x4c')]({'isUndoable':!0x1},_0x242a81=>{for(const _0x1aec62 of this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0xd1')][_0x5726('0x102')]())_0x242a81[_0x5726('0xea')](_0x1aec62);for(const _0x2e2300 of Object[_0x5726('0x2c')](_0x41a99a[_0x5726('0x11b')])){const _0x265d9c=_0x242a81[_0x5726('0x78')](_0x2e2300);for(const _0x48497e of Object[_0x5726('0x2c')](_0x41a99a[_0x5726('0x85')][_0x2e2300]))_0x242a81[_0x5726('0xc1')](_0x48497e,_0x41a99a['attributes'][_0x2e2300][_0x48497e],_0x265d9c);_0x242a81[_0x5726('0x2d')](_0x41a99a[_0x5726('0x11b')][_0x2e2300],_0x265d9c,0x0);}}),this[_0x5726('0x33')][_0x5726('0xb2')](this['_sortAndFilterDiffChanges'](_0x41a99a['changes'])),this[_0x5726('0x9f')]=!0x0;})[_0x5726('0x6c')](_0x28b563=>{console['error'](_0x28b563),this[_0x5726('0x96')](),_0x13dcd8&&(this[_0x5726('0x33')]=_0x13dcd8),this[_0x5726('0x9f')]=!0x0;});}[_0x5726('0x62')](_0x1f87b4,_0x52f7cc){const _0x156085=this['repository'][_0x5726('0x97')](_0x1f87b4);return _0x156085['on'](_0x5726('0x3e'),(_0xb866c1,_0x1010a6,_0x33b489)=>_0x52f7cc(_0x1010a6,_0x33b489,_0x156085)),this[_0x5726('0x6d')][_0x5726('0x89')](_0x156085),_0x156085;}[_0x5726('0x92')](_0x456aca){if(!_0x456aca||_0x456aca[_0x5726('0x36')])return Promise[_0x5726('0xf0')]();{const _0xea4664=this[_0x5726('0x19')][_0x5726('0x10c')][_0x5726('0x5b')](_0x5726('0x6a'));return this[_0x5726('0xe8')]['getRevision']({'channelId':_0xea4664,'revisionId':_0x456aca['id']})[_0x5726('0x107')](_0x4c8587=>{_0x456aca[_0x5726('0x3e')]({'diffData':_0x4c8587[_0x5726('0x36')]},!0x0);});}}[_0x5726('0x96')](){this[_0x5726('0x73')]=null,this[_0x5726('0x109')](),this[_0x5726('0xe1')]&&this[_0x5726('0xe1')][_0x5726('0xb9')](),this[_0x5726('0xe1')]=null,this['_changeIdToChange'][_0x5726('0xb0')](),this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0x4c')]({'isUndoable':!0x1},_0x509fb9=>{for(const _0x282a39 of this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0xd1')][_0x5726('0x102')]())_0x509fb9[_0x5726('0xea')](_0x282a39);});}['_sortAndFilterDiffChanges'](_0x31cf13){const _0x5682e8=[],_0x2f5ca6=new Map();for(const _0x1cbbf0 of this[_0x5726('0x19')]['model'][_0x5726('0xd1')][_0x5726('0x102')]()){const _0x3165ba=this[_0x5726('0x19')]['editing'][_0x5726('0x70')]['getDomRoot'](_0x1cbbf0);if(!_0x3165ba)continue;const _0x2565df=_0x3165ba[_0x5726('0xdd')]()[_0x5726('0x105')](0x0);_0x2565df&&(_0x5682e8[_0x5726('0x53')](_0x1cbbf0),_0x2f5ca6[_0x5726('0xf9')](_0x1cbbf0,_0x2565df));}return _0x5682e8[_0x5726('0x27')]((_0x28fa59,_0x2229f3)=>{const _0x3899d2=_0x2f5ca6[_0x5726('0x5b')](_0x28fa59),_0x5aa6c7=_0x2f5ca6['get'](_0x2229f3);return _0x3899d2['y']-_0x5aa6c7['y']||_0x3899d2['x']-_0x5aa6c7['x'];}),(_0x31cf13=_0x31cf13[_0x5726('0x0')](_0x5ec880=>_0x5682e8['includes'](_0x5ec880[_0x5726('0x51')])))[_0x5726('0x27')]((_0x5d1fda,_0x4cedbe)=>_0x5682e8[_0x5726('0xe4')](_0x5d1fda[_0x5726('0x51')])-_0x5682e8[_0x5726('0xe4')](_0x4cedbe[_0x5726('0x51')])),_0x31cf13;}[_0x5726('0x91')](_0x4d0d5a){const _0x26750c=Array[_0x5726('0xc7')](_0x4d0d5a['markers'])['filter'](([_0xc22db5,_0x44ca91])=>_0xc22db5[_0x5726('0x26')](_0x5726('0x67'))&&!_0x44ca91[_0x5726('0x3c')]),_0x2f9f3b=Array[_0x5726('0xc7')](this[_0x5726('0x19')][_0x5726('0x11b')]['createRangeIn'](_0x4d0d5a)[_0x5726('0x31')]({'singleCharacters':!0x0}));if(0x0!=_0x26750c['length'])for(const _0x4b9435 of _0x2f9f3b){const [_0x288772,_0x2ab0f9]=_0x26750c[0x0],[,_0x28ad15,_0x26a82c]=_0x288772[_0x5726('0x8e')](':');if(_0x2ab0f9[_0x5726('0x2f')][_0x5726('0x11a')](_0x4b9435['nextPosition'])&&_0x26750c[_0x5726('0x10a')](),(_0x4b9435[_0x5726('0x20')]['isEqual'](_0x2ab0f9[_0x5726('0xff')])||_0x4b9435[_0x5726('0x20')][_0x5726('0x47')](_0x2ab0f9['start']))&&('insertion'==_0x28ad15?_0x4b9435[_0x5726('0xef')]={'userId':_0x26a82c}:_0x5726('0x81')==_0x28ad15&&(_0x4b9435['isRemoved']={'userId':_0x26a82c})),0x0==_0x26750c[_0x5726('0x111')])break;}return _0x2f9f3b;}['_refreshStartEndIndex'](_0x2465ad){const _0x3e61ac=new Map();for(let _0x1df508=0x0;_0x1df508<_0x2465ad[_0x5726('0x111')];_0x1df508++)'text'===_0x2465ad[_0x1df508]['type']?(_0x2465ad[_0x1df508]['item'][_0x5726('0x119')]=_0x1df508,_0x2465ad[_0x1df508][_0x5726('0x105')][_0x5726('0x42')]=_0x1df508):('elementStart'===_0x2465ad[_0x1df508][_0x5726('0x7a')]?_0x2465ad[_0x1df508][_0x5726('0x105')][_0x5726('0x119')]=_0x1df508:'elementEnd'===_0x2465ad[_0x1df508][_0x5726('0x7a')]&&(_0x2465ad[_0x1df508][_0x5726('0x105')]['endIndex']=_0x1df508),_0x3e61ac[_0x5726('0xf9')](_0x2465ad[_0x1df508]['id'],_0x1df508));for(const _0x46b5d2 of _0x3e61ac[_0x5726('0x5a')]())_0x5726('0x32')===_0x2465ad[_0x46b5d2]['type']?_0x2465ad[_0x46b5d2]['item'][_0x5726('0x42')]=_0x3e61ac[_0x5726('0x5b')](_0x2465ad[_0x46b5d2][_0x5726('0xbc')]):'elementEnd'===_0x2465ad[_0x46b5d2]['type']&&(_0x2465ad[_0x46b5d2]['item']['startIndex']=_0x3e61ac[_0x5726('0x5b')](_0x2465ad[_0x46b5d2]['pairId']));}[_0x5726('0x3b')](_0x44360a){for(let _0x1dbfab=0x0;_0x1dbfab<_0x44360a[_0x5726('0x111')];_0x1dbfab++){if(_0x5726('0x32')===_0x44360a[_0x1dbfab]['type'])_0x44360a[_0x1dbfab]['item'][_0x5726('0x119')]=_0x1dbfab;else{if(_0x5726('0x10f')===_0x44360a[_0x1dbfab][_0x5726('0x7a')]){_0x44360a[_0x1dbfab]['item'][_0x5726('0x42')]=_0x1dbfab;const _0x51c586=_0x44360a[_0x1dbfab]['item'][_0x5726('0x119')];_0x44360a[_0x51c586][_0x5726('0xbc')]=_0x44360a[_0x1dbfab]['id'],_0x44360a[_0x1dbfab][_0x5726('0xbc')]=_0x44360a[_0x51c586]['id'];}else _0x44360a[_0x1dbfab][_0x5726('0x105')]['startIndex']=_0x1dbfab,_0x44360a[_0x1dbfab][_0x5726('0x105')][_0x5726('0x42')]=_0x1dbfab,_0x44360a[_0x1dbfab][_0x5726('0xbc')]=null;}_0x44360a[_0x1dbfab][_0x5726('0x15')]||(_0x44360a[_0x1dbfab][_0x5726('0x15')]=[],_0x44360a[_0x1dbfab][_0x5726('0x112')]=[]);}}['_markInsertions'](_0x2bf505,_0x5d06cc){const _0x99188a=_0x2bf505[_0x5726('0x0')](_0x24a604=>!_0x24a604['isAdded']);for(let _0x229022=0x0;_0x229022<_0x5d06cc['length'];_0x229022++)_0x5d06cc[_0x229022]['isAdded']&&(_0x99188a[_0x229022]['isAdded']=_0x5d06cc[_0x229022]['isAdded']);}['_makeModelFromViewString'](_0x4e4d21){const _0xbb460d=JSON[_0x5726('0x83')](_0x4e4d21),_0x355b7a=this[_0x5726('0x19')][_0x5726('0x101')][_0x5726('0x70')][_0x5726('0xd1')],_0x208e01=new _0x1aad8d(_0x355b7a,_0xbb460d[_0x5726('0xcc')](_0x2ad3c5=>this['_getViewObj'](_0x2ad3c5)));return this[_0x5726('0x19')][_0x5726('0x108')]['toModel'](_0x208e01);}[_0x5726('0x7d')](_0x5bcae9){const _0x1eddbd=this[_0x5726('0x19')][_0x5726('0x101')][_0x5726('0x70')][_0x5726('0xd1')];if('string'==typeof _0x5bcae9)return new _0x30fa61(_0x1eddbd,_0x5bcae9);{const _0x27b16f=_0x5bcae9[_0x5726('0x1e')][_0x5726('0xcc')](_0x11a551=>this['_getViewObj'](_0x11a551));return new(tt[_0x5bcae9[(_0x5726('0x7a'))]]||_0x1ce631)(_0x1eddbd,_0x5bcae9['name'],_0x5bcae9[_0x5726('0x85')],_0x27b16f);}}[_0x5726('0x55')](_0xf14d5e,_0x319181=null){const _0x54b753=this['repository']['getRevision'](_0xf14d5e),_0x2a8227=_0x319181?this[_0x5726('0x6d')][_0x5726('0x80')](_0x319181):null,_0x5cd65a=this[_0x5726('0x4d')](_0x54b753,_0x2a8227),_0x357f75=_0x5cd65a[_0x5cd65a['length']-0x1],_0x4059f9=new Map(),_0xe2bd4d={'model':{},'attributes':{},'changes':[]},_0xed8e3c=new Set(),_0x3218e9=new Map();for(let _0x1f17a3=_0x5cd65a[_0x5726('0x111')]-0x1;_0x1f17a3>=0x0;_0x1f17a3--){const _0x107148=_0x5cd65a[_0x1f17a3];for(const _0xec56b of Object['keys'](_0x107148['diffData']))if(_0x107148['diffData'][_0xec56b]['attachChange']){const _0x4f704e=_0x107148[_0x5726('0x36')][_0xec56b][_0x5726('0xca')];_0x4f704e[_0x5726('0xe2')]?(_0xed8e3c['add'](_0xec56b),_0x3218e9[_0x5726('0x25')](_0xec56b)&&_0x3218e9[_0x5726('0x5b')](_0xec56b)[_0x5726('0x54')]==_0x4f704e[_0x5726('0x54')]?_0x3218e9[_0x5726('0x126')](_0xec56b):_0x3218e9['set'](_0xec56b,_0x4f704e)):_0x3218e9[_0x5726('0x25')](_0xec56b)?(_0xed8e3c[_0x5726('0x126')](_0xec56b),_0x3218e9[_0x5726('0x126')](_0xec56b)):(_0xed8e3c[_0x5726('0xa7')](_0xec56b),_0x3218e9['set'](_0xec56b,_0x4f704e));}else _0xed8e3c[_0x5726('0xa7')](_0xec56b);}for(const _0x5886f5 of _0xed8e3c){const _0x40cd25=_0x3218e9[_0x5726('0x25')](_0x5886f5)&&!_0x3218e9[_0x5726('0x5b')](_0x5886f5)[_0x5726('0xe2')];let _0x247db5=_0x40cd25?_0x5cd65a[_0x5726('0x111')]-0x1:0x0;const _0x47c91f=_0x40cd25?-0x1:0x1;for(;_0x5cd65a[_0x247db5];){const _0x236e3e=_0x5cd65a[_0x247db5];if(_0x236e3e['diffData'][_0x5886f5]){const _0x5e1b07=_0x40cd25?_0x236e3e[_0x5726('0x36')][_0x5886f5][_0x5726('0x110')]:_0x236e3e[_0x5726('0x36')][_0x5886f5][_0x5726('0x39')];_0xe2bd4d[_0x5726('0x85')][_0x5886f5]=_0x5e1b07?_0x3fd7d9(_0x5e1b07):{};break;}_0x247db5+=_0x47c91f;}}for(const _0x65accf of _0x5cd65a){_0x65accf[_0x5726('0x11b')]={};for(const _0x6136ec of _0x65accf[_0x5726('0xfd')])_0x4059f9[_0x5726('0xf9')](_0x6136ec['id'],_0x6136ec);for(const _0x7c6a8c of _0xed8e3c){const _0x124293=_0x65accf['diffData'][_0x7c6a8c]?_0x65accf[_0x5726('0x36')][_0x7c6a8c][_0x5726('0x74')]:'[]',_0x20bbe=_0x65accf[_0x5726('0x36')][_0x7c6a8c]?_0x65accf[_0x5726('0x36')][_0x7c6a8c][_0x5726('0x50')]:'[]';_0x65accf[_0x5726('0x11b')][_0x7c6a8c]={'insertions':this[_0x5726('0x6f')](_0x124293),'deletions':this['_makeModelFromViewString'](_0x20bbe)};}}for(const _0x92fe4d of _0xed8e3c){let _0x35a20b=null,_0x1d585f=0x0;const _0x362cf4=new Map(Array[_0x5726('0xc7')](_0x54b753[_0x5726('0x11b')][_0x92fe4d][_0x5726('0x74')][_0x5726('0x1b')])[_0x5726('0x0')](([_0x34327a])=>!_0x34327a[_0x5726('0x26')](_0x5726('0x67'))));let _0x541a8a=0x0;for(const _0x36d78f of _0x5cd65a){const _0x3fd1d4=this[_0x5726('0x91')](_0x36d78f[_0x5726('0x11b')][_0x92fe4d]['insertions']);_0x36d78f==_0x54b753?(_0x35a20b=_0x3fd1d4,_0x1d585f=_0x35a20b[_0x5726('0x111')],_0x35a20b[_0x5726('0xb4')](_0x136c4d=>{_0x136c4d['id']=_0x541a8a++;}),this[_0x5726('0x3b')](_0x35a20b)):this[_0x5726('0x22')](_0x35a20b,_0x3fd1d4);const _0x483dfe=_0x35a20b[_0x5726('0x0')](_0x3e3ee6=>!_0x3e3ee6[_0x5726('0xef')])['map'](_0x2af95c=>_0x2af95c['id']);let _0x37af79=0x0;const _0x10869b=this[_0x5726('0x91')](_0x36d78f[_0x5726('0x11b')][_0x92fe4d]['deletions']);_0x10869b[_0x5726('0xb4')](_0x26c36b=>{_0x26c36b[_0x5726('0x7')]?_0x26c36b['id']=_0x1d585f++:_0x26c36b['id']=_0x483dfe[_0x37af79++];}),this['_processTape'](_0x10869b),this[_0x5726('0x124')](_0x35a20b,_0x5726('0xef')),this['_setDistance'](_0x10869b,_0x5726('0x7')),_0x36d78f==_0x54b753&&this[_0x5726('0x43')](_0x35a20b,_0x362cf4),_0x35a20b=this[_0x5726('0x88')](_0x35a20b,_0x10869b),this[_0x5726('0x11d')](_0x35a20b),this[_0x5726('0x124')](_0x35a20b,'isRemoved');}_0x35a20b=_0x35a20b['filter'](_0x253f1e=>!(_0x253f1e[_0x5726('0xef')]&&_0x253f1e['isRemoved']));const _0x2db744=new Map(_0x357f75[_0x5726('0x11b')][_0x92fe4d]['deletions'][_0x5726('0x1b')]),_0x2df7ce=new Set(_0x362cf4[_0x5726('0x2c')]());for(const _0x2f95a3 of _0x2db744[_0x5726('0x2c')]())_0x2df7ce[_0x5726('0x126')](_0x2f95a3);this[_0x5726('0xe6')](_0x35a20b,_0x2df7ce),this[_0x5726('0x24')](_0x35a20b),_0x35a20b=this[_0x5726('0xfa')](_0x35a20b),_0x35a20b=this[_0x5726('0xe')](_0x35a20b),_0x35a20b=this[_0x5726('0x98')](_0x35a20b);const {root:_0x7c8367,changes:_0x19cd0b}=this[_0x5726('0x5e')](_0x35a20b,_0x4059f9,_0x92fe4d);_0xe2bd4d[_0x5726('0x11b')][_0x92fe4d]=_0x7c8367;const _0x3053cb=_0x3218e9[_0x5726('0x5b')](_0x92fe4d);if(_0x3053cb){const _0x10affd=_0x4059f9[_0x5726('0x5b')](_0x3053cb['userId']),_0x4dc0fa=new _0x80f3b2({'author':_0x10affd,'type':_0x3053cb['isAttached']?_0x5726('0xa7'):_0x5726('0xec'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x92fe4d});_0x19cd0b['unshift'](_0x4dc0fa),_0xe2bd4d['attributes'][_0x92fe4d][_0x5726('0xa2')]=_0x4dc0fa['id'];}_0xe2bd4d['changes']=_0xe2bd4d[_0x5726('0x99')][_0x5726('0x29')](_0x19cd0b);}return _0xe2bd4d;}['_markMarkers'](_0x45e359,_0x49cbfd){for(let _0x20a056=0x0;_0x20a056<_0x45e359[_0x5726('0x111')];_0x20a056++)for(const [_0x55363f,_0x27807a]of _0x49cbfd)_0x27807a['start']['isEqual'](_0x45e359[_0x20a056][_0x5726('0x20')])&&_0x45e359[_0x20a056][_0x5726('0x15')][_0x5726('0x53')](_0x55363f),_0x27807a['end'][_0x5726('0x11a')](_0x45e359[_0x20a056][_0x5726('0x6e')])&&_0x45e359[_0x20a056][_0x5726('0x112')]['push'](_0x55363f);}['_joinTapes'](_0xf5b6c6,_0x5bf217){let _0x33991e=[],_0x17fed6=0x0,_0x286bcb=0x0;for(;_0x17fed6<_0xf5b6c6[_0x5726('0x111')]||_0x286bcb<_0x5bf217[_0x5726('0x111')];){const _0x816fe0=_0xf5b6c6[_0x17fed6]||{},_0x4ba5bf=_0x5bf217[_0x286bcb]||{};if(_0x816fe0['id']==_0x4ba5bf['id'])_0x17fed6++,_0x286bcb++,_0x33991e[_0x5726('0x53')](_0x816fe0);else{if(_0x4ba5bf[_0x5726('0x7')]&&_0x816fe0[_0x5726('0xef')]){const {commonTape:_0x56a833,iEnd:_0x4b8c7d,jEnd:_0x4f58e4}=this[_0x5726('0x9a')](_0xf5b6c6,_0x17fed6,_0x5bf217,_0x286bcb);_0x33991e=_0x33991e[_0x5726('0x29')](_0x56a833),_0x17fed6=_0x4b8c7d,_0x286bcb=_0x4f58e4;}else _0x4ba5bf[_0x5726('0x7')]?(_0x286bcb++,_0x33991e[_0x5726('0x53')](_0x4ba5bf)):(_0x17fed6++,_0x33991e['push'](_0x816fe0));}}return _0x33991e;}[_0x5726('0xe6')](_0x36849e,_0x4004c7){const _0x5bc294=[];for(let _0x3cdc4c=0x0;_0x3cdc4c<_0x36849e[_0x5726('0x111')];_0x3cdc4c++){for(let _0x1809e0=0x0;_0x1809e0<_0x36849e[_0x3cdc4c][_0x5726('0x15')][_0x5726('0x111')];_0x1809e0++){const _0x58a228=_0x36849e[_0x3cdc4c][_0x5726('0x15')][_0x1809e0];if(!_0x4004c7[_0x5726('0x25')](_0x58a228))continue;const {group:_0x542aae,type:_0x27d4ae,authorId:_0x4a83de}=_0x3fbaf6(_0x58a228);_0x5726('0x106')!=_0x542aae||_0x5726('0x113')!=_0x27d4ae&&_0x5726('0x81')!=_0x27d4ae||(_0x5bc294[_0x5726('0xa0')]({'type':_0x27d4ae,'name':_0x58a228,'userId':_0x4a83de}),_0x36849e[_0x3cdc4c][_0x5726('0x15')][_0x5726('0xaf')](_0x1809e0,0x1),_0x1809e0--);}_0x536fb0(_0x36849e[_0x3cdc4c]);for(let _0x3064a8=0x0;_0x3064a8<_0x36849e[_0x3cdc4c]['markersEnd'][_0x5726('0x111')];_0x3064a8++){const _0x2f2329=_0x36849e[_0x3cdc4c][_0x5726('0x112')][_0x3064a8];if(!_0x4004c7[_0x5726('0x25')](_0x2f2329))continue;const {group:_0x3b5dd6,type:_0xa14df0}=_0x3fbaf6(_0x2f2329);if(_0x5726('0x106')!=_0x3b5dd6||_0x5726('0x113')!=_0xa14df0&&_0x5726('0x81')!=_0xa14df0)continue;_0x36849e[_0x3cdc4c]['markersEnd'][_0x5726('0xaf')](_0x3064a8,0x1),_0x3064a8--;const _0x36825d=_0x5bc294[_0x5726('0xde')](_0x1cdb4e=>_0x1cdb4e[_0x5726('0x68')]==_0x2f2329);_0x36825d>-0x1&&_0x5bc294['splice'](_0x36825d,0x1);}}function _0x3fbaf6(_0x1fad92){const _0x302e4e=_0x1fad92[_0x5726('0x8e')](':');return{'group':_0x302e4e[0x0],'type':_0x302e4e[0x1],'subType':_0x302e4e['length']>=0x5?_0x302e4e[0x2]:null,'id':_0x302e4e[_0x5726('0x111')]<0x5?_0x302e4e[0x2]:_0x302e4e[0x3],'authorId':_0x302e4e[_0x5726('0x111')]<0x5?_0x302e4e[0x3]:_0x302e4e[0x4],'markerCount':0x6==_0x302e4e[_0x5726('0x111')]?_0x302e4e[0x5]:null};}function _0x536fb0(_0x463323){for(let _0x2db953=0x0;_0x2db953<_0x5bc294[_0x5726('0x111')];_0x2db953++){if(_0x463323['isAdded']&&_0x5726('0x113')==_0x5bc294[_0x2db953]['type'])return _0x463323['isAddSuggestion']=_0x5bc294[_0x2db953],void delete _0x463323[_0x5726('0xef')];if(!_0x463323['isAdded']&&!_0x463323[_0x5726('0x7')]&&_0x5726('0x81')==_0x5bc294[_0x2db953]['type'])return void(_0x463323[_0x5726('0xc3')]=_0x5bc294[_0x2db953]);}}}[_0x5726('0x124')](_0x4dd4ae,_0x53b3a1){let _0x33edc7=0x0,_0x59d984=!0x1;const _0x3e0152=new Map();for(const _0x4c3dc1 of _0x4dd4ae)_0x4c3dc1[_0x53b3a1]?_0x59d984&&(_0x33edc7++,_0x59d984=!0x1):(_0x33edc7++,_0x59d984=!0x0),_0x3e0152[_0x5726('0xf9')](_0x4c3dc1['id'],_0x33edc7);for(let _0x1a199f=0x0;_0x1a199f<_0x4dd4ae[_0x5726('0x111')];_0x1a199f++){if(_0x5726('0x7')==_0x53b3a1&&_0x4dd4ae[_0x1a199f][_0x5726('0xef')]||_0x5726('0xef')==_0x53b3a1&&_0x4dd4ae[_0x1a199f]['isRemoved'])continue;if(_0x5726('0xf1')==_0x4dd4ae[_0x1a199f][_0x5726('0x7a')]){_0x4dd4ae[_0x1a199f][_0x5726('0x21')]=0x0;continue;}const _0x1c51e1=_0x3e0152[_0x5726('0x5b')](_0x4dd4ae[_0x1a199f][_0x5726('0xbc')]),_0x3ac709=_0x3e0152['get'](_0x4dd4ae[_0x1a199f]['id']);_0x4dd4ae[_0x1a199f][_0x5726('0x21')]=_0x1c51e1-_0x3ac709;}}[_0x5726('0x4d')](_0x86b120,_0x83cbe0,_0x5b45e4=!0x1){const _0x4c60ce=[];let _0x10b532=this[_0x5726('0x6d')]['getIndex'](_0x86b120),_0x2216a5=this[_0x5726('0x6d')][_0x5726('0x104')](_0x83cbe0);for(-0x1==_0x2216a5&&(_0x2216a5=this[_0x5726('0x6d')][_0x5726('0xbb')][_0x5726('0x111')],_0x5b45e4=!0x1);_0x10b532<_0x2216a5;)_0x4c60ce['push'](this[_0x5726('0x6d')][_0x5726('0x80')](_0x10b532)),_0x10b532++;return _0x5b45e4&&_0x4c60ce[_0x5726('0x53')](this[_0x5726('0x6d')][_0x5726('0x80')](_0x10b532)),_0x4c60ce;}[_0x5726('0x9a')](_0x1f0537,_0x14aabc,_0x86b2be,_0x3faa9a){const _0x33b0a9=this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0x48')];let _0x43949f=_0x14aabc;for(;_0x1f0537[_0x43949f]&&_0x1f0537[_0x43949f][_0x5726('0xef')];)_0x43949f++;let _0x3160d0=_0x3faa9a;for(;_0x86b2be[_0x3160d0]&&_0x86b2be[_0x3160d0][_0x5726('0x7')];)_0x3160d0++;_0xe69424(_0x1f0537,_0x14aabc,_0x43949f),_0xe69424(_0x86b2be,_0x3faa9a,_0x3160d0);const _0x27f81b=_0x86b2be[_0x5726('0xfc')](_0x3faa9a,_0x3160d0)['concat'](_0x1f0537[_0x5726('0xfc')](_0x14aabc,_0x43949f));return _0x27f81b[_0x5726('0x27')]((_0x6298ab,_0x297bdf)=>_0x6298ab[_0x5726('0x59')]!=_0x297bdf[_0x5726('0x59')]?_0x6298ab[_0x5726('0x59')]-_0x297bdf[_0x5726('0x59')]:_0x6298ab[_0x5726('0xcf')]!=_0x297bdf['level']?_0x6298ab['level']-_0x297bdf[_0x5726('0xcf')]:_0x6298ab[_0x5726('0x21')]!=_0x297bdf[_0x5726('0x21')]?_0x297bdf['distance']-_0x6298ab[_0x5726('0x21')]:!!_0x6298ab[_0x5726('0xef')]!=!!_0x297bdf[_0x5726('0xef')]?-0x1==_0x6298ab[_0x5726('0x59')]||0x0==_0x6298ab[_0x5726('0x59')]?_0x6298ab[_0x5726('0xef')]?-0x1:0x1:_0x6298ab[_0x5726('0xef')]?0x1:-0x1:_0x6298ab[_0x5726('0x64')]-_0x297bdf[_0x5726('0x64')]),{'commonTape':_0x27f81b,'iEnd':_0x43949f,'jEnd':_0x3160d0};function _0xe69424(_0x51b564,_0x59366f,_0x59484e){let _0x4db514=-0x1,_0x3cf3fa=Number[_0x5726('0xe9')],_0x680862=!0x0;for(let _0x2a5fa1=_0x59366f;_0x2a5fa1<_0x59484e;_0x2a5fa1++)if(_0x33b0a9['isInline'](_0x51b564[_0x2a5fa1][_0x5726('0x105')])||(_0x680862=!0x1),_0x51b564[_0x2a5fa1][_0x5726('0x105')]['startIndex']<_0x59366f&&(_0x4db514=_0x2a5fa1),_0x51b564[_0x2a5fa1][_0x5726('0x105')]['endIndex']>=_0x59484e){_0x3cf3fa=_0x2a5fa1;break;}_0x680862&&(_0x4db514=_0x59484e-0x1);for(let _0x5a270a=_0x59366f;_0x5a270a<_0x59484e;_0x5a270a++)_0x51b564[_0x5a270a][_0x5726('0x59')]=_0x5a270a<=_0x4db514?-0x1:_0x5a270a<_0x3cf3fa?0x0:0x1,_0x51b564[_0x5a270a][_0x5726('0x64')]=_0x5a270a;let _0x12097b=0x0;for(let _0x46549a=_0x59366f;_0x46549a<=_0x4db514;_0x46549a++)0x0==_0x51b564[_0x46549a]['distance']?_0x51b564[_0x46549a][_0x5726('0xcf')]=_0x12097b:(_0x12097b++,_0x51b564[_0x46549a][_0x5726('0xcf')]=_0x12097b,_0x12097b++);for(let _0x5e167e=_0x59366f;_0x5e167e<_0x59484e;_0x5e167e++)0x0==_0x51b564[_0x5e167e][_0x5726('0x59')]&&(_0x51b564[_0x5e167e][_0x5726('0xcf')]=_0x12097b);_0x12097b=0x0;for(let _0x2e51d2=_0x59484e-0x1;_0x2e51d2>=_0x3cf3fa;_0x2e51d2--)0x0==_0x51b564[_0x2e51d2][_0x5726('0x21')]?_0x51b564[_0x2e51d2][_0x5726('0xcf')]=_0x12097b:(_0x12097b--,_0x51b564[_0x2e51d2]['level']=_0x12097b,_0x12097b--);}}[_0x5726('0x24')](_0x465370){const _0xb94477=new Map(),_0x36884d=this['editor'][_0x5726('0x11b')][_0x5726('0x48')];for(let _0x403a7d=0x1;_0x403a7d<_0x465370[_0x5726('0x111')];_0x403a7d++){let _0x3d3226,_0x24770b,_0x2839b7;const _0x595f79=_0x465370[_0x403a7d],_0x54c225=_0x465370[_0x403a7d-0x1];if(_0x5726('0xf1')==_0x595f79[_0x5726('0x7a')])continue;if(_0x595f79[_0x5726('0x7a')]!=_0x54c225[_0x5726('0x7a')])continue;if(!_0x36884d[_0x5726('0x77')](_0x54c225['item'])||_0x36884d[_0x5726('0xd4')](_0x54c225[_0x5726('0x105')]))continue;if(!_0x36884d['isBlock'](_0x595f79[_0x5726('0x105')])||_0x36884d[_0x5726('0xd4')](_0x595f79[_0x5726('0x105')]))continue;if((_0x465370[_0x403a7d]['isAdded']||_0x465370[_0x403a7d][_0x5726('0xa8')])&&_0x465370[_0x403a7d-0x1][_0x5726('0x7')])_0x3d3226=_0x465370[_0x403a7d],_0x24770b=_0x465370[_0x403a7d-0x1],_0x2839b7=_0x403a7d-0x1;else{if(!_0x465370[_0x403a7d]['isRemoved']||!_0x465370[_0x403a7d-0x1][_0x5726('0xef')]&&!_0x465370[_0x403a7d-0x1][_0x5726('0xa8')])continue;_0x3d3226=_0x465370[_0x403a7d-0x1],_0x24770b=_0x465370[_0x403a7d],_0x2839b7=_0x403a7d;}const _0x31aced=_0x3d3226['level']==_0x24770b[_0x5726('0xcf')],_0x5877bb=Math[_0x5726('0x94')](_0x3d3226[_0x5726('0xcf')])<Math[_0x5726('0x94')](_0x24770b[_0x5726('0xcf')])&&0x0==_0x24770b['distance'];(_0x31aced||_0x5877bb)&&(_0xb94477[_0x5726('0xf9')](_0x24770b['id'],_0x3d3226['id']),_0x465370[_0x5726('0xaf')](_0x2839b7,0x1),_0x403a7d--,_0x3d3226[_0x5726('0xef')]=!0x1);}for(let _0x444132=0x0;_0x444132<_0x465370[_0x5726('0x111')];_0x444132++)_0xb94477['has'](_0x465370[_0x444132][_0x5726('0xbc')])&&(_0x465370[_0x444132][_0x5726('0xbc')]=_0xb94477[_0x5726('0x5b')](_0x465370[_0x444132][_0x5726('0xbc')]));}[_0x5726('0xfa')](_0x5084e6){const _0x14d664=new Set(_0x5084e6[_0x5726('0xcc')](_0x1018c6=>_0x1018c6['id']));for(let _0x1b4d39=0x0;_0x1b4d39<_0x5084e6[_0x5726('0x111')];_0x1b4d39++)_0x14d664[_0x5726('0x25')](_0x5084e6[_0x1b4d39]['pairId'])||0x0==_0x5084e6[_0x1b4d39][_0x5726('0x21')]||(_0x5084e6[_0x1b4d39]['isIncorrect']=!0x0);return _0x5084e6[_0x5726('0x0')](_0xd9cea8=>!_0xd9cea8[_0x5726('0x4e')]);}[_0x5726('0xe')](_0x1eb41e){const _0x239084=new Set();for(let _0x592f01=0x0;_0x592f01<_0x1eb41e[_0x5726('0x111')];_0x592f01++){if(_0x239084[_0x5726('0x25')](_0x1eb41e[_0x592f01]['id'])&&_0x1eb41e[_0x592f01][_0x5726('0x7')]&&(_0x1eb41e[_0x592f01][_0x5726('0x4e')]=!0x0),_0x1eb41e[_0x592f01][_0x5726('0x4e')])continue;if(0x0==_0x1eb41e[_0x592f01][_0x5726('0x21')])continue;if(_0x5726('0x32')!=_0x1eb41e[_0x592f01][_0x5726('0x7a')])continue;if(null==_0x1eb41e[_0x592f01]['pairId'])continue;let _0xf6a969=_0x592f01+0x1,_0xaf4fb7=0x0;for(;_0x1eb41e[_0xf6a969]['id']!=_0x1eb41e[_0x592f01][_0x5726('0xbc')];)'elementStart'==_0x1eb41e[_0xf6a969]['type']?_0xaf4fb7++:_0x5726('0x10f')==_0x1eb41e[_0xf6a969][_0x5726('0x7a')]&&_0xaf4fb7--,_0xf6a969++;if(0x0!=_0xaf4fb7){if(_0x1eb41e[_0x592f01][_0x5726('0x7')])_0x1eb41e[_0x592f01][_0x5726('0x4e')]=!0x0;else for(;_0xf6a969!=_0x592f01;)_0x1eb41e[_0xf6a969][_0x5726('0x7')]&&0x0!=_0x1eb41e[_0xf6a969][_0x5726('0x21')]&&(_0x1eb41e[_0xf6a969][_0x5726('0x4e')]=!0x0,_0x239084[_0x5726('0xa7')](_0x1eb41e[_0xf6a969][_0x5726('0xbc')])),_0xf6a969--;}}return _0x1eb41e[_0x5726('0x0')](_0x42ea94=>!_0x42ea94[_0x5726('0x4e')]);}[_0x5726('0x98')](_0x2d7f77){const _0x3bf442=this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0x48')];for(let _0x9928c5=0x0;_0x9928c5<_0x2d7f77[_0x5726('0x111')];_0x9928c5++){if(!(_0x2d7f77[_0x9928c5][_0x5726('0xef')]||_0x2d7f77[_0x9928c5][_0x5726('0xa8')]||_0x2d7f77[_0x9928c5][_0x5726('0x7')]||_0x2d7f77[_0x9928c5]['isRemoveSuggestion']))continue;if(0x0==_0x2d7f77[_0x9928c5][_0x5726('0x21')])continue;const _0x1f22ad=_0x2d7f77[_0x9928c5][_0x5726('0x105')];_0x3bf442[_0x5726('0x77')](_0x1f22ad)||_0x3bf442[_0x5726('0xd4')](_0x1f22ad)||(_0x2d7f77[_0x9928c5][_0x5726('0xef')]&&delete _0x2d7f77[_0x9928c5][_0x5726('0xef')],_0x2d7f77[_0x9928c5][_0x5726('0xa8')]&&delete _0x2d7f77[_0x9928c5]['isAddSuggestion'],_0x2d7f77[_0x9928c5][_0x5726('0xc3')]&&delete _0x2d7f77[_0x9928c5][_0x5726('0xc3')],_0x2d7f77[_0x9928c5][_0x5726('0x7')]&&(_0x2d7f77[_0x9928c5][_0x5726('0x4e')]=!0x0));}return _0x2d7f77[_0x5726('0x0')](_0x5346ef=>!_0x5346ef[_0x5726('0x4e')]);}[_0x5726('0x5e')](_0x380f59,_0x4764a7,_0x2fa713){const _0x2fb98f=new _0x2772c1(),_0x5c69fc=[],_0x1e5172=new Map(),_0x484141=this['editor'][_0x5726('0x11b')],_0xa0af72=_0x484141[_0x5726('0x48')],_0x501846=[_0x2fb98f],_0x5dcfc1={},_0x32a9ec={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x431bbe=null;const _0x1d745b=[0x0];for(let _0x10d9b9=0x0;_0x10d9b9<_0x380f59['length'];_0x10d9b9++){let _0x5518ca,_0x51710d;if(_0x5726('0x32')===_0x380f59[_0x10d9b9]['type']){_0x5518ca=_0x484141[_0x5726('0xe5')](_0x2fb98f,_0x1d745b);const _0x25d711=new _0x1af282(_0x380f59[_0x10d9b9]['item'][_0x5726('0x68')],_0x380f59[_0x10d9b9][_0x5726('0x105')][_0x5726('0xee')]());_0x501846[0x0][_0x5726('0xab')](_0x25d711),_0x1d745b[_0x5726('0x53')](0x0),_0x501846['unshift'](_0x25d711),_0x51710d=_0x484141[_0x5726('0xe5')](_0x2fb98f,_0x1d745b),_0x431bbe=null;}else{if(_0x5726('0x10f')===_0x380f59[_0x10d9b9][_0x5726('0x7a')])_0x501846[_0x5726('0x10a')](),_0x5518ca=_0x484141['createPositionFromPath'](_0x2fb98f,_0x1d745b),_0x1d745b[_0x5726('0x4f')](),_0x1d745b[_0x1d745b['length']-0x1]++,_0x51710d=_0x484141[_0x5726('0xe5')](_0x2fb98f,_0x1d745b),_0x431bbe=null;else{if(_0x5518ca=_0x484141['createPositionFromPath'](_0x2fb98f,_0x1d745b),_0x431bbe&&_0x167e91(_0x431bbe,_0x380f59[_0x10d9b9][_0x5726('0x105')]))_0x431bbe[_0x5726('0x16')]+=_0x380f59[_0x10d9b9]['item']['data'];else{const _0x546f70=new _0x59a7ea(_0x380f59[_0x10d9b9]['item'][_0x5726('0x108')],_0x380f59[_0x10d9b9][_0x5726('0x105')][_0x5726('0xee')]());_0x501846[0x0][_0x5726('0xab')](_0x546f70),_0x431bbe=_0x546f70;}_0x1d745b[_0x1d745b[_0x5726('0x111')]-0x1]+=_0x380f59[_0x10d9b9]['item'][_0x5726('0xbf')],_0x51710d=_0x484141[_0x5726('0xe5')](_0x2fb98f,_0x1d745b);}}for(const _0x58e1db of _0x380f59[_0x10d9b9][_0x5726('0x15')])_0x1e5172[_0x5726('0xf9')](_0x58e1db,{'start':_0x5518ca,'end':null});_0x1e64dd('isRemoveSuggestion',_0x10d9b9,_0x5518ca,_0x51710d),_0x1e64dd('isAddSuggestion',_0x10d9b9,_0x5518ca,_0x51710d),_0x1e64dd(_0x5726('0x7'),_0x10d9b9,_0x5518ca,_0x51710d),_0x1e64dd(_0x5726('0xef'),_0x10d9b9,_0x5518ca,_0x51710d);for(const _0x2b6a6d of _0x380f59[_0x10d9b9][_0x5726('0x112')]){_0x1e5172[_0x5726('0x5b')](_0x2b6a6d)[_0x5726('0x2f')]=_0x51710d;}}for(const [_0x5514ee,_0xf390d9]of _0x1e5172){const _0x2beee3=this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0x41')](_0xf390d9[_0x5726('0xff')],_0xf390d9[_0x5726('0x2f')]);_0x2fb98f[_0x5726('0x1b')][_0x5726('0xf9')](_0x5514ee,_0x2beee3);}return _0x5c69fc['sort']((_0x4d5262,_0x1cb9da)=>{const _0x59a5c7=_0x2fb98f[_0x5726('0x1b')][_0x5726('0x5b')](_0x5726('0x67')+_0x4d5262['id']),_0x569e89=_0x2fb98f['markers'][_0x5726('0x5b')](_0x5726('0x67')+_0x1cb9da['id']);return _0x59a5c7[_0x5726('0xff')][_0x5726('0x40')](_0x569e89[_0x5726('0xff')])?-0x1:_0x59a5c7[_0x5726('0xff')][_0x5726('0x47')](_0x569e89[_0x5726('0xff')])?0x1:_0x59a5c7[_0x5726('0x2f')][_0x5726('0x40')](_0x569e89['end'])?-0x1:_0x59a5c7[_0x5726('0x2f')]['isAfter'](_0x569e89[_0x5726('0x2f')])?0x1:_0x5726('0xa7')===_0x4d5262[_0x5726('0x7a')]?-0x1:0x1;}),{'root':_0x2fb98f,'changes':_0x5c69fc};function _0x1e64dd(_0x14f5aa,_0x158329,_0x3f6e98,_0x3d7aff){const _0x3efcfa=!!_0x380f59[_0x158329][_0x14f5aa],_0x638804=_0x3efcfa?_0x380f59[_0x158329][_0x14f5aa][_0x5726('0x54')]:null,_0x3aa0e3=_0x158329===_0x380f59[_0x5726('0x111')]-0x1,_0x49e2d8=_0x32a9ec[_0x14f5aa][0x0],_0x3de7e0=_0xa0af72[_0x5726('0xc6')](_0x380f59[_0x158329][_0x5726('0x105')]);!_0x5dcfc1[_0x14f5aa]&&_0x3efcfa?_0x5dcfc1[_0x14f5aa]={'start':_0x3f6e98,'tapeItem':_0x380f59[_0x158329],'userId':_0x638804,'type':_0x14f5aa}:_0x5dcfc1[_0x14f5aa]&&!_0x3efcfa?(_0x5dcfc1[_0x14f5aa]['end']=_0x3f6e98,_0x40014e(_0x5dcfc1[_0x14f5aa]),_0x5dcfc1[_0x14f5aa]=null):_0x5dcfc1[_0x14f5aa]&&_0x3efcfa&&_0x5dcfc1[_0x14f5aa]['userId']!==_0x638804&&(_0x5dcfc1[_0x14f5aa][_0x5726('0x2f')]=_0x3f6e98,_0x49e2d8&&_0x49e2d8[_0x5726('0x54')]===_0x5dcfc1[_0x14f5aa][_0x5726('0x54')]||_0x40014e(_0x5dcfc1[_0x14f5aa]),_0x5dcfc1[_0x14f5aa]={'start':_0x3f6e98,'tapeItem':_0x380f59[_0x158329],'userId':_0x638804,'type':_0x14f5aa}),_0x5dcfc1[_0x14f5aa]&&_0x3de7e0&&(_0x5726('0x32')!==_0x380f59[_0x158329][_0x5726('0x7a')]||_0x49e2d8&&_0x49e2d8['userId']===_0x638804||_0x32a9ec[_0x14f5aa][_0x5726('0xa0')]({'userId':_0x638804,'object':_0x380f59[_0x158329][_0x5726('0x105')],'change':_0x5dcfc1[_0x14f5aa]}),_0x5726('0x10f')===_0x380f59[_0x158329]['type']&&_0x49e2d8&&_0x49e2d8['object']===_0x380f59[_0x158329]['item']&&(_0x32a9ec[_0x14f5aa][_0x5726('0x10a')](),_0x5dcfc1[_0x14f5aa]=_0x49e2d8[_0x5726('0xd6')])),_0x5dcfc1[_0x14f5aa]&&_0x3aa0e3&&(_0x5dcfc1[_0x14f5aa][_0x5726('0x2f')]=_0x3d7aff,_0x40014e(_0x5dcfc1[_0x14f5aa]),_0x5dcfc1[_0x14f5aa]=null);}function _0x40014e({start:_0x2ccab3,end:_0x53da8f,tapeItem:_0x33b454,userId:_0x3883c2,type:_0x53cd02}){const _0x41713f=_0x33b454[_0x5726('0x105')],_0x5ebbf2=_0x484141[_0x5726('0x48')]['isBlock'](_0x41713f)&&!_0x484141[_0x5726('0x48')][_0x5726('0xd4')](_0x41713f),_0x5a9699=_0x2ccab3['nodeAfter']==_0x53da8f['parent']&&_0x53da8f[_0x5726('0x95')];if(_0x5ebbf2&&_0x5a9699)return;const _0x32bfd6=_0x484141[_0x5726('0x41')](_0x2ccab3,_0x53da8f),_0x5c25aa=_0x4764a7['get'](_0x3883c2),_0x5858b8=new _0x80f3b2({'author':_0x5c25aa,'type':_0x5726('0xef')==_0x53cd02||'isAddSuggestion'==_0x53cd02?_0x5726('0xa7'):'remove','data':{'isSuggestion':_0x5726('0xa8')==_0x53cd02||'isRemoveSuggestion'==_0x53cd02},'createdAt':new Date(),'rootName':_0x2fa713});_0x5c69fc[_0x5726('0x53')](_0x5858b8),_0x2fb98f[_0x5726('0x1b')][_0x5726('0xf9')](_0x5726('0x67')+_0x5858b8['id'],_0x32bfd6);}function _0x167e91(_0x458452,_0x52189f){const _0x27c33e=_0x458452[_0x5726('0xee')](),_0xe5e664=_0x52189f[_0x5726('0xee')]();for(const _0x4edb9c of _0x27c33e){if(_0x4edb9c[0x1]!==_0x52189f['getAttribute'](_0x4edb9c[0x0]))return!0x1;_0xe5e664[_0x5726('0xaa')]();}return _0xe5e664[_0x5726('0xaa')]()[_0x5726('0xd3')];}}['_setConversion'](){this[_0x5726('0x19')][_0x5726('0x100')][_0x5726('0xa6')](_0x5726('0xa'))[_0x5726('0xb1')]({'view':'revision'}),this[_0x5726('0x19')]['conversion'][_0x5726('0xa6')]('editingDowncast')[_0x5726('0x8')]({'model':_0x5726('0x38'),'view':_0x456562=>{const _0x19324d=_0x456562['markerName'][_0x5726('0x8e')](':')[0x1],_0x38aed8=this[_0x5726('0xc8')](_0x19324d);if(!_0x38aed8)return null;const _0x160dfd='add'==_0x38aed8[_0x5726('0x7a')]?_0x5726('0x113'):'deletion',_0x447d18=[_0x5726('0x72'),_0x5726('0xc9')+_0x160dfd];return _0x38aed8['data'][_0x5726('0x30')]&&_0x447d18[_0x5726('0x53')](_0x5726('0xc9')+_0x160dfd+_0x5726('0xfb')),this['activeChange']==_0x38aed8&&_0x447d18['push'](_0x5726('0x1f')),{'classes':_0x447d18,'attributes':{'data-change-id':_0x19324d}};}}),this[_0x5726('0x19')]['conversion'][_0x5726('0xa6')]('upcast')[_0x5726('0xa7')](_0x528200=>{_0x528200['on'](_0x5726('0x61'),(_0x46db19,_0x429e6f,_0x2c759b)=>{const _0x4fb6f5=_0x429e6f[_0x5726('0x114')]['getChild'](0x0);if(!_0x4fb6f5||!_0x4fb6f5['is'](_0x5726('0x9e'),'code'))return;if(!_0x2c759b[_0x5726('0x116')][_0x5726('0x49')](_0x4fb6f5,{'attributes':[_0x5726('0x10d'),_0x5726('0xf4')]}))return;const _0x220c12=_0x429e6f[_0x5726('0x9b')][_0x5726('0xff')]['nodeAfter'];_0x2c759b[_0x5726('0xa5')][_0x5726('0xc1')](_0x5726('0x10d'),_0x4fb6f5[_0x5726('0x58')](_0x5726('0x10d')),_0x220c12),_0x2c759b[_0x5726('0xa5')]['setAttribute']('vid_end',_0x4fb6f5[_0x5726('0x58')]('vid_end'),_0x220c12);},{'priority':_0x5726('0x3')});}),this[_0x5726('0x19')]['conversion'][_0x5726('0xa6')](_0x5726('0xa'))[_0x5726('0xa7')](_0x4035b3=>{_0x4035b3['on'](_0x5726('0x9e'),(_0x3d4a92,_0x2fe5c3,_0x26c0eb)=>{if(!_0x26c0eb[_0x5726('0x116')][_0x5726('0x49')](_0x2fe5c3[_0x5726('0x114')],{'attributes':[_0x5726('0x10d'),_0x5726('0xf4')]}))return;if(_0x2fe5c3[_0x5726('0x9b')][_0x5726('0x3c')])return;const _0x428aef=_0x2fe5c3[_0x5726('0x9b')]['start'][_0x5726('0x11e')];_0x428aef[_0x5726('0xad')](_0x5726('0x10d'))||_0x428aef[_0x5726('0xad')]('vid')||(_0x26c0eb[_0x5726('0xa5')][_0x5726('0xc1')](_0x5726('0x10d'),_0x2fe5c3[_0x5726('0x114')]['getAttribute']('vid_start'),_0x428aef),_0x26c0eb[_0x5726('0xa5')][_0x5726('0xc1')](_0x5726('0xf4'),_0x2fe5c3[_0x5726('0x114')][_0x5726('0x58')]('vid_end'),_0x428aef));},{'priority':_0x5726('0x3')});}),this[_0x5726('0x19')]['conversion'][_0x5726('0xa6')]('upcast')[_0x5726('0x9c')]({'view':{'name':_0x5726('0x10'),'attributes':{'vid':!0x0}},'model':{'key':_0x5726('0xf5'),'value':_0x33448d=>_0x33448d[_0x5726('0x58')](_0x5726('0xf5'))}}),this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0x48')]['on']('checkAttribute',(_0x10413a,[,_0x5a71ee])=>{[_0x5726('0x10d'),_0x5726('0xf4'),'vid']['includes'](_0x5a71ee)&&(_0x10413a[_0x5726('0x5')]=!0x0,_0x10413a[_0x5726('0xd8')]());},{'priority':_0x5726('0xf6')}),this[_0x5726('0x19')][_0x5726('0x100')][_0x5726('0xa6')](_0x5726('0x9d'))[_0x5726('0xa7')](_0x266e65=>{_0x266e65['on']('attribute:vid',(_0x383b6b,_0x4a08a4,_0x4a1b31)=>{if('\x20'!=_0x4a08a4['item'][_0x5726('0x108')]||_0x4a08a4['item'][_0x5726('0x7b')][_0x5726('0xd7')]>0x1)return;if(!_0x4a1b31[_0x5726('0x116')][_0x5726('0x49')](_0x4a08a4[_0x5726('0x105')],_0x383b6b[_0x5726('0x68')]))return;const _0x35213b=_0x4a1b31[_0x5726('0xa5')],_0x3f0038=_0x4a1b31[_0x5726('0x11f')]['toViewRange'](_0x4a08a4[_0x5726('0xf')]);_0x35213b[_0x5726('0xac')](_0x3f0038,_0x35213b[_0x5726('0x76')](_0x5726('0x10')));});}),this[_0x5726('0x19')]['conversion'][_0x5726('0xa6')]('dataDowncast')[_0x5726('0x7e')]({'model':'revision'}),this[_0x5726('0x19')][_0x5726('0x101')][_0x5726('0x14')]['on'](_0x5726('0x2a'),function(_0x3660d5){const _0x8f5efb=_0x3660d5[_0x5726('0x34')][_0x5726('0x5b')](_0x5726('0xdb'));return(_0x4313f2,_0x438f0b,_0x16468d)=>{const _0x48eccf=_0x438f0b['markerName'][_0x5726('0x8e')](':')[0x1],_0x5d5dd5=_0x8f5efb[_0x5726('0xc8')](_0x48eccf);if(!_0x5d5dd5)return null;const _0x2c64dc='add'==_0x5d5dd5[_0x5726('0x7a')]?_0x5726('0x8e'):'merge';if(!_0x16468d[_0x5726('0x116')][_0x5726('0xda')](_0x438f0b['markerRange'],_0x4313f2[_0x5726('0x68')]))return;const _0x258817=_0x438f0b[_0x5726('0xc')][_0x5726('0x31')](),_0x1b1f3c=_0x438f0b[_0x5726('0xc')]['start'],_0x4b88f7=_0x3660d5['model'][_0x5726('0x48')];let _0x51ff9e=null,_0x36a280=null,_0xc8069a=!0x1,_0x7e70a3=!0x1;for(const _0x337ff5 of _0x258817){const _0x5085e9=_0x337ff5[_0x5726('0x105')];_0xc8069a=_0xc8069a||_0x4b88f7[_0x5726('0xd9')](_0x5085e9);const _0x45bbd6=_0x16468d[_0x5726('0x11f')]['toViewElement'](_0x5085e9);if(_0x45bbd6&&_0x45bbd6['getCustomProperty']('addHighlight'))return;_0x5726('0x10f')==_0x337ff5[_0x5726('0x7a')]&&(_0x4b88f7[_0x5726('0x77')](_0x5085e9)&&!_0x4b88f7['isLimit'](_0x5085e9)&&(_0x5085e9[_0x5726('0x115')]||_0x1b1f3c[_0x5726('0xe7')]?_0x51ff9e&&_0x51ff9e[_0x5726('0x7b')]==_0x5085e9||(_0x51ff9e=_0x5085e9,_0x19469e(_0x337ff5['previousPosition']),_0x7e70a3=!0x0):_0x36a280=_0x36a280||_0x337ff5['previousPosition']));}function _0x19469e(_0x2547c2){const _0x324b1e=_0x16468d[_0x5726('0xa5')][_0x5726('0xdc')](_0x5726('0x10'),{'class':_0x5726('0xc9')+_0x2c64dc}),_0x689602=_0x16468d[_0x5726('0x11f')]['toViewPosition'](_0x2547c2);_0x5d5dd5[_0x5726('0x108')][_0x5726('0x30')]&&_0x16468d[_0x5726('0xa5')][_0x5726('0x23')](_0x5726('0xc9')+_0x2c64dc+_0x5726('0xfb'),_0x324b1e),_0x8f5efb[_0x5726('0x73')]==_0x5d5dd5&&_0x16468d[_0x5726('0xa5')][_0x5726('0x23')](_0x5726('0x1f'),_0x324b1e),_0x16468d[_0x5726('0xa5')][_0x5726('0x2d')](_0x689602,_0x324b1e),_0x16468d[_0x5726('0x11f')][_0x5726('0xba')](_0x324b1e,_0x438f0b[_0x5726('0x2')]);}_0xc8069a||_0x7e70a3||!_0x36a280||_0x19469e(_0x36a280);};}(this[_0x5726('0x19')]),{'priority':'high'}),this['editor'][_0x5726('0x101')][_0x5726('0x14')]['on'](_0x5726('0x11c'),(_0x6ebd1e,_0x2c7763,_0x34c157)=>{const _0x4b631c=_0x34c157[_0x5726('0x11f')][_0x5726('0xb3')](_0x2c7763[_0x5726('0x2')]);if(_0x4b631c)for(const _0x16ad38 of _0x4b631c)(_0x16ad38[_0x5726('0x8d')]('ck-suggestion-marker-split')||_0x16ad38[_0x5726('0x8d')](_0x5726('0x84')))&&(_0x34c157[_0x5726('0x11f')][_0x5726('0x3d')](_0x16ad38,_0x2c7763[_0x5726('0x2')]),_0x34c157['writer'][_0x5726('0xec')](_0x16ad38));},{'priority':_0x5726('0xa9')}),this[_0x5726('0x19')][_0x5726('0x101')][_0x5726('0x14')]['on'](_0x5726('0x2a'),(_0x7d2a3c,_0x2fb43f,_0x2a9459)=>{const _0x236ef6=_0x2fb43f[_0x5726('0x2')][_0x5726('0x8e')](':')[0x1],_0x1ddc36=this[_0x5726('0xc8')](_0x236ef6);if(!_0x1ddc36)return null;const _0x5e717e=_0x5726('0xa7')==_0x1ddc36[_0x5726('0x7a')]?_0x5726('0x8e'):_0x5726('0xa3');if(_0x2a9459[_0x5726('0x116')][_0x5726('0xda')](_0x2fb43f[_0x5726('0xc')],_0x7d2a3c[_0x5726('0x68')]))for(const _0x32ae35 of _0x2fb43f['markerRange'][_0x5726('0xd5')]()){if(!_0x32ae35['is'](_0x5726('0x9e'),_0x5726('0xcd')))continue;const _0x9f4a49=_0x2a9459[_0x5726('0xa5')][_0x5726('0xdc')]('span',{'class':_0x5726('0xc9')+_0x5e717e}),_0x4125cd=_0x2a9459['mapper'][_0x5726('0x65')](this[_0x5726('0x19')]['model'][_0x5726('0x90')](_0x32ae35));_0x1ddc36['data']['isSuggestion']&&_0x2a9459['writer'][_0x5726('0x23')]('ck-suggestion-marker-'+_0x5e717e+_0x5726('0xfb'),_0x9f4a49),this[_0x5726('0x73')]==_0x1ddc36&&_0x2a9459[_0x5726('0xa5')][_0x5726('0x23')](_0x5726('0x1f'),_0x9f4a49),_0x2a9459[_0x5726('0xa5')][_0x5726('0x2d')](_0x4125cd,_0x9f4a49),_0x2a9459[_0x5726('0x11f')][_0x5726('0xba')](_0x9f4a49,_0x2fb43f[_0x5726('0x2')]);}},{'priority':_0x5726('0xa9')}),this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0xd1')]['on'](_0x5726('0xd6'),()=>{this['editor']['editing']['view']['change'](_0x33cf56=>{for(const _0x42fdd3 of this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0xd1')][_0x5726('0x102')]()){const _0x3b2473=this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0xd1')][_0x5726('0x44')](_0x42fdd3),_0x118828=this[_0x5726('0x19')]['editing'][_0x5726('0x70')][_0x5726('0xd1')][_0x5726('0x44')](_0x42fdd3);if(_0x118828){const _0x490b6c=_0x3b2473['getAttribute'](_0x5726('0xa2'));if(_0x33cf56[_0x5726('0x8b')](_0x5726('0x86'),_0x118828),_0x33cf56[_0x5726('0x13')](_0x5726('0x5d'),_0x118828),_0x33cf56['removeClass'](_0x5726('0x122'),_0x118828),_0x33cf56[_0x5726('0x13')](_0x5726('0xd0'),_0x118828),_0x490b6c){const _0xb265fe=this[_0x5726('0xc8')](_0x490b6c);if(!_0xb265fe)return null;_0x33cf56[_0x5726('0xc1')]('data-change-id',_0x490b6c,_0x118828),_0x33cf56[_0x5726('0x23')]('ck-revision-history-root-'+_0xb265fe[_0x5726('0x7a')],_0x118828),this[_0x5726('0x73')]==_0xb265fe&&_0x33cf56[_0x5726('0x23')](_0x5726('0xd0'),_0x118828);}}}});}),this[_0x5726('0x19')][_0x5726('0x100')][_0x5726('0xa6')](_0x5726('0xa'))['dataToMarker']({'view':_0x5726('0xed'),'model':_0x5b2acb=>_0x5726('0xcb')+_0x5b2acb,'converterPriority':_0x5726('0xf6')}),this[_0x5726('0x19')][_0x5726('0x100')][_0x5726('0xa6')](_0x5726('0xa'))[_0x5726('0xb1')]({'view':_0x5726('0xc5'),'model':_0x2f76ee=>'revision-suggestion:'+_0x2f76ee,'converterPriority':'highest'}),this[_0x5726('0x19')]['conversion'][_0x5726('0xa6')](_0x5726('0x9d'))[_0x5726('0x7e')]({'model':_0x5726('0x106'),'view':_0xe6b639=>({'name':_0x5726('0x1a')+_0xe6b639,'group':'revision-suggestion'}),'converterPriority':_0x5726('0xf6')}),this[_0x5726('0x19')]['conversion'][_0x5726('0xa6')](_0x5726('0x18'))[_0x5726('0x8')]({'model':_0x5726('0x106'),'view':_0x356d39=>{const _0x89ead=_0x356d39[_0x5726('0x2')][_0x5726('0x8e')](':')[0x1];return _0x5726('0x113')!=_0x89ead&&_0x5726('0x81')!=_0x89ead?null:{'classes':['ck-suggestion-preview-marker',_0x5726('0x7f')+_0x89ead]};}}),this[_0x5726('0x19')]['editing'][_0x5726('0x14')]['on'](_0x5726('0xb'),et(this[_0x5726('0x19')],_0x5726('0xa3')),{'priority':_0x5726('0xa9')}),this[_0x5726('0x19')][_0x5726('0x101')][_0x5726('0x14')]['on'](_0x5726('0xb7'),et(this[_0x5726('0x19')],_0x5726('0x8e')),{'priority':_0x5726('0xa9')}),this[_0x5726('0x19')][_0x5726('0x101')][_0x5726('0x14')]['on'](_0x5726('0x1'),(_0x22969a,_0x16583f,_0x412a7a)=>{const _0x5e0735=_0x412a7a[_0x5726('0x11f')][_0x5726('0xb3')](_0x16583f[_0x5726('0x2')]);if(_0x5e0735)for(const _0x464140 of _0x5e0735)_0x464140['is']('uiElement')&&(_0x412a7a['mapper'][_0x5726('0x3d')](_0x464140,_0x16583f['markerName']),_0x412a7a[_0x5726('0xa5')]['remove'](_0x464140));},{'priority':_0x5726('0xa9')});}[_0x5726('0xc8')](_0x23d09e){return this[_0x5726('0xe0')][_0x5726('0x5b')](_0x23d09e);}['_getViewForChange'](_0x38e577){return this[_0x5726('0xe1')]&&this['_changeView']['destroy'](),this[_0x5726('0xe1')]=new _0x347ed5(this[_0x5726('0x19')]['locale'],_0x38e577),this[_0x5726('0xe1')];}['_initInteractions'](){this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0xd1')][_0x5726('0xbe')][_0x5726('0x8c')](_0x5726('0x38')),this['on'](_0x5726('0x8a'),(_0x4f7ea7,_0x26a6fb,_0x34676d,_0x2ad6fc)=>{_0x2ad6fc&&this['_balloon'][_0x5726('0xec')](_0x2ad6fc),_0x34676d&&(this[_0x5726('0x5f')][_0x5726('0xa7')]({'view':_0x34676d,'stackId':_0x5726('0xae'),'position':{'target':()=>{const _0x407f87=this[_0x5726('0x19')][_0x5726('0x101')],_0x4976cb=this[_0x5726('0xc8')](_0x34676d['changeId']);let _0x14f229;if(_0x4976cb[_0x5726('0x108')][_0x5726('0xbd')]){const _0x4ba46b=_0x407f87[_0x5726('0x70')][_0x5726('0x121')](_0x4976cb[_0x5726('0x51')]);_0x14f229=Array[_0x5726('0xc7')](_0x4ba46b[_0x5726('0xdd')]());}else{const _0x37bffa=this[_0x5726('0x19')][_0x5726('0x11b')]['markers'][_0x5726('0x5b')]('revision:'+_0x34676d['changeId']);_0x14f229=Array['from'](_0x407f87[_0x5726('0x11f')][_0x5726('0xb3')](_0x37bffa['name']))[_0x5726('0xcc')](_0x5b7922=>_0x407f87[_0x5726('0x70')][_0x5726('0xb6')][_0x5726('0x63')](_0x5b7922))[_0x5726('0xcc')](_0x233b6e=>Array[_0x5726('0xc7')](_0x233b6e[_0x5726('0xdd')]()))[_0x5726('0xdf')]();}if(!this['_activeViewTarget'])return _0x14f229[0x0];return _0x14f229[_0x5726('0xd')](_0x2bd62e=>_0x2bd62e[_0x5726('0x17')]-0x3<=this[_0x5726('0x3a')]['y']&&_0x2bd62e['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x2bd62e['left']-0x3<=this['_activeViewTarget']['x']&&_0x2bd62e[_0x5726('0x12')]+0x3>=this['_activeViewTarget']['x'])||_0x14f229[0x0];}}}),this[_0x5726('0x5f')][_0x5726('0xf3')]('revisionHistoryLabel'));}),this['on'](_0x5726('0xd2'),(_0xfcdd63,_0x3d81a9,_0x462183,_0x2b7353)=>{this[_0x5726('0xc4')]=_0x462183?this['_getViewForChange'](_0x462183):null,this['editor']['model'][_0x5726('0xd6')](()=>{const _0x210615=this[_0x5726('0x19')][_0x5726('0x101')];_0x2b7353&&(_0x2b7353['data'][_0x5726('0xbd')]?_0x210615['view'][_0x5726('0xd6')](_0x30273f=>{_0x30273f['removeClass'](_0x5726('0xd0'),_0x210615['view']['document']['getRoot'](_0x2b7353['rootName']));}):_0x210615[_0x5726('0x2b')](_0x5726('0x67')+_0x2b7353['id'])),_0x462183&&(_0x462183['data'][_0x5726('0xbd')]?_0x210615[_0x5726('0x70')]['change'](_0x12f105=>{_0x12f105[_0x5726('0x23')](_0x5726('0xd0'),_0x210615['view'][_0x5726('0xd1')][_0x5726('0x44')](_0x462183[_0x5726('0x51')]));}):_0x210615['reconvertMarker'](_0x5726('0x67')+_0x462183['id']));});}),this[_0x5726('0x37')](this[_0x5726('0x19')]['editing'][_0x5726('0x70')][_0x5726('0xd1')],_0x5726('0x46'),(_0x3e9b34,_0x1fbb11)=>{if(this[_0x5726('0x73')])return;const _0x48714a=this[_0x5726('0xce')](_0x1fbb11[_0x5726('0x123')]),_0x4e8f8e=this[_0x5726('0xe0')][_0x5726('0x5b')](_0x48714a);_0x4e8f8e?(this['_activeViewTarget']={'x':_0x1fbb11[_0x5726('0x120')]['x'],'y':_0x1fbb11['domEvent']['y']},this['activeView']=this[_0x5726('0xb8')](_0x4e8f8e)):(this[_0x5726('0x3a')]=null,this[_0x5726('0xc4')]=null);}),this[_0x5726('0x37')](this[_0x5726('0x19')][_0x5726('0x101')]['view'][_0x5726('0xd1')],_0x5726('0x35'),(_0x147d34,_0x321e07)=>{const _0x15e149=this[_0x5726('0xce')](_0x321e07[_0x5726('0x123')]),_0x13d9c7=this[_0x5726('0xe0')][_0x5726('0x5b')](_0x15e149);_0x13d9c7?(this['_activeViewTarget']={'x':_0x321e07[_0x5726('0x120')]['x'],'y':_0x321e07[_0x5726('0x120')]['y']},_0x13d9c7===this['activeChange']?this[_0x5726('0x5f')][_0x5726('0x45')]():this['activeChange']=_0x13d9c7):(this[_0x5726('0x3a')]=null,this['activeChange']=null);});}[_0x5726('0xce')](_0x4d8325){do{const _0x58db73=_0x4d8325['getAttribute'](_0x5726('0x86'));if(_0x58db73)return _0x58db73;_0x4d8325=_0x4d8325[_0x5726('0x7b')];}while(_0x4d8325);return null;}['_cleanMarkers'](){this['editor'][_0x5726('0x11b')]['change'](_0x5629d3=>{for(const _0x2efb52 of this[_0x5726('0x19')][_0x5726('0x11b')][_0x5726('0x1b')])_0x5629d3[_0x5726('0xc2')](_0x2efb52);});}}function et(_0x2ed6f4,_0x159421){return(_0x4e6596,_0x8f62d9,_0x58a2f1)=>{if(!_0x58a2f1[_0x5726('0x116')][_0x5726('0xda')](_0x8f62d9[_0x5726('0xc')],_0x4e6596[_0x5726('0x68')]))return;const _0x575501=_0x8f62d9[_0x5726('0xc')][_0x5726('0x31')](),_0x480807=_0x8f62d9[_0x5726('0xc')]['start'],_0x5b5d3e=_0x2ed6f4[_0x5726('0x11b')][_0x5726('0x48')];let _0x2998fd=null,_0x2babac=null,_0x3325a9=!0x1,_0x4080bd=!0x1;for(const _0x4be5ff of _0x575501){const _0x468904=_0x4be5ff[_0x5726('0x105')];_0x3325a9=_0x3325a9||_0x5b5d3e[_0x5726('0xd9')](_0x468904);const _0x34d6d8=_0x58a2f1[_0x5726('0x11f')][_0x5726('0x10b')](_0x468904);if(_0x34d6d8&&_0x34d6d8['getCustomProperty'](_0x5726('0x5c')))return;_0x5726('0x10f')==_0x4be5ff[_0x5726('0x7a')]&&(_0x5b5d3e[_0x5726('0x77')](_0x468904)&&!_0x5b5d3e[_0x5726('0xd4')](_0x468904)&&(_0x468904[_0x5726('0x115')]||_0x480807[_0x5726('0xe7')]?_0x2998fd&&_0x2998fd[_0x5726('0x7b')]==_0x468904||(_0x2998fd=_0x468904,_0xe2941(_0x4be5ff['previousPosition']),_0x4080bd=!0x0):_0x2babac=_0x2babac||_0x4be5ff['previousPosition']));}function _0xe2941(_0x1d4cf){const _0xf1897f=_0x58a2f1['mapper'][_0x5726('0x65')](_0x1d4cf),_0x1b6fe8=_0x58a2f1[_0x5726('0xa5')][_0x5726('0xdc')]('span',{'class':_0x5726('0x7f')+_0x159421});_0x58a2f1['writer'][_0x5726('0x2d')](_0xf1897f,_0x1b6fe8),_0x58a2f1[_0x5726('0x11f')][_0x5726('0xba')](_0x1b6fe8,_0x8f62d9['markerName']);}_0x3325a9||_0x4080bd||!_0x2babac||_0xe2941(_0x2babac);};}export class RestoreRevisionCommand extends _0x5b6897{constructor(_0x33001a){super(_0x33001a);const _0x26983f=_0x33001a[_0x5726('0x34')][_0x5726('0x5b')](d);this[_0x5726('0x9')]=!0x1,this[_0x5726('0x37')](_0x26983f,_0x5726('0x7c'),()=>this[_0x5726('0xa1')]()),this['listenTo'](_0x26983f,'change:isEnabled',()=>this[_0x5726('0xa1')]());}[_0x5726('0x6b')](){const _0x5d9d94=this['editor'],_0x2fc787=_0x5d9d94[_0x5726('0x34')]['get'](d),_0x5ad9d7=_0x2fc787[_0x5726('0x9f')]?_0x2fc787[_0x5726('0x33')][_0x5726('0x125')]:null;_0x5d9d94['config'][_0x5726('0x5b')](_0x5726('0xf8'))['restoreRevisionCallback'](_0x5ad9d7);}[_0x5726('0xa1')](){const {isReady:_0x3e7bda,isEnabled:_0x4dfdb7}=this[_0x5726('0x19')]['plugins'][_0x5726('0x5b')](d);this[_0x5726('0x11')]=_0x3e7bda&&_0x4dfdb7;}}export class ShowChangeCommand extends _0x5b6897{constructor(_0x3d39e7,{direction:_0x546d5a}){super(_0x3d39e7);const _0x26b5c9=_0x3d39e7[_0x5726('0x34')][_0x5726('0x5b')](d);this['affectsData']=!0x1,this['_step']=_0x5726('0x4a')===_0x546d5a?0x1:-0x1,this[_0x5726('0x37')](_0x26b5c9,_0x5726('0x7c'),()=>this[_0x5726('0xa1')]()),this['listenTo'](_0x26b5c9,_0x5726('0x118'),()=>this['refresh']()),this[_0x5726('0x37')](_0x26b5c9,_0x5726('0xd2'),()=>this[_0x5726('0xa1')]());}[_0x5726('0x6b')](){const _0x4cf4fb=this[_0x5726('0x19')],_0x2cbd85=_0x4cf4fb['plugins']['get'](d),{isNavigationMode:_0x53fbc5,currentChangeNumber:_0x463fc3}=_0x2cbd85;let _0x27b7e3;if(_0x2cbd85[_0x5726('0x73')]=_0x53fbc5?_0x2cbd85['diff'][_0x5726('0x99')][_0x5726('0x5b')](_0x463fc3+this['_step']):_0x2cbd85['diff'][_0x5726('0x99')][_0x5726('0x28')],_0x2cbd85[_0x5726('0x73')][_0x5726('0x108')]['isOnRoot'])_0x27b7e3=_0x4cf4fb[_0x5726('0x101')][_0x5726('0x70')][_0x5726('0x121')](_0x2cbd85[_0x5726('0x73')][_0x5726('0x51')]);else{const _0x352a9e=_0x4cf4fb[_0x5726('0x11b')][_0x5726('0x1b')]['get'](_0x5726('0x67')+_0x2cbd85[_0x5726('0x73')]['id']);_0x27b7e3=_0x53aa82(_0x4cf4fb[_0x5726('0x101')],_0x352a9e);}_0x51bcee({'target':_0x27b7e3,'viewportOffset':0x28});}[_0x5726('0xa1')](){const {isNavigationMode:_0x18e9bf,currentChangeNumber:_0x3eb2d2,numberOfChanges:_0x22afe8,isReady:_0x2ec1a2,isEnabled:_0x532009}=this[_0x5726('0x19')][_0x5726('0x34')][_0x5726('0x5b')](d);this[_0x5726('0x11')]=!!(_0x532009&&_0x2ec1a2&&_0x22afe8)&&(!_0x18e9bf||(0x1===this['_step']?_0x3eb2d2<_0x22afe8-0x1:_0x3eb2d2>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bd8=['Restore\x20this\x20revision','Show\x20more\x20items','class','bindTemplate','function','execute','action','_action','extendTemplate','isEnabled','Name\x20this\x20revision','isOpen','buttonView','source','items','isReady','locale','Compare\x20against\x20selected','ck-on','isActionsDropdownOpen','set','isVisible','ck-revision-history-sidebar__revision__actions','map','bind','threeVerticalDots','panelPosition','name','change:isActionsDropdownOpen','add','stopPropagation','first'];(function(_0x188cfe,_0x4bd8a8){const _0x5ecef2=function(_0x27117e){while(--_0x27117e){_0x188cfe['push'](_0x188cfe['shift']());}};_0x5ecef2(++_0x4bd8a8);}(_0x4bd8,0xcb));const _0x5ece=function(_0x188cfe,_0x4bd8a8){_0x188cfe=_0x188cfe-0x0;let _0x5ecef2=_0x4bd8[_0x188cfe];return _0x5ecef2;};import{Collection as _0x2db5de}from'ckeditor5/src/utils';import{icons as _0x170621}from'ckeditor5/src/core';import{Model as _0x43571c,addListToDropdown as _0x1d1020,createDropdown as _0x2ecdfd}from'ckeditor5/src/ui';import{getTranslation as _0x120a32}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x43d9eb,_0x4615b4){const _0x498351=_0x43d9eb[_0x5ece('0x18')],_0xc44cf1=_0x43d9eb[_0x5ece('0x5')],_0x4fd0ad=_0x2ecdfd(_0xc44cf1);_0x4fd0ad[_0x5ece('0xf')]='sw';const _0xd01104=function(_0x5bb221,_0x69b7fe){const _0x3f02cc=function(_0x30d77a,_0x211165){const _0x16ad4a=_0x30d77a[_0x5ece('0x5')],_0x177aa7={'Compare\x20against\x20selected':_0x120a32(_0x16ad4a,_0x5ece('0x6')),'Name\x20this\x20revision':_0x120a32(_0x16ad4a,_0x5ece('0x1f')),'Restore\x20this\x20revision':_0x120a32(_0x16ad4a,_0x5ece('0x15'))};return _0x211165[_0x5ece('0xc')](_0x59b6e0=>{const _0x14479b=_0x177aa7[_0x59b6e0[_0x5ece('0x10')]];return _0x14479b&&_0x14479b!==_0x59b6e0[_0x5ece('0x10')]&&(_0x59b6e0[_0x5ece('0x10')]=_0x14479b),_0x59b6e0;});}(_0x5bb221,_0x69b7fe),_0x91ff87=new _0x2db5de();for(const _0x1ec195 of _0x3f02cc){const _0x15fa56={'type':'button','model':new _0x43571c({'label':_0x1ec195['name'],'class':_0x1ec195[_0x5ece('0x17')],'withText':!0x0,'_action':_0x1ec195[_0x5ece('0x1b')]})};_0x15fa56['model'][_0x5ece('0xd')](_0x5ece('0x1e'))['to'](_0x5bb221,_0x5ece('0x8'),_0x3c4d05=>_0x5ece('0x19')!=typeof _0x1ec195[_0x5ece('0x1e')]||(!_0x3c4d05||_0x1ec195['isEnabled'](_0x5bb221))),_0x91ff87[_0x5ece('0x12')](_0x15fa56);}return _0x91ff87;}(_0x43d9eb,_0x4615b4);return _0x43d9eb[_0x5ece('0xd')]('isActionsDropdownOpen')['to'](_0x4fd0ad,_0x5ece('0x0')),_0x4fd0ad[_0x5ece('0x1')][_0x5ece('0x9')]({'label':_0x120a32(_0xc44cf1,_0x5ece('0x16')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x170621[_0x5ece('0xe')]}),_0x4fd0ad[_0x5ece('0x1d')]({'attributes':{'class':[_0x5ece('0xb'),_0x498351['if'](_0x5ece('0x8'),_0x5ece('0x7'))]},'on':{'click':_0x498351['to'](_0x56455e=>_0x56455e[_0x5ece('0x13')]())}}),_0x4fd0ad['on'](_0x5ece('0x1a'),_0x29e1e4=>{_0x43d9eb[_0x5ece('0x4')]&&'function'==typeof _0x29e1e4[_0x5ece('0x2')][_0x5ece('0x1c')]&&_0x29e1e4['source'][_0x5ece('0x1c')](_0x43d9eb);}),_0x1d1020(_0x4fd0ad,_0xd01104),_0x4fd0ad['listenTo'](_0x43d9eb,_0x5ece('0x11'),(_0x3ee1b0,_0x385aab,_0x34bf5b)=>{if(_0x34bf5b)for(const _0xd2c46a of _0x4fd0ad['listView'][_0x5ece('0x3')]){const _0x3f1511=_0xd2c46a['children'][_0x5ece('0x14')],_0x5410ac=_0x4615b4['find'](_0x22d8c9=>_0x22d8c9['action']===_0x3f1511[_0x5ece('0x1c')])[_0x5ece('0xa')];_0xd2c46a[_0x5ece('0xa')]=void 0x0===_0x5410ac||_0x5410ac(_0x43d9eb);}}),_0x4fd0ad;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x49e3=['0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name','name','push','Revision\x20creator','Revision\x20author','setTemplate','ck-revision-history-sidebar__revision-author_creator'];(function(_0x5a22aa,_0x49e337){const _0x15a5fb=function(_0x3071d0){while(--_0x3071d0){_0x5a22aa['push'](_0x5a22aa['shift']());}};_0x15a5fb(++_0x49e337);}(_0x49e3,0x1de));const _0x15a5=function(_0x5a22aa,_0x49e337){_0x5a22aa=_0x5a22aa-0x0;let _0x15a5fb=_0x49e3[_0x5a22aa];return _0x15a5fb;};import{View as _0x55dc37,IconView as _0x42c460}from'ckeditor5/src/ui';import{getTranslation as _0x2a0d8f}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x39b149 from'../../../theme/icons/user.svg';export default class ti extends _0x55dc37{constructor(_0x32c801,_0x112aad,_0x5aafbc){super(_0x32c801);const _0x5f5c78=new _0x42c460();_0x5f5c78['set']({'content':_0x39b149,'viewBox':_0x15a5('0x2')});const _0x3571e5=['ck','ck-revision-history-sidebar__revision-author'];_0x5aafbc&&_0x3571e5[_0x15a5('0x5')](_0x15a5('0x1'));const _0x598534=[{'tag':'span','attributes':{'class':['ck',_0x15a5('0x3')],'title':_0x2a0d8f(_0x32c801,_0x5aafbc?_0x15a5('0x6'):_0x15a5('0x7'))},'children':[_0x5f5c78,_0x112aad[_0x15a5('0x4')]]}];this[_0x15a5('0x0')]({'tag':'li','attributes':{'class':_0x3571e5},'children':_0x598534});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x178d=['ck-revision-history-sidebar__revision-name','span','Revision\x20name'];(function(_0x23d0a3,_0x178da0){var _0x1e6772=function(_0x341989){while(--_0x341989){_0x23d0a3['push'](_0x23d0a3['shift']());}};_0x1e6772(++_0x178da0);}(_0x178d,0x6d));var _0x1e67=function(_0x23d0a3,_0x178da0){_0x23d0a3=_0x23d0a3-0x0;var _0x1e6772=_0x178d[_0x23d0a3];return _0x1e6772;};import{LabeledFieldView as _0x5463f5}from'ckeditor5/src/ui';import{getTranslation as _0x15cd1f}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5463f5{constructor(_0xd669fb,_0x247101){super(_0xd669fb,_0x247101),this['set']({'label':_0x15cd1f(_0xd669fb,_0x1e67('0x1'))}),this['extendTemplate']({'tag':_0x1e67('0x0'),'attributes':{'class':[_0x1e67('0x2')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x46a4=['ck-revision-history-sidebar__revision_selected','bind','ck-disabled','select','highlight','isActionsDropdownOpen','authors','isReady','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','bindTemplate','isSelected','isHighlighted','render','change','fire','name','revisionNameView','closest','_createdAtFormatted','set','uiLanguage','ck-revision-history-sidebar__revision-wrapper','220','_revision','revisionActionsView','value','div','creator','extendTemplate','length','from','deselect','unhighlight','ck-revision-history-sidebar__revision','createdAt','element','isConfirm','isEnabled','placeholder','ck-reset','fieldView','ck-revision-history-sidebar__revision__date','filter'];(function(_0x1fccc1,_0x46a45b){const _0x48dceb=function(_0x1b9b4f){while(--_0x1b9b4f){_0x1fccc1['push'](_0x1fccc1['shift']());}};_0x48dceb(++_0x46a45b);}(_0x46a4,0xe9));const _0x48dc=function(_0x1fccc1,_0x46a45b){_0x1fccc1=_0x1fccc1-0x0;let _0x48dceb=_0x46a4[_0x1fccc1];return _0x48dceb;};import{View as _0x5694b5,createLabeledInputText as _0x38450a}from'ckeditor5/src/ui';import{ConfirmMixin as _0x6892}from'ckeditor5-collaboration/src/collaboration-core';import _0x2adde6 from'./revisionnameview';import _0x368d9e from'./revisionauthorview';import{dateToPrettyFormat as _0xc349ba}from'./utils';import{createActionsDropdownView as _0x62b34c}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x6892(_0x5694b5){constructor(_0x3f9c86,_0x438a86,_0x3aaa1e){super(_0x3f9c86);const _0x400f10=this[_0x48dc('0x22')],_0x200d8f=function(_0x2481ee,_0x3dafc6){const _0x2acee5=Array[_0x48dc('0xc')](_0x3dafc6[_0x48dc('0x1f')])[_0x48dc('0x18')](_0x4df84f=>_0x4df84f!=_0x3dafc6[_0x48dc('0x9')]);return _0x3dafc6[_0x48dc('0x9')]&&_0x2acee5['unshift'](_0x3dafc6[_0x48dc('0x9')]),_0x2acee5['map'](_0x230ba8=>new _0x368d9e(_0x2481ee,_0x230ba8,_0x230ba8==_0x3dafc6[_0x48dc('0x9')]));}(_0x3f9c86,_0x438a86);this['id']=_0x438a86['id'],this[_0x48dc('0x5')]=_0x438a86,this[_0x48dc('0x1a')]('name',_0x48dc('0x10'))['to'](_0x438a86),this['bind']('_createdAtFormatted')['to'](this,_0x48dc('0x10'),_0x43d964=>_0x43d964?_0xc349ba(_0x3f9c86[_0x48dc('0x2')],_0x43d964):void 0x0),this['set'](_0x48dc('0x23'),!0x1),this[_0x48dc('0x1')]('isHighlighted',!0x1),this['set'](_0x48dc('0x1e'),!0x1),this[_0x48dc('0x1')](_0x48dc('0x20'),!0x1),this[_0x48dc('0x1')](_0x48dc('0x13'),!0x1),this[_0x48dc('0x29')]=new _0x2adde6(_0x3f9c86,_0x38450a),this[_0x48dc('0x29')][_0x48dc('0x16')][_0x48dc('0xa')]({'attributes':{'maxlength':_0x48dc('0x4')}}),this[_0x48dc('0x29')][_0x48dc('0x16')][_0x48dc('0x1a')](_0x48dc('0x7'),_0x48dc('0x14'))['to'](this,_0x48dc('0x28'),_0x48dc('0x0')),this[_0x48dc('0x29')][_0x48dc('0x1a')](_0x48dc('0x13'))['to'](this,_0x48dc('0x23'),this,_0x48dc('0x13'),(_0x299130,_0x1ce6b1)=>_0x299130&&_0x1ce6b1),this['revisionActionsView']=_0x3aaa1e&&_0x3aaa1e[_0x48dc('0xb')]?_0x62b34c(this,_0x3aaa1e):'',this['revisionActionsView']&&this[_0x48dc('0x6')][_0x48dc('0x1a')](_0x48dc('0x13'))['to'](this),this['setTemplate']({'tag':_0x48dc('0x8'),'attributes':{'class':['ck','ck-reset',_0x48dc('0x3'),_0x400f10['if'](_0x48dc('0x12'),_0x48dc('0x21'))]},'children':[{'tag':_0x48dc('0x8'),'attributes':{'class':['ck',_0x48dc('0x15'),_0x48dc('0xf'),_0x400f10['if'](_0x48dc('0x13'),_0x48dc('0x1b'),_0x9bf094=>!_0x9bf094),_0x400f10['if'](_0x48dc('0x23'),_0x48dc('0x19')),_0x400f10['if'](_0x48dc('0x24'),'ck-revision-history-sidebar__revision_highlighted'),_0x400f10['if'](_0x48dc('0x1e'),'ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x48dc('0x29')],{'tag':'span','attributes':{'class':['ck',_0x48dc('0x17')]},'children':[{'text':_0x400f10['to'](_0x48dc('0x0'))}]},{'tag':_0x48dc('0x8'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x200d8f}]},this[_0x48dc('0x6')]],'on':{'click':_0x400f10['to'](_0x5821c1=>{_0x5821c1['srcElement'][_0x48dc('0x2a')]('.ck-thread__remove-confirm')||this[_0x48dc('0x20')]&&this[_0x48dc('0x13')]&&this[_0x48dc('0x27')](_0x48dc('0x1c'),{'id':this['id']});})}}]});}[_0x48dc('0x25')](){super[_0x48dc('0x25')]();const _0x5a1506=this[_0x48dc('0x29')][_0x48dc('0x16')][_0x48dc('0x11')];this['listenTo'](_0x5a1506,_0x48dc('0x26'),()=>{this['fire']('setName',{'id':this['id'],'name':_0x5a1506[_0x48dc('0x7')]});});}[_0x48dc('0x1c')](){this['isSelected']=!0x0;}[_0x48dc('0xd')](){this[_0x48dc('0x23')]=!0x1;}[_0x48dc('0x1d')](){this['isHighlighted']=!0x0;}[_0x48dc('0xe')](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1c09=['isVisible','false','ck-revision-history-sidebar__subrevision-collapser','setTemplate','ck-revision-history-sidebar__subrevision-collapser__inner','_isCollapsed','click','bindTemplate','ck-hidden','ck-revision-history-sidebar__subrevision-collapser_collapsed'];(function(_0xd89b9b,_0x1c0908){const _0x36a57d=function(_0x3f1a52){while(--_0x3f1a52){_0xd89b9b['push'](_0xd89b9b['shift']());}};_0x36a57d(++_0x1c0908);}(_0x1c09,0x9c));const _0x36a5=function(_0xd89b9b,_0x1c0908){_0xd89b9b=_0xd89b9b-0x0;let _0x36a57d=_0x1c09[_0xd89b9b];return _0x36a57d;};import{View as _0x2874dd}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x2874dd{constructor(_0x41090a){super(_0x41090a);const _0x2d0b87=this[_0x36a5('0x1')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x36a5('0x7')]({'tag':'span','attributes':{'class':['ck',_0x36a5('0x6'),_0x2d0b87['if'](_0x36a5('0x4'),_0x36a5('0x2'),_0x260d86=>!_0x260d86),_0x2d0b87['if'](_0x36a5('0x9'),_0x36a5('0x3'))],'role':'button','aria-pressed':_0x2d0b87['to'](_0x36a5('0x9'),_0x630a25=>_0x630a25?_0x36a5('0x5'):'true')},'children':[{'tag':'span','attributes':{'class':['ck',_0x36a5('0x8')]}}],'on':{'click':_0x2d0b87['to'](_0x36a5('0x0'))}});}['toggle'](){this[_0x36a5('0x9')]=!this[_0x36a5('0x9')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b53=['ck-revision-history-sidebar__revision__date','div','select','_parentRevisionId','uiLanguage','creator','ck-revision-history-sidebar__revision_selected','set','ck-revision-history-sidebar__revision-authors','bindTemplate','createdAt','_createdAtFormatted','ck-reset','bind','fire','isSelected','setTemplate'];(function(_0xda1fa6,_0x4b53f2){const _0x1bcbaa=function(_0x4c4f78){while(--_0x4c4f78){_0xda1fa6['push'](_0xda1fa6['shift']());}};_0x1bcbaa(++_0x4b53f2);}(_0x4b53,0x9d));const _0x1bcb=function(_0xda1fa6,_0x4b53f2){_0xda1fa6=_0xda1fa6-0x0;let _0x1bcbaa=_0x4b53[_0xda1fa6];return _0x1bcbaa;};import{View as _0x11b79b}from'ckeditor5/src/ui';import _0x426a13 from'./revisionauthorview';import{dateToPrettyFormat as _0x4d081e}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x11b79b{constructor(_0x16688c,_0x9d6075,_0x51c1ae){super(_0x16688c);const _0x557714=this[_0x1bcb('0x5')];this['id']=_0x9d6075['id'],this[_0x1bcb('0x9')](_0x1bcb('0x6'))['to'](_0x9d6075),this[_0x1bcb('0x3')]('isSelected',!0x1),this['bind']('_createdAtFormatted')['to'](this,_0x1bcb('0x6'),_0x5277a3=>_0x5277a3?_0x4d081e(_0x16688c[_0x1bcb('0x0')],_0x5277a3):void 0x0),this['_parentRevisionId']=_0x51c1ae,this[_0x1bcb('0xc')]({'tag':_0x1bcb('0xe'),'attributes':{'class':['ck',_0x1bcb('0x8'),'ck-revision-history-sidebar__revision','ck-revision-history-sidebar__subrevision',_0x557714['if'](_0x1bcb('0xb'),_0x1bcb('0x2'))]},'children':[{'tag':'span','attributes':{'class':['ck',_0x1bcb('0xd')]},'children':[{'text':_0x557714['to'](_0x1bcb('0x7'))}]},{'tag':'ul','attributes':{'class':['ck',_0x1bcb('0x4')]},'children':[new _0x426a13(_0x16688c,_0x9d6075[_0x1bcb('0x1')],!0x0)]}],'on':{'click':_0x557714['to'](this[_0x1bcb('0xf')][_0x1bcb('0x9')](this))}});}[_0x1bcb('0xf')](){this[_0x1bcb('0xb')]=!0x0,this[_0x1bcb('0xa')](_0x1bcb('0xf'),{'parentId':this[_0x1bcb('0x10')]});}['deselect'](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1c2f=['numeric','long'];(function(_0x3a8f08,_0x1c2fe3){var _0x1eab45=function(_0x90f477){while(--_0x90f477){_0x3a8f08['push'](_0x3a8f08['shift']());}};_0x1eab45(++_0x1c2fe3);}(_0x1c2f,0x15a));var _0x1eab=function(_0x3a8f08,_0x1c2fe3){_0x3a8f08=_0x3a8f08-0x0;var _0x1eab45=_0x1c2f[_0x3a8f08];return _0x1eab45;};export function dateToPrettyFormat(_0x3294d1,_0x771b56){return _0x771b56['toLocaleDateString'](_0x3294d1,{'month':_0x1eab('0x1'),'day':_0x1eab('0x0')})+',\x20'+_0x771b56['toLocaleTimeString'](_0x3294d1,{'hour':_0x1eab('0x0'),'minute':_0x1eab('0x0')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b2a=['check','shift\x20+\x20tab','Cancel','keystrokes','arrowdown','revisionName','Save','ck-button-save','input','arrowleft','form','focusTracker','ck-button-cancel','cancelButtonView','value','fieldView','reset','add','revisionNameInputValue','cancel','saveButtonView','locale','set','focus','tab','revisionNameInputView','trim','_createButton','setTemplate','ck-responsive-form','_focusCycler','element','_focusables','_createRevisionNameInput','arrowup','render','delegate','Name\x20of\x20the\x20revision\x20(optional)'];(function(_0x2d70ce,_0x1b2ac5){const _0xe400fb=function(_0xf4d90f){while(--_0xf4d90f){_0x2d70ce['push'](_0x2d70ce['shift']());}};_0xe400fb(++_0x1b2ac5);}(_0x1b2a,0x123));const _0xe400=function(_0x2d70ce,_0x1b2ac5){_0x2d70ce=_0x2d70ce-0x0;let _0xe400fb=_0x1b2a[_0x2d70ce];return _0xe400fb;};import{icons as _0x2c5225}from'ckeditor5/src/core';import{ButtonView as _0x16aa23,FocusCycler as _0x156210,LabeledFieldView as _0x56a9b2,View as _0x2081d8,ViewCollection as _0x142a30,createLabeledInputText as _0x50b856,injectCssTransitionDisabler as _0x276299,submitHandler as _0x485dd4}from'ckeditor5/src/ui';import{FocusTracker as _0x14798c,KeystrokeHandler as _0x3d69a6}from'ckeditor5/src/utils';import{getTranslation as _0x1f7446}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2081d8{constructor(_0x13f764){super(_0x13f764),this['focusTracker']=new _0x14798c(),this[_0xe400('0x10')]=new _0x3d69a6(),this[_0xe400('0x23')]('revisionNameInputValue',''),this[_0xe400('0x0')]=this[_0xe400('0x8')](),this[_0xe400('0x21')]=this[_0xe400('0x2')](_0x1f7446(_0x13f764,_0xe400('0x13')),_0x2c5225[_0xe400('0xd')],_0xe400('0x14')),this[_0xe400('0x21')]['type']='submit',this[_0xe400('0x1a')]=this[_0xe400('0x2')](_0x1f7446(_0x13f764,_0xe400('0xf')),_0x2c5225[_0xe400('0x20')],_0xe400('0x19'),_0xe400('0x20')),this['_focusables']=new _0x142a30(),this[_0xe400('0x5')]=new _0x156210({'focusables':this[_0xe400('0x7')],'focusTracker':this[_0xe400('0x18')],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':_0xe400('0xe'),'focusNext':_0xe400('0x25')}}),this[_0xe400('0x3')]({'tag':_0xe400('0x17'),'attributes':{'class':['ck','ck-revision-history-save-revision-form',_0xe400('0x4')],'tabindex':'-1'},'children':[this[_0xe400('0x0')],this[_0xe400('0x21')],this['cancelButtonView']]}),_0x276299(this);}[_0xe400('0xa')](){super[_0xe400('0xa')](),_0x485dd4({'view':this}),([this[_0xe400('0x0')],this[_0xe400('0x21')],this['cancelButtonView']]['forEach'](_0x5f3b4a=>{this[_0xe400('0x7')][_0xe400('0x1e')](_0x5f3b4a),this[_0xe400('0x18')][_0xe400('0x1e')](_0x5f3b4a[_0xe400('0x6')]);}),this[_0xe400('0x10')]['listenTo'](this['element']));const _0x17ed91=_0x3cb568=>_0x3cb568['stopPropagation']();this[_0xe400('0x10')][_0xe400('0x23')]('arrowright',_0x17ed91),this[_0xe400('0x10')][_0xe400('0x23')](_0xe400('0x16'),_0x17ed91),this[_0xe400('0x10')][_0xe400('0x23')](_0xe400('0x9'),_0x17ed91),this[_0xe400('0x10')]['set'](_0xe400('0x11'),_0x17ed91);}[_0xe400('0x24')](){this[_0xe400('0x5')]['focusFirst']();}get[_0xe400('0x12')](){return this[_0xe400('0x0')]['fieldView'][_0xe400('0x6')][_0xe400('0x1b')][_0xe400('0x1')]();}set[_0xe400('0x12')](_0x11fb07){this['revisionNameInputView'][_0xe400('0x1c')]['element'][_0xe400('0x1b')]=_0x11fb07[_0xe400('0x1')]();}[_0xe400('0x1d')](){this['revisionNameInputView'][_0xe400('0x1c')][_0xe400('0x6')]['value']='';}['_createRevisionNameInput'](){const _0x1be047=new _0x56a9b2(this[_0xe400('0x22')],_0x50b856),_0x3e0a46=_0x1be047[_0xe400('0x1c')];return _0x3e0a46['extendTemplate']({'attributes':{'maxlength':'220'}}),_0x1be047['label']=_0x1f7446(this[_0xe400('0x22')],_0xe400('0xc')),_0x3e0a46['on'](_0xe400('0x15'),()=>{this[_0xe400('0x1f')]=_0x3e0a46[_0xe400('0x6')][_0xe400('0x1b')][_0xe400('0x1')]();}),_0x1be047;}[_0xe400('0x2')](_0x61be94,_0x39dc98,_0x6b9990,_0x53a8f2){const _0x50f516=new _0x16aa23(this[_0xe400('0x22')]);return _0x50f516[_0xe400('0x23')]({'label':_0x61be94,'icon':_0x39dc98,'tooltip':!0x0}),_0x50f516['extendTemplate']({'attributes':{'class':_0x6b9990}}),_0x53a8f2&&_0x50f516[_0xe400('0xb')]('execute')['to'](this,_0x53a8f2),_0x50f516;}}
|