@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231026.0 → 0.0.0-nightly-20231028.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/package.json +6 -6
- package/src/changeitem.js +1 -1
- package/src/editor/revisionviewereditor.js +1 -1
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/revision.js +1 -1
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +1 -1
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/src/revisionviewer.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x13a2=['activeView','isObject','change:isReady','createPositionBefore','_changeView','_getViewForChange','getRevisionData','model','vid_start','_update','markers','_setConversion','isAdded','document','keys','_balloon','revisionHistory','createPositionFromPath','pluginName','detachRoot','removeMarker:revision','isEqual','marked','mouseover','flat','consumable','slice','isInline','forEach','isReady','bind','type','showStack','editing','vid_end','consume','data-change-id','delete','isCollapsed','_markInsertions','isBlock','_markMarkers','from','indexOf','insertion','nextSibling','merge','WidgetToolbarRepository','createRange','_getDiff','useFillerType','markerRange','view','getIndex','isAtEnd','right','change','authors','diffData','side','processor','editor','data','parse','getRevisionRootsAttributes','change:activeChange','addRevision','addMarker:revision-suggestion:deletion','_markMismatchedRemovedTags','_changeIdToChange','ck-suggestion-preview-marker-','_processTape','values','attributesAfter','toViewPosition','map','isIncorrect','backward','split','object','bottom','span','_makeModelFromTape','isOnRoot','updatePosition','comment','execute','schema','high','_threeWayMerge','children','domEvent','deletions','highest','_refreshStartEndIndex','ck-suggestion-preview-marker','markerToHighlight','ck-revision-history-root--active','toModel','range','commands','addMarker:revision','markersStart','name','listenTo','markerName','top','index','test','change:isEnabled','left','isNavigationMode','getRootNames','elementEnd','plugins','isEnabled','editingDowncast','abs','wrap','_appendChild','endIndex','_findChangeIdFromDomTarget','hasClass','ck-revision-history-root-remove','target','_joinTapes','_sortAndFilterDiffChanges','level','clear','insert','domConverter','revision-suggestion','getDomRoot','isRemoved','ck-suggestion-marker--active','upcast','modelRange','isAddSuggestion','activeChange','isAttached','RevisionViewer','mapViewToDom','mapper','suggestion:','add','length','_makeModelFromViewString','loadRevisionData','vid','suggestion','resolve','affectsData','getClientRects','element','_removeRevisionMarkers','toData','parent','sort','_getChangeFromId','isBefore','nextPosition','unbindElementFromMarkerName','adapter','return','attributesBefore','remove','isSuggestion','stop','softBreak','viewItem','pairId','showPreviousChange','startIndex','_revisions','text','showNextChange','conversion','_initInteractions','changes','next','splice','then','addClass','toViewElement','isLimit','getRevision','enableReadOnlyMode','restoreRevision','removeAttribute','change:numberOfChanges','string','repository','_activeViewTarget','includes','insertions','setAttribute','isRemoveSuggestion','rootName','hasAttribute','changeId','getCustomProperty','-new','unshift','_data','getItems','getWalker','mousedown','_removeMissingPairs','distance','toViewRange','attribute:vid','_removeUnsupportedChanges','dataDowncast','revision','writer','addRevisionData','revisionHistoryAttachChange','addRoot','isAtStart','removeClass','revisionHistoryLabel','createUIElement','end','filter','selection','findIndex','find','has','_getRevisionsRange','userId','addHighlight','getRoot','nodeAfter','ck-editor__editable__overlay','diff','POSITIVE_INFINITY','all','markersEnd','downcastDispatcher','attributes','attachChange','startsWith','requires','_cleanUp','refresh','done','revision-start','shift','collaboration.channelId','maxOffset','markerToData','_setDistance','revision:','_getViewObj','RevisionsRepository','code','dataToMarker','locale','push','removeMarker','ck-suggestion-marker','_fixObsoleteTags','ck-suggestion-marker-merge','first','addMarker:revision-suggestion:insertion','elementToAttribute','_step','default','_cleanMarkers','getAttribute','deletion','createRevision','get','reconvertMarker','ck-suggestion-marker-','_markSuggestions','for','newRevisionId','createAttributeElement','removeMarker:revision-suggestion','markerNameToElements','_makeTape','getAttributes','set','isAfter','previousPosition','isContent','elementStart','item','compare','enqueueChange','start','revision-comment:'];(function(_0x41cdcf,_0x13a29f){const _0x27e554=function(_0x3689d9){while(--_0x3689d9){_0x41cdcf['push'](_0x41cdcf['shift']());}};_0x27e554(++_0x13a29f);}(_0x13a2,0x178));const _0x27e5=function(_0x41cdcf,_0x13a29f){_0x41cdcf=_0x41cdcf-0x0;let _0x27e554=_0x13a2[_0x41cdcf];return _0x27e554;};import{Plugin as _0x47f379,Command as _0x25dea0}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x3331af}from'ckeditor5/src/utils';import{ContextualBalloon as _0x22338d}from'ckeditor5/src/ui';import{DocumentFragment as _0x5ae7df,Element as _0x1af484,Text as _0x60a600,ViewDocumentFragment as _0x243d94,ViewText as _0x3b4aa0,ViewElement as _0x31ba38,ViewContainerElement as _0x480268,ViewAttributeElement as _0x226dc,ViewEmptyElement as _0x9d7ba1,ViewRawElement as _0x18032d,ViewUIElement as _0x316d96}from'ckeditor5/src/engine';import{Users as _0x303786,getMarkerDomElement as _0x30fca9}from'ckeditor5-collaboration/src/collaboration-core';import _0x1f85d0 from'./ui/revisionviewer/changedetailsview';import _0x41bf99 from'./revisionsrepository';import _0x41f2a0 from'./changeitem';import{default as _0x5d2d27}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x21cd5c}from'lodash-es';const tt={'c':_0x480268,'a':_0x226dc,'e':_0x9d7ba1,'r':_0x18032d,'u':_0x316d96};export default class d extends _0x47f379{static get[_0x27e5('0xe4')](){return _0x27e5('0x39');}static get[_0x27e5('0x9f')](){return[_0x303786,_0x22338d,_0x41bf99];}constructor(_0x14bea4){super(_0x14bea4),this[_0x27e5('0x6c')]=this[_0x27e5('0x10f')][_0x27e5('0x1f')][_0x27e5('0xbd')](_0x27e5('0xab')),this[_0x27e5('0xc8')](_0x27e5('0x37'),null),this[_0x27e5('0xc8')](_0x27e5('0xd2'),null),this[_0x27e5('0x6d')]=null,this['set'](_0x27e5('0x97'),null),this[_0x27e5('0xc8')]('isReady',!0x1),this['set'](_0x27e5('0x20'),!0x0),this['on']('change:isEnabled',(_0x1ccc9c,_0x4d3771,_0x194e57)=>{this[_0x27e5('0x37')]=null,this[_0x27e5('0xd2')]=null,this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')]['change'](_0x307496=>{for(const _0x48d1eb of this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')]['document']['roots'])_0x194e57?_0x307496[_0x27e5('0x88')](_0x27e5('0x96'),_0x48d1eb):_0x307496[_0x27e5('0x63')](_0x27e5('0x96'),_0x48d1eb);});}),this[_0x27e5('0xf0')](_0x27e5('0x1c'))['to'](this,_0x27e5('0x37'),_0x57681e=>null!==_0x57681e),this[_0x27e5('0xf0')]('currentChangeNumber')['to'](this,_0x27e5('0xef'),this,'diff',this,_0x27e5('0x37'),(_0x1031eb,_0x2715ae,_0x3f9c93)=>_0x1031eb&&_0x3f9c93?_0x2715ae[_0x27e5('0x5f')][_0x27e5('0x107')](_0x3f9c93):0x0),this[_0x27e5('0xf0')]('numberOfChanges')['to'](this,_0x27e5('0xef'),this,_0x27e5('0x97'),(_0x109782,_0x225251)=>_0x109782?_0x225251['changes'][_0x27e5('0x3e')]:0x0),this[_0x27e5('0xd6')]=null,this['_changeIdToChange']=new Map(),this[_0x27e5('0x4f')]=null,this['_balloon']=this[_0x27e5('0x10f')][_0x27e5('0x1f')][_0x27e5('0xbd')](_0x22338d);}['init'](){const _0x509b3c=this[_0x27e5('0x10f')],_0x5759e8=new ShowChangeCommand(_0x509b3c,{'direction':_0x27e5('0x11f')}),_0x57571b=new ShowChangeCommand(_0x509b3c,{'direction':'forward'});(_0x509b3c[_0x27e5('0x11')][_0x27e5('0x3d')](_0x27e5('0x58'),_0x5759e8),_0x509b3c[_0x27e5('0x11')][_0x27e5('0x3d')](_0x27e5('0x5c'),_0x57571b),_0x509b3c[_0x27e5('0x11')][_0x27e5('0x3d')](_0x27e5('0x68'),new RestoreRevisionCommand(_0x509b3c)),this['on'](_0x27e5('0x6a'),()=>{_0x5759e8[_0x27e5('0xa1')](),_0x57571b[_0x27e5('0xa1')]();}),this[_0x27e5('0xdd')](),this[_0x27e5('0x5e')](),_0x509b3c[_0x27e5('0x67')]('revision-viewer'),_0x509b3c[_0x27e5('0x1f')][_0x27e5('0x90')](_0x27e5('0x101')))&&_0x509b3c[_0x27e5('0x1f')][_0x27e5('0xbd')]('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async[_0x27e5('0xd8')](_0x36a051){await this[_0x27e5('0x40')](_0x36a051);const _0x121149={};for(const _0x3deb72 in _0x36a051[_0x27e5('0x10c')]){if(_0x36a051[_0x27e5('0x10c')][_0x3deb72][_0x27e5('0x9d')]&&!_0x36a051[_0x27e5('0x10c')][_0x3deb72][_0x27e5('0x9d')][_0x27e5('0x38')])continue;const _0x38b5ab=this[_0x27e5('0x47')](JSON[_0x27e5('0x111')](_0x36a051['diffData'][_0x3deb72][_0x27e5('0x6f')])),_0x180b20=this[_0x27e5('0x10f')]['editing']['view'][_0x27e5('0xdf')],_0x51322e=new _0x243d94(_0x180b20,_0x38b5ab['map'](_0x2bd2ba=>this[_0x27e5('0xaa')](_0x2bd2ba)));this['editor']['data']['processor'][_0x27e5('0x104')](_0x27e5('0xe8')),_0x121149[_0x3deb72]=this[_0x27e5('0x10f')]['data'][_0x27e5('0x10e')][_0x27e5('0x48')](_0x51322e),this[_0x27e5('0x10f')][_0x27e5('0x110')][_0x27e5('0x10e')]['useFillerType'](_0x27e5('0xb8'));}return _0x121149;}async[_0x27e5('0x112')](_0x255c48){await this[_0x27e5('0x40')](_0x255c48);const _0x46eae3={};for(const _0x6e5a15 in _0x255c48[_0x27e5('0x10c')])_0x255c48[_0x27e5('0x10c')][_0x6e5a15][_0x27e5('0x9d')]&&!_0x255c48[_0x27e5('0x10c')][_0x6e5a15][_0x27e5('0x9d')][_0x27e5('0x38')]||(_0x46eae3[_0x6e5a15]=_0x255c48['diffData'][_0x6e5a15][_0x27e5('0x11b')]||{});return _0x46eae3;}['_removeRevisionMarkers'](_0xb9249c){return(_0xb9249c=_0xb9249c[_0x27e5('0x8c')](_0x5b22d1=>!_0x5b22d1[_0x27e5('0x14')]||_0x27e5('0xa3')!==_0x5b22d1[_0x27e5('0x14')]&&'revision-end'!==_0x5b22d1['name']))[_0x27e5('0xee')](_0x3c368f=>{_0x27e5('0x6b')!=typeof _0x3c368f&&(_0x3c368f[_0x27e5('0x7')]=this[_0x27e5('0x47')](_0x3c368f['children']),_0x3c368f[_0x27e5('0x9c')]=_0x3c368f['attributes'][_0x27e5('0x8c')](_0x16aa2c=>!_0x16aa2c[0x0]['startsWith']('data-revision-')));}),_0xb9249c;}async[_0x27e5('0xce')](_0x71d784,_0x3797e1,_0x3ccf14=!0x1){if(!this['isEnabled'])return;const _0x1fd2a9=this[_0x27e5('0x97')],_0x28c21c=this['repository'],_0x5b1240=_0x27e5('0x6b')==typeof _0x71d784?_0x28c21c[_0x27e5('0x66')](_0x71d784):_0x71d784,_0x2cf2e8='string'==typeof _0x3797e1?_0x28c21c['getRevision'](_0x3797e1):_0x3797e1,_0x157bfe=_0x5b1240['id'],_0x444646=_0x2cf2e8?_0x2cf2e8['id']:null;if(!_0x3ccf14&&this['diff']&&this[_0x27e5('0x97')][_0x27e5('0xc2')]===_0x157bfe&&this[_0x27e5('0x97')]['oldRevisionId']===_0x444646)return Promise[_0x27e5('0x43')]();this['isReady']=!0x1,this['activeView']=null,this[_0x27e5('0x37')]=null,this['diff']=new _0x5d2d27(_0x157bfe,_0x444646);const _0xde9017=this[_0x27e5('0x91')](_0x5b1240,_0x2cf2e8,!0x0)[_0x27e5('0x11d')](_0x54cb7c=>this[_0x27e5('0x40')](_0x54cb7c));return _0xde9017[_0x27e5('0xaf')](new Promise(_0x5dafd2=>{setTimeout(_0x5dafd2,0x14);})),Promise[_0x27e5('0x99')](_0xde9017)[_0x27e5('0x62')](()=>{if(!this[_0x27e5('0x20')])return;this[_0x27e5('0xa0')]();const _0x3c8d08=this[_0x27e5('0x103')](_0x157bfe,_0x444646);for(const _0x2d47fa of _0x3c8d08['changes'])this['_changeIdToChange'][_0x27e5('0xc8')](_0x2d47fa['id'],_0x2d47fa);this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xcf')]({'isUndoable':!0x1},_0x10c7bb=>{for(const _0x112091 of this['editor'][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x1d')]())_0x10c7bb[_0x27e5('0xe5')](_0x112091);for(const _0x1f30bb of Object[_0x27e5('0xe0')](_0x3c8d08['model'])){const _0x18e149=_0x10c7bb[_0x27e5('0x86')](_0x1f30bb);for(const _0x1247ca of Object[_0x27e5('0xe0')](_0x3c8d08['attributes'][_0x1f30bb]))_0x10c7bb[_0x27e5('0x70')](_0x1247ca,_0x3c8d08[_0x27e5('0x9c')][_0x1f30bb][_0x1247ca],_0x18e149);_0x10c7bb[_0x27e5('0x2e')](_0x3c8d08['model'][_0x1f30bb],_0x18e149,0x0);}}),this[_0x27e5('0x97')]['_setChanges'](this[_0x27e5('0x2b')](_0x3c8d08[_0x27e5('0x5f')])),this[_0x27e5('0xef')]=!0x0;})['catch'](_0x4b1e6f=>{console['error'](_0x4b1e6f),this[_0x27e5('0xa0')](),_0x1fd2a9&&(this['diff']=_0x1fd2a9),this[_0x27e5('0xef')]=!0x0;});}[_0x27e5('0x84')](_0x508d7a,_0xd27084){const _0x566858=this[_0x27e5('0x6c')][_0x27e5('0xbc')](_0x508d7a);return _0x566858['on'](_0x27e5('0xdb'),(_0x297e30,_0x2ff74f,_0x2cda06)=>_0xd27084(_0x2ff74f,_0x2cda06,_0x566858)),this[_0x27e5('0x6c')][_0x27e5('0x114')](_0x566858),_0x566858;}[_0x27e5('0x40')](_0x4e8fb6){if(!_0x4e8fb6||_0x4e8fb6[_0x27e5('0x10c')])return Promise[_0x27e5('0x43')]();{const _0xae51e1=this[_0x27e5('0x10f')]['config'][_0x27e5('0xbd')](_0x27e5('0xa5'));return this[_0x27e5('0x4f')][_0x27e5('0x66')]({'channelId':_0xae51e1,'revisionId':_0x4e8fb6['id']})[_0x27e5('0x62')](_0x56df10=>{_0x4e8fb6[_0x27e5('0xdb')]({'diffData':_0x56df10[_0x27e5('0x10c')]},!0x0);});}}['_cleanUp'](){this[_0x27e5('0x37')]=null,this[_0x27e5('0xb9')](),this[_0x27e5('0xd6')]&&this[_0x27e5('0xd6')]['destroy'](),this[_0x27e5('0xd6')]=null,this['_changeIdToChange'][_0x27e5('0x2d')](),this['editor'][_0x27e5('0xd9')][_0x27e5('0xcf')]({'isUndoable':!0x1},_0x45b461=>{for(const _0x4f6786 of this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x1d')]())_0x45b461['detachRoot'](_0x4f6786);});}[_0x27e5('0x2b')](_0x57f993){const _0x143db9=[],_0x23c5b3=new Map();for(const _0x4e7e14 of this['editor'][_0x27e5('0xd9')]['document'][_0x27e5('0x1d')]()){const _0x5738c5=this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')]['getDomRoot'](_0x4e7e14);if(!_0x5738c5)continue;const _0x30c1fa=_0x5738c5[_0x27e5('0x45')]()[_0x27e5('0xcd')](0x0);_0x30c1fa&&(_0x143db9[_0x27e5('0xaf')](_0x4e7e14),_0x23c5b3[_0x27e5('0xc8')](_0x4e7e14,_0x30c1fa));}return _0x143db9['sort']((_0x5cf117,_0x14e1eb)=>{const _0x4d6f2d=_0x23c5b3[_0x27e5('0xbd')](_0x5cf117),_0x41535a=_0x23c5b3['get'](_0x14e1eb);return _0x4d6f2d['y']-_0x41535a['y']||_0x4d6f2d['x']-_0x41535a['x'];}),(_0x57f993=_0x57f993[_0x27e5('0x8c')](_0x2637bf=>_0x143db9[_0x27e5('0x6e')](_0x2637bf['rootName'])))[_0x27e5('0x4a')]((_0x1b2c6c,_0x4c4bf1)=>_0x143db9[_0x27e5('0xfd')](_0x1b2c6c[_0x27e5('0x72')])-_0x143db9['indexOf'](_0x4c4bf1[_0x27e5('0x72')])),_0x57f993;}[_0x27e5('0xc6')](_0xc80d0){const _0x509d00=Array[_0x27e5('0xfc')](_0xc80d0[_0x27e5('0xdc')])[_0x27e5('0x8c')](([_0xca6d0f,_0x2e2966])=>_0xca6d0f[_0x27e5('0x9e')](_0x27e5('0xa9'))&&!_0x2e2966[_0x27e5('0xf8')]),_0x36ca76=Array[_0x27e5('0xfc')](this['editor']['model']['createRangeIn'](_0xc80d0)[_0x27e5('0x7a')]({'singleCharacters':!0x0}));if(0x0!=_0x509d00[_0x27e5('0x3e')])for(const _0x719409 of _0x36ca76){const [_0x898288,_0x2085c0]=_0x509d00[0x0],[,_0x3a20d2,_0x4c1f78]=_0x898288['split'](':');if(_0x2085c0[_0x27e5('0x8b')][_0x27e5('0xe7')](_0x719409[_0x27e5('0x4d')])&&_0x509d00['shift'](),(_0x719409[_0x27e5('0xca')]['isEqual'](_0x2085c0['start'])||_0x719409[_0x27e5('0xca')][_0x27e5('0xc9')](_0x2085c0['start']))&&(_0x27e5('0xfe')==_0x3a20d2?_0x719409['isAdded']={'userId':_0x4c1f78}:'deletion'==_0x3a20d2&&(_0x719409[_0x27e5('0x32')]={'userId':_0x4c1f78})),0x0==_0x509d00[_0x27e5('0x3e')])break;}return _0x36ca76;}[_0x27e5('0xb')](_0x26c7b4){const _0x22524d=new Map();for(let _0x4ca0d0=0x0;_0x4ca0d0<_0x26c7b4[_0x27e5('0x3e')];_0x4ca0d0++)_0x27e5('0x5b')===_0x26c7b4[_0x4ca0d0]['type']?(_0x26c7b4[_0x4ca0d0][_0x27e5('0xcd')]['startIndex']=_0x4ca0d0,_0x26c7b4[_0x4ca0d0]['item'][_0x27e5('0x25')]=_0x4ca0d0):(_0x27e5('0xcc')===_0x26c7b4[_0x4ca0d0][_0x27e5('0xf1')]?_0x26c7b4[_0x4ca0d0][_0x27e5('0xcd')][_0x27e5('0x59')]=_0x4ca0d0:_0x27e5('0x1e')===_0x26c7b4[_0x4ca0d0][_0x27e5('0xf1')]&&(_0x26c7b4[_0x4ca0d0]['item']['endIndex']=_0x4ca0d0),_0x22524d[_0x27e5('0xc8')](_0x26c7b4[_0x4ca0d0]['id'],_0x4ca0d0));for(const _0x2f6c17 of _0x22524d[_0x27e5('0x11a')]())_0x27e5('0xcc')===_0x26c7b4[_0x2f6c17]['type']?_0x26c7b4[_0x2f6c17]['item'][_0x27e5('0x25')]=_0x22524d[_0x27e5('0xbd')](_0x26c7b4[_0x2f6c17][_0x27e5('0x57')]):_0x27e5('0x1e')===_0x26c7b4[_0x2f6c17][_0x27e5('0xf1')]&&(_0x26c7b4[_0x2f6c17][_0x27e5('0xcd')]['startIndex']=_0x22524d['get'](_0x26c7b4[_0x2f6c17][_0x27e5('0x57')]));}[_0x27e5('0x119')](_0x2db02a){for(let _0x5bb2bb=0x0;_0x5bb2bb<_0x2db02a[_0x27e5('0x3e')];_0x5bb2bb++){if(_0x27e5('0xcc')===_0x2db02a[_0x5bb2bb]['type'])_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x59')]=_0x5bb2bb;else{if(_0x27e5('0x1e')===_0x2db02a[_0x5bb2bb][_0x27e5('0xf1')]){_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x25')]=_0x5bb2bb;const _0x4e92da=_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')]['startIndex'];_0x2db02a[_0x4e92da][_0x27e5('0x57')]=_0x2db02a[_0x5bb2bb]['id'],_0x2db02a[_0x5bb2bb][_0x27e5('0x57')]=_0x2db02a[_0x4e92da]['id'];}else _0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x59')]=_0x5bb2bb,_0x2db02a[_0x5bb2bb][_0x27e5('0xcd')][_0x27e5('0x25')]=_0x5bb2bb,_0x2db02a[_0x5bb2bb]['pairId']=null;}_0x2db02a[_0x5bb2bb]['markersStart']||(_0x2db02a[_0x5bb2bb][_0x27e5('0x13')]=[],_0x2db02a[_0x5bb2bb][_0x27e5('0x9a')]=[]);}}['_markInsertions'](_0x45192d,_0x319894){const _0x4d2e42=_0x45192d[_0x27e5('0x8c')](_0x231f02=>!_0x231f02[_0x27e5('0xde')]);for(let _0x372a30=0x0;_0x372a30<_0x319894[_0x27e5('0x3e')];_0x372a30++)_0x319894[_0x372a30][_0x27e5('0xde')]&&(_0x4d2e42[_0x372a30][_0x27e5('0xde')]=_0x319894[_0x372a30][_0x27e5('0xde')]);}[_0x27e5('0x3f')](_0x22415d){const _0x5b0fbd=JSON['parse'](_0x22415d),_0x2025b2=this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')][_0x27e5('0xdf')],_0x269539=new _0x243d94(_0x2025b2,_0x5b0fbd[_0x27e5('0x11d')](_0x50d57e=>this[_0x27e5('0xaa')](_0x50d57e)));return this[_0x27e5('0x10f')][_0x27e5('0x110')][_0x27e5('0xf')](_0x269539);}[_0x27e5('0xaa')](_0x39ad23){const _0x1154c7=this['editor'][_0x27e5('0xf3')][_0x27e5('0x106')]['document'];if('string'==typeof _0x39ad23)return new _0x3b4aa0(_0x1154c7,_0x39ad23);{const _0x334bb4=_0x39ad23['children']['map'](_0x59dc0e=>this['_getViewObj'](_0x59dc0e));return new(tt[_0x39ad23[(_0x27e5('0xf1'))]]||_0x31ba38)(_0x1154c7,_0x39ad23[_0x27e5('0x14')],_0x39ad23[_0x27e5('0x9c')],_0x334bb4);}}[_0x27e5('0x103')](_0x28fe92,_0x1ca8ab=null){const _0x5c3972=this['repository'][_0x27e5('0x66')](_0x28fe92),_0x2321d4=_0x1ca8ab?this[_0x27e5('0x6c')]['getRevision'](_0x1ca8ab):null,_0x3df79c=this[_0x27e5('0x91')](_0x5c3972,_0x2321d4),_0x1248fd=_0x3df79c[_0x3df79c['length']-0x1],_0x455835=new Map(),_0x3b7eec={'model':{},'attributes':{},'changes':[]},_0x141689=new Set(),_0x18da42=new Map();for(let _0x173e42=_0x3df79c[_0x27e5('0x3e')]-0x1;_0x173e42>=0x0;_0x173e42--){const _0x40c1bc=_0x3df79c[_0x173e42];for(const _0x350df0 of Object[_0x27e5('0xe0')](_0x40c1bc[_0x27e5('0x10c')]))if(_0x40c1bc[_0x27e5('0x10c')][_0x350df0][_0x27e5('0x9d')]){const _0x5009f7=_0x40c1bc[_0x27e5('0x10c')][_0x350df0][_0x27e5('0x9d')];_0x5009f7[_0x27e5('0x38')]?(_0x141689['add'](_0x350df0),_0x18da42[_0x27e5('0x90')](_0x350df0)&&_0x18da42['get'](_0x350df0)[_0x27e5('0x92')]==_0x5009f7[_0x27e5('0x92')]?_0x18da42['delete'](_0x350df0):_0x18da42[_0x27e5('0xc8')](_0x350df0,_0x5009f7)):_0x18da42['has'](_0x350df0)?(_0x141689[_0x27e5('0xf7')](_0x350df0),_0x18da42[_0x27e5('0xf7')](_0x350df0)):(_0x141689['add'](_0x350df0),_0x18da42[_0x27e5('0xc8')](_0x350df0,_0x5009f7));}else _0x141689[_0x27e5('0x3d')](_0x350df0);}for(const _0x19f8a4 of _0x141689){const _0x4b4efe=_0x18da42['has'](_0x19f8a4)&&!_0x18da42[_0x27e5('0xbd')](_0x19f8a4)[_0x27e5('0x38')];let _0x337c08=_0x4b4efe?_0x3df79c['length']-0x1:0x0;const _0x49d93d=_0x4b4efe?-0x1:0x1;for(;_0x3df79c[_0x337c08];){const _0x2635fc=_0x3df79c[_0x337c08];if(_0x2635fc[_0x27e5('0x10c')][_0x19f8a4]){const _0x51f9ab=_0x4b4efe?_0x2635fc['diffData'][_0x19f8a4][_0x27e5('0x51')]:_0x2635fc[_0x27e5('0x10c')][_0x19f8a4][_0x27e5('0x11b')];_0x3b7eec['attributes'][_0x19f8a4]=_0x51f9ab?_0x21cd5c(_0x51f9ab):{};break;}_0x337c08+=_0x49d93d;}}for(const _0x17728e of _0x3df79c){_0x17728e[_0x27e5('0xd9')]={};for(const _0x57d788 of _0x17728e[_0x27e5('0x10b')])_0x455835[_0x27e5('0xc8')](_0x57d788['id'],_0x57d788);for(const _0x1d4431 of _0x141689){const _0x5973c8=_0x17728e[_0x27e5('0x10c')][_0x1d4431]?_0x17728e[_0x27e5('0x10c')][_0x1d4431]['insertions']:'[]',_0x161632=_0x17728e[_0x27e5('0x10c')][_0x1d4431]?_0x17728e[_0x27e5('0x10c')][_0x1d4431][_0x27e5('0x9')]:'[]';_0x17728e['model'][_0x1d4431]={'insertions':this['_makeModelFromViewString'](_0x5973c8),'deletions':this[_0x27e5('0x3f')](_0x161632)};}}for(const _0x4b82c0 of _0x141689){let _0x292e88=null,_0x4f388c=0x0;const _0x4f8d12=new Map(Array[_0x27e5('0xfc')](_0x5c3972[_0x27e5('0xd9')][_0x4b82c0][_0x27e5('0x6f')][_0x27e5('0xdc')])[_0x27e5('0x8c')](([_0x5f1730])=>!_0x5f1730[_0x27e5('0x9e')](_0x27e5('0xa9'))));let _0x5cd6ae=0x0;for(const _0xadf978 of _0x3df79c){const _0x43efdc=this['_makeTape'](_0xadf978[_0x27e5('0xd9')][_0x4b82c0][_0x27e5('0x6f')]);_0xadf978==_0x5c3972?(_0x292e88=_0x43efdc,_0x4f388c=_0x292e88['length'],_0x292e88[_0x27e5('0xee')](_0x1f29d3=>{_0x1f29d3['id']=_0x5cd6ae++;}),this[_0x27e5('0x119')](_0x292e88)):this[_0x27e5('0xf9')](_0x292e88,_0x43efdc);const _0x7aa571=_0x292e88[_0x27e5('0x8c')](_0x199571=>!_0x199571['isAdded'])[_0x27e5('0x11d')](_0x1a63a5=>_0x1a63a5['id']);let _0x3a03be=0x0;const _0x58bf49=this['_makeTape'](_0xadf978[_0x27e5('0xd9')][_0x4b82c0]['deletions']);_0x58bf49['forEach'](_0x2f386e=>{_0x2f386e['isRemoved']?_0x2f386e['id']=_0x4f388c++:_0x2f386e['id']=_0x7aa571[_0x3a03be++];}),this[_0x27e5('0x119')](_0x58bf49),this['_setDistance'](_0x292e88,_0x27e5('0xde')),this[_0x27e5('0xa8')](_0x58bf49,_0x27e5('0x32')),_0xadf978==_0x5c3972&&this[_0x27e5('0xfb')](_0x292e88,_0x4f8d12),_0x292e88=this['_joinTapes'](_0x292e88,_0x58bf49),this[_0x27e5('0xb')](_0x292e88),this[_0x27e5('0xa8')](_0x292e88,_0x27e5('0x32'));}_0x292e88=_0x292e88['filter'](_0x327aef=>!(_0x327aef['isAdded']&&_0x327aef[_0x27e5('0x32')]));const _0x3fb61c=new Map(_0x1248fd[_0x27e5('0xd9')][_0x4b82c0][_0x27e5('0x9')]['markers']),_0x354165=new Set(_0x4f8d12[_0x27e5('0xe0')]());for(const _0x5a8c3e of _0x3fb61c[_0x27e5('0xe0')]())_0x354165[_0x27e5('0xf7')](_0x5a8c3e);this[_0x27e5('0xc0')](_0x292e88,_0x354165),this[_0x27e5('0xb2')](_0x292e88),_0x292e88=this[_0x27e5('0x7c')](_0x292e88),_0x292e88=this[_0x27e5('0x116')](_0x292e88),_0x292e88=this['_removeUnsupportedChanges'](_0x292e88);const {root:_0x9e76bd,changes:_0x31739f}=this['_makeModelFromTape'](_0x292e88,_0x455835,_0x4b82c0);_0x3b7eec[_0x27e5('0xd9')][_0x4b82c0]=_0x9e76bd;const _0x1e9d8d=_0x18da42[_0x27e5('0xbd')](_0x4b82c0);if(_0x1e9d8d){const _0x42114b=_0x455835[_0x27e5('0xbd')](_0x1e9d8d[_0x27e5('0x92')]),_0x47ad05=new _0x41f2a0({'author':_0x42114b,'type':_0x1e9d8d[_0x27e5('0x38')]?'add':_0x27e5('0x52'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x4b82c0});_0x31739f[_0x27e5('0x77')](_0x47ad05),_0x3b7eec[_0x27e5('0x9c')][_0x4b82c0]['revisionHistoryAttachChange']=_0x47ad05['id'];}_0x3b7eec[_0x27e5('0x5f')]=_0x3b7eec[_0x27e5('0x5f')]['concat'](_0x31739f);}return _0x3b7eec;}[_0x27e5('0xfb')](_0x9c87f7,_0x4e3556){for(let _0x83b556=0x0;_0x83b556<_0x9c87f7[_0x27e5('0x3e')];_0x83b556++)for(const [_0x21e7e5,_0x34dde0]of _0x4e3556)_0x34dde0[_0x27e5('0xd0')]['isEqual'](_0x9c87f7[_0x83b556]['previousPosition'])&&_0x9c87f7[_0x83b556][_0x27e5('0x13')][_0x27e5('0xaf')](_0x21e7e5),_0x34dde0[_0x27e5('0x8b')][_0x27e5('0xe7')](_0x9c87f7[_0x83b556]['nextPosition'])&&_0x9c87f7[_0x83b556][_0x27e5('0x9a')]['push'](_0x21e7e5);}[_0x27e5('0x2a')](_0x170474,_0x362860){let _0x3f6e38=[],_0x44de73=0x0,_0x457e97=0x0;for(;_0x44de73<_0x170474[_0x27e5('0x3e')]||_0x457e97<_0x362860[_0x27e5('0x3e')];){const _0xda4402=_0x170474[_0x44de73]||{},_0x18b280=_0x362860[_0x457e97]||{};if(_0xda4402['id']==_0x18b280['id'])_0x44de73++,_0x457e97++,_0x3f6e38[_0x27e5('0xaf')](_0xda4402);else{if(_0x18b280[_0x27e5('0x32')]&&_0xda4402[_0x27e5('0xde')]){const {commonTape:_0x325282,iEnd:_0x537f33,jEnd:_0x40b1b2}=this[_0x27e5('0x6')](_0x170474,_0x44de73,_0x362860,_0x457e97);_0x3f6e38=_0x3f6e38['concat'](_0x325282),_0x44de73=_0x537f33,_0x457e97=_0x40b1b2;}else _0x18b280[_0x27e5('0x32')]?(_0x457e97++,_0x3f6e38['push'](_0x18b280)):(_0x44de73++,_0x3f6e38[_0x27e5('0xaf')](_0xda4402));}}return _0x3f6e38;}['_markSuggestions'](_0x5c9a3f,_0x2aa982){const _0x4b86e8=[];for(let _0x181f7c=0x0;_0x181f7c<_0x5c9a3f['length'];_0x181f7c++){for(let _0xb72c87=0x0;_0xb72c87<_0x5c9a3f[_0x181f7c][_0x27e5('0x13')][_0x27e5('0x3e')];_0xb72c87++){const _0x39c5a7=_0x5c9a3f[_0x181f7c]['markersStart'][_0xb72c87];if(!_0x2aa982[_0x27e5('0x90')](_0x39c5a7))continue;const {group:_0x51aebd,type:_0x3ee9f2,authorId:_0x39c41b}=_0x1a9bdf(_0x39c5a7);_0x27e5('0x30')!=_0x51aebd||_0x27e5('0xfe')!=_0x3ee9f2&&_0x27e5('0xbb')!=_0x3ee9f2||(_0x4b86e8[_0x27e5('0x77')]({'type':_0x3ee9f2,'name':_0x39c5a7,'userId':_0x39c41b}),_0x5c9a3f[_0x181f7c]['markersStart'][_0x27e5('0x61')](_0xb72c87,0x1),_0xb72c87--);}_0x5bc8d9(_0x5c9a3f[_0x181f7c]);for(let _0x491195=0x0;_0x491195<_0x5c9a3f[_0x181f7c][_0x27e5('0x9a')][_0x27e5('0x3e')];_0x491195++){const _0x5a2d18=_0x5c9a3f[_0x181f7c]['markersEnd'][_0x491195];if(!_0x2aa982[_0x27e5('0x90')](_0x5a2d18))continue;const {group:_0x51d048,type:_0x332390}=_0x1a9bdf(_0x5a2d18);if(_0x27e5('0x30')!=_0x51d048||'insertion'!=_0x332390&&'deletion'!=_0x332390)continue;_0x5c9a3f[_0x181f7c][_0x27e5('0x9a')][_0x27e5('0x61')](_0x491195,0x1),_0x491195--;const _0x3fa564=_0x4b86e8[_0x27e5('0x8e')](_0x4cf633=>_0x4cf633[_0x27e5('0x14')]==_0x5a2d18);_0x3fa564>-0x1&&_0x4b86e8[_0x27e5('0x61')](_0x3fa564,0x1);}}function _0x1a9bdf(_0x5ccf9f){const _0x37b1a2=_0x5ccf9f[_0x27e5('0x120')](':');return{'group':_0x37b1a2[0x0],'type':_0x37b1a2[0x1],'subType':_0x37b1a2['length']>=0x5?_0x37b1a2[0x2]:null,'id':_0x37b1a2['length']<0x5?_0x37b1a2[0x2]:_0x37b1a2[0x3],'authorId':_0x37b1a2[_0x27e5('0x3e')]<0x5?_0x37b1a2[0x3]:_0x37b1a2[0x4],'markerCount':0x6==_0x37b1a2['length']?_0x37b1a2[0x5]:null};}function _0x5bc8d9(_0x17b540){for(let _0x3c14a1=0x0;_0x3c14a1<_0x4b86e8[_0x27e5('0x3e')];_0x3c14a1++){if(_0x17b540[_0x27e5('0xde')]&&_0x27e5('0xfe')==_0x4b86e8[_0x3c14a1][_0x27e5('0xf1')])return _0x17b540[_0x27e5('0x36')]=_0x4b86e8[_0x3c14a1],void delete _0x17b540[_0x27e5('0xde')];if(!_0x17b540[_0x27e5('0xde')]&&!_0x17b540[_0x27e5('0x32')]&&_0x27e5('0xbb')==_0x4b86e8[_0x3c14a1][_0x27e5('0xf1')])return void(_0x17b540[_0x27e5('0x71')]=_0x4b86e8[_0x3c14a1]);}}}[_0x27e5('0xa8')](_0x8c6261,_0x4244ee){let _0x545b03=0x0,_0x3a714c=!0x1;const _0x7cac76=new Map();for(const _0x5d1b9b of _0x8c6261)_0x5d1b9b[_0x4244ee]?_0x3a714c&&(_0x545b03++,_0x3a714c=!0x1):(_0x545b03++,_0x3a714c=!0x0),_0x7cac76['set'](_0x5d1b9b['id'],_0x545b03);for(let _0x136edd=0x0;_0x136edd<_0x8c6261['length'];_0x136edd++){if(_0x27e5('0x32')==_0x4244ee&&_0x8c6261[_0x136edd]['isAdded']||_0x27e5('0xde')==_0x4244ee&&_0x8c6261[_0x136edd][_0x27e5('0x32')])continue;if('text'==_0x8c6261[_0x136edd]['type']){_0x8c6261[_0x136edd][_0x27e5('0x7d')]=0x0;continue;}const _0x19e7f3=_0x7cac76[_0x27e5('0xbd')](_0x8c6261[_0x136edd]['pairId']),_0x35f894=_0x7cac76[_0x27e5('0xbd')](_0x8c6261[_0x136edd]['id']);_0x8c6261[_0x136edd]['distance']=_0x19e7f3-_0x35f894;}}['_getRevisionsRange'](_0x4ffd62,_0x2a1ab7,_0x2d7f9a=!0x1){const _0x1ff55a=[];let _0x439f6c=this[_0x27e5('0x6c')][_0x27e5('0x107')](_0x4ffd62),_0x2cf447=this[_0x27e5('0x6c')][_0x27e5('0x107')](_0x2a1ab7);for(-0x1==_0x2cf447&&(_0x2cf447=this[_0x27e5('0x6c')][_0x27e5('0x5a')][_0x27e5('0x3e')],_0x2d7f9a=!0x1);_0x439f6c<_0x2cf447;)_0x1ff55a[_0x27e5('0xaf')](this[_0x27e5('0x6c')][_0x27e5('0x66')](_0x439f6c)),_0x439f6c++;return _0x2d7f9a&&_0x1ff55a[_0x27e5('0xaf')](this[_0x27e5('0x6c')][_0x27e5('0x66')](_0x439f6c)),_0x1ff55a;}[_0x27e5('0x6')](_0x42f2bb,_0xb2b69c,_0x333c39,_0x3945d4){const _0x4bf43f=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x4')];let _0x2834ac=_0xb2b69c;for(;_0x42f2bb[_0x2834ac]&&_0x42f2bb[_0x2834ac]['isAdded'];)_0x2834ac++;let _0x556855=_0x3945d4;for(;_0x333c39[_0x556855]&&_0x333c39[_0x556855]['isRemoved'];)_0x556855++;_0xa0a851(_0x42f2bb,_0xb2b69c,_0x2834ac),_0xa0a851(_0x333c39,_0x3945d4,_0x556855);const _0x4f18d7=_0x333c39[_0x27e5('0xec')](_0x3945d4,_0x556855)['concat'](_0x42f2bb[_0x27e5('0xec')](_0xb2b69c,_0x2834ac));return _0x4f18d7[_0x27e5('0x4a')]((_0x4cb7f7,_0x1d9ec8)=>_0x4cb7f7[_0x27e5('0x10d')]!=_0x1d9ec8[_0x27e5('0x10d')]?_0x4cb7f7[_0x27e5('0x10d')]-_0x1d9ec8[_0x27e5('0x10d')]:_0x4cb7f7['level']!=_0x1d9ec8[_0x27e5('0x2c')]?_0x4cb7f7[_0x27e5('0x2c')]-_0x1d9ec8['level']:_0x4cb7f7[_0x27e5('0x7d')]!=_0x1d9ec8[_0x27e5('0x7d')]?_0x1d9ec8[_0x27e5('0x7d')]-_0x4cb7f7[_0x27e5('0x7d')]:!!_0x4cb7f7[_0x27e5('0xde')]!=!!_0x1d9ec8['isAdded']?-0x1==_0x4cb7f7['side']||0x0==_0x4cb7f7['side']?_0x4cb7f7[_0x27e5('0xde')]?-0x1:0x1:_0x4cb7f7['isAdded']?0x1:-0x1:_0x4cb7f7[_0x27e5('0x18')]-_0x1d9ec8[_0x27e5('0x18')]),{'commonTape':_0x4f18d7,'iEnd':_0x2834ac,'jEnd':_0x556855};function _0xa0a851(_0x5f2f60,_0x26e86c,_0x1a3aaa){let _0x5016fc=-0x1,_0x170eee=Number[_0x27e5('0x98')],_0x30275d=!0x0;for(let _0x213c64=_0x26e86c;_0x213c64<_0x1a3aaa;_0x213c64++)if(_0x4bf43f[_0x27e5('0xed')](_0x5f2f60[_0x213c64][_0x27e5('0xcd')])||(_0x30275d=!0x1),_0x5f2f60[_0x213c64][_0x27e5('0xcd')][_0x27e5('0x59')]<_0x26e86c&&(_0x5016fc=_0x213c64),_0x5f2f60[_0x213c64][_0x27e5('0xcd')][_0x27e5('0x25')]>=_0x1a3aaa){_0x170eee=_0x213c64;break;}_0x30275d&&(_0x5016fc=_0x1a3aaa-0x1);for(let _0x1a35c0=_0x26e86c;_0x1a35c0<_0x1a3aaa;_0x1a35c0++)_0x5f2f60[_0x1a35c0][_0x27e5('0x10d')]=_0x1a35c0<=_0x5016fc?-0x1:_0x1a35c0<_0x170eee?0x0:0x1,_0x5f2f60[_0x1a35c0][_0x27e5('0x18')]=_0x1a35c0;let _0x299998=0x0;for(let _0x3d7eb6=_0x26e86c;_0x3d7eb6<=_0x5016fc;_0x3d7eb6++)0x0==_0x5f2f60[_0x3d7eb6]['distance']?_0x5f2f60[_0x3d7eb6][_0x27e5('0x2c')]=_0x299998:(_0x299998++,_0x5f2f60[_0x3d7eb6][_0x27e5('0x2c')]=_0x299998,_0x299998++);for(let _0x1c270c=_0x26e86c;_0x1c270c<_0x1a3aaa;_0x1c270c++)0x0==_0x5f2f60[_0x1c270c]['side']&&(_0x5f2f60[_0x1c270c][_0x27e5('0x2c')]=_0x299998);_0x299998=0x0;for(let _0x4ae622=_0x1a3aaa-0x1;_0x4ae622>=_0x170eee;_0x4ae622--)0x0==_0x5f2f60[_0x4ae622][_0x27e5('0x7d')]?_0x5f2f60[_0x4ae622][_0x27e5('0x2c')]=_0x299998:(_0x299998--,_0x5f2f60[_0x4ae622][_0x27e5('0x2c')]=_0x299998,_0x299998--);}}[_0x27e5('0xb2')](_0x4bf060){const _0x242b3d=new Map(),_0xf7d8dd=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x4')];for(let _0x562abf=0x1;_0x562abf<_0x4bf060['length'];_0x562abf++){let _0x5eb7b8,_0x3d5b89,_0x4152e8;const _0x3a37e3=_0x4bf060[_0x562abf],_0x5b5df8=_0x4bf060[_0x562abf-0x1];if(_0x27e5('0x5b')==_0x3a37e3['type'])continue;if(_0x3a37e3[_0x27e5('0xf1')]!=_0x5b5df8[_0x27e5('0xf1')])continue;if(!_0xf7d8dd[_0x27e5('0xfa')](_0x5b5df8[_0x27e5('0xcd')])||_0xf7d8dd[_0x27e5('0x65')](_0x5b5df8['item']))continue;if(!_0xf7d8dd[_0x27e5('0xfa')](_0x3a37e3[_0x27e5('0xcd')])||_0xf7d8dd[_0x27e5('0x65')](_0x3a37e3[_0x27e5('0xcd')]))continue;if((_0x4bf060[_0x562abf][_0x27e5('0xde')]||_0x4bf060[_0x562abf][_0x27e5('0x36')])&&_0x4bf060[_0x562abf-0x1][_0x27e5('0x32')])_0x5eb7b8=_0x4bf060[_0x562abf],_0x3d5b89=_0x4bf060[_0x562abf-0x1],_0x4152e8=_0x562abf-0x1;else{if(!_0x4bf060[_0x562abf][_0x27e5('0x32')]||!_0x4bf060[_0x562abf-0x1][_0x27e5('0xde')]&&!_0x4bf060[_0x562abf-0x1][_0x27e5('0x36')])continue;_0x5eb7b8=_0x4bf060[_0x562abf-0x1],_0x3d5b89=_0x4bf060[_0x562abf],_0x4152e8=_0x562abf;}const _0x21405b=_0x5eb7b8[_0x27e5('0x2c')]==_0x3d5b89[_0x27e5('0x2c')],_0x261e09=Math[_0x27e5('0x22')](_0x5eb7b8[_0x27e5('0x2c')])<Math['abs'](_0x3d5b89[_0x27e5('0x2c')])&&0x0==_0x3d5b89[_0x27e5('0x7d')];(_0x21405b||_0x261e09)&&(_0x242b3d[_0x27e5('0xc8')](_0x3d5b89['id'],_0x5eb7b8['id']),_0x4bf060[_0x27e5('0x61')](_0x4152e8,0x1),_0x562abf--,_0x5eb7b8[_0x27e5('0xde')]=!0x1);}for(let _0x2f8c83=0x0;_0x2f8c83<_0x4bf060[_0x27e5('0x3e')];_0x2f8c83++)_0x242b3d[_0x27e5('0x90')](_0x4bf060[_0x2f8c83][_0x27e5('0x57')])&&(_0x4bf060[_0x2f8c83]['pairId']=_0x242b3d['get'](_0x4bf060[_0x2f8c83]['pairId']));}['_removeMissingPairs'](_0x839b3b){const _0x5b6c53=new Set(_0x839b3b['map'](_0x421153=>_0x421153['id']));for(let _0x185e42=0x0;_0x185e42<_0x839b3b[_0x27e5('0x3e')];_0x185e42++)_0x5b6c53[_0x27e5('0x90')](_0x839b3b[_0x185e42][_0x27e5('0x57')])||0x0==_0x839b3b[_0x185e42]['distance']||(_0x839b3b[_0x185e42][_0x27e5('0x11e')]=!0x0);return _0x839b3b['filter'](_0x233989=>!_0x233989[_0x27e5('0x11e')]);}[_0x27e5('0x116')](_0x1e6a2e){const _0x31835f=new Set();for(let _0x53b124=0x0;_0x53b124<_0x1e6a2e[_0x27e5('0x3e')];_0x53b124++){if(_0x31835f[_0x27e5('0x90')](_0x1e6a2e[_0x53b124]['id'])&&_0x1e6a2e[_0x53b124][_0x27e5('0x32')]&&(_0x1e6a2e[_0x53b124]['isIncorrect']=!0x0),_0x1e6a2e[_0x53b124][_0x27e5('0x11e')])continue;if(0x0==_0x1e6a2e[_0x53b124][_0x27e5('0x7d')])continue;if(_0x27e5('0xcc')!=_0x1e6a2e[_0x53b124][_0x27e5('0xf1')])continue;if(null==_0x1e6a2e[_0x53b124][_0x27e5('0x57')])continue;let _0x15d6dd=_0x53b124+0x1,_0x4783ce=0x0;for(;_0x1e6a2e[_0x15d6dd]['id']!=_0x1e6a2e[_0x53b124][_0x27e5('0x57')];)'elementStart'==_0x1e6a2e[_0x15d6dd][_0x27e5('0xf1')]?_0x4783ce++:_0x27e5('0x1e')==_0x1e6a2e[_0x15d6dd][_0x27e5('0xf1')]&&_0x4783ce--,_0x15d6dd++;if(0x0!=_0x4783ce){if(_0x1e6a2e[_0x53b124][_0x27e5('0x32')])_0x1e6a2e[_0x53b124][_0x27e5('0x11e')]=!0x0;else for(;_0x15d6dd!=_0x53b124;)_0x1e6a2e[_0x15d6dd]['isRemoved']&&0x0!=_0x1e6a2e[_0x15d6dd][_0x27e5('0x7d')]&&(_0x1e6a2e[_0x15d6dd][_0x27e5('0x11e')]=!0x0,_0x31835f['add'](_0x1e6a2e[_0x15d6dd][_0x27e5('0x57')])),_0x15d6dd--;}}return _0x1e6a2e[_0x27e5('0x8c')](_0x1b5445=>!_0x1b5445[_0x27e5('0x11e')]);}[_0x27e5('0x80')](_0x237e98){const _0x43a4b6=this[_0x27e5('0x10f')]['model']['schema'];for(let _0x1da860=0x0;_0x1da860<_0x237e98[_0x27e5('0x3e')];_0x1da860++){if(!(_0x237e98[_0x1da860][_0x27e5('0xde')]||_0x237e98[_0x1da860][_0x27e5('0x36')]||_0x237e98[_0x1da860]['isRemoved']||_0x237e98[_0x1da860][_0x27e5('0x71')]))continue;if(0x0==_0x237e98[_0x1da860][_0x27e5('0x7d')])continue;const _0x1f0a9d=_0x237e98[_0x1da860][_0x27e5('0xcd')];_0x43a4b6[_0x27e5('0xfa')](_0x1f0a9d)||_0x43a4b6[_0x27e5('0x65')](_0x1f0a9d)||(_0x237e98[_0x1da860][_0x27e5('0xde')]&&delete _0x237e98[_0x1da860]['isAdded'],_0x237e98[_0x1da860][_0x27e5('0x36')]&&delete _0x237e98[_0x1da860][_0x27e5('0x36')],_0x237e98[_0x1da860][_0x27e5('0x71')]&&delete _0x237e98[_0x1da860][_0x27e5('0x71')],_0x237e98[_0x1da860][_0x27e5('0x32')]&&(_0x237e98[_0x1da860]['isIncorrect']=!0x0));}return _0x237e98['filter'](_0x432c69=>!_0x432c69[_0x27e5('0x11e')]);}[_0x27e5('0x124')](_0x1bad3e,_0x214b10,_0x4726b6){const _0xb1b279=new _0x5ae7df(),_0x235f30=[],_0xf764cb=new Map(),_0x34c282=this['editor']['model'],_0x4dc502=_0x34c282['schema'],_0x347877=[_0xb1b279],_0x495922={},_0x5b712c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4281fc=null;const _0x501a44=[0x0];for(let _0x4ada8c=0x0;_0x4ada8c<_0x1bad3e[_0x27e5('0x3e')];_0x4ada8c++){let _0x272894,_0x1676b6;if(_0x27e5('0xcc')===_0x1bad3e[_0x4ada8c][_0x27e5('0xf1')]){_0x272894=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44);const _0x120a25=new _0x1af484(_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0x14')],_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0xc7')]());_0x347877[0x0]['_appendChild'](_0x120a25),_0x501a44[_0x27e5('0xaf')](0x0),_0x347877[_0x27e5('0x77')](_0x120a25),_0x1676b6=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x4281fc=null;}else{if(_0x27e5('0x1e')===_0x1bad3e[_0x4ada8c][_0x27e5('0xf1')])_0x347877[_0x27e5('0xa4')](),_0x272894=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x501a44['pop'](),_0x501a44[_0x501a44[_0x27e5('0x3e')]-0x1]++,_0x1676b6=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x4281fc=null;else{if(_0x272894=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44),_0x4281fc&&_0x18de01(_0x4281fc,_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')]))_0x4281fc[_0x27e5('0x78')]+=_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0x110')];else{const _0x998f22=new _0x60a600(_0x1bad3e[_0x4ada8c]['item'][_0x27e5('0x110')],_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')][_0x27e5('0xc7')]());_0x347877[0x0][_0x27e5('0x24')](_0x998f22),_0x4281fc=_0x998f22;}_0x501a44[_0x501a44[_0x27e5('0x3e')]-0x1]+=_0x1bad3e[_0x4ada8c][_0x27e5('0xcd')]['offsetSize'],_0x1676b6=_0x34c282[_0x27e5('0xe3')](_0xb1b279,_0x501a44);}}for(const _0x7a29cb of _0x1bad3e[_0x4ada8c][_0x27e5('0x13')])_0xf764cb[_0x27e5('0xc8')](_0x7a29cb,{'start':_0x272894,'end':null});_0x4d0c9d(_0x27e5('0x71'),_0x4ada8c,_0x272894,_0x1676b6),_0x4d0c9d('isAddSuggestion',_0x4ada8c,_0x272894,_0x1676b6),_0x4d0c9d(_0x27e5('0x32'),_0x4ada8c,_0x272894,_0x1676b6),_0x4d0c9d(_0x27e5('0xde'),_0x4ada8c,_0x272894,_0x1676b6);for(const _0x59553b of _0x1bad3e[_0x4ada8c][_0x27e5('0x9a')]){_0xf764cb['get'](_0x59553b)['end']=_0x1676b6;}}for(const [_0x43808e,_0x36ae81]of _0xf764cb){const _0x316e6a=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x102')](_0x36ae81[_0x27e5('0xd0')],_0x36ae81['end']);_0xb1b279[_0x27e5('0xdc')][_0x27e5('0xc8')](_0x43808e,_0x316e6a);}return _0x235f30[_0x27e5('0x4a')]((_0x1acc80,_0x34dcf4)=>{const _0x2294d7=_0xb1b279[_0x27e5('0xdc')][_0x27e5('0xbd')](_0x27e5('0xa9')+_0x1acc80['id']),_0x260da3=_0xb1b279['markers']['get'](_0x27e5('0xa9')+_0x34dcf4['id']);return _0x2294d7['start'][_0x27e5('0x4c')](_0x260da3[_0x27e5('0xd0')])?-0x1:_0x2294d7[_0x27e5('0xd0')][_0x27e5('0xc9')](_0x260da3['start'])?0x1:_0x2294d7[_0x27e5('0x8b')][_0x27e5('0x4c')](_0x260da3[_0x27e5('0x8b')])?-0x1:_0x2294d7[_0x27e5('0x8b')]['isAfter'](_0x260da3['end'])?0x1:'add'===_0x1acc80[_0x27e5('0xf1')]?-0x1:0x1;}),{'root':_0xb1b279,'changes':_0x235f30};function _0x4d0c9d(_0x136546,_0x123e8a,_0x176663,_0x49cef9){const _0x497b8f=!!_0x1bad3e[_0x123e8a][_0x136546],_0x216ae1=_0x497b8f?_0x1bad3e[_0x123e8a][_0x136546]['userId']:null,_0xdc1f1=_0x123e8a===_0x1bad3e[_0x27e5('0x3e')]-0x1,_0x161dc2=_0x5b712c[_0x136546][0x0],_0x499cac=_0x4dc502[_0x27e5('0xd3')](_0x1bad3e[_0x123e8a][_0x27e5('0xcd')]);!_0x495922[_0x136546]&&_0x497b8f?_0x495922[_0x136546]={'start':_0x176663,'tapeItem':_0x1bad3e[_0x123e8a],'userId':_0x216ae1,'type':_0x136546}:_0x495922[_0x136546]&&!_0x497b8f?(_0x495922[_0x136546][_0x27e5('0x8b')]=_0x176663,_0x3e9ecd(_0x495922[_0x136546]),_0x495922[_0x136546]=null):_0x495922[_0x136546]&&_0x497b8f&&_0x495922[_0x136546][_0x27e5('0x92')]!==_0x216ae1&&(_0x495922[_0x136546]['end']=_0x176663,_0x161dc2&&_0x161dc2[_0x27e5('0x92')]===_0x495922[_0x136546][_0x27e5('0x92')]||_0x3e9ecd(_0x495922[_0x136546]),_0x495922[_0x136546]={'start':_0x176663,'tapeItem':_0x1bad3e[_0x123e8a],'userId':_0x216ae1,'type':_0x136546}),_0x495922[_0x136546]&&_0x499cac&&(_0x27e5('0xcc')!==_0x1bad3e[_0x123e8a][_0x27e5('0xf1')]||_0x161dc2&&_0x161dc2[_0x27e5('0x92')]===_0x216ae1||_0x5b712c[_0x136546]['unshift']({'userId':_0x216ae1,'object':_0x1bad3e[_0x123e8a][_0x27e5('0xcd')],'change':_0x495922[_0x136546]}),_0x27e5('0x1e')===_0x1bad3e[_0x123e8a][_0x27e5('0xf1')]&&_0x161dc2&&_0x161dc2[_0x27e5('0x121')]===_0x1bad3e[_0x123e8a][_0x27e5('0xcd')]&&(_0x5b712c[_0x136546][_0x27e5('0xa4')](),_0x495922[_0x136546]=_0x161dc2['change'])),_0x495922[_0x136546]&&_0xdc1f1&&(_0x495922[_0x136546]['end']=_0x49cef9,_0x3e9ecd(_0x495922[_0x136546]),_0x495922[_0x136546]=null);}function _0x3e9ecd({start:_0x77bdba,end:_0x32770b,tapeItem:_0x72838c,userId:_0x4685fa,type:_0xf30a65}){const _0x15207c=_0x72838c[_0x27e5('0xcd')],_0x14f323=_0x34c282[_0x27e5('0x4')][_0x27e5('0xfa')](_0x15207c)&&!_0x34c282[_0x27e5('0x4')]['isLimit'](_0x15207c),_0x1218a2=_0x77bdba[_0x27e5('0x95')]==_0x32770b[_0x27e5('0x49')]&&_0x32770b[_0x27e5('0x87')];if(_0x14f323&&_0x1218a2)return;const _0xfa364f=_0x34c282[_0x27e5('0x102')](_0x77bdba,_0x32770b),_0x3d798c=_0x214b10[_0x27e5('0xbd')](_0x4685fa),_0x1f6f61=new _0x41f2a0({'author':_0x3d798c,'type':_0x27e5('0xde')==_0xf30a65||_0x27e5('0x36')==_0xf30a65?_0x27e5('0x3d'):_0x27e5('0x52'),'data':{'isSuggestion':'isAddSuggestion'==_0xf30a65||_0x27e5('0x71')==_0xf30a65},'createdAt':new Date(),'rootName':_0x4726b6});_0x235f30[_0x27e5('0xaf')](_0x1f6f61),_0xb1b279['markers'][_0x27e5('0xc8')]('revision:'+_0x1f6f61['id'],_0xfa364f);}function _0x18de01(_0x284755,_0x116b48){const _0x342cc0=_0x284755[_0x27e5('0xc7')](),_0x158852=_0x116b48['getAttributes']();for(const _0x435f3f of _0x342cc0){if(_0x435f3f[0x1]!==_0x116b48['getAttribute'](_0x435f3f[0x0]))return!0x1;_0x158852[_0x27e5('0x60')]();}return _0x158852[_0x27e5('0x60')]()[_0x27e5('0xa2')];}}[_0x27e5('0xdd')](){this[_0x27e5('0x10f')]['conversion']['for']('upcast')[_0x27e5('0xad')]({'view':_0x27e5('0x82')}),this[_0x27e5('0x10f')][_0x27e5('0x5d')][_0x27e5('0xc1')](_0x27e5('0x21'))[_0x27e5('0xd')]({'model':'revision','view':_0x342281=>{const _0x1f8bbc=_0x342281[_0x27e5('0x16')]['split'](':')[0x1],_0x3ad061=this[_0x27e5('0x4b')](_0x1f8bbc);if(!_0x3ad061)return null;const _0x44ffb9=_0x27e5('0x3d')==_0x3ad061['type']?_0x27e5('0xfe'):_0x27e5('0xbb'),_0x45dd7e=[_0x27e5('0xb1'),_0x27e5('0xbf')+_0x44ffb9];return _0x3ad061[_0x27e5('0x110')][_0x27e5('0x53')]&&_0x45dd7e[_0x27e5('0xaf')](_0x27e5('0xbf')+_0x44ffb9+'-new'),this[_0x27e5('0x37')]==_0x3ad061&&_0x45dd7e['push'](_0x27e5('0x33')),{'classes':_0x45dd7e,'attributes':{'data-change-id':_0x1f8bbc}};}}),this['editor'][_0x27e5('0x5d')][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0x3d')](_0x393485=>{_0x393485['on']('element:pre',(_0x2e843b,_0x5b7f7e,_0x45cb60)=>{const _0x5cdd4d=_0x5b7f7e['viewItem']['getChild'](0x0);if(!_0x5cdd4d||!_0x5cdd4d['is'](_0x27e5('0x46'),_0x27e5('0xac')))return;if(!_0x45cb60[_0x27e5('0xeb')][_0x27e5('0xf5')](_0x5cdd4d,{'attributes':[_0x27e5('0xda'),_0x27e5('0xf4')]}))return;const _0x23e8b2=_0x5b7f7e[_0x27e5('0x35')]['start'][_0x27e5('0x95')];_0x45cb60['writer'][_0x27e5('0x70')]('vid_start',_0x5cdd4d['getAttribute'](_0x27e5('0xda')),_0x23e8b2),_0x45cb60['writer']['setAttribute'](_0x27e5('0xf4'),_0x5cdd4d[_0x27e5('0xba')]('vid_end'),_0x23e8b2);},{'priority':'low'});}),this[_0x27e5('0x10f')]['conversion'][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0x3d')](_0x3f22b8=>{_0x3f22b8['on'](_0x27e5('0x46'),(_0x4f24c2,_0x2c7acb,_0x1c0395)=>{if(!_0x1c0395['consumable']['consume'](_0x2c7acb[_0x27e5('0x56')],{'attributes':[_0x27e5('0xda'),_0x27e5('0xf4')]}))return;if(_0x2c7acb[_0x27e5('0x35')][_0x27e5('0xf8')])return;const _0xcf3f2=_0x2c7acb[_0x27e5('0x35')][_0x27e5('0xd0')]['nodeAfter'];_0xcf3f2[_0x27e5('0x73')](_0x27e5('0xda'))||_0xcf3f2[_0x27e5('0x73')](_0x27e5('0x41'))||(_0x1c0395[_0x27e5('0x83')]['setAttribute']('vid_start',_0x2c7acb[_0x27e5('0x56')]['getAttribute'](_0x27e5('0xda')),_0xcf3f2),_0x1c0395[_0x27e5('0x83')][_0x27e5('0x70')](_0x27e5('0xf4'),_0x2c7acb[_0x27e5('0x56')][_0x27e5('0xba')](_0x27e5('0xf4')),_0xcf3f2));},{'priority':'low'});}),this[_0x27e5('0x10f')]['conversion'][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0xb6')]({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':_0x27e5('0x41'),'value':_0x25a375=>_0x25a375[_0x27e5('0xba')](_0x27e5('0x41'))}}),this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0x4')]['on']('checkAttribute',(_0x224f0a,[,_0x349fbe])=>{[_0x27e5('0xda'),_0x27e5('0xf4'),_0x27e5('0x41')]['includes'](_0x349fbe)&&(_0x224f0a[_0x27e5('0x50')]=!0x0,_0x224f0a[_0x27e5('0x54')]());},{'priority':_0x27e5('0xa')}),this[_0x27e5('0x10f')]['conversion']['for'](_0x27e5('0x81'))[_0x27e5('0x3d')](_0x565770=>{_0x565770['on'](_0x27e5('0x7f'),(_0x236506,_0x28e3f6,_0x4271dc)=>{if('\x20'!=_0x28e3f6['item'][_0x27e5('0x110')]||_0x28e3f6[_0x27e5('0xcd')][_0x27e5('0x49')][_0x27e5('0xa6')]>0x1)return;if(!_0x4271dc[_0x27e5('0xeb')][_0x27e5('0xf5')](_0x28e3f6['item'],_0x236506[_0x27e5('0x14')]))return;const _0x23be75=_0x4271dc[_0x27e5('0x83')],_0x480ab5=_0x4271dc['mapper'][_0x27e5('0x7e')](_0x28e3f6[_0x27e5('0x10')]);_0x23be75[_0x27e5('0x23')](_0x480ab5,_0x23be75[_0x27e5('0xc3')]('span'));});}),this[_0x27e5('0x10f')][_0x27e5('0x5d')]['for'](_0x27e5('0x81'))[_0x27e5('0xa7')]({'model':_0x27e5('0x82')}),this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x9b')]['on']('addMarker:revision',function(_0x418fbb){const _0x572a54=_0x418fbb['plugins'][_0x27e5('0xbd')](_0x27e5('0x39'));return(_0x3e056b,_0x4e794d,_0x58fefd)=>{const _0x5f11a4=_0x4e794d[_0x27e5('0x16')][_0x27e5('0x120')](':')[0x1],_0x541b81=_0x572a54['_getChangeFromId'](_0x5f11a4);if(!_0x541b81)return null;const _0x7d81be=_0x27e5('0x3d')==_0x541b81[_0x27e5('0xf1')]?'split':_0x27e5('0x100');if(!_0x58fefd[_0x27e5('0xeb')][_0x27e5('0x19')](_0x4e794d[_0x27e5('0x105')],_0x3e056b[_0x27e5('0x14')]))return;const _0x20df40=_0x4e794d[_0x27e5('0x105')][_0x27e5('0x7a')](),_0x3d1bd2=_0x4e794d['markerRange']['start'],_0x55e6ae=_0x418fbb[_0x27e5('0xd9')][_0x27e5('0x4')];let _0x51580a=null,_0x7e9483=null,_0x18c81c=!0x1,_0x1ceb25=!0x1;for(const _0x40d150 of _0x20df40){const _0x38229a=_0x40d150[_0x27e5('0xcd')];_0x18c81c=_0x18c81c||_0x55e6ae[_0x27e5('0xcb')](_0x38229a);const _0x1ac59d=_0x58fefd['mapper'][_0x27e5('0x64')](_0x38229a);if(_0x1ac59d&&_0x1ac59d['getCustomProperty'](_0x27e5('0x93')))return;'elementEnd'==_0x40d150[_0x27e5('0xf1')]&&(_0x55e6ae['isBlock'](_0x38229a)&&!_0x55e6ae[_0x27e5('0x65')](_0x38229a)&&(_0x38229a[_0x27e5('0xff')]||_0x3d1bd2[_0x27e5('0x108')]?_0x51580a&&_0x51580a[_0x27e5('0x49')]==_0x38229a||(_0x51580a=_0x38229a,_0x1713ff(_0x40d150['previousPosition']),_0x1ceb25=!0x0):_0x7e9483=_0x7e9483||_0x40d150[_0x27e5('0xca')]));}function _0x1713ff(_0x188710){const _0x57d6e5=_0x58fefd[_0x27e5('0x83')][_0x27e5('0x8a')](_0x27e5('0x123'),{'class':_0x27e5('0xbf')+_0x7d81be}),_0x3cf231=_0x58fefd[_0x27e5('0x3b')][_0x27e5('0x11c')](_0x188710);_0x541b81[_0x27e5('0x110')]['isSuggestion']&&_0x58fefd[_0x27e5('0x83')][_0x27e5('0x63')]('ck-suggestion-marker-'+_0x7d81be+_0x27e5('0x76'),_0x57d6e5),_0x572a54[_0x27e5('0x37')]==_0x541b81&&_0x58fefd['writer']['addClass']('ck-suggestion-marker--active',_0x57d6e5),_0x58fefd[_0x27e5('0x83')]['insert'](_0x3cf231,_0x57d6e5),_0x58fefd[_0x27e5('0x3b')]['bindElementToMarker'](_0x57d6e5,_0x4e794d[_0x27e5('0x16')]);}_0x18c81c||_0x1ceb25||!_0x7e9483||_0x1713ff(_0x7e9483);};}(this[_0x27e5('0x10f')]),{'priority':_0x27e5('0x5')}),this[_0x27e5('0x10f')]['editing'][_0x27e5('0x9b')]['on'](_0x27e5('0xe6'),(_0x37f1dc,_0x55aa93,_0x5806c3)=>{const _0x45f6c4=_0x5806c3[_0x27e5('0x3b')][_0x27e5('0xc5')](_0x55aa93[_0x27e5('0x16')]);if(_0x45f6c4)for(const _0x43b29c of _0x45f6c4)(_0x43b29c[_0x27e5('0x27')]('ck-suggestion-marker-split')||_0x43b29c[_0x27e5('0x27')](_0x27e5('0xb3')))&&(_0x5806c3[_0x27e5('0x3b')][_0x27e5('0x4e')](_0x43b29c,_0x55aa93[_0x27e5('0x16')]),_0x5806c3[_0x27e5('0x83')][_0x27e5('0x52')](_0x43b29c));},{'priority':_0x27e5('0x5')}),this['editor'][_0x27e5('0xf3')][_0x27e5('0x9b')]['on'](_0x27e5('0x12'),(_0x261a2b,_0x3f8a03,_0x34f392)=>{const _0x598933=_0x3f8a03[_0x27e5('0x16')][_0x27e5('0x120')](':')[0x1],_0x4799d8=this[_0x27e5('0x4b')](_0x598933);if(!_0x4799d8)return null;const _0x1b5a65='add'==_0x4799d8[_0x27e5('0xf1')]?'split':_0x27e5('0x100');if(_0x34f392[_0x27e5('0xeb')][_0x27e5('0x19')](_0x3f8a03['markerRange'],_0x261a2b[_0x27e5('0x14')]))for(const _0x167829 of _0x3f8a03[_0x27e5('0x105')][_0x27e5('0x79')]()){if(!_0x167829['is']('element',_0x27e5('0x55')))continue;const _0x40180a=_0x34f392['writer'][_0x27e5('0x8a')]('span',{'class':_0x27e5('0xbf')+_0x1b5a65}),_0x38bdbf=_0x34f392[_0x27e5('0x3b')][_0x27e5('0x11c')](this[_0x27e5('0x10f')]['model'][_0x27e5('0xd5')](_0x167829));_0x4799d8[_0x27e5('0x110')][_0x27e5('0x53')]&&_0x34f392[_0x27e5('0x83')][_0x27e5('0x63')]('ck-suggestion-marker-'+_0x1b5a65+_0x27e5('0x76'),_0x40180a),this['activeChange']==_0x4799d8&&_0x34f392['writer'][_0x27e5('0x63')](_0x27e5('0x33'),_0x40180a),_0x34f392['writer'][_0x27e5('0x2e')](_0x38bdbf,_0x40180a),_0x34f392[_0x27e5('0x3b')]['bindElementToMarker'](_0x40180a,_0x3f8a03[_0x27e5('0x16')]);}},{'priority':'high'}),this[_0x27e5('0x10f')][_0x27e5('0xd9')]['document']['on']('change',()=>{this['editor'][_0x27e5('0xf3')]['view'][_0x27e5('0x10a')](_0x4b74e5=>{for(const _0x27e4c2 of this[_0x27e5('0x10f')]['model']['document'][_0x27e5('0x1d')]()){const _0x404916=this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x94')](_0x27e4c2),_0x3ca0ca=this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x106')][_0x27e5('0xdf')][_0x27e5('0x94')](_0x27e4c2);if(_0x3ca0ca){const _0x3c83cc=_0x404916[_0x27e5('0xba')](_0x27e5('0x85'));if(_0x4b74e5[_0x27e5('0x69')](_0x27e5('0xf6'),_0x3ca0ca),_0x4b74e5[_0x27e5('0x88')]('ck-revision-history-root-add',_0x3ca0ca),_0x4b74e5[_0x27e5('0x88')](_0x27e5('0x28'),_0x3ca0ca),_0x4b74e5[_0x27e5('0x88')](_0x27e5('0xe'),_0x3ca0ca),_0x3c83cc){const _0x57eb9c=this['_getChangeFromId'](_0x3c83cc);if(!_0x57eb9c)return null;_0x4b74e5[_0x27e5('0x70')](_0x27e5('0xf6'),_0x3c83cc,_0x3ca0ca),_0x4b74e5['addClass']('ck-revision-history-root-'+_0x57eb9c[_0x27e5('0xf1')],_0x3ca0ca),this[_0x27e5('0x37')]==_0x57eb9c&&_0x4b74e5['addClass'](_0x27e5('0xe'),_0x3ca0ca);}}}});}),this['editor']['conversion'][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0xad')]({'view':_0x27e5('0x2'),'model':_0xff40aa=>_0x27e5('0xd1')+_0xff40aa,'converterPriority':'highest'}),this[_0x27e5('0x10f')][_0x27e5('0x5d')][_0x27e5('0xc1')](_0x27e5('0x34'))[_0x27e5('0xad')]({'view':_0x27e5('0x42'),'model':_0x19c34f=>'revision-suggestion:'+_0x19c34f,'converterPriority':'highest'}),this[_0x27e5('0x10f')][_0x27e5('0x5d')][_0x27e5('0xc1')]('dataDowncast')[_0x27e5('0xa7')]({'model':_0x27e5('0x30'),'view':_0x252ea0=>({'name':_0x27e5('0x3c')+_0x252ea0,'group':_0x27e5('0x30')}),'converterPriority':_0x27e5('0xa')}),this[_0x27e5('0x10f')]['conversion'][_0x27e5('0xc1')](_0x27e5('0x21'))[_0x27e5('0xd')]({'model':_0x27e5('0x30'),'view':_0x3de108=>{const _0x4bd014=_0x3de108['markerName'][_0x27e5('0x120')](':')[0x1];return'insertion'!=_0x4bd014&&_0x27e5('0xbb')!=_0x4bd014?null:{'classes':[_0x27e5('0xc'),'ck-suggestion-preview-marker-'+_0x4bd014]};}}),this[_0x27e5('0x10f')][_0x27e5('0xf3')][_0x27e5('0x9b')]['on'](_0x27e5('0x115'),et(this[_0x27e5('0x10f')],_0x27e5('0x100')),{'priority':_0x27e5('0x5')}),this['editor'][_0x27e5('0xf3')][_0x27e5('0x9b')]['on'](_0x27e5('0xb5'),et(this[_0x27e5('0x10f')],'split'),{'priority':_0x27e5('0x5')}),this[_0x27e5('0x10f')]['editing'][_0x27e5('0x9b')]['on'](_0x27e5('0xc4'),(_0x27eec9,_0x36dc9c,_0x3ebe16)=>{const _0x39bca9=_0x3ebe16[_0x27e5('0x3b')][_0x27e5('0xc5')](_0x36dc9c[_0x27e5('0x16')]);if(_0x39bca9)for(const _0x1107c7 of _0x39bca9)_0x1107c7['is']('uiElement')&&(_0x3ebe16[_0x27e5('0x3b')][_0x27e5('0x4e')](_0x1107c7,_0x36dc9c['markerName']),_0x3ebe16['writer'][_0x27e5('0x52')](_0x1107c7));},{'priority':_0x27e5('0x5')});}['_getChangeFromId'](_0x43b3a6){return this[_0x27e5('0x117')][_0x27e5('0xbd')](_0x43b3a6);}['_getViewForChange'](_0x11f25a){return this[_0x27e5('0xd6')]&&this['_changeView']['destroy'](),this[_0x27e5('0xd6')]=new _0x1f85d0(this[_0x27e5('0x10f')][_0x27e5('0xae')],_0x11f25a),this[_0x27e5('0xd6')];}[_0x27e5('0x5e')](){this['editor'][_0x27e5('0xd9')][_0x27e5('0xdf')][_0x27e5('0x8d')]['observeMarkers'](_0x27e5('0x82')),this['on']('change:activeView',(_0x2858cc,_0x490f37,_0x35cb00,_0x542f47)=>{_0x542f47&&this['_balloon'][_0x27e5('0x52')](_0x542f47),_0x35cb00&&(this['_balloon'][_0x27e5('0x3d')]({'view':_0x35cb00,'stackId':_0x27e5('0x89'),'position':{'target':()=>{const _0x849961=this[_0x27e5('0x10f')][_0x27e5('0xf3')],_0x44a852=this[_0x27e5('0x4b')](_0x35cb00['changeId']);let _0x471be0;if(_0x44a852['data'][_0x27e5('0x0')]){const _0x4d94f1=_0x849961['view'][_0x27e5('0x31')](_0x44a852[_0x27e5('0x72')]);_0x471be0=Array[_0x27e5('0xfc')](_0x4d94f1[_0x27e5('0x45')]());}else{const _0x14dc39=this[_0x27e5('0x10f')][_0x27e5('0xd9')]['markers'][_0x27e5('0xbd')]('revision:'+_0x35cb00[_0x27e5('0x74')]);_0x471be0=Array[_0x27e5('0xfc')](_0x849961['mapper'][_0x27e5('0xc5')](_0x14dc39['name']))[_0x27e5('0x11d')](_0x3ec80e=>_0x849961[_0x27e5('0x106')][_0x27e5('0x2f')][_0x27e5('0x3a')](_0x3ec80e))[_0x27e5('0x11d')](_0xb93c57=>Array[_0x27e5('0xfc')](_0xb93c57[_0x27e5('0x45')]()))[_0x27e5('0xea')]();}if(!this[_0x27e5('0x6d')])return _0x471be0[0x0];return _0x471be0[_0x27e5('0x8f')](_0x580ffb=>_0x580ffb[_0x27e5('0x17')]-0x3<=this[_0x27e5('0x6d')]['y']&&_0x580ffb[_0x27e5('0x122')]+0x3>=this[_0x27e5('0x6d')]['y']&&_0x580ffb[_0x27e5('0x1b')]-0x3<=this[_0x27e5('0x6d')]['x']&&_0x580ffb[_0x27e5('0x109')]+0x3>=this[_0x27e5('0x6d')]['x'])||_0x471be0[0x0];}}}),this[_0x27e5('0xe1')][_0x27e5('0xf2')](_0x27e5('0x89')));}),this['on'](_0x27e5('0x113'),(_0x4bf545,_0x1041c1,_0x3577e3,_0x4278fa)=>{this[_0x27e5('0xd2')]=_0x3577e3?this[_0x27e5('0xd7')](_0x3577e3):null,this['editor'][_0x27e5('0xd9')]['change'](()=>{const _0x5284ae=this['editor'][_0x27e5('0xf3')];_0x4278fa&&(_0x4278fa[_0x27e5('0x110')][_0x27e5('0x0')]?_0x5284ae[_0x27e5('0x106')][_0x27e5('0x10a')](_0x56b970=>{_0x56b970['removeClass'](_0x27e5('0xe'),_0x5284ae[_0x27e5('0x106')][_0x27e5('0xdf')][_0x27e5('0x94')](_0x4278fa[_0x27e5('0x72')]));}):_0x5284ae[_0x27e5('0xbe')](_0x27e5('0xa9')+_0x4278fa['id'])),_0x3577e3&&(_0x3577e3[_0x27e5('0x110')][_0x27e5('0x0')]?_0x5284ae[_0x27e5('0x106')][_0x27e5('0x10a')](_0x5ad543=>{_0x5ad543[_0x27e5('0x63')]('ck-revision-history-root--active',_0x5284ae[_0x27e5('0x106')][_0x27e5('0xdf')]['getRoot'](_0x3577e3[_0x27e5('0x72')]));}):_0x5284ae[_0x27e5('0xbe')]('revision:'+_0x3577e3['id']));});}),this[_0x27e5('0x15')](this[_0x27e5('0x10f')][_0x27e5('0xf3')]['view'][_0x27e5('0xdf')],_0x27e5('0xe9'),(_0x8e7608,_0x50ec73)=>{if(this[_0x27e5('0x37')])return;const _0x5ded95=this[_0x27e5('0x26')](_0x50ec73[_0x27e5('0x29')]),_0x1bbd54=this[_0x27e5('0x117')][_0x27e5('0xbd')](_0x5ded95);_0x1bbd54?(this['_activeViewTarget']={'x':_0x50ec73['domEvent']['x'],'y':_0x50ec73['domEvent']['y']},this[_0x27e5('0xd2')]=this[_0x27e5('0xd7')](_0x1bbd54)):(this['_activeViewTarget']=null,this[_0x27e5('0xd2')]=null);}),this['listenTo'](this[_0x27e5('0x10f')]['editing'][_0x27e5('0x106')][_0x27e5('0xdf')],_0x27e5('0x7b'),(_0x9be5b0,_0x29b6fc)=>{const _0x4a94d4=this[_0x27e5('0x26')](_0x29b6fc['target']),_0x4438a8=this[_0x27e5('0x117')]['get'](_0x4a94d4);_0x4438a8?(this[_0x27e5('0x6d')]={'x':_0x29b6fc[_0x27e5('0x8')]['x'],'y':_0x29b6fc[_0x27e5('0x8')]['y']},_0x4438a8===this[_0x27e5('0x37')]?this[_0x27e5('0xe1')][_0x27e5('0x1')]():this[_0x27e5('0x37')]=_0x4438a8):(this[_0x27e5('0x6d')]=null,this['activeChange']=null);});}[_0x27e5('0x26')](_0x27e8af){do{const _0x56dcf7=_0x27e8af['getAttribute'](_0x27e5('0xf6'));if(_0x56dcf7)return _0x56dcf7;_0x27e8af=_0x27e8af[_0x27e5('0x49')];}while(_0x27e8af);return null;}[_0x27e5('0xb9')](){this[_0x27e5('0x10f')]['model'][_0x27e5('0x10a')](_0x14828f=>{for(const _0x2fc42c of this[_0x27e5('0x10f')][_0x27e5('0xd9')][_0x27e5('0xdc')])_0x14828f[_0x27e5('0xb0')](_0x2fc42c);});}}function et(_0x20835d,_0x163457){return(_0x40009b,_0x400731,_0x512ec9)=>{if(!_0x512ec9[_0x27e5('0xeb')]['test'](_0x400731[_0x27e5('0x105')],_0x40009b[_0x27e5('0x14')]))return;const _0x85e3c4=_0x400731[_0x27e5('0x105')][_0x27e5('0x7a')](),_0x506ecb=_0x400731['markerRange']['start'],_0x3e3d13=_0x20835d[_0x27e5('0xd9')][_0x27e5('0x4')];let _0x54f4b7=null,_0x1bea11=null,_0x40e792=!0x1,_0x5e3a1e=!0x1;for(const _0x4c8194 of _0x85e3c4){const _0x1df067=_0x4c8194['item'];_0x40e792=_0x40e792||_0x3e3d13[_0x27e5('0xcb')](_0x1df067);const _0x847999=_0x512ec9[_0x27e5('0x3b')]['toViewElement'](_0x1df067);if(_0x847999&&_0x847999[_0x27e5('0x75')](_0x27e5('0x93')))return;_0x27e5('0x1e')==_0x4c8194[_0x27e5('0xf1')]&&(_0x3e3d13['isBlock'](_0x1df067)&&!_0x3e3d13[_0x27e5('0x65')](_0x1df067)&&(_0x1df067[_0x27e5('0xff')]||_0x506ecb[_0x27e5('0x108')]?_0x54f4b7&&_0x54f4b7[_0x27e5('0x49')]==_0x1df067||(_0x54f4b7=_0x1df067,_0x4b6a7c(_0x4c8194['previousPosition']),_0x5e3a1e=!0x0):_0x1bea11=_0x1bea11||_0x4c8194[_0x27e5('0xca')]));}function _0x4b6a7c(_0x460a6e){const _0x527da6=_0x512ec9[_0x27e5('0x3b')][_0x27e5('0x11c')](_0x460a6e),_0x53f97a=_0x512ec9[_0x27e5('0x83')][_0x27e5('0x8a')]('span',{'class':_0x27e5('0x118')+_0x163457});_0x512ec9[_0x27e5('0x83')][_0x27e5('0x2e')](_0x527da6,_0x53f97a),_0x512ec9[_0x27e5('0x3b')]['bindElementToMarker'](_0x53f97a,_0x400731[_0x27e5('0x16')]);}_0x40e792||_0x5e3a1e||!_0x1bea11||_0x4b6a7c(_0x1bea11);};}export class RestoreRevisionCommand extends _0x25dea0{constructor(_0x113359){super(_0x113359);const _0x333ee5=_0x113359['plugins'][_0x27e5('0xbd')](d);this[_0x27e5('0x44')]=!0x1,this[_0x27e5('0x15')](_0x333ee5,_0x27e5('0xd4'),()=>this[_0x27e5('0xa1')]()),this[_0x27e5('0x15')](_0x333ee5,_0x27e5('0x1a'),()=>this[_0x27e5('0xa1')]());}['execute'](){const _0x1d399b=this[_0x27e5('0x10f')],_0x23646b=_0x1d399b['plugins'][_0x27e5('0xbd')](d),_0x1e061c=_0x23646b['isReady']?_0x23646b[_0x27e5('0x97')][_0x27e5('0xc2')]:null;_0x1d399b['config'][_0x27e5('0xbd')](_0x27e5('0xe2'))['restoreRevisionCallback'](_0x1e061c);}[_0x27e5('0xa1')](){const {isReady:_0xef0597,isEnabled:_0x3210a3}=this[_0x27e5('0x10f')][_0x27e5('0x1f')][_0x27e5('0xbd')](d);this[_0x27e5('0x20')]=_0xef0597&&_0x3210a3;}}export class ShowChangeCommand extends _0x25dea0{constructor(_0xf5454e,{direction:_0x352c91}){super(_0xf5454e);const _0xe7455a=_0xf5454e['plugins']['get'](d);this[_0x27e5('0x44')]=!0x1,this[_0x27e5('0xb7')]='forward'===_0x352c91?0x1:-0x1,this[_0x27e5('0x15')](_0xe7455a,_0x27e5('0xd4'),()=>this[_0x27e5('0xa1')]()),this[_0x27e5('0x15')](_0xe7455a,_0x27e5('0x1a'),()=>this['refresh']()),this[_0x27e5('0x15')](_0xe7455a,_0x27e5('0x113'),()=>this[_0x27e5('0xa1')]());}[_0x27e5('0x3')](){const _0x57618b=this[_0x27e5('0x10f')],_0x57682d=_0x57618b['plugins'][_0x27e5('0xbd')](d),{isNavigationMode:_0x4c58b9,currentChangeNumber:_0x521125}=_0x57682d;let _0x1292a0;if(_0x57682d['activeChange']=_0x4c58b9?_0x57682d[_0x27e5('0x97')][_0x27e5('0x5f')]['get'](_0x521125+this[_0x27e5('0xb7')]):_0x57682d[_0x27e5('0x97')]['changes'][_0x27e5('0xb4')],_0x57682d[_0x27e5('0x37')][_0x27e5('0x110')]['isOnRoot'])_0x1292a0=_0x57618b[_0x27e5('0xf3')][_0x27e5('0x106')][_0x27e5('0x31')](_0x57682d[_0x27e5('0x37')][_0x27e5('0x72')]);else{const _0x563435=_0x57618b[_0x27e5('0xd9')][_0x27e5('0xdc')]['get'](_0x27e5('0xa9')+_0x57682d[_0x27e5('0x37')]['id']);_0x1292a0=_0x30fca9(_0x57618b['editing'],_0x563435);}_0x3331af({'target':_0x1292a0,'viewportOffset':0x28});}[_0x27e5('0xa1')](){const {isNavigationMode:_0x2f8255,currentChangeNumber:_0x1a402f,numberOfChanges:_0xcc517c,isReady:_0xf159c5,isEnabled:_0x4ae9cf}=this[_0x27e5('0x10f')]['plugins'][_0x27e5('0xbd')](d);this[_0x27e5('0x20')]=!!(_0x4ae9cf&&_0xf159c5&&_0xcc517c)&&(!_0x2f8255||(0x1===this['_step']?_0x1a402f<_0xcc517c-0x1:_0x1a402f>0x0));}}
|
|
23
|
+
const _0x1bd0=['RevisionViewer','mousedown','_appendChild','pairId','isBlock','markerNameToElements','concat','insertion','ck-suggestion-marker','span','markerToData','indexOf','revision-start','_markInsertions','_data','right','isObject','createPositionBefore','updatePosition','attributes','elementStart','parse','createRange','toViewPosition','side','ck-editor__editable__overlay','consume','isAttached','_makeModelFromTape','element','_setConversion','roots','_setDistance','createAttributeElement','removeAttribute','_setChanges','getCustomProperty','_processTape','addMarker:revision-suggestion:deletion','vid','_cleanMarkers','_getDiff','string','diff','vid_end','isReady','nodeAfter','children','reconvertMarker','code','_changeIdToChange','index','checkAttribute','editingDowncast','then','deletion','_cleanUp','toModel','_joinTapes','_refreshStartEndIndex','markerRange','sort','showStack','_getViewObj','split','listenTo','splice','target','hasAttribute','values','_removeUnsupportedChanges','isNavigationMode','ck-suggestion-preview-marker','start','processor','revision:','markersEnd','dataToMarker','ck-suggestion-marker--active','getRevision','viewItem','isRemoved','mapper','length','done','activeChange','getIndex','keys','nextPosition','activeView','element:pre','toViewRange','revision-suggestion','isEnabled','isAfter','model','revisionHistoryAttachChange','isCollapsed','range','isIncorrect','removeClass','repository','isEqual','elementToAttribute','addHighlight','oldRevisionId','get','data-revision-','type','domEvent','addMarker:revision-suggestion:insertion','refresh','change:activeChange','RevisionsRepository','from','view','_balloon','changeId','merge','dataDowncast','setAttribute','POSITIVE_INFINITY','adapter','editor','diffData','_getRevisionsRange','revision-suggestion:','stop','error','addRoot','isAddSuggestion','_removeMissingPairs','flat','init','ck-revision-history-root--active','maxOffset','revision-viewer','_findChangeIdFromDomTarget','isAdded','-new','next','name','startIndex','newRevisionId','map','getClientRects','_update','getRoot','getRootNames','addRevision','delete','compare','change:isReady','return','insert','nextSibling','top','ck-suggestion-preview-marker-','enableReadOnlyMode','high','elementEnd','data-change-id','pluginName','abs','enqueueChange','collaboration.channelId','unshift','revision-end','conversion','useFillerType','schema','attributesAfter','backward','WidgetToolbarRepository','has','offsetSize','getWalker','text','change','distance','isBefore','upcast','isAtStart','numberOfChanges','data','revisionHistoryLabel','modelRange','revision-comment:','_markMismatchedRemovedTags','createPositionFromPath','detachRoot','userId','revision','_removeRevisionMarkers','_getViewForChange','isOnRoot','end','unbindElementFromMarkerName','_makeModelFromViewString','bottom','object','ck-suggestion-marker-merge','change:activeView','writer','filter','_fixObsoleteTags','downcastDispatcher','bindElementToMarker','ck-suggestion-marker-','isSuggestion','removeMarker:revision-suggestion','isLimit','consumable','previousPosition','removeMarker:revision','getRevisionRootsAttributes','document','plugins','destroy','_markMarkers','forward','_markSuggestions','loadRevisionData','commands','getChild','suggestion:','attachChange','rootName','ck-revision-history-root-remove','attributesBefore','level','observeMarkers','forEach','highest','changes','getItems','toViewElement','_initInteractions','addMarker:revision','item','set','default','first','resolve','getAttributes','add','isRemoveSuggestion','findIndex','toData','_activeViewTarget','editing','getDomRoot','markerToHighlight','all','uiElement','getRevisionData','_step','createRangeIn','createRevision','catch','softBreak','createUIElement','parent','config','addClass','markerName','low','remove','selection','_revisions','_threeWayMerge','requires','showPreviousChange','_changeView','mapViewToDom','bind','showNextChange','hasClass','ck-revision-history-root-add','forceDisabled','markersStart','vid_start','comment','test','ck-revision-history-root-','change:isEnabled','_getChangeFromId','deletions','markers','restoreRevisionCallback','affectsData','for','ck-suggestion-marker-split','insertions','revisionHistory','push','getAttribute','shift','endIndex','authors','execute','change:numberOfChanges'];(function(_0x422878,_0x1bd0c3){const _0x5eb61f=function(_0x5f08ac){while(--_0x5f08ac){_0x422878['push'](_0x422878['shift']());}};_0x5eb61f(++_0x1bd0c3);}(_0x1bd0,0x17a));const _0x5eb6=function(_0x422878,_0x1bd0c3){_0x422878=_0x422878-0x0;let _0x5eb61f=_0x1bd0[_0x422878];return _0x5eb61f;};import{Plugin as _0x5325cf,Command as _0x17001f}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x198d78}from'ckeditor5/src/utils';import{ContextualBalloon as _0x115b34}from'ckeditor5/src/ui';import{DocumentFragment as _0x308b28,Element as _0x1f2448,Text as _0x37f40e,ViewDocumentFragment as _0x610417,ViewText as _0x2c4a06,ViewElement as _0x38a0de,ViewContainerElement as _0x4517ed,ViewAttributeElement as _0x5bce6e,ViewEmptyElement as _0x436934,ViewRawElement as _0x221a2f,ViewUIElement as _0x19a2f1}from'ckeditor5/src/engine';import{Users as _0x8f1fcd,getMarkerDomElement as _0x363016}from'ckeditor5-collaboration/src/collaboration-core';import _0x1eabbc from'./ui/revisionviewer/changedetailsview';import _0x5dd569 from'./revisionsrepository';import _0x3aa243 from'./changeitem';import{default as _0x5c35d8}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x1e9154}from'lodash-es';const tt={'c':_0x4517ed,'a':_0x5bce6e,'e':_0x436934,'r':_0x221a2f,'u':_0x19a2f1};export default class d extends _0x5325cf{static get[_0x5eb6('0x56')](){return _0x5eb6('0xe2');}static get[_0x5eb6('0xc3')](){return[_0x8f1fcd,_0x115b34,_0x5dd569];}constructor(_0x322440){super(_0x322440),this[_0x5eb6('0x19')]=this[_0x5eb6('0x2f')]['plugins']['get'](_0x5eb6('0x25')),this['set'](_0x5eb6('0x9'),null),this[_0x5eb6('0xa4')]('activeView',null),this['_activeViewTarget']=null,this[_0x5eb6('0xa4')](_0x5eb6('0x10d'),null),this[_0x5eb6('0xa4')](_0x5eb6('0x10f'),!0x1),this[_0x5eb6('0xa4')](_0x5eb6('0x11'),!0x0),this['on'](_0x5eb6('0xd1'),(_0x215f5b,_0x494b19,_0x43ba04)=>{this[_0x5eb6('0x9')]=null,this[_0x5eb6('0xd')]=null,this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')]['change'](_0x59e679=>{for(const _0x17b7e0 of this[_0x5eb6('0x2f')][_0x5eb6('0xae')]['view'][_0x5eb6('0x8c')][_0x5eb6('0x101')])_0x43ba04?_0x59e679['removeClass'](_0x5eb6('0xfb'),_0x17b7e0):_0x59e679[_0x5eb6('0xbc')](_0x5eb6('0xfb'),_0x17b7e0);});}),this[_0x5eb6('0xc7')](_0x5eb6('0x129'))['to'](this,'activeChange',_0x3a215b=>null!==_0x3a215b),this['bind']('currentChangeNumber')['to'](this,_0x5eb6('0x10f'),this,_0x5eb6('0x10d'),this,_0x5eb6('0x9'),(_0x3fc651,_0x3d25b9,_0x270701)=>_0x3fc651&&_0x270701?_0x3d25b9[_0x5eb6('0x9e')][_0x5eb6('0xa')](_0x270701):0x0),this['bind'](_0x5eb6('0x6b'))['to'](this,_0x5eb6('0x10f'),this,_0x5eb6('0x10d'),(_0x1795be,_0x11c764)=>_0x1795be?_0x11c764[_0x5eb6('0x9e')][_0x5eb6('0x7')]:0x0),this[_0x5eb6('0xc5')]=null,this[_0x5eb6('0x114')]=new Map(),this[_0x5eb6('0x2e')]=null,this['_balloon']=this[_0x5eb6('0x2f')][_0x5eb6('0x8d')][_0x5eb6('0x1e')](_0x115b34);}[_0x5eb6('0x39')](){const _0x1a8bf5=this['editor'],_0x37699b=new ShowChangeCommand(_0x1a8bf5,{'direction':_0x5eb6('0x60')}),_0x31c1dd=new ShowChangeCommand(_0x1a8bf5,{'direction':_0x5eb6('0x90')});(_0x1a8bf5[_0x5eb6('0x93')][_0x5eb6('0xa9')](_0x5eb6('0xc4'),_0x37699b),_0x1a8bf5[_0x5eb6('0x93')][_0x5eb6('0xa9')](_0x5eb6('0xc8'),_0x31c1dd),_0x1a8bf5[_0x5eb6('0x93')]['add']('restoreRevision',new RestoreRevisionCommand(_0x1a8bf5)),this['on'](_0x5eb6('0xe1'),()=>{_0x37699b[_0x5eb6('0x23')](),_0x31c1dd[_0x5eb6('0x23')]();}),this[_0x5eb6('0x100')](),this[_0x5eb6('0xa1')](),_0x1a8bf5[_0x5eb6('0x52')]('revision-viewer'),_0x1a8bf5[_0x5eb6('0x8d')][_0x5eb6('0x62')]('WidgetToolbarRepository'))&&_0x1a8bf5['plugins']['get'](_0x5eb6('0x61'))[_0x5eb6('0xcb')](_0x5eb6('0x3c'));}async[_0x5eb6('0xb3')](_0x39950c){await this[_0x5eb6('0x92')](_0x39950c);const _0x43a226={};for(const _0x1464cb in _0x39950c[_0x5eb6('0x30')]){if(_0x39950c[_0x5eb6('0x30')][_0x1464cb][_0x5eb6('0x96')]&&!_0x39950c[_0x5eb6('0x30')][_0x1464cb]['attachChange'][_0x5eb6('0xfd')])continue;const _0x58193e=this[_0x5eb6('0x75')](JSON[_0x5eb6('0xf7')](_0x39950c['diffData'][_0x1464cb][_0x5eb6('0xd9')])),_0x381de1=this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0x8c')],_0x51e6af=new _0x610417(_0x381de1,_0x58193e['map'](_0x1f4f38=>this[_0x5eb6('0x121')](_0x1f4f38)));this[_0x5eb6('0x2f')][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0x5d')]('marked'),_0x43a226[_0x1464cb]=this[_0x5eb6('0x2f')][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0xac')](_0x51e6af),this['editor'][_0x5eb6('0x6c')][_0x5eb6('0x12c')][_0x5eb6('0x5d')](_0x5eb6('0xa5'));}return _0x43a226;}async[_0x5eb6('0x8b')](_0x1aac4e){await this['loadRevisionData'](_0x1aac4e);const _0x1eee50={};for(const _0x4ed9e6 in _0x1aac4e[_0x5eb6('0x30')])_0x1aac4e[_0x5eb6('0x30')][_0x4ed9e6][_0x5eb6('0x96')]&&!_0x1aac4e['diffData'][_0x4ed9e6][_0x5eb6('0x96')][_0x5eb6('0xfd')]||(_0x1eee50[_0x4ed9e6]=_0x1aac4e[_0x5eb6('0x30')][_0x4ed9e6]['attributesAfter']||{});return _0x1eee50;}[_0x5eb6('0x75')](_0x1b4776){return(_0x1b4776=_0x1b4776[_0x5eb6('0x80')](_0x217612=>!_0x217612[_0x5eb6('0x41')]||_0x5eb6('0xee')!==_0x217612[_0x5eb6('0x41')]&&_0x5eb6('0x5b')!==_0x217612[_0x5eb6('0x41')]))[_0x5eb6('0x9c')](_0x116955=>{_0x5eb6('0x10c')!=typeof _0x116955&&(_0x116955[_0x5eb6('0x111')]=this['_removeRevisionMarkers'](_0x116955['children']),_0x116955['attributes']=_0x116955[_0x5eb6('0xf5')]['filter'](_0x55df42=>!_0x55df42[0x0]['startsWith'](_0x5eb6('0x1f'))));}),_0x1b4776;}async[_0x5eb6('0x4b')](_0x10f0ef,_0x11e57f,_0x265f82=!0x1){if(!this[_0x5eb6('0x11')])return;const _0x32f6f4=this[_0x5eb6('0x10d')],_0x1d2dc0=this[_0x5eb6('0x19')],_0x437f75=_0x5eb6('0x10c')==typeof _0x10f0ef?_0x1d2dc0['getRevision'](_0x10f0ef):_0x10f0ef,_0x2e22e9=_0x5eb6('0x10c')==typeof _0x11e57f?_0x1d2dc0[_0x5eb6('0x3')](_0x11e57f):_0x11e57f,_0x5a8846=_0x437f75['id'],_0x1adf85=_0x2e22e9?_0x2e22e9['id']:null;if(!_0x265f82&&this[_0x5eb6('0x10d')]&&this[_0x5eb6('0x10d')][_0x5eb6('0x43')]===_0x5a8846&&this[_0x5eb6('0x10d')][_0x5eb6('0x1d')]===_0x1adf85)return Promise['resolve']();this[_0x5eb6('0x10f')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x5eb6('0x10d')]=new _0x5c35d8(_0x5a8846,_0x1adf85);const _0x4a926f=this[_0x5eb6('0x31')](_0x437f75,_0x2e22e9,!0x0)[_0x5eb6('0x44')](_0x495f4f=>this['loadRevisionData'](_0x495f4f));return _0x4a926f['push'](new Promise(_0x358b7e=>{setTimeout(_0x358b7e,0x14);})),Promise[_0x5eb6('0xb1')](_0x4a926f)[_0x5eb6('0x118')](()=>{if(!this[_0x5eb6('0x11')])return;this[_0x5eb6('0x11a')]();const _0x3aa94f=this[_0x5eb6('0x10b')](_0x5a8846,_0x1adf85);for(const _0x30b4ff of _0x3aa94f['changes'])this[_0x5eb6('0x114')][_0x5eb6('0xa4')](_0x30b4ff['id'],_0x30b4ff);this['editor'][_0x5eb6('0x13')][_0x5eb6('0x58')]({'isUndoable':!0x1},_0x47e2d=>{for(const _0x3b2019 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')]['document'][_0x5eb6('0x48')]())_0x47e2d[_0x5eb6('0x72')](_0x3b2019);for(const _0x3443d6 of Object[_0x5eb6('0xb')](_0x3aa94f[_0x5eb6('0x13')])){const _0x455243=_0x47e2d[_0x5eb6('0x35')](_0x3443d6);for(const _0x4fcb8a of Object[_0x5eb6('0xb')](_0x3aa94f[_0x5eb6('0xf5')][_0x3443d6]))_0x47e2d[_0x5eb6('0x2c')](_0x4fcb8a,_0x3aa94f[_0x5eb6('0xf5')][_0x3443d6][_0x4fcb8a],_0x455243);_0x47e2d[_0x5eb6('0x4e')](_0x3aa94f[_0x5eb6('0x13')][_0x3443d6],_0x455243,0x0);}}),this[_0x5eb6('0x10d')][_0x5eb6('0x105')](this['_sortAndFilterDiffChanges'](_0x3aa94f['changes'])),this[_0x5eb6('0x10f')]=!0x0;})[_0x5eb6('0xb7')](_0x5116fa=>{console[_0x5eb6('0x34')](_0x5116fa),this[_0x5eb6('0x11a')](),_0x32f6f4&&(this[_0x5eb6('0x10d')]=_0x32f6f4),this[_0x5eb6('0x10f')]=!0x0;});}['addRevisionData'](_0x1e3fbe,_0x29651a){const _0x3ceb74=this['repository'][_0x5eb6('0xb6')](_0x1e3fbe);return _0x3ceb74['on'](_0x5eb6('0x46'),(_0x320bd2,_0x4157d8,_0x1c959a)=>_0x29651a(_0x4157d8,_0x1c959a,_0x3ceb74)),this[_0x5eb6('0x19')][_0x5eb6('0x49')](_0x3ceb74),_0x3ceb74;}[_0x5eb6('0x92')](_0x8d9440){if(!_0x8d9440||_0x8d9440[_0x5eb6('0x30')])return Promise[_0x5eb6('0xa7')]();{const _0xd22013=this[_0x5eb6('0x2f')][_0x5eb6('0xbb')][_0x5eb6('0x1e')](_0x5eb6('0x59'));return this[_0x5eb6('0x2e')][_0x5eb6('0x3')]({'channelId':_0xd22013,'revisionId':_0x8d9440['id']})[_0x5eb6('0x118')](_0x166aa3=>{_0x8d9440[_0x5eb6('0x46')]({'diffData':_0x166aa3[_0x5eb6('0x30')]},!0x0);});}}[_0x5eb6('0x11a')](){this[_0x5eb6('0x9')]=null,this[_0x5eb6('0x10a')](),this['_changeView']&&this[_0x5eb6('0xc5')][_0x5eb6('0x8e')](),this[_0x5eb6('0xc5')]=null,this['_changeIdToChange']['clear'](),this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x58')]({'isUndoable':!0x1},_0x59f786=>{for(const _0x38d877 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x48')]())_0x59f786[_0x5eb6('0x72')](_0x38d877);});}['_sortAndFilterDiffChanges'](_0x2b25c0){const _0xd61820=[],_0x3567b9=new Map();for(const _0xad7a47 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')]['document'][_0x5eb6('0x48')]()){const _0x3aa867=this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')]['getDomRoot'](_0xad7a47);if(!_0x3aa867)continue;const _0x213e52=_0x3aa867['getClientRects']()['item'](0x0);_0x213e52&&(_0xd61820[_0x5eb6('0xdb')](_0xad7a47),_0x3567b9[_0x5eb6('0xa4')](_0xad7a47,_0x213e52));}return _0xd61820['sort']((_0x31429d,_0x200fd0)=>{const _0x415488=_0x3567b9['get'](_0x31429d),_0x27cc36=_0x3567b9[_0x5eb6('0x1e')](_0x200fd0);return _0x415488['y']-_0x27cc36['y']||_0x415488['x']-_0x27cc36['x'];}),(_0x2b25c0=_0x2b25c0[_0x5eb6('0x80')](_0x153f6e=>_0xd61820['includes'](_0x153f6e[_0x5eb6('0x97')])))[_0x5eb6('0x11f')]((_0x28c1c5,_0x32aff4)=>_0xd61820['indexOf'](_0x28c1c5[_0x5eb6('0x97')])-_0xd61820[_0x5eb6('0xed')](_0x32aff4[_0x5eb6('0x97')])),_0x2b25c0;}['_makeTape'](_0x18461b){const _0x128f12=Array[_0x5eb6('0x26')](_0x18461b[_0x5eb6('0xd4')])[_0x5eb6('0x80')](([_0x3a50bd,_0x2930aa])=>_0x3a50bd['startsWith'](_0x5eb6('0x12d'))&&!_0x2930aa[_0x5eb6('0x15')]),_0x42e9af=Array[_0x5eb6('0x26')](this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0xb5')](_0x18461b)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x128f12[_0x5eb6('0x7')])for(const _0x492a35 of _0x42e9af){const [_0x34db0b,_0x3e100e]=_0x128f12[0x0],[,_0x392fe9,_0xfd81d4]=_0x34db0b[_0x5eb6('0x122')](':');if(_0x3e100e[_0x5eb6('0x78')][_0x5eb6('0x1a')](_0x492a35[_0x5eb6('0xc')])&&_0x128f12[_0x5eb6('0xdd')](),(_0x492a35[_0x5eb6('0x89')][_0x5eb6('0x1a')](_0x3e100e[_0x5eb6('0x12b')])||_0x492a35[_0x5eb6('0x89')]['isAfter'](_0x3e100e[_0x5eb6('0x12b')]))&&(_0x5eb6('0xe9')==_0x392fe9?_0x492a35[_0x5eb6('0x3e')]={'userId':_0xfd81d4}:_0x5eb6('0x119')==_0x392fe9&&(_0x492a35[_0x5eb6('0x5')]={'userId':_0xfd81d4})),0x0==_0x128f12['length'])break;}return _0x42e9af;}['_refreshStartEndIndex'](_0x596c5e){const _0x3be66b=new Map();for(let _0x876b4e=0x0;_0x876b4e<_0x596c5e[_0x5eb6('0x7')];_0x876b4e++)_0x5eb6('0x65')===_0x596c5e[_0x876b4e]['type']?(_0x596c5e[_0x876b4e]['item'][_0x5eb6('0x42')]=_0x876b4e,_0x596c5e[_0x876b4e][_0x5eb6('0xa3')]['endIndex']=_0x876b4e):(_0x5eb6('0xf6')===_0x596c5e[_0x876b4e][_0x5eb6('0x20')]?_0x596c5e[_0x876b4e][_0x5eb6('0xa3')][_0x5eb6('0x42')]=_0x876b4e:'elementEnd'===_0x596c5e[_0x876b4e][_0x5eb6('0x20')]&&(_0x596c5e[_0x876b4e][_0x5eb6('0xa3')][_0x5eb6('0xde')]=_0x876b4e),_0x3be66b[_0x5eb6('0xa4')](_0x596c5e[_0x876b4e]['id'],_0x876b4e));for(const _0x320ce5 of _0x3be66b[_0x5eb6('0x127')]())_0x5eb6('0xf6')===_0x596c5e[_0x320ce5][_0x5eb6('0x20')]?_0x596c5e[_0x320ce5][_0x5eb6('0xa3')][_0x5eb6('0xde')]=_0x3be66b[_0x5eb6('0x1e')](_0x596c5e[_0x320ce5][_0x5eb6('0xe5')]):_0x5eb6('0x54')===_0x596c5e[_0x320ce5][_0x5eb6('0x20')]&&(_0x596c5e[_0x320ce5][_0x5eb6('0xa3')]['startIndex']=_0x3be66b[_0x5eb6('0x1e')](_0x596c5e[_0x320ce5][_0x5eb6('0xe5')]));}[_0x5eb6('0x107')](_0x36c76b){for(let _0x5d1b6a=0x0;_0x5d1b6a<_0x36c76b[_0x5eb6('0x7')];_0x5d1b6a++){if('elementStart'===_0x36c76b[_0x5d1b6a]['type'])_0x36c76b[_0x5d1b6a][_0x5eb6('0xa3')][_0x5eb6('0x42')]=_0x5d1b6a;else{if(_0x5eb6('0x54')===_0x36c76b[_0x5d1b6a]['type']){_0x36c76b[_0x5d1b6a]['item'][_0x5eb6('0xde')]=_0x5d1b6a;const _0x133555=_0x36c76b[_0x5d1b6a]['item'][_0x5eb6('0x42')];_0x36c76b[_0x133555][_0x5eb6('0xe5')]=_0x36c76b[_0x5d1b6a]['id'],_0x36c76b[_0x5d1b6a][_0x5eb6('0xe5')]=_0x36c76b[_0x133555]['id'];}else _0x36c76b[_0x5d1b6a][_0x5eb6('0xa3')]['startIndex']=_0x5d1b6a,_0x36c76b[_0x5d1b6a]['item']['endIndex']=_0x5d1b6a,_0x36c76b[_0x5d1b6a][_0x5eb6('0xe5')]=null;}_0x36c76b[_0x5d1b6a][_0x5eb6('0xcc')]||(_0x36c76b[_0x5d1b6a][_0x5eb6('0xcc')]=[],_0x36c76b[_0x5d1b6a][_0x5eb6('0x0')]=[]);}}[_0x5eb6('0xef')](_0x4b5996,_0x2c61da){const _0x31ce8f=_0x4b5996['filter'](_0x4d00b6=>!_0x4d00b6[_0x5eb6('0x3e')]);for(let _0x3e520a=0x0;_0x3e520a<_0x2c61da[_0x5eb6('0x7')];_0x3e520a++)_0x2c61da[_0x3e520a]['isAdded']&&(_0x31ce8f[_0x3e520a][_0x5eb6('0x3e')]=_0x2c61da[_0x3e520a][_0x5eb6('0x3e')]);}[_0x5eb6('0x7a')](_0x59bdd0){const _0x17be8d=JSON[_0x5eb6('0xf7')](_0x59bdd0),_0x161eb4=this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')]['document'],_0x3c095a=new _0x610417(_0x161eb4,_0x17be8d[_0x5eb6('0x44')](_0x1db797=>this[_0x5eb6('0x121')](_0x1db797)));return this['editor'][_0x5eb6('0x6c')][_0x5eb6('0x11b')](_0x3c095a);}[_0x5eb6('0x121')](_0x36e2c4){const _0x1e1cba=this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')]['document'];if('string'==typeof _0x36e2c4)return new _0x2c4a06(_0x1e1cba,_0x36e2c4);{const _0x269ce9=_0x36e2c4[_0x5eb6('0x111')][_0x5eb6('0x44')](_0x2412d1=>this[_0x5eb6('0x121')](_0x2412d1));return new(tt[_0x36e2c4[(_0x5eb6('0x20'))]]||_0x38a0de)(_0x1e1cba,_0x36e2c4[_0x5eb6('0x41')],_0x36e2c4['attributes'],_0x269ce9);}}['_getDiff'](_0x33e521,_0x688d9f=null){const _0xe32621=this['repository'][_0x5eb6('0x3')](_0x33e521),_0x2642a9=_0x688d9f?this[_0x5eb6('0x19')]['getRevision'](_0x688d9f):null,_0x353873=this[_0x5eb6('0x31')](_0xe32621,_0x2642a9),_0x463844=_0x353873[_0x353873[_0x5eb6('0x7')]-0x1],_0x5f2b84=new Map(),_0x57cc6e={'model':{},'attributes':{},'changes':[]},_0x3f04da=new Set(),_0x246d50=new Map();for(let _0x4eb9ce=_0x353873[_0x5eb6('0x7')]-0x1;_0x4eb9ce>=0x0;_0x4eb9ce--){const _0x5b5454=_0x353873[_0x4eb9ce];for(const _0x507748 of Object['keys'](_0x5b5454[_0x5eb6('0x30')]))if(_0x5b5454[_0x5eb6('0x30')][_0x507748]['attachChange']){const _0x551f84=_0x5b5454['diffData'][_0x507748]['attachChange'];_0x551f84[_0x5eb6('0xfd')]?(_0x3f04da['add'](_0x507748),_0x246d50['has'](_0x507748)&&_0x246d50[_0x5eb6('0x1e')](_0x507748)[_0x5eb6('0x73')]==_0x551f84[_0x5eb6('0x73')]?_0x246d50[_0x5eb6('0x4a')](_0x507748):_0x246d50['set'](_0x507748,_0x551f84)):_0x246d50[_0x5eb6('0x62')](_0x507748)?(_0x3f04da[_0x5eb6('0x4a')](_0x507748),_0x246d50[_0x5eb6('0x4a')](_0x507748)):(_0x3f04da[_0x5eb6('0xa9')](_0x507748),_0x246d50[_0x5eb6('0xa4')](_0x507748,_0x551f84));}else _0x3f04da[_0x5eb6('0xa9')](_0x507748);}for(const _0x4500b0 of _0x3f04da){const _0x561657=_0x246d50['has'](_0x4500b0)&&!_0x246d50[_0x5eb6('0x1e')](_0x4500b0)[_0x5eb6('0xfd')];let _0x11915c=_0x561657?_0x353873[_0x5eb6('0x7')]-0x1:0x0;const _0x4b269c=_0x561657?-0x1:0x1;for(;_0x353873[_0x11915c];){const _0xee37a4=_0x353873[_0x11915c];if(_0xee37a4[_0x5eb6('0x30')][_0x4500b0]){const _0x521fd8=_0x561657?_0xee37a4[_0x5eb6('0x30')][_0x4500b0][_0x5eb6('0x99')]:_0xee37a4[_0x5eb6('0x30')][_0x4500b0][_0x5eb6('0x5f')];_0x57cc6e[_0x5eb6('0xf5')][_0x4500b0]=_0x521fd8?_0x1e9154(_0x521fd8):{};break;}_0x11915c+=_0x4b269c;}}for(const _0x456f50 of _0x353873){_0x456f50[_0x5eb6('0x13')]={};for(const _0x2534bb of _0x456f50[_0x5eb6('0xdf')])_0x5f2b84[_0x5eb6('0xa4')](_0x2534bb['id'],_0x2534bb);for(const _0x4edf48 of _0x3f04da){const _0x4d8c76=_0x456f50[_0x5eb6('0x30')][_0x4edf48]?_0x456f50[_0x5eb6('0x30')][_0x4edf48][_0x5eb6('0xd9')]:'[]',_0x2dc382=_0x456f50[_0x5eb6('0x30')][_0x4edf48]?_0x456f50['diffData'][_0x4edf48]['deletions']:'[]';_0x456f50[_0x5eb6('0x13')][_0x4edf48]={'insertions':this[_0x5eb6('0x7a')](_0x4d8c76),'deletions':this[_0x5eb6('0x7a')](_0x2dc382)};}}for(const _0x2bafb2 of _0x3f04da){let _0x46082d=null,_0x26cf5b=0x0;const _0x4cb9b3=new Map(Array[_0x5eb6('0x26')](_0xe32621[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd9')][_0x5eb6('0xd4')])['filter'](([_0x38d6f0])=>!_0x38d6f0['startsWith'](_0x5eb6('0x12d'))));let _0x45cbca=0x0;for(const _0x4625ce of _0x353873){const _0x111274=this['_makeTape'](_0x4625ce[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd9')]);_0x4625ce==_0xe32621?(_0x46082d=_0x111274,_0x26cf5b=_0x46082d[_0x5eb6('0x7')],_0x46082d[_0x5eb6('0x9c')](_0x224e81=>{_0x224e81['id']=_0x45cbca++;}),this['_processTape'](_0x46082d)):this['_markInsertions'](_0x46082d,_0x111274);const _0x230733=_0x46082d[_0x5eb6('0x80')](_0x1a88d6=>!_0x1a88d6[_0x5eb6('0x3e')])[_0x5eb6('0x44')](_0x204a34=>_0x204a34['id']);let _0x1c0c41=0x0;const _0x4bed33=this['_makeTape'](_0x4625ce[_0x5eb6('0x13')][_0x2bafb2][_0x5eb6('0xd3')]);_0x4bed33[_0x5eb6('0x9c')](_0x26ed10=>{_0x26ed10[_0x5eb6('0x5')]?_0x26ed10['id']=_0x26cf5b++:_0x26ed10['id']=_0x230733[_0x1c0c41++];}),this[_0x5eb6('0x107')](_0x4bed33),this[_0x5eb6('0x102')](_0x46082d,_0x5eb6('0x3e')),this[_0x5eb6('0x102')](_0x4bed33,'isRemoved'),_0x4625ce==_0xe32621&&this['_markMarkers'](_0x46082d,_0x4cb9b3),_0x46082d=this[_0x5eb6('0x11c')](_0x46082d,_0x4bed33),this[_0x5eb6('0x11d')](_0x46082d),this[_0x5eb6('0x102')](_0x46082d,'isRemoved');}_0x46082d=_0x46082d[_0x5eb6('0x80')](_0x2b86c8=>!(_0x2b86c8[_0x5eb6('0x3e')]&&_0x2b86c8[_0x5eb6('0x5')]));const _0x1fe20a=new Map(_0x463844[_0x5eb6('0x13')][_0x2bafb2]['deletions'][_0x5eb6('0xd4')]),_0xd2423c=new Set(_0x4cb9b3[_0x5eb6('0xb')]());for(const _0x3647ac of _0x1fe20a['keys']())_0xd2423c[_0x5eb6('0x4a')](_0x3647ac);this[_0x5eb6('0x91')](_0x46082d,_0xd2423c),this[_0x5eb6('0x81')](_0x46082d),_0x46082d=this[_0x5eb6('0x37')](_0x46082d),_0x46082d=this['_markMismatchedRemovedTags'](_0x46082d),_0x46082d=this['_removeUnsupportedChanges'](_0x46082d);const {root:_0x229dfa,changes:_0x515260}=this[_0x5eb6('0xfe')](_0x46082d,_0x5f2b84,_0x2bafb2);_0x57cc6e[_0x5eb6('0x13')][_0x2bafb2]=_0x229dfa;const _0x5776fc=_0x246d50['get'](_0x2bafb2);if(_0x5776fc){const _0x399816=_0x5f2b84[_0x5eb6('0x1e')](_0x5776fc[_0x5eb6('0x73')]),_0x45b917=new _0x3aa243({'author':_0x399816,'type':_0x5776fc[_0x5eb6('0xfd')]?_0x5eb6('0xa9'):_0x5eb6('0xbf'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2bafb2});_0x515260['unshift'](_0x45b917),_0x57cc6e[_0x5eb6('0xf5')][_0x2bafb2][_0x5eb6('0x14')]=_0x45b917['id'];}_0x57cc6e[_0x5eb6('0x9e')]=_0x57cc6e[_0x5eb6('0x9e')][_0x5eb6('0xe8')](_0x515260);}return _0x57cc6e;}[_0x5eb6('0x8f')](_0x10582a,_0x4693ea){for(let _0x50b3fe=0x0;_0x50b3fe<_0x10582a[_0x5eb6('0x7')];_0x50b3fe++)for(const [_0x156718,_0x4204ed]of _0x4693ea)_0x4204ed[_0x5eb6('0x12b')][_0x5eb6('0x1a')](_0x10582a[_0x50b3fe]['previousPosition'])&&_0x10582a[_0x50b3fe][_0x5eb6('0xcc')][_0x5eb6('0xdb')](_0x156718),_0x4204ed[_0x5eb6('0x78')][_0x5eb6('0x1a')](_0x10582a[_0x50b3fe][_0x5eb6('0xc')])&&_0x10582a[_0x50b3fe]['markersEnd']['push'](_0x156718);}[_0x5eb6('0x11c')](_0x1a06db,_0x25b623){let _0x56739b=[],_0x201dfb=0x0,_0x2ea9fa=0x0;for(;_0x201dfb<_0x1a06db[_0x5eb6('0x7')]||_0x2ea9fa<_0x25b623[_0x5eb6('0x7')];){const _0x32cf4e=_0x1a06db[_0x201dfb]||{},_0x19fc1f=_0x25b623[_0x2ea9fa]||{};if(_0x32cf4e['id']==_0x19fc1f['id'])_0x201dfb++,_0x2ea9fa++,_0x56739b['push'](_0x32cf4e);else{if(_0x19fc1f['isRemoved']&&_0x32cf4e[_0x5eb6('0x3e')]){const {commonTape:_0x212b39,iEnd:_0x14a778,jEnd:_0x4784cf}=this['_threeWayMerge'](_0x1a06db,_0x201dfb,_0x25b623,_0x2ea9fa);_0x56739b=_0x56739b[_0x5eb6('0xe8')](_0x212b39),_0x201dfb=_0x14a778,_0x2ea9fa=_0x4784cf;}else _0x19fc1f[_0x5eb6('0x5')]?(_0x2ea9fa++,_0x56739b[_0x5eb6('0xdb')](_0x19fc1f)):(_0x201dfb++,_0x56739b['push'](_0x32cf4e));}}return _0x56739b;}['_markSuggestions'](_0x407023,_0x55c4c7){const _0x24090d=[];for(let _0x35f5ec=0x0;_0x35f5ec<_0x407023[_0x5eb6('0x7')];_0x35f5ec++){for(let _0x54469a=0x0;_0x54469a<_0x407023[_0x35f5ec]['markersStart'][_0x5eb6('0x7')];_0x54469a++){const _0x5bbb0c=_0x407023[_0x35f5ec][_0x5eb6('0xcc')][_0x54469a];if(!_0x55c4c7[_0x5eb6('0x62')](_0x5bbb0c))continue;const {group:_0x27ac76,type:_0x40a70a,authorId:_0x30909d}=_0x207282(_0x5bbb0c);_0x5eb6('0x10')!=_0x27ac76||_0x5eb6('0xe9')!=_0x40a70a&&_0x5eb6('0x119')!=_0x40a70a||(_0x24090d['unshift']({'type':_0x40a70a,'name':_0x5bbb0c,'userId':_0x30909d}),_0x407023[_0x35f5ec][_0x5eb6('0xcc')][_0x5eb6('0x124')](_0x54469a,0x1),_0x54469a--);}_0xb6ccee(_0x407023[_0x35f5ec]);for(let _0x3320be=0x0;_0x3320be<_0x407023[_0x35f5ec]['markersEnd'][_0x5eb6('0x7')];_0x3320be++){const _0x3fa3ff=_0x407023[_0x35f5ec][_0x5eb6('0x0')][_0x3320be];if(!_0x55c4c7[_0x5eb6('0x62')](_0x3fa3ff))continue;const {group:_0x513ed8,type:_0x1bcd1a}=_0x207282(_0x3fa3ff);if('revision-suggestion'!=_0x513ed8||_0x5eb6('0xe9')!=_0x1bcd1a&&_0x5eb6('0x119')!=_0x1bcd1a)continue;_0x407023[_0x35f5ec][_0x5eb6('0x0')][_0x5eb6('0x124')](_0x3320be,0x1),_0x3320be--;const _0x5b0cfd=_0x24090d[_0x5eb6('0xab')](_0x426d0d=>_0x426d0d['name']==_0x3fa3ff);_0x5b0cfd>-0x1&&_0x24090d[_0x5eb6('0x124')](_0x5b0cfd,0x1);}}function _0x207282(_0x449246){const _0x457548=_0x449246[_0x5eb6('0x122')](':');return{'group':_0x457548[0x0],'type':_0x457548[0x1],'subType':_0x457548[_0x5eb6('0x7')]>=0x5?_0x457548[0x2]:null,'id':_0x457548[_0x5eb6('0x7')]<0x5?_0x457548[0x2]:_0x457548[0x3],'authorId':_0x457548[_0x5eb6('0x7')]<0x5?_0x457548[0x3]:_0x457548[0x4],'markerCount':0x6==_0x457548[_0x5eb6('0x7')]?_0x457548[0x5]:null};}function _0xb6ccee(_0x1cd24b){for(let _0x1ccf06=0x0;_0x1ccf06<_0x24090d['length'];_0x1ccf06++){if(_0x1cd24b[_0x5eb6('0x3e')]&&_0x5eb6('0xe9')==_0x24090d[_0x1ccf06][_0x5eb6('0x20')])return _0x1cd24b[_0x5eb6('0x36')]=_0x24090d[_0x1ccf06],void delete _0x1cd24b[_0x5eb6('0x3e')];if(!_0x1cd24b[_0x5eb6('0x3e')]&&!_0x1cd24b[_0x5eb6('0x5')]&&_0x5eb6('0x119')==_0x24090d[_0x1ccf06][_0x5eb6('0x20')])return void(_0x1cd24b[_0x5eb6('0xaa')]=_0x24090d[_0x1ccf06]);}}}['_setDistance'](_0x32a33b,_0x555f34){let _0x509b92=0x0,_0x31ac7c=!0x1;const _0x18d32e=new Map();for(const _0x28ed47 of _0x32a33b)_0x28ed47[_0x555f34]?_0x31ac7c&&(_0x509b92++,_0x31ac7c=!0x1):(_0x509b92++,_0x31ac7c=!0x0),_0x18d32e[_0x5eb6('0xa4')](_0x28ed47['id'],_0x509b92);for(let _0x403189=0x0;_0x403189<_0x32a33b[_0x5eb6('0x7')];_0x403189++){if(_0x5eb6('0x5')==_0x555f34&&_0x32a33b[_0x403189]['isAdded']||_0x5eb6('0x3e')==_0x555f34&&_0x32a33b[_0x403189][_0x5eb6('0x5')])continue;if('text'==_0x32a33b[_0x403189][_0x5eb6('0x20')]){_0x32a33b[_0x403189][_0x5eb6('0x67')]=0x0;continue;}const _0x18f270=_0x18d32e[_0x5eb6('0x1e')](_0x32a33b[_0x403189][_0x5eb6('0xe5')]),_0x52a492=_0x18d32e[_0x5eb6('0x1e')](_0x32a33b[_0x403189]['id']);_0x32a33b[_0x403189][_0x5eb6('0x67')]=_0x18f270-_0x52a492;}}[_0x5eb6('0x31')](_0x30cd25,_0x23073e,_0x42846d=!0x1){const _0x57cbd6=[];let _0x5e3d73=this[_0x5eb6('0x19')][_0x5eb6('0xa')](_0x30cd25),_0x524ad8=this['repository'][_0x5eb6('0xa')](_0x23073e);for(-0x1==_0x524ad8&&(_0x524ad8=this[_0x5eb6('0x19')][_0x5eb6('0xc1')][_0x5eb6('0x7')],_0x42846d=!0x1);_0x5e3d73<_0x524ad8;)_0x57cbd6[_0x5eb6('0xdb')](this[_0x5eb6('0x19')][_0x5eb6('0x3')](_0x5e3d73)),_0x5e3d73++;return _0x42846d&&_0x57cbd6[_0x5eb6('0xdb')](this[_0x5eb6('0x19')][_0x5eb6('0x3')](_0x5e3d73)),_0x57cbd6;}[_0x5eb6('0xc2')](_0x20c4a2,_0x23053b,_0x1ea177,_0x346c4a){const _0x35d099=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x5e')];let _0x3c4202=_0x23053b;for(;_0x20c4a2[_0x3c4202]&&_0x20c4a2[_0x3c4202][_0x5eb6('0x3e')];)_0x3c4202++;let _0x82a0d1=_0x346c4a;for(;_0x1ea177[_0x82a0d1]&&_0x1ea177[_0x82a0d1]['isRemoved'];)_0x82a0d1++;_0x3b5755(_0x20c4a2,_0x23053b,_0x3c4202),_0x3b5755(_0x1ea177,_0x346c4a,_0x82a0d1);const _0x5f462b=_0x1ea177['slice'](_0x346c4a,_0x82a0d1)[_0x5eb6('0xe8')](_0x20c4a2['slice'](_0x23053b,_0x3c4202));return _0x5f462b[_0x5eb6('0x11f')]((_0x376430,_0x1c1c57)=>_0x376430[_0x5eb6('0xfa')]!=_0x1c1c57['side']?_0x376430[_0x5eb6('0xfa')]-_0x1c1c57['side']:_0x376430[_0x5eb6('0x9a')]!=_0x1c1c57[_0x5eb6('0x9a')]?_0x376430[_0x5eb6('0x9a')]-_0x1c1c57[_0x5eb6('0x9a')]:_0x376430[_0x5eb6('0x67')]!=_0x1c1c57[_0x5eb6('0x67')]?_0x1c1c57[_0x5eb6('0x67')]-_0x376430[_0x5eb6('0x67')]:!!_0x376430[_0x5eb6('0x3e')]!=!!_0x1c1c57[_0x5eb6('0x3e')]?-0x1==_0x376430[_0x5eb6('0xfa')]||0x0==_0x376430['side']?_0x376430['isAdded']?-0x1:0x1:_0x376430[_0x5eb6('0x3e')]?0x1:-0x1:_0x376430[_0x5eb6('0x115')]-_0x1c1c57[_0x5eb6('0x115')]),{'commonTape':_0x5f462b,'iEnd':_0x3c4202,'jEnd':_0x82a0d1};function _0x3b5755(_0x2cb4f4,_0x11dec8,_0x41c915){let _0x15c171=-0x1,_0x4b32cb=Number[_0x5eb6('0x2d')],_0x11e9fc=!0x0;for(let _0x136120=_0x11dec8;_0x136120<_0x41c915;_0x136120++)if(_0x35d099['isInline'](_0x2cb4f4[_0x136120][_0x5eb6('0xa3')])||(_0x11e9fc=!0x1),_0x2cb4f4[_0x136120][_0x5eb6('0xa3')][_0x5eb6('0x42')]<_0x11dec8&&(_0x15c171=_0x136120),_0x2cb4f4[_0x136120]['item'][_0x5eb6('0xde')]>=_0x41c915){_0x4b32cb=_0x136120;break;}_0x11e9fc&&(_0x15c171=_0x41c915-0x1);for(let _0xc1c5d0=_0x11dec8;_0xc1c5d0<_0x41c915;_0xc1c5d0++)_0x2cb4f4[_0xc1c5d0][_0x5eb6('0xfa')]=_0xc1c5d0<=_0x15c171?-0x1:_0xc1c5d0<_0x4b32cb?0x0:0x1,_0x2cb4f4[_0xc1c5d0]['index']=_0xc1c5d0;let _0x5a9fc1=0x0;for(let _0x2b256c=_0x11dec8;_0x2b256c<=_0x15c171;_0x2b256c++)0x0==_0x2cb4f4[_0x2b256c][_0x5eb6('0x67')]?_0x2cb4f4[_0x2b256c][_0x5eb6('0x9a')]=_0x5a9fc1:(_0x5a9fc1++,_0x2cb4f4[_0x2b256c]['level']=_0x5a9fc1,_0x5a9fc1++);for(let _0x3a1a88=_0x11dec8;_0x3a1a88<_0x41c915;_0x3a1a88++)0x0==_0x2cb4f4[_0x3a1a88][_0x5eb6('0xfa')]&&(_0x2cb4f4[_0x3a1a88][_0x5eb6('0x9a')]=_0x5a9fc1);_0x5a9fc1=0x0;for(let _0x55ba39=_0x41c915-0x1;_0x55ba39>=_0x4b32cb;_0x55ba39--)0x0==_0x2cb4f4[_0x55ba39][_0x5eb6('0x67')]?_0x2cb4f4[_0x55ba39][_0x5eb6('0x9a')]=_0x5a9fc1:(_0x5a9fc1--,_0x2cb4f4[_0x55ba39][_0x5eb6('0x9a')]=_0x5a9fc1,_0x5a9fc1--);}}[_0x5eb6('0x81')](_0x1039b1){const _0x565c6d=new Map(),_0x4fa8fc=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x5e')];for(let _0x4ffad8=0x1;_0x4ffad8<_0x1039b1['length'];_0x4ffad8++){let _0x432a95,_0x10cd37,_0x2ccd60;const _0x5148b4=_0x1039b1[_0x4ffad8],_0x5ca5c7=_0x1039b1[_0x4ffad8-0x1];if(_0x5eb6('0x65')==_0x5148b4['type'])continue;if(_0x5148b4[_0x5eb6('0x20')]!=_0x5ca5c7[_0x5eb6('0x20')])continue;if(!_0x4fa8fc[_0x5eb6('0xe6')](_0x5ca5c7[_0x5eb6('0xa3')])||_0x4fa8fc['isLimit'](_0x5ca5c7['item']))continue;if(!_0x4fa8fc[_0x5eb6('0xe6')](_0x5148b4['item'])||_0x4fa8fc[_0x5eb6('0x87')](_0x5148b4[_0x5eb6('0xa3')]))continue;if((_0x1039b1[_0x4ffad8][_0x5eb6('0x3e')]||_0x1039b1[_0x4ffad8]['isAddSuggestion'])&&_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x5')])_0x432a95=_0x1039b1[_0x4ffad8],_0x10cd37=_0x1039b1[_0x4ffad8-0x1],_0x2ccd60=_0x4ffad8-0x1;else{if(!_0x1039b1[_0x4ffad8][_0x5eb6('0x5')]||!_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x3e')]&&!_0x1039b1[_0x4ffad8-0x1][_0x5eb6('0x36')])continue;_0x432a95=_0x1039b1[_0x4ffad8-0x1],_0x10cd37=_0x1039b1[_0x4ffad8],_0x2ccd60=_0x4ffad8;}const _0x5d3b82=_0x432a95['level']==_0x10cd37[_0x5eb6('0x9a')],_0xa896c9=Math[_0x5eb6('0x57')](_0x432a95[_0x5eb6('0x9a')])<Math[_0x5eb6('0x57')](_0x10cd37[_0x5eb6('0x9a')])&&0x0==_0x10cd37[_0x5eb6('0x67')];(_0x5d3b82||_0xa896c9)&&(_0x565c6d[_0x5eb6('0xa4')](_0x10cd37['id'],_0x432a95['id']),_0x1039b1['splice'](_0x2ccd60,0x1),_0x4ffad8--,_0x432a95[_0x5eb6('0x3e')]=!0x1);}for(let _0x112889=0x0;_0x112889<_0x1039b1[_0x5eb6('0x7')];_0x112889++)_0x565c6d[_0x5eb6('0x62')](_0x1039b1[_0x112889][_0x5eb6('0xe5')])&&(_0x1039b1[_0x112889][_0x5eb6('0xe5')]=_0x565c6d['get'](_0x1039b1[_0x112889][_0x5eb6('0xe5')]));}[_0x5eb6('0x37')](_0x330b97){const _0x194678=new Set(_0x330b97['map'](_0x3d82e3=>_0x3d82e3['id']));for(let _0x4f1c27=0x0;_0x4f1c27<_0x330b97[_0x5eb6('0x7')];_0x4f1c27++)_0x194678[_0x5eb6('0x62')](_0x330b97[_0x4f1c27][_0x5eb6('0xe5')])||0x0==_0x330b97[_0x4f1c27]['distance']||(_0x330b97[_0x4f1c27][_0x5eb6('0x17')]=!0x0);return _0x330b97[_0x5eb6('0x80')](_0x42981f=>!_0x42981f[_0x5eb6('0x17')]);}[_0x5eb6('0x70')](_0x19f2db){const _0x1dd459=new Set();for(let _0x1cb562=0x0;_0x1cb562<_0x19f2db[_0x5eb6('0x7')];_0x1cb562++){if(_0x1dd459['has'](_0x19f2db[_0x1cb562]['id'])&&_0x19f2db[_0x1cb562][_0x5eb6('0x5')]&&(_0x19f2db[_0x1cb562][_0x5eb6('0x17')]=!0x0),_0x19f2db[_0x1cb562][_0x5eb6('0x17')])continue;if(0x0==_0x19f2db[_0x1cb562]['distance'])continue;if('elementStart'!=_0x19f2db[_0x1cb562][_0x5eb6('0x20')])continue;if(null==_0x19f2db[_0x1cb562][_0x5eb6('0xe5')])continue;let _0x4a1418=_0x1cb562+0x1,_0x4fd6cc=0x0;for(;_0x19f2db[_0x4a1418]['id']!=_0x19f2db[_0x1cb562][_0x5eb6('0xe5')];)_0x5eb6('0xf6')==_0x19f2db[_0x4a1418][_0x5eb6('0x20')]?_0x4fd6cc++:_0x5eb6('0x54')==_0x19f2db[_0x4a1418][_0x5eb6('0x20')]&&_0x4fd6cc--,_0x4a1418++;if(0x0!=_0x4fd6cc){if(_0x19f2db[_0x1cb562]['isRemoved'])_0x19f2db[_0x1cb562]['isIncorrect']=!0x0;else for(;_0x4a1418!=_0x1cb562;)_0x19f2db[_0x4a1418][_0x5eb6('0x5')]&&0x0!=_0x19f2db[_0x4a1418][_0x5eb6('0x67')]&&(_0x19f2db[_0x4a1418][_0x5eb6('0x17')]=!0x0,_0x1dd459[_0x5eb6('0xa9')](_0x19f2db[_0x4a1418][_0x5eb6('0xe5')])),_0x4a1418--;}}return _0x19f2db[_0x5eb6('0x80')](_0x16731a=>!_0x16731a['isIncorrect']);}[_0x5eb6('0x128')](_0x477c13){const _0x26a772=this['editor'][_0x5eb6('0x13')][_0x5eb6('0x5e')];for(let _0x1c1066=0x0;_0x1c1066<_0x477c13[_0x5eb6('0x7')];_0x1c1066++){if(!(_0x477c13[_0x1c1066][_0x5eb6('0x3e')]||_0x477c13[_0x1c1066]['isAddSuggestion']||_0x477c13[_0x1c1066][_0x5eb6('0x5')]||_0x477c13[_0x1c1066]['isRemoveSuggestion']))continue;if(0x0==_0x477c13[_0x1c1066]['distance'])continue;const _0x20f131=_0x477c13[_0x1c1066][_0x5eb6('0xa3')];_0x26a772[_0x5eb6('0xe6')](_0x20f131)||_0x26a772[_0x5eb6('0x87')](_0x20f131)||(_0x477c13[_0x1c1066][_0x5eb6('0x3e')]&&delete _0x477c13[_0x1c1066][_0x5eb6('0x3e')],_0x477c13[_0x1c1066]['isAddSuggestion']&&delete _0x477c13[_0x1c1066][_0x5eb6('0x36')],_0x477c13[_0x1c1066]['isRemoveSuggestion']&&delete _0x477c13[_0x1c1066][_0x5eb6('0xaa')],_0x477c13[_0x1c1066]['isRemoved']&&(_0x477c13[_0x1c1066][_0x5eb6('0x17')]=!0x0));}return _0x477c13[_0x5eb6('0x80')](_0x3dbb1b=>!_0x3dbb1b[_0x5eb6('0x17')]);}[_0x5eb6('0xfe')](_0x4e84b8,_0x2868d8,_0x3fe42a){const _0x40380e=new _0x308b28(),_0x220fd3=[],_0x2ffee6=new Map(),_0x77503f=this[_0x5eb6('0x2f')][_0x5eb6('0x13')],_0x4e2955=_0x77503f[_0x5eb6('0x5e')],_0xfeb55d=[_0x40380e],_0x407862={},_0x404af4={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x2ad4d4=null;const _0x22390e=[0x0];for(let _0x167cdc=0x0;_0x167cdc<_0x4e84b8[_0x5eb6('0x7')];_0x167cdc++){let _0x32dfee,_0xd8d401;if(_0x5eb6('0xf6')===_0x4e84b8[_0x167cdc][_0x5eb6('0x20')]){_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e);const _0x40ada5=new _0x1f2448(_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x41')],_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0xa8')]());_0xfeb55d[0x0]['_appendChild'](_0x40ada5),_0x22390e[_0x5eb6('0xdb')](0x0),_0xfeb55d[_0x5eb6('0x5a')](_0x40ada5),_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4=null;}else{if(_0x5eb6('0x54')===_0x4e84b8[_0x167cdc][_0x5eb6('0x20')])_0xfeb55d['shift'](),_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x22390e['pop'](),_0x22390e[_0x22390e[_0x5eb6('0x7')]-0x1]++,_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4=null;else{if(_0x32dfee=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e),_0x2ad4d4&&_0x1b5763(_0x2ad4d4,_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')]))_0x2ad4d4[_0x5eb6('0xf0')]+=_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x6c')];else{const _0x449f74=new _0x37f40e(_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x6c')],_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')]['getAttributes']());_0xfeb55d[0x0][_0x5eb6('0xe4')](_0x449f74),_0x2ad4d4=_0x449f74;}_0x22390e[_0x22390e[_0x5eb6('0x7')]-0x1]+=_0x4e84b8[_0x167cdc][_0x5eb6('0xa3')][_0x5eb6('0x63')],_0xd8d401=_0x77503f[_0x5eb6('0x71')](_0x40380e,_0x22390e);}}for(const _0x3b4e1d of _0x4e84b8[_0x167cdc][_0x5eb6('0xcc')])_0x2ffee6[_0x5eb6('0xa4')](_0x3b4e1d,{'start':_0x32dfee,'end':null});_0xb1c0af('isRemoveSuggestion',_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x36'),_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x5'),_0x167cdc,_0x32dfee,_0xd8d401),_0xb1c0af(_0x5eb6('0x3e'),_0x167cdc,_0x32dfee,_0xd8d401);for(const _0xfd755 of _0x4e84b8[_0x167cdc]['markersEnd']){_0x2ffee6[_0x5eb6('0x1e')](_0xfd755)[_0x5eb6('0x78')]=_0xd8d401;}}for(const [_0x49c2b4,_0x47bb7a]of _0x2ffee6){const _0x1a72ce=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0xf8')](_0x47bb7a[_0x5eb6('0x12b')],_0x47bb7a['end']);_0x40380e[_0x5eb6('0xd4')][_0x5eb6('0xa4')](_0x49c2b4,_0x1a72ce);}return _0x220fd3[_0x5eb6('0x11f')]((_0x44b981,_0x697075)=>{const _0x2b12ef=_0x40380e[_0x5eb6('0xd4')]['get']('revision:'+_0x44b981['id']),_0xb0767b=_0x40380e[_0x5eb6('0xd4')]['get'](_0x5eb6('0x12d')+_0x697075['id']);return _0x2b12ef['start'][_0x5eb6('0x68')](_0xb0767b[_0x5eb6('0x12b')])?-0x1:_0x2b12ef['start'][_0x5eb6('0x12')](_0xb0767b['start'])?0x1:_0x2b12ef['end'][_0x5eb6('0x68')](_0xb0767b[_0x5eb6('0x78')])?-0x1:_0x2b12ef['end'][_0x5eb6('0x12')](_0xb0767b[_0x5eb6('0x78')])?0x1:_0x5eb6('0xa9')===_0x44b981[_0x5eb6('0x20')]?-0x1:0x1;}),{'root':_0x40380e,'changes':_0x220fd3};function _0xb1c0af(_0x1064d9,_0x2c7aaa,_0x4c28c1,_0x56e4a0){const _0x5e3efc=!!_0x4e84b8[_0x2c7aaa][_0x1064d9],_0x55af0a=_0x5e3efc?_0x4e84b8[_0x2c7aaa][_0x1064d9][_0x5eb6('0x73')]:null,_0xe27f57=_0x2c7aaa===_0x4e84b8[_0x5eb6('0x7')]-0x1,_0x2e50d2=_0x404af4[_0x1064d9][0x0],_0x3a7142=_0x4e2955[_0x5eb6('0xf2')](_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')]);!_0x407862[_0x1064d9]&&_0x5e3efc?_0x407862[_0x1064d9]={'start':_0x4c28c1,'tapeItem':_0x4e84b8[_0x2c7aaa],'userId':_0x55af0a,'type':_0x1064d9}:_0x407862[_0x1064d9]&&!_0x5e3efc?(_0x407862[_0x1064d9][_0x5eb6('0x78')]=_0x4c28c1,_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]=null):_0x407862[_0x1064d9]&&_0x5e3efc&&_0x407862[_0x1064d9][_0x5eb6('0x73')]!==_0x55af0a&&(_0x407862[_0x1064d9]['end']=_0x4c28c1,_0x2e50d2&&_0x2e50d2[_0x5eb6('0x73')]===_0x407862[_0x1064d9][_0x5eb6('0x73')]||_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]={'start':_0x4c28c1,'tapeItem':_0x4e84b8[_0x2c7aaa],'userId':_0x55af0a,'type':_0x1064d9}),_0x407862[_0x1064d9]&&_0x3a7142&&(_0x5eb6('0xf6')!==_0x4e84b8[_0x2c7aaa][_0x5eb6('0x20')]||_0x2e50d2&&_0x2e50d2['userId']===_0x55af0a||_0x404af4[_0x1064d9][_0x5eb6('0x5a')]({'userId':_0x55af0a,'object':_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')],'change':_0x407862[_0x1064d9]}),_0x5eb6('0x54')===_0x4e84b8[_0x2c7aaa][_0x5eb6('0x20')]&&_0x2e50d2&&_0x2e50d2[_0x5eb6('0x7c')]===_0x4e84b8[_0x2c7aaa][_0x5eb6('0xa3')]&&(_0x404af4[_0x1064d9]['shift'](),_0x407862[_0x1064d9]=_0x2e50d2[_0x5eb6('0x66')])),_0x407862[_0x1064d9]&&_0xe27f57&&(_0x407862[_0x1064d9]['end']=_0x56e4a0,_0x48d9cc(_0x407862[_0x1064d9]),_0x407862[_0x1064d9]=null);}function _0x48d9cc({start:_0x3c70ef,end:_0x49756f,tapeItem:_0x528d67,userId:_0x263540,type:_0x3801ef}){const _0x86c068=_0x528d67[_0x5eb6('0xa3')],_0x25c4ee=_0x77503f[_0x5eb6('0x5e')][_0x5eb6('0xe6')](_0x86c068)&&!_0x77503f['schema'][_0x5eb6('0x87')](_0x86c068),_0xe8b2b1=_0x3c70ef[_0x5eb6('0x110')]==_0x49756f['parent']&&_0x49756f[_0x5eb6('0x6a')];if(_0x25c4ee&&_0xe8b2b1)return;const _0x11f2f4=_0x77503f[_0x5eb6('0xf8')](_0x3c70ef,_0x49756f),_0x516bf5=_0x2868d8['get'](_0x263540),_0x2074ff=new _0x3aa243({'author':_0x516bf5,'type':_0x5eb6('0x3e')==_0x3801ef||_0x5eb6('0x36')==_0x3801ef?_0x5eb6('0xa9'):_0x5eb6('0xbf'),'data':{'isSuggestion':_0x5eb6('0x36')==_0x3801ef||_0x5eb6('0xaa')==_0x3801ef},'createdAt':new Date(),'rootName':_0x3fe42a});_0x220fd3[_0x5eb6('0xdb')](_0x2074ff),_0x40380e[_0x5eb6('0xd4')][_0x5eb6('0xa4')](_0x5eb6('0x12d')+_0x2074ff['id'],_0x11f2f4);}function _0x1b5763(_0x38f9fb,_0x2ab526){const _0x357e3d=_0x38f9fb['getAttributes'](),_0x139399=_0x2ab526['getAttributes']();for(const _0xc2a57f of _0x357e3d){if(_0xc2a57f[0x1]!==_0x2ab526[_0x5eb6('0xdc')](_0xc2a57f[0x0]))return!0x1;_0x139399[_0x5eb6('0x40')]();}return _0x139399['next']()[_0x5eb6('0x8')];}}[_0x5eb6('0x100')](){this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1')]({'view':_0x5eb6('0x74')}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')]('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x4ca1ff=>{const _0x13b747=_0x4ca1ff[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x5ab106=this['_getChangeFromId'](_0x13b747);if(!_0x5ab106)return null;const _0x18f127=_0x5eb6('0xa9')==_0x5ab106[_0x5eb6('0x20')]?'insertion':_0x5eb6('0x119'),_0x351389=[_0x5eb6('0xea'),_0x5eb6('0x84')+_0x18f127];return _0x5ab106[_0x5eb6('0x6c')]['isSuggestion']&&_0x351389[_0x5eb6('0xdb')](_0x5eb6('0x84')+_0x18f127+_0x5eb6('0x3f')),this[_0x5eb6('0x9')]==_0x5ab106&&_0x351389[_0x5eb6('0xdb')]('ck-suggestion-marker--active'),{'classes':_0x351389,'attributes':{'data-change-id':_0x13b747}};}}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')]('upcast')[_0x5eb6('0xa9')](_0x203b11=>{_0x203b11['on'](_0x5eb6('0xe'),(_0x58ed39,_0x5f002e,_0xa9837d)=>{const _0x41efb4=_0x5f002e['viewItem'][_0x5eb6('0x94')](0x0);if(!_0x41efb4||!_0x41efb4['is'](_0x5eb6('0xff'),_0x5eb6('0x113')))return;if(!_0xa9837d[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x41efb4,{'attributes':[_0x5eb6('0xcd'),_0x5eb6('0x10e')]}))return;const _0x390583=_0x5f002e['modelRange'][_0x5eb6('0x12b')]['nodeAfter'];_0xa9837d[_0x5eb6('0x7f')][_0x5eb6('0x2c')](_0x5eb6('0xcd'),_0x41efb4[_0x5eb6('0xdc')](_0x5eb6('0xcd')),_0x390583),_0xa9837d[_0x5eb6('0x7f')][_0x5eb6('0x2c')]('vid_end',_0x41efb4[_0x5eb6('0xdc')](_0x5eb6('0x10e')),_0x390583);},{'priority':_0x5eb6('0xbe')});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')]('upcast')[_0x5eb6('0xa9')](_0x47ad6e=>{_0x47ad6e['on'](_0x5eb6('0xff'),(_0x29afe3,_0x5b81e5,_0x361f6d)=>{if(!_0x361f6d[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x5b81e5[_0x5eb6('0x4')],{'attributes':[_0x5eb6('0xcd'),_0x5eb6('0x10e')]}))return;if(_0x5b81e5['modelRange'][_0x5eb6('0x15')])return;const _0x508765=_0x5b81e5[_0x5eb6('0x6e')][_0x5eb6('0x12b')]['nodeAfter'];_0x508765[_0x5eb6('0x126')](_0x5eb6('0xcd'))||_0x508765[_0x5eb6('0x126')](_0x5eb6('0x109'))||(_0x361f6d['writer'][_0x5eb6('0x2c')](_0x5eb6('0xcd'),_0x5b81e5[_0x5eb6('0x4')]['getAttribute'](_0x5eb6('0xcd')),_0x508765),_0x361f6d[_0x5eb6('0x7f')][_0x5eb6('0x2c')](_0x5eb6('0x10e'),_0x5b81e5[_0x5eb6('0x4')]['getAttribute']('vid_end'),_0x508765));},{'priority':'low'});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1b')]({'view':{'name':_0x5eb6('0xeb'),'attributes':{'vid':!0x0}},'model':{'key':_0x5eb6('0x109'),'value':_0x44fa32=>_0x44fa32[_0x5eb6('0xdc')](_0x5eb6('0x109'))}}),this[_0x5eb6('0x2f')]['model']['schema']['on'](_0x5eb6('0x116'),(_0x5806b8,[,_0x103c7b])=>{['vid_start','vid_end',_0x5eb6('0x109')]['includes'](_0x103c7b)&&(_0x5806b8[_0x5eb6('0x4d')]=!0x0,_0x5806b8[_0x5eb6('0x33')]());},{'priority':_0x5eb6('0x9d')}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x2b'))['add'](_0x3a701b=>{_0x3a701b['on']('attribute:vid',(_0x1450fc,_0x54ab5a,_0x399218)=>{if('\x20'!=_0x54ab5a[_0x5eb6('0xa3')][_0x5eb6('0x6c')]||_0x54ab5a['item'][_0x5eb6('0xba')][_0x5eb6('0x3b')]>0x1)return;if(!_0x399218[_0x5eb6('0x88')][_0x5eb6('0xfc')](_0x54ab5a['item'],_0x1450fc[_0x5eb6('0x41')]))return;const _0x5843f4=_0x399218['writer'],_0x5a110c=_0x399218['mapper'][_0x5eb6('0xf')](_0x54ab5a[_0x5eb6('0x16')]);_0x5843f4['wrap'](_0x5a110c,_0x5843f4[_0x5eb6('0x103')](_0x5eb6('0xeb')));});}),this[_0x5eb6('0x2f')]['conversion'][_0x5eb6('0xd7')](_0x5eb6('0x2b'))[_0x5eb6('0xec')]({'model':_0x5eb6('0x74')}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x82')]['on'](_0x5eb6('0xa2'),function(_0x1a278f){const _0x1b4f04=_0x1a278f[_0x5eb6('0x8d')]['get'](_0x5eb6('0xe2'));return(_0x547b42,_0x25cb68,_0x3d7cbb)=>{const _0x312117=_0x25cb68[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x10651b=_0x1b4f04[_0x5eb6('0xd2')](_0x312117);if(!_0x10651b)return null;const _0xbaab25=_0x5eb6('0xa9')==_0x10651b[_0x5eb6('0x20')]?_0x5eb6('0x122'):'merge';if(!_0x3d7cbb[_0x5eb6('0x88')]['test'](_0x25cb68[_0x5eb6('0x11e')],_0x547b42['name']))return;const _0xb67b50=_0x25cb68[_0x5eb6('0x11e')][_0x5eb6('0x64')](),_0x2ba7c5=_0x25cb68[_0x5eb6('0x11e')][_0x5eb6('0x12b')],_0x535b9b=_0x1a278f[_0x5eb6('0x13')]['schema'];let _0x3a540b=null,_0x317eef=null,_0x5f55a0=!0x1,_0x496930=!0x1;for(const _0x2ace03 of _0xb67b50){const _0x1bc84c=_0x2ace03[_0x5eb6('0xa3')];_0x5f55a0=_0x5f55a0||_0x535b9b['isContent'](_0x1bc84c);const _0x5f5056=_0x3d7cbb['mapper'][_0x5eb6('0xa0')](_0x1bc84c);if(_0x5f5056&&_0x5f5056[_0x5eb6('0x106')](_0x5eb6('0x1c')))return;_0x5eb6('0x54')==_0x2ace03[_0x5eb6('0x20')]&&(_0x535b9b[_0x5eb6('0xe6')](_0x1bc84c)&&!_0x535b9b[_0x5eb6('0x87')](_0x1bc84c)&&(_0x1bc84c[_0x5eb6('0x4f')]||_0x2ba7c5['isAtEnd']?_0x3a540b&&_0x3a540b[_0x5eb6('0xba')]==_0x1bc84c||(_0x3a540b=_0x1bc84c,_0x1ea543(_0x2ace03[_0x5eb6('0x89')]),_0x496930=!0x0):_0x317eef=_0x317eef||_0x2ace03['previousPosition']));}function _0x1ea543(_0x58aa22){const _0x2bf934=_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x84')+_0xbaab25}),_0x305f7b=_0x3d7cbb['mapper']['toViewPosition'](_0x58aa22);_0x10651b[_0x5eb6('0x6c')]['isSuggestion']&&_0x3d7cbb['writer']['addClass'](_0x5eb6('0x84')+_0xbaab25+_0x5eb6('0x3f'),_0x2bf934),_0x1b4f04[_0x5eb6('0x9')]==_0x10651b&&_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0xbc')](_0x5eb6('0x2'),_0x2bf934),_0x3d7cbb[_0x5eb6('0x7f')][_0x5eb6('0x4e')](_0x305f7b,_0x2bf934),_0x3d7cbb['mapper']['bindElementToMarker'](_0x2bf934,_0x25cb68['markerName']);}_0x5f55a0||_0x496930||!_0x317eef||_0x1ea543(_0x317eef);};}(this[_0x5eb6('0x2f')]),{'priority':'high'}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x82')]['on'](_0x5eb6('0x8a'),(_0x2f6531,_0x5dd970,_0x1d6728)=>{const _0x160a9c=_0x1d6728[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0x5dd970[_0x5eb6('0xbd')]);if(_0x160a9c)for(const _0x5b9b99 of _0x160a9c)(_0x5b9b99[_0x5eb6('0xc9')](_0x5eb6('0xd8'))||_0x5b9b99[_0x5eb6('0xc9')](_0x5eb6('0x7d')))&&(_0x1d6728[_0x5eb6('0x6')][_0x5eb6('0x79')](_0x5b9b99,_0x5dd970[_0x5eb6('0xbd')]),_0x1d6728[_0x5eb6('0x7f')]['remove'](_0x5b9b99));},{'priority':_0x5eb6('0x53')}),this[_0x5eb6('0x2f')][_0x5eb6('0xae')]['downcastDispatcher']['on'](_0x5eb6('0xa2'),(_0x366533,_0x3f7f3e,_0x112c91)=>{const _0x5aec27=_0x3f7f3e[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1],_0x263be2=this[_0x5eb6('0xd2')](_0x5aec27);if(!_0x263be2)return null;const _0xc236dc=_0x5eb6('0xa9')==_0x263be2[_0x5eb6('0x20')]?_0x5eb6('0x122'):_0x5eb6('0x2a');if(_0x112c91['consumable'][_0x5eb6('0xcf')](_0x3f7f3e[_0x5eb6('0x11e')],_0x366533[_0x5eb6('0x41')]))for(const _0x1908eb of _0x3f7f3e['markerRange'][_0x5eb6('0x9f')]()){if(!_0x1908eb['is'](_0x5eb6('0xff'),_0x5eb6('0xb8')))continue;const _0x215fb2=_0x112c91[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x84')+_0xc236dc}),_0x2fed7c=_0x112c91['mapper'][_0x5eb6('0xf9')](this[_0x5eb6('0x2f')]['model'][_0x5eb6('0xf3')](_0x1908eb));_0x263be2[_0x5eb6('0x6c')][_0x5eb6('0x85')]&&_0x112c91[_0x5eb6('0x7f')]['addClass'](_0x5eb6('0x84')+_0xc236dc+_0x5eb6('0x3f'),_0x215fb2),this['activeChange']==_0x263be2&&_0x112c91[_0x5eb6('0x7f')][_0x5eb6('0xbc')]('ck-suggestion-marker--active',_0x215fb2),_0x112c91[_0x5eb6('0x7f')]['insert'](_0x2fed7c,_0x215fb2),_0x112c91[_0x5eb6('0x6')][_0x5eb6('0x83')](_0x215fb2,_0x3f7f3e['markerName']);}},{'priority':'high'}),this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')]['on'](_0x5eb6('0x66'),()=>{this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x27')][_0x5eb6('0x66')](_0x541fee=>{for(const _0x129043 of this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x48')]()){const _0x5ba5e1=this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x129043),_0x7d588c=this['editor'][_0x5eb6('0xae')][_0x5eb6('0x27')]['document'][_0x5eb6('0x47')](_0x129043);if(_0x7d588c){const _0xa6cff3=_0x5ba5e1[_0x5eb6('0xdc')](_0x5eb6('0x14'));if(_0x541fee[_0x5eb6('0x104')](_0x5eb6('0x55'),_0x7d588c),_0x541fee['removeClass'](_0x5eb6('0xca'),_0x7d588c),_0x541fee['removeClass'](_0x5eb6('0x98'),_0x7d588c),_0x541fee[_0x5eb6('0x18')](_0x5eb6('0x3a'),_0x7d588c),_0xa6cff3){const _0x35da2e=this[_0x5eb6('0xd2')](_0xa6cff3);if(!_0x35da2e)return null;_0x541fee[_0x5eb6('0x2c')](_0x5eb6('0x55'),_0xa6cff3,_0x7d588c),_0x541fee[_0x5eb6('0xbc')](_0x5eb6('0xd0')+_0x35da2e[_0x5eb6('0x20')],_0x7d588c),this[_0x5eb6('0x9')]==_0x35da2e&&_0x541fee[_0x5eb6('0xbc')]('ck-revision-history-root--active',_0x7d588c);}}}});}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x69'))[_0x5eb6('0x1')]({'view':_0x5eb6('0xce'),'model':_0x1f2555=>_0x5eb6('0x6f')+_0x1f2555,'converterPriority':_0x5eb6('0x9d')}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')]['for']('upcast')[_0x5eb6('0x1')]({'view':'suggestion','model':_0x1d4ffa=>_0x5eb6('0x32')+_0x1d4ffa,'converterPriority':'highest'}),this[_0x5eb6('0x2f')][_0x5eb6('0x5c')][_0x5eb6('0xd7')]('dataDowncast')[_0x5eb6('0xec')]({'model':_0x5eb6('0x10'),'view':_0x41d11e=>({'name':_0x5eb6('0x95')+_0x41d11e,'group':_0x5eb6('0x10')}),'converterPriority':_0x5eb6('0x9d')}),this['editor'][_0x5eb6('0x5c')][_0x5eb6('0xd7')](_0x5eb6('0x117'))[_0x5eb6('0xb0')]({'model':'revision-suggestion','view':_0xa787de=>{const _0x2553c4=_0xa787de[_0x5eb6('0xbd')][_0x5eb6('0x122')](':')[0x1];return _0x5eb6('0xe9')!=_0x2553c4&&_0x5eb6('0x119')!=_0x2553c4?null:{'classes':[_0x5eb6('0x12a'),_0x5eb6('0x51')+_0x2553c4]};}}),this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x108'),et(this['editor'],_0x5eb6('0x2a')),{'priority':'high'}),this[_0x5eb6('0x2f')]['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x22'),et(this[_0x5eb6('0x2f')],_0x5eb6('0x122')),{'priority':_0x5eb6('0x53')}),this['editor']['editing'][_0x5eb6('0x82')]['on'](_0x5eb6('0x86'),(_0x28f3ce,_0xc32aa6,_0xc1aae0)=>{const _0x3fa7a1=_0xc1aae0[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0xc32aa6[_0x5eb6('0xbd')]);if(_0x3fa7a1)for(const _0x16fbac of _0x3fa7a1)_0x16fbac['is'](_0x5eb6('0xb2'))&&(_0xc1aae0[_0x5eb6('0x6')][_0x5eb6('0x79')](_0x16fbac,_0xc32aa6[_0x5eb6('0xbd')]),_0xc1aae0['writer']['remove'](_0x16fbac));},{'priority':_0x5eb6('0x53')});}[_0x5eb6('0xd2')](_0x2292a1){return this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x2292a1);}['_getViewForChange'](_0x4dfc48){return this['_changeView']&&this[_0x5eb6('0xc5')][_0x5eb6('0x8e')](),this[_0x5eb6('0xc5')]=new _0x1eabbc(this['editor']['locale'],_0x4dfc48),this[_0x5eb6('0xc5')];}[_0x5eb6('0xa1')](){this[_0x5eb6('0x2f')][_0x5eb6('0x13')][_0x5eb6('0x8c')][_0x5eb6('0xc0')][_0x5eb6('0x9b')](_0x5eb6('0x74')),this['on'](_0x5eb6('0x7e'),(_0x3eceee,_0x1cfefe,_0x258519,_0x4456b1)=>{_0x4456b1&&this[_0x5eb6('0x28')][_0x5eb6('0xbf')](_0x4456b1),_0x258519&&(this['_balloon'][_0x5eb6('0xa9')]({'view':_0x258519,'stackId':_0x5eb6('0x6d'),'position':{'target':()=>{const _0xcb53e6=this[_0x5eb6('0x2f')]['editing'],_0x4e8751=this['_getChangeFromId'](_0x258519[_0x5eb6('0x29')]);let _0x2de0a8;if(_0x4e8751['data']['isOnRoot']){const _0x1027f4=_0xcb53e6[_0x5eb6('0x27')][_0x5eb6('0xaf')](_0x4e8751[_0x5eb6('0x97')]);_0x2de0a8=Array[_0x5eb6('0x26')](_0x1027f4[_0x5eb6('0x45')]());}else{const _0x39250f=this['editor']['model'][_0x5eb6('0xd4')][_0x5eb6('0x1e')](_0x5eb6('0x12d')+_0x258519[_0x5eb6('0x29')]);_0x2de0a8=Array[_0x5eb6('0x26')](_0xcb53e6[_0x5eb6('0x6')][_0x5eb6('0xe7')](_0x39250f[_0x5eb6('0x41')]))[_0x5eb6('0x44')](_0x2d5740=>_0xcb53e6[_0x5eb6('0x27')]['domConverter'][_0x5eb6('0xc6')](_0x2d5740))[_0x5eb6('0x44')](_0x3c0dd8=>Array[_0x5eb6('0x26')](_0x3c0dd8[_0x5eb6('0x45')]()))[_0x5eb6('0x38')]();}if(!this[_0x5eb6('0xad')])return _0x2de0a8[0x0];return _0x2de0a8['find'](_0x7e75f1=>_0x7e75f1[_0x5eb6('0x50')]-0x3<=this[_0x5eb6('0xad')]['y']&&_0x7e75f1[_0x5eb6('0x7b')]+0x3>=this[_0x5eb6('0xad')]['y']&&_0x7e75f1['left']-0x3<=this['_activeViewTarget']['x']&&_0x7e75f1[_0x5eb6('0xf1')]+0x3>=this[_0x5eb6('0xad')]['x'])||_0x2de0a8[0x0];}}}),this[_0x5eb6('0x28')][_0x5eb6('0x120')]('revisionHistoryLabel'));}),this['on'](_0x5eb6('0x24'),(_0x24edff,_0x2922ac,_0x23d57e,_0x3b0c5a)=>{this[_0x5eb6('0xd')]=_0x23d57e?this['_getViewForChange'](_0x23d57e):null,this['editor'][_0x5eb6('0x13')]['change'](()=>{const _0x48fcc4=this[_0x5eb6('0x2f')]['editing'];_0x3b0c5a&&(_0x3b0c5a[_0x5eb6('0x6c')]['isOnRoot']?_0x48fcc4[_0x5eb6('0x27')][_0x5eb6('0x66')](_0x1063f2=>{_0x1063f2['removeClass'](_0x5eb6('0x3a'),_0x48fcc4['view'][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x3b0c5a['rootName']));}):_0x48fcc4['reconvertMarker']('revision:'+_0x3b0c5a['id'])),_0x23d57e&&(_0x23d57e[_0x5eb6('0x6c')][_0x5eb6('0x77')]?_0x48fcc4[_0x5eb6('0x27')][_0x5eb6('0x66')](_0x3e37b2=>{_0x3e37b2[_0x5eb6('0xbc')](_0x5eb6('0x3a'),_0x48fcc4['view'][_0x5eb6('0x8c')][_0x5eb6('0x47')](_0x23d57e['rootName']));}):_0x48fcc4[_0x5eb6('0x112')](_0x5eb6('0x12d')+_0x23d57e['id']));});}),this[_0x5eb6('0x123')](this[_0x5eb6('0x2f')]['editing']['view'][_0x5eb6('0x8c')],'mouseover',(_0x344678,_0x306952)=>{if(this[_0x5eb6('0x9')])return;const _0x29fcc9=this[_0x5eb6('0x3d')](_0x306952[_0x5eb6('0x125')]),_0x3e0316=this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x29fcc9);_0x3e0316?(this[_0x5eb6('0xad')]={'x':_0x306952[_0x5eb6('0x21')]['x'],'y':_0x306952[_0x5eb6('0x21')]['y']},this['activeView']=this[_0x5eb6('0x76')](_0x3e0316)):(this[_0x5eb6('0xad')]=null,this[_0x5eb6('0xd')]=null);}),this[_0x5eb6('0x123')](this[_0x5eb6('0x2f')][_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0x8c')],_0x5eb6('0xe3'),(_0x4ba545,_0x10520d)=>{const _0x4b25c7=this['_findChangeIdFromDomTarget'](_0x10520d[_0x5eb6('0x125')]),_0x2304e0=this[_0x5eb6('0x114')][_0x5eb6('0x1e')](_0x4b25c7);_0x2304e0?(this[_0x5eb6('0xad')]={'x':_0x10520d[_0x5eb6('0x21')]['x'],'y':_0x10520d[_0x5eb6('0x21')]['y']},_0x2304e0===this[_0x5eb6('0x9')]?this[_0x5eb6('0x28')][_0x5eb6('0xf4')]():this[_0x5eb6('0x9')]=_0x2304e0):(this['_activeViewTarget']=null,this[_0x5eb6('0x9')]=null);});}[_0x5eb6('0x3d')](_0x92c9f6){do{const _0x1f583f=_0x92c9f6[_0x5eb6('0xdc')](_0x5eb6('0x55'));if(_0x1f583f)return _0x1f583f;_0x92c9f6=_0x92c9f6[_0x5eb6('0xba')];}while(_0x92c9f6);return null;}[_0x5eb6('0x10a')](){this[_0x5eb6('0x2f')]['model']['change'](_0x124a85=>{for(const _0x28a26c of this[_0x5eb6('0x2f')]['model'][_0x5eb6('0xd4')])_0x124a85['removeMarker'](_0x28a26c);});}}function et(_0x183d7c,_0x36a887){return(_0x32c116,_0x4145c8,_0x92cafa)=>{if(!_0x92cafa[_0x5eb6('0x88')][_0x5eb6('0xcf')](_0x4145c8[_0x5eb6('0x11e')],_0x32c116[_0x5eb6('0x41')]))return;const _0x5a992f=_0x4145c8['markerRange'][_0x5eb6('0x64')](),_0x5344c5=_0x4145c8['markerRange'][_0x5eb6('0x12b')],_0x4a5a7a=_0x183d7c[_0x5eb6('0x13')][_0x5eb6('0x5e')];let _0x49e455=null,_0x2d68ca=null,_0x5dce2f=!0x1,_0x52f226=!0x1;for(const _0x529a89 of _0x5a992f){const _0x2c4eb0=_0x529a89[_0x5eb6('0xa3')];_0x5dce2f=_0x5dce2f||_0x4a5a7a['isContent'](_0x2c4eb0);const _0x2946f5=_0x92cafa['mapper'][_0x5eb6('0xa0')](_0x2c4eb0);if(_0x2946f5&&_0x2946f5[_0x5eb6('0x106')](_0x5eb6('0x1c')))return;_0x5eb6('0x54')==_0x529a89[_0x5eb6('0x20')]&&(_0x4a5a7a[_0x5eb6('0xe6')](_0x2c4eb0)&&!_0x4a5a7a['isLimit'](_0x2c4eb0)&&(_0x2c4eb0[_0x5eb6('0x4f')]||_0x5344c5['isAtEnd']?_0x49e455&&_0x49e455[_0x5eb6('0xba')]==_0x2c4eb0||(_0x49e455=_0x2c4eb0,_0x13b497(_0x529a89[_0x5eb6('0x89')]),_0x52f226=!0x0):_0x2d68ca=_0x2d68ca||_0x529a89[_0x5eb6('0x89')]));}function _0x13b497(_0x58d324){const _0x47c23b=_0x92cafa['mapper'][_0x5eb6('0xf9')](_0x58d324),_0x337507=_0x92cafa[_0x5eb6('0x7f')][_0x5eb6('0xb9')](_0x5eb6('0xeb'),{'class':_0x5eb6('0x51')+_0x36a887});_0x92cafa['writer']['insert'](_0x47c23b,_0x337507),_0x92cafa['mapper'][_0x5eb6('0x83')](_0x337507,_0x4145c8['markerName']);}_0x5dce2f||_0x52f226||!_0x2d68ca||_0x13b497(_0x2d68ca);};}export class RestoreRevisionCommand extends _0x17001f{constructor(_0x5a0156){super(_0x5a0156);const _0x5e6bb5=_0x5a0156[_0x5eb6('0x8d')][_0x5eb6('0x1e')](d);this[_0x5eb6('0xd6')]=!0x1,this[_0x5eb6('0x123')](_0x5e6bb5,'change:isReady',()=>this[_0x5eb6('0x23')]()),this[_0x5eb6('0x123')](_0x5e6bb5,_0x5eb6('0xd1'),()=>this[_0x5eb6('0x23')]());}[_0x5eb6('0xe0')](){const _0x4ad96f=this[_0x5eb6('0x2f')],_0x42e277=_0x4ad96f['plugins']['get'](d),_0x2dce8e=_0x42e277[_0x5eb6('0x10f')]?_0x42e277[_0x5eb6('0x10d')][_0x5eb6('0x43')]:null;_0x4ad96f[_0x5eb6('0xbb')][_0x5eb6('0x1e')](_0x5eb6('0xda'))[_0x5eb6('0xd5')](_0x2dce8e);}[_0x5eb6('0x23')](){const {isReady:_0x25e11c,isEnabled:_0x11d0c7}=this[_0x5eb6('0x2f')]['plugins'][_0x5eb6('0x1e')](d);this['isEnabled']=_0x25e11c&&_0x11d0c7;}}export class ShowChangeCommand extends _0x17001f{constructor(_0x24ebbb,{direction:_0x50319a}){super(_0x24ebbb);const _0x117710=_0x24ebbb[_0x5eb6('0x8d')]['get'](d);this[_0x5eb6('0xd6')]=!0x1,this[_0x5eb6('0xb4')]='forward'===_0x50319a?0x1:-0x1,this[_0x5eb6('0x123')](_0x117710,_0x5eb6('0x4c'),()=>this['refresh']()),this[_0x5eb6('0x123')](_0x117710,'change:isEnabled',()=>this[_0x5eb6('0x23')]()),this[_0x5eb6('0x123')](_0x117710,_0x5eb6('0x24'),()=>this[_0x5eb6('0x23')]());}['execute'](){const _0x25344d=this[_0x5eb6('0x2f')],_0x2790e2=_0x25344d[_0x5eb6('0x8d')][_0x5eb6('0x1e')](d),{isNavigationMode:_0x1ca4c5,currentChangeNumber:_0x3fb777}=_0x2790e2;let _0x539e96;if(_0x2790e2['activeChange']=_0x1ca4c5?_0x2790e2['diff']['changes']['get'](_0x3fb777+this['_step']):_0x2790e2[_0x5eb6('0x10d')]['changes'][_0x5eb6('0xa6')],_0x2790e2[_0x5eb6('0x9')][_0x5eb6('0x6c')][_0x5eb6('0x77')])_0x539e96=_0x25344d[_0x5eb6('0xae')][_0x5eb6('0x27')][_0x5eb6('0xaf')](_0x2790e2[_0x5eb6('0x9')][_0x5eb6('0x97')]);else{const _0xaf12cc=_0x25344d[_0x5eb6('0x13')][_0x5eb6('0xd4')][_0x5eb6('0x1e')](_0x5eb6('0x12d')+_0x2790e2[_0x5eb6('0x9')]['id']);_0x539e96=_0x363016(_0x25344d[_0x5eb6('0xae')],_0xaf12cc);}_0x198d78({'target':_0x539e96,'viewportOffset':0x28});}[_0x5eb6('0x23')](){const {isNavigationMode:_0x3929fb,currentChangeNumber:_0x1daf78,numberOfChanges:_0x4658f7,isReady:_0xb6f8c6,isEnabled:_0x12d948}=this['editor']['plugins'][_0x5eb6('0x1e')](d);this[_0x5eb6('0x11')]=!!(_0x12d948&&_0xb6f8c6&&_0x4658f7)&&(!_0x3929fb||(0x1===this['_step']?_0x1daf78<_0x4658f7-0x1:_0x1daf78>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x178f=['class','isOpen','set','action','find','execute','stopPropagation','name','function','buttonView','extendTemplate','map','ck-revision-history-sidebar__revision__actions','threeVerticalDots','items','first','isVisible','change:isActionsDropdownOpen','ck-on','children','Show\x20more\x20items','Compare\x20against\x20selected','locale','isActionsDropdownOpen','isReady','add','_action','bind','listView','source','bindTemplate','model','Name\x20this\x20revision','isEnabled'];(function(_0x279335,_0x178f9d){const _0x5ba0ac=function(_0x3b0c91){while(--_0x3b0c91){_0x279335['push'](_0x279335['shift']());}};_0x5ba0ac(++_0x178f9d);}(_0x178f,0x10a));const _0x5ba0=function(_0x279335,_0x178f9d){_0x279335=_0x279335-0x0;let _0x5ba0ac=_0x178f[_0x279335];return _0x5ba0ac;};import{Collection as _0x36d538}from'ckeditor5/src/utils';import{icons as _0x42195e}from'ckeditor5/src/core';import{Model as _0x448ebf,addListToDropdown as _0x54dbaf,createDropdown as _0x5dfee2}from'ckeditor5/src/ui';import{getTranslation as _0x2e29d0}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x539f4f,_0x2d5495){const _0x40dab6=_0x539f4f[_0x5ba0('0x2')],_0x10c9e8=_0x539f4f[_0x5ba0('0x1c')],_0x4fa38a=_0x5dfee2(_0x10c9e8);_0x4fa38a['panelPosition']='sw';const _0xd0b2f5=function(_0x42fbf0,_0x24a4a0){const _0x4216f3=function(_0x24ad72,_0x460793){const _0x2b13ea=_0x24ad72['locale'],_0x54fecf={'Compare\x20against\x20selected':_0x2e29d0(_0x2b13ea,_0x5ba0('0x1b')),'Name\x20this\x20revision':_0x2e29d0(_0x2b13ea,_0x5ba0('0x4')),'Restore\x20this\x20revision':_0x2e29d0(_0x2b13ea,'Restore\x20this\x20revision')};return _0x460793[_0x5ba0('0x11')](_0x6a01d=>{const _0x578fa6=_0x54fecf[_0x6a01d[_0x5ba0('0xd')]];return _0x578fa6&&_0x578fa6!==_0x6a01d[_0x5ba0('0xd')]&&(_0x6a01d['name']=_0x578fa6),_0x6a01d;});}(_0x42fbf0,_0x24a4a0),_0x1dee1d=new _0x36d538();for(const _0x348df2 of _0x4216f3){const _0x30277a={'type':'button','model':new _0x448ebf({'label':_0x348df2['name'],'class':_0x348df2[_0x5ba0('0x6')],'withText':!0x0,'_action':_0x348df2[_0x5ba0('0x9')]})};_0x30277a[_0x5ba0('0x3')]['bind']('isEnabled')['to'](_0x42fbf0,_0x5ba0('0x1d'),_0xf25d9a=>_0x5ba0('0xe')!=typeof _0x348df2[_0x5ba0('0x5')]||(!_0xf25d9a||_0x348df2[_0x5ba0('0x5')](_0x42fbf0))),_0x1dee1d[_0x5ba0('0x1f')](_0x30277a);}return _0x1dee1d;}(_0x539f4f,_0x2d5495);return _0x539f4f[_0x5ba0('0x21')](_0x5ba0('0x1d'))['to'](_0x4fa38a,_0x5ba0('0x7')),_0x4fa38a[_0x5ba0('0xf')][_0x5ba0('0x8')]({'label':_0x2e29d0(_0x10c9e8,_0x5ba0('0x1a')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x42195e[_0x5ba0('0x13')]}),_0x4fa38a[_0x5ba0('0x10')]({'attributes':{'class':[_0x5ba0('0x12'),_0x40dab6['if'](_0x5ba0('0x1d'),_0x5ba0('0x18'))]},'on':{'click':_0x40dab6['to'](_0x2f2c76=>_0x2f2c76[_0x5ba0('0xc')]())}}),_0x4fa38a['on'](_0x5ba0('0xb'),_0x36cd40=>{_0x539f4f[_0x5ba0('0x1e')]&&_0x5ba0('0xe')==typeof _0x36cd40[_0x5ba0('0x1')][_0x5ba0('0x20')]&&_0x36cd40[_0x5ba0('0x1')]['_action'](_0x539f4f);}),_0x54dbaf(_0x4fa38a,_0xd0b2f5),_0x4fa38a['listenTo'](_0x539f4f,_0x5ba0('0x17'),(_0x103cf7,_0x59bfd1,_0x5bbd65)=>{if(_0x5bbd65)for(const _0x4d531e of _0x4fa38a[_0x5ba0('0x0')][_0x5ba0('0x14')]){const _0x550bb6=_0x4d531e[_0x5ba0('0x19')][_0x5ba0('0x15')],_0x2a9635=_0x2d5495[_0x5ba0('0xa')](_0x11e295=>_0x11e295['action']===_0x550bb6['_action'])[_0x5ba0('0x16')];_0x4d531e[_0x5ba0('0x16')]=void 0x0===_0x2a9635||_0x2a9635(_0x539f4f);}}),_0x4fa38a;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x124b=['setTemplate','set','ck-revision-history-sidebar__revision-author_creator','span','name','ck-revision-history-sidebar__revision-author','Revision\x20author','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name'];(function(_0x5b4cd7,_0x124b55){const _0x5064d2=function(_0xf62667){while(--_0xf62667){_0x5b4cd7['push'](_0x5b4cd7['shift']());}};_0x5064d2(++_0x124b55);}(_0x124b,0x1e3));const _0x5064=function(_0x5b4cd7,_0x124b55){_0x5b4cd7=_0x5b4cd7-0x0;let _0x5064d2=_0x124b[_0x5b4cd7];return _0x5064d2;};import{View as _0x1f0563,IconView as _0x5b91ea}from'ckeditor5/src/ui';import{getTranslation as _0x415f64}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x51e2fd from'../../../theme/icons/user.svg';export default class ti extends _0x1f0563{constructor(_0x280669,_0x2b3039,_0x2c026c){super(_0x280669);const _0x4f954b=new _0x5b91ea();_0x4f954b[_0x5064('0x4')]({'content':_0x51e2fd,'viewBox':_0x5064('0x1')});const _0x2401a8=['ck',_0x5064('0x8')];_0x2c026c&&_0x2401a8['push'](_0x5064('0x5'));const _0x5f27bb=[{'tag':_0x5064('0x6'),'attributes':{'class':['ck',_0x5064('0x2')],'title':_0x415f64(_0x280669,_0x2c026c?'Revision\x20creator':_0x5064('0x0'))},'children':[_0x4f954b,_0x2b3039[_0x5064('0x7')]]}];this[_0x5064('0x3')]({'tag':'li','attributes':{'class':_0x2401a8},'children':_0x5f27bb});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x392f=['Revision\x20name','ck-revision-history-sidebar__revision-name','extendTemplate'];(function(_0x536a84,_0x392f9b){var _0x91b8f3=function(_0x19de1b){while(--_0x19de1b){_0x536a84['push'](_0x536a84['shift']());}};_0x91b8f3(++_0x392f9b);}(_0x392f,0x79));var _0x91b8=function(_0x536a84,_0x392f9b){_0x536a84=_0x536a84-0x0;var _0x91b8f3=_0x392f[_0x536a84];return _0x91b8f3;};import{LabeledFieldView as _0x5f53bf}from'ckeditor5/src/ui';import{getTranslation as _0x5b7893}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x5f53bf{constructor(_0x5c1d82,_0x58579a){super(_0x5c1d82,_0x58579a),this['set']({'label':_0x5b7893(_0x5c1d82,_0x91b8('0x2'))}),this[_0x91b8('0x1')]({'tag':'span','attributes':{'class':[_0x91b8('0x0')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4aa5=['creator','isEnabled','extendTemplate','select','map','ck-revision-history-sidebar__revision-wrapper','ck-reset','name','createdAt','closest','bind','filter','element','uiLanguage','set','bindTemplate','220','unshift','isHighlighted','value','_revision','placeholder','.ck-thread__remove-confirm','render','srcElement','ck-revision-history-sidebar__revision__controls-wrapper','fieldView','isConfirm','highlight','revisionActionsView','length','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-authors','_createdAtFormatted','isSelected','setTemplate','ck-revision-history-sidebar__revision','revisionNameView','change','authors','fire','isActionsDropdownOpen','deselect','ck-revision-history-sidebar__actions_dropdown_open','span','ck-disabled','ck-revision-history-sidebar__revision__date','from','ck-revision-history-sidebar__revision-wrapper_confirmation_visible'];(function(_0x451a33,_0x4aa52d){const _0x273c2a=function(_0x15e882){while(--_0x15e882){_0x451a33['push'](_0x451a33['shift']());}};_0x273c2a(++_0x4aa52d);}(_0x4aa5,0x186));const _0x273c=function(_0x451a33,_0x4aa52d){_0x451a33=_0x451a33-0x0;let _0x273c2a=_0x4aa5[_0x451a33];return _0x273c2a;};import{View as _0x420f41,createLabeledInputText as _0x1d14ac}from'ckeditor5/src/ui';import{ConfirmMixin as _0x4a2d7e}from'ckeditor5-collaboration/src/collaboration-core';import _0x4822da from'./revisionnameview';import _0x4af9e1 from'./revisionauthorview';import{dateToPrettyFormat as _0x3eab0a}from'./utils';import{createActionsDropdownView as _0x249f5e}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x4a2d7e(_0x420f41){constructor(_0x36b78b,_0x1ff42e,_0x66e982){super(_0x36b78b);const _0x4df1f6=this[_0x273c('0x11')],_0xf7fed7=function(_0x57369d,_0x224cfa){const _0x807e63=Array[_0x273c('0x0')](_0x224cfa[_0x273c('0x29')])[_0x273c('0xd')](_0x2f9e48=>_0x2f9e48!=_0x224cfa[_0x273c('0x2')]);return _0x224cfa[_0x273c('0x2')]&&_0x807e63[_0x273c('0x13')](_0x224cfa[_0x273c('0x2')]),_0x807e63[_0x273c('0x6')](_0xa5d17b=>new _0x4af9e1(_0x57369d,_0xa5d17b,_0xa5d17b==_0x224cfa[_0x273c('0x2')]));}(_0x36b78b,_0x1ff42e);this['id']=_0x1ff42e['id'],this[_0x273c('0x16')]=_0x1ff42e,this[_0x273c('0xc')](_0x273c('0x9'),'createdAt')['to'](_0x1ff42e),this[_0x273c('0xc')](_0x273c('0x23'))['to'](this,_0x273c('0xa'),_0x13cede=>_0x13cede?_0x3eab0a(_0x36b78b[_0x273c('0xf')],_0x13cede):void 0x0),this['set'](_0x273c('0x24'),!0x1),this[_0x273c('0x10')](_0x273c('0x14'),!0x1),this[_0x273c('0x10')]('isActionsDropdownOpen',!0x1),this[_0x273c('0x10')]('isReady',!0x1),this['set'](_0x273c('0x3'),!0x1),this['revisionNameView']=new _0x4822da(_0x36b78b,_0x1d14ac),this[_0x273c('0x27')][_0x273c('0x1c')][_0x273c('0x4')]({'attributes':{'maxlength':_0x273c('0x12')}}),this[_0x273c('0x27')]['fieldView'][_0x273c('0xc')](_0x273c('0x15'),_0x273c('0x17'))['to'](this,'name','_createdAtFormatted'),this[_0x273c('0x27')][_0x273c('0xc')](_0x273c('0x3'))['to'](this,_0x273c('0x24'),this,'isEnabled',(_0x404b4b,_0x189799)=>_0x404b4b&&_0x189799),this['revisionActionsView']=_0x66e982&&_0x66e982[_0x273c('0x20')]?_0x249f5e(this,_0x66e982):'',this[_0x273c('0x1f')]&&this[_0x273c('0x1f')][_0x273c('0xc')](_0x273c('0x3'))['to'](this),this[_0x273c('0x25')]({'tag':'div','attributes':{'class':['ck',_0x273c('0x8'),_0x273c('0x7'),_0x4df1f6['if'](_0x273c('0x1d'),_0x273c('0x1'))]},'children':[{'tag':'div','attributes':{'class':['ck',_0x273c('0x8'),_0x273c('0x26'),_0x4df1f6['if'](_0x273c('0x3'),_0x273c('0x2f'),_0x3c838f=>!_0x3c838f),_0x4df1f6['if'](_0x273c('0x24'),_0x273c('0x21')),_0x4df1f6['if'](_0x273c('0x14'),'ck-revision-history-sidebar__revision_highlighted'),_0x4df1f6['if'](_0x273c('0x2b'),_0x273c('0x2d'))]},'children':[this[_0x273c('0x27')],{'tag':_0x273c('0x2e'),'attributes':{'class':['ck',_0x273c('0x30')]},'children':[{'text':_0x4df1f6['to'](_0x273c('0x23'))}]},{'tag':'div','attributes':{'class':['ck',_0x273c('0x1b')]},'children':[{'tag':'ul','attributes':{'class':['ck',_0x273c('0x22')]},'children':_0xf7fed7}]},this[_0x273c('0x1f')]],'on':{'click':_0x4df1f6['to'](_0x41f611=>{_0x41f611[_0x273c('0x1a')][_0x273c('0xb')](_0x273c('0x18'))||this['isReady']&&this[_0x273c('0x3')]&&this[_0x273c('0x2a')](_0x273c('0x5'),{'id':this['id']});})}}]});}[_0x273c('0x19')](){super[_0x273c('0x19')]();const _0x9d0f69=this[_0x273c('0x27')][_0x273c('0x1c')][_0x273c('0xe')];this['listenTo'](_0x9d0f69,_0x273c('0x28'),()=>{this[_0x273c('0x2a')]('setName',{'id':this['id'],'name':_0x9d0f69[_0x273c('0x15')]});});}[_0x273c('0x5')](){this[_0x273c('0x24')]=!0x0;}[_0x273c('0x2c')](){this['isSelected']=!0x1;}[_0x273c('0x1e')](){this[_0x273c('0x14')]=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e48=['bindTemplate','true','ck-revision-history-sidebar__subrevision-collapser__inner','toggle','_isCollapsed','ck-revision-history-sidebar__subrevision-collapser','false','button','span','ck-revision-history-sidebar__subrevision-collapser_collapsed','ck-hidden','setTemplate'];(function(_0x30c75a,_0x3e48da){const _0x5e9fc2=function(_0x3c063c){while(--_0x3c063c){_0x30c75a['push'](_0x30c75a['shift']());}};_0x5e9fc2(++_0x3e48da);}(_0x3e48,0x131));const _0x5e9f=function(_0x30c75a,_0x3e48da){_0x30c75a=_0x30c75a-0x0;let _0x5e9fc2=_0x3e48[_0x30c75a];return _0x5e9fc2;};import{View as _0x64850}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x64850{constructor(_0x304c80){super(_0x304c80);const _0x5216f0=this[_0x5e9f('0x7')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this[_0x5e9f('0x6')]({'tag':_0x5e9f('0x3'),'attributes':{'class':['ck',_0x5e9f('0x0'),_0x5216f0['if']('isVisible',_0x5e9f('0x5'),_0x508412=>!_0x508412),_0x5216f0['if'](_0x5e9f('0xb'),_0x5e9f('0x4'))],'role':_0x5e9f('0x2'),'aria-pressed':_0x5216f0['to'](_0x5e9f('0xb'),_0x45d3a6=>_0x45d3a6?_0x5e9f('0x1'):_0x5e9f('0x8'))},'children':[{'tag':_0x5e9f('0x3'),'attributes':{'class':['ck',_0x5e9f('0x9')]}}],'on':{'click':_0x5216f0['to']('click')}});}[_0x5e9f('0xa')](){this[_0x5e9f('0xb')]=!this[_0x5e9f('0xb')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x371e=['fire','ck-revision-history-sidebar__revision-authors','_parentRevisionId','set','isSelected','bindTemplate','span','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__subrevision','div','bind','ck-reset','deselect','creator','_createdAtFormatted','select','createdAt','setTemplate'];(function(_0x3a79fc,_0x371e5e){const _0x565e76=function(_0x463d50){while(--_0x463d50){_0x3a79fc['push'](_0x3a79fc['shift']());}};_0x565e76(++_0x371e5e);}(_0x371e,0x159));const _0x565e=function(_0x3a79fc,_0x371e5e){_0x3a79fc=_0x3a79fc-0x0;let _0x565e76=_0x371e[_0x3a79fc];return _0x565e76;};import{View as _0x2c3cf0}from'ckeditor5/src/ui';import _0x4d604f from'./revisionauthorview';import{dateToPrettyFormat as _0x4c6643}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x2c3cf0{constructor(_0x3ca6df,_0x129598,_0x50a2ad){super(_0x3ca6df);const _0x5695b6=this[_0x565e('0x2')];this['id']=_0x129598['id'],this[_0x565e('0x7')](_0x565e('0xd'))['to'](_0x129598),this[_0x565e('0x0')]('isSelected',!0x1),this['bind']('_createdAtFormatted')['to'](this,_0x565e('0xd'),_0x3b7add=>_0x3b7add?_0x4c6643(_0x3ca6df['uiLanguage'],_0x3b7add):void 0x0),this[_0x565e('0x11')]=_0x50a2ad,this[_0x565e('0xe')]({'tag':_0x565e('0x6'),'attributes':{'class':['ck',_0x565e('0x8'),'ck-revision-history-sidebar__revision',_0x565e('0x5'),_0x5695b6['if']('isSelected',_0x565e('0x4'))]},'children':[{'tag':_0x565e('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x5695b6['to'](_0x565e('0xb'))}]},{'tag':'ul','attributes':{'class':['ck',_0x565e('0x10')]},'children':[new _0x4d604f(_0x3ca6df,_0x129598[_0x565e('0xa')],!0x0)]}],'on':{'click':_0x5695b6['to'](this['select']['bind'](this))}});}[_0x565e('0xc')](){this[_0x565e('0x1')]=!0x0,this[_0x565e('0xf')](_0x565e('0xc'),{'parentId':this[_0x565e('0x11')]});}[_0x565e('0x9')](){this[_0x565e('0x1')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x548d=['toLocaleDateString','numeric','toLocaleTimeString'];(function(_0x33c278,_0x548d3f){var _0x351ff1=function(_0x9a013b){while(--_0x9a013b){_0x33c278['push'](_0x33c278['shift']());}};_0x351ff1(++_0x548d3f);}(_0x548d,0x13d));var _0x351f=function(_0x33c278,_0x548d3f){_0x33c278=_0x33c278-0x0;var _0x351ff1=_0x548d[_0x33c278];return _0x351ff1;};export function dateToPrettyFormat(_0x4c5c2b,_0x3814c2){return _0x3814c2[_0x351f('0x1')](_0x4c5c2b,{'month':'long','day':'numeric'})+',\x20'+_0x3814c2[_0x351f('0x0')](_0x4c5c2b,{'hour':_0x351f('0x2'),'minute':_0x351f('0x2')});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a16=['_createButton','cancel','trim','extendTemplate','form','value','arrowright','cancelButtonView','stopPropagation','element','forEach','setTemplate','_focusCycler','set','execute','revisionNameInputView','shift\x20+\x20tab','ck-revision-history-save-revision-form','locale','220','focusTracker','arrowup','listenTo','keystrokes','saveButtonView','add','fieldView','tab','revisionNameInputValue','arrowleft','render','reset','Cancel','ck-responsive-form','focusFirst','ck-button-save','ck-button-cancel','delegate','input','label','revisionName','_focusables','focus','_createRevisionNameInput'];(function(_0x91433e,_0x4a1667){const _0xbe3eea=function(_0x3770fe){while(--_0x3770fe){_0x91433e['push'](_0x91433e['shift']());}};_0xbe3eea(++_0x4a1667);}(_0x4a16,0x8a));const _0xbe3e=function(_0x91433e,_0x4a1667){_0x91433e=_0x91433e-0x0;let _0xbe3eea=_0x4a16[_0x91433e];return _0xbe3eea;};import{icons as _0x50e45e}from'ckeditor5/src/core';import{ButtonView as _0x3c4b38,FocusCycler as _0x5539dd,LabeledFieldView as _0x1f0030,View as _0x2972a3,ViewCollection as _0x33308d,createLabeledInputText as _0x4b33de,injectCssTransitionDisabler as _0x4d919d,submitHandler as _0x31bb9c}from'ckeditor5/src/ui';import{FocusTracker as _0x17ce1e,KeystrokeHandler as _0x3b0110}from'ckeditor5/src/utils';import{getTranslation as _0x4b274e}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x2972a3{constructor(_0x3f8030){super(_0x3f8030),this[_0xbe3e('0xe')]=new _0x17ce1e(),this[_0xbe3e('0x11')]=new _0x3b0110(),this['set'](_0xbe3e('0x16'),''),this['revisionNameInputView']=this[_0xbe3e('0x25')](),this['saveButtonView']=this[_0xbe3e('0x26')](_0x4b274e(_0x3f8030,'Save'),_0x50e45e['check'],_0xbe3e('0x1d')),this['saveButtonView']['type']='submit',this[_0xbe3e('0x1')]=this['_createButton'](_0x4b274e(_0x3f8030,_0xbe3e('0x1a')),_0x50e45e[_0xbe3e('0x27')],_0xbe3e('0x1e'),_0xbe3e('0x27')),this[_0xbe3e('0x23')]=new _0x33308d(),this[_0xbe3e('0x6')]=new _0x5539dd({'focusables':this['_focusables'],'focusTracker':this[_0xbe3e('0xe')],'keystrokeHandler':this[_0xbe3e('0x11')],'actions':{'focusPrevious':_0xbe3e('0xa'),'focusNext':_0xbe3e('0x15')}}),this[_0xbe3e('0x5')]({'tag':_0xbe3e('0x2a'),'attributes':{'class':['ck',_0xbe3e('0xb'),_0xbe3e('0x1b')],'tabindex':'-1'},'children':[this[_0xbe3e('0x9')],this[_0xbe3e('0x12')],this[_0xbe3e('0x1')]]}),_0x4d919d(this);}[_0xbe3e('0x18')](){super[_0xbe3e('0x18')](),_0x31bb9c({'view':this}),([this['revisionNameInputView'],this[_0xbe3e('0x12')],this['cancelButtonView']][_0xbe3e('0x4')](_0x4cd1f1=>{this[_0xbe3e('0x23')]['add'](_0x4cd1f1),this[_0xbe3e('0xe')][_0xbe3e('0x13')](_0x4cd1f1[_0xbe3e('0x3')]);}),this['keystrokes'][_0xbe3e('0x10')](this['element']));const _0x250aea=_0x19fb95=>_0x19fb95[_0xbe3e('0x2')]();this[_0xbe3e('0x11')][_0xbe3e('0x7')](_0xbe3e('0x0'),_0x250aea),this[_0xbe3e('0x11')][_0xbe3e('0x7')](_0xbe3e('0x17'),_0x250aea),this[_0xbe3e('0x11')][_0xbe3e('0x7')](_0xbe3e('0xf'),_0x250aea),this[_0xbe3e('0x11')][_0xbe3e('0x7')]('arrowdown',_0x250aea);}[_0xbe3e('0x24')](){this['_focusCycler'][_0xbe3e('0x1c')]();}get[_0xbe3e('0x22')](){return this['revisionNameInputView']['fieldView'][_0xbe3e('0x3')][_0xbe3e('0x2b')][_0xbe3e('0x28')]();}set[_0xbe3e('0x22')](_0xc61dd3){this[_0xbe3e('0x9')][_0xbe3e('0x14')]['element'][_0xbe3e('0x2b')]=_0xc61dd3['trim']();}[_0xbe3e('0x19')](){this[_0xbe3e('0x9')]['fieldView'][_0xbe3e('0x3')][_0xbe3e('0x2b')]='';}[_0xbe3e('0x25')](){const _0x2bef30=new _0x1f0030(this[_0xbe3e('0xc')],_0x4b33de),_0x43f1ae=_0x2bef30[_0xbe3e('0x14')];return _0x43f1ae[_0xbe3e('0x29')]({'attributes':{'maxlength':_0xbe3e('0xd')}}),_0x2bef30[_0xbe3e('0x21')]=_0x4b274e(this[_0xbe3e('0xc')],'Name\x20of\x20the\x20revision\x20(optional)'),_0x43f1ae['on'](_0xbe3e('0x20'),()=>{this[_0xbe3e('0x16')]=_0x43f1ae[_0xbe3e('0x3')]['value'][_0xbe3e('0x28')]();}),_0x2bef30;}['_createButton'](_0x37842d,_0x36b451,_0x3386e7,_0x365f90){const _0x57238c=new _0x3c4b38(this[_0xbe3e('0xc')]);return _0x57238c[_0xbe3e('0x7')]({'label':_0x37842d,'icon':_0x36b451,'tooltip':!0x0}),_0x57238c['extendTemplate']({'attributes':{'class':_0x3386e7}}),_0x365f90&&_0x57238c[_0xbe3e('0x1f')](_0xbe3e('0x8'))['to'](this,_0x365f90),_0x57238c;}}
|