@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231026.0 → 0.0.0-nightly-20231027.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 _0xcd81=['attribute:vid','remove','ck-suggestion-marker-merge','end','getItems','top','diff','deletion','markerName','createUIElement','_cleanMarkers','previousPosition','loadRevisionData','code','createPositionBefore','getDomRoot','bottom','hasClass','keys','first','affectsData','_sortAndFilterDiffChanges','hasAttribute','selection','unbindElementFromMarkerName','low','change:isReady','removeMarker','enqueueChange','refresh','newRevisionId','model','marked','nodeAfter','addMarker:revision','find','ck-suggestion-marker-','isAtStart','maxOffset','slice','addMarker:revision-suggestion:insertion','revision-suggestion:','isEnabled','restoreRevision','enableReadOnlyMode','detachRoot','clear','view','isRemoveSuggestion','_removeRevisionMarkers','change:activeView','_changeIdToChange','parent','document','wrap','length','restoreRevisionCallback','_makeModelFromTape','repository','ck-suggestion-marker--active','addHighlight','downcastDispatcher','markers','getIndex','merge','oldRevisionId','backward','getCustomProperty','offsetSize','_setConversion','highest','POSITIVE_INFINITY','destroy','getRevision','removeAttribute','side','_activeViewTarget','_changeView','_processTape','forEach','listenTo','attributesBefore','_removeMissingPairs','index','for','_threeWayMerge','comment','createPositionFromPath','data-revision-','pairId','collaboration.channelId','_balloon','isEqual','getClientRects','_joinTapes','done','processor','isAddSuggestion','test','execute','_getViewForChange','nextSibling','insert','bind','startIndex','reconvertMarker','_findChangeIdFromDomTarget','_data','diffData','upcast','isCollapsed','revision-end','includes','ck-editor__editable__overlay','element','unshift','getWalker','removeMarker:revision-suggestion','set','data','domEvent','_cleanUp','activeView','_fixObsoleteTags','isReady','forward','rootName','dataDowncast','split','level','setAttribute','high','-new','_getViewObj','_setDistance','_markSuggestions','distance','_revisions','change:numberOfChanges','markerToHighlight','insertion','createRangeIn','suggestion','vid','get','values','writer','_makeTape','indexOf','map','isObject','push','elementStart','editor','item','_removeUnsupportedChanges','data-change-id','error','getRoot','abs','removeClass','toViewPosition','markerToData','_getChangeFromId','isLimit','delete','domConverter','createRevision','_getDiff','modelRange','bindElementToMarker','addRoot','revision','isBlock','dataToMarker','concat','activeChange','elementToAttribute','revisionHistoryAttachChange','next','toData','mouseover','attributes','default','toViewElement','resolve','deletions','isSuggestion','ck-suggestion-marker-split','endIndex','revisionHistory','userId','ck-suggestion-preview-marker','vid_end','splice','vid_start','authors','numberOfChanges','consumable','isAdded','roots','conversion','isRemoved','mapper','schema','init','isBefore','change','filter','viewItem','element:pre','getRootNames','name','startsWith','ck-revision-history-root-add','_appendChild','updatePosition','addClass','text','children','plugins','isAfter','ck-revision-history-root-remove','_step','ck-revision-history-root--active','elementEnd','nextPosition','_update','all','change:activeChange','addRevisionData','changes','attachChange','then','RevisionsRepository','target','attributesAfter','start','type','sort','_markMismatchedRemovedTags','string','_initInteractions','markerRange','getAttribute','getAttributes','_refreshStartEndIndex','isAtEnd','editingDowncast','from','editing','findIndex','_getRevisionsRange','markersEnd','markerNameToElements','left','change:isEnabled','isContent','addMarker:revision-suggestion:deletion','createAttributeElement','locale','revision:','createRange','softBreak','isAttached','toViewRange','isInline','isOnRoot','has','add','suggestion:','removeMarker:revision','pluginName','RevisionViewer','consume','ck-suggestion-preview-marker-','compare','WidgetToolbarRepository','span','flat','right','isIncorrect','revisionHistoryLabel','_makeModelFromViewString','insertions','adapter','range','_markInsertions','_markMarkers','revision-viewer','useFillerType','showPreviousChange','config','changeId','revision-suggestion','markersStart'];(function(_0x891495,_0xcd8127){const _0x6e8762=function(_0x7dedb6){while(--_0x7dedb6){_0x891495['push'](_0x891495['shift']());}};_0x6e8762(++_0xcd8127);}(_0xcd81,0x87));const _0x6e87=function(_0x891495,_0xcd8127){_0x891495=_0x891495-0x0;let _0x6e8762=_0xcd81[_0x891495];return _0x6e8762;};import{Plugin as _0x3de714,Command as _0x412ba8}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x287daa}from'ckeditor5/src/utils';import{ContextualBalloon as _0x296055}from'ckeditor5/src/ui';import{DocumentFragment as _0x45704b,Element as _0x125e7a,Text as _0x4b90d2,ViewDocumentFragment as _0x54d8d5,ViewText as _0x54b964,ViewElement as _0x54b152,ViewContainerElement as _0x52db9b,ViewAttributeElement as _0x23c8cd,ViewEmptyElement as _0x13be43,ViewRawElement as _0x22e83c,ViewUIElement as _0x58d2e0}from'ckeditor5/src/engine';import{Users as _0x1ec0e9,getMarkerDomElement as _0x5c32cc}from'ckeditor5-collaboration/src/collaboration-core';import _0x3a70a1 from'./ui/revisionviewer/changedetailsview';import _0x14e039 from'./revisionsrepository';import _0x33a0cb from'./changeitem';import{default as _0x4015a2}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x3dd39d}from'lodash-es';const tt={'c':_0x52db9b,'a':_0x23c8cd,'e':_0x13be43,'r':_0x22e83c,'u':_0x58d2e0};export default class d extends _0x3de714{static get[_0x6e87('0x89')](){return _0x6e87('0x8a');}static get['requires'](){return[_0x1ec0e9,_0x296055,_0x14e039];}constructor(_0x9e0e72){super(_0x9e0e72),this[_0x6e87('0xdb')]=this[_0x6e87('0x12')][_0x6e87('0x55')][_0x6e87('0x9')](_0x6e87('0x63')),this['set'](_0x6e87('0x29'),null),this[_0x6e87('0x117')]('activeView',null),this[_0x6e87('0xed')]=null,this[_0x6e87('0x117')](_0x6e87('0xa7'),null),this['set'](_0x6e87('0x11d'),!0x1),this['set'](_0x6e87('0xcb'),!0x0),this['on'](_0x6e87('0x79'),(_0x57135c,_0x2a3e64,_0x290039)=>{this[_0x6e87('0x29')]=null,this[_0x6e87('0x11b')]=null,this['editor'][_0x6e87('0x73')]['view'][_0x6e87('0x48')](_0x4a5fe6=>{for(const _0x482e1b of this['editor'][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')][_0x6e87('0x41')])_0x290039?_0x4a5fe6[_0x6e87('0x19')](_0x6e87('0x112'),_0x482e1b):_0x4a5fe6[_0x6e87('0x52')](_0x6e87('0x112'),_0x482e1b);});}),this[_0x6e87('0x108')]('isNavigationMode')['to'](this,_0x6e87('0x29'),_0x3b2007=>null!==_0x3b2007),this[_0x6e87('0x108')]('currentChangeNumber')['to'](this,'isReady',this,_0x6e87('0xa7'),this,_0x6e87('0x29'),(_0x183071,_0x5e3ca1,_0x1772c9)=>_0x183071&&_0x1772c9?_0x5e3ca1['changes'][_0x6e87('0xe0')](_0x1772c9):0x0),this[_0x6e87('0x108')](_0x6e87('0x3e'))['to'](this,_0x6e87('0x11d'),this,'diff',(_0x20417c,_0x691f54)=>_0x20417c?_0x691f54['changes'][_0x6e87('0xd8')]:0x0),this[_0x6e87('0xee')]=null,this[_0x6e87('0xd4')]=new Map(),this[_0x6e87('0x96')]=null,this[_0x6e87('0xfc')]=this['editor'][_0x6e87('0x55')][_0x6e87('0x9')](_0x296055);}[_0x6e87('0x46')](){const _0x552961=this[_0x6e87('0x12')],_0x3e994c=new ShowChangeCommand(_0x552961,{'direction':_0x6e87('0xe3')}),_0x1c3175=new ShowChangeCommand(_0x552961,{'direction':'forward'});(_0x552961['commands'][_0x6e87('0x86')](_0x6e87('0x9c'),_0x3e994c),_0x552961['commands']['add']('showNextChange',_0x1c3175),_0x552961['commands'][_0x6e87('0x86')](_0x6e87('0xcc'),new RestoreRevisionCommand(_0x552961)),this['on'](_0x6e87('0x3'),()=>{_0x3e994c['refresh'](),_0x1c3175[_0x6e87('0xbe')]();}),this[_0x6e87('0xe6')](),this[_0x6e87('0x6b')](),_0x552961[_0x6e87('0xcd')]('revision-viewer'),_0x552961['plugins'][_0x6e87('0x85')](_0x6e87('0x8e')))&&_0x552961['plugins'][_0x6e87('0x9')](_0x6e87('0x8e'))['forceDisabled'](_0x6e87('0x9a'));}async['getRevisionData'](_0x5d6487){await this[_0x6e87('0xad')](_0x5d6487);const _0x29b988={};for(const _0x4bc43f in _0x5d6487[_0x6e87('0x10d')]){if(_0x5d6487[_0x6e87('0x10d')][_0x4bc43f][_0x6e87('0x61')]&&!_0x5d6487['diffData'][_0x4bc43f]['attachChange'][_0x6e87('0x81')])continue;const _0x36743d=this[_0x6e87('0xd2')](JSON['parse'](_0x5d6487[_0x6e87('0x10d')][_0x4bc43f]['insertions'])),_0x56ad24=this[_0x6e87('0x12')]['editing'][_0x6e87('0xd0')][_0x6e87('0xd6')],_0x3e8ba4=new _0x54d8d5(_0x56ad24,_0x36743d[_0x6e87('0xe')](_0x118d07=>this[_0x6e87('0x126')](_0x118d07)));this[_0x6e87('0x12')][_0x6e87('0x118')][_0x6e87('0x101')][_0x6e87('0x9b')](_0x6e87('0xc1')),_0x29b988[_0x4bc43f]=this[_0x6e87('0x12')][_0x6e87('0x118')][_0x6e87('0x101')][_0x6e87('0x2d')](_0x3e8ba4),this[_0x6e87('0x12')]['data'][_0x6e87('0x101')][_0x6e87('0x9b')](_0x6e87('0x30'));}return _0x29b988;}async['getRevisionRootsAttributes'](_0x5efd94){await this[_0x6e87('0xad')](_0x5efd94);const _0x47666b={};for(const _0x122b85 in _0x5efd94[_0x6e87('0x10d')])_0x5efd94[_0x6e87('0x10d')][_0x122b85]['attachChange']&&!_0x5efd94[_0x6e87('0x10d')][_0x122b85][_0x6e87('0x61')][_0x6e87('0x81')]||(_0x47666b[_0x122b85]=_0x5efd94[_0x6e87('0x10d')][_0x122b85][_0x6e87('0x65')]||{});return _0x47666b;}['_removeRevisionMarkers'](_0xfc4dc3){return(_0xfc4dc3=_0xfc4dc3[_0x6e87('0x49')](_0x3c352b=>!_0x3c352b[_0x6e87('0x4d')]||'revision-start'!==_0x3c352b['name']&&_0x6e87('0x110')!==_0x3c352b[_0x6e87('0x4d')]))[_0x6e87('0xf0')](_0xa1f8d3=>{_0x6e87('0x6a')!=typeof _0xa1f8d3&&(_0xa1f8d3[_0x6e87('0x54')]=this[_0x6e87('0xd2')](_0xa1f8d3['children']),_0xa1f8d3[_0x6e87('0x2f')]=_0xa1f8d3[_0x6e87('0x2f')]['filter'](_0x14c98b=>!_0x14c98b[0x0]['startsWith'](_0x6e87('0xf9'))));}),_0xfc4dc3;}async[_0x6e87('0x8d')](_0x568ca3,_0x416c28,_0x3cac7f=!0x1){if(!this[_0x6e87('0xcb')])return;const _0x278b98=this[_0x6e87('0xa7')],_0x47cde1=this[_0x6e87('0xdb')],_0xd9b5f5=_0x6e87('0x6a')==typeof _0x568ca3?_0x47cde1[_0x6e87('0xea')](_0x568ca3):_0x568ca3,_0x3050e4='string'==typeof _0x416c28?_0x47cde1[_0x6e87('0xea')](_0x416c28):_0x416c28,_0x349068=_0xd9b5f5['id'],_0x465b0c=_0x3050e4?_0x3050e4['id']:null;if(!_0x3cac7f&&this['diff']&&this[_0x6e87('0xa7')][_0x6e87('0xbf')]===_0x349068&&this[_0x6e87('0xa7')][_0x6e87('0xe2')]===_0x465b0c)return Promise[_0x6e87('0x32')]();this[_0x6e87('0x11d')]=!0x1,this[_0x6e87('0x11b')]=null,this[_0x6e87('0x29')]=null,this[_0x6e87('0xa7')]=new _0x4015a2(_0x349068,_0x465b0c);const _0x40f1e2=this[_0x6e87('0x75')](_0xd9b5f5,_0x3050e4,!0x0)[_0x6e87('0xe')](_0x2a1212=>this[_0x6e87('0xad')](_0x2a1212));return _0x40f1e2[_0x6e87('0x10')](new Promise(_0x773282=>{setTimeout(_0x773282,0x14);})),Promise[_0x6e87('0x5d')](_0x40f1e2)[_0x6e87('0x62')](()=>{if(!this['isEnabled'])return;this[_0x6e87('0x11a')]();const _0x43ed31=this[_0x6e87('0x21')](_0x349068,_0x465b0c);for(const _0x1bf863 of _0x43ed31[_0x6e87('0x60')])this['_changeIdToChange'][_0x6e87('0x117')](_0x1bf863['id'],_0x1bf863);this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xbd')]({'isUndoable':!0x1},_0xca0138=>{for(const _0x4d1a75 of this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')][_0x6e87('0x4c')]())_0xca0138[_0x6e87('0xce')](_0x4d1a75);for(const _0x7426f3 of Object[_0x6e87('0xb3')](_0x43ed31[_0x6e87('0xc0')])){const _0x30d03=_0xca0138[_0x6e87('0x24')](_0x7426f3);for(const _0x1c26e6 of Object[_0x6e87('0xb3')](_0x43ed31[_0x6e87('0x2f')][_0x7426f3]))_0xca0138['setAttribute'](_0x1c26e6,_0x43ed31[_0x6e87('0x2f')][_0x7426f3][_0x1c26e6],_0x30d03);_0xca0138[_0x6e87('0x107')](_0x43ed31[_0x6e87('0xc0')][_0x7426f3],_0x30d03,0x0);}}),this[_0x6e87('0xa7')]['_setChanges'](this[_0x6e87('0xb6')](_0x43ed31[_0x6e87('0x60')])),this[_0x6e87('0x11d')]=!0x0;})['catch'](_0x4b165d=>{console[_0x6e87('0x16')](_0x4b165d),this[_0x6e87('0x11a')](),_0x278b98&&(this[_0x6e87('0xa7')]=_0x278b98),this[_0x6e87('0x11d')]=!0x0;});}[_0x6e87('0x5f')](_0x18ebc2,_0x2d1c2e){const _0x4ec6ee=this[_0x6e87('0xdb')][_0x6e87('0x20')](_0x18ebc2);return _0x4ec6ee['on'](_0x6e87('0x5c'),(_0x1b0887,_0x32f19b,_0x3ddc79)=>_0x2d1c2e(_0x32f19b,_0x3ddc79,_0x4ec6ee)),this[_0x6e87('0xdb')]['addRevision'](_0x4ec6ee),_0x4ec6ee;}[_0x6e87('0xad')](_0x2c245a){if(!_0x2c245a||_0x2c245a['diffData'])return Promise[_0x6e87('0x32')]();{const _0x3f4c38=this[_0x6e87('0x12')][_0x6e87('0x9d')]['get'](_0x6e87('0xfb'));return this[_0x6e87('0x96')][_0x6e87('0xea')]({'channelId':_0x3f4c38,'revisionId':_0x2c245a['id']})['then'](_0x39efb6=>{_0x2c245a[_0x6e87('0x5c')]({'diffData':_0x39efb6[_0x6e87('0x10d')]},!0x0);});}}[_0x6e87('0x11a')](){this[_0x6e87('0x29')]=null,this[_0x6e87('0xab')](),this[_0x6e87('0xee')]&&this[_0x6e87('0xee')][_0x6e87('0xe9')](),this['_changeView']=null,this[_0x6e87('0xd4')][_0x6e87('0xcf')](),this[_0x6e87('0x12')][_0x6e87('0xc0')]['enqueueChange']({'isUndoable':!0x1},_0x34b4d2=>{for(const _0xa7ef91 of this[_0x6e87('0x12')]['model']['document']['getRootNames']())_0x34b4d2['detachRoot'](_0xa7ef91);});}[_0x6e87('0xb6')](_0x134eca){const _0x1d8724=[],_0x16a8ee=new Map();for(const _0x4d9c9b of this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')]['getRootNames']()){const _0x5a9bc9=this[_0x6e87('0x12')][_0x6e87('0x73')]['view']['getDomRoot'](_0x4d9c9b);if(!_0x5a9bc9)continue;const _0x2c8949=_0x5a9bc9['getClientRects']()['item'](0x0);_0x2c8949&&(_0x1d8724[_0x6e87('0x10')](_0x4d9c9b),_0x16a8ee[_0x6e87('0x117')](_0x4d9c9b,_0x2c8949));}return _0x1d8724['sort']((_0x5797a2,_0x25b2eb)=>{const _0x24ad49=_0x16a8ee[_0x6e87('0x9')](_0x5797a2),_0x54a57a=_0x16a8ee[_0x6e87('0x9')](_0x25b2eb);return _0x24ad49['y']-_0x54a57a['y']||_0x24ad49['x']-_0x54a57a['x'];}),(_0x134eca=_0x134eca[_0x6e87('0x49')](_0x5bbf34=>_0x1d8724['includes'](_0x5bbf34[_0x6e87('0x11f')])))[_0x6e87('0x68')]((_0x53c671,_0x359211)=>_0x1d8724[_0x6e87('0xd')](_0x53c671[_0x6e87('0x11f')])-_0x1d8724['indexOf'](_0x359211[_0x6e87('0x11f')])),_0x134eca;}['_makeTape'](_0x42ed17){const _0x5696e5=Array[_0x6e87('0x72')](_0x42ed17['markers'])[_0x6e87('0x49')](([_0x59c0d7,_0x3a0f84])=>_0x59c0d7['startsWith'](_0x6e87('0x7e'))&&!_0x3a0f84[_0x6e87('0x10f')]),_0x48a527=Array[_0x6e87('0x72')](this[_0x6e87('0x12')]['model'][_0x6e87('0x6')](_0x42ed17)[_0x6e87('0x115')]({'singleCharacters':!0x0}));if(0x0!=_0x5696e5[_0x6e87('0xd8')])for(const _0x24e9dd of _0x48a527){const [_0x302373,_0x2b8ee8]=_0x5696e5[0x0],[,_0x3eefcb,_0x1b7a42]=_0x302373[_0x6e87('0x121')](':');if(_0x2b8ee8[_0x6e87('0xa4')][_0x6e87('0xfd')](_0x24e9dd[_0x6e87('0x5b')])&&_0x5696e5['shift'](),(_0x24e9dd[_0x6e87('0xac')][_0x6e87('0xfd')](_0x2b8ee8[_0x6e87('0x66')])||_0x24e9dd[_0x6e87('0xac')][_0x6e87('0x56')](_0x2b8ee8[_0x6e87('0x66')]))&&(_0x6e87('0x5')==_0x3eefcb?_0x24e9dd['isAdded']={'userId':_0x1b7a42}:_0x6e87('0xa8')==_0x3eefcb&&(_0x24e9dd[_0x6e87('0x43')]={'userId':_0x1b7a42})),0x0==_0x5696e5[_0x6e87('0xd8')])break;}return _0x48a527;}[_0x6e87('0x6f')](_0x302baa){const _0x39f092=new Map();for(let _0x4deb62=0x0;_0x4deb62<_0x302baa[_0x6e87('0xd8')];_0x4deb62++)_0x6e87('0x53')===_0x302baa[_0x4deb62]['type']?(_0x302baa[_0x4deb62]['item']['startIndex']=_0x4deb62,_0x302baa[_0x4deb62][_0x6e87('0x13')]['endIndex']=_0x4deb62):(_0x6e87('0x11')===_0x302baa[_0x4deb62]['type']?_0x302baa[_0x4deb62][_0x6e87('0x13')][_0x6e87('0x109')]=_0x4deb62:'elementEnd'===_0x302baa[_0x4deb62][_0x6e87('0x67')]&&(_0x302baa[_0x4deb62]['item'][_0x6e87('0x36')]=_0x4deb62),_0x39f092[_0x6e87('0x117')](_0x302baa[_0x4deb62]['id'],_0x4deb62));for(const _0x9bfa67 of _0x39f092[_0x6e87('0xa')]())_0x6e87('0x11')===_0x302baa[_0x9bfa67][_0x6e87('0x67')]?_0x302baa[_0x9bfa67]['item'][_0x6e87('0x36')]=_0x39f092[_0x6e87('0x9')](_0x302baa[_0x9bfa67]['pairId']):_0x6e87('0x5a')===_0x302baa[_0x9bfa67]['type']&&(_0x302baa[_0x9bfa67][_0x6e87('0x13')][_0x6e87('0x109')]=_0x39f092[_0x6e87('0x9')](_0x302baa[_0x9bfa67][_0x6e87('0xfa')]));}['_processTape'](_0xfa55fa){for(let _0x385e06=0x0;_0x385e06<_0xfa55fa['length'];_0x385e06++){if(_0x6e87('0x11')===_0xfa55fa[_0x385e06][_0x6e87('0x67')])_0xfa55fa[_0x385e06]['item']['startIndex']=_0x385e06;else{if(_0x6e87('0x5a')===_0xfa55fa[_0x385e06]['type']){_0xfa55fa[_0x385e06]['item'][_0x6e87('0x36')]=_0x385e06;const _0x2c8b62=_0xfa55fa[_0x385e06][_0x6e87('0x13')][_0x6e87('0x109')];_0xfa55fa[_0x2c8b62][_0x6e87('0xfa')]=_0xfa55fa[_0x385e06]['id'],_0xfa55fa[_0x385e06]['pairId']=_0xfa55fa[_0x2c8b62]['id'];}else _0xfa55fa[_0x385e06]['item'][_0x6e87('0x109')]=_0x385e06,_0xfa55fa[_0x385e06][_0x6e87('0x13')][_0x6e87('0x36')]=_0x385e06,_0xfa55fa[_0x385e06][_0x6e87('0xfa')]=null;}_0xfa55fa[_0x385e06][_0x6e87('0xa0')]||(_0xfa55fa[_0x385e06][_0x6e87('0xa0')]=[],_0xfa55fa[_0x385e06]['markersEnd']=[]);}}[_0x6e87('0x98')](_0x509eb6,_0x32ec3e){const _0x15fe51=_0x509eb6[_0x6e87('0x49')](_0x5b2212=>!_0x5b2212[_0x6e87('0x40')]);for(let _0x294fb5=0x0;_0x294fb5<_0x32ec3e[_0x6e87('0xd8')];_0x294fb5++)_0x32ec3e[_0x294fb5]['isAdded']&&(_0x15fe51[_0x294fb5][_0x6e87('0x40')]=_0x32ec3e[_0x294fb5][_0x6e87('0x40')]);}['_makeModelFromViewString'](_0x2dd951){const _0x54822d=JSON['parse'](_0x2dd951),_0x2ea71a=this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')],_0x2b5c01=new _0x54d8d5(_0x2ea71a,_0x54822d['map'](_0x9d73fd=>this[_0x6e87('0x126')](_0x9d73fd)));return this[_0x6e87('0x12')][_0x6e87('0x118')]['toModel'](_0x2b5c01);}[_0x6e87('0x126')](_0x47eeba){const _0x3bf722=this[_0x6e87('0x12')][_0x6e87('0x73')]['view'][_0x6e87('0xd6')];if('string'==typeof _0x47eeba)return new _0x54b964(_0x3bf722,_0x47eeba);{const _0x3c4bd9=_0x47eeba[_0x6e87('0x54')][_0x6e87('0xe')](_0x4d8c7e=>this[_0x6e87('0x126')](_0x4d8c7e));return new(tt[_0x47eeba[(_0x6e87('0x67'))]]||_0x54b152)(_0x3bf722,_0x47eeba[_0x6e87('0x4d')],_0x47eeba[_0x6e87('0x2f')],_0x3c4bd9);}}[_0x6e87('0x21')](_0x59019b,_0x348d29=null){const _0x1e7569=this[_0x6e87('0xdb')][_0x6e87('0xea')](_0x59019b),_0x31c5ca=_0x348d29?this['repository'][_0x6e87('0xea')](_0x348d29):null,_0x17900d=this[_0x6e87('0x75')](_0x1e7569,_0x31c5ca),_0x598298=_0x17900d[_0x17900d[_0x6e87('0xd8')]-0x1],_0x4f2906=new Map(),_0x524728={'model':{},'attributes':{},'changes':[]},_0x125c3c=new Set(),_0x56f345=new Map();for(let _0x12a843=_0x17900d[_0x6e87('0xd8')]-0x1;_0x12a843>=0x0;_0x12a843--){const _0x339c6e=_0x17900d[_0x12a843];for(const _0xbf390f of Object[_0x6e87('0xb3')](_0x339c6e[_0x6e87('0x10d')]))if(_0x339c6e['diffData'][_0xbf390f]['attachChange']){const _0x4faeac=_0x339c6e[_0x6e87('0x10d')][_0xbf390f][_0x6e87('0x61')];_0x4faeac[_0x6e87('0x81')]?(_0x125c3c['add'](_0xbf390f),_0x56f345[_0x6e87('0x85')](_0xbf390f)&&_0x56f345['get'](_0xbf390f)[_0x6e87('0x38')]==_0x4faeac['userId']?_0x56f345[_0x6e87('0x1e')](_0xbf390f):_0x56f345['set'](_0xbf390f,_0x4faeac)):_0x56f345[_0x6e87('0x85')](_0xbf390f)?(_0x125c3c[_0x6e87('0x1e')](_0xbf390f),_0x56f345[_0x6e87('0x1e')](_0xbf390f)):(_0x125c3c['add'](_0xbf390f),_0x56f345['set'](_0xbf390f,_0x4faeac));}else _0x125c3c[_0x6e87('0x86')](_0xbf390f);}for(const _0x18c5a6 of _0x125c3c){const _0x10be6f=_0x56f345[_0x6e87('0x85')](_0x18c5a6)&&!_0x56f345[_0x6e87('0x9')](_0x18c5a6)[_0x6e87('0x81')];let _0x35ffee=_0x10be6f?_0x17900d['length']-0x1:0x0;const _0x443a6c=_0x10be6f?-0x1:0x1;for(;_0x17900d[_0x35ffee];){const _0x163d5e=_0x17900d[_0x35ffee];if(_0x163d5e[_0x6e87('0x10d')][_0x18c5a6]){const _0x21d51d=_0x10be6f?_0x163d5e[_0x6e87('0x10d')][_0x18c5a6][_0x6e87('0xf2')]:_0x163d5e[_0x6e87('0x10d')][_0x18c5a6][_0x6e87('0x65')];_0x524728[_0x6e87('0x2f')][_0x18c5a6]=_0x21d51d?_0x3dd39d(_0x21d51d):{};break;}_0x35ffee+=_0x443a6c;}}for(const _0x44b642 of _0x17900d){_0x44b642['model']={};for(const _0x198ce6 of _0x44b642[_0x6e87('0x3d')])_0x4f2906[_0x6e87('0x117')](_0x198ce6['id'],_0x198ce6);for(const _0x183807 of _0x125c3c){const _0x520251=_0x44b642['diffData'][_0x183807]?_0x44b642['diffData'][_0x183807][_0x6e87('0x95')]:'[]',_0x18f50d=_0x44b642[_0x6e87('0x10d')][_0x183807]?_0x44b642['diffData'][_0x183807]['deletions']:'[]';_0x44b642['model'][_0x183807]={'insertions':this[_0x6e87('0x94')](_0x520251),'deletions':this[_0x6e87('0x94')](_0x18f50d)};}}for(const _0x195c64 of _0x125c3c){let _0x198888=null,_0xc292f9=0x0;const _0x590bb5=new Map(Array[_0x6e87('0x72')](_0x1e7569[_0x6e87('0xc0')][_0x195c64]['insertions'][_0x6e87('0xdf')])[_0x6e87('0x49')](([_0x17bb20])=>!_0x17bb20[_0x6e87('0x4e')]('revision:')));let _0x491dcc=0x0;for(const _0x37cd5c of _0x17900d){const _0x51e65a=this[_0x6e87('0xc')](_0x37cd5c['model'][_0x195c64]['insertions']);_0x37cd5c==_0x1e7569?(_0x198888=_0x51e65a,_0xc292f9=_0x198888['length'],_0x198888[_0x6e87('0xf0')](_0x1dc8c4=>{_0x1dc8c4['id']=_0x491dcc++;}),this['_processTape'](_0x198888)):this[_0x6e87('0x98')](_0x198888,_0x51e65a);const _0x3931ef=_0x198888[_0x6e87('0x49')](_0x5b516a=>!_0x5b516a['isAdded'])[_0x6e87('0xe')](_0x39dba5=>_0x39dba5['id']);let _0x5d3af3=0x0;const _0x332f1d=this[_0x6e87('0xc')](_0x37cd5c[_0x6e87('0xc0')][_0x195c64]['deletions']);_0x332f1d['forEach'](_0x3a6b8c=>{_0x3a6b8c[_0x6e87('0x43')]?_0x3a6b8c['id']=_0xc292f9++:_0x3a6b8c['id']=_0x3931ef[_0x5d3af3++];}),this[_0x6e87('0xef')](_0x332f1d),this[_0x6e87('0x127')](_0x198888,_0x6e87('0x40')),this['_setDistance'](_0x332f1d,_0x6e87('0x43')),_0x37cd5c==_0x1e7569&&this[_0x6e87('0x99')](_0x198888,_0x590bb5),_0x198888=this['_joinTapes'](_0x198888,_0x332f1d),this['_refreshStartEndIndex'](_0x198888),this[_0x6e87('0x127')](_0x198888,_0x6e87('0x43'));}_0x198888=_0x198888[_0x6e87('0x49')](_0x582d91=>!(_0x582d91[_0x6e87('0x40')]&&_0x582d91['isRemoved']));const _0x9e5a54=new Map(_0x598298[_0x6e87('0xc0')][_0x195c64][_0x6e87('0x33')][_0x6e87('0xdf')]),_0x13b22f=new Set(_0x590bb5['keys']());for(const _0x1e30e5 of _0x9e5a54[_0x6e87('0xb3')]())_0x13b22f[_0x6e87('0x1e')](_0x1e30e5);this[_0x6e87('0x0')](_0x198888,_0x13b22f),this[_0x6e87('0x11c')](_0x198888),_0x198888=this['_removeMissingPairs'](_0x198888),_0x198888=this[_0x6e87('0x69')](_0x198888),_0x198888=this[_0x6e87('0x14')](_0x198888);const {root:_0x435b8e,changes:_0x35222e}=this[_0x6e87('0xda')](_0x198888,_0x4f2906,_0x195c64);_0x524728[_0x6e87('0xc0')][_0x195c64]=_0x435b8e;const _0x455a7d=_0x56f345['get'](_0x195c64);if(_0x455a7d){const _0x49927d=_0x4f2906[_0x6e87('0x9')](_0x455a7d[_0x6e87('0x38')]),_0x22e6b9=new _0x33a0cb({'author':_0x49927d,'type':_0x455a7d[_0x6e87('0x81')]?_0x6e87('0x86'):_0x6e87('0xa2'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x195c64});_0x35222e[_0x6e87('0x114')](_0x22e6b9),_0x524728[_0x6e87('0x2f')][_0x195c64]['revisionHistoryAttachChange']=_0x22e6b9['id'];}_0x524728[_0x6e87('0x60')]=_0x524728[_0x6e87('0x60')][_0x6e87('0x28')](_0x35222e);}return _0x524728;}[_0x6e87('0x99')](_0x1406d0,_0x4cf251){for(let _0x50bc05=0x0;_0x50bc05<_0x1406d0['length'];_0x50bc05++)for(const [_0x23fe37,_0x146c3f]of _0x4cf251)_0x146c3f[_0x6e87('0x66')][_0x6e87('0xfd')](_0x1406d0[_0x50bc05][_0x6e87('0xac')])&&_0x1406d0[_0x50bc05][_0x6e87('0xa0')][_0x6e87('0x10')](_0x23fe37),_0x146c3f['end'][_0x6e87('0xfd')](_0x1406d0[_0x50bc05][_0x6e87('0x5b')])&&_0x1406d0[_0x50bc05]['markersEnd'][_0x6e87('0x10')](_0x23fe37);}[_0x6e87('0xff')](_0x2170cd,_0x108bb9){let _0x40746f=[],_0x22ed8f=0x0,_0x575cd4=0x0;for(;_0x22ed8f<_0x2170cd[_0x6e87('0xd8')]||_0x575cd4<_0x108bb9[_0x6e87('0xd8')];){const _0x1aa573=_0x2170cd[_0x22ed8f]||{},_0x4b7f68=_0x108bb9[_0x575cd4]||{};if(_0x1aa573['id']==_0x4b7f68['id'])_0x22ed8f++,_0x575cd4++,_0x40746f[_0x6e87('0x10')](_0x1aa573);else{if(_0x4b7f68[_0x6e87('0x43')]&&_0x1aa573[_0x6e87('0x40')]){const {commonTape:_0xac6529,iEnd:_0x404568,jEnd:_0x84ddee}=this[_0x6e87('0xf6')](_0x2170cd,_0x22ed8f,_0x108bb9,_0x575cd4);_0x40746f=_0x40746f[_0x6e87('0x28')](_0xac6529),_0x22ed8f=_0x404568,_0x575cd4=_0x84ddee;}else _0x4b7f68[_0x6e87('0x43')]?(_0x575cd4++,_0x40746f[_0x6e87('0x10')](_0x4b7f68)):(_0x22ed8f++,_0x40746f[_0x6e87('0x10')](_0x1aa573));}}return _0x40746f;}[_0x6e87('0x0')](_0x235d58,_0x3178c2){const _0x378ce0=[];for(let _0x2328c1=0x0;_0x2328c1<_0x235d58[_0x6e87('0xd8')];_0x2328c1++){for(let _0x5aa714=0x0;_0x5aa714<_0x235d58[_0x2328c1]['markersStart'][_0x6e87('0xd8')];_0x5aa714++){const _0x53531a=_0x235d58[_0x2328c1][_0x6e87('0xa0')][_0x5aa714];if(!_0x3178c2['has'](_0x53531a))continue;const {group:_0x2a253f,type:_0x3dd723,authorId:_0x6af767}=_0x3a569c(_0x53531a);'revision-suggestion'!=_0x2a253f||'insertion'!=_0x3dd723&&_0x6e87('0xa8')!=_0x3dd723||(_0x378ce0[_0x6e87('0x114')]({'type':_0x3dd723,'name':_0x53531a,'userId':_0x6af767}),_0x235d58[_0x2328c1][_0x6e87('0xa0')]['splice'](_0x5aa714,0x1),_0x5aa714--);}_0x2e2a50(_0x235d58[_0x2328c1]);for(let _0x576e95=0x0;_0x576e95<_0x235d58[_0x2328c1][_0x6e87('0x76')][_0x6e87('0xd8')];_0x576e95++){const _0x3cd8ff=_0x235d58[_0x2328c1][_0x6e87('0x76')][_0x576e95];if(!_0x3178c2['has'](_0x3cd8ff))continue;const {group:_0x306f7e,type:_0x88622}=_0x3a569c(_0x3cd8ff);if(_0x6e87('0x9f')!=_0x306f7e||_0x6e87('0x5')!=_0x88622&&_0x6e87('0xa8')!=_0x88622)continue;_0x235d58[_0x2328c1][_0x6e87('0x76')][_0x6e87('0x3b')](_0x576e95,0x1),_0x576e95--;const _0x24fe8a=_0x378ce0[_0x6e87('0x74')](_0x23ae73=>_0x23ae73[_0x6e87('0x4d')]==_0x3cd8ff);_0x24fe8a>-0x1&&_0x378ce0[_0x6e87('0x3b')](_0x24fe8a,0x1);}}function _0x3a569c(_0x385feb){const _0xb05dc3=_0x385feb[_0x6e87('0x121')](':');return{'group':_0xb05dc3[0x0],'type':_0xb05dc3[0x1],'subType':_0xb05dc3[_0x6e87('0xd8')]>=0x5?_0xb05dc3[0x2]:null,'id':_0xb05dc3[_0x6e87('0xd8')]<0x5?_0xb05dc3[0x2]:_0xb05dc3[0x3],'authorId':_0xb05dc3['length']<0x5?_0xb05dc3[0x3]:_0xb05dc3[0x4],'markerCount':0x6==_0xb05dc3[_0x6e87('0xd8')]?_0xb05dc3[0x5]:null};}function _0x2e2a50(_0x3c424f){for(let _0x548baa=0x0;_0x548baa<_0x378ce0[_0x6e87('0xd8')];_0x548baa++){if(_0x3c424f[_0x6e87('0x40')]&&'insertion'==_0x378ce0[_0x548baa]['type'])return _0x3c424f['isAddSuggestion']=_0x378ce0[_0x548baa],void delete _0x3c424f[_0x6e87('0x40')];if(!_0x3c424f[_0x6e87('0x40')]&&!_0x3c424f[_0x6e87('0x43')]&&_0x6e87('0xa8')==_0x378ce0[_0x548baa][_0x6e87('0x67')])return void(_0x3c424f[_0x6e87('0xd1')]=_0x378ce0[_0x548baa]);}}}[_0x6e87('0x127')](_0x15ea3d,_0x21e5c3){let _0x4e4dc2=0x0,_0x4c150c=!0x1;const _0x2a86ea=new Map();for(const _0x1da93e of _0x15ea3d)_0x1da93e[_0x21e5c3]?_0x4c150c&&(_0x4e4dc2++,_0x4c150c=!0x1):(_0x4e4dc2++,_0x4c150c=!0x0),_0x2a86ea['set'](_0x1da93e['id'],_0x4e4dc2);for(let _0x40e7f9=0x0;_0x40e7f9<_0x15ea3d[_0x6e87('0xd8')];_0x40e7f9++){if(_0x6e87('0x43')==_0x21e5c3&&_0x15ea3d[_0x40e7f9][_0x6e87('0x40')]||_0x6e87('0x40')==_0x21e5c3&&_0x15ea3d[_0x40e7f9]['isRemoved'])continue;if(_0x6e87('0x53')==_0x15ea3d[_0x40e7f9][_0x6e87('0x67')]){_0x15ea3d[_0x40e7f9][_0x6e87('0x1')]=0x0;continue;}const _0x34b76f=_0x2a86ea[_0x6e87('0x9')](_0x15ea3d[_0x40e7f9][_0x6e87('0xfa')]),_0x2c7189=_0x2a86ea[_0x6e87('0x9')](_0x15ea3d[_0x40e7f9]['id']);_0x15ea3d[_0x40e7f9][_0x6e87('0x1')]=_0x34b76f-_0x2c7189;}}[_0x6e87('0x75')](_0x63f167,_0x5ba776,_0x46ed8f=!0x1){const _0x2a2bbc=[];let _0x593cb7=this[_0x6e87('0xdb')]['getIndex'](_0x63f167),_0x31e3ae=this[_0x6e87('0xdb')][_0x6e87('0xe0')](_0x5ba776);for(-0x1==_0x31e3ae&&(_0x31e3ae=this['repository'][_0x6e87('0x2')]['length'],_0x46ed8f=!0x1);_0x593cb7<_0x31e3ae;)_0x2a2bbc[_0x6e87('0x10')](this[_0x6e87('0xdb')]['getRevision'](_0x593cb7)),_0x593cb7++;return _0x46ed8f&&_0x2a2bbc[_0x6e87('0x10')](this['repository'][_0x6e87('0xea')](_0x593cb7)),_0x2a2bbc;}['_threeWayMerge'](_0x122971,_0x420737,_0x66f87d,_0x27579b){const _0x4ca074=this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0x45')];let _0x4f0758=_0x420737;for(;_0x122971[_0x4f0758]&&_0x122971[_0x4f0758][_0x6e87('0x40')];)_0x4f0758++;let _0x2e0858=_0x27579b;for(;_0x66f87d[_0x2e0858]&&_0x66f87d[_0x2e0858][_0x6e87('0x43')];)_0x2e0858++;_0x338aad(_0x122971,_0x420737,_0x4f0758),_0x338aad(_0x66f87d,_0x27579b,_0x2e0858);const _0x2e885b=_0x66f87d[_0x6e87('0xc8')](_0x27579b,_0x2e0858)[_0x6e87('0x28')](_0x122971['slice'](_0x420737,_0x4f0758));return _0x2e885b[_0x6e87('0x68')]((_0x5e167f,_0x5c470e)=>_0x5e167f['side']!=_0x5c470e[_0x6e87('0xec')]?_0x5e167f[_0x6e87('0xec')]-_0x5c470e['side']:_0x5e167f['level']!=_0x5c470e[_0x6e87('0x122')]?_0x5e167f['level']-_0x5c470e[_0x6e87('0x122')]:_0x5e167f[_0x6e87('0x1')]!=_0x5c470e[_0x6e87('0x1')]?_0x5c470e['distance']-_0x5e167f[_0x6e87('0x1')]:!!_0x5e167f[_0x6e87('0x40')]!=!!_0x5c470e[_0x6e87('0x40')]?-0x1==_0x5e167f[_0x6e87('0xec')]||0x0==_0x5e167f[_0x6e87('0xec')]?_0x5e167f[_0x6e87('0x40')]?-0x1:0x1:_0x5e167f[_0x6e87('0x40')]?0x1:-0x1:_0x5e167f[_0x6e87('0xf4')]-_0x5c470e[_0x6e87('0xf4')]),{'commonTape':_0x2e885b,'iEnd':_0x4f0758,'jEnd':_0x2e0858};function _0x338aad(_0x1efb91,_0x1e22b9,_0x1a6817){let _0x3be4e8=-0x1,_0x5f4d93=Number[_0x6e87('0xe8')],_0x34bd2f=!0x0;for(let _0x323f33=_0x1e22b9;_0x323f33<_0x1a6817;_0x323f33++)if(_0x4ca074[_0x6e87('0x83')](_0x1efb91[_0x323f33][_0x6e87('0x13')])||(_0x34bd2f=!0x1),_0x1efb91[_0x323f33]['item'][_0x6e87('0x109')]<_0x1e22b9&&(_0x3be4e8=_0x323f33),_0x1efb91[_0x323f33][_0x6e87('0x13')][_0x6e87('0x36')]>=_0x1a6817){_0x5f4d93=_0x323f33;break;}_0x34bd2f&&(_0x3be4e8=_0x1a6817-0x1);for(let _0x4831b0=_0x1e22b9;_0x4831b0<_0x1a6817;_0x4831b0++)_0x1efb91[_0x4831b0][_0x6e87('0xec')]=_0x4831b0<=_0x3be4e8?-0x1:_0x4831b0<_0x5f4d93?0x0:0x1,_0x1efb91[_0x4831b0][_0x6e87('0xf4')]=_0x4831b0;let _0x3ef308=0x0;for(let _0x5ae3ed=_0x1e22b9;_0x5ae3ed<=_0x3be4e8;_0x5ae3ed++)0x0==_0x1efb91[_0x5ae3ed]['distance']?_0x1efb91[_0x5ae3ed][_0x6e87('0x122')]=_0x3ef308:(_0x3ef308++,_0x1efb91[_0x5ae3ed][_0x6e87('0x122')]=_0x3ef308,_0x3ef308++);for(let _0x50c781=_0x1e22b9;_0x50c781<_0x1a6817;_0x50c781++)0x0==_0x1efb91[_0x50c781]['side']&&(_0x1efb91[_0x50c781][_0x6e87('0x122')]=_0x3ef308);_0x3ef308=0x0;for(let _0x1528e2=_0x1a6817-0x1;_0x1528e2>=_0x5f4d93;_0x1528e2--)0x0==_0x1efb91[_0x1528e2]['distance']?_0x1efb91[_0x1528e2]['level']=_0x3ef308:(_0x3ef308--,_0x1efb91[_0x1528e2][_0x6e87('0x122')]=_0x3ef308,_0x3ef308--);}}[_0x6e87('0x11c')](_0x43643b){const _0x2aa040=new Map(),_0x5da769=this[_0x6e87('0x12')][_0x6e87('0xc0')]['schema'];for(let _0x23aa28=0x1;_0x23aa28<_0x43643b[_0x6e87('0xd8')];_0x23aa28++){let _0x326b83,_0x4ea99f,_0x9f7f21;const _0x2df0c7=_0x43643b[_0x23aa28],_0x14e2b1=_0x43643b[_0x23aa28-0x1];if(_0x6e87('0x53')==_0x2df0c7['type'])continue;if(_0x2df0c7[_0x6e87('0x67')]!=_0x14e2b1[_0x6e87('0x67')])continue;if(!_0x5da769[_0x6e87('0x26')](_0x14e2b1[_0x6e87('0x13')])||_0x5da769[_0x6e87('0x1d')](_0x14e2b1[_0x6e87('0x13')]))continue;if(!_0x5da769[_0x6e87('0x26')](_0x2df0c7['item'])||_0x5da769[_0x6e87('0x1d')](_0x2df0c7[_0x6e87('0x13')]))continue;if((_0x43643b[_0x23aa28][_0x6e87('0x40')]||_0x43643b[_0x23aa28]['isAddSuggestion'])&&_0x43643b[_0x23aa28-0x1][_0x6e87('0x43')])_0x326b83=_0x43643b[_0x23aa28],_0x4ea99f=_0x43643b[_0x23aa28-0x1],_0x9f7f21=_0x23aa28-0x1;else{if(!_0x43643b[_0x23aa28][_0x6e87('0x43')]||!_0x43643b[_0x23aa28-0x1]['isAdded']&&!_0x43643b[_0x23aa28-0x1][_0x6e87('0x102')])continue;_0x326b83=_0x43643b[_0x23aa28-0x1],_0x4ea99f=_0x43643b[_0x23aa28],_0x9f7f21=_0x23aa28;}const _0x14b153=_0x326b83[_0x6e87('0x122')]==_0x4ea99f[_0x6e87('0x122')],_0x1a9423=Math[_0x6e87('0x18')](_0x326b83[_0x6e87('0x122')])<Math[_0x6e87('0x18')](_0x4ea99f[_0x6e87('0x122')])&&0x0==_0x4ea99f[_0x6e87('0x1')];(_0x14b153||_0x1a9423)&&(_0x2aa040['set'](_0x4ea99f['id'],_0x326b83['id']),_0x43643b[_0x6e87('0x3b')](_0x9f7f21,0x1),_0x23aa28--,_0x326b83[_0x6e87('0x40')]=!0x1);}for(let _0xeae324=0x0;_0xeae324<_0x43643b[_0x6e87('0xd8')];_0xeae324++)_0x2aa040[_0x6e87('0x85')](_0x43643b[_0xeae324][_0x6e87('0xfa')])&&(_0x43643b[_0xeae324][_0x6e87('0xfa')]=_0x2aa040[_0x6e87('0x9')](_0x43643b[_0xeae324][_0x6e87('0xfa')]));}[_0x6e87('0xf3')](_0x4b81f2){const _0x321bb0=new Set(_0x4b81f2['map'](_0x706360=>_0x706360['id']));for(let _0x31e143=0x0;_0x31e143<_0x4b81f2[_0x6e87('0xd8')];_0x31e143++)_0x321bb0[_0x6e87('0x85')](_0x4b81f2[_0x31e143][_0x6e87('0xfa')])||0x0==_0x4b81f2[_0x31e143][_0x6e87('0x1')]||(_0x4b81f2[_0x31e143][_0x6e87('0x92')]=!0x0);return _0x4b81f2[_0x6e87('0x49')](_0x5a81e6=>!_0x5a81e6[_0x6e87('0x92')]);}[_0x6e87('0x69')](_0x703ae3){const _0x1c1dab=new Set();for(let _0xac7c5b=0x0;_0xac7c5b<_0x703ae3[_0x6e87('0xd8')];_0xac7c5b++){if(_0x1c1dab[_0x6e87('0x85')](_0x703ae3[_0xac7c5b]['id'])&&_0x703ae3[_0xac7c5b][_0x6e87('0x43')]&&(_0x703ae3[_0xac7c5b][_0x6e87('0x92')]=!0x0),_0x703ae3[_0xac7c5b][_0x6e87('0x92')])continue;if(0x0==_0x703ae3[_0xac7c5b][_0x6e87('0x1')])continue;if(_0x6e87('0x11')!=_0x703ae3[_0xac7c5b][_0x6e87('0x67')])continue;if(null==_0x703ae3[_0xac7c5b][_0x6e87('0xfa')])continue;let _0x25010a=_0xac7c5b+0x1,_0x684487=0x0;for(;_0x703ae3[_0x25010a]['id']!=_0x703ae3[_0xac7c5b][_0x6e87('0xfa')];)_0x6e87('0x11')==_0x703ae3[_0x25010a]['type']?_0x684487++:_0x6e87('0x5a')==_0x703ae3[_0x25010a][_0x6e87('0x67')]&&_0x684487--,_0x25010a++;if(0x0!=_0x684487){if(_0x703ae3[_0xac7c5b][_0x6e87('0x43')])_0x703ae3[_0xac7c5b][_0x6e87('0x92')]=!0x0;else for(;_0x25010a!=_0xac7c5b;)_0x703ae3[_0x25010a][_0x6e87('0x43')]&&0x0!=_0x703ae3[_0x25010a][_0x6e87('0x1')]&&(_0x703ae3[_0x25010a][_0x6e87('0x92')]=!0x0,_0x1c1dab[_0x6e87('0x86')](_0x703ae3[_0x25010a][_0x6e87('0xfa')])),_0x25010a--;}}return _0x703ae3[_0x6e87('0x49')](_0x277348=>!_0x277348[_0x6e87('0x92')]);}[_0x6e87('0x14')](_0x332714){const _0x4d4c1e=this[_0x6e87('0x12')]['model']['schema'];for(let _0x2ca963=0x0;_0x2ca963<_0x332714[_0x6e87('0xd8')];_0x2ca963++){if(!(_0x332714[_0x2ca963][_0x6e87('0x40')]||_0x332714[_0x2ca963][_0x6e87('0x102')]||_0x332714[_0x2ca963][_0x6e87('0x43')]||_0x332714[_0x2ca963][_0x6e87('0xd1')]))continue;if(0x0==_0x332714[_0x2ca963][_0x6e87('0x1')])continue;const _0x4d16f6=_0x332714[_0x2ca963]['item'];_0x4d4c1e[_0x6e87('0x26')](_0x4d16f6)||_0x4d4c1e[_0x6e87('0x1d')](_0x4d16f6)||(_0x332714[_0x2ca963]['isAdded']&&delete _0x332714[_0x2ca963]['isAdded'],_0x332714[_0x2ca963][_0x6e87('0x102')]&&delete _0x332714[_0x2ca963][_0x6e87('0x102')],_0x332714[_0x2ca963][_0x6e87('0xd1')]&&delete _0x332714[_0x2ca963][_0x6e87('0xd1')],_0x332714[_0x2ca963][_0x6e87('0x43')]&&(_0x332714[_0x2ca963][_0x6e87('0x92')]=!0x0));}return _0x332714[_0x6e87('0x49')](_0x1f24c2=>!_0x1f24c2[_0x6e87('0x92')]);}[_0x6e87('0xda')](_0x126764,_0x506f52,_0x57951c){const _0x372890=new _0x45704b(),_0x1a4cb9=[],_0x1157a0=new Map(),_0x4ae0ba=this['editor']['model'],_0x48e0c6=_0x4ae0ba[_0x6e87('0x45')],_0x1a5d14=[_0x372890],_0x18f572={},_0x1caea9={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x332e90=null;const _0x3c2402=[0x0];for(let _0x4ee548=0x0;_0x4ee548<_0x126764[_0x6e87('0xd8')];_0x4ee548++){let _0x3c6fbc,_0x391257;if(_0x6e87('0x11')===_0x126764[_0x4ee548][_0x6e87('0x67')]){_0x3c6fbc=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402);const _0x37172d=new _0x125e7a(_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x4d')],_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x6e')]());_0x1a5d14[0x0][_0x6e87('0x50')](_0x37172d),_0x3c2402['push'](0x0),_0x1a5d14[_0x6e87('0x114')](_0x37172d),_0x391257=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402),_0x332e90=null;}else{if(_0x6e87('0x5a')===_0x126764[_0x4ee548][_0x6e87('0x67')])_0x1a5d14['shift'](),_0x3c6fbc=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402),_0x3c2402['pop'](),_0x3c2402[_0x3c2402[_0x6e87('0xd8')]-0x1]++,_0x391257=_0x4ae0ba['createPositionFromPath'](_0x372890,_0x3c2402),_0x332e90=null;else{if(_0x3c6fbc=_0x4ae0ba[_0x6e87('0xf8')](_0x372890,_0x3c2402),_0x332e90&&_0x1de1a4(_0x332e90,_0x126764[_0x4ee548][_0x6e87('0x13')]))_0x332e90[_0x6e87('0x10c')]+=_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x118')];else{const _0x510eb9=new _0x4b90d2(_0x126764[_0x4ee548][_0x6e87('0x13')]['data'],_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0x6e')]());_0x1a5d14[0x0][_0x6e87('0x50')](_0x510eb9),_0x332e90=_0x510eb9;}_0x3c2402[_0x3c2402['length']-0x1]+=_0x126764[_0x4ee548][_0x6e87('0x13')][_0x6e87('0xe5')],_0x391257=_0x4ae0ba['createPositionFromPath'](_0x372890,_0x3c2402);}}for(const _0x455bb9 of _0x126764[_0x4ee548][_0x6e87('0xa0')])_0x1157a0['set'](_0x455bb9,{'start':_0x3c6fbc,'end':null});_0x52299a(_0x6e87('0xd1'),_0x4ee548,_0x3c6fbc,_0x391257),_0x52299a('isAddSuggestion',_0x4ee548,_0x3c6fbc,_0x391257),_0x52299a(_0x6e87('0x43'),_0x4ee548,_0x3c6fbc,_0x391257),_0x52299a('isAdded',_0x4ee548,_0x3c6fbc,_0x391257);for(const _0x5d1809 of _0x126764[_0x4ee548]['markersEnd']){_0x1157a0['get'](_0x5d1809)['end']=_0x391257;}}for(const [_0x22b487,_0x26a501]of _0x1157a0){const _0x4d8178=this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0x7f')](_0x26a501[_0x6e87('0x66')],_0x26a501[_0x6e87('0xa4')]);_0x372890[_0x6e87('0xdf')][_0x6e87('0x117')](_0x22b487,_0x4d8178);}return _0x1a4cb9[_0x6e87('0x68')]((_0x2d702b,_0x40ac52)=>{const _0x4d961a=_0x372890[_0x6e87('0xdf')][_0x6e87('0x9')]('revision:'+_0x2d702b['id']),_0x22721b=_0x372890[_0x6e87('0xdf')][_0x6e87('0x9')]('revision:'+_0x40ac52['id']);return _0x4d961a['start']['isBefore'](_0x22721b['start'])?-0x1:_0x4d961a[_0x6e87('0x66')][_0x6e87('0x56')](_0x22721b[_0x6e87('0x66')])?0x1:_0x4d961a[_0x6e87('0xa4')][_0x6e87('0x47')](_0x22721b[_0x6e87('0xa4')])?-0x1:_0x4d961a[_0x6e87('0xa4')][_0x6e87('0x56')](_0x22721b[_0x6e87('0xa4')])?0x1:'add'===_0x2d702b['type']?-0x1:0x1;}),{'root':_0x372890,'changes':_0x1a4cb9};function _0x52299a(_0x41e741,_0x2cd90f,_0x24938d,_0x209f30){const _0x2c7664=!!_0x126764[_0x2cd90f][_0x41e741],_0x54f013=_0x2c7664?_0x126764[_0x2cd90f][_0x41e741][_0x6e87('0x38')]:null,_0x38e336=_0x2cd90f===_0x126764[_0x6e87('0xd8')]-0x1,_0x549078=_0x1caea9[_0x41e741][0x0],_0x2a1e6b=_0x48e0c6[_0x6e87('0xf')](_0x126764[_0x2cd90f][_0x6e87('0x13')]);!_0x18f572[_0x41e741]&&_0x2c7664?_0x18f572[_0x41e741]={'start':_0x24938d,'tapeItem':_0x126764[_0x2cd90f],'userId':_0x54f013,'type':_0x41e741}:_0x18f572[_0x41e741]&&!_0x2c7664?(_0x18f572[_0x41e741][_0x6e87('0xa4')]=_0x24938d,_0x41aca4(_0x18f572[_0x41e741]),_0x18f572[_0x41e741]=null):_0x18f572[_0x41e741]&&_0x2c7664&&_0x18f572[_0x41e741][_0x6e87('0x38')]!==_0x54f013&&(_0x18f572[_0x41e741][_0x6e87('0xa4')]=_0x24938d,_0x549078&&_0x549078[_0x6e87('0x38')]===_0x18f572[_0x41e741][_0x6e87('0x38')]||_0x41aca4(_0x18f572[_0x41e741]),_0x18f572[_0x41e741]={'start':_0x24938d,'tapeItem':_0x126764[_0x2cd90f],'userId':_0x54f013,'type':_0x41e741}),_0x18f572[_0x41e741]&&_0x2a1e6b&&('elementStart'!==_0x126764[_0x2cd90f][_0x6e87('0x67')]||_0x549078&&_0x549078[_0x6e87('0x38')]===_0x54f013||_0x1caea9[_0x41e741][_0x6e87('0x114')]({'userId':_0x54f013,'object':_0x126764[_0x2cd90f][_0x6e87('0x13')],'change':_0x18f572[_0x41e741]}),'elementEnd'===_0x126764[_0x2cd90f][_0x6e87('0x67')]&&_0x549078&&_0x549078['object']===_0x126764[_0x2cd90f]['item']&&(_0x1caea9[_0x41e741]['shift'](),_0x18f572[_0x41e741]=_0x549078[_0x6e87('0x48')])),_0x18f572[_0x41e741]&&_0x38e336&&(_0x18f572[_0x41e741]['end']=_0x209f30,_0x41aca4(_0x18f572[_0x41e741]),_0x18f572[_0x41e741]=null);}function _0x41aca4({start:_0x3ac1fb,end:_0x50d53d,tapeItem:_0x26b671,userId:_0x133bce,type:_0x1db184}){const _0x690977=_0x26b671[_0x6e87('0x13')],_0x1ecb05=_0x4ae0ba[_0x6e87('0x45')]['isBlock'](_0x690977)&&!_0x4ae0ba[_0x6e87('0x45')][_0x6e87('0x1d')](_0x690977),_0x528f6c=_0x3ac1fb[_0x6e87('0xc2')]==_0x50d53d[_0x6e87('0xd5')]&&_0x50d53d[_0x6e87('0xc6')];if(_0x1ecb05&&_0x528f6c)return;const _0x395b51=_0x4ae0ba[_0x6e87('0x7f')](_0x3ac1fb,_0x50d53d),_0x1d7ab9=_0x506f52[_0x6e87('0x9')](_0x133bce),_0x1fa234=new _0x33a0cb({'author':_0x1d7ab9,'type':_0x6e87('0x40')==_0x1db184||_0x6e87('0x102')==_0x1db184?'add':_0x6e87('0xa2'),'data':{'isSuggestion':_0x6e87('0x102')==_0x1db184||_0x6e87('0xd1')==_0x1db184},'createdAt':new Date(),'rootName':_0x57951c});_0x1a4cb9[_0x6e87('0x10')](_0x1fa234),_0x372890[_0x6e87('0xdf')]['set'](_0x6e87('0x7e')+_0x1fa234['id'],_0x395b51);}function _0x1de1a4(_0x523845,_0x3783d5){const _0x2fd016=_0x523845[_0x6e87('0x6e')](),_0x1aa1ef=_0x3783d5[_0x6e87('0x6e')]();for(const _0x1baa57 of _0x2fd016){if(_0x1baa57[0x1]!==_0x3783d5[_0x6e87('0x6d')](_0x1baa57[0x0]))return!0x1;_0x1aa1ef['next']();}return _0x1aa1ef[_0x6e87('0x2c')]()[_0x6e87('0x100')];}}[_0x6e87('0xe6')](){this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')]('upcast')[_0x6e87('0x27')]({'view':'revision'}),this['editor']['conversion'][_0x6e87('0xf5')](_0x6e87('0x71'))[_0x6e87('0x4')]({'model':_0x6e87('0x25'),'view':_0x5c5ed2=>{const _0x205bb1=_0x5c5ed2[_0x6e87('0xa9')][_0x6e87('0x121')](':')[0x1],_0x204816=this[_0x6e87('0x1c')](_0x205bb1);if(!_0x204816)return null;const _0x5b1261=_0x6e87('0x86')==_0x204816[_0x6e87('0x67')]?_0x6e87('0x5'):_0x6e87('0xa8'),_0x3de62d=['ck-suggestion-marker',_0x6e87('0xc5')+_0x5b1261];return _0x204816[_0x6e87('0x118')][_0x6e87('0x34')]&&_0x3de62d[_0x6e87('0x10')](_0x6e87('0xc5')+_0x5b1261+_0x6e87('0x125')),this[_0x6e87('0x29')]==_0x204816&&_0x3de62d[_0x6e87('0x10')](_0x6e87('0xdc')),{'classes':_0x3de62d,'attributes':{'data-change-id':_0x205bb1}};}}),this['editor'][_0x6e87('0x42')][_0x6e87('0xf5')]('upcast')['add'](_0x1b47bf=>{_0x1b47bf['on'](_0x6e87('0x4b'),(_0xbb43d9,_0x2b65ff,_0x271a92)=>{const _0x3fff42=_0x2b65ff['viewItem']['getChild'](0x0);if(!_0x3fff42||!_0x3fff42['is']('element',_0x6e87('0xae')))return;if(!_0x271a92['consumable'][_0x6e87('0x8b')](_0x3fff42,{'attributes':['vid_start','vid_end']}))return;const _0x9ea7ae=_0x2b65ff[_0x6e87('0x22')]['start'][_0x6e87('0xc2')];_0x271a92[_0x6e87('0xb')][_0x6e87('0x123')](_0x6e87('0x3c'),_0x3fff42[_0x6e87('0x6d')](_0x6e87('0x3c')),_0x9ea7ae),_0x271a92['writer'][_0x6e87('0x123')](_0x6e87('0x3a'),_0x3fff42[_0x6e87('0x6d')](_0x6e87('0x3a')),_0x9ea7ae);},{'priority':'low'});}),this['editor'][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x10e'))[_0x6e87('0x86')](_0x198eb4=>{_0x198eb4['on'](_0x6e87('0x113'),(_0x37087b,_0x543070,_0x17c149)=>{if(!_0x17c149[_0x6e87('0x3f')]['consume'](_0x543070['viewItem'],{'attributes':[_0x6e87('0x3c'),_0x6e87('0x3a')]}))return;if(_0x543070[_0x6e87('0x22')]['isCollapsed'])return;const _0x43cb5b=_0x543070[_0x6e87('0x22')][_0x6e87('0x66')]['nodeAfter'];_0x43cb5b[_0x6e87('0xb7')]('vid_start')||_0x43cb5b['hasAttribute'](_0x6e87('0x8'))||(_0x17c149[_0x6e87('0xb')][_0x6e87('0x123')](_0x6e87('0x3c'),_0x543070[_0x6e87('0x4a')][_0x6e87('0x6d')](_0x6e87('0x3c')),_0x43cb5b),_0x17c149[_0x6e87('0xb')][_0x6e87('0x123')](_0x6e87('0x3a'),_0x543070['viewItem'][_0x6e87('0x6d')](_0x6e87('0x3a')),_0x43cb5b));},{'priority':_0x6e87('0xba')});}),this[_0x6e87('0x12')][_0x6e87('0x42')]['for'](_0x6e87('0x10e'))[_0x6e87('0x2a')]({'view':{'name':_0x6e87('0x8f'),'attributes':{'vid':!0x0}},'model':{'key':_0x6e87('0x8'),'value':_0x2f3930=>_0x2f3930[_0x6e87('0x6d')](_0x6e87('0x8'))}}),this[_0x6e87('0x12')][_0x6e87('0xc0')]['schema']['on']('checkAttribute',(_0x502c66,[,_0x3d9e1f])=>{[_0x6e87('0x3c'),'vid_end',_0x6e87('0x8')][_0x6e87('0x111')](_0x3d9e1f)&&(_0x502c66['return']=!0x0,_0x502c66['stop']());},{'priority':_0x6e87('0xe7')}),this[_0x6e87('0x12')][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x120'))['add'](_0xf11cb4=>{_0xf11cb4['on'](_0x6e87('0xa1'),(_0x577ef4,_0xa0a432,_0x1f8357)=>{if('\x20'!=_0xa0a432[_0x6e87('0x13')]['data']||_0xa0a432['item'][_0x6e87('0xd5')][_0x6e87('0xc7')]>0x1)return;if(!_0x1f8357['consumable']['consume'](_0xa0a432[_0x6e87('0x13')],_0x577ef4[_0x6e87('0x4d')]))return;const _0x3e70d2=_0x1f8357[_0x6e87('0xb')],_0x53c7bb=_0x1f8357[_0x6e87('0x44')][_0x6e87('0x82')](_0xa0a432[_0x6e87('0x97')]);_0x3e70d2[_0x6e87('0xd7')](_0x53c7bb,_0x3e70d2[_0x6e87('0x7c')](_0x6e87('0x8f')));});}),this['editor'][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x120'))['markerToData']({'model':_0x6e87('0x25')}),this[_0x6e87('0x12')]['editing'][_0x6e87('0xde')]['on'](_0x6e87('0xc3'),function(_0x444547){const _0x2d6991=_0x444547[_0x6e87('0x55')][_0x6e87('0x9')](_0x6e87('0x8a'));return(_0x1ae974,_0xaf81ba,_0x27ca88)=>{const _0x420e93=_0xaf81ba[_0x6e87('0xa9')][_0x6e87('0x121')](':')[0x1],_0x3b150c=_0x2d6991[_0x6e87('0x1c')](_0x420e93);if(!_0x3b150c)return null;const _0x1100e2=_0x6e87('0x86')==_0x3b150c[_0x6e87('0x67')]?_0x6e87('0x121'):_0x6e87('0xe1');if(!_0x27ca88['consumable']['test'](_0xaf81ba[_0x6e87('0x6c')],_0x1ae974['name']))return;const _0x52d2f9=_0xaf81ba[_0x6e87('0x6c')]['getWalker'](),_0x2c2ce7=_0xaf81ba[_0x6e87('0x6c')][_0x6e87('0x66')],_0x29b361=_0x444547['model'][_0x6e87('0x45')];let _0x38f0ef=null,_0x5ed25e=null,_0x58348d=!0x1,_0x111f62=!0x1;for(const _0xd61ef7 of _0x52d2f9){const _0x26a533=_0xd61ef7[_0x6e87('0x13')];_0x58348d=_0x58348d||_0x29b361[_0x6e87('0x7a')](_0x26a533);const _0x4c04ee=_0x27ca88[_0x6e87('0x44')]['toViewElement'](_0x26a533);if(_0x4c04ee&&_0x4c04ee[_0x6e87('0xe4')]('addHighlight'))return;_0x6e87('0x5a')==_0xd61ef7[_0x6e87('0x67')]&&(_0x29b361[_0x6e87('0x26')](_0x26a533)&&!_0x29b361[_0x6e87('0x1d')](_0x26a533)&&(_0x26a533[_0x6e87('0x106')]||_0x2c2ce7['isAtEnd']?_0x38f0ef&&_0x38f0ef['parent']==_0x26a533||(_0x38f0ef=_0x26a533,_0x501128(_0xd61ef7[_0x6e87('0xac')]),_0x111f62=!0x0):_0x5ed25e=_0x5ed25e||_0xd61ef7[_0x6e87('0xac')]));}function _0x501128(_0x48e783){const _0x20f12c=_0x27ca88[_0x6e87('0xb')][_0x6e87('0xaa')](_0x6e87('0x8f'),{'class':_0x6e87('0xc5')+_0x1100e2}),_0x53169a=_0x27ca88['mapper'][_0x6e87('0x1a')](_0x48e783);_0x3b150c[_0x6e87('0x118')][_0x6e87('0x34')]&&_0x27ca88[_0x6e87('0xb')][_0x6e87('0x52')](_0x6e87('0xc5')+_0x1100e2+_0x6e87('0x125'),_0x20f12c),_0x2d6991[_0x6e87('0x29')]==_0x3b150c&&_0x27ca88[_0x6e87('0xb')][_0x6e87('0x52')]('ck-suggestion-marker--active',_0x20f12c),_0x27ca88[_0x6e87('0xb')]['insert'](_0x53169a,_0x20f12c),_0x27ca88[_0x6e87('0x44')][_0x6e87('0x23')](_0x20f12c,_0xaf81ba[_0x6e87('0xa9')]);}_0x58348d||_0x111f62||!_0x5ed25e||_0x501128(_0x5ed25e);};}(this[_0x6e87('0x12')]),{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xde')]['on'](_0x6e87('0x88'),(_0x1b5451,_0x1af64b,_0x28b102)=>{const _0x1a0726=_0x28b102['mapper'][_0x6e87('0x77')](_0x1af64b['markerName']);if(_0x1a0726)for(const _0x297591 of _0x1a0726)(_0x297591[_0x6e87('0xb2')](_0x6e87('0x35'))||_0x297591[_0x6e87('0xb2')](_0x6e87('0xa3')))&&(_0x28b102[_0x6e87('0x44')][_0x6e87('0xb9')](_0x297591,_0x1af64b[_0x6e87('0xa9')]),_0x28b102[_0x6e87('0xb')][_0x6e87('0xa2')](_0x297591));},{'priority':_0x6e87('0x124')}),this['editor'][_0x6e87('0x73')]['downcastDispatcher']['on']('addMarker:revision',(_0xd4e65a,_0x48e3b6,_0x454b48)=>{const _0x37377d=_0x48e3b6['markerName']['split'](':')[0x1],_0x2c44ac=this[_0x6e87('0x1c')](_0x37377d);if(!_0x2c44ac)return null;const _0x5de21e=_0x6e87('0x86')==_0x2c44ac['type']?'split':'merge';if(_0x454b48[_0x6e87('0x3f')][_0x6e87('0x103')](_0x48e3b6['markerRange'],_0xd4e65a[_0x6e87('0x4d')]))for(const _0x1e13f1 of _0x48e3b6['markerRange'][_0x6e87('0xa5')]()){if(!_0x1e13f1['is']('element',_0x6e87('0x80')))continue;const _0x4bca37=_0x454b48[_0x6e87('0xb')]['createUIElement'](_0x6e87('0x8f'),{'class':'ck-suggestion-marker-'+_0x5de21e}),_0x2ca8bb=_0x454b48['mapper']['toViewPosition'](this[_0x6e87('0x12')]['model'][_0x6e87('0xaf')](_0x1e13f1));_0x2c44ac[_0x6e87('0x118')][_0x6e87('0x34')]&&_0x454b48[_0x6e87('0xb')]['addClass'](_0x6e87('0xc5')+_0x5de21e+_0x6e87('0x125'),_0x4bca37),this[_0x6e87('0x29')]==_0x2c44ac&&_0x454b48['writer'][_0x6e87('0x52')](_0x6e87('0xdc'),_0x4bca37),_0x454b48[_0x6e87('0xb')][_0x6e87('0x107')](_0x2ca8bb,_0x4bca37),_0x454b48[_0x6e87('0x44')][_0x6e87('0x23')](_0x4bca37,_0x48e3b6[_0x6e87('0xa9')]);}},{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')]['on'](_0x6e87('0x48'),()=>{this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0x48')](_0x288084=>{for(const _0x3993cb of this[_0x6e87('0x12')][_0x6e87('0xc0')]['document'][_0x6e87('0x4c')]()){const _0x235f3a=this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')][_0x6e87('0x17')](_0x3993cb),_0x5711cf=this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')]['getRoot'](_0x3993cb);if(_0x5711cf){const _0x832583=_0x235f3a[_0x6e87('0x6d')](_0x6e87('0x2b'));if(_0x288084[_0x6e87('0xeb')](_0x6e87('0x15'),_0x5711cf),_0x288084['removeClass'](_0x6e87('0x4f'),_0x5711cf),_0x288084[_0x6e87('0x19')](_0x6e87('0x57'),_0x5711cf),_0x288084[_0x6e87('0x19')](_0x6e87('0x59'),_0x5711cf),_0x832583){const _0x4c198e=this['_getChangeFromId'](_0x832583);if(!_0x4c198e)return null;_0x288084[_0x6e87('0x123')](_0x6e87('0x15'),_0x832583,_0x5711cf),_0x288084[_0x6e87('0x52')]('ck-revision-history-root-'+_0x4c198e[_0x6e87('0x67')],_0x5711cf),this[_0x6e87('0x29')]==_0x4c198e&&_0x288084['addClass']('ck-revision-history-root--active',_0x5711cf);}}}});}),this[_0x6e87('0x12')][_0x6e87('0x42')][_0x6e87('0xf5')](_0x6e87('0x10e'))[_0x6e87('0x27')]({'view':_0x6e87('0xf7'),'model':_0x348b91=>'revision-comment:'+_0x348b91,'converterPriority':_0x6e87('0xe7')}),this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')](_0x6e87('0x10e'))[_0x6e87('0x27')]({'view':_0x6e87('0x7'),'model':_0x2af8de=>_0x6e87('0xca')+_0x2af8de,'converterPriority':_0x6e87('0xe7')}),this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')]('dataDowncast')[_0x6e87('0x1b')]({'model':'revision-suggestion','view':_0x55659c=>({'name':_0x6e87('0x87')+_0x55659c,'group':_0x6e87('0x9f')}),'converterPriority':_0x6e87('0xe7')}),this[_0x6e87('0x12')]['conversion'][_0x6e87('0xf5')](_0x6e87('0x71'))[_0x6e87('0x4')]({'model':'revision-suggestion','view':_0x96e3d0=>{const _0x4b2a98=_0x96e3d0[_0x6e87('0xa9')][_0x6e87('0x121')](':')[0x1];return _0x6e87('0x5')!=_0x4b2a98&&_0x6e87('0xa8')!=_0x4b2a98?null:{'classes':[_0x6e87('0x39'),'ck-suggestion-preview-marker-'+_0x4b2a98]};}}),this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xde')]['on'](_0x6e87('0x7b'),et(this['editor'],'merge'),{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0x73')]['downcastDispatcher']['on'](_0x6e87('0xc9'),et(this[_0x6e87('0x12')],_0x6e87('0x121')),{'priority':_0x6e87('0x124')}),this[_0x6e87('0x12')][_0x6e87('0x73')]['downcastDispatcher']['on'](_0x6e87('0x116'),(_0x13acef,_0x4f9945,_0x5bf3ac)=>{const _0x4e6129=_0x5bf3ac['mapper']['markerNameToElements'](_0x4f9945['markerName']);if(_0x4e6129)for(const _0x53e905 of _0x4e6129)_0x53e905['is']('uiElement')&&(_0x5bf3ac[_0x6e87('0x44')][_0x6e87('0xb9')](_0x53e905,_0x4f9945[_0x6e87('0xa9')]),_0x5bf3ac[_0x6e87('0xb')][_0x6e87('0xa2')](_0x53e905));},{'priority':'high'});}[_0x6e87('0x1c')](_0x4a26f9){return this[_0x6e87('0xd4')][_0x6e87('0x9')](_0x4a26f9);}['_getViewForChange'](_0x19b8ec){return this[_0x6e87('0xee')]&&this[_0x6e87('0xee')][_0x6e87('0xe9')](),this[_0x6e87('0xee')]=new _0x3a70a1(this[_0x6e87('0x12')][_0x6e87('0x7d')],_0x19b8ec),this[_0x6e87('0xee')];}[_0x6e87('0x6b')](){this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xd6')][_0x6e87('0xb8')]['observeMarkers'](_0x6e87('0x25')),this['on'](_0x6e87('0xd3'),(_0x22e7ec,_0x5b66dd,_0x271da1,_0xa7ff42)=>{_0xa7ff42&&this[_0x6e87('0xfc')][_0x6e87('0xa2')](_0xa7ff42),_0x271da1&&(this[_0x6e87('0xfc')][_0x6e87('0x86')]({'view':_0x271da1,'stackId':_0x6e87('0x93'),'position':{'target':()=>{const _0x3c5070=this['editor'][_0x6e87('0x73')],_0x4a2039=this[_0x6e87('0x1c')](_0x271da1['changeId']);let _0x3d340e;if(_0x4a2039[_0x6e87('0x118')][_0x6e87('0x84')]){const _0x2b1578=_0x3c5070['view'][_0x6e87('0xb0')](_0x4a2039[_0x6e87('0x11f')]);_0x3d340e=Array[_0x6e87('0x72')](_0x2b1578[_0x6e87('0xfe')]());}else{const _0x1754e2=this['editor'][_0x6e87('0xc0')]['markers']['get'](_0x6e87('0x7e')+_0x271da1[_0x6e87('0x9e')]);_0x3d340e=Array[_0x6e87('0x72')](_0x3c5070['mapper'][_0x6e87('0x77')](_0x1754e2['name']))[_0x6e87('0xe')](_0x5bc352=>_0x3c5070['view'][_0x6e87('0x1f')]['mapViewToDom'](_0x5bc352))[_0x6e87('0xe')](_0x1e5e2e=>Array['from'](_0x1e5e2e['getClientRects']()))[_0x6e87('0x90')]();}if(!this[_0x6e87('0xed')])return _0x3d340e[0x0];return _0x3d340e[_0x6e87('0xc4')](_0x1fea58=>_0x1fea58[_0x6e87('0xa6')]-0x3<=this['_activeViewTarget']['y']&&_0x1fea58[_0x6e87('0xb1')]+0x3>=this[_0x6e87('0xed')]['y']&&_0x1fea58[_0x6e87('0x78')]-0x3<=this[_0x6e87('0xed')]['x']&&_0x1fea58[_0x6e87('0x91')]+0x3>=this[_0x6e87('0xed')]['x'])||_0x3d340e[0x0];}}}),this[_0x6e87('0xfc')]['showStack'](_0x6e87('0x93')));}),this['on'](_0x6e87('0x5e'),(_0x45bb8b,_0x1d3210,_0x518253,_0x13dedd)=>{this['activeView']=_0x518253?this[_0x6e87('0x105')](_0x518253):null,this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0x48')](()=>{const _0x29f9ec=this[_0x6e87('0x12')][_0x6e87('0x73')];_0x13dedd&&(_0x13dedd['data'][_0x6e87('0x84')]?_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0x48')](_0x18dc4a=>{_0x18dc4a['removeClass'](_0x6e87('0x59'),_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0xd6')][_0x6e87('0x17')](_0x13dedd['rootName']));}):_0x29f9ec[_0x6e87('0x10a')](_0x6e87('0x7e')+_0x13dedd['id'])),_0x518253&&(_0x518253[_0x6e87('0x118')]['isOnRoot']?_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0x48')](_0xe95c10=>{_0xe95c10[_0x6e87('0x52')](_0x6e87('0x59'),_0x29f9ec[_0x6e87('0xd0')][_0x6e87('0xd6')][_0x6e87('0x17')](_0x518253['rootName']));}):_0x29f9ec[_0x6e87('0x10a')]('revision:'+_0x518253['id']));});}),this[_0x6e87('0xf1')](this[_0x6e87('0x12')][_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xd6')],_0x6e87('0x2e'),(_0x3245ae,_0x53bbd0)=>{if(this['activeChange'])return;const _0x4b8de2=this[_0x6e87('0x10b')](_0x53bbd0['target']),_0x5bd708=this[_0x6e87('0xd4')][_0x6e87('0x9')](_0x4b8de2);_0x5bd708?(this[_0x6e87('0xed')]={'x':_0x53bbd0[_0x6e87('0x119')]['x'],'y':_0x53bbd0[_0x6e87('0x119')]['y']},this[_0x6e87('0x11b')]=this[_0x6e87('0x105')](_0x5bd708)):(this[_0x6e87('0xed')]=null,this[_0x6e87('0x11b')]=null);}),this['listenTo'](this[_0x6e87('0x12')][_0x6e87('0x73')]['view'][_0x6e87('0xd6')],'mousedown',(_0x27b40a,_0x55dd06)=>{const _0x3c6bd8=this['_findChangeIdFromDomTarget'](_0x55dd06[_0x6e87('0x64')]),_0xeb6033=this[_0x6e87('0xd4')][_0x6e87('0x9')](_0x3c6bd8);_0xeb6033?(this[_0x6e87('0xed')]={'x':_0x55dd06[_0x6e87('0x119')]['x'],'y':_0x55dd06[_0x6e87('0x119')]['y']},_0xeb6033===this['activeChange']?this[_0x6e87('0xfc')][_0x6e87('0x51')]():this[_0x6e87('0x29')]=_0xeb6033):(this[_0x6e87('0xed')]=null,this[_0x6e87('0x29')]=null);});}[_0x6e87('0x10b')](_0xc4e7d2){do{const _0xfc6e4f=_0xc4e7d2[_0x6e87('0x6d')](_0x6e87('0x15'));if(_0xfc6e4f)return _0xfc6e4f;_0xc4e7d2=_0xc4e7d2['parent'];}while(_0xc4e7d2);return null;}[_0x6e87('0xab')](){this[_0x6e87('0x12')]['model'][_0x6e87('0x48')](_0xdafd6c=>{for(const _0x45d6c7 of this[_0x6e87('0x12')][_0x6e87('0xc0')][_0x6e87('0xdf')])_0xdafd6c[_0x6e87('0xbc')](_0x45d6c7);});}}function et(_0x537b25,_0x572724){return(_0x4a37e6,_0x25bd86,_0x37a3f6)=>{if(!_0x37a3f6['consumable'][_0x6e87('0x103')](_0x25bd86[_0x6e87('0x6c')],_0x4a37e6[_0x6e87('0x4d')]))return;const _0x10b185=_0x25bd86['markerRange'][_0x6e87('0x115')](),_0x56a212=_0x25bd86['markerRange'][_0x6e87('0x66')],_0x1a3096=_0x537b25[_0x6e87('0xc0')][_0x6e87('0x45')];let _0x1936b8=null,_0x183aca=null,_0x59c742=!0x1,_0x3f51b0=!0x1;for(const _0x18a79b of _0x10b185){const _0x3b806e=_0x18a79b[_0x6e87('0x13')];_0x59c742=_0x59c742||_0x1a3096[_0x6e87('0x7a')](_0x3b806e);const _0x4e68ed=_0x37a3f6[_0x6e87('0x44')][_0x6e87('0x31')](_0x3b806e);if(_0x4e68ed&&_0x4e68ed[_0x6e87('0xe4')](_0x6e87('0xdd')))return;_0x6e87('0x5a')==_0x18a79b['type']&&(_0x1a3096['isBlock'](_0x3b806e)&&!_0x1a3096[_0x6e87('0x1d')](_0x3b806e)&&(_0x3b806e[_0x6e87('0x106')]||_0x56a212[_0x6e87('0x70')]?_0x1936b8&&_0x1936b8[_0x6e87('0xd5')]==_0x3b806e||(_0x1936b8=_0x3b806e,_0x490952(_0x18a79b[_0x6e87('0xac')]),_0x3f51b0=!0x0):_0x183aca=_0x183aca||_0x18a79b['previousPosition']));}function _0x490952(_0x441bdf){const _0x1a66e4=_0x37a3f6['mapper'][_0x6e87('0x1a')](_0x441bdf),_0x50f807=_0x37a3f6[_0x6e87('0xb')][_0x6e87('0xaa')]('span',{'class':_0x6e87('0x8c')+_0x572724});_0x37a3f6[_0x6e87('0xb')][_0x6e87('0x107')](_0x1a66e4,_0x50f807),_0x37a3f6[_0x6e87('0x44')][_0x6e87('0x23')](_0x50f807,_0x25bd86[_0x6e87('0xa9')]);}_0x59c742||_0x3f51b0||!_0x183aca||_0x490952(_0x183aca);};}export class RestoreRevisionCommand extends _0x412ba8{constructor(_0x259259){super(_0x259259);const _0x199486=_0x259259[_0x6e87('0x55')][_0x6e87('0x9')](d);this[_0x6e87('0xb5')]=!0x1,this['listenTo'](_0x199486,_0x6e87('0xbb'),()=>this['refresh']()),this[_0x6e87('0xf1')](_0x199486,_0x6e87('0x79'),()=>this[_0x6e87('0xbe')]());}[_0x6e87('0x104')](){const _0x5538e0=this[_0x6e87('0x12')],_0x1c7b99=_0x5538e0[_0x6e87('0x55')][_0x6e87('0x9')](d),_0x17636c=_0x1c7b99[_0x6e87('0x11d')]?_0x1c7b99[_0x6e87('0xa7')][_0x6e87('0xbf')]:null;_0x5538e0[_0x6e87('0x9d')][_0x6e87('0x9')](_0x6e87('0x37'))[_0x6e87('0xd9')](_0x17636c);}['refresh'](){const {isReady:_0x42c9c2,isEnabled:_0x471247}=this['editor']['plugins']['get'](d);this[_0x6e87('0xcb')]=_0x42c9c2&&_0x471247;}}export class ShowChangeCommand extends _0x412ba8{constructor(_0x4ab809,{direction:_0xedd909}){super(_0x4ab809);const _0x45dc77=_0x4ab809[_0x6e87('0x55')][_0x6e87('0x9')](d);this['affectsData']=!0x1,this[_0x6e87('0x58')]=_0x6e87('0x11e')===_0xedd909?0x1:-0x1,this[_0x6e87('0xf1')](_0x45dc77,_0x6e87('0xbb'),()=>this[_0x6e87('0xbe')]()),this['listenTo'](_0x45dc77,_0x6e87('0x79'),()=>this[_0x6e87('0xbe')]()),this[_0x6e87('0xf1')](_0x45dc77,_0x6e87('0x5e'),()=>this['refresh']());}[_0x6e87('0x104')](){const _0x243dc4=this[_0x6e87('0x12')],_0x48a518=_0x243dc4['plugins'][_0x6e87('0x9')](d),{isNavigationMode:_0x525ddb,currentChangeNumber:_0x504224}=_0x48a518;let _0x278161;if(_0x48a518['activeChange']=_0x525ddb?_0x48a518[_0x6e87('0xa7')][_0x6e87('0x60')][_0x6e87('0x9')](_0x504224+this[_0x6e87('0x58')]):_0x48a518['diff'][_0x6e87('0x60')][_0x6e87('0xb4')],_0x48a518['activeChange'][_0x6e87('0x118')][_0x6e87('0x84')])_0x278161=_0x243dc4[_0x6e87('0x73')][_0x6e87('0xd0')][_0x6e87('0xb0')](_0x48a518[_0x6e87('0x29')]['rootName']);else{const _0x425341=_0x243dc4['model'][_0x6e87('0xdf')][_0x6e87('0x9')](_0x6e87('0x7e')+_0x48a518[_0x6e87('0x29')]['id']);_0x278161=_0x5c32cc(_0x243dc4[_0x6e87('0x73')],_0x425341);}_0x287daa({'target':_0x278161,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x562293,currentChangeNumber:_0x15345f,numberOfChanges:_0x34678d,isReady:_0x319cf0,isEnabled:_0x3cda7e}=this[_0x6e87('0x12')][_0x6e87('0x55')][_0x6e87('0x9')](d);this[_0x6e87('0xcb')]=!!(_0x3cda7e&&_0x319cf0&&_0x34678d)&&(!_0x562293||(0x1===this[_0x6e87('0x58')]?_0x15345f<_0x34678d-0x1:_0x15345f>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3656=['button','stopPropagation','name','first','change:isActionsDropdownOpen','isReady','Restore\x20this\x20revision','ck-on','source','bind','isEnabled','Show\x20more\x20items','_action','Name\x20this\x20revision','extendTemplate','locale','threeVerticalDots','model','isVisible','function','panelPosition','Compare\x20against\x20selected','set','map','listenTo','children','listView','isActionsDropdownOpen','class','isOpen','execute','action','add','bindTemplate'];(function(_0x473b42,_0x36563b){const _0x27f2d7=function(_0x34588d){while(--_0x34588d){_0x473b42['push'](_0x473b42['shift']());}};_0x27f2d7(++_0x36563b);}(_0x3656,0x18f));const _0x27f2=function(_0x473b42,_0x36563b){_0x473b42=_0x473b42-0x0;let _0x27f2d7=_0x3656[_0x473b42];return _0x27f2d7;};import{Collection as _0x3a7ee1}from'ckeditor5/src/utils';import{icons as _0x26d781}from'ckeditor5/src/core';import{Model as _0xb29c1f,addListToDropdown as _0x17bef9,createDropdown as _0x50d7dc}from'ckeditor5/src/ui';import{getTranslation as _0x16fc4a}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x16b4dc,_0x402aee){const _0x3b1423=_0x16b4dc[_0x27f2('0x8')],_0x10a010=_0x16b4dc[_0x27f2('0x18')],_0x411583=_0x50d7dc(_0x10a010);_0x411583[_0x27f2('0x1d')]='sw';const _0x50eacd=function(_0x20111c,_0x583aed){const _0x2073e7=function(_0x3198d5,_0x4cb89f){const _0x3a8b26=_0x3198d5[_0x27f2('0x18')],_0x180411={'Compare\x20against\x20selected':_0x16fc4a(_0x3a8b26,_0x27f2('0x1e')),'Name\x20this\x20revision':_0x16fc4a(_0x3a8b26,_0x27f2('0x16')),'Restore\x20this\x20revision':_0x16fc4a(_0x3a8b26,_0x27f2('0xf'))};return _0x4cb89f[_0x27f2('0x20')](_0x176f9d=>{const _0x25438d=_0x180411[_0x176f9d[_0x27f2('0xb')]];return _0x25438d&&_0x25438d!==_0x176f9d['name']&&(_0x176f9d['name']=_0x25438d),_0x176f9d;});}(_0x20111c,_0x583aed),_0x3c3e61=new _0x3a7ee1();for(const _0x29aa1c of _0x2073e7){const _0x4b78d0={'type':_0x27f2('0x9'),'model':new _0xb29c1f({'label':_0x29aa1c['name'],'class':_0x29aa1c[_0x27f2('0x3')],'withText':!0x0,'_action':_0x29aa1c[_0x27f2('0x6')]})};_0x4b78d0[_0x27f2('0x1a')][_0x27f2('0x12')](_0x27f2('0x13'))['to'](_0x20111c,'isActionsDropdownOpen',_0x4e6371=>_0x27f2('0x1c')!=typeof _0x29aa1c['isEnabled']||(!_0x4e6371||_0x29aa1c[_0x27f2('0x13')](_0x20111c))),_0x3c3e61[_0x27f2('0x7')](_0x4b78d0);}return _0x3c3e61;}(_0x16b4dc,_0x402aee);return _0x16b4dc['bind'](_0x27f2('0x2'))['to'](_0x411583,_0x27f2('0x4')),_0x411583['buttonView'][_0x27f2('0x1f')]({'label':_0x16fc4a(_0x10a010,_0x27f2('0x14')),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x26d781[_0x27f2('0x19')]}),_0x411583[_0x27f2('0x17')]({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3b1423['if'](_0x27f2('0x2'),_0x27f2('0x10'))]},'on':{'click':_0x3b1423['to'](_0x4ab147=>_0x4ab147[_0x27f2('0xa')]())}}),_0x411583['on'](_0x27f2('0x5'),_0x111c4d=>{_0x16b4dc[_0x27f2('0xe')]&&_0x27f2('0x1c')==typeof _0x111c4d['source'][_0x27f2('0x15')]&&_0x111c4d[_0x27f2('0x11')][_0x27f2('0x15')](_0x16b4dc);}),_0x17bef9(_0x411583,_0x50eacd),_0x411583[_0x27f2('0x21')](_0x16b4dc,_0x27f2('0xd'),(_0x1d2653,_0xf9213f,_0x54f0c5)=>{if(_0x54f0c5)for(const _0x481a2a of _0x411583[_0x27f2('0x1')]['items']){const _0x245f2e=_0x481a2a[_0x27f2('0x0')][_0x27f2('0xc')],_0x2b218c=_0x402aee['find'](_0x5d5bc3=>_0x5d5bc3[_0x27f2('0x6')]===_0x245f2e[_0x27f2('0x15')])[_0x27f2('0x1b')];_0x481a2a[_0x27f2('0x1b')]=void 0x0===_0x2b218c||_0x2b218c(_0x16b4dc);}}),_0x411583;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4c3b=['Revision\x20creator','0\x200\x2011\x2010','set','span','ck-revision-history-sidebar__revision-author__name','setTemplate','ck-revision-history-sidebar__revision-author','ck-revision-history-sidebar__revision-author_creator','push','Revision\x20author'];(function(_0x3ab117,_0x4c3bca){const _0x4155a1=function(_0x4125e6){while(--_0x4125e6){_0x3ab117['push'](_0x3ab117['shift']());}};_0x4155a1(++_0x4c3bca);}(_0x4c3b,0x15a));const _0x4155=function(_0x3ab117,_0x4c3bca){_0x3ab117=_0x3ab117-0x0;let _0x4155a1=_0x4c3b[_0x3ab117];return _0x4155a1;};import{View as _0x412fde,IconView as _0x5d0247}from'ckeditor5/src/ui';import{getTranslation as _0x17b60d}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x5baf87 from'../../../theme/icons/user.svg';export default class ti extends _0x412fde{constructor(_0xf67ca0,_0x506e41,_0x173bb1){super(_0xf67ca0);const _0x4f865c=new _0x5d0247();_0x4f865c[_0x4155('0x6')]({'content':_0x5baf87,'viewBox':_0x4155('0x5')});const _0x404439=['ck',_0x4155('0x0')];_0x173bb1&&_0x404439[_0x4155('0x2')](_0x4155('0x1'));const _0x51b9b2=[{'tag':_0x4155('0x7'),'attributes':{'class':['ck',_0x4155('0x8')],'title':_0x17b60d(_0xf67ca0,_0x173bb1?_0x4155('0x4'):_0x4155('0x3'))},'children':[_0x4f865c,_0x506e41['name']]}];this[_0x4155('0x9')]({'tag':'li','attributes':{'class':_0x404439},'children':_0x51b9b2});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3e1e=['span','ck-revision-history-sidebar__revision-name','Revision\x20name','extendTemplate'];(function(_0x3672d3,_0x3e1ee1){var _0x5d89ba=function(_0x49954b){while(--_0x49954b){_0x3672d3['push'](_0x3672d3['shift']());}};_0x5d89ba(++_0x3e1ee1);}(_0x3e1e,0x148));var _0x5d89=function(_0x3672d3,_0x3e1ee1){_0x3672d3=_0x3672d3-0x0;var _0x5d89ba=_0x3e1e[_0x3672d3];return _0x5d89ba;};import{LabeledFieldView as _0x1232f5}from'ckeditor5/src/ui';import{getTranslation as _0x80ceb4}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x1232f5{constructor(_0x24ee1e,_0x1bc75a){super(_0x24ee1e,_0x1bc75a),this['set']({'label':_0x80ceb4(_0x24ee1e,_0x5d89('0x2'))}),this[_0x5d89('0x3')]({'tag':_0x5d89('0x0'),'attributes':{'class':[_0x5d89('0x1')]}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x26a6=['creator','change','revisionActionsView','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','ck-revision-history-sidebar__revision_selected','ck-revision-history-sidebar__revision-wrapper','srcElement','from','set','isReady','unshift','createdAt','value','filter','_createdAtFormatted','fire','revisionNameView','ck-disabled','fieldView','220','isActionsDropdownOpen','authors','closest','isHighlighted','div','name','ck-revision-history-sidebar__actions_dropdown_open','isConfirm','bind','element','ck-revision-history-sidebar__revision__date','isEnabled','unhighlight','extendTemplate','select','highlight','render','span','isSelected','ck-revision-history-sidebar__revision','map','ck-revision-history-sidebar__revision_highlighted','ck-revision-history-sidebar__revision-authors','ck-reset','bindTemplate','setName','_revision'];(function(_0x527ead,_0x26a653){const _0x2b53b4=function(_0x372d90){while(--_0x372d90){_0x527ead['push'](_0x527ead['shift']());}};_0x2b53b4(++_0x26a653);}(_0x26a6,0x1be));const _0x2b53=function(_0x527ead,_0x26a653){_0x527ead=_0x527ead-0x0;let _0x2b53b4=_0x26a6[_0x527ead];return _0x2b53b4;};import{View as _0x17b1b4,createLabeledInputText as _0x2b6f8b}from'ckeditor5/src/ui';import{ConfirmMixin as _0x255bc3}from'ckeditor5-collaboration/src/collaboration-core';import _0x1abe14 from'./revisionnameview';import _0x471771 from'./revisionauthorview';import{dateToPrettyFormat as _0x21b97a}from'./utils';import{createActionsDropdownView as _0x129020}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x255bc3(_0x17b1b4){constructor(_0x352961,_0x3c893f,_0x21cbe0){super(_0x352961);const _0x5a352d=this[_0x2b53('0x15')],_0x428fa5=function(_0x17bce7,_0x260042){const _0x3e5e64=Array[_0x2b53('0x1f')](_0x260042[_0x2b53('0x2d')])[_0x2b53('0x25')](_0x41e176=>_0x41e176!=_0x260042[_0x2b53('0x18')]);return _0x260042[_0x2b53('0x18')]&&_0x3e5e64[_0x2b53('0x22')](_0x260042[_0x2b53('0x18')]),_0x3e5e64[_0x2b53('0x11')](_0x72bf5d=>new _0x471771(_0x17bce7,_0x72bf5d,_0x72bf5d==_0x260042[_0x2b53('0x18')]));}(_0x352961,_0x3c893f);this['id']=_0x3c893f['id'],this[_0x2b53('0x17')]=_0x3c893f,this[_0x2b53('0x5')](_0x2b53('0x2'),_0x2b53('0x23'))['to'](_0x3c893f),this[_0x2b53('0x5')](_0x2b53('0x26'))['to'](this,'createdAt',_0x50bd69=>_0x50bd69?_0x21b97a(_0x352961['uiLanguage'],_0x50bd69):void 0x0),this[_0x2b53('0x20')](_0x2b53('0xf'),!0x1),this['set']('isHighlighted',!0x1),this[_0x2b53('0x20')](_0x2b53('0x2c'),!0x1),this['set'](_0x2b53('0x21'),!0x1),this[_0x2b53('0x20')](_0x2b53('0x8'),!0x1),this[_0x2b53('0x28')]=new _0x1abe14(_0x352961,_0x2b6f8b),this['revisionNameView']['fieldView'][_0x2b53('0xa')]({'attributes':{'maxlength':_0x2b53('0x2b')}}),this[_0x2b53('0x28')][_0x2b53('0x2a')]['bind'](_0x2b53('0x24'),'placeholder')['to'](this,'name',_0x2b53('0x26')),this['revisionNameView'][_0x2b53('0x5')](_0x2b53('0x8'))['to'](this,_0x2b53('0xf'),this,_0x2b53('0x8'),(_0x1fb6be,_0x485f84)=>_0x1fb6be&&_0x485f84),this[_0x2b53('0x1a')]=_0x21cbe0&&_0x21cbe0['length']?_0x129020(this,_0x21cbe0):'',this[_0x2b53('0x1a')]&&this[_0x2b53('0x1a')][_0x2b53('0x5')]('isEnabled')['to'](this),this['setTemplate']({'tag':_0x2b53('0x1'),'attributes':{'class':['ck',_0x2b53('0x14'),_0x2b53('0x1d'),_0x5a352d['if'](_0x2b53('0x4'),_0x2b53('0x1b'))]},'children':[{'tag':_0x2b53('0x1'),'attributes':{'class':['ck',_0x2b53('0x14'),_0x2b53('0x10'),_0x5a352d['if']('isEnabled',_0x2b53('0x29'),_0x9991c0=>!_0x9991c0),_0x5a352d['if'](_0x2b53('0xf'),_0x2b53('0x1c')),_0x5a352d['if'](_0x2b53('0x0'),_0x2b53('0x12')),_0x5a352d['if']('isActionsDropdownOpen',_0x2b53('0x3'))]},'children':[this[_0x2b53('0x28')],{'tag':_0x2b53('0xe'),'attributes':{'class':['ck',_0x2b53('0x7')]},'children':[{'text':_0x5a352d['to'](_0x2b53('0x26'))}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck',_0x2b53('0x13')]},'children':_0x428fa5}]},this[_0x2b53('0x1a')]],'on':{'click':_0x5a352d['to'](_0x1a87ad=>{_0x1a87ad[_0x2b53('0x1e')][_0x2b53('0x2e')]('.ck-thread__remove-confirm')||this[_0x2b53('0x21')]&&this[_0x2b53('0x8')]&&this['fire'](_0x2b53('0xb'),{'id':this['id']});})}}]});}['render'](){super[_0x2b53('0xd')]();const _0x331f4e=this[_0x2b53('0x28')][_0x2b53('0x2a')][_0x2b53('0x6')];this['listenTo'](_0x331f4e,_0x2b53('0x19'),()=>{this[_0x2b53('0x27')](_0x2b53('0x16'),{'id':this['id'],'name':_0x331f4e[_0x2b53('0x24')]});});}[_0x2b53('0xb')](){this[_0x2b53('0xf')]=!0x0;}['deselect'](){this['isSelected']=!0x1;}[_0x2b53('0xc')](){this[_0x2b53('0x0')]=!0x0;}[_0x2b53('0x9')](){this[_0x2b53('0x0')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5750=['span','set','ck-revision-history-sidebar__subrevision-collapser__inner','button','isVisible','click','ck-hidden','_isCollapsed','false','toggle','bindTemplate'];(function(_0x298d23,_0x575090){const _0x4d4785=function(_0x5e0c1a){while(--_0x5e0c1a){_0x298d23['push'](_0x298d23['shift']());}};_0x4d4785(++_0x575090);}(_0x5750,0x112));const _0x4d47=function(_0x298d23,_0x575090){_0x298d23=_0x298d23-0x0;let _0x4d4785=_0x5750[_0x298d23];return _0x4d4785;};import{View as _0x199e72}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x199e72{constructor(_0x5a993b){super(_0x5a993b);const _0x2eb4f7=this[_0x4d47('0x0')];this[_0x4d47('0x2')]({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x2eb4f7['if'](_0x4d47('0x5'),_0x4d47('0x7'),_0x5b5bc5=>!_0x5b5bc5),_0x2eb4f7['if'](_0x4d47('0x8'),'ck-revision-history-sidebar__subrevision-collapser_collapsed')],'role':_0x4d47('0x4'),'aria-pressed':_0x2eb4f7['to']('_isCollapsed',_0xbb856d=>_0xbb856d?_0x4d47('0x9'):'true')},'children':[{'tag':_0x4d47('0x1'),'attributes':{'class':['ck',_0x4d47('0x3')]}}],'on':{'click':_0x2eb4f7['to'](_0x4d47('0x6'))}});}[_0x4d47('0xa')](){this[_0x4d47('0x8')]=!this[_0x4d47('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3e87=['ck-reset','bindTemplate','isSelected','ck-revision-history-sidebar__revision_selected','createdAt','ck-revision-history-sidebar__subrevision','ck-revision-history-sidebar__revision-authors','fire','span','_parentRevisionId','creator','set','select','bind','_createdAtFormatted','ck-revision-history-sidebar__revision'];(function(_0x2eb736,_0x3e87bb){const _0x30cbed=function(_0x33afac){while(--_0x33afac){_0x2eb736['push'](_0x2eb736['shift']());}};_0x30cbed(++_0x3e87bb);}(_0x3e87,0x128));const _0x30cb=function(_0x2eb736,_0x3e87bb){_0x2eb736=_0x2eb736-0x0;let _0x30cbed=_0x3e87[_0x2eb736];return _0x30cbed;};import{View as _0x46361c}from'ckeditor5/src/ui';import _0x5b6ef8 from'./revisionauthorview';import{dateToPrettyFormat as _0x3ec603}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x46361c{constructor(_0x848aaf,_0x5ae135,_0x1eabcf){super(_0x848aaf);const _0x4fe0ee=this[_0x30cb('0x9')];this['id']=_0x5ae135['id'],this[_0x30cb('0x5')]('createdAt')['to'](_0x5ae135),this[_0x30cb('0x3')]('isSelected',!0x1),this[_0x30cb('0x5')]('_createdAtFormatted')['to'](this,_0x30cb('0xc'),_0x2acde5=>_0x2acde5?_0x3ec603(_0x848aaf['uiLanguage'],_0x2acde5):void 0x0),this[_0x30cb('0x1')]=_0x1eabcf,this['setTemplate']({'tag':'div','attributes':{'class':['ck',_0x30cb('0x8'),_0x30cb('0x7'),_0x30cb('0xd'),_0x4fe0ee['if'](_0x30cb('0xa'),_0x30cb('0xb'))]},'children':[{'tag':_0x30cb('0x0'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__date']},'children':[{'text':_0x4fe0ee['to'](_0x30cb('0x6'))}]},{'tag':'ul','attributes':{'class':['ck',_0x30cb('0xe')]},'children':[new _0x5b6ef8(_0x848aaf,_0x5ae135[_0x30cb('0x2')],!0x0)]}],'on':{'click':_0x4fe0ee['to'](this[_0x30cb('0x4')][_0x30cb('0x5')](this))}});}[_0x30cb('0x4')](){this['isSelected']=!0x0,this[_0x30cb('0xf')](_0x30cb('0x4'),{'parentId':this['_parentRevisionId']});}['deselect'](){this[_0x30cb('0xa')]=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x1cb7=['toLocaleTimeString','numeric','long'];(function(_0x5a0377,_0x1cb735){var _0x1f97f9=function(_0x5067d1){while(--_0x5067d1){_0x5a0377['push'](_0x5a0377['shift']());}};_0x1f97f9(++_0x1cb735);}(_0x1cb7,0x1de));var _0x1f97=function(_0x5a0377,_0x1cb735){_0x5a0377=_0x5a0377-0x0;var _0x1f97f9=_0x1cb7[_0x5a0377];return _0x1f97f9;};export function dateToPrettyFormat(_0x353502,_0x53f652){return _0x53f652['toLocaleDateString'](_0x353502,{'month':_0x1f97('0x1'),'day':_0x1f97('0x0')})+',\x20'+_0x53f652[_0x1f97('0x2')](_0x353502,{'hour':_0x1f97('0x0'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3bad=['revisionName','trim','locale','focusTracker','focus','reset','_focusCycler','type','execute','setTemplate','cancel','_createRevisionNameInput','Cancel','ck-button-cancel','focusFirst','keystrokes','saveButtonView','extendTemplate','Name\x20of\x20the\x20revision\x20(optional)','form','forEach','value','ck-responsive-form','arrowup','submit','tab','arrowdown','fieldView','revisionNameInputValue','ck-button-save','label','listenTo','ck-revision-history-save-revision-form','render','revisionNameInputView','cancelButtonView','delegate','_createButton','Save','set','element','_focusables','add','input'];(function(_0x644311,_0x3bade4){const _0x37d53f=function(_0x1f9aa2){while(--_0x1f9aa2){_0x644311['push'](_0x644311['shift']());}};_0x37d53f(++_0x3bade4);}(_0x3bad,0x7e));const _0x37d5=function(_0x644311,_0x3bade4){_0x644311=_0x644311-0x0;let _0x37d53f=_0x3bad[_0x644311];return _0x37d53f;};import{icons as _0x17a606}from'ckeditor5/src/core';import{ButtonView as _0x41dacd,FocusCycler as _0x5713d3,LabeledFieldView as _0x53d153,View as _0x253e8c,ViewCollection as _0xc9d0c,createLabeledInputText as _0x8cf3fa,injectCssTransitionDisabler as _0x211c49,submitHandler as _0x33ec24}from'ckeditor5/src/ui';import{FocusTracker as _0x3c80b5,KeystrokeHandler as _0x4e35ca}from'ckeditor5/src/utils';import{getTranslation as _0x15f083}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x253e8c{constructor(_0x5f2ad4){super(_0x5f2ad4),this[_0x37d5('0x9')]=new _0x3c80b5(),this[_0x37d5('0x15')]=new _0x4e35ca(),this['set'](_0x37d5('0x22'),''),this[_0x37d5('0x28')]=this[_0x37d5('0x11')](),this[_0x37d5('0x16')]=this[_0x37d5('0x2b')](_0x15f083(_0x5f2ad4,_0x37d5('0x0')),_0x17a606['check'],_0x37d5('0x23')),this[_0x37d5('0x16')][_0x37d5('0xd')]=_0x37d5('0x1e'),this[_0x37d5('0x29')]=this[_0x37d5('0x2b')](_0x15f083(_0x5f2ad4,_0x37d5('0x12')),_0x17a606[_0x37d5('0x10')],_0x37d5('0x13'),_0x37d5('0x10')),this[_0x37d5('0x3')]=new _0xc9d0c(),this[_0x37d5('0xc')]=new _0x5713d3({'focusables':this[_0x37d5('0x3')],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':_0x37d5('0x1f')}}),this[_0x37d5('0xf')]({'tag':_0x37d5('0x19'),'attributes':{'class':['ck',_0x37d5('0x26'),_0x37d5('0x1c')],'tabindex':'-1'},'children':[this['revisionNameInputView'],this[_0x37d5('0x16')],this[_0x37d5('0x29')]]}),_0x211c49(this);}[_0x37d5('0x27')](){super[_0x37d5('0x27')](),_0x33ec24({'view':this}),([this['revisionNameInputView'],this[_0x37d5('0x16')],this[_0x37d5('0x29')]][_0x37d5('0x1a')](_0x5df7b5=>{this['_focusables']['add'](_0x5df7b5),this[_0x37d5('0x9')][_0x37d5('0x4')](_0x5df7b5[_0x37d5('0x2')]);}),this[_0x37d5('0x15')][_0x37d5('0x25')](this['element']));const _0x4b18e6=_0xaf2d72=>_0xaf2d72['stopPropagation']();this[_0x37d5('0x15')]['set']('arrowright',_0x4b18e6),this[_0x37d5('0x15')][_0x37d5('0x1')]('arrowleft',_0x4b18e6),this['keystrokes'][_0x37d5('0x1')](_0x37d5('0x1d'),_0x4b18e6),this[_0x37d5('0x15')]['set'](_0x37d5('0x20'),_0x4b18e6);}[_0x37d5('0xa')](){this[_0x37d5('0xc')][_0x37d5('0x14')]();}get[_0x37d5('0x6')](){return this[_0x37d5('0x28')]['fieldView'][_0x37d5('0x2')]['value'][_0x37d5('0x7')]();}set[_0x37d5('0x6')](_0x2bd772){this['revisionNameInputView'][_0x37d5('0x21')][_0x37d5('0x2')][_0x37d5('0x1b')]=_0x2bd772[_0x37d5('0x7')]();}[_0x37d5('0xb')](){this[_0x37d5('0x28')][_0x37d5('0x21')]['element'][_0x37d5('0x1b')]='';}[_0x37d5('0x11')](){const _0x52fc60=new _0x53d153(this[_0x37d5('0x8')],_0x8cf3fa),_0x31bd52=_0x52fc60[_0x37d5('0x21')];return _0x31bd52[_0x37d5('0x17')]({'attributes':{'maxlength':'220'}}),_0x52fc60[_0x37d5('0x24')]=_0x15f083(this[_0x37d5('0x8')],_0x37d5('0x18')),_0x31bd52['on'](_0x37d5('0x5'),()=>{this['revisionNameInputValue']=_0x31bd52[_0x37d5('0x2')][_0x37d5('0x1b')][_0x37d5('0x7')]();}),_0x52fc60;}[_0x37d5('0x2b')](_0x5eacdc,_0x4e98e4,_0x44b574,_0x37ff2f){const _0x13c683=new _0x41dacd(this[_0x37d5('0x8')]);return _0x13c683[_0x37d5('0x1')]({'label':_0x5eacdc,'icon':_0x4e98e4,'tooltip':!0x0}),_0x13c683['extendTemplate']({'attributes':{'class':_0x44b574}}),_0x37ff2f&&_0x13c683[_0x37d5('0x2a')](_0x37d5('0xe'))['to'](this,_0x37ff2f),_0x13c683;}}
|