@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231207.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/README.md +10 -10
- 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 _0x2d43=['nextSibling','execute','_processTape','startIndex','end','revision-viewer','isLimit','_findChangeIdFromDomTarget','find','_markMarkers','plugins','domEvent','vid_end','bindElementToMarker','ck-revision-history-root--active','revisionHistory','addRevision','error','insert','_markSuggestions','deletions','dataDowncast','ck-suggestion-marker-merge','revisionHistoryLabel','remove','isContent','shift','low','getClientRects','_initInteractions','data-revision-','editingDowncast','merge','hasClass','getCustomProperty','createPositionFromPath','from','listenTo','numberOfChanges','newRevisionId','isAfter','parent','RevisionsRepository','addRevisionData','default','isEnabled','removeAttribute','activeChange','side','softBreak','isCollapsed','delete','toViewElement','_getViewForChange','toViewPosition','createUIElement','_getChangeFromId','markerRange','wrap','ck-editor__editable__overlay','endIndex','compare','_activeViewTarget','rootName','removeClass','useFillerType','commands','highest','isRemoved','isAttached','getRevision','left','removeMarker:revision-suggestion','forEach','mapViewToDom','userId','has','distance','then','bottom','_cleanMarkers','ck-suggestion-marker-','getAttribute','revision:','indexOf','string','elementStart','values','high','element','WidgetToolbarRepository','add','text','markerToHighlight','refresh','_refreshStartEndIndex','revision-start','element:pre','forward','first','oldRevisionId','isOnRoot','previousPosition','getRevisionRootsAttributes','_removeUnsupportedChanges','vid_start','markerNameToElements','createRangeIn','createRevision','detachRoot','_joinTapes','document','_markMismatchedRemovedTags','diff','RevisionViewer','loadRevisionData','revision-end','_getViewObj','downcastDispatcher','_update','_makeModelFromTape','unbindElementFromMarkerName','-new','slice','destroy','isAtStart','_threeWayMerge','sort','consume','checkAttribute','pairId','push','restoreRevision','isEqual','start','removeMarker:revision','startsWith','top','change','parse','get','hasAttribute','insertion','change:isEnabled','span','dataToMarker','for','getRootNames','deletion','change:isReady','toModel','mousedown','attributes','isNavigationMode','flat','_cleanUp','change:activeChange','length','pluginName','model','repository','map','offsetSize','enableReadOnlyMode','_getDiff','domConverter','attribute:vid','isBefore','data-change-id','forceDisabled','setAttribute','name','isReady','getDomRoot','children','markerToData','item','createRange','view','viewItem','writer','level','showStack','getRoot','object','_appendChild','editor','ck-revision-history-root-remove','ck-suggestion-marker--active','getAttributes','data','addHighlight','upcast','_changeView','suggestion','comment','keys','_makeTape','toData','addRoot','revision-suggestion:','mouseover','elementEnd','ck-suggestion-preview-marker-','revision-suggestion','markersEnd','_removeRevisionMarkers','isRemoveSuggestion','_setDistance','ck-revision-history-root-','resolve','_sortAndFilterDiffChanges','target','removeMarker','markers','roots','bind','attachChange','_step','split','markerName','selection','concat','uiElement','processor','splice','vid','currentChangeNumber','isSuggestion','_changeIdToChange','modelRange','addMarker:revision','_fixObsoleteTags','toViewRange','diffData','changes','_setChanges','clear','insertions','observeMarkers','mapper','_markInsertions','isBlock','type','getItems','_data','elementToAttribute','ck-suggestion-marker','showPreviousChange','isAtEnd','revisionHistoryAttachChange','getWalker','revision','reconvertMarker','isIncorrect','editing','change:numberOfChanges','set','addClass','isAddSuggestion','enqueueChange','maxOffset','attributesBefore','all','markersStart','attributesAfter','_makeModelFromViewString','activeView','addMarker:revision-suggestion:deletion','affectsData','next','consumable','getIndex','unshift','init','filter','catch','nodeAfter','changeId','isAdded','conversion','createAttributeElement','index','nextPosition','getChild','_balloon','_getRevisionsRange','change:activeView','updatePosition','schema','findIndex','test'];(function(_0x134833,_0x2d43a0){const _0x58ac2a=function(_0x449d2f){while(--_0x449d2f){_0x134833['push'](_0x134833['shift']());}};_0x58ac2a(++_0x2d43a0);}(_0x2d43,0xb5));const _0x58ac=function(_0x134833,_0x2d43a0){_0x134833=_0x134833-0x0;let _0x58ac2a=_0x2d43[_0x134833];return _0x58ac2a;};import{Plugin as _0x302fbd,Command as _0x5b14aa}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x69fb6c}from'ckeditor5/src/utils';import{ContextualBalloon as _0x9366df}from'ckeditor5/src/ui';import{DocumentFragment as _0x5b17ee,Element as _0x6d2216,Text as _0x11bd6d,ViewDocumentFragment as _0x5ba589,ViewText as _0x4e742a,ViewElement as _0x37d6b8,ViewContainerElement as _0x362010,ViewAttributeElement as _0xcd2dd5,ViewEmptyElement as _0x158760,ViewRawElement as _0x1ab53d,ViewUIElement as _0x2d28be}from'ckeditor5/src/engine';import{Users as _0xffea1e,getMarkerDomElement as _0x50d73d}from'ckeditor5-collaboration/src/collaboration-core';import _0x32aafe from'./ui/revisionviewer/changedetailsview';import _0x5ae72e from'./revisionsrepository';import _0x55c7f1 from'./changeitem';import{default as _0x3c0f48}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x23279f}from'lodash-es';const tt={'c':_0x362010,'a':_0xcd2dd5,'e':_0x158760,'r':_0x1ab53d,'u':_0x2d28be};export default class d extends _0x302fbd{static get[_0x58ac('0x10d')](){return _0x58ac('0xe1');}static get['requires'](){return[_0xffea1e,_0x9366df,_0x5ae72e];}constructor(_0x208a5c){super(_0x208a5c),this[_0x58ac('0x10f')]=this['editor'][_0x58ac('0x79')][_0x58ac('0xfb')](_0x58ac('0x99')),this[_0x58ac('0x4c')](_0x58ac('0x9e'),null),this[_0x58ac('0x4c')]('activeView',null),this[_0x58ac('0xad')]=null,this[_0x58ac('0x4c')](_0x58ac('0xe0'),null),this['set'](_0x58ac('0x11b'),!0x1),this[_0x58ac('0x4c')](_0x58ac('0x9c'),!0x0),this['on'](_0x58ac('0xfe'),(_0x95b75e,_0x399801,_0x10ddd0)=>{this[_0x58ac('0x9e')]=null,this[_0x58ac('0x56')]=null,this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xf9')](_0x465318=>{for(const _0x51b802 of this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x22')])_0x10ddd0?_0x465318[_0x58ac('0xaf')](_0x58ac('0xaa'),_0x51b802):_0x465318[_0x58ac('0x4d')](_0x58ac('0xaa'),_0x51b802);});}),this[_0x58ac('0x23')](_0x58ac('0x108'))['to'](this,'activeChange',_0x1f72d9=>null!==_0x1f72d9),this[_0x58ac('0x23')](_0x58ac('0x2e'))['to'](this,_0x58ac('0x11b'),this,'diff',this,_0x58ac('0x9e'),(_0x2e2ab1,_0x2082d3,_0x436e66)=>_0x2e2ab1&&_0x436e66?_0x2082d3[_0x58ac('0x36')][_0x58ac('0x5b')](_0x436e66):0x0),this['bind'](_0x58ac('0x95'))['to'](this,_0x58ac('0x11b'),this,'diff',(_0x4c43ef,_0x46938d)=>_0x4c43ef?_0x46938d[_0x58ac('0x36')][_0x58ac('0x10c')]:0x0),this[_0x58ac('0xc')]=null,this[_0x58ac('0x30')]=new Map(),this['adapter']=null,this['_balloon']=this[_0x58ac('0x5')]['plugins'][_0x58ac('0xfb')](_0x9366df);}[_0x58ac('0x5d')](){const _0x276994=this[_0x58ac('0x5')],_0xab1f01=new ShowChangeCommand(_0x276994,{'direction':'backward'}),_0x4e99c8=new ShowChangeCommand(_0x276994,{'direction':_0x58ac('0xd1')});(_0x276994[_0x58ac('0xb1')]['add'](_0x58ac('0x43'),_0xab1f01),_0x276994[_0x58ac('0xb1')][_0x58ac('0xca')]('showNextChange',_0x4e99c8),_0x276994[_0x58ac('0xb1')][_0x58ac('0xca')](_0x58ac('0xf3'),new RestoreRevisionCommand(_0x276994)),this['on'](_0x58ac('0x4b'),()=>{_0xab1f01[_0x58ac('0xcd')](),_0x4e99c8[_0x58ac('0xcd')]();}),this['_setConversion'](),this[_0x58ac('0x8c')](),_0x276994[_0x58ac('0x112')](_0x58ac('0x74')),_0x276994['plugins'][_0x58ac('0xbb')](_0x58ac('0xc9')))&&_0x276994[_0x58ac('0x79')][_0x58ac('0xfb')]('WidgetToolbarRepository')[_0x58ac('0x118')](_0x58ac('0x74'));}async['getRevisionData'](_0x2f84c3){await this['loadRevisionData'](_0x2f84c3);const _0xe2a886={};for(const _0x546c85 in _0x2f84c3[_0x58ac('0x35')]){if(_0x2f84c3[_0x58ac('0x35')][_0x546c85][_0x58ac('0x24')]&&!_0x2f84c3['diffData'][_0x546c85][_0x58ac('0x24')][_0x58ac('0xb4')])continue;const _0x4ab8db=this[_0x58ac('0x19')](JSON['parse'](_0x2f84c3['diffData'][_0x546c85][_0x58ac('0x39')])),_0x431a65=this[_0x58ac('0x5')]['editing']['view'][_0x58ac('0xde')],_0x485725=new _0x5ba589(_0x431a65,_0x4ab8db[_0x58ac('0x110')](_0x5a03cd=>this[_0x58ac('0xe4')](_0x5a03cd)));this[_0x58ac('0x5')]['data']['processor'][_0x58ac('0xb0')]('marked'),_0xe2a886[_0x546c85]=this['editor'][_0x58ac('0x9')][_0x58ac('0x2b')][_0x58ac('0x11')](_0x485725),this['editor'][_0x58ac('0x9')][_0x58ac('0x2b')][_0x58ac('0xb0')](_0x58ac('0x9b'));}return _0xe2a886;}async[_0x58ac('0xd6')](_0xe79f4b){await this['loadRevisionData'](_0xe79f4b);const _0xa33ca0={};for(const _0x1b108d in _0xe79f4b[_0x58ac('0x35')])_0xe79f4b[_0x58ac('0x35')][_0x1b108d][_0x58ac('0x24')]&&!_0xe79f4b[_0x58ac('0x35')][_0x1b108d][_0x58ac('0x24')][_0x58ac('0xb4')]||(_0xa33ca0[_0x1b108d]=_0xe79f4b[_0x58ac('0x35')][_0x1b108d]['attributesAfter']||{});return _0xa33ca0;}[_0x58ac('0x19')](_0x52cc33){return(_0x52cc33=_0x52cc33[_0x58ac('0x5e')](_0x43d67b=>!_0x43d67b['name']||_0x58ac('0xcf')!==_0x43d67b['name']&&_0x58ac('0xe3')!==_0x43d67b[_0x58ac('0x11a')]))[_0x58ac('0xb8')](_0x3518b1=>{_0x58ac('0xc4')!=typeof _0x3518b1&&(_0x3518b1[_0x58ac('0x11d')]=this['_removeRevisionMarkers'](_0x3518b1[_0x58ac('0x11d')]),_0x3518b1[_0x58ac('0x107')]=_0x3518b1[_0x58ac('0x107')][_0x58ac('0x5e')](_0x111d55=>!_0x111d55[0x0][_0x58ac('0xf7')](_0x58ac('0x8d'))));}),_0x52cc33;}async[_0x58ac('0xac')](_0x3d1579,_0x5d88e0,_0x42eeb4=!0x1){if(!this[_0x58ac('0x9c')])return;const _0x58e824=this[_0x58ac('0xe0')],_0x5492a5=this[_0x58ac('0x10f')],_0x328d55=_0x58ac('0xc4')==typeof _0x3d1579?_0x5492a5['getRevision'](_0x3d1579):_0x3d1579,_0x2794d9=_0x58ac('0xc4')==typeof _0x5d88e0?_0x5492a5[_0x58ac('0xb5')](_0x5d88e0):_0x5d88e0,_0x35baf8=_0x328d55['id'],_0x4718d7=_0x2794d9?_0x2794d9['id']:null;if(!_0x42eeb4&&this['diff']&&this[_0x58ac('0xe0')][_0x58ac('0x96')]===_0x35baf8&&this[_0x58ac('0xe0')][_0x58ac('0xd3')]===_0x4718d7)return Promise[_0x58ac('0x1d')]();this[_0x58ac('0x11b')]=!0x1,this['activeView']=null,this['activeChange']=null,this[_0x58ac('0xe0')]=new _0x3c0f48(_0x35baf8,_0x4718d7);const _0x5301be=this[_0x58ac('0x69')](_0x328d55,_0x2794d9,!0x0)[_0x58ac('0x110')](_0x53bb3c=>this[_0x58ac('0xe2')](_0x53bb3c));return _0x5301be[_0x58ac('0xf2')](new Promise(_0x5909e4=>{setTimeout(_0x5909e4,0x14);})),Promise[_0x58ac('0x52')](_0x5301be)[_0x58ac('0xbd')](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2d81f4=this['_getDiff'](_0x35baf8,_0x4718d7);for(const _0x10483f of _0x2d81f4['changes'])this[_0x58ac('0x30')][_0x58ac('0x4c')](_0x10483f['id'],_0x10483f);this[_0x58ac('0x5')]['model']['enqueueChange']({'isUndoable':!0x1},_0x94901a=>{for(const _0x4ffb69 of this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')][_0x58ac('0x102')]())_0x94901a['detachRoot'](_0x4ffb69);for(const _0xac5826 of Object['keys'](_0x2d81f4[_0x58ac('0x10e')])){const _0x394360=_0x94901a[_0x58ac('0x12')](_0xac5826);for(const _0x56c722 of Object['keys'](_0x2d81f4['attributes'][_0xac5826]))_0x94901a[_0x58ac('0x119')](_0x56c722,_0x2d81f4[_0x58ac('0x107')][_0xac5826][_0x56c722],_0x394360);_0x94901a[_0x58ac('0x81')](_0x2d81f4['model'][_0xac5826],_0x394360,0x0);}}),this[_0x58ac('0xe0')][_0x58ac('0x37')](this[_0x58ac('0x1e')](_0x2d81f4[_0x58ac('0x36')])),this[_0x58ac('0x11b')]=!0x0;})[_0x58ac('0x5f')](_0x1b1051=>{console[_0x58ac('0x80')](_0x1b1051),this[_0x58ac('0x10a')](),_0x58e824&&(this[_0x58ac('0xe0')]=_0x58e824),this['isReady']=!0x0;});}[_0x58ac('0x9a')](_0xcdd324,_0x253f16){const _0x152cf0=this[_0x58ac('0x10f')][_0x58ac('0xdb')](_0xcdd324);return _0x152cf0['on'](_0x58ac('0xe6'),(_0x56bc72,_0x4441ba,_0x179005)=>_0x253f16(_0x4441ba,_0x179005,_0x152cf0)),this[_0x58ac('0x10f')][_0x58ac('0x7f')](_0x152cf0),_0x152cf0;}[_0x58ac('0xe2')](_0x452b8b){if(!_0x452b8b||_0x452b8b[_0x58ac('0x35')])return Promise[_0x58ac('0x1d')]();{const _0x5da7d8=this[_0x58ac('0x5')]['config'][_0x58ac('0xfb')]('collaboration.channelId');return this['adapter'][_0x58ac('0xb5')]({'channelId':_0x5da7d8,'revisionId':_0x452b8b['id']})['then'](_0x58c1b1=>{_0x452b8b[_0x58ac('0xe6')]({'diffData':_0x58c1b1['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this[_0x58ac('0xc')]&&this[_0x58ac('0xc')]['destroy'](),this['_changeView']=null,this[_0x58ac('0x30')][_0x58ac('0x38')](),this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0x4f')]({'isUndoable':!0x1},_0x28e1cb=>{for(const _0x1dcfc5 of this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')]['getRootNames']())_0x28e1cb[_0x58ac('0xdc')](_0x1dcfc5);});}[_0x58ac('0x1e')](_0x54f3cd){const _0x1fa84d=[],_0x17d378=new Map();for(const _0x305330 of this['editor'][_0x58ac('0x10e')]['document'][_0x58ac('0x102')]()){const _0x2e00bc=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0x11c')](_0x305330);if(!_0x2e00bc)continue;const _0x48b6be=_0x2e00bc['getClientRects']()['item'](0x0);_0x48b6be&&(_0x1fa84d['push'](_0x305330),_0x17d378['set'](_0x305330,_0x48b6be));}return _0x1fa84d['sort']((_0x3f1793,_0x2dcf07)=>{const _0x130302=_0x17d378['get'](_0x3f1793),_0x5ba3be=_0x17d378['get'](_0x2dcf07);return _0x130302['y']-_0x5ba3be['y']||_0x130302['x']-_0x5ba3be['x'];}),(_0x54f3cd=_0x54f3cd['filter'](_0x4b3e91=>_0x1fa84d['includes'](_0x4b3e91[_0x58ac('0xae')])))[_0x58ac('0xee')]((_0x2f504c,_0xc041d6)=>_0x1fa84d[_0x58ac('0xc3')](_0x2f504c['rootName'])-_0x1fa84d[_0x58ac('0xc3')](_0xc041d6[_0x58ac('0xae')])),_0x54f3cd;}[_0x58ac('0x10')](_0x133ec5){const _0x1e17e5=Array['from'](_0x133ec5[_0x58ac('0x21')])['filter'](([_0x4fb1d4,_0x2745fa])=>_0x4fb1d4[_0x58ac('0xf7')](_0x58ac('0xc2'))&&!_0x2745fa[_0x58ac('0xa1')]),_0x210406=Array[_0x58ac('0x93')](this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xda')](_0x133ec5)[_0x58ac('0x46')]({'singleCharacters':!0x0}));if(0x0!=_0x1e17e5[_0x58ac('0x10c')])for(const _0x184528 of _0x210406){const [_0x404110,_0x4b410e]=_0x1e17e5[0x0],[,_0x48c701,_0x57de8a]=_0x404110[_0x58ac('0x26')](':');if(_0x4b410e['end']['isEqual'](_0x184528['nextPosition'])&&_0x1e17e5['shift'](),(_0x184528[_0x58ac('0xd5')][_0x58ac('0xf4')](_0x4b410e[_0x58ac('0xf5')])||_0x184528[_0x58ac('0xd5')]['isAfter'](_0x4b410e[_0x58ac('0xf5')]))&&(_0x58ac('0xfd')==_0x48c701?_0x184528[_0x58ac('0x62')]={'userId':_0x57de8a}:'deletion'==_0x48c701&&(_0x184528['isRemoved']={'userId':_0x57de8a})),0x0==_0x1e17e5[_0x58ac('0x10c')])break;}return _0x210406;}[_0x58ac('0xce')](_0x105f33){const _0x5ce92b=new Map();for(let _0x1a52d9=0x0;_0x1a52d9<_0x105f33[_0x58ac('0x10c')];_0x1a52d9++)_0x58ac('0xcb')===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]?(_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x1a52d9,_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x1a52d9):('elementStart'===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]?_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x1a52d9:_0x58ac('0x15')===_0x105f33[_0x1a52d9][_0x58ac('0x3e')]&&(_0x105f33[_0x1a52d9][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x1a52d9),_0x5ce92b[_0x58ac('0x4c')](_0x105f33[_0x1a52d9]['id'],_0x1a52d9));for(const _0x25219f of _0x5ce92b[_0x58ac('0xc6')]())_0x58ac('0xc5')===_0x105f33[_0x25219f][_0x58ac('0x3e')]?_0x105f33[_0x25219f][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x5ce92b[_0x58ac('0xfb')](_0x105f33[_0x25219f]['pairId']):_0x58ac('0x15')===_0x105f33[_0x25219f][_0x58ac('0x3e')]&&(_0x105f33[_0x25219f][_0x58ac('0x11f')][_0x58ac('0x72')]=_0x5ce92b[_0x58ac('0xfb')](_0x105f33[_0x25219f][_0x58ac('0xf1')]));}[_0x58ac('0x71')](_0x1907f2){for(let _0x4ea9b6=0x0;_0x4ea9b6<_0x1907f2[_0x58ac('0x10c')];_0x4ea9b6++){if(_0x58ac('0xc5')===_0x1907f2[_0x4ea9b6][_0x58ac('0x3e')])_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')]['startIndex']=_0x4ea9b6;else{if(_0x58ac('0x15')===_0x1907f2[_0x4ea9b6][_0x58ac('0x3e')]){_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x4ea9b6;const _0x500ffe=_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0x72')];_0x1907f2[_0x500ffe][_0x58ac('0xf1')]=_0x1907f2[_0x4ea9b6]['id'],_0x1907f2[_0x4ea9b6]['pairId']=_0x1907f2[_0x500ffe]['id'];}else _0x1907f2[_0x4ea9b6]['item']['startIndex']=_0x4ea9b6,_0x1907f2[_0x4ea9b6][_0x58ac('0x11f')][_0x58ac('0xab')]=_0x4ea9b6,_0x1907f2[_0x4ea9b6][_0x58ac('0xf1')]=null;}_0x1907f2[_0x4ea9b6][_0x58ac('0x53')]||(_0x1907f2[_0x4ea9b6][_0x58ac('0x53')]=[],_0x1907f2[_0x4ea9b6][_0x58ac('0x18')]=[]);}}[_0x58ac('0x3c')](_0x226704,_0x290582){const _0x5bc161=_0x226704['filter'](_0x56447e=>!_0x56447e[_0x58ac('0x62')]);for(let _0x3100af=0x0;_0x3100af<_0x290582[_0x58ac('0x10c')];_0x3100af++)_0x290582[_0x3100af][_0x58ac('0x62')]&&(_0x5bc161[_0x3100af][_0x58ac('0x62')]=_0x290582[_0x3100af]['isAdded']);}[_0x58ac('0x55')](_0xccf971){const _0x383b10=JSON[_0x58ac('0xfa')](_0xccf971),_0xf1e51c=this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')]['document'],_0x3081a8=new _0x5ba589(_0xf1e51c,_0x383b10[_0x58ac('0x110')](_0x1473ef=>this['_getViewObj'](_0x1473ef)));return this[_0x58ac('0x5')][_0x58ac('0x9')][_0x58ac('0x105')](_0x3081a8);}['_getViewObj'](_0x42b8de){const _0x4bc98a=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')];if(_0x58ac('0xc4')==typeof _0x42b8de)return new _0x4e742a(_0x4bc98a,_0x42b8de);{const _0x3b7246=_0x42b8de[_0x58ac('0x11d')][_0x58ac('0x110')](_0x519c39=>this[_0x58ac('0xe4')](_0x519c39));return new(tt[_0x42b8de[(_0x58ac('0x3e'))]]||_0x37d6b8)(_0x4bc98a,_0x42b8de[_0x58ac('0x11a')],_0x42b8de[_0x58ac('0x107')],_0x3b7246);}}[_0x58ac('0x113')](_0x342082,_0x535e7a=null){const _0x21c574=this[_0x58ac('0x10f')]['getRevision'](_0x342082),_0x1bd0cb=_0x535e7a?this['repository'][_0x58ac('0xb5')](_0x535e7a):null,_0x5701a0=this[_0x58ac('0x69')](_0x21c574,_0x1bd0cb),_0x4b20ef=_0x5701a0[_0x5701a0[_0x58ac('0x10c')]-0x1],_0x3f8c88=new Map(),_0xd5d226={'model':{},'attributes':{},'changes':[]},_0x196daa=new Set(),_0x119c61=new Map();for(let _0x5ad926=_0x5701a0[_0x58ac('0x10c')]-0x1;_0x5ad926>=0x0;_0x5ad926--){const _0x4d4e03=_0x5701a0[_0x5ad926];for(const _0x25290b of Object[_0x58ac('0xf')](_0x4d4e03[_0x58ac('0x35')]))if(_0x4d4e03['diffData'][_0x25290b]['attachChange']){const _0x59d0cd=_0x4d4e03[_0x58ac('0x35')][_0x25290b]['attachChange'];_0x59d0cd[_0x58ac('0xb4')]?(_0x196daa[_0x58ac('0xca')](_0x25290b),_0x119c61['has'](_0x25290b)&&_0x119c61[_0x58ac('0xfb')](_0x25290b)[_0x58ac('0xba')]==_0x59d0cd[_0x58ac('0xba')]?_0x119c61['delete'](_0x25290b):_0x119c61['set'](_0x25290b,_0x59d0cd)):_0x119c61[_0x58ac('0xbb')](_0x25290b)?(_0x196daa[_0x58ac('0xa2')](_0x25290b),_0x119c61[_0x58ac('0xa2')](_0x25290b)):(_0x196daa[_0x58ac('0xca')](_0x25290b),_0x119c61['set'](_0x25290b,_0x59d0cd));}else _0x196daa[_0x58ac('0xca')](_0x25290b);}for(const _0x151ff8 of _0x196daa){const _0x46a2c5=_0x119c61[_0x58ac('0xbb')](_0x151ff8)&&!_0x119c61[_0x58ac('0xfb')](_0x151ff8)['isAttached'];let _0x4f5348=_0x46a2c5?_0x5701a0['length']-0x1:0x0;const _0x286770=_0x46a2c5?-0x1:0x1;for(;_0x5701a0[_0x4f5348];){const _0x5a442c=_0x5701a0[_0x4f5348];if(_0x5a442c[_0x58ac('0x35')][_0x151ff8]){const _0x252026=_0x46a2c5?_0x5a442c[_0x58ac('0x35')][_0x151ff8][_0x58ac('0x51')]:_0x5a442c[_0x58ac('0x35')][_0x151ff8][_0x58ac('0x54')];_0xd5d226[_0x58ac('0x107')][_0x151ff8]=_0x252026?_0x23279f(_0x252026):{};break;}_0x4f5348+=_0x286770;}}for(const _0x11333a of _0x5701a0){_0x11333a[_0x58ac('0x10e')]={};for(const _0x25f98d of _0x11333a['authors'])_0x3f8c88[_0x58ac('0x4c')](_0x25f98d['id'],_0x25f98d);for(const _0x1fae54 of _0x196daa){const _0x510cce=_0x11333a[_0x58ac('0x35')][_0x1fae54]?_0x11333a[_0x58ac('0x35')][_0x1fae54][_0x58ac('0x39')]:'[]',_0x5ba613=_0x11333a[_0x58ac('0x35')][_0x1fae54]?_0x11333a[_0x58ac('0x35')][_0x1fae54]['deletions']:'[]';_0x11333a[_0x58ac('0x10e')][_0x1fae54]={'insertions':this[_0x58ac('0x55')](_0x510cce),'deletions':this[_0x58ac('0x55')](_0x5ba613)};}}for(const _0x37a1f1 of _0x196daa){let _0x49497f=null,_0x5f22c6=0x0;const _0x342018=new Map(Array[_0x58ac('0x93')](_0x21c574[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x39')]['markers'])['filter'](([_0x2262a5])=>!_0x2262a5[_0x58ac('0xf7')](_0x58ac('0xc2'))));let _0x120f32=0x0;for(const _0x15d714 of _0x5701a0){const _0x157319=this[_0x58ac('0x10')](_0x15d714[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x39')]);_0x15d714==_0x21c574?(_0x49497f=_0x157319,_0x5f22c6=_0x49497f[_0x58ac('0x10c')],_0x49497f['forEach'](_0x21dd85=>{_0x21dd85['id']=_0x120f32++;}),this[_0x58ac('0x71')](_0x49497f)):this[_0x58ac('0x3c')](_0x49497f,_0x157319);const _0x23ba1f=_0x49497f[_0x58ac('0x5e')](_0x3dfebd=>!_0x3dfebd[_0x58ac('0x62')])[_0x58ac('0x110')](_0x4439fc=>_0x4439fc['id']);let _0x3dc4ef=0x0;const _0x56bafe=this[_0x58ac('0x10')](_0x15d714[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x83')]);_0x56bafe[_0x58ac('0xb8')](_0x1db78f=>{_0x1db78f['isRemoved']?_0x1db78f['id']=_0x5f22c6++:_0x1db78f['id']=_0x23ba1f[_0x3dc4ef++];}),this[_0x58ac('0x71')](_0x56bafe),this[_0x58ac('0x1b')](_0x49497f,_0x58ac('0x62')),this[_0x58ac('0x1b')](_0x56bafe,_0x58ac('0xb3')),_0x15d714==_0x21c574&&this[_0x58ac('0x78')](_0x49497f,_0x342018),_0x49497f=this[_0x58ac('0xdd')](_0x49497f,_0x56bafe),this[_0x58ac('0xce')](_0x49497f),this[_0x58ac('0x1b')](_0x49497f,_0x58ac('0xb3'));}_0x49497f=_0x49497f[_0x58ac('0x5e')](_0x411f28=>!(_0x411f28[_0x58ac('0x62')]&&_0x411f28[_0x58ac('0xb3')]));const _0x36ca70=new Map(_0x4b20ef[_0x58ac('0x10e')][_0x37a1f1][_0x58ac('0x83')][_0x58ac('0x21')]),_0x11df2c=new Set(_0x342018[_0x58ac('0xf')]());for(const _0x2bb963 of _0x36ca70[_0x58ac('0xf')]())_0x11df2c[_0x58ac('0xa2')](_0x2bb963);this[_0x58ac('0x82')](_0x49497f,_0x11df2c),this[_0x58ac('0x33')](_0x49497f),_0x49497f=this['_removeMissingPairs'](_0x49497f),_0x49497f=this[_0x58ac('0xdf')](_0x49497f),_0x49497f=this[_0x58ac('0xd7')](_0x49497f);const {root:_0x5d7354,changes:_0x342df1}=this[_0x58ac('0xe7')](_0x49497f,_0x3f8c88,_0x37a1f1);_0xd5d226['model'][_0x37a1f1]=_0x5d7354;const _0x1a5eb3=_0x119c61[_0x58ac('0xfb')](_0x37a1f1);if(_0x1a5eb3){const _0x35216d=_0x3f8c88[_0x58ac('0xfb')](_0x1a5eb3[_0x58ac('0xba')]),_0x21b813=new _0x55c7f1({'author':_0x35216d,'type':_0x1a5eb3['isAttached']?_0x58ac('0xca'):_0x58ac('0x87'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x37a1f1});_0x342df1[_0x58ac('0x5c')](_0x21b813),_0xd5d226[_0x58ac('0x107')][_0x37a1f1][_0x58ac('0x45')]=_0x21b813['id'];}_0xd5d226[_0x58ac('0x36')]=_0xd5d226['changes'][_0x58ac('0x29')](_0x342df1);}return _0xd5d226;}[_0x58ac('0x78')](_0x467a63,_0x423b73){for(let _0x1ac811=0x0;_0x1ac811<_0x467a63[_0x58ac('0x10c')];_0x1ac811++)for(const [_0x310ad2,_0xcb0374]of _0x423b73)_0xcb0374[_0x58ac('0xf5')][_0x58ac('0xf4')](_0x467a63[_0x1ac811]['previousPosition'])&&_0x467a63[_0x1ac811]['markersStart']['push'](_0x310ad2),_0xcb0374[_0x58ac('0x73')][_0x58ac('0xf4')](_0x467a63[_0x1ac811][_0x58ac('0x66')])&&_0x467a63[_0x1ac811][_0x58ac('0x18')][_0x58ac('0xf2')](_0x310ad2);}[_0x58ac('0xdd')](_0x2f0139,_0x3e1ca6){let _0x1cea2e=[],_0x2c11df=0x0,_0x2b8555=0x0;for(;_0x2c11df<_0x2f0139['length']||_0x2b8555<_0x3e1ca6[_0x58ac('0x10c')];){const _0x28b8aa=_0x2f0139[_0x2c11df]||{},_0x1c1221=_0x3e1ca6[_0x2b8555]||{};if(_0x28b8aa['id']==_0x1c1221['id'])_0x2c11df++,_0x2b8555++,_0x1cea2e[_0x58ac('0xf2')](_0x28b8aa);else{if(_0x1c1221[_0x58ac('0xb3')]&&_0x28b8aa[_0x58ac('0x62')]){const {commonTape:_0x71ffca,iEnd:_0x3b9b7f,jEnd:_0x3eb4f9}=this[_0x58ac('0xed')](_0x2f0139,_0x2c11df,_0x3e1ca6,_0x2b8555);_0x1cea2e=_0x1cea2e[_0x58ac('0x29')](_0x71ffca),_0x2c11df=_0x3b9b7f,_0x2b8555=_0x3eb4f9;}else _0x1c1221[_0x58ac('0xb3')]?(_0x2b8555++,_0x1cea2e[_0x58ac('0xf2')](_0x1c1221)):(_0x2c11df++,_0x1cea2e['push'](_0x28b8aa));}}return _0x1cea2e;}[_0x58ac('0x82')](_0x2853bd,_0x1e1036){const _0x3919e9=[];for(let _0x2d7cf2=0x0;_0x2d7cf2<_0x2853bd[_0x58ac('0x10c')];_0x2d7cf2++){for(let _0x33f6da=0x0;_0x33f6da<_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x58ac('0x10c')];_0x33f6da++){const _0x49e47d=_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x33f6da];if(!_0x1e1036[_0x58ac('0xbb')](_0x49e47d))continue;const {group:_0x466cb8,type:_0x4dfdd8,authorId:_0x17e115}=_0x56ef27(_0x49e47d);'revision-suggestion'!=_0x466cb8||_0x58ac('0xfd')!=_0x4dfdd8&&'deletion'!=_0x4dfdd8||(_0x3919e9[_0x58ac('0x5c')]({'type':_0x4dfdd8,'name':_0x49e47d,'userId':_0x17e115}),_0x2853bd[_0x2d7cf2][_0x58ac('0x53')][_0x58ac('0x2c')](_0x33f6da,0x1),_0x33f6da--);}_0x17f059(_0x2853bd[_0x2d7cf2]);for(let _0x384861=0x0;_0x384861<_0x2853bd[_0x2d7cf2]['markersEnd'][_0x58ac('0x10c')];_0x384861++){const _0xe0ee5e=_0x2853bd[_0x2d7cf2][_0x58ac('0x18')][_0x384861];if(!_0x1e1036[_0x58ac('0xbb')](_0xe0ee5e))continue;const {group:_0x5511b0,type:_0x535b1e}=_0x56ef27(_0xe0ee5e);if(_0x58ac('0x17')!=_0x5511b0||'insertion'!=_0x535b1e&&_0x58ac('0x103')!=_0x535b1e)continue;_0x2853bd[_0x2d7cf2]['markersEnd'][_0x58ac('0x2c')](_0x384861,0x1),_0x384861--;const _0x80851f=_0x3919e9[_0x58ac('0x6d')](_0x32c434=>_0x32c434[_0x58ac('0x11a')]==_0xe0ee5e);_0x80851f>-0x1&&_0x3919e9[_0x58ac('0x2c')](_0x80851f,0x1);}}function _0x56ef27(_0x46f559){const _0x40c6bd=_0x46f559[_0x58ac('0x26')](':');return{'group':_0x40c6bd[0x0],'type':_0x40c6bd[0x1],'subType':_0x40c6bd['length']>=0x5?_0x40c6bd[0x2]:null,'id':_0x40c6bd['length']<0x5?_0x40c6bd[0x2]:_0x40c6bd[0x3],'authorId':_0x40c6bd['length']<0x5?_0x40c6bd[0x3]:_0x40c6bd[0x4],'markerCount':0x6==_0x40c6bd[_0x58ac('0x10c')]?_0x40c6bd[0x5]:null};}function _0x17f059(_0x1659ff){for(let _0x352e4e=0x0;_0x352e4e<_0x3919e9[_0x58ac('0x10c')];_0x352e4e++){if(_0x1659ff[_0x58ac('0x62')]&&_0x58ac('0xfd')==_0x3919e9[_0x352e4e][_0x58ac('0x3e')])return _0x1659ff[_0x58ac('0x4e')]=_0x3919e9[_0x352e4e],void delete _0x1659ff[_0x58ac('0x62')];if(!_0x1659ff[_0x58ac('0x62')]&&!_0x1659ff['isRemoved']&&_0x58ac('0x103')==_0x3919e9[_0x352e4e][_0x58ac('0x3e')])return void(_0x1659ff[_0x58ac('0x1a')]=_0x3919e9[_0x352e4e]);}}}[_0x58ac('0x1b')](_0x63f6c6,_0x130ec5){let _0x301966=0x0,_0x39e407=!0x1;const _0x2196fc=new Map();for(const _0x18787f of _0x63f6c6)_0x18787f[_0x130ec5]?_0x39e407&&(_0x301966++,_0x39e407=!0x1):(_0x301966++,_0x39e407=!0x0),_0x2196fc[_0x58ac('0x4c')](_0x18787f['id'],_0x301966);for(let _0x4f8a38=0x0;_0x4f8a38<_0x63f6c6['length'];_0x4f8a38++){if(_0x58ac('0xb3')==_0x130ec5&&_0x63f6c6[_0x4f8a38][_0x58ac('0x62')]||_0x58ac('0x62')==_0x130ec5&&_0x63f6c6[_0x4f8a38][_0x58ac('0xb3')])continue;if('text'==_0x63f6c6[_0x4f8a38]['type']){_0x63f6c6[_0x4f8a38][_0x58ac('0xbc')]=0x0;continue;}const _0x4b4f7d=_0x2196fc[_0x58ac('0xfb')](_0x63f6c6[_0x4f8a38]['pairId']),_0x25c6b0=_0x2196fc[_0x58ac('0xfb')](_0x63f6c6[_0x4f8a38]['id']);_0x63f6c6[_0x4f8a38][_0x58ac('0xbc')]=_0x4b4f7d-_0x25c6b0;}}[_0x58ac('0x69')](_0x45e9e5,_0x6d9e8f,_0x1b6709=!0x1){const _0x41df1e=[];let _0xdb2a5f=this['repository'][_0x58ac('0x5b')](_0x45e9e5),_0xd86318=this[_0x58ac('0x10f')][_0x58ac('0x5b')](_0x6d9e8f);for(-0x1==_0xd86318&&(_0xd86318=this[_0x58ac('0x10f')]['_revisions'][_0x58ac('0x10c')],_0x1b6709=!0x1);_0xdb2a5f<_0xd86318;)_0x41df1e[_0x58ac('0xf2')](this[_0x58ac('0x10f')][_0x58ac('0xb5')](_0xdb2a5f)),_0xdb2a5f++;return _0x1b6709&&_0x41df1e[_0x58ac('0xf2')](this[_0x58ac('0x10f')][_0x58ac('0xb5')](_0xdb2a5f)),_0x41df1e;}[_0x58ac('0xed')](_0x62fdbb,_0x56a3c7,_0x4b2b78,_0x35d29d){const _0x3134f6=this[_0x58ac('0x5')][_0x58ac('0x10e')]['schema'];let _0x332bd6=_0x56a3c7;for(;_0x62fdbb[_0x332bd6]&&_0x62fdbb[_0x332bd6][_0x58ac('0x62')];)_0x332bd6++;let _0x497279=_0x35d29d;for(;_0x4b2b78[_0x497279]&&_0x4b2b78[_0x497279][_0x58ac('0xb3')];)_0x497279++;_0x4968ee(_0x62fdbb,_0x56a3c7,_0x332bd6),_0x4968ee(_0x4b2b78,_0x35d29d,_0x497279);const _0x5cbad6=_0x4b2b78[_0x58ac('0xea')](_0x35d29d,_0x497279)['concat'](_0x62fdbb[_0x58ac('0xea')](_0x56a3c7,_0x332bd6));return _0x5cbad6[_0x58ac('0xee')]((_0x40fb56,_0x2c4f9a)=>_0x40fb56['side']!=_0x2c4f9a[_0x58ac('0x9f')]?_0x40fb56['side']-_0x2c4f9a[_0x58ac('0x9f')]:_0x40fb56[_0x58ac('0x0')]!=_0x2c4f9a[_0x58ac('0x0')]?_0x40fb56[_0x58ac('0x0')]-_0x2c4f9a[_0x58ac('0x0')]:_0x40fb56[_0x58ac('0xbc')]!=_0x2c4f9a['distance']?_0x2c4f9a['distance']-_0x40fb56[_0x58ac('0xbc')]:!!_0x40fb56['isAdded']!=!!_0x2c4f9a[_0x58ac('0x62')]?-0x1==_0x40fb56['side']||0x0==_0x40fb56[_0x58ac('0x9f')]?_0x40fb56['isAdded']?-0x1:0x1:_0x40fb56[_0x58ac('0x62')]?0x1:-0x1:_0x40fb56[_0x58ac('0x65')]-_0x2c4f9a[_0x58ac('0x65')]),{'commonTape':_0x5cbad6,'iEnd':_0x332bd6,'jEnd':_0x497279};function _0x4968ee(_0x853c00,_0x4b13b8,_0x55d09f){let _0x4b98fb=-0x1,_0x3de769=Number['POSITIVE_INFINITY'],_0x163814=!0x0;for(let _0x490ee3=_0x4b13b8;_0x490ee3<_0x55d09f;_0x490ee3++)if(_0x3134f6['isInline'](_0x853c00[_0x490ee3]['item'])||(_0x163814=!0x1),_0x853c00[_0x490ee3]['item'][_0x58ac('0x72')]<_0x4b13b8&&(_0x4b98fb=_0x490ee3),_0x853c00[_0x490ee3][_0x58ac('0x11f')][_0x58ac('0xab')]>=_0x55d09f){_0x3de769=_0x490ee3;break;}_0x163814&&(_0x4b98fb=_0x55d09f-0x1);for(let _0x5ce0d0=_0x4b13b8;_0x5ce0d0<_0x55d09f;_0x5ce0d0++)_0x853c00[_0x5ce0d0][_0x58ac('0x9f')]=_0x5ce0d0<=_0x4b98fb?-0x1:_0x5ce0d0<_0x3de769?0x0:0x1,_0x853c00[_0x5ce0d0][_0x58ac('0x65')]=_0x5ce0d0;let _0x3e9377=0x0;for(let _0x43c43f=_0x4b13b8;_0x43c43f<=_0x4b98fb;_0x43c43f++)0x0==_0x853c00[_0x43c43f][_0x58ac('0xbc')]?_0x853c00[_0x43c43f][_0x58ac('0x0')]=_0x3e9377:(_0x3e9377++,_0x853c00[_0x43c43f][_0x58ac('0x0')]=_0x3e9377,_0x3e9377++);for(let _0x1a3186=_0x4b13b8;_0x1a3186<_0x55d09f;_0x1a3186++)0x0==_0x853c00[_0x1a3186][_0x58ac('0x9f')]&&(_0x853c00[_0x1a3186][_0x58ac('0x0')]=_0x3e9377);_0x3e9377=0x0;for(let _0x5e01e9=_0x55d09f-0x1;_0x5e01e9>=_0x3de769;_0x5e01e9--)0x0==_0x853c00[_0x5e01e9][_0x58ac('0xbc')]?_0x853c00[_0x5e01e9]['level']=_0x3e9377:(_0x3e9377--,_0x853c00[_0x5e01e9]['level']=_0x3e9377,_0x3e9377--);}}['_fixObsoleteTags'](_0x393041){const _0x35dd44=new Map(),_0x31b135=this[_0x58ac('0x5')][_0x58ac('0x10e')]['schema'];for(let _0x1f1451=0x1;_0x1f1451<_0x393041[_0x58ac('0x10c')];_0x1f1451++){let _0x5c2ed6,_0x10af6a,_0x351a0d;const _0x4bbd49=_0x393041[_0x1f1451],_0x1e1426=_0x393041[_0x1f1451-0x1];if(_0x58ac('0xcb')==_0x4bbd49['type'])continue;if(_0x4bbd49[_0x58ac('0x3e')]!=_0x1e1426[_0x58ac('0x3e')])continue;if(!_0x31b135['isBlock'](_0x1e1426[_0x58ac('0x11f')])||_0x31b135[_0x58ac('0x75')](_0x1e1426['item']))continue;if(!_0x31b135[_0x58ac('0x3d')](_0x4bbd49[_0x58ac('0x11f')])||_0x31b135[_0x58ac('0x75')](_0x4bbd49[_0x58ac('0x11f')]))continue;if((_0x393041[_0x1f1451][_0x58ac('0x62')]||_0x393041[_0x1f1451][_0x58ac('0x4e')])&&_0x393041[_0x1f1451-0x1][_0x58ac('0xb3')])_0x5c2ed6=_0x393041[_0x1f1451],_0x10af6a=_0x393041[_0x1f1451-0x1],_0x351a0d=_0x1f1451-0x1;else{if(!_0x393041[_0x1f1451][_0x58ac('0xb3')]||!_0x393041[_0x1f1451-0x1][_0x58ac('0x62')]&&!_0x393041[_0x1f1451-0x1][_0x58ac('0x4e')])continue;_0x5c2ed6=_0x393041[_0x1f1451-0x1],_0x10af6a=_0x393041[_0x1f1451],_0x351a0d=_0x1f1451;}const _0x1189b2=_0x5c2ed6['level']==_0x10af6a[_0x58ac('0x0')],_0x380787=Math['abs'](_0x5c2ed6[_0x58ac('0x0')])<Math['abs'](_0x10af6a['level'])&&0x0==_0x10af6a[_0x58ac('0xbc')];(_0x1189b2||_0x380787)&&(_0x35dd44[_0x58ac('0x4c')](_0x10af6a['id'],_0x5c2ed6['id']),_0x393041[_0x58ac('0x2c')](_0x351a0d,0x1),_0x1f1451--,_0x5c2ed6[_0x58ac('0x62')]=!0x1);}for(let _0x207f1d=0x0;_0x207f1d<_0x393041[_0x58ac('0x10c')];_0x207f1d++)_0x35dd44[_0x58ac('0xbb')](_0x393041[_0x207f1d][_0x58ac('0xf1')])&&(_0x393041[_0x207f1d][_0x58ac('0xf1')]=_0x35dd44['get'](_0x393041[_0x207f1d][_0x58ac('0xf1')]));}['_removeMissingPairs'](_0x1cd094){const _0x546116=new Set(_0x1cd094[_0x58ac('0x110')](_0x25ca2e=>_0x25ca2e['id']));for(let _0x413927=0x0;_0x413927<_0x1cd094[_0x58ac('0x10c')];_0x413927++)_0x546116[_0x58ac('0xbb')](_0x1cd094[_0x413927][_0x58ac('0xf1')])||0x0==_0x1cd094[_0x413927][_0x58ac('0xbc')]||(_0x1cd094[_0x413927]['isIncorrect']=!0x0);return _0x1cd094[_0x58ac('0x5e')](_0x17e3d3=>!_0x17e3d3[_0x58ac('0x49')]);}['_markMismatchedRemovedTags'](_0x274bd7){const _0xf7da83=new Set();for(let _0x51457d=0x0;_0x51457d<_0x274bd7['length'];_0x51457d++){if(_0xf7da83['has'](_0x274bd7[_0x51457d]['id'])&&_0x274bd7[_0x51457d]['isRemoved']&&(_0x274bd7[_0x51457d][_0x58ac('0x49')]=!0x0),_0x274bd7[_0x51457d][_0x58ac('0x49')])continue;if(0x0==_0x274bd7[_0x51457d][_0x58ac('0xbc')])continue;if(_0x58ac('0xc5')!=_0x274bd7[_0x51457d][_0x58ac('0x3e')])continue;if(null==_0x274bd7[_0x51457d][_0x58ac('0xf1')])continue;let _0x244182=_0x51457d+0x1,_0x3465dc=0x0;for(;_0x274bd7[_0x244182]['id']!=_0x274bd7[_0x51457d]['pairId'];)_0x58ac('0xc5')==_0x274bd7[_0x244182][_0x58ac('0x3e')]?_0x3465dc++:_0x58ac('0x15')==_0x274bd7[_0x244182][_0x58ac('0x3e')]&&_0x3465dc--,_0x244182++;if(0x0!=_0x3465dc){if(_0x274bd7[_0x51457d][_0x58ac('0xb3')])_0x274bd7[_0x51457d][_0x58ac('0x49')]=!0x0;else for(;_0x244182!=_0x51457d;)_0x274bd7[_0x244182][_0x58ac('0xb3')]&&0x0!=_0x274bd7[_0x244182][_0x58ac('0xbc')]&&(_0x274bd7[_0x244182][_0x58ac('0x49')]=!0x0,_0xf7da83[_0x58ac('0xca')](_0x274bd7[_0x244182][_0x58ac('0xf1')])),_0x244182--;}}return _0x274bd7['filter'](_0x52d084=>!_0x52d084[_0x58ac('0x49')]);}['_removeUnsupportedChanges'](_0x12f303){const _0x56c854=this[_0x58ac('0x5')]['model'][_0x58ac('0x6c')];for(let _0x23d5f6=0x0;_0x23d5f6<_0x12f303[_0x58ac('0x10c')];_0x23d5f6++){if(!(_0x12f303[_0x23d5f6][_0x58ac('0x62')]||_0x12f303[_0x23d5f6][_0x58ac('0x4e')]||_0x12f303[_0x23d5f6][_0x58ac('0xb3')]||_0x12f303[_0x23d5f6][_0x58ac('0x1a')]))continue;if(0x0==_0x12f303[_0x23d5f6][_0x58ac('0xbc')])continue;const _0x283e0e=_0x12f303[_0x23d5f6][_0x58ac('0x11f')];_0x56c854[_0x58ac('0x3d')](_0x283e0e)||_0x56c854[_0x58ac('0x75')](_0x283e0e)||(_0x12f303[_0x23d5f6][_0x58ac('0x62')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x62')],_0x12f303[_0x23d5f6][_0x58ac('0x4e')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x4e')],_0x12f303[_0x23d5f6][_0x58ac('0x1a')]&&delete _0x12f303[_0x23d5f6][_0x58ac('0x1a')],_0x12f303[_0x23d5f6][_0x58ac('0xb3')]&&(_0x12f303[_0x23d5f6][_0x58ac('0x49')]=!0x0));}return _0x12f303[_0x58ac('0x5e')](_0x47109b=>!_0x47109b['isIncorrect']);}['_makeModelFromTape'](_0x204f9b,_0x234e87,_0x3d7390){const _0x436aeb=new _0x5b17ee(),_0x3b93a6=[],_0x453e3d=new Map(),_0x532914=this[_0x58ac('0x5')][_0x58ac('0x10e')],_0x1d130f=_0x532914[_0x58ac('0x6c')],_0x2db175=[_0x436aeb],_0x5bd336={},_0x3cb789={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x5e9ba8=null;const _0x1061ca=[0x0];for(let _0x7c9fa2=0x0;_0x7c9fa2<_0x204f9b[_0x58ac('0x10c')];_0x7c9fa2++){let _0x271956,_0x4cc52b;if(_0x58ac('0xc5')===_0x204f9b[_0x7c9fa2][_0x58ac('0x3e')]){_0x271956=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca);const _0x13f3c1=new _0x6d2216(_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x11a')],_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')]['getAttributes']());_0x2db175[0x0][_0x58ac('0x4')](_0x13f3c1),_0x1061ca[_0x58ac('0xf2')](0x0),_0x2db175[_0x58ac('0x5c')](_0x13f3c1),_0x4cc52b=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca),_0x5e9ba8=null;}else{if('elementEnd'===_0x204f9b[_0x7c9fa2][_0x58ac('0x3e')])_0x2db175[_0x58ac('0x89')](),_0x271956=_0x532914['createPositionFromPath'](_0x436aeb,_0x1061ca),_0x1061ca['pop'](),_0x1061ca[_0x1061ca[_0x58ac('0x10c')]-0x1]++,_0x4cc52b=_0x532914['createPositionFromPath'](_0x436aeb,_0x1061ca),_0x5e9ba8=null;else{if(_0x271956=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca),_0x5e9ba8&&_0x256491(_0x5e9ba8,_0x204f9b[_0x7c9fa2]['item']))_0x5e9ba8[_0x58ac('0x40')]+=_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')]['data'];else{const _0x50ac4e=new _0x11bd6d(_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x9')],_0x204f9b[_0x7c9fa2]['item'][_0x58ac('0x8')]());_0x2db175[0x0][_0x58ac('0x4')](_0x50ac4e),_0x5e9ba8=_0x50ac4e;}_0x1061ca[_0x1061ca[_0x58ac('0x10c')]-0x1]+=_0x204f9b[_0x7c9fa2][_0x58ac('0x11f')][_0x58ac('0x111')],_0x4cc52b=_0x532914[_0x58ac('0x92')](_0x436aeb,_0x1061ca);}}for(const _0x42aad9 of _0x204f9b[_0x7c9fa2][_0x58ac('0x53')])_0x453e3d['set'](_0x42aad9,{'start':_0x271956,'end':null});_0x5b7fb1(_0x58ac('0x1a'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0x4e'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0xb3'),_0x7c9fa2,_0x271956,_0x4cc52b),_0x5b7fb1(_0x58ac('0x62'),_0x7c9fa2,_0x271956,_0x4cc52b);for(const _0x37a4bb of _0x204f9b[_0x7c9fa2]['markersEnd']){_0x453e3d[_0x58ac('0xfb')](_0x37a4bb)['end']=_0x4cc52b;}}for(const [_0x2d1279,_0x1f0a4b]of _0x453e3d){const _0x4a16f7=this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0x120')](_0x1f0a4b[_0x58ac('0xf5')],_0x1f0a4b[_0x58ac('0x73')]);_0x436aeb[_0x58ac('0x21')][_0x58ac('0x4c')](_0x2d1279,_0x4a16f7);}return _0x3b93a6[_0x58ac('0xee')]((_0xd21946,_0xf09d47)=>{const _0x5e31f8=_0x436aeb[_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0xd21946['id']),_0x4d4186=_0x436aeb[_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0xf09d47['id']);return _0x5e31f8[_0x58ac('0xf5')][_0x58ac('0x116')](_0x4d4186[_0x58ac('0xf5')])?-0x1:_0x5e31f8[_0x58ac('0xf5')][_0x58ac('0x97')](_0x4d4186[_0x58ac('0xf5')])?0x1:_0x5e31f8[_0x58ac('0x73')][_0x58ac('0x116')](_0x4d4186[_0x58ac('0x73')])?-0x1:_0x5e31f8[_0x58ac('0x73')][_0x58ac('0x97')](_0x4d4186[_0x58ac('0x73')])?0x1:_0x58ac('0xca')===_0xd21946[_0x58ac('0x3e')]?-0x1:0x1;}),{'root':_0x436aeb,'changes':_0x3b93a6};function _0x5b7fb1(_0x285572,_0x4fa179,_0xc6c0de,_0x5ef710){const _0x6ff325=!!_0x204f9b[_0x4fa179][_0x285572],_0x432ee4=_0x6ff325?_0x204f9b[_0x4fa179][_0x285572]['userId']:null,_0x39f28c=_0x4fa179===_0x204f9b['length']-0x1,_0x12b794=_0x3cb789[_0x285572][0x0],_0x40e393=_0x1d130f['isObject'](_0x204f9b[_0x4fa179]['item']);!_0x5bd336[_0x285572]&&_0x6ff325?_0x5bd336[_0x285572]={'start':_0xc6c0de,'tapeItem':_0x204f9b[_0x4fa179],'userId':_0x432ee4,'type':_0x285572}:_0x5bd336[_0x285572]&&!_0x6ff325?(_0x5bd336[_0x285572][_0x58ac('0x73')]=_0xc6c0de,_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]=null):_0x5bd336[_0x285572]&&_0x6ff325&&_0x5bd336[_0x285572][_0x58ac('0xba')]!==_0x432ee4&&(_0x5bd336[_0x285572][_0x58ac('0x73')]=_0xc6c0de,_0x12b794&&_0x12b794[_0x58ac('0xba')]===_0x5bd336[_0x285572][_0x58ac('0xba')]||_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]={'start':_0xc6c0de,'tapeItem':_0x204f9b[_0x4fa179],'userId':_0x432ee4,'type':_0x285572}),_0x5bd336[_0x285572]&&_0x40e393&&(_0x58ac('0xc5')!==_0x204f9b[_0x4fa179][_0x58ac('0x3e')]||_0x12b794&&_0x12b794[_0x58ac('0xba')]===_0x432ee4||_0x3cb789[_0x285572][_0x58ac('0x5c')]({'userId':_0x432ee4,'object':_0x204f9b[_0x4fa179][_0x58ac('0x11f')],'change':_0x5bd336[_0x285572]}),_0x58ac('0x15')===_0x204f9b[_0x4fa179][_0x58ac('0x3e')]&&_0x12b794&&_0x12b794[_0x58ac('0x3')]===_0x204f9b[_0x4fa179][_0x58ac('0x11f')]&&(_0x3cb789[_0x285572][_0x58ac('0x89')](),_0x5bd336[_0x285572]=_0x12b794['change'])),_0x5bd336[_0x285572]&&_0x39f28c&&(_0x5bd336[_0x285572]['end']=_0x5ef710,_0x485d04(_0x5bd336[_0x285572]),_0x5bd336[_0x285572]=null);}function _0x485d04({start:_0x39061e,end:_0x51f84c,tapeItem:_0x2e9e03,userId:_0x1a8739,type:_0x20b659}){const _0x4008b0=_0x2e9e03['item'],_0x464975=_0x532914[_0x58ac('0x6c')][_0x58ac('0x3d')](_0x4008b0)&&!_0x532914[_0x58ac('0x6c')][_0x58ac('0x75')](_0x4008b0),_0x490c90=_0x39061e['nodeAfter']==_0x51f84c[_0x58ac('0x98')]&&_0x51f84c[_0x58ac('0xec')];if(_0x464975&&_0x490c90)return;const _0xa6c584=_0x532914[_0x58ac('0x120')](_0x39061e,_0x51f84c),_0x14cfc7=_0x234e87[_0x58ac('0xfb')](_0x1a8739),_0xda4ae9=new _0x55c7f1({'author':_0x14cfc7,'type':_0x58ac('0x62')==_0x20b659||_0x58ac('0x4e')==_0x20b659?_0x58ac('0xca'):'remove','data':{'isSuggestion':_0x58ac('0x4e')==_0x20b659||'isRemoveSuggestion'==_0x20b659},'createdAt':new Date(),'rootName':_0x3d7390});_0x3b93a6[_0x58ac('0xf2')](_0xda4ae9),_0x436aeb['markers'][_0x58ac('0x4c')](_0x58ac('0xc2')+_0xda4ae9['id'],_0xa6c584);}function _0x256491(_0x308dcf,_0x4d5ef6){const _0x5a52be=_0x308dcf[_0x58ac('0x8')](),_0x15d78e=_0x4d5ef6[_0x58ac('0x8')]();for(const _0x3f462a of _0x5a52be){if(_0x3f462a[0x1]!==_0x4d5ef6[_0x58ac('0xc1')](_0x3f462a[0x0]))return!0x1;_0x15d78e[_0x58ac('0x59')]();}return _0x15d78e[_0x58ac('0x59')]()['done'];}}['_setConversion'](){this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('upcast')[_0x58ac('0x100')]({'view':'revision'}),this[_0x58ac('0x5')][_0x58ac('0x63')]['for'](_0x58ac('0x8e'))[_0x58ac('0xcc')]({'model':_0x58ac('0x47'),'view':_0x28d340=>{const _0x5befc6=_0x28d340[_0x58ac('0x27')][_0x58ac('0x26')](':')[0x1],_0x4ee5db=this[_0x58ac('0xa7')](_0x5befc6);if(!_0x4ee5db)return null;const _0x2b8571='add'==_0x4ee5db[_0x58ac('0x3e')]?'insertion':_0x58ac('0x103'),_0x28faad=[_0x58ac('0x42'),_0x58ac('0xc0')+_0x2b8571];return _0x4ee5db[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0x28faad[_0x58ac('0xf2')]('ck-suggestion-marker-'+_0x2b8571+'-new'),this[_0x58ac('0x9e')]==_0x4ee5db&&_0x28faad[_0x58ac('0xf2')](_0x58ac('0x7')),{'classes':_0x28faad,'attributes':{'data-change-id':_0x5befc6}};}}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))['add'](_0x40ef9b=>{_0x40ef9b['on'](_0x58ac('0xd0'),(_0x41f2ae,_0x1a5321,_0x4341c8)=>{const _0x287067=_0x1a5321[_0x58ac('0x122')][_0x58ac('0x67')](0x0);if(!_0x287067||!_0x287067['is'](_0x58ac('0xc8'),'code'))return;if(!_0x4341c8['consumable']['consume'](_0x287067,{'attributes':[_0x58ac('0xd8'),'vid_end']}))return;const _0x239a61=_0x1a5321[_0x58ac('0x31')][_0x58ac('0xf5')][_0x58ac('0x60')];_0x4341c8['writer']['setAttribute'](_0x58ac('0xd8'),_0x287067[_0x58ac('0xc1')](_0x58ac('0xd8')),_0x239a61),_0x4341c8['writer'][_0x58ac('0x119')](_0x58ac('0x7b'),_0x287067['getAttribute'](_0x58ac('0x7b')),_0x239a61);},{'priority':_0x58ac('0x8a')});}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('upcast')[_0x58ac('0xca')](_0x183431=>{_0x183431['on']('element',(_0x2dbf2a,_0x26005b,_0x5ade65)=>{if(!_0x5ade65[_0x58ac('0x5a')]['consume'](_0x26005b[_0x58ac('0x122')],{'attributes':[_0x58ac('0xd8'),'vid_end']}))return;if(_0x26005b[_0x58ac('0x31')][_0x58ac('0xa1')])return;const _0x12c9d1=_0x26005b[_0x58ac('0x31')]['start'][_0x58ac('0x60')];_0x12c9d1['hasAttribute'](_0x58ac('0xd8'))||_0x12c9d1[_0x58ac('0xfc')]('vid')||(_0x5ade65[_0x58ac('0x123')][_0x58ac('0x119')](_0x58ac('0xd8'),_0x26005b[_0x58ac('0x122')][_0x58ac('0xc1')]('vid_start'),_0x12c9d1),_0x5ade65[_0x58ac('0x123')]['setAttribute'](_0x58ac('0x7b'),_0x26005b[_0x58ac('0x122')][_0x58ac('0xc1')](_0x58ac('0x7b')),_0x12c9d1));},{'priority':_0x58ac('0x8a')});}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x41')]({'view':{'name':_0x58ac('0xff'),'attributes':{'vid':!0x0}},'model':{'key':_0x58ac('0x2d'),'value':_0x3b9134=>_0x3b9134[_0x58ac('0xc1')](_0x58ac('0x2d'))}}),this['editor'][_0x58ac('0x10e')][_0x58ac('0x6c')]['on'](_0x58ac('0xf0'),(_0x3cb2e1,[,_0x3d4a46])=>{[_0x58ac('0xd8'),'vid_end',_0x58ac('0x2d')]['includes'](_0x3d4a46)&&(_0x3cb2e1['return']=!0x0,_0x3cb2e1['stop']());},{'priority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')]('dataDowncast')['add'](_0x3fe0b8=>{_0x3fe0b8['on'](_0x58ac('0x115'),(_0x24eec3,_0x10faa5,_0xf0c627)=>{if('\x20'!=_0x10faa5['item'][_0x58ac('0x9')]||_0x10faa5[_0x58ac('0x11f')]['parent'][_0x58ac('0x50')]>0x1)return;if(!_0xf0c627[_0x58ac('0x5a')][_0x58ac('0xef')](_0x10faa5[_0x58ac('0x11f')],_0x24eec3['name']))return;const _0x5d87de=_0xf0c627['writer'],_0x27ee8d=_0xf0c627[_0x58ac('0x3b')][_0x58ac('0x34')](_0x10faa5['range']);_0x5d87de[_0x58ac('0xa9')](_0x27ee8d,_0x5d87de[_0x58ac('0x64')](_0x58ac('0xff')));});}),this[_0x58ac('0x5')][_0x58ac('0x63')]['for'](_0x58ac('0x84'))['markerToData']({'model':_0x58ac('0x47')}),this[_0x58ac('0x5')][_0x58ac('0x4a')]['downcastDispatcher']['on'](_0x58ac('0x32'),function(_0x4c63c2){const _0x509d43=_0x4c63c2['plugins'][_0x58ac('0xfb')](_0x58ac('0xe1'));return(_0x3cf00d,_0x9cce55,_0x360afb)=>{const _0x4e8d3b=_0x9cce55[_0x58ac('0x27')][_0x58ac('0x26')](':')[0x1],_0xef9cc1=_0x509d43[_0x58ac('0xa7')](_0x4e8d3b);if(!_0xef9cc1)return null;const _0x352949=_0x58ac('0xca')==_0xef9cc1[_0x58ac('0x3e')]?'split':'merge';if(!_0x360afb[_0x58ac('0x5a')][_0x58ac('0x6e')](_0x9cce55[_0x58ac('0xa8')],_0x3cf00d[_0x58ac('0x11a')]))return;const _0x594361=_0x9cce55['markerRange']['getWalker'](),_0x523217=_0x9cce55[_0x58ac('0xa8')]['start'],_0x51c5b0=_0x4c63c2[_0x58ac('0x10e')]['schema'];let _0x4ed93e=null,_0x6b3045=null,_0x2020bf=!0x1,_0x60f8ea=!0x1;for(const _0x2d4b7d of _0x594361){const _0x1ca31c=_0x2d4b7d[_0x58ac('0x11f')];_0x2020bf=_0x2020bf||_0x51c5b0[_0x58ac('0x88')](_0x1ca31c);const _0xcf032a=_0x360afb[_0x58ac('0x3b')][_0x58ac('0xa3')](_0x1ca31c);if(_0xcf032a&&_0xcf032a['getCustomProperty'](_0x58ac('0xa')))return;_0x58ac('0x15')==_0x2d4b7d[_0x58ac('0x3e')]&&(_0x51c5b0[_0x58ac('0x3d')](_0x1ca31c)&&!_0x51c5b0[_0x58ac('0x75')](_0x1ca31c)&&(_0x1ca31c[_0x58ac('0x6f')]||_0x523217[_0x58ac('0x44')]?_0x4ed93e&&_0x4ed93e[_0x58ac('0x98')]==_0x1ca31c||(_0x4ed93e=_0x1ca31c,_0x3f980c(_0x2d4b7d[_0x58ac('0xd5')]),_0x60f8ea=!0x0):_0x6b3045=_0x6b3045||_0x2d4b7d[_0x58ac('0xd5')]));}function _0x3f980c(_0x511601){const _0x542a34=_0x360afb[_0x58ac('0x123')][_0x58ac('0xa6')]('span',{'class':_0x58ac('0xc0')+_0x352949}),_0x4236b5=_0x360afb[_0x58ac('0x3b')]['toViewPosition'](_0x511601);_0xef9cc1[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0x360afb['writer'][_0x58ac('0x4d')]('ck-suggestion-marker-'+_0x352949+_0x58ac('0xe9'),_0x542a34),_0x509d43[_0x58ac('0x9e')]==_0xef9cc1&&_0x360afb['writer'][_0x58ac('0x4d')](_0x58ac('0x7'),_0x542a34),_0x360afb[_0x58ac('0x123')][_0x58ac('0x81')](_0x4236b5,_0x542a34),_0x360afb[_0x58ac('0x3b')][_0x58ac('0x7c')](_0x542a34,_0x9cce55[_0x58ac('0x27')]);}_0x2020bf||_0x60f8ea||!_0x6b3045||_0x3f980c(_0x6b3045);};}(this[_0x58ac('0x5')]),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0xf6'),(_0x596ee7,_0x17c594,_0x538a9f)=>{const _0x399c69=_0x538a9f[_0x58ac('0x3b')][_0x58ac('0xd9')](_0x17c594[_0x58ac('0x27')]);if(_0x399c69)for(const _0x62480e of _0x399c69)(_0x62480e[_0x58ac('0x90')]('ck-suggestion-marker-split')||_0x62480e[_0x58ac('0x90')](_0x58ac('0x85')))&&(_0x538a9f[_0x58ac('0x3b')]['unbindElementFromMarkerName'](_0x62480e,_0x17c594['markerName']),_0x538a9f[_0x58ac('0x123')][_0x58ac('0x87')](_0x62480e));},{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0x32'),(_0x4d64f3,_0x9a956c,_0xe20cd9)=>{const _0x21aea0=_0x9a956c[_0x58ac('0x27')]['split'](':')[0x1],_0x135a5f=this[_0x58ac('0xa7')](_0x21aea0);if(!_0x135a5f)return null;const _0x44e4c8='add'==_0x135a5f[_0x58ac('0x3e')]?_0x58ac('0x26'):_0x58ac('0x8f');if(_0xe20cd9[_0x58ac('0x5a')][_0x58ac('0x6e')](_0x9a956c[_0x58ac('0xa8')],_0x4d64f3['name']))for(const _0x8f09c of _0x9a956c[_0x58ac('0xa8')][_0x58ac('0x3f')]()){if(!_0x8f09c['is'](_0x58ac('0xc8'),_0x58ac('0xa0')))continue;const _0x73c7f0=_0xe20cd9['writer'][_0x58ac('0xa6')](_0x58ac('0xff'),{'class':_0x58ac('0xc0')+_0x44e4c8}),_0x3fb949=_0xe20cd9[_0x58ac('0x3b')][_0x58ac('0xa5')](this[_0x58ac('0x5')]['model']['createPositionBefore'](_0x8f09c));_0x135a5f[_0x58ac('0x9')][_0x58ac('0x2f')]&&_0xe20cd9[_0x58ac('0x123')][_0x58ac('0x4d')](_0x58ac('0xc0')+_0x44e4c8+_0x58ac('0xe9'),_0x73c7f0),this[_0x58ac('0x9e')]==_0x135a5f&&_0xe20cd9[_0x58ac('0x123')]['addClass'](_0x58ac('0x7'),_0x73c7f0),_0xe20cd9[_0x58ac('0x123')][_0x58ac('0x81')](_0x3fb949,_0x73c7f0),_0xe20cd9[_0x58ac('0x3b')]['bindElementToMarker'](_0x73c7f0,_0x9a956c[_0x58ac('0x27')]);}},{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')]['on'](_0x58ac('0xf9'),()=>{this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xf9')](_0x4c0a8e=>{for(const _0x2be7bd of this['editor']['model'][_0x58ac('0xde')][_0x58ac('0x102')]()){const _0x356df8=this[_0x58ac('0x5')][_0x58ac('0x10e')][_0x58ac('0xde')][_0x58ac('0x2')](_0x2be7bd),_0x48fce7=this['editor'][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x2be7bd);if(_0x48fce7){const _0x3f045e=_0x356df8[_0x58ac('0xc1')](_0x58ac('0x45'));if(_0x4c0a8e[_0x58ac('0x9d')](_0x58ac('0x117'),_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')]('ck-revision-history-root-add',_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')](_0x58ac('0x6'),_0x48fce7),_0x4c0a8e[_0x58ac('0xaf')](_0x58ac('0x7d'),_0x48fce7),_0x3f045e){const _0x28bbb1=this[_0x58ac('0xa7')](_0x3f045e);if(!_0x28bbb1)return null;_0x4c0a8e[_0x58ac('0x119')](_0x58ac('0x117'),_0x3f045e,_0x48fce7),_0x4c0a8e['addClass'](_0x58ac('0x1c')+_0x28bbb1[_0x58ac('0x3e')],_0x48fce7),this['activeChange']==_0x28bbb1&&_0x4c0a8e['addClass'](_0x58ac('0x7d'),_0x48fce7);}}}});}),this['editor'][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x100')]({'view':_0x58ac('0xe'),'model':_0x416d83=>'revision-comment:'+_0x416d83,'converterPriority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0xb'))[_0x58ac('0x100')]({'view':_0x58ac('0xd'),'model':_0x375573=>_0x58ac('0x13')+_0x375573,'converterPriority':_0x58ac('0xb2')}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0x84'))[_0x58ac('0x11e')]({'model':_0x58ac('0x17'),'view':_0x3a9cff=>({'name':'suggestion:'+_0x3a9cff,'group':_0x58ac('0x17')}),'converterPriority':'highest'}),this[_0x58ac('0x5')][_0x58ac('0x63')][_0x58ac('0x101')](_0x58ac('0x8e'))['markerToHighlight']({'model':'revision-suggestion','view':_0x30fb83=>{const _0x567587=_0x30fb83['markerName'][_0x58ac('0x26')](':')[0x1];return _0x58ac('0xfd')!=_0x567587&&'deletion'!=_0x567587?null:{'classes':['ck-suggestion-preview-marker',_0x58ac('0x16')+_0x567587]};}}),this[_0x58ac('0x5')]['editing'][_0x58ac('0xe5')]['on'](_0x58ac('0x57'),et(this['editor'],'merge'),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x58ac('0x5')],'split'),{'priority':_0x58ac('0xc7')}),this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0xe5')]['on'](_0x58ac('0xb7'),(_0x1a4735,_0xb2e0e4,_0x28bc5e)=>{const _0x592dfb=_0x28bc5e['mapper']['markerNameToElements'](_0xb2e0e4[_0x58ac('0x27')]);if(_0x592dfb)for(const _0x496a92 of _0x592dfb)_0x496a92['is'](_0x58ac('0x2a'))&&(_0x28bc5e['mapper'][_0x58ac('0xe8')](_0x496a92,_0xb2e0e4[_0x58ac('0x27')]),_0x28bc5e[_0x58ac('0x123')][_0x58ac('0x87')](_0x496a92));},{'priority':_0x58ac('0xc7')});}[_0x58ac('0xa7')](_0x582317){return this[_0x58ac('0x30')][_0x58ac('0xfb')](_0x582317);}[_0x58ac('0xa4')](_0x476515){return this[_0x58ac('0xc')]&&this[_0x58ac('0xc')][_0x58ac('0xeb')](),this[_0x58ac('0xc')]=new _0x32aafe(this['editor']['locale'],_0x476515),this[_0x58ac('0xc')];}['_initInteractions'](){this[_0x58ac('0x5')]['model'][_0x58ac('0xde')][_0x58ac('0x28')][_0x58ac('0x3a')](_0x58ac('0x47')),this['on'](_0x58ac('0x6a'),(_0x52af78,_0xb4cdd7,_0x16d83d,_0x50cf7b)=>{_0x50cf7b&&this[_0x58ac('0x68')]['remove'](_0x50cf7b),_0x16d83d&&(this['_balloon'][_0x58ac('0xca')]({'view':_0x16d83d,'stackId':_0x58ac('0x86'),'position':{'target':()=>{const _0xc5472e=this[_0x58ac('0x5')][_0x58ac('0x4a')],_0x3cb93d=this[_0x58ac('0xa7')](_0x16d83d[_0x58ac('0x61')]);let _0x74bbd5;if(_0x3cb93d[_0x58ac('0x9')][_0x58ac('0xd4')]){const _0x447fcf=_0xc5472e[_0x58ac('0x121')]['getDomRoot'](_0x3cb93d['rootName']);_0x74bbd5=Array['from'](_0x447fcf['getClientRects']());}else{const _0x40b5ac=this[_0x58ac('0x5')]['model'][_0x58ac('0x21')][_0x58ac('0xfb')]('revision:'+_0x16d83d['changeId']);_0x74bbd5=Array[_0x58ac('0x93')](_0xc5472e[_0x58ac('0x3b')][_0x58ac('0xd9')](_0x40b5ac['name']))[_0x58ac('0x110')](_0x966357=>_0xc5472e[_0x58ac('0x121')][_0x58ac('0x114')][_0x58ac('0xb9')](_0x966357))[_0x58ac('0x110')](_0x33e51f=>Array[_0x58ac('0x93')](_0x33e51f[_0x58ac('0x8b')]()))[_0x58ac('0x109')]();}if(!this[_0x58ac('0xad')])return _0x74bbd5[0x0];return _0x74bbd5[_0x58ac('0x77')](_0x1a81c6=>_0x1a81c6[_0x58ac('0xf8')]-0x3<=this['_activeViewTarget']['y']&&_0x1a81c6[_0x58ac('0xbe')]+0x3>=this[_0x58ac('0xad')]['y']&&_0x1a81c6[_0x58ac('0xb6')]-0x3<=this[_0x58ac('0xad')]['x']&&_0x1a81c6['right']+0x3>=this[_0x58ac('0xad')]['x'])||_0x74bbd5[0x0];}}}),this[_0x58ac('0x68')][_0x58ac('0x1')]('revisionHistoryLabel'));}),this['on'](_0x58ac('0x10b'),(_0x2d4d08,_0xab5ae5,_0x276717,_0x177b21)=>{this[_0x58ac('0x56')]=_0x276717?this[_0x58ac('0xa4')](_0x276717):null,this[_0x58ac('0x5')]['model'][_0x58ac('0xf9')](()=>{const _0x18ea59=this[_0x58ac('0x5')]['editing'];_0x177b21&&(_0x177b21[_0x58ac('0x9')][_0x58ac('0xd4')]?_0x18ea59[_0x58ac('0x121')][_0x58ac('0xf9')](_0x389933=>{_0x389933[_0x58ac('0xaf')]('ck-revision-history-root--active',_0x18ea59[_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x177b21[_0x58ac('0xae')]));}):_0x18ea59[_0x58ac('0x48')](_0x58ac('0xc2')+_0x177b21['id'])),_0x276717&&(_0x276717[_0x58ac('0x9')]['isOnRoot']?_0x18ea59[_0x58ac('0x121')][_0x58ac('0xf9')](_0x4754f2=>{_0x4754f2[_0x58ac('0x4d')](_0x58ac('0x7d'),_0x18ea59[_0x58ac('0x121')][_0x58ac('0xde')][_0x58ac('0x2')](_0x276717['rootName']));}):_0x18ea59[_0x58ac('0x48')](_0x58ac('0xc2')+_0x276717['id']));});}),this[_0x58ac('0x94')](this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')],_0x58ac('0x14'),(_0x187323,_0x10070a)=>{if(this['activeChange'])return;const _0x53a457=this['_findChangeIdFromDomTarget'](_0x10070a['target']),_0x442a4a=this[_0x58ac('0x30')][_0x58ac('0xfb')](_0x53a457);_0x442a4a?(this[_0x58ac('0xad')]={'x':_0x10070a[_0x58ac('0x7a')]['x'],'y':_0x10070a['domEvent']['y']},this[_0x58ac('0x56')]=this[_0x58ac('0xa4')](_0x442a4a)):(this['_activeViewTarget']=null,this['activeView']=null);}),this[_0x58ac('0x94')](this[_0x58ac('0x5')][_0x58ac('0x4a')][_0x58ac('0x121')][_0x58ac('0xde')],_0x58ac('0x106'),(_0xf1057d,_0x36f4a8)=>{const _0x4fa5a2=this[_0x58ac('0x76')](_0x36f4a8[_0x58ac('0x1f')]),_0x164c80=this[_0x58ac('0x30')]['get'](_0x4fa5a2);_0x164c80?(this[_0x58ac('0xad')]={'x':_0x36f4a8[_0x58ac('0x7a')]['x'],'y':_0x36f4a8[_0x58ac('0x7a')]['y']},_0x164c80===this['activeChange']?this[_0x58ac('0x68')][_0x58ac('0x6b')]():this[_0x58ac('0x9e')]=_0x164c80):(this[_0x58ac('0xad')]=null,this[_0x58ac('0x9e')]=null);});}[_0x58ac('0x76')](_0x4e7c8d){do{const _0x3ac9b3=_0x4e7c8d[_0x58ac('0xc1')](_0x58ac('0x117'));if(_0x3ac9b3)return _0x3ac9b3;_0x4e7c8d=_0x4e7c8d[_0x58ac('0x98')];}while(_0x4e7c8d);return null;}[_0x58ac('0xbf')](){this[_0x58ac('0x5')]['model'][_0x58ac('0xf9')](_0xcfc3b1=>{for(const _0x1e489b of this['editor'][_0x58ac('0x10e')][_0x58ac('0x21')])_0xcfc3b1[_0x58ac('0x20')](_0x1e489b);});}}function et(_0x1bfddb,_0x258667){return(_0x39c1cc,_0xa960a7,_0x4a732c)=>{if(!_0x4a732c['consumable'][_0x58ac('0x6e')](_0xa960a7['markerRange'],_0x39c1cc[_0x58ac('0x11a')]))return;const _0x31629a=_0xa960a7[_0x58ac('0xa8')][_0x58ac('0x46')](),_0x2e0800=_0xa960a7[_0x58ac('0xa8')][_0x58ac('0xf5')],_0x5279c8=_0x1bfddb[_0x58ac('0x10e')][_0x58ac('0x6c')];let _0x529b46=null,_0x4b9b4d=null,_0x1fd6e6=!0x1,_0x42d79e=!0x1;for(const _0x5c3e7f of _0x31629a){const _0x26a3b4=_0x5c3e7f['item'];_0x1fd6e6=_0x1fd6e6||_0x5279c8[_0x58ac('0x88')](_0x26a3b4);const _0x54461f=_0x4a732c[_0x58ac('0x3b')]['toViewElement'](_0x26a3b4);if(_0x54461f&&_0x54461f[_0x58ac('0x91')](_0x58ac('0xa')))return;_0x58ac('0x15')==_0x5c3e7f[_0x58ac('0x3e')]&&(_0x5279c8[_0x58ac('0x3d')](_0x26a3b4)&&!_0x5279c8[_0x58ac('0x75')](_0x26a3b4)&&(_0x26a3b4[_0x58ac('0x6f')]||_0x2e0800[_0x58ac('0x44')]?_0x529b46&&_0x529b46[_0x58ac('0x98')]==_0x26a3b4||(_0x529b46=_0x26a3b4,_0x5b8c82(_0x5c3e7f[_0x58ac('0xd5')]),_0x42d79e=!0x0):_0x4b9b4d=_0x4b9b4d||_0x5c3e7f[_0x58ac('0xd5')]));}function _0x5b8c82(_0x475317){const _0x169ee0=_0x4a732c[_0x58ac('0x3b')][_0x58ac('0xa5')](_0x475317),_0x54cdfe=_0x4a732c[_0x58ac('0x123')][_0x58ac('0xa6')](_0x58ac('0xff'),{'class':_0x58ac('0x16')+_0x258667});_0x4a732c[_0x58ac('0x123')]['insert'](_0x169ee0,_0x54cdfe),_0x4a732c['mapper']['bindElementToMarker'](_0x54cdfe,_0xa960a7[_0x58ac('0x27')]);}_0x1fd6e6||_0x42d79e||!_0x4b9b4d||_0x5b8c82(_0x4b9b4d);};}export class RestoreRevisionCommand extends _0x5b14aa{constructor(_0x375a5c){super(_0x375a5c);const _0xc891f=_0x375a5c[_0x58ac('0x79')][_0x58ac('0xfb')](d);this[_0x58ac('0x58')]=!0x1,this[_0x58ac('0x94')](_0xc891f,_0x58ac('0x104'),()=>this[_0x58ac('0xcd')]()),this[_0x58ac('0x94')](_0xc891f,_0x58ac('0xfe'),()=>this[_0x58ac('0xcd')]());}[_0x58ac('0x70')](){const _0xb592d4=this[_0x58ac('0x5')],_0x5796b8=_0xb592d4[_0x58ac('0x79')][_0x58ac('0xfb')](d),_0x7eb84b=_0x5796b8[_0x58ac('0x11b')]?_0x5796b8['diff'][_0x58ac('0x96')]:null;_0xb592d4['config'][_0x58ac('0xfb')](_0x58ac('0x7e'))['restoreRevisionCallback'](_0x7eb84b);}[_0x58ac('0xcd')](){const {isReady:_0x3dc07e,isEnabled:_0x5dc750}=this[_0x58ac('0x5')][_0x58ac('0x79')][_0x58ac('0xfb')](d);this[_0x58ac('0x9c')]=_0x3dc07e&&_0x5dc750;}}export class ShowChangeCommand extends _0x5b14aa{constructor(_0x2a65e0,{direction:_0x4eb7ed}){super(_0x2a65e0);const _0x3be87e=_0x2a65e0['plugins']['get'](d);this[_0x58ac('0x58')]=!0x1,this['_step']='forward'===_0x4eb7ed?0x1:-0x1,this[_0x58ac('0x94')](_0x3be87e,_0x58ac('0x104'),()=>this['refresh']()),this['listenTo'](_0x3be87e,'change:isEnabled',()=>this[_0x58ac('0xcd')]()),this[_0x58ac('0x94')](_0x3be87e,'change:activeChange',()=>this[_0x58ac('0xcd')]());}[_0x58ac('0x70')](){const _0x5be006=this[_0x58ac('0x5')],_0x90bad4=_0x5be006['plugins'][_0x58ac('0xfb')](d),{isNavigationMode:_0xe5448e,currentChangeNumber:_0x8acb3d}=_0x90bad4;let _0x4dd9b4;if(_0x90bad4[_0x58ac('0x9e')]=_0xe5448e?_0x90bad4[_0x58ac('0xe0')]['changes']['get'](_0x8acb3d+this['_step']):_0x90bad4[_0x58ac('0xe0')][_0x58ac('0x36')][_0x58ac('0xd2')],_0x90bad4[_0x58ac('0x9e')][_0x58ac('0x9')][_0x58ac('0xd4')])_0x4dd9b4=_0x5be006[_0x58ac('0x4a')][_0x58ac('0x121')]['getDomRoot'](_0x90bad4[_0x58ac('0x9e')]['rootName']);else{const _0x51c5df=_0x5be006[_0x58ac('0x10e')][_0x58ac('0x21')][_0x58ac('0xfb')](_0x58ac('0xc2')+_0x90bad4['activeChange']['id']);_0x4dd9b4=_0x50d73d(_0x5be006[_0x58ac('0x4a')],_0x51c5df);}_0x69fb6c({'target':_0x4dd9b4,'viewportOffset':0x28});}[_0x58ac('0xcd')](){const {isNavigationMode:_0x5e43ef,currentChangeNumber:_0x489c84,numberOfChanges:_0x5aa8b7,isReady:_0x138782,isEnabled:_0x13a6e3}=this[_0x58ac('0x5')][_0x58ac('0x79')]['get'](d);this[_0x58ac('0x9c')]=!!(_0x13a6e3&&_0x138782&&_0x5aa8b7)&&(!_0x5e43ef||(0x1===this[_0x58ac('0x25')]?_0x489c84<_0x5aa8b7-0x1:_0x489c84>0x0));}}
|
|
23
|
+
const _0x14d3=['ck-revision-history-root-','comment','marked','isBlock','markerNameToElements','editingDowncast','ck-suggestion-marker--active','view','createRange','endIndex','consumable','_cleanUp','consume','_initInteractions','_changeIdToChange','isEqual','getAttribute','createPositionBefore','side','sort','catch','flat','collaboration.channelId','_fixObsoleteTags','first','activeChange','attributesAfter','showNextChange','isRemoved','get','_joinTapes','shift','isAfter','getRevision','forward','removeClass','index','forceDisabled','getCustomProperty','ck-revision-history-root-remove','useFillerType','filter','markerRange','indexOf','createRevision','adapter','highest','createRangeIn','splice','target','ck-suggestion-marker-','data','_findChangeIdFromDomTarget','_setDistance','insertion','createPositionFromPath','upcast','isIncorrect','nodeAfter','length','refresh','vid','addMarker:revision','softBreak','vid_start','isAtEnd','_sortAndFilterDiffChanges','modelRange','commands','markers','enqueueChange','repository','toData','clear','change:numberOfChanges','add','_revisions','markerToData','ck-revision-history-root-add','isRemoveSuggestion','oldRevisionId','roots','range','revision-suggestion','_makeModelFromTape','toViewPosition','maxOffset','_makeModelFromViewString','model','getRevisionRootsAttributes','isOnRoot','element:pre','getClientRects','previousPosition','isAtStart','config','set','revision-start','execute','parse','dataDowncast','getAttributes','code','addRoot','bottom','slice','attributesBefore','_getChangeFromId','_cleanMarkers','pairId','uiElement','_markInsertions','createAttributeElement','ck-suggestion-marker','ck-suggestion-preview-marker-','isBefore','concat','mouseover','map','removeMarker','revisionHistory','markersEnd','removeMarker:revision-suggestion','newRevisionId','toViewRange','_update','schema','RevisionViewer','getRevisionData','getWalker','merge','_removeRevisionMarkers','keys','rootName','data-change-id','has','elementStart','unbindElementFromMarkerName','item','push','_removeUnsupportedChanges','diff','_appendChild','setAttribute','bind','viewItem','vid_end','revision','getRootNames','elementEnd','attributes','mapper','loadRevisionData','all','_removeMissingPairs','_threeWayMerge','next','startsWith','_markMismatchedRemovedTags','WidgetToolbarRepository','userId','numberOfChanges','editor','error','hasClass','element','findIndex','showPreviousChange','isLimit','POSITIVE_INFINITY','getRoot','enableReadOnlyMode','_getViewForChange','revision:','hasAttribute','activeView','changes','_markMarkers','revision-comment:','isObject','isCollapsed','reconvertMarker','children','suggestion','change:isEnabled','elementToAttribute','default','end','compare','nextPosition','change:isReady','showStack','_step','level','abs','_getRevisionsRange','toViewElement','requires','domEvent','editing','domConverter','revisionHistoryLabel','test','_markSuggestions','type','remove','start','text','listenTo','init','data-revision-','writer','ck-suggestion-marker-merge','getIndex','span','RevisionsRepository','suggestion:','unshift','removeMarker:revision','affectsData','done','_activeViewTarget','restoreRevisionCallback','startIndex','stop','isAttached','isAdded','addHighlight','conversion','markerToHighlight','processor','ck-editor__editable__overlay','left','pluginName','detachRoot','high','attribute:vid','revisionHistoryAttachChange','_getViewObj','locale','changeId','nextSibling','addRevisionData','attachChange','getDomRoot','isEnabled','dataToMarker','_changeView','addClass','from','diffData','_setChanges','_processTape','resolve','markersStart','split','selection','distance','change:activeChange','plugins','_data','object','ck-suggestion-preview-marker','parent','delete','change','-new','destroy','isSuggestion','_balloon','downcastDispatcher','deletion','includes','mousedown','createUIElement','for','_refreshStartEndIndex','isAddSuggestion','isContent','name','document','_makeTape','return','insert','getChild','isReady','revision-viewer','string','ck-suggestion-marker-split','deletions','bindElementToMarker','ck-revision-history-root--active','observeMarkers','insertions','forEach','pop','markerName'];(function(_0x97f971,_0x14d391){const _0x192555=function(_0x5950e2){while(--_0x5950e2){_0x97f971['push'](_0x97f971['shift']());}};_0x192555(++_0x14d391);}(_0x14d3,0x8b));const _0x1925=function(_0x97f971,_0x14d391){_0x97f971=_0x97f971-0x0;let _0x192555=_0x14d3[_0x97f971];return _0x192555;};import{Plugin as _0x4017cf,Command as _0x2b2784}from'ckeditor5/src/core';import{scrollViewportToShowTarget as _0x5dd962}from'ckeditor5/src/utils';import{ContextualBalloon as _0x3615f4}from'ckeditor5/src/ui';import{DocumentFragment as _0x12449a,Element as _0x1f7d70,Text as _0x2e0e28,ViewDocumentFragment as _0x439cbb,ViewText as _0x1ce45d,ViewElement as _0x5b2eb0,ViewContainerElement as _0xe9c6bb,ViewAttributeElement as _0x2793fa,ViewEmptyElement as _0xc2f393,ViewRawElement as _0x47f86e,ViewUIElement as _0x22f86e}from'ckeditor5/src/engine';import{Users as _0x17324e,getMarkerDomElement as _0x2309da}from'ckeditor5-collaboration/src/collaboration-core';import _0x16f3cb from'./ui/revisionviewer/changedetailsview';import _0x266e32 from'./revisionsrepository';import _0x4d6880 from'./changeitem';import{default as _0x122eb2}from'./revisiondiff';import'../theme/revisionviewer.css';import{cloneDeep as _0x4ae206}from'lodash-es';const tt={'c':_0xe9c6bb,'a':_0x2793fa,'e':_0xc2f393,'r':_0x47f86e,'u':_0x22f86e};export default class d extends _0x4017cf{static get[_0x1925('0x5e')](){return'RevisionViewer';}static get[_0x1925('0x3a')](){return[_0x17324e,_0x3615f4,_0x266e32];}constructor(_0xf384b1){super(_0xf384b1),this['repository']=this[_0x1925('0x17')]['plugins']['get'](_0x1925('0x4c')),this[_0x1925('0xfe')]('activeChange',null),this[_0x1925('0xfe')](_0x1925('0x24'),null),this[_0x1925('0x52')]=null,this[_0x1925('0xfe')]('diff',null),this[_0x1925('0xfe')]('isReady',!0x1),this[_0x1925('0xfe')](_0x1925('0x6a'),!0x0),this['on'](_0x1925('0x2d'),(_0x5428a9,_0x6e4eac,_0x3330a1)=>{this[_0x1925('0xb7')]=null,this['activeView']=null,this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x7e')](_0x168e4c=>{for(const _0x3e1d97 of this['editor'][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')][_0x1925('0xef')])_0x3330a1?_0x168e4c[_0x1925('0xc1')]('ck-editor__editable__overlay',_0x3e1d97):_0x168e4c[_0x1925('0x6d')](_0x1925('0x5c'),_0x3e1d97);});}),this[_0x1925('0x5')]('isNavigationMode')['to'](this,'activeChange',_0x305791=>null!==_0x305791),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x2130f4,_0x3d87a3,_0x2df9c9)=>_0x2130f4&&_0x2df9c9?_0x3d87a3[_0x1925('0x25')][_0x1925('0x4a')](_0x2df9c9):0x0),this['bind'](_0x1925('0x16'))['to'](this,_0x1925('0x92'),this,_0x1925('0x2'),(_0x368b34,_0x46729d)=>_0x368b34?_0x46729d['changes'][_0x1925('0xd9')]:0x0),this[_0x1925('0x6c')]=null,this[_0x1925('0xac')]=new Map(),this[_0x1925('0xcb')]=null,this[_0x1925('0x82')]=this[_0x1925('0x17')][_0x1925('0x78')][_0x1925('0xbb')](_0x3615f4);}[_0x1925('0x46')](){const _0x3be827=this['editor'],_0x438883=new ShowChangeCommand(_0x3be827,{'direction':'backward'}),_0x2295ab=new ShowChangeCommand(_0x3be827,{'direction':_0x1925('0xc0')});(_0x3be827[_0x1925('0xe2')]['add'](_0x1925('0x1c'),_0x438883),_0x3be827['commands'][_0x1925('0xe9')](_0x1925('0xb9'),_0x2295ab),_0x3be827[_0x1925('0xe2')][_0x1925('0xe9')]('restoreRevision',new RestoreRevisionCommand(_0x3be827)),this['on'](_0x1925('0xe8'),()=>{_0x438883[_0x1925('0xda')](),_0x2295ab[_0x1925('0xda')]();}),this['_setConversion'](),this[_0x1925('0xab')](),_0x3be827[_0x1925('0x20')]('revision-viewer'),_0x3be827[_0x1925('0x78')][_0x1925('0x125')](_0x1925('0x14')))&&_0x3be827[_0x1925('0x78')][_0x1925('0xbb')](_0x1925('0x14'))[_0x1925('0xc3')](_0x1925('0x93'));}async[_0x1925('0x11e')](_0xd7f44){await this['loadRevisionData'](_0xd7f44);const _0x449ca1={};for(const _0x14dd5a in _0xd7f44[_0x1925('0x6f')]){if(_0xd7f44[_0x1925('0x6f')][_0x14dd5a][_0x1925('0x68')]&&!_0xd7f44[_0x1925('0x6f')][_0x14dd5a][_0x1925('0x68')][_0x1925('0x56')])continue;const _0x291e3e=this[_0x1925('0x121')](JSON['parse'](_0xd7f44[_0x1925('0x6f')][_0x14dd5a][_0x1925('0x9a')])),_0x27da06=this['editor'][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')],_0x3ac896=new _0x439cbb(_0x27da06,_0x291e3e[_0x1925('0x114')](_0x4bfdd8=>this[_0x1925('0x63')](_0x4bfdd8)));this['editor'][_0x1925('0xd1')][_0x1925('0x5b')]['useFillerType'](_0x1925('0xa0')),_0x449ca1[_0x14dd5a]=this['editor']['data']['processor'][_0x1925('0xe6')](_0x3ac896),this[_0x1925('0x17')]['data'][_0x1925('0x5b')][_0x1925('0xc6')](_0x1925('0x2f'));}return _0x449ca1;}async[_0x1925('0xf7')](_0x4cfaef){await this[_0x1925('0xd')](_0x4cfaef);const _0x38c2f8={};for(const _0x1050ad in _0x4cfaef[_0x1925('0x6f')])_0x4cfaef[_0x1925('0x6f')][_0x1050ad]['attachChange']&&!_0x4cfaef[_0x1925('0x6f')][_0x1050ad][_0x1925('0x68')][_0x1925('0x56')]||(_0x38c2f8[_0x1050ad]=_0x4cfaef['diffData'][_0x1050ad][_0x1925('0xb8')]||{});return _0x38c2f8;}['_removeRevisionMarkers'](_0x458bd4){return(_0x458bd4=_0x458bd4[_0x1925('0xc7')](_0x558fe4=>!_0x558fe4[_0x1925('0x8c')]||_0x1925('0xff')!==_0x558fe4[_0x1925('0x8c')]&&'revision-end'!==_0x558fe4[_0x1925('0x8c')]))[_0x1925('0x9b')](_0x2e4d6a=>{_0x1925('0x94')!=typeof _0x2e4d6a&&(_0x2e4d6a[_0x1925('0x2b')]=this['_removeRevisionMarkers'](_0x2e4d6a['children']),_0x2e4d6a[_0x1925('0xb')]=_0x2e4d6a[_0x1925('0xb')][_0x1925('0xc7')](_0x5d96c2=>!_0x5d96c2[0x0][_0x1925('0x12')](_0x1925('0x47'))));}),_0x458bd4;}async[_0x1925('0x31')](_0x1b6695,_0x5946b8,_0x1814f9=!0x1){if(!this['isEnabled'])return;const _0x41c3dc=this[_0x1925('0x2')],_0x20eb75=this[_0x1925('0xe5')],_0x5350c1=_0x1925('0x94')==typeof _0x1b6695?_0x20eb75[_0x1925('0xbf')](_0x1b6695):_0x1b6695,_0x478118=_0x1925('0x94')==typeof _0x5946b8?_0x20eb75['getRevision'](_0x5946b8):_0x5946b8,_0x4447eb=_0x5350c1['id'],_0x3952d5=_0x478118?_0x478118['id']:null;if(!_0x1814f9&&this[_0x1925('0x2')]&&this[_0x1925('0x2')]['newRevisionId']===_0x4447eb&&this[_0x1925('0x2')][_0x1925('0xee')]===_0x3952d5)return Promise['resolve']();this[_0x1925('0x92')]=!0x1,this[_0x1925('0x24')]=null,this[_0x1925('0xb7')]=null,this[_0x1925('0x2')]=new _0x122eb2(_0x4447eb,_0x3952d5);const _0x328c67=this[_0x1925('0x38')](_0x5350c1,_0x478118,!0x0)[_0x1925('0x114')](_0x4f454b=>this['loadRevisionData'](_0x4f454b));return _0x328c67['push'](new Promise(_0x5213fa=>{setTimeout(_0x5213fa,0x14);})),Promise[_0x1925('0xe')](_0x328c67)['then'](()=>{if(!this[_0x1925('0x6a')])return;this[_0x1925('0xa9')]();const _0x26101a=this['_getDiff'](_0x4447eb,_0x3952d5);for(const _0x287dbc of _0x26101a[_0x1925('0x25')])this[_0x1925('0xac')][_0x1925('0xfe')](_0x287dbc['id'],_0x287dbc);this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xe4')]({'isUndoable':!0x1},_0x2e6068=>{for(const _0x1138c6 of this['editor'][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x9')]())_0x2e6068[_0x1925('0x5f')](_0x1138c6);for(const _0x3c0265 of Object[_0x1925('0x122')](_0x26101a[_0x1925('0xf6')])){const _0x4e5291=_0x2e6068[_0x1925('0x105')](_0x3c0265);for(const _0x29e823 of Object['keys'](_0x26101a[_0x1925('0xb')][_0x3c0265]))_0x2e6068[_0x1925('0x4')](_0x29e823,_0x26101a[_0x1925('0xb')][_0x3c0265][_0x29e823],_0x4e5291);_0x2e6068[_0x1925('0x90')](_0x26101a[_0x1925('0xf6')][_0x3c0265],_0x4e5291,0x0);}}),this[_0x1925('0x2')][_0x1925('0x70')](this['_sortAndFilterDiffChanges'](_0x26101a[_0x1925('0x25')])),this[_0x1925('0x92')]=!0x0;})[_0x1925('0xb2')](_0x10fb4c=>{console[_0x1925('0x18')](_0x10fb4c),this[_0x1925('0xa9')](),_0x41c3dc&&(this[_0x1925('0x2')]=_0x41c3dc),this[_0x1925('0x92')]=!0x0;});}[_0x1925('0x67')](_0x1676a1,_0x2d4390){const _0x140e47=this[_0x1925('0xe5')][_0x1925('0xca')](_0x1676a1);return _0x140e47['on'](_0x1925('0x11b'),(_0x13cb22,_0x12d4c3,_0x221973)=>_0x2d4390(_0x12d4c3,_0x221973,_0x140e47)),this[_0x1925('0xe5')]['addRevision'](_0x140e47),_0x140e47;}[_0x1925('0xd')](_0x576ada){if(!_0x576ada||_0x576ada[_0x1925('0x6f')])return Promise[_0x1925('0x72')]();{const _0x2fb8cc=this[_0x1925('0x17')][_0x1925('0xfd')][_0x1925('0xbb')](_0x1925('0xb4'));return this[_0x1925('0xcb')][_0x1925('0xbf')]({'channelId':_0x2fb8cc,'revisionId':_0x576ada['id']})['then'](_0x4b95c8=>{_0x576ada[_0x1925('0x11b')]({'diffData':_0x4b95c8['diffData']},!0x0);});}}[_0x1925('0xa9')](){this['activeChange']=null,this[_0x1925('0x10a')](),this[_0x1925('0x6c')]&&this[_0x1925('0x6c')][_0x1925('0x80')](),this[_0x1925('0x6c')]=null,this[_0x1925('0xac')][_0x1925('0xe7')](),this[_0x1925('0x17')]['model']['enqueueChange']({'isUndoable':!0x1},_0x484055=>{for(const _0x8ae5a7 of this['editor'][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x9')]())_0x484055[_0x1925('0x5f')](_0x8ae5a7);});}[_0x1925('0xe0')](_0x194dae){const _0x4d44cf=[],_0x28ca57=new Map();for(const _0x207233 of this[_0x1925('0x17')][_0x1925('0xf6')]['document'][_0x1925('0x9')]()){const _0x18b109=this['editor']['editing'][_0x1925('0xa5')][_0x1925('0x69')](_0x207233);if(!_0x18b109)continue;const _0x51e51e=_0x18b109[_0x1925('0xfa')]()[_0x1925('0x128')](0x0);_0x51e51e&&(_0x4d44cf[_0x1925('0x0')](_0x207233),_0x28ca57[_0x1925('0xfe')](_0x207233,_0x51e51e));}return _0x4d44cf[_0x1925('0xb1')]((_0x13be6e,_0x86d9a4)=>{const _0x1789c7=_0x28ca57[_0x1925('0xbb')](_0x13be6e),_0x218700=_0x28ca57[_0x1925('0xbb')](_0x86d9a4);return _0x1789c7['y']-_0x218700['y']||_0x1789c7['x']-_0x218700['x'];}),(_0x194dae=_0x194dae['filter'](_0x2cab8d=>_0x4d44cf[_0x1925('0x85')](_0x2cab8d[_0x1925('0x123')])))[_0x1925('0xb1')]((_0x4023c6,_0x3c9b72)=>_0x4d44cf[_0x1925('0xc9')](_0x4023c6['rootName'])-_0x4d44cf[_0x1925('0xc9')](_0x3c9b72[_0x1925('0x123')])),_0x194dae;}[_0x1925('0x8e')](_0xbe0add){const _0x2730d2=Array[_0x1925('0x6e')](_0xbe0add[_0x1925('0xe3')])[_0x1925('0xc7')](([_0x4ffe7b,_0x48a1f7])=>_0x4ffe7b['startsWith']('revision:')&&!_0x48a1f7[_0x1925('0x29')]),_0x5d7822=Array[_0x1925('0x6e')](this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xcd')](_0xbe0add)[_0x1925('0x11f')]({'singleCharacters':!0x0}));if(0x0!=_0x2730d2[_0x1925('0xd9')])for(const _0x17cbc6 of _0x5d7822){const [_0x310eaa,_0x261720]=_0x2730d2[0x0],[,_0x3d5e45,_0x2d2d5a]=_0x310eaa['split'](':');if(_0x261720[_0x1925('0x30')]['isEqual'](_0x17cbc6[_0x1925('0x32')])&&_0x2730d2['shift'](),(_0x17cbc6[_0x1925('0xfb')][_0x1925('0xad')](_0x261720[_0x1925('0x43')])||_0x17cbc6[_0x1925('0xfb')][_0x1925('0xbe')](_0x261720[_0x1925('0x43')]))&&(_0x1925('0xd4')==_0x3d5e45?_0x17cbc6['isAdded']={'userId':_0x2d2d5a}:_0x1925('0x84')==_0x3d5e45&&(_0x17cbc6[_0x1925('0xba')]={'userId':_0x2d2d5a})),0x0==_0x2730d2[_0x1925('0xd9')])break;}return _0x5d7822;}['_refreshStartEndIndex'](_0x164607){const _0x1e5cb4=new Map();for(let _0x4d1ea9=0x0;_0x4d1ea9<_0x164607[_0x1925('0xd9')];_0x4d1ea9++)_0x1925('0x44')===_0x164607[_0x4d1ea9]['type']?(_0x164607[_0x4d1ea9][_0x1925('0x128')][_0x1925('0x54')]=_0x4d1ea9,_0x164607[_0x4d1ea9][_0x1925('0x128')][_0x1925('0xa7')]=_0x4d1ea9):(_0x1925('0x126')===_0x164607[_0x4d1ea9][_0x1925('0x41')]?_0x164607[_0x4d1ea9]['item'][_0x1925('0x54')]=_0x4d1ea9:_0x1925('0xa')===_0x164607[_0x4d1ea9][_0x1925('0x41')]&&(_0x164607[_0x4d1ea9][_0x1925('0x128')]['endIndex']=_0x4d1ea9),_0x1e5cb4[_0x1925('0xfe')](_0x164607[_0x4d1ea9]['id'],_0x4d1ea9));for(const _0x31c721 of _0x1e5cb4['values']())'elementStart'===_0x164607[_0x31c721]['type']?_0x164607[_0x31c721]['item'][_0x1925('0xa7')]=_0x1e5cb4[_0x1925('0xbb')](_0x164607[_0x31c721][_0x1925('0x10b')]):_0x1925('0xa')===_0x164607[_0x31c721]['type']&&(_0x164607[_0x31c721][_0x1925('0x128')][_0x1925('0x54')]=_0x1e5cb4['get'](_0x164607[_0x31c721][_0x1925('0x10b')]));}['_processTape'](_0x6c430f){for(let _0x46fb0d=0x0;_0x46fb0d<_0x6c430f['length'];_0x46fb0d++){if(_0x1925('0x126')===_0x6c430f[_0x46fb0d][_0x1925('0x41')])_0x6c430f[_0x46fb0d][_0x1925('0x128')][_0x1925('0x54')]=_0x46fb0d;else{if(_0x1925('0xa')===_0x6c430f[_0x46fb0d][_0x1925('0x41')]){_0x6c430f[_0x46fb0d][_0x1925('0x128')][_0x1925('0xa7')]=_0x46fb0d;const _0x2f6d96=_0x6c430f[_0x46fb0d][_0x1925('0x128')][_0x1925('0x54')];_0x6c430f[_0x2f6d96][_0x1925('0x10b')]=_0x6c430f[_0x46fb0d]['id'],_0x6c430f[_0x46fb0d]['pairId']=_0x6c430f[_0x2f6d96]['id'];}else _0x6c430f[_0x46fb0d]['item'][_0x1925('0x54')]=_0x46fb0d,_0x6c430f[_0x46fb0d]['item'][_0x1925('0xa7')]=_0x46fb0d,_0x6c430f[_0x46fb0d][_0x1925('0x10b')]=null;}_0x6c430f[_0x46fb0d][_0x1925('0x73')]||(_0x6c430f[_0x46fb0d][_0x1925('0x73')]=[],_0x6c430f[_0x46fb0d][_0x1925('0x117')]=[]);}}[_0x1925('0x10d')](_0x5f2427,_0x34fcef){const _0x54ee46=_0x5f2427[_0x1925('0xc7')](_0x3f3399=>!_0x3f3399[_0x1925('0x57')]);for(let _0x1ca67b=0x0;_0x1ca67b<_0x34fcef[_0x1925('0xd9')];_0x1ca67b++)_0x34fcef[_0x1ca67b][_0x1925('0x57')]&&(_0x54ee46[_0x1ca67b][_0x1925('0x57')]=_0x34fcef[_0x1ca67b][_0x1925('0x57')]);}[_0x1925('0xf5')](_0x4a14f0){const _0x404a07=JSON[_0x1925('0x101')](_0x4a14f0),_0x19cc6e=this[_0x1925('0x17')]['editing'][_0x1925('0xa5')]['document'],_0x5c4f97=new _0x439cbb(_0x19cc6e,_0x404a07['map'](_0x1427f6=>this[_0x1925('0x63')](_0x1427f6)));return this[_0x1925('0x17')]['data']['toModel'](_0x5c4f97);}[_0x1925('0x63')](_0x29e0de){const _0x5b96cc=this['editor'][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')];if('string'==typeof _0x29e0de)return new _0x1ce45d(_0x5b96cc,_0x29e0de);{const _0x8c4eb=_0x29e0de['children']['map'](_0x3263fa=>this[_0x1925('0x63')](_0x3263fa));return new(tt[_0x29e0de[(_0x1925('0x41'))]]||_0x5b2eb0)(_0x5b96cc,_0x29e0de[_0x1925('0x8c')],_0x29e0de[_0x1925('0xb')],_0x8c4eb);}}['_getDiff'](_0x28f050,_0x3f0c7e=null){const _0x3bded2=this['repository'][_0x1925('0xbf')](_0x28f050),_0x571011=_0x3f0c7e?this[_0x1925('0xe5')][_0x1925('0xbf')](_0x3f0c7e):null,_0x2970d2=this['_getRevisionsRange'](_0x3bded2,_0x571011),_0x16233b=_0x2970d2[_0x2970d2[_0x1925('0xd9')]-0x1],_0x518947=new Map(),_0x3eb10b={'model':{},'attributes':{},'changes':[]},_0x53521d=new Set(),_0x2d5513=new Map();for(let _0x4b280e=_0x2970d2[_0x1925('0xd9')]-0x1;_0x4b280e>=0x0;_0x4b280e--){const _0x1866f1=_0x2970d2[_0x4b280e];for(const _0x12f76c of Object[_0x1925('0x122')](_0x1866f1['diffData']))if(_0x1866f1[_0x1925('0x6f')][_0x12f76c][_0x1925('0x68')]){const _0xb55ec8=_0x1866f1[_0x1925('0x6f')][_0x12f76c][_0x1925('0x68')];_0xb55ec8[_0x1925('0x56')]?(_0x53521d[_0x1925('0xe9')](_0x12f76c),_0x2d5513[_0x1925('0x125')](_0x12f76c)&&_0x2d5513[_0x1925('0xbb')](_0x12f76c)[_0x1925('0x15')]==_0xb55ec8[_0x1925('0x15')]?_0x2d5513[_0x1925('0x7d')](_0x12f76c):_0x2d5513[_0x1925('0xfe')](_0x12f76c,_0xb55ec8)):_0x2d5513['has'](_0x12f76c)?(_0x53521d['delete'](_0x12f76c),_0x2d5513['delete'](_0x12f76c)):(_0x53521d['add'](_0x12f76c),_0x2d5513[_0x1925('0xfe')](_0x12f76c,_0xb55ec8));}else _0x53521d[_0x1925('0xe9')](_0x12f76c);}for(const _0xb1cda9 of _0x53521d){const _0x53a370=_0x2d5513[_0x1925('0x125')](_0xb1cda9)&&!_0x2d5513[_0x1925('0xbb')](_0xb1cda9)['isAttached'];let _0x512d76=_0x53a370?_0x2970d2[_0x1925('0xd9')]-0x1:0x0;const _0x31b1f8=_0x53a370?-0x1:0x1;for(;_0x2970d2[_0x512d76];){const _0x2ed9e8=_0x2970d2[_0x512d76];if(_0x2ed9e8[_0x1925('0x6f')][_0xb1cda9]){const _0x43e11b=_0x53a370?_0x2ed9e8['diffData'][_0xb1cda9][_0x1925('0x108')]:_0x2ed9e8[_0x1925('0x6f')][_0xb1cda9][_0x1925('0xb8')];_0x3eb10b[_0x1925('0xb')][_0xb1cda9]=_0x43e11b?_0x4ae206(_0x43e11b):{};break;}_0x512d76+=_0x31b1f8;}}for(const _0x558a4a of _0x2970d2){_0x558a4a[_0x1925('0xf6')]={};for(const _0x41ba3b of _0x558a4a['authors'])_0x518947[_0x1925('0xfe')](_0x41ba3b['id'],_0x41ba3b);for(const _0x26f77e of _0x53521d){const _0x35742d=_0x558a4a['diffData'][_0x26f77e]?_0x558a4a[_0x1925('0x6f')][_0x26f77e][_0x1925('0x9a')]:'[]',_0x4a774e=_0x558a4a[_0x1925('0x6f')][_0x26f77e]?_0x558a4a[_0x1925('0x6f')][_0x26f77e]['deletions']:'[]';_0x558a4a[_0x1925('0xf6')][_0x26f77e]={'insertions':this[_0x1925('0xf5')](_0x35742d),'deletions':this[_0x1925('0xf5')](_0x4a774e)};}}for(const _0x2047d2 of _0x53521d){let _0x57feca=null,_0x19537f=0x0;const _0x402f4e=new Map(Array['from'](_0x3bded2[_0x1925('0xf6')][_0x2047d2][_0x1925('0x9a')]['markers'])[_0x1925('0xc7')](([_0x5ca598])=>!_0x5ca598[_0x1925('0x12')](_0x1925('0x22'))));let _0x3b12cd=0x0;for(const _0x25f4cd of _0x2970d2){const _0x7c07d0=this[_0x1925('0x8e')](_0x25f4cd[_0x1925('0xf6')][_0x2047d2][_0x1925('0x9a')]);_0x25f4cd==_0x3bded2?(_0x57feca=_0x7c07d0,_0x19537f=_0x57feca[_0x1925('0xd9')],_0x57feca[_0x1925('0x9b')](_0x317198=>{_0x317198['id']=_0x3b12cd++;}),this[_0x1925('0x71')](_0x57feca)):this[_0x1925('0x10d')](_0x57feca,_0x7c07d0);const _0x457af0=_0x57feca[_0x1925('0xc7')](_0x4e5c85=>!_0x4e5c85[_0x1925('0x57')])['map'](_0x4ef361=>_0x4ef361['id']);let _0x1f949a=0x0;const _0x16a9f4=this[_0x1925('0x8e')](_0x25f4cd['model'][_0x2047d2]['deletions']);_0x16a9f4[_0x1925('0x9b')](_0x41a95a=>{_0x41a95a[_0x1925('0xba')]?_0x41a95a['id']=_0x19537f++:_0x41a95a['id']=_0x457af0[_0x1f949a++];}),this[_0x1925('0x71')](_0x16a9f4),this['_setDistance'](_0x57feca,_0x1925('0x57')),this[_0x1925('0xd3')](_0x16a9f4,_0x1925('0xba')),_0x25f4cd==_0x3bded2&&this[_0x1925('0x26')](_0x57feca,_0x402f4e),_0x57feca=this[_0x1925('0xbc')](_0x57feca,_0x16a9f4),this[_0x1925('0x89')](_0x57feca),this['_setDistance'](_0x57feca,_0x1925('0xba'));}_0x57feca=_0x57feca[_0x1925('0xc7')](_0x3d0a82=>!(_0x3d0a82['isAdded']&&_0x3d0a82[_0x1925('0xba')]));const _0x2ea236=new Map(_0x16233b[_0x1925('0xf6')][_0x2047d2][_0x1925('0x96')][_0x1925('0xe3')]),_0x995b9d=new Set(_0x402f4e[_0x1925('0x122')]());for(const _0x4ec689 of _0x2ea236[_0x1925('0x122')]())_0x995b9d[_0x1925('0x7d')](_0x4ec689);this[_0x1925('0x40')](_0x57feca,_0x995b9d),this[_0x1925('0xb5')](_0x57feca),_0x57feca=this[_0x1925('0xf')](_0x57feca),_0x57feca=this[_0x1925('0x13')](_0x57feca),_0x57feca=this[_0x1925('0x1')](_0x57feca);const {root:_0x2c5f75,changes:_0x294ea2}=this[_0x1925('0xf2')](_0x57feca,_0x518947,_0x2047d2);_0x3eb10b[_0x1925('0xf6')][_0x2047d2]=_0x2c5f75;const _0x55be2c=_0x2d5513[_0x1925('0xbb')](_0x2047d2);if(_0x55be2c){const _0xc9c6dc=_0x518947[_0x1925('0xbb')](_0x55be2c[_0x1925('0x15')]),_0x11080c=new _0x4d6880({'author':_0xc9c6dc,'type':_0x55be2c[_0x1925('0x56')]?_0x1925('0xe9'):_0x1925('0x42'),'data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2047d2});_0x294ea2[_0x1925('0x4e')](_0x11080c),_0x3eb10b[_0x1925('0xb')][_0x2047d2]['revisionHistoryAttachChange']=_0x11080c['id'];}_0x3eb10b[_0x1925('0x25')]=_0x3eb10b[_0x1925('0x25')][_0x1925('0x112')](_0x294ea2);}return _0x3eb10b;}[_0x1925('0x26')](_0x5bca2b,_0x29993b){for(let _0x1536de=0x0;_0x1536de<_0x5bca2b[_0x1925('0xd9')];_0x1536de++)for(const [_0xcf9d18,_0x30489a]of _0x29993b)_0x30489a[_0x1925('0x43')][_0x1925('0xad')](_0x5bca2b[_0x1536de][_0x1925('0xfb')])&&_0x5bca2b[_0x1536de][_0x1925('0x73')][_0x1925('0x0')](_0xcf9d18),_0x30489a['end'][_0x1925('0xad')](_0x5bca2b[_0x1536de]['nextPosition'])&&_0x5bca2b[_0x1536de][_0x1925('0x117')][_0x1925('0x0')](_0xcf9d18);}[_0x1925('0xbc')](_0x5eccd0,_0x392b73){let _0x49fd1a=[],_0x912caa=0x0,_0x1631d5=0x0;for(;_0x912caa<_0x5eccd0[_0x1925('0xd9')]||_0x1631d5<_0x392b73[_0x1925('0xd9')];){const _0x4306a1=_0x5eccd0[_0x912caa]||{},_0x8d59cc=_0x392b73[_0x1631d5]||{};if(_0x4306a1['id']==_0x8d59cc['id'])_0x912caa++,_0x1631d5++,_0x49fd1a[_0x1925('0x0')](_0x4306a1);else{if(_0x8d59cc[_0x1925('0xba')]&&_0x4306a1[_0x1925('0x57')]){const {commonTape:_0x7fe895,iEnd:_0x1a4570,jEnd:_0x353650}=this[_0x1925('0x10')](_0x5eccd0,_0x912caa,_0x392b73,_0x1631d5);_0x49fd1a=_0x49fd1a[_0x1925('0x112')](_0x7fe895),_0x912caa=_0x1a4570,_0x1631d5=_0x353650;}else _0x8d59cc[_0x1925('0xba')]?(_0x1631d5++,_0x49fd1a[_0x1925('0x0')](_0x8d59cc)):(_0x912caa++,_0x49fd1a[_0x1925('0x0')](_0x4306a1));}}return _0x49fd1a;}[_0x1925('0x40')](_0x17449e,_0x345cba){const _0x21d494=[];for(let _0x18ed9e=0x0;_0x18ed9e<_0x17449e[_0x1925('0xd9')];_0x18ed9e++){for(let _0x17cdcd=0x0;_0x17cdcd<_0x17449e[_0x18ed9e]['markersStart'][_0x1925('0xd9')];_0x17cdcd++){const _0xd852b8=_0x17449e[_0x18ed9e][_0x1925('0x73')][_0x17cdcd];if(!_0x345cba[_0x1925('0x125')](_0xd852b8))continue;const {group:_0x3aa507,type:_0x10ee7a,authorId:_0x2f98cf}=_0x22d299(_0xd852b8);_0x1925('0xf1')!=_0x3aa507||'insertion'!=_0x10ee7a&&_0x1925('0x84')!=_0x10ee7a||(_0x21d494['unshift']({'type':_0x10ee7a,'name':_0xd852b8,'userId':_0x2f98cf}),_0x17449e[_0x18ed9e][_0x1925('0x73')][_0x1925('0xce')](_0x17cdcd,0x1),_0x17cdcd--);}_0xf7fce7(_0x17449e[_0x18ed9e]);for(let _0x49405f=0x0;_0x49405f<_0x17449e[_0x18ed9e]['markersEnd'][_0x1925('0xd9')];_0x49405f++){const _0x31947f=_0x17449e[_0x18ed9e][_0x1925('0x117')][_0x49405f];if(!_0x345cba[_0x1925('0x125')](_0x31947f))continue;const {group:_0x2262ad,type:_0x145173}=_0x22d299(_0x31947f);if(_0x1925('0xf1')!=_0x2262ad||_0x1925('0xd4')!=_0x145173&&_0x1925('0x84')!=_0x145173)continue;_0x17449e[_0x18ed9e][_0x1925('0x117')]['splice'](_0x49405f,0x1),_0x49405f--;const _0x420119=_0x21d494[_0x1925('0x1b')](_0x27adb8=>_0x27adb8[_0x1925('0x8c')]==_0x31947f);_0x420119>-0x1&&_0x21d494[_0x1925('0xce')](_0x420119,0x1);}}function _0x22d299(_0x43f5eb){const _0x79977e=_0x43f5eb[_0x1925('0x74')](':');return{'group':_0x79977e[0x0],'type':_0x79977e[0x1],'subType':_0x79977e[_0x1925('0xd9')]>=0x5?_0x79977e[0x2]:null,'id':_0x79977e[_0x1925('0xd9')]<0x5?_0x79977e[0x2]:_0x79977e[0x3],'authorId':_0x79977e[_0x1925('0xd9')]<0x5?_0x79977e[0x3]:_0x79977e[0x4],'markerCount':0x6==_0x79977e[_0x1925('0xd9')]?_0x79977e[0x5]:null};}function _0xf7fce7(_0xfbd674){for(let _0x5432c3=0x0;_0x5432c3<_0x21d494['length'];_0x5432c3++){if(_0xfbd674[_0x1925('0x57')]&&'insertion'==_0x21d494[_0x5432c3]['type'])return _0xfbd674['isAddSuggestion']=_0x21d494[_0x5432c3],void delete _0xfbd674[_0x1925('0x57')];if(!_0xfbd674[_0x1925('0x57')]&&!_0xfbd674[_0x1925('0xba')]&&_0x1925('0x84')==_0x21d494[_0x5432c3][_0x1925('0x41')])return void(_0xfbd674['isRemoveSuggestion']=_0x21d494[_0x5432c3]);}}}[_0x1925('0xd3')](_0x1b727b,_0x5ca1a4){let _0x557910=0x0,_0x43d1e4=!0x1;const _0x11f404=new Map();for(const _0x86ec11 of _0x1b727b)_0x86ec11[_0x5ca1a4]?_0x43d1e4&&(_0x557910++,_0x43d1e4=!0x1):(_0x557910++,_0x43d1e4=!0x0),_0x11f404[_0x1925('0xfe')](_0x86ec11['id'],_0x557910);for(let _0x45199f=0x0;_0x45199f<_0x1b727b['length'];_0x45199f++){if(_0x1925('0xba')==_0x5ca1a4&&_0x1b727b[_0x45199f][_0x1925('0x57')]||_0x1925('0x57')==_0x5ca1a4&&_0x1b727b[_0x45199f][_0x1925('0xba')])continue;if(_0x1925('0x44')==_0x1b727b[_0x45199f]['type']){_0x1b727b[_0x45199f][_0x1925('0x76')]=0x0;continue;}const _0x4d3106=_0x11f404['get'](_0x1b727b[_0x45199f][_0x1925('0x10b')]),_0x3db89c=_0x11f404[_0x1925('0xbb')](_0x1b727b[_0x45199f]['id']);_0x1b727b[_0x45199f][_0x1925('0x76')]=_0x4d3106-_0x3db89c;}}[_0x1925('0x38')](_0x5ddeb5,_0x33b2f2,_0x32650f=!0x1){const _0x272bf7=[];let _0x13731c=this[_0x1925('0xe5')][_0x1925('0x4a')](_0x5ddeb5),_0x427bd0=this[_0x1925('0xe5')][_0x1925('0x4a')](_0x33b2f2);for(-0x1==_0x427bd0&&(_0x427bd0=this[_0x1925('0xe5')][_0x1925('0xea')]['length'],_0x32650f=!0x1);_0x13731c<_0x427bd0;)_0x272bf7[_0x1925('0x0')](this['repository'][_0x1925('0xbf')](_0x13731c)),_0x13731c++;return _0x32650f&&_0x272bf7[_0x1925('0x0')](this[_0x1925('0xe5')][_0x1925('0xbf')](_0x13731c)),_0x272bf7;}[_0x1925('0x10')](_0xc0e352,_0x4b416e,_0x2ee4ae,_0x32b4b0){const _0x1ecb85=this['editor']['model'][_0x1925('0x11c')];let _0x33fd60=_0x4b416e;for(;_0xc0e352[_0x33fd60]&&_0xc0e352[_0x33fd60][_0x1925('0x57')];)_0x33fd60++;let _0x31d710=_0x32b4b0;for(;_0x2ee4ae[_0x31d710]&&_0x2ee4ae[_0x31d710][_0x1925('0xba')];)_0x31d710++;_0x27af8f(_0xc0e352,_0x4b416e,_0x33fd60),_0x27af8f(_0x2ee4ae,_0x32b4b0,_0x31d710);const _0x5ec012=_0x2ee4ae['slice'](_0x32b4b0,_0x31d710)['concat'](_0xc0e352[_0x1925('0x107')](_0x4b416e,_0x33fd60));return _0x5ec012['sort']((_0x4c6445,_0x44ffb2)=>_0x4c6445[_0x1925('0xb0')]!=_0x44ffb2[_0x1925('0xb0')]?_0x4c6445['side']-_0x44ffb2[_0x1925('0xb0')]:_0x4c6445['level']!=_0x44ffb2['level']?_0x4c6445[_0x1925('0x36')]-_0x44ffb2[_0x1925('0x36')]:_0x4c6445[_0x1925('0x76')]!=_0x44ffb2[_0x1925('0x76')]?_0x44ffb2[_0x1925('0x76')]-_0x4c6445[_0x1925('0x76')]:!!_0x4c6445[_0x1925('0x57')]!=!!_0x44ffb2[_0x1925('0x57')]?-0x1==_0x4c6445[_0x1925('0xb0')]||0x0==_0x4c6445[_0x1925('0xb0')]?_0x4c6445[_0x1925('0x57')]?-0x1:0x1:_0x4c6445['isAdded']?0x1:-0x1:_0x4c6445[_0x1925('0xc2')]-_0x44ffb2[_0x1925('0xc2')]),{'commonTape':_0x5ec012,'iEnd':_0x33fd60,'jEnd':_0x31d710};function _0x27af8f(_0x422019,_0x25e0b2,_0x3f8279){let _0x5718e0=-0x1,_0x597f2b=Number[_0x1925('0x1e')],_0x243b90=!0x0;for(let _0x4fb494=_0x25e0b2;_0x4fb494<_0x3f8279;_0x4fb494++)if(_0x1ecb85['isInline'](_0x422019[_0x4fb494][_0x1925('0x128')])||(_0x243b90=!0x1),_0x422019[_0x4fb494][_0x1925('0x128')][_0x1925('0x54')]<_0x25e0b2&&(_0x5718e0=_0x4fb494),_0x422019[_0x4fb494][_0x1925('0x128')][_0x1925('0xa7')]>=_0x3f8279){_0x597f2b=_0x4fb494;break;}_0x243b90&&(_0x5718e0=_0x3f8279-0x1);for(let _0xb52075=_0x25e0b2;_0xb52075<_0x3f8279;_0xb52075++)_0x422019[_0xb52075][_0x1925('0xb0')]=_0xb52075<=_0x5718e0?-0x1:_0xb52075<_0x597f2b?0x0:0x1,_0x422019[_0xb52075][_0x1925('0xc2')]=_0xb52075;let _0x2bed26=0x0;for(let _0x2e1ec5=_0x25e0b2;_0x2e1ec5<=_0x5718e0;_0x2e1ec5++)0x0==_0x422019[_0x2e1ec5][_0x1925('0x76')]?_0x422019[_0x2e1ec5][_0x1925('0x36')]=_0x2bed26:(_0x2bed26++,_0x422019[_0x2e1ec5]['level']=_0x2bed26,_0x2bed26++);for(let _0x19d0c5=_0x25e0b2;_0x19d0c5<_0x3f8279;_0x19d0c5++)0x0==_0x422019[_0x19d0c5]['side']&&(_0x422019[_0x19d0c5][_0x1925('0x36')]=_0x2bed26);_0x2bed26=0x0;for(let _0x408e8e=_0x3f8279-0x1;_0x408e8e>=_0x597f2b;_0x408e8e--)0x0==_0x422019[_0x408e8e][_0x1925('0x76')]?_0x422019[_0x408e8e][_0x1925('0x36')]=_0x2bed26:(_0x2bed26--,_0x422019[_0x408e8e]['level']=_0x2bed26,_0x2bed26--);}}[_0x1925('0xb5')](_0x4ee04f){const _0x30c1a0=new Map(),_0x4c64a3=this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x11c')];for(let _0x13c157=0x1;_0x13c157<_0x4ee04f[_0x1925('0xd9')];_0x13c157++){let _0x55a173,_0x4434f7,_0x3a160f;const _0xac1082=_0x4ee04f[_0x13c157],_0x330a8b=_0x4ee04f[_0x13c157-0x1];if('text'==_0xac1082[_0x1925('0x41')])continue;if(_0xac1082[_0x1925('0x41')]!=_0x330a8b[_0x1925('0x41')])continue;if(!_0x4c64a3[_0x1925('0xa1')](_0x330a8b[_0x1925('0x128')])||_0x4c64a3[_0x1925('0x1d')](_0x330a8b[_0x1925('0x128')]))continue;if(!_0x4c64a3[_0x1925('0xa1')](_0xac1082['item'])||_0x4c64a3[_0x1925('0x1d')](_0xac1082[_0x1925('0x128')]))continue;if((_0x4ee04f[_0x13c157][_0x1925('0x57')]||_0x4ee04f[_0x13c157][_0x1925('0x8a')])&&_0x4ee04f[_0x13c157-0x1][_0x1925('0xba')])_0x55a173=_0x4ee04f[_0x13c157],_0x4434f7=_0x4ee04f[_0x13c157-0x1],_0x3a160f=_0x13c157-0x1;else{if(!_0x4ee04f[_0x13c157]['isRemoved']||!_0x4ee04f[_0x13c157-0x1]['isAdded']&&!_0x4ee04f[_0x13c157-0x1][_0x1925('0x8a')])continue;_0x55a173=_0x4ee04f[_0x13c157-0x1],_0x4434f7=_0x4ee04f[_0x13c157],_0x3a160f=_0x13c157;}const _0x409359=_0x55a173['level']==_0x4434f7[_0x1925('0x36')],_0x2ef752=Math[_0x1925('0x37')](_0x55a173[_0x1925('0x36')])<Math[_0x1925('0x37')](_0x4434f7[_0x1925('0x36')])&&0x0==_0x4434f7[_0x1925('0x76')];(_0x409359||_0x2ef752)&&(_0x30c1a0[_0x1925('0xfe')](_0x4434f7['id'],_0x55a173['id']),_0x4ee04f[_0x1925('0xce')](_0x3a160f,0x1),_0x13c157--,_0x55a173[_0x1925('0x57')]=!0x1);}for(let _0x356d65=0x0;_0x356d65<_0x4ee04f[_0x1925('0xd9')];_0x356d65++)_0x30c1a0['has'](_0x4ee04f[_0x356d65][_0x1925('0x10b')])&&(_0x4ee04f[_0x356d65][_0x1925('0x10b')]=_0x30c1a0[_0x1925('0xbb')](_0x4ee04f[_0x356d65][_0x1925('0x10b')]));}['_removeMissingPairs'](_0x456a7c){const _0xee147e=new Set(_0x456a7c[_0x1925('0x114')](_0x17ecd5=>_0x17ecd5['id']));for(let _0x5d5a7d=0x0;_0x5d5a7d<_0x456a7c[_0x1925('0xd9')];_0x5d5a7d++)_0xee147e['has'](_0x456a7c[_0x5d5a7d][_0x1925('0x10b')])||0x0==_0x456a7c[_0x5d5a7d]['distance']||(_0x456a7c[_0x5d5a7d][_0x1925('0xd7')]=!0x0);return _0x456a7c[_0x1925('0xc7')](_0x21a654=>!_0x21a654[_0x1925('0xd7')]);}[_0x1925('0x13')](_0x418440){const _0x580ccd=new Set();for(let _0x3fb5b3=0x0;_0x3fb5b3<_0x418440[_0x1925('0xd9')];_0x3fb5b3++){if(_0x580ccd[_0x1925('0x125')](_0x418440[_0x3fb5b3]['id'])&&_0x418440[_0x3fb5b3][_0x1925('0xba')]&&(_0x418440[_0x3fb5b3]['isIncorrect']=!0x0),_0x418440[_0x3fb5b3][_0x1925('0xd7')])continue;if(0x0==_0x418440[_0x3fb5b3]['distance'])continue;if(_0x1925('0x126')!=_0x418440[_0x3fb5b3][_0x1925('0x41')])continue;if(null==_0x418440[_0x3fb5b3][_0x1925('0x10b')])continue;let _0xf58dc7=_0x3fb5b3+0x1,_0xbc56af=0x0;for(;_0x418440[_0xf58dc7]['id']!=_0x418440[_0x3fb5b3][_0x1925('0x10b')];)_0x1925('0x126')==_0x418440[_0xf58dc7][_0x1925('0x41')]?_0xbc56af++:'elementEnd'==_0x418440[_0xf58dc7][_0x1925('0x41')]&&_0xbc56af--,_0xf58dc7++;if(0x0!=_0xbc56af){if(_0x418440[_0x3fb5b3][_0x1925('0xba')])_0x418440[_0x3fb5b3][_0x1925('0xd7')]=!0x0;else for(;_0xf58dc7!=_0x3fb5b3;)_0x418440[_0xf58dc7][_0x1925('0xba')]&&0x0!=_0x418440[_0xf58dc7]['distance']&&(_0x418440[_0xf58dc7][_0x1925('0xd7')]=!0x0,_0x580ccd['add'](_0x418440[_0xf58dc7]['pairId'])),_0xf58dc7--;}}return _0x418440[_0x1925('0xc7')](_0x3d128a=>!_0x3d128a[_0x1925('0xd7')]);}[_0x1925('0x1')](_0x53a9e5){const _0x4a9877=this[_0x1925('0x17')]['model'][_0x1925('0x11c')];for(let _0x2b2cdc=0x0;_0x2b2cdc<_0x53a9e5['length'];_0x2b2cdc++){if(!(_0x53a9e5[_0x2b2cdc][_0x1925('0x57')]||_0x53a9e5[_0x2b2cdc][_0x1925('0x8a')]||_0x53a9e5[_0x2b2cdc][_0x1925('0xba')]||_0x53a9e5[_0x2b2cdc][_0x1925('0xed')]))continue;if(0x0==_0x53a9e5[_0x2b2cdc][_0x1925('0x76')])continue;const _0x31d9a0=_0x53a9e5[_0x2b2cdc][_0x1925('0x128')];_0x4a9877[_0x1925('0xa1')](_0x31d9a0)||_0x4a9877['isLimit'](_0x31d9a0)||(_0x53a9e5[_0x2b2cdc]['isAdded']&&delete _0x53a9e5[_0x2b2cdc][_0x1925('0x57')],_0x53a9e5[_0x2b2cdc]['isAddSuggestion']&&delete _0x53a9e5[_0x2b2cdc][_0x1925('0x8a')],_0x53a9e5[_0x2b2cdc]['isRemoveSuggestion']&&delete _0x53a9e5[_0x2b2cdc][_0x1925('0xed')],_0x53a9e5[_0x2b2cdc][_0x1925('0xba')]&&(_0x53a9e5[_0x2b2cdc]['isIncorrect']=!0x0));}return _0x53a9e5[_0x1925('0xc7')](_0x4fe2e5=>!_0x4fe2e5[_0x1925('0xd7')]);}[_0x1925('0xf2')](_0x555987,_0x45955,_0x2b19c3){const _0x31923a=new _0x12449a(),_0x5e3af6=[],_0x1fc743=new Map(),_0x990d11=this[_0x1925('0x17')][_0x1925('0xf6')],_0x348eb8=_0x990d11[_0x1925('0x11c')],_0xfbff89=[_0x31923a],_0x5aec12={},_0x1c5927={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4fcde5=null;const _0x109a73=[0x0];for(let _0x252dce=0x0;_0x252dce<_0x555987['length'];_0x252dce++){let _0x1c1b23,_0x49ffb1;if(_0x1925('0x126')===_0x555987[_0x252dce][_0x1925('0x41')]){_0x1c1b23=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73);const _0x46d4c3=new _0x1f7d70(_0x555987[_0x252dce]['item']['name'],_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0x103')]());_0xfbff89[0x0][_0x1925('0x3')](_0x46d4c3),_0x109a73[_0x1925('0x0')](0x0),_0xfbff89[_0x1925('0x4e')](_0x46d4c3),_0x49ffb1=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73),_0x4fcde5=null;}else{if(_0x1925('0xa')===_0x555987[_0x252dce][_0x1925('0x41')])_0xfbff89['shift'](),_0x1c1b23=_0x990d11['createPositionFromPath'](_0x31923a,_0x109a73),_0x109a73[_0x1925('0x9c')](),_0x109a73[_0x109a73[_0x1925('0xd9')]-0x1]++,_0x49ffb1=_0x990d11['createPositionFromPath'](_0x31923a,_0x109a73),_0x4fcde5=null;else{if(_0x1c1b23=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73),_0x4fcde5&&_0x4294e1(_0x4fcde5,_0x555987[_0x252dce][_0x1925('0x128')]))_0x4fcde5[_0x1925('0x79')]+=_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0xd1')];else{const _0x54ed52=new _0x2e0e28(_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0xd1')],_0x555987[_0x252dce][_0x1925('0x128')][_0x1925('0x103')]());_0xfbff89[0x0]['_appendChild'](_0x54ed52),_0x4fcde5=_0x54ed52;}_0x109a73[_0x109a73[_0x1925('0xd9')]-0x1]+=_0x555987[_0x252dce][_0x1925('0x128')]['offsetSize'],_0x49ffb1=_0x990d11[_0x1925('0xd5')](_0x31923a,_0x109a73);}}for(const _0x15beda of _0x555987[_0x252dce]['markersStart'])_0x1fc743[_0x1925('0xfe')](_0x15beda,{'start':_0x1c1b23,'end':null});_0x2428ee('isRemoveSuggestion',_0x252dce,_0x1c1b23,_0x49ffb1),_0x2428ee(_0x1925('0x8a'),_0x252dce,_0x1c1b23,_0x49ffb1),_0x2428ee(_0x1925('0xba'),_0x252dce,_0x1c1b23,_0x49ffb1),_0x2428ee(_0x1925('0x57'),_0x252dce,_0x1c1b23,_0x49ffb1);for(const _0xc1ce92 of _0x555987[_0x252dce][_0x1925('0x117')]){_0x1fc743['get'](_0xc1ce92)[_0x1925('0x30')]=_0x49ffb1;}}for(const [_0x21a4ef,_0x1d71ed]of _0x1fc743){const _0x4a07a5=this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xa6')](_0x1d71ed[_0x1925('0x43')],_0x1d71ed[_0x1925('0x30')]);_0x31923a[_0x1925('0xe3')][_0x1925('0xfe')](_0x21a4ef,_0x4a07a5);}return _0x5e3af6[_0x1925('0xb1')]((_0x298020,_0x27ebd3)=>{const _0x3302fe=_0x31923a['markers'][_0x1925('0xbb')]('revision:'+_0x298020['id']),_0x529933=_0x31923a['markers'][_0x1925('0xbb')](_0x1925('0x22')+_0x27ebd3['id']);return _0x3302fe[_0x1925('0x43')]['isBefore'](_0x529933[_0x1925('0x43')])?-0x1:_0x3302fe['start'][_0x1925('0xbe')](_0x529933[_0x1925('0x43')])?0x1:_0x3302fe[_0x1925('0x30')][_0x1925('0x111')](_0x529933['end'])?-0x1:_0x3302fe['end'][_0x1925('0xbe')](_0x529933[_0x1925('0x30')])?0x1:_0x1925('0xe9')===_0x298020['type']?-0x1:0x1;}),{'root':_0x31923a,'changes':_0x5e3af6};function _0x2428ee(_0x3a219f,_0x36f4fc,_0x1682af,_0x51ab16){const _0x20a1c3=!!_0x555987[_0x36f4fc][_0x3a219f],_0x22364f=_0x20a1c3?_0x555987[_0x36f4fc][_0x3a219f][_0x1925('0x15')]:null,_0xd92502=_0x36f4fc===_0x555987[_0x1925('0xd9')]-0x1,_0x426510=_0x1c5927[_0x3a219f][0x0],_0x1ff681=_0x348eb8[_0x1925('0x28')](_0x555987[_0x36f4fc][_0x1925('0x128')]);!_0x5aec12[_0x3a219f]&&_0x20a1c3?_0x5aec12[_0x3a219f]={'start':_0x1682af,'tapeItem':_0x555987[_0x36f4fc],'userId':_0x22364f,'type':_0x3a219f}:_0x5aec12[_0x3a219f]&&!_0x20a1c3?(_0x5aec12[_0x3a219f][_0x1925('0x30')]=_0x1682af,_0x4a0dae(_0x5aec12[_0x3a219f]),_0x5aec12[_0x3a219f]=null):_0x5aec12[_0x3a219f]&&_0x20a1c3&&_0x5aec12[_0x3a219f][_0x1925('0x15')]!==_0x22364f&&(_0x5aec12[_0x3a219f]['end']=_0x1682af,_0x426510&&_0x426510[_0x1925('0x15')]===_0x5aec12[_0x3a219f][_0x1925('0x15')]||_0x4a0dae(_0x5aec12[_0x3a219f]),_0x5aec12[_0x3a219f]={'start':_0x1682af,'tapeItem':_0x555987[_0x36f4fc],'userId':_0x22364f,'type':_0x3a219f}),_0x5aec12[_0x3a219f]&&_0x1ff681&&(_0x1925('0x126')!==_0x555987[_0x36f4fc][_0x1925('0x41')]||_0x426510&&_0x426510['userId']===_0x22364f||_0x1c5927[_0x3a219f][_0x1925('0x4e')]({'userId':_0x22364f,'object':_0x555987[_0x36f4fc][_0x1925('0x128')],'change':_0x5aec12[_0x3a219f]}),'elementEnd'===_0x555987[_0x36f4fc][_0x1925('0x41')]&&_0x426510&&_0x426510[_0x1925('0x7a')]===_0x555987[_0x36f4fc]['item']&&(_0x1c5927[_0x3a219f][_0x1925('0xbd')](),_0x5aec12[_0x3a219f]=_0x426510['change'])),_0x5aec12[_0x3a219f]&&_0xd92502&&(_0x5aec12[_0x3a219f]['end']=_0x51ab16,_0x4a0dae(_0x5aec12[_0x3a219f]),_0x5aec12[_0x3a219f]=null);}function _0x4a0dae({start:_0x22b8b6,end:_0x57c214,tapeItem:_0x8a8e78,userId:_0x37fc3a,type:_0x108e33}){const _0x3f0ed6=_0x8a8e78['item'],_0x2a6453=_0x990d11[_0x1925('0x11c')][_0x1925('0xa1')](_0x3f0ed6)&&!_0x990d11[_0x1925('0x11c')][_0x1925('0x1d')](_0x3f0ed6),_0x37dd29=_0x22b8b6[_0x1925('0xd8')]==_0x57c214[_0x1925('0x7c')]&&_0x57c214[_0x1925('0xfc')];if(_0x2a6453&&_0x37dd29)return;const _0x163e4d=_0x990d11['createRange'](_0x22b8b6,_0x57c214),_0x48147c=_0x45955['get'](_0x37fc3a),_0x286a1b=new _0x4d6880({'author':_0x48147c,'type':_0x1925('0x57')==_0x108e33||_0x1925('0x8a')==_0x108e33?_0x1925('0xe9'):_0x1925('0x42'),'data':{'isSuggestion':_0x1925('0x8a')==_0x108e33||_0x1925('0xed')==_0x108e33},'createdAt':new Date(),'rootName':_0x2b19c3});_0x5e3af6[_0x1925('0x0')](_0x286a1b),_0x31923a[_0x1925('0xe3')][_0x1925('0xfe')](_0x1925('0x22')+_0x286a1b['id'],_0x163e4d);}function _0x4294e1(_0x3fcff2,_0x42d4a5){const _0x120eb5=_0x3fcff2[_0x1925('0x103')](),_0x59e8dd=_0x42d4a5[_0x1925('0x103')]();for(const _0x35f5f9 of _0x120eb5){if(_0x35f5f9[0x1]!==_0x42d4a5[_0x1925('0xae')](_0x35f5f9[0x0]))return!0x1;_0x59e8dd[_0x1925('0x11')]();}return _0x59e8dd[_0x1925('0x11')]()[_0x1925('0x51')];}}['_setConversion'](){this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0x6b')]({'view':_0x1925('0x8')}),this['editor'][_0x1925('0x59')]['for'](_0x1925('0xa3'))[_0x1925('0x5a')]({'model':_0x1925('0x8'),'view':_0x49bf15=>{const _0x3fe703=_0x49bf15[_0x1925('0x9d')]['split'](':')[0x1],_0xdf8c64=this['_getChangeFromId'](_0x3fe703);if(!_0xdf8c64)return null;const _0x19841c=_0x1925('0xe9')==_0xdf8c64[_0x1925('0x41')]?_0x1925('0xd4'):'deletion',_0x254fb4=[_0x1925('0x10f'),'ck-suggestion-marker-'+_0x19841c];return _0xdf8c64[_0x1925('0xd1')]['isSuggestion']&&_0x254fb4[_0x1925('0x0')]('ck-suggestion-marker-'+_0x19841c+_0x1925('0x7f')),this[_0x1925('0xb7')]==_0xdf8c64&&_0x254fb4[_0x1925('0x0')](_0x1925('0xa4')),{'classes':_0x254fb4,'attributes':{'data-change-id':_0x3fe703}};}}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0xe9')](_0x47c2ad=>{_0x47c2ad['on'](_0x1925('0xf9'),(_0x2c152c,_0x52fbe7,_0xf4b532)=>{const _0x2ea04f=_0x52fbe7[_0x1925('0x6')][_0x1925('0x91')](0x0);if(!_0x2ea04f||!_0x2ea04f['is'](_0x1925('0x1a'),_0x1925('0x104')))return;if(!_0xf4b532[_0x1925('0xa8')][_0x1925('0xaa')](_0x2ea04f,{'attributes':[_0x1925('0xde'),_0x1925('0x7')]}))return;const _0x3b8ae7=_0x52fbe7[_0x1925('0xe1')][_0x1925('0x43')][_0x1925('0xd8')];_0xf4b532['writer']['setAttribute'](_0x1925('0xde'),_0x2ea04f['getAttribute'](_0x1925('0xde')),_0x3b8ae7),_0xf4b532[_0x1925('0x48')]['setAttribute'](_0x1925('0x7'),_0x2ea04f[_0x1925('0xae')](_0x1925('0x7')),_0x3b8ae7);},{'priority':'low'});}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0xe9')](_0x460c9c=>{_0x460c9c['on'](_0x1925('0x1a'),(_0x659053,_0x7618c2,_0x44c96d)=>{if(!_0x44c96d[_0x1925('0xa8')][_0x1925('0xaa')](_0x7618c2[_0x1925('0x6')],{'attributes':[_0x1925('0xde'),_0x1925('0x7')]}))return;if(_0x7618c2[_0x1925('0xe1')][_0x1925('0x29')])return;const _0x441c40=_0x7618c2[_0x1925('0xe1')]['start'][_0x1925('0xd8')];_0x441c40[_0x1925('0x23')]('vid_start')||_0x441c40[_0x1925('0x23')](_0x1925('0xdb'))||(_0x44c96d['writer'][_0x1925('0x4')](_0x1925('0xde'),_0x7618c2['viewItem']['getAttribute'](_0x1925('0xde')),_0x441c40),_0x44c96d[_0x1925('0x48')]['setAttribute'](_0x1925('0x7'),_0x7618c2[_0x1925('0x6')][_0x1925('0xae')](_0x1925('0x7')),_0x441c40));},{'priority':'low'});}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xd6'))[_0x1925('0x2e')]({'view':{'name':_0x1925('0x4b'),'attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xaeb43d=>_0xaeb43d[_0x1925('0xae')]('vid')}}),this[_0x1925('0x17')]['model'][_0x1925('0x11c')]['on']('checkAttribute',(_0x2ab59b,[,_0x1db205])=>{[_0x1925('0xde'),_0x1925('0x7'),_0x1925('0xdb')][_0x1925('0x85')](_0x1db205)&&(_0x2ab59b[_0x1925('0x8f')]=!0x0,_0x2ab59b[_0x1925('0x55')]());},{'priority':_0x1925('0xcc')}),this['editor'][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0x102'))[_0x1925('0xe9')](_0x1e740c=>{_0x1e740c['on'](_0x1925('0x61'),(_0x4048d6,_0x22143c,_0x485299)=>{if('\x20'!=_0x22143c['item']['data']||_0x22143c['item']['parent'][_0x1925('0xf4')]>0x1)return;if(!_0x485299[_0x1925('0xa8')][_0x1925('0xaa')](_0x22143c[_0x1925('0x128')],_0x4048d6['name']))return;const _0x1f4949=_0x485299[_0x1925('0x48')],_0x2e26cf=_0x485299[_0x1925('0xc')][_0x1925('0x11a')](_0x22143c[_0x1925('0xf0')]);_0x1f4949['wrap'](_0x2e26cf,_0x1f4949[_0x1925('0x10e')](_0x1925('0x4b')));});}),this[_0x1925('0x17')][_0x1925('0x59')]['for'](_0x1925('0x102'))[_0x1925('0xeb')]({'model':_0x1925('0x8')}),this[_0x1925('0x17')][_0x1925('0x3c')]['downcastDispatcher']['on'](_0x1925('0xdc'),function(_0x288c7d){const _0x161cc2=_0x288c7d[_0x1925('0x78')][_0x1925('0xbb')](_0x1925('0x11d'));return(_0x38a512,_0x2e99cb,_0x9d06ef)=>{const _0xd9ea75=_0x2e99cb[_0x1925('0x9d')][_0x1925('0x74')](':')[0x1],_0x17f6b9=_0x161cc2[_0x1925('0x109')](_0xd9ea75);if(!_0x17f6b9)return null;const _0x5bc428=_0x1925('0xe9')==_0x17f6b9['type']?'split':_0x1925('0x120');if(!_0x9d06ef['consumable'][_0x1925('0x3f')](_0x2e99cb[_0x1925('0xc8')],_0x38a512['name']))return;const _0x4e4134=_0x2e99cb[_0x1925('0xc8')][_0x1925('0x11f')](),_0x2c2e2f=_0x2e99cb[_0x1925('0xc8')][_0x1925('0x43')],_0x30554c=_0x288c7d[_0x1925('0xf6')][_0x1925('0x11c')];let _0xb153cc=null,_0x24a354=null,_0x128af4=!0x1,_0x11f35f=!0x1;for(const _0x25765d of _0x4e4134){const _0x209b4d=_0x25765d[_0x1925('0x128')];_0x128af4=_0x128af4||_0x30554c['isContent'](_0x209b4d);const _0x1f1533=_0x9d06ef['mapper'][_0x1925('0x39')](_0x209b4d);if(_0x1f1533&&_0x1f1533[_0x1925('0xc4')](_0x1925('0x58')))return;_0x1925('0xa')==_0x25765d[_0x1925('0x41')]&&(_0x30554c[_0x1925('0xa1')](_0x209b4d)&&!_0x30554c['isLimit'](_0x209b4d)&&(_0x209b4d[_0x1925('0x66')]||_0x2c2e2f[_0x1925('0xdf')]?_0xb153cc&&_0xb153cc[_0x1925('0x7c')]==_0x209b4d||(_0xb153cc=_0x209b4d,_0xdfa557(_0x25765d[_0x1925('0xfb')]),_0x11f35f=!0x0):_0x24a354=_0x24a354||_0x25765d[_0x1925('0xfb')]));}function _0xdfa557(_0x514bb8){const _0x32461b=_0x9d06ef[_0x1925('0x48')][_0x1925('0x87')]('span',{'class':_0x1925('0xd0')+_0x5bc428}),_0x3a91ed=_0x9d06ef[_0x1925('0xc')]['toViewPosition'](_0x514bb8);_0x17f6b9[_0x1925('0xd1')]['isSuggestion']&&_0x9d06ef[_0x1925('0x48')]['addClass'](_0x1925('0xd0')+_0x5bc428+_0x1925('0x7f'),_0x32461b),_0x161cc2[_0x1925('0xb7')]==_0x17f6b9&&_0x9d06ef[_0x1925('0x48')]['addClass']('ck-suggestion-marker--active',_0x32461b),_0x9d06ef[_0x1925('0x48')]['insert'](_0x3a91ed,_0x32461b),_0x9d06ef['mapper'][_0x1925('0x97')](_0x32461b,_0x2e99cb[_0x1925('0x9d')]);}_0x128af4||_0x11f35f||!_0x24a354||_0xdfa557(_0x24a354);};}(this[_0x1925('0x17')]),{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0x83')]['on'](_0x1925('0x4f'),(_0x49df24,_0x440175,_0x52ab21)=>{const _0x152feb=_0x52ab21[_0x1925('0xc')][_0x1925('0xa2')](_0x440175[_0x1925('0x9d')]);if(_0x152feb)for(const _0x179be1 of _0x152feb)(_0x179be1[_0x1925('0x19')](_0x1925('0x95'))||_0x179be1['hasClass'](_0x1925('0x49')))&&(_0x52ab21[_0x1925('0xc')][_0x1925('0x127')](_0x179be1,_0x440175[_0x1925('0x9d')]),_0x52ab21[_0x1925('0x48')][_0x1925('0x42')](_0x179be1));},{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0x83')]['on'](_0x1925('0xdc'),(_0x4e3351,_0x224047,_0x5c0db2)=>{const _0x4636d8=_0x224047[_0x1925('0x9d')][_0x1925('0x74')](':')[0x1],_0x941896=this[_0x1925('0x109')](_0x4636d8);if(!_0x941896)return null;const _0x4a5d7a=_0x1925('0xe9')==_0x941896[_0x1925('0x41')]?'split':_0x1925('0x120');if(_0x5c0db2[_0x1925('0xa8')]['test'](_0x224047[_0x1925('0xc8')],_0x4e3351[_0x1925('0x8c')]))for(const _0x343b06 of _0x224047[_0x1925('0xc8')]['getItems']()){if(!_0x343b06['is']('element',_0x1925('0xdd')))continue;const _0x3be678=_0x5c0db2[_0x1925('0x48')][_0x1925('0x87')](_0x1925('0x4b'),{'class':_0x1925('0xd0')+_0x4a5d7a}),_0x4d565b=_0x5c0db2[_0x1925('0xc')][_0x1925('0xf3')](this['editor']['model'][_0x1925('0xaf')](_0x343b06));_0x941896[_0x1925('0xd1')][_0x1925('0x81')]&&_0x5c0db2[_0x1925('0x48')][_0x1925('0x6d')](_0x1925('0xd0')+_0x4a5d7a+'-new',_0x3be678),this[_0x1925('0xb7')]==_0x941896&&_0x5c0db2[_0x1925('0x48')]['addClass'](_0x1925('0xa4'),_0x3be678),_0x5c0db2['writer']['insert'](_0x4d565b,_0x3be678),_0x5c0db2[_0x1925('0xc')]['bindElementToMarker'](_0x3be678,_0x224047['markerName']);}},{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x8d')]['on'](_0x1925('0x7e'),()=>{this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0xa5')]['change'](_0x539f39=>{for(const _0x8999cb of this[_0x1925('0x17')][_0x1925('0xf6')]['document'][_0x1925('0x9')]()){const _0x285993=this['editor'][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x1f')](_0x8999cb),_0x4a8118=this['editor'][_0x1925('0x3c')]['view']['document']['getRoot'](_0x8999cb);if(_0x4a8118){const _0x255c55=_0x285993[_0x1925('0xae')](_0x1925('0x62'));if(_0x539f39['removeAttribute'](_0x1925('0x124'),_0x4a8118),_0x539f39[_0x1925('0xc1')](_0x1925('0xec'),_0x4a8118),_0x539f39[_0x1925('0xc1')](_0x1925('0xc5'),_0x4a8118),_0x539f39[_0x1925('0xc1')](_0x1925('0x98'),_0x4a8118),_0x255c55){const _0x2c3729=this[_0x1925('0x109')](_0x255c55);if(!_0x2c3729)return null;_0x539f39[_0x1925('0x4')](_0x1925('0x124'),_0x255c55,_0x4a8118),_0x539f39[_0x1925('0x6d')](_0x1925('0x9e')+_0x2c3729[_0x1925('0x41')],_0x4a8118),this[_0x1925('0xb7')]==_0x2c3729&&_0x539f39[_0x1925('0x6d')](_0x1925('0x98'),_0x4a8118);}}}});}),this[_0x1925('0x17')]['conversion']['for'](_0x1925('0xd6'))[_0x1925('0x6b')]({'view':_0x1925('0x9f'),'model':_0xac57a2=>_0x1925('0x27')+_0xac57a2,'converterPriority':'highest'}),this[_0x1925('0x17')]['conversion'][_0x1925('0x88')](_0x1925('0xd6'))['dataToMarker']({'view':_0x1925('0x2c'),'model':_0x48ec17=>'revision-suggestion:'+_0x48ec17,'converterPriority':'highest'}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')]('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x347dcc=>({'name':_0x1925('0x4d')+_0x347dcc,'group':_0x1925('0xf1')}),'converterPriority':_0x1925('0xcc')}),this[_0x1925('0x17')][_0x1925('0x59')][_0x1925('0x88')](_0x1925('0xa3'))['markerToHighlight']({'model':_0x1925('0xf1'),'view':_0x22ad09=>{const _0x1f8260=_0x22ad09[_0x1925('0x9d')]['split'](':')[0x1];return'insertion'!=_0x1f8260&&_0x1925('0x84')!=_0x1f8260?null:{'classes':[_0x1925('0x7b'),_0x1925('0x110')+_0x1f8260]};}}),this[_0x1925('0x17')][_0x1925('0x3c')]['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this[_0x1925('0x17')],_0x1925('0x120')),{'priority':_0x1925('0x60')}),this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0x83')]['on']('addMarker:revision-suggestion:insertion',et(this[_0x1925('0x17')],_0x1925('0x74')),{'priority':_0x1925('0x60')}),this[_0x1925('0x17')]['editing']['downcastDispatcher']['on'](_0x1925('0x118'),(_0x559f54,_0x175d3c,_0x51b402)=>{const _0x234f8c=_0x51b402[_0x1925('0xc')][_0x1925('0xa2')](_0x175d3c['markerName']);if(_0x234f8c)for(const _0x6d0221 of _0x234f8c)_0x6d0221['is'](_0x1925('0x10c'))&&(_0x51b402['mapper']['unbindElementFromMarkerName'](_0x6d0221,_0x175d3c[_0x1925('0x9d')]),_0x51b402[_0x1925('0x48')][_0x1925('0x42')](_0x6d0221));},{'priority':'high'});}[_0x1925('0x109')](_0x2aa674){return this['_changeIdToChange']['get'](_0x2aa674);}[_0x1925('0x21')](_0x37512a){return this[_0x1925('0x6c')]&&this[_0x1925('0x6c')][_0x1925('0x80')](),this[_0x1925('0x6c')]=new _0x16f3cb(this[_0x1925('0x17')][_0x1925('0x64')],_0x37512a),this[_0x1925('0x6c')];}[_0x1925('0xab')](){this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x8d')][_0x1925('0x75')][_0x1925('0x99')]('revision'),this['on']('change:activeView',(_0x5abe1a,_0x1d0e71,_0x1c9338,_0x596687)=>{_0x596687&&this[_0x1925('0x82')][_0x1925('0x42')](_0x596687),_0x1c9338&&(this[_0x1925('0x82')][_0x1925('0xe9')]({'view':_0x1c9338,'stackId':_0x1925('0x3e'),'position':{'target':()=>{const _0x109a8e=this[_0x1925('0x17')][_0x1925('0x3c')],_0x141cd3=this[_0x1925('0x109')](_0x1c9338[_0x1925('0x65')]);let _0x5db131;if(_0x141cd3[_0x1925('0xd1')][_0x1925('0xf8')]){const _0x8816fa=_0x109a8e[_0x1925('0xa5')][_0x1925('0x69')](_0x141cd3[_0x1925('0x123')]);_0x5db131=Array['from'](_0x8816fa[_0x1925('0xfa')]());}else{const _0x1d453e=this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xe3')][_0x1925('0xbb')](_0x1925('0x22')+_0x1c9338['changeId']);_0x5db131=Array[_0x1925('0x6e')](_0x109a8e[_0x1925('0xc')][_0x1925('0xa2')](_0x1d453e[_0x1925('0x8c')]))[_0x1925('0x114')](_0x4d3764=>_0x109a8e[_0x1925('0xa5')][_0x1925('0x3d')]['mapViewToDom'](_0x4d3764))[_0x1925('0x114')](_0x9b9613=>Array['from'](_0x9b9613[_0x1925('0xfa')]()))[_0x1925('0xb3')]();}if(!this[_0x1925('0x52')])return _0x5db131[0x0];return _0x5db131['find'](_0x5c3e77=>_0x5c3e77['top']-0x3<=this['_activeViewTarget']['y']&&_0x5c3e77[_0x1925('0x106')]+0x3>=this[_0x1925('0x52')]['y']&&_0x5c3e77[_0x1925('0x5d')]-0x3<=this[_0x1925('0x52')]['x']&&_0x5c3e77['right']+0x3>=this['_activeViewTarget']['x'])||_0x5db131[0x0];}}}),this[_0x1925('0x82')][_0x1925('0x34')]('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x3799dc,_0x579852,_0x5045f2,_0x368f9c)=>{this['activeView']=_0x5045f2?this[_0x1925('0x21')](_0x5045f2):null,this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0x7e')](()=>{const _0x59b8a6=this[_0x1925('0x17')][_0x1925('0x3c')];_0x368f9c&&(_0x368f9c[_0x1925('0xd1')][_0x1925('0xf8')]?_0x59b8a6[_0x1925('0xa5')]['change'](_0x168a0f=>{_0x168a0f[_0x1925('0xc1')](_0x1925('0x98'),_0x59b8a6['view']['document'][_0x1925('0x1f')](_0x368f9c[_0x1925('0x123')]));}):_0x59b8a6[_0x1925('0x2a')](_0x1925('0x22')+_0x368f9c['id'])),_0x5045f2&&(_0x5045f2['data'][_0x1925('0xf8')]?_0x59b8a6[_0x1925('0xa5')]['change'](_0x574f3a=>{_0x574f3a[_0x1925('0x6d')](_0x1925('0x98'),_0x59b8a6[_0x1925('0xa5')][_0x1925('0x8d')][_0x1925('0x1f')](_0x5045f2[_0x1925('0x123')]));}):_0x59b8a6[_0x1925('0x2a')](_0x1925('0x22')+_0x5045f2['id']));});}),this[_0x1925('0x45')](this[_0x1925('0x17')]['editing']['view']['document'],_0x1925('0x113'),(_0x24445c,_0x2cac88)=>{if(this[_0x1925('0xb7')])return;const _0x4702c2=this[_0x1925('0xd2')](_0x2cac88[_0x1925('0xcf')]),_0x1acd1c=this[_0x1925('0xac')]['get'](_0x4702c2);_0x1acd1c?(this['_activeViewTarget']={'x':_0x2cac88[_0x1925('0x3b')]['x'],'y':_0x2cac88[_0x1925('0x3b')]['y']},this['activeView']=this[_0x1925('0x21')](_0x1acd1c)):(this['_activeViewTarget']=null,this[_0x1925('0x24')]=null);}),this[_0x1925('0x45')](this[_0x1925('0x17')][_0x1925('0x3c')][_0x1925('0xa5')][_0x1925('0x8d')],_0x1925('0x86'),(_0x4dd766,_0xeaeacf)=>{const _0x22b797=this[_0x1925('0xd2')](_0xeaeacf[_0x1925('0xcf')]),_0x49c276=this['_changeIdToChange'][_0x1925('0xbb')](_0x22b797);_0x49c276?(this[_0x1925('0x52')]={'x':_0xeaeacf[_0x1925('0x3b')]['x'],'y':_0xeaeacf[_0x1925('0x3b')]['y']},_0x49c276===this[_0x1925('0xb7')]?this[_0x1925('0x82')]['updatePosition']():this[_0x1925('0xb7')]=_0x49c276):(this[_0x1925('0x52')]=null,this[_0x1925('0xb7')]=null);});}[_0x1925('0xd2')](_0x35c767){do{const _0xfa9413=_0x35c767[_0x1925('0xae')](_0x1925('0x124'));if(_0xfa9413)return _0xfa9413;_0x35c767=_0x35c767['parent'];}while(_0x35c767);return null;}[_0x1925('0x10a')](){this[_0x1925('0x17')][_0x1925('0xf6')]['change'](_0x2a1a84=>{for(const _0x1d6ec8 of this[_0x1925('0x17')][_0x1925('0xf6')][_0x1925('0xe3')])_0x2a1a84[_0x1925('0x115')](_0x1d6ec8);});}}function et(_0x2aee5a,_0x361493){return(_0x455b66,_0x1726c5,_0x38cc82)=>{if(!_0x38cc82[_0x1925('0xa8')]['test'](_0x1726c5[_0x1925('0xc8')],_0x455b66['name']))return;const _0x22cc53=_0x1726c5[_0x1925('0xc8')][_0x1925('0x11f')](),_0x56f5cb=_0x1726c5[_0x1925('0xc8')]['start'],_0x3e1e67=_0x2aee5a[_0x1925('0xf6')][_0x1925('0x11c')];let _0x554767=null,_0x7258c7=null,_0x529cbb=!0x1,_0xcf5f12=!0x1;for(const _0x522f16 of _0x22cc53){const _0x46c68e=_0x522f16[_0x1925('0x128')];_0x529cbb=_0x529cbb||_0x3e1e67[_0x1925('0x8b')](_0x46c68e);const _0x4c8173=_0x38cc82[_0x1925('0xc')]['toViewElement'](_0x46c68e);if(_0x4c8173&&_0x4c8173[_0x1925('0xc4')](_0x1925('0x58')))return;_0x1925('0xa')==_0x522f16[_0x1925('0x41')]&&(_0x3e1e67['isBlock'](_0x46c68e)&&!_0x3e1e67[_0x1925('0x1d')](_0x46c68e)&&(_0x46c68e[_0x1925('0x66')]||_0x56f5cb[_0x1925('0xdf')]?_0x554767&&_0x554767['parent']==_0x46c68e||(_0x554767=_0x46c68e,_0x2c83ee(_0x522f16[_0x1925('0xfb')]),_0xcf5f12=!0x0):_0x7258c7=_0x7258c7||_0x522f16[_0x1925('0xfb')]));}function _0x2c83ee(_0x70b8e1){const _0x5eb86f=_0x38cc82[_0x1925('0xc')][_0x1925('0xf3')](_0x70b8e1),_0xfb1cc4=_0x38cc82[_0x1925('0x48')][_0x1925('0x87')](_0x1925('0x4b'),{'class':'ck-suggestion-preview-marker-'+_0x361493});_0x38cc82['writer']['insert'](_0x5eb86f,_0xfb1cc4),_0x38cc82[_0x1925('0xc')]['bindElementToMarker'](_0xfb1cc4,_0x1726c5['markerName']);}_0x529cbb||_0xcf5f12||!_0x7258c7||_0x2c83ee(_0x7258c7);};}export class RestoreRevisionCommand extends _0x2b2784{constructor(_0x2a21c0){super(_0x2a21c0);const _0x139a60=_0x2a21c0[_0x1925('0x78')]['get'](d);this[_0x1925('0x50')]=!0x1,this['listenTo'](_0x139a60,_0x1925('0x33'),()=>this[_0x1925('0xda')]()),this[_0x1925('0x45')](_0x139a60,'change:isEnabled',()=>this['refresh']());}[_0x1925('0x100')](){const _0x27b499=this[_0x1925('0x17')],_0x4da3cf=_0x27b499[_0x1925('0x78')][_0x1925('0xbb')](d),_0x54dfcf=_0x4da3cf[_0x1925('0x92')]?_0x4da3cf[_0x1925('0x2')][_0x1925('0x119')]:null;_0x27b499[_0x1925('0xfd')][_0x1925('0xbb')](_0x1925('0x116'))[_0x1925('0x53')](_0x54dfcf);}[_0x1925('0xda')](){const {isReady:_0x197a67,isEnabled:_0x4fdb84}=this[_0x1925('0x17')][_0x1925('0x78')]['get'](d);this['isEnabled']=_0x197a67&&_0x4fdb84;}}export class ShowChangeCommand extends _0x2b2784{constructor(_0x39c197,{direction:_0x452d30}){super(_0x39c197);const _0xd13812=_0x39c197[_0x1925('0x78')][_0x1925('0xbb')](d);this[_0x1925('0x50')]=!0x1,this['_step']=_0x1925('0xc0')===_0x452d30?0x1:-0x1,this[_0x1925('0x45')](_0xd13812,_0x1925('0x33'),()=>this[_0x1925('0xda')]()),this[_0x1925('0x45')](_0xd13812,_0x1925('0x2d'),()=>this['refresh']()),this[_0x1925('0x45')](_0xd13812,_0x1925('0x77'),()=>this[_0x1925('0xda')]());}['execute'](){const _0x503b72=this[_0x1925('0x17')],_0x4e3984=_0x503b72[_0x1925('0x78')][_0x1925('0xbb')](d),{isNavigationMode:_0x222bf7,currentChangeNumber:_0x2669b9}=_0x4e3984;let _0x3450fd;if(_0x4e3984['activeChange']=_0x222bf7?_0x4e3984[_0x1925('0x2')]['changes'][_0x1925('0xbb')](_0x2669b9+this[_0x1925('0x35')]):_0x4e3984[_0x1925('0x2')][_0x1925('0x25')][_0x1925('0xb6')],_0x4e3984[_0x1925('0xb7')][_0x1925('0xd1')][_0x1925('0xf8')])_0x3450fd=_0x503b72['editing'][_0x1925('0xa5')][_0x1925('0x69')](_0x4e3984[_0x1925('0xb7')][_0x1925('0x123')]);else{const _0x595596=_0x503b72[_0x1925('0xf6')][_0x1925('0xe3')][_0x1925('0xbb')](_0x1925('0x22')+_0x4e3984['activeChange']['id']);_0x3450fd=_0x2309da(_0x503b72[_0x1925('0x3c')],_0x595596);}_0x5dd962({'target':_0x3450fd,'viewportOffset':0x28});}[_0x1925('0xda')](){const {isNavigationMode:_0x1abca7,currentChangeNumber:_0x1c3b8c,numberOfChanges:_0x29938a,isReady:_0x7285b8,isEnabled:_0xcd65c8}=this[_0x1925('0x17')]['plugins']['get'](d);this['isEnabled']=!!(_0xcd65c8&&_0x7285b8&&_0x29938a)&&(!_0x1abca7||(0x1===this[_0x1925('0x35')]?_0x1c3b8c<_0x29938a-0x1:_0x1c3b8c>0x0));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3b0a=['isOpen','isActionsDropdownOpen','Name\x20this\x20revision','listenTo','bindTemplate','first','isEnabled','Compare\x20against\x20selected','class','buttonView','children','find','items','threeVerticalDots','stopPropagation','locale','extendTemplate','map','isReady','set','source','_action','name','function','button','execute','add','ck-revision-history-sidebar__revision__actions','ck-on','panelPosition','change:isActionsDropdownOpen','bind','action'];(function(_0x29d776,_0x3b0ac9){const _0x3517a2=function(_0xcb0c3a){while(--_0xcb0c3a){_0x29d776['push'](_0x29d776['shift']());}};_0x3517a2(++_0x3b0ac9);}(_0x3b0a,0x113));const _0x3517=function(_0x29d776,_0x3b0ac9){_0x29d776=_0x29d776-0x0;let _0x3517a2=_0x3b0a[_0x29d776];return _0x3517a2;};import{Collection as _0x2116cd}from'ckeditor5/src/utils';import{icons as _0x4ec122}from'ckeditor5/src/core';import{Model as _0x54b789,addListToDropdown as _0x148ed9,createDropdown as _0xe00ce8}from'ckeditor5/src/ui';import{getTranslation as _0x5ead89}from'../../utils/common-translations';import'../../../theme/revision/revisionactions.css';export function createActionsDropdownView(_0x7f9e61,_0x446d8b){const _0x44a3e6=_0x7f9e61[_0x3517('0x1a')],_0x5ca692=_0x7f9e61[_0x3517('0x4')],_0x25dda2=_0xe00ce8(_0x5ca692);_0x25dda2[_0x3517('0x12')]='sw';const _0x305c14=function(_0x9a5f38,_0x2a0bff){const _0x13f8d1=function(_0x2decda,_0x599742){const _0x445047=_0x2decda['locale'],_0x1aa73c={'Compare\x20against\x20selected':_0x5ead89(_0x445047,_0x3517('0x1d')),'Name\x20this\x20revision':_0x5ead89(_0x445047,_0x3517('0x18')),'Restore\x20this\x20revision':_0x5ead89(_0x445047,'Restore\x20this\x20revision')};return _0x599742[_0x3517('0x6')](_0x1b710f=>{const _0x372e20=_0x1aa73c[_0x1b710f[_0x3517('0xb')]];return _0x372e20&&_0x372e20!==_0x1b710f[_0x3517('0xb')]&&(_0x1b710f[_0x3517('0xb')]=_0x372e20),_0x1b710f;});}(_0x9a5f38,_0x2a0bff),_0x13b429=new _0x2116cd();for(const _0x1ea9cb of _0x13f8d1){const _0x1b4840={'type':_0x3517('0xd'),'model':new _0x54b789({'label':_0x1ea9cb[_0x3517('0xb')],'class':_0x1ea9cb[_0x3517('0x1e')],'withText':!0x0,'_action':_0x1ea9cb[_0x3517('0x15')]})};_0x1b4840['model'][_0x3517('0x14')](_0x3517('0x1c'))['to'](_0x9a5f38,_0x3517('0x17'),_0x4eecde=>_0x3517('0xc')!=typeof _0x1ea9cb[_0x3517('0x1c')]||(!_0x4eecde||_0x1ea9cb[_0x3517('0x1c')](_0x9a5f38))),_0x13b429[_0x3517('0xf')](_0x1b4840);}return _0x13b429;}(_0x7f9e61,_0x446d8b);return _0x7f9e61[_0x3517('0x14')](_0x3517('0x17'))['to'](_0x25dda2,_0x3517('0x16')),_0x25dda2[_0x3517('0x1f')][_0x3517('0x8')]({'label':_0x5ead89(_0x5ca692,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x4ec122[_0x3517('0x2')]}),_0x25dda2[_0x3517('0x5')]({'attributes':{'class':[_0x3517('0x10'),_0x44a3e6['if'](_0x3517('0x17'),_0x3517('0x11'))]},'on':{'click':_0x44a3e6['to'](_0x1d751e=>_0x1d751e[_0x3517('0x3')]())}}),_0x25dda2['on'](_0x3517('0xe'),_0x1133d4=>{_0x7f9e61[_0x3517('0x7')]&&_0x3517('0xc')==typeof _0x1133d4[_0x3517('0x9')]['_action']&&_0x1133d4['source'][_0x3517('0xa')](_0x7f9e61);}),_0x148ed9(_0x25dda2,_0x305c14),_0x25dda2[_0x3517('0x19')](_0x7f9e61,_0x3517('0x13'),(_0x551d33,_0x3f7f47,_0x5c0368)=>{if(_0x5c0368)for(const _0x3ba610 of _0x25dda2['listView'][_0x3517('0x1')]){const _0x2b3107=_0x3ba610[_0x3517('0x20')][_0x3517('0x1b')],_0x4a07e2=_0x446d8b[_0x3517('0x0')](_0x503d36=>_0x503d36[_0x3517('0x15')]===_0x2b3107[_0x3517('0xa')])['isVisible'];_0x3ba610['isVisible']=void 0x0===_0x4a07e2||_0x4a07e2(_0x7f9e61);}}),_0x25dda2;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x23d9=['span','Revision\x20creator','0\x200\x2011\x2010','ck-revision-history-sidebar__revision-author__name','ck-revision-history-sidebar__revision-author','push','setTemplate'];(function(_0xa9391b,_0x23d90a){const _0x57e72c=function(_0x3dc70a){while(--_0x3dc70a){_0xa9391b['push'](_0xa9391b['shift']());}};_0x57e72c(++_0x23d90a);}(_0x23d9,0x90));const _0x57e7=function(_0xa9391b,_0x23d90a){_0xa9391b=_0xa9391b-0x0;let _0x57e72c=_0x23d9[_0xa9391b];return _0x57e72c;};import{View as _0x3802f2,IconView as _0x57f4b9}from'ckeditor5/src/ui';import{getTranslation as _0x511cff}from'../../utils/common-translations';import'../../../theme/revision/revisionauthor.css';import _0x3c91d9 from'../../../theme/icons/user.svg';export default class ti extends _0x3802f2{constructor(_0x33bd21,_0x37926c,_0xb6180){super(_0x33bd21);const _0x879733=new _0x57f4b9();_0x879733['set']({'content':_0x3c91d9,'viewBox':_0x57e7('0x5')});const _0x2c3c97=['ck',_0x57e7('0x0')];_0xb6180&&_0x2c3c97[_0x57e7('0x1')]('ck-revision-history-sidebar__revision-author_creator');const _0x3b09bf=[{'tag':_0x57e7('0x3'),'attributes':{'class':['ck',_0x57e7('0x6')],'title':_0x511cff(_0x33bd21,_0xb6180?_0x57e7('0x4'):'Revision\x20author')},'children':[_0x879733,_0x37926c['name']]}];this[_0x57e7('0x2')]({'tag':'li','attributes':{'class':_0x2c3c97},'children':_0x3b09bf});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3aea=['Revision\x20name','set','extendTemplate'];(function(_0x440d00,_0x3aeaec){var _0x116740=function(_0x1c7e19){while(--_0x1c7e19){_0x440d00['push'](_0x440d00['shift']());}};_0x116740(++_0x3aeaec);}(_0x3aea,0x75));var _0x1167=function(_0x440d00,_0x3aeaec){_0x440d00=_0x440d00-0x0;var _0x116740=_0x3aea[_0x440d00];return _0x116740;};import{LabeledFieldView as _0x42ce86}from'ckeditor5/src/ui';import{getTranslation as _0x874bf0}from'../../utils/common-translations';import'../../../theme/revision/revisionname.css';export default class is extends _0x42ce86{constructor(_0x51ddca,_0x1aad38){super(_0x51ddca,_0x1aad38),this[_0x1167('0x1')]({'label':_0x874bf0(_0x51ddca,_0x1167('0x0'))}),this[_0x1167('0x2')]({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name']}});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x488e=['.ck-thread__remove-confirm','bind','_revision','closest','fire','fieldView','isConfirm','setName','ck-revision-history-sidebar__revision-wrapper','ck-revision-history-sidebar__revision','placeholder','ck-revision-history-sidebar__revision__date','isSelected','unshift','creator','bindTemplate','isReady','listenTo','revisionActionsView','unhighlight','ck-revision-history-sidebar__revision-wrapper_confirmation_visible','srcElement','setTemplate','_createdAtFormatted','select','change','filter','from','name','revisionNameView','isEnabled','value','render','span','ck-revision-history-sidebar__revision_highlighted','set','ck-revision-history-sidebar__revision_selected','isHighlighted','extendTemplate','deselect','div','map','element'];(function(_0x34b186,_0x488e82){const _0x221ef7=function(_0x1c661c){while(--_0x1c661c){_0x34b186['push'](_0x34b186['shift']());}};_0x221ef7(++_0x488e82);}(_0x488e,0x141));const _0x221e=function(_0x34b186,_0x488e82){_0x34b186=_0x34b186-0x0;let _0x221ef7=_0x488e[_0x34b186];return _0x221ef7;};import{View as _0xafcf46,createLabeledInputText as _0x56f851}from'ckeditor5/src/ui';import{ConfirmMixin as _0x1df686}from'ckeditor5-collaboration/src/collaboration-core';import _0x92092a from'./revisionnameview';import _0x1c9c54 from'./revisionauthorview';import{dateToPrettyFormat as _0x3a2f7d}from'./utils';import{createActionsDropdownView as _0x113fca}from'./createrevisionactionsdropdown';import'../../../theme/revision/revision.css';export default class ai extends _0x1df686(_0xafcf46){constructor(_0x1e3182,_0x4e2fba,_0x525ce4){super(_0x1e3182);const _0x5c6c9b=this[_0x221e('0x26')],_0x2c85a9=function(_0x1043be,_0x377427){const _0x2f57ac=Array[_0x221e('0x7')](_0x377427['authors'])[_0x221e('0x6')](_0x289282=>_0x289282!=_0x377427[_0x221e('0x25')]);return _0x377427[_0x221e('0x25')]&&_0x2f57ac[_0x221e('0x24')](_0x377427[_0x221e('0x25')]),_0x2f57ac[_0x221e('0x15')](_0x3e0977=>new _0x1c9c54(_0x1043be,_0x3e0977,_0x3e0977==_0x377427[_0x221e('0x25')]));}(_0x1e3182,_0x4e2fba);this['id']=_0x4e2fba['id'],this[_0x221e('0x19')]=_0x4e2fba,this['bind'](_0x221e('0x8'),'createdAt')['to'](_0x4e2fba),this[_0x221e('0x18')]('_createdAtFormatted')['to'](this,'createdAt',_0x1b7ba4=>_0x1b7ba4?_0x3a2f7d(_0x1e3182['uiLanguage'],_0x1b7ba4):void 0x0),this[_0x221e('0xf')](_0x221e('0x23'),!0x1),this[_0x221e('0xf')]('isHighlighted',!0x1),this[_0x221e('0xf')]('isActionsDropdownOpen',!0x1),this[_0x221e('0xf')](_0x221e('0x27'),!0x1),this[_0x221e('0xf')](_0x221e('0xa'),!0x1),this['revisionNameView']=new _0x92092a(_0x1e3182,_0x56f851),this[_0x221e('0x9')]['fieldView'][_0x221e('0x12')]({'attributes':{'maxlength':'220'}}),this[_0x221e('0x9')][_0x221e('0x1c')]['bind'](_0x221e('0xb'),_0x221e('0x21'))['to'](this,_0x221e('0x8'),_0x221e('0x3')),this[_0x221e('0x9')][_0x221e('0x18')](_0x221e('0xa'))['to'](this,_0x221e('0x23'),this,'isEnabled',(_0x5a431a,_0x192912)=>_0x5a431a&&_0x192912),this[_0x221e('0x29')]=_0x525ce4&&_0x525ce4['length']?_0x113fca(this,_0x525ce4):'',this[_0x221e('0x29')]&&this[_0x221e('0x29')]['bind'](_0x221e('0xa'))['to'](this),this[_0x221e('0x2')]({'tag':_0x221e('0x14'),'attributes':{'class':['ck','ck-reset',_0x221e('0x1f'),_0x5c6c9b['if'](_0x221e('0x1d'),_0x221e('0x0'))]},'children':[{'tag':_0x221e('0x14'),'attributes':{'class':['ck','ck-reset',_0x221e('0x20'),_0x5c6c9b['if'](_0x221e('0xa'),'ck-disabled',_0x42bebc=>!_0x42bebc),_0x5c6c9b['if'](_0x221e('0x23'),_0x221e('0x10')),_0x5c6c9b['if'](_0x221e('0x11'),_0x221e('0xe')),_0x5c6c9b['if']('isActionsDropdownOpen','ck-revision-history-sidebar__actions_dropdown_open')]},'children':[this[_0x221e('0x9')],{'tag':_0x221e('0xd'),'attributes':{'class':['ck',_0x221e('0x22')]},'children':[{'text':_0x5c6c9b['to'](_0x221e('0x3'))}]},{'tag':_0x221e('0x14'),'attributes':{'class':['ck','ck-revision-history-sidebar__revision__controls-wrapper']},'children':[{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':_0x2c85a9}]},this[_0x221e('0x29')]],'on':{'click':_0x5c6c9b['to'](_0x20bd84=>{_0x20bd84[_0x221e('0x1')][_0x221e('0x1a')](_0x221e('0x17'))||this['isReady']&&this[_0x221e('0xa')]&&this[_0x221e('0x1b')]('select',{'id':this['id']});})}}]});}['render'](){super[_0x221e('0xc')]();const _0xd05719=this['revisionNameView'][_0x221e('0x1c')][_0x221e('0x16')];this[_0x221e('0x28')](_0xd05719,_0x221e('0x5'),()=>{this['fire'](_0x221e('0x1e'),{'id':this['id'],'name':_0xd05719[_0x221e('0xb')]});});}[_0x221e('0x4')](){this[_0x221e('0x23')]=!0x0;}[_0x221e('0x13')](){this[_0x221e('0x23')]=!0x1;}['highlight'](){this[_0x221e('0x11')]=!0x0;}[_0x221e('0x2a')](){this[_0x221e('0x11')]=!0x1;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5b22=['ck-hidden','_isCollapsed','click','ck-revision-history-sidebar__subrevision-collapser__inner','ck-revision-history-sidebar__subrevision-collapser_collapsed','span','bindTemplate','button','true'];(function(_0x2f65a4,_0x5b2239){const _0x1bb419=function(_0x4ef427){while(--_0x4ef427){_0x2f65a4['push'](_0x2f65a4['shift']());}};_0x1bb419(++_0x5b2239);}(_0x5b22,0x12b));const _0x1bb4=function(_0x2f65a4,_0x5b2239){_0x2f65a4=_0x2f65a4-0x0;let _0x1bb419=_0x5b22[_0x2f65a4];return _0x1bb419;};import{View as _0x3c0a86}from'ckeditor5/src/ui';import'../../../theme/revision/subrevisioncollapser.css';export default class es extends _0x3c0a86{constructor(_0x12cd4c){super(_0x12cd4c);const _0x4a1af5=this[_0x1bb4('0x4')];this['set']({'isVisible':!0x0,'_isCollapsed':!0x0}),this['setTemplate']({'tag':_0x1bb4('0x3'),'attributes':{'class':['ck','ck-revision-history-sidebar__subrevision-collapser',_0x4a1af5['if']('isVisible',_0x1bb4('0x7'),_0x242c2c=>!_0x242c2c),_0x4a1af5['if'](_0x1bb4('0x8'),_0x1bb4('0x2'))],'role':_0x1bb4('0x5'),'aria-pressed':_0x4a1af5['to'](_0x1bb4('0x8'),_0xf0648b=>_0xf0648b?'false':_0x1bb4('0x6'))},'children':[{'tag':'span','attributes':{'class':['ck',_0x1bb4('0x1')]}}],'on':{'click':_0x4a1af5['to'](_0x1bb4('0x0'))}});}['toggle'](){this['_isCollapsed']=!this[_0x1bb4('0x8')];}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3ddd=['_createdAtFormatted','ck-revision-history-sidebar__revision__date','isSelected','fire','ck-revision-history-sidebar__revision_selected','div','span','ck-revision-history-sidebar__revision','select','bind','uiLanguage','bindTemplate','setTemplate','_parentRevisionId','ck-reset','createdAt','creator'];(function(_0x2b9496,_0x3ddd6b){const _0x4af4d=function(_0x157f54){while(--_0x157f54){_0x2b9496['push'](_0x2b9496['shift']());}};_0x4af4d(++_0x3ddd6b);}(_0x3ddd,0x11b));const _0x4af4=function(_0x2b9496,_0x3ddd6b){_0x2b9496=_0x2b9496-0x0;let _0x4af4d=_0x3ddd[_0x2b9496];return _0x4af4d;};import{View as _0x3585ff}from'ckeditor5/src/ui';import _0x2e66f1 from'./revisionauthorview';import{dateToPrettyFormat as _0x2f78da}from'./utils';import'../../../theme/revision/subrevision.css';export default class ci extends _0x3585ff{constructor(_0x317e08,_0x4a4c90,_0x5a5aba){super(_0x317e08);const _0x3664bb=this[_0x4af4('0x0')];this['id']=_0x4a4c90['id'],this['bind']('createdAt')['to'](_0x4a4c90),this['set'](_0x4af4('0x8'),!0x1),this[_0x4af4('0xf')](_0x4af4('0x6'))['to'](this,_0x4af4('0x4'),_0x3845d1=>_0x3845d1?_0x2f78da(_0x317e08[_0x4af4('0x10')],_0x3845d1):void 0x0),this['_parentRevisionId']=_0x5a5aba,this[_0x4af4('0x1')]({'tag':_0x4af4('0xb'),'attributes':{'class':['ck',_0x4af4('0x3'),_0x4af4('0xd'),'ck-revision-history-sidebar__subrevision',_0x3664bb['if'](_0x4af4('0x8'),_0x4af4('0xa'))]},'children':[{'tag':_0x4af4('0xc'),'attributes':{'class':['ck',_0x4af4('0x7')]},'children':[{'text':_0x3664bb['to'](_0x4af4('0x6'))}]},{'tag':'ul','attributes':{'class':['ck','ck-revision-history-sidebar__revision-authors']},'children':[new _0x2e66f1(_0x317e08,_0x4a4c90[_0x4af4('0x5')],!0x0)]}],'on':{'click':_0x3664bb['to'](this['select'][_0x4af4('0xf')](this))}});}[_0x4af4('0xe')](){this['isSelected']=!0x0,this[_0x4af4('0x9')]('select',{'parentId':this[_0x4af4('0x2')]});}['deselect'](){this['isSelected']=!0x1;}}
|
package/src/ui/revision/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x24d2=['long','toLocaleDateString','numeric'];(function(_0xaf8e3c,_0x24d227){var _0x20817c=function(_0x16e566){while(--_0x16e566){_0xaf8e3c['push'](_0xaf8e3c['shift']());}};_0x20817c(++_0x24d227);}(_0x24d2,0x92));var _0x2081=function(_0xaf8e3c,_0x24d227){_0xaf8e3c=_0xaf8e3c-0x0;var _0x20817c=_0x24d2[_0xaf8e3c];return _0x20817c;};export function dateToPrettyFormat(_0x495238,_0x340c6c){return _0x340c6c[_0x2081('0x2')](_0x495238,{'month':_0x2081('0x1'),'day':'numeric'})+',\x20'+_0x340c6c['toLocaleTimeString'](_0x495238,{'hour':_0x2081('0x0'),'minute':'numeric'});}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x6407=['shift\x20+\x20tab','label','focus','ck-button-cancel','reset','220','render','listenTo','set','form','ck-revision-history-save-revision-form','Name\x20of\x20the\x20revision\x20(optional)','add','extendTemplate','revisionNameInputView','trim','_focusCycler','element','value','execute','focusTracker','cancel','ck-button-save','type','keystrokes','_createButton','ck-responsive-form','revisionName','locale','delegate','tab','cancelButtonView','revisionNameInputValue','arrowleft','saveButtonView','input','Cancel','_focusables'];(function(_0x239301,_0x6407d8){const _0x51e258=function(_0x2a3390){while(--_0x2a3390){_0x239301['push'](_0x239301['shift']());}};_0x51e258(++_0x6407d8);}(_0x6407,0xf9));const _0x51e2=function(_0x239301,_0x6407d8){_0x239301=_0x239301-0x0;let _0x51e258=_0x6407[_0x239301];return _0x51e258;};import{icons as _0x26f8db}from'ckeditor5/src/core';import{ButtonView as _0x2104c3,FocusCycler as _0x57dae3,LabeledFieldView as _0x14ec6f,View as _0x486a73,ViewCollection as _0x1da81a,createLabeledInputText as _0x3901a0,injectCssTransitionDisabler as _0x23365a,submitHandler as _0x2769bf}from'ckeditor5/src/ui';import{FocusTracker as _0x4a2e85,KeystrokeHandler as _0x19817d}from'ckeditor5/src/utils';import{getTranslation as _0x5f4456}from'../../utils/common-translations';import'../../../theme/revisionhistorysaverevisionform.css';import'@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css';export default class Nt extends _0x486a73{constructor(_0x110995){super(_0x110995),this[_0x51e2('0x25')]=new _0x4a2e85(),this['keystrokes']=new _0x19817d(),this[_0x51e2('0x19')](_0x51e2('0xb'),''),this[_0x51e2('0x1f')]=this['_createRevisionNameInput'](),this[_0x51e2('0xd')]=this[_0x51e2('0x4')](_0x5f4456(_0x110995,'Save'),_0x26f8db['check'],_0x51e2('0x1')),this[_0x51e2('0xd')][_0x51e2('0x2')]='submit',this[_0x51e2('0xa')]=this[_0x51e2('0x4')](_0x5f4456(_0x110995,_0x51e2('0xf')),_0x26f8db['cancel'],_0x51e2('0x14'),_0x51e2('0x0')),this[_0x51e2('0x10')]=new _0x1da81a(),this[_0x51e2('0x21')]=new _0x57dae3({'focusables':this['_focusables'],'focusTracker':this[_0x51e2('0x25')],'keystrokeHandler':this[_0x51e2('0x3')],'actions':{'focusPrevious':_0x51e2('0x11'),'focusNext':_0x51e2('0x9')}}),this['setTemplate']({'tag':_0x51e2('0x1a'),'attributes':{'class':['ck',_0x51e2('0x1b'),_0x51e2('0x5')],'tabindex':'-1'},'children':[this[_0x51e2('0x1f')],this[_0x51e2('0xd')],this['cancelButtonView']]}),_0x23365a(this);}['render'](){super[_0x51e2('0x17')](),_0x2769bf({'view':this}),([this[_0x51e2('0x1f')],this[_0x51e2('0xd')],this[_0x51e2('0xa')]]['forEach'](_0xdcf9b7=>{this[_0x51e2('0x10')][_0x51e2('0x1d')](_0xdcf9b7),this[_0x51e2('0x25')][_0x51e2('0x1d')](_0xdcf9b7[_0x51e2('0x22')]);}),this[_0x51e2('0x3')][_0x51e2('0x18')](this[_0x51e2('0x22')]));const _0x3d0561=_0x3cfab1=>_0x3cfab1['stopPropagation']();this[_0x51e2('0x3')][_0x51e2('0x19')]('arrowright',_0x3d0561),this[_0x51e2('0x3')][_0x51e2('0x19')](_0x51e2('0xc'),_0x3d0561),this['keystrokes']['set']('arrowup',_0x3d0561),this[_0x51e2('0x3')][_0x51e2('0x19')]('arrowdown',_0x3d0561);}[_0x51e2('0x13')](){this[_0x51e2('0x21')]['focusFirst']();}get[_0x51e2('0x6')](){return this[_0x51e2('0x1f')]['fieldView'][_0x51e2('0x22')][_0x51e2('0x23')][_0x51e2('0x20')]();}set['revisionName'](_0xa67bb9){this[_0x51e2('0x1f')]['fieldView']['element'][_0x51e2('0x23')]=_0xa67bb9[_0x51e2('0x20')]();}[_0x51e2('0x15')](){this[_0x51e2('0x1f')]['fieldView'][_0x51e2('0x22')][_0x51e2('0x23')]='';}['_createRevisionNameInput'](){const _0x4328c3=new _0x14ec6f(this[_0x51e2('0x7')],_0x3901a0),_0x25dbcd=_0x4328c3['fieldView'];return _0x25dbcd[_0x51e2('0x1e')]({'attributes':{'maxlength':_0x51e2('0x16')}}),_0x4328c3[_0x51e2('0x12')]=_0x5f4456(this[_0x51e2('0x7')],_0x51e2('0x1c')),_0x25dbcd['on'](_0x51e2('0xe'),()=>{this[_0x51e2('0xb')]=_0x25dbcd['element'][_0x51e2('0x23')]['trim']();}),_0x4328c3;}['_createButton'](_0x10d62b,_0x59034b,_0x44d008,_0x58f31f){const _0x52bbd=new _0x2104c3(this[_0x51e2('0x7')]);return _0x52bbd['set']({'label':_0x10d62b,'icon':_0x59034b,'tooltip':!0x0}),_0x52bbd[_0x51e2('0x1e')]({'attributes':{'class':_0x44d008}}),_0x58f31f&&_0x52bbd[_0x51e2('0x8')](_0x51e2('0x24'))['to'](this,_0x58f31f),_0x52bbd;}}
|